var e,t,n,r,o,i,a,s,c,u,l,f,d,h,v,p,m,g,y,b,w,x,k,j,S,C,$,_,O,M,A,E,P,T,R,N,I,D,z,B,L,q,F,V,H,W,U,J,K,G,Q,Y,X,Z,ee,te,ne,re,oe,ie,ae,se,ce,ue,le,fe,de,he,ve,pe,me,ge,ye,be,we,xe,ke,je,Se,Ce,$e,_e,Oe,Me,Ae,Ee,Pe,Te,Re,Ne,Ie,De,ze,Be,Le,qe,Fe,Ve,He,We,Ue,Je,Ke,Ge,Qe,Ye,Xe,Ze,et,tt,nt,rt,ot,it,at,st,ct,ut,lt,ft,dt,ht,vt,pt,mt,gt,yt,bt,wt,xt,kt,jt,St,Ct,$t,_t,Ot,Mt,At,Et,Pt,Tt,Rt,Nt,It,Dt,zt,Bt,Lt,qt,Ft,Vt,Ht,Wt,Ut,Jt,Kt,Gt,Qt,Yt,Xt,Zt,en,tn,nn,rn,on,an,sn,cn,un,ln,fn,dn,hn,vn,pn,mn,gn,yn,bn,wn,xn,kn,jn,Sn,Cn,$n,_n,On,Mn,An,En,Pn,Tn,Rn,Nn,In,Dn,zn,Bn,Ln,qn,Fn,Vn,Hn,Wn,Un,Jn,Kn,Gn,Qn,Yn,Xn,Zn,er,tr,nr,rr,or,ir,ar,sr,cr,ur,lr,fr,dr,hr,vr,pr,mr,gr,yr,br,wr,xr,kr,jr,Sr,Cr,$r,_r,Or,Mr,Ar,Er,Pr,Tr,Rr,Nr,Ir,Dr,zr,Br,Lr,qr,Fr,Vr,Hr,Wr,Ur,Jr,Kr,Gr,Qr,Yr,Xr,Zr,eo,to,no,ro,oo,io,ao,so,co,uo,lo,fo,ho,vo=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],po=["mainAxis","crossAxis","limiter"];function mo(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function go(){return go="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Mo(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},go.apply(this,arguments)}function yo(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(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 bo(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Lo(e))||t&&e&&"number"==typeof e.length){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(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn 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 e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function wo(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */wo=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var i=t&&t.prototype instanceof g?t:g,a=Object.create(i.prototype),s=new A(r||[]);return o(a,"_invoke",{value:$(e,n,s)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l;var d="suspendedStart",h="suspendedYield",v="executing",p="completed",m={};function g(){}function y(){}function b(){}var w={};u(w,a,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(E([])));k&&k!==n&&r.call(k,a)&&(w=k);var j=b.prototype=g.prototype=Object.create(w);function S(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(o,i,a,s){var c=f(e[o],e,i);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==Vo(l)&&r.call(l,"__await")?t.resolve(l.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(l).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function $(t,n,r){var o=d;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===p){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=_(s,r);if(c){if(c===m)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=v;var u=f(t,n,r);if("normal"===u.type){if(o=r.done?p:h,u.arg===m)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=p,r.method="throw",r.arg=u.arg)}}}function _(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,_(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function E(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(Vo(t)+" is not iterable")}return y.prototype=b,o(j,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:y,configurable:!0}),y.displayName=u(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,c,"GeneratorFunction")),e.prototype=Object.create(j),e},t.awrap=function(e){return{__await:e}},S(C.prototype),u(C.prototype,s,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new C(l(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(j),u(j,c,"Generator"),u(j,a,(function(){return this})),u(j,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=E,A.prototype={constructor:A,reset:function(t){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(M),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),M(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;M(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:E(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}function xo(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function ko(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){xo(i,r,o,a,s,"next",e)}function s(e){xo(i,r,o,a,s,"throw",e)}a(void 0)}))}}function jo(e,t){return Co(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||Lo(e,t)||So()}function So(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Co(e){if(Array.isArray(e))return e}function $o(e){var t="function"==typeof Map?new Map:void 0;return $o=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(Oo())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&Eo(o,n.prototype),o}(e,arguments,Mo(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Eo(n,e)},$o(e)}function _o(e,t,n){return t=Mo(t),function(e,t){if(t&&("object"===Vo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Oo()?Reflect.construct(t,n||[],Mo(e).constructor):t.apply(e,n))}function Oo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Oo=function(){return!!e})()}function Mo(e){return Mo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Mo(e)}function Ao(e,t){if("function"!=typeof t&&null!==t)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&&Eo(e,t)}function Eo(e,t){return Eo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Eo(e,t)}function Po(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function To(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Po(Object(n),!0).forEach((function(t){Do(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Po(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ro(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function No(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,zo(r.key),r)}}function Io(e,t,n){return t&&No(e.prototype,t),n&&No(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Do(e,t,n){return(t=zo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zo(e){var t=function(e,t){if("object"!=Vo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Vo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Vo(t)?t:t+""}function Bo(e){return function(e){if(Array.isArray(e))return Fo(e)}(e)||qo(e)||Lo(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Lo(e,t){if(e){if("string"==typeof e)return Fo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fo(e,t):void 0}}function qo(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Fo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Vo(e){return Vo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vo(e)}function Ho(){}var Wo=function(e){return e};function Uo(e,t){for(var n in t)e[n]=t[n];return e}function Jo(e){return e()}function Ko(){return Object.create(null)}function Go(e){e.forEach(Jo)}function Qo(e){return"function"==typeof e}function Yo(e,t){return e!=e?t==t:e!==t||e&&"object"===Vo(e)||"function"==typeof e}function Xo(e,t){return e!=e?t==t:e!==t}function Zo(e,t,n,r){if(e){var o=ei(e,t,n,r);return e[0](o)}}function ei(e,t,n,r){return e[1]&&r?Uo(n.ctx.slice(),e[1](r(t))):n.ctx}function ti(e,t,n,r){if(e[2]&&r){var o=e[2](r(n));if(void 0===t.dirty)return o;if("object"===Vo(o)){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 ni(e,t,n,r,o,i){if(o){var a=ei(t,n,r,i);e.p(a,o)}}function ri(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 oi(e){var t={};for(var n in e)"$"!==n[0]&&(t[n]=e[n]);return t}function ii(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 ai(e){return null==e?"":e}function si(e){return e&&Qo(e.destroy)?e.destroy:Ho}var ci="undefined"!=typeof window,ui=ci?function(){return window.performance.now()}:function(){return Date.now()},li=ci?function(e){return requestAnimationFrame(e)}:Ho,fi=new Set;function di(e){fi.forEach((function(t){t.c(e)||(fi.delete(t),t.f())})),0!==fi.size&&li(di)}var hi="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function vi(e,t){e.appendChild(t)}function pi(e,t,n){var r=mi(e);if(!r.getElementById(t)){var o=ki("style");o.id=t,o.textContent=n,yi(r,o)}}function mi(e){if(!e)return document;var t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function gi(e){var t=ki("style");return t.textContent="/* empty */",yi(mi(e),t),t.sheet}function yi(e,t){return vi(e.head||e,t),t.sheet}function bi(e,t,n){e.insertBefore(t,n||null)}function wi(e){e.parentNode&&e.parentNode.removeChild(e)}function xi(e,t){for(var n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function ki(e){return document.createElement(e)}function ji(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Si(e){return document.createTextNode(e)}function Ci(){return Si(" ")}function $i(){return Si("")}function _i(e,t,n,r){return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n,r)}}function Oi(e){return function(t){return t.preventDefault(),e.call(this,t)}}function Mi(e){return function(t){return t.stopPropagation(),e.call(this,t)}}function Ai(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}var Ei=["width","height"];function Pi(e,t){var n=Object.getOwnPropertyDescriptors(e.__proto__);for(var r in t)null==t[r]?e.removeAttribute(r):"style"===r?e.style.cssText=t[r]:"__value"===r?e.value=e[r]=t[r]:n[r]&&n[r].set&&-1===Ei.indexOf(r)?e[r]=t[r]:Ai(e,r,t[r])}function Ti(e,t){for(var n in t)Ai(e,n,t[n])}function Ri(e,t){t=""+t,e.data!==t&&(e.data=t)}function Ni(e,t){e.value=null==t?"":t}function Ii(e,t,n,r){null==n?e.style.removeProperty(t):e.style.setProperty(t,n,r?"important":"")}function Di(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&&void 0===t||(e.selectedIndex=-1)}function zi(e,t,n){e.classList.toggle(t,!!n)}function Bi(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.bubbles,o=void 0!==r&&r,i=n.cancelable;return new CustomEvent(e,{detail:t,bubbles:o,cancelable:void 0!==i&&i})}function Li(e,t){return new e(t)}var qi,Fi=new Map,Vi=0;function Hi(e,t,n,r,o,i,a){for(var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,c=16.666/r,u="{\n",l=0;l<=1;l+=c){var f=t+(n-t)*i(l);u+=100*l+"%{".concat(a(f,1-f),"}\n")}var d=u+"100% {".concat(a(n,1-n),"}\n}"),h="__svelte_".concat(function(e){for(var t=5381,n=e.length;n--;)t=(t<<5)-t^e.charCodeAt(n);return t>>>0}(d),"_").concat(s),v=mi(e),p=Fi.get(v)||function(e,t){var n={stylesheet:gi(t),rules:{}};return Fi.set(e,n),n}(v,e),m=p.stylesheet,g=p.rules;g[h]||(g[h]=!0,m.insertRule("@keyframes ".concat(h," ").concat(d),m.cssRules.length));var y=e.style.animation||"";return e.style.animation="".concat(y?"".concat(y,", "):"").concat(h," ").concat(r,"ms linear ").concat(o,"ms 1 both"),Vi+=1,h}function Wi(e,t){var n=(e.style.animation||"").split(", "),r=n.filter(t?function(e){return e.indexOf(t)<0}:function(e){return-1===e.indexOf("__svelte")}),o=n.length-r.length;o&&(e.style.animation=r.join(", "),(Vi-=o)||li((function(){Vi||(Fi.forEach((function(e){var t=e.stylesheet.ownerNode;t&&wi(t)})),Fi.clear())})))}function Ui(e){qi=e}function Ji(){if(!qi)throw new Error("Function called outside component initialization");return qi}function Ki(e){Ji().$$.on_mount.push(e)}function Gi(e){Ji().$$.on_destroy.push(e)}function Qi(){var e=Ji();return function(t,n){var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).cancelable,o=void 0!==r&&r,i=e.$$.callbacks[t];if(i){var a=Bi(t,n,{cancelable:o});return i.slice().forEach((function(t){t.call(e,a)})),!a.defaultPrevented}return!0}}function Yi(e,t){return Ji().$$.context.set(e,t),t}function Xi(e){return Ji().$$.context.get(e)}function Zi(e,t){var n=this,r=e.$$.callbacks[t.type];r&&r.slice().forEach((function(e){return e.call(n,t)}))}var ea=[],ta=[],na=[],ra=[],oa=Promise.resolve(),ia=!1;function aa(){ia||(ia=!0,oa.then(ha))}function sa(){return aa(),oa}function ca(e){na.push(e)}function ua(e){ra.push(e)}var la,fa=new Set,da=0;function ha(){if(0===da){var e=qi;do{try{for(;da<ea.length;){var t=ea[da];da++,Ui(t),va(t.$$)}}catch(e){throw ea.length=0,da=0,e}for(Ui(null),ea.length=0,da=0;ta.length;)ta.pop()();for(var n=0;n<na.length;n+=1){var r=na[n];fa.has(r)||(fa.add(r),r())}na.length=0}while(ea.length);for(;ra.length;)ra.pop()();ia=!1,fa.clear(),Ui(e)}}function va(e){if(null!==e.fragment){e.update(),Go(e.before_update);var t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(ca)}}function pa(e,t,n){e.dispatchEvent(Bi("".concat(t?"intro":"outro").concat(n)))}var ma,ga=new Set;function ya(){ma={r:0,c:[],p:ma}}function ba(){ma.r||Go(ma.c),ma=ma.p}function wa(e,t){e&&e.i&&(ga.delete(e),e.i(t))}function xa(e,t,n,r){if(e&&e.o){if(ga.has(e))return;ga.add(e),ma.c.push((function(){ga.delete(e),r&&(n&&e.d(1),r())})),e.o(t)}else r&&r()}var ka={duration:0};function ja(e,t,n,r){var o,i=t(e,n,{direction:"both"}),a=r?0:1,s=null,c=null,u=null;function l(){u&&Wi(e,u)}function f(e,t){var n=e.b-a;return t*=Math.abs(n),{a:a,b:e.b,d:n,duration:t,start:e.start,end:e.start+t,group:e.group}}function d(t){var n,r=i||ka,d=r.delay,h=void 0===d?0:d,v=r.duration,p=void 0===v?300:v,m=r.easing,g=void 0===m?Wo:m,y=r.tick,b=void 0===y?Ho:y,w=r.css,x={start:ui()+h,b:t};t||(x.group=ma,ma.r+=1),"inert"in e&&(t?void 0!==o&&(e.inert=o):(o=e.inert,e.inert=!0)),s||c?c=x:(w&&(l(),u=Hi(e,a,t,p,h,g,w)),t&&b(0,1),s=f(x,p),ca((function(){return pa(e,t,"start")})),n=function(t){if(c&&t>c.start&&(s=f(c,p),c=null,pa(e,s.b,"start"),w&&(l(),u=Hi(e,a,s.b,s.duration,0,g,i.css))),s)if(t>=s.end)b(a=s.b,1-a),pa(e,s.b,"end"),c||(s.b?l():--s.group.r||Go(s.group.c)),s=null;else if(t>=s.start){var n=t-s.start;a=s.a+s.d*g(n/s.duration),b(a,1-a)}return!(!s&&!c)},0===fi.size&&li(di),new Promise((function(e){fi.add({c:n,f:e})})))}return{run:function(e){Qo(i)?(la||(la=Promise.resolve()).then((function(){la=null})),la).then((function(){i=i({direction:e?"in":"out"}),d(e)})):d(e)},end:function(){l(),s=c=null}}}function Sa(e){return void 0!==(null==e?void 0:e.length)?e:Array.from(e)}function Ca(e,t){e.d(1),t.delete(e.key)}function $a(e,t){xa(e,1,1,(function(){t.delete(e.key)}))}function _a(e,t,n,r,o,i,a,s,c,u,l,f){for(var d=e.length,h=i.length,v=d,p={};v--;)p[e[v].key]=v;var m=[],g=new Map,y=new Map,b=[];v=h;for(var w=function(){var e=f(o,i,v),s=n(e),c=a.get(s);c?r&&b.push((function(){return c.p(e,t)})):(c=u(s,e)).c(),g.set(s,m[v]=c),s in p&&y.set(s,Math.abs(v-p[s]))};v--;)w();var x=new Set,k=new Set;function j(e){wa(e,1),e.m(s,l),a.set(e.key,e),l=e.first,h--}for(;d&&h;){var S=m[h-1],C=e[d-1],$=S.key,_=C.key;S===C?(l=S.first,d--,h--):g.has(_)?!a.has($)||x.has($)?j(S):k.has(_)?d--:y.get($)>y.get(_)?(k.add($),j(S)):(x.add(_),d--):(c(C,a),d--)}for(;d--;){var O=e[d];g.has(O.key)||c(O,a)}for(;h;)j(m[h-1]);return Go(b),m}function Oa(e,t){for(var n={},r={},o={$$scope:1},i=e.length;i--;){var a=e[i],s=t[i];if(s){for(var c in a)c in s||(r[c]=1);for(var u in s)o[u]||(n[u]=s[u],o[u]=1);e[i]=s}else for(var l in a)o[l]=1}for(var f in r)f in n||(n[f]=void 0);return n}function Ma(e){return"object"===Vo(e)&&null!==e?e:{}}function Aa(e,t,n){var r=e.$$.props[t];void 0!==r&&(e.$$.bound[r]=n,n(e.$$.ctx[r]))}function Ea(e){e&&e.c()}function Pa(e,t,n){var r=e.$$,o=r.fragment,i=r.after_update;o&&o.m(t,n),ca((function(){var t,n=e.$$.on_mount.map(Jo).filter(Qo);e.$$.on_destroy?(t=e.$$.on_destroy).push.apply(t,Bo(n)):Go(n);e.$$.on_mount=[]})),i.forEach(ca)}function Ta(e,t){var n,r,o,i=e.$$;null!==i.fragment&&(n=i.after_update,r=[],o=[],na.forEach((function(e){return-1===n.indexOf(e)?r.push(e):o.push(e)})),o.forEach((function(e){return e()})),na=r,Go(i.on_destroy),i.fragment&&i.fragment.d(t),i.on_destroy=i.fragment=null,i.ctx=[])}function Ra(e,t,n,r,o,i){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[-1],c=qi;Ui(e);var u=e.$$={fragment:null,ctx:[],props:i,update:Ho,not_equal:o,bound:Ko(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(c?c.$$.context:[])),callbacks:Ko(),dirty:s,skip_bound:!1,root:t.target||c.$$.root};a&&a(u.root);var l=!1;if(u.ctx=n?n(e,t.props||{},(function(t,n){var r=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:n;return u.ctx&&o(u.ctx[t],u.ctx[t]=r)&&(!u.skip_bound&&u.bound[t]&&u.bound[t](r),l&&function(e,t){-1===e.$$.dirty[0]&&(ea.push(e),aa(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}(e,t)),n})):[],u.update(),l=!0,Go(u.before_update),u.fragment=!!r&&r(u.ctx),t.target){if(t.hydrate){var f=function(e){return Array.from(e.childNodes)}(t.target);u.fragment&&u.fragment.l(f),f.forEach(wi)}else u.fragment&&u.fragment.c();t.intro&&wa(e.$$.fragment),Pa(e,t.target,t.anchor),ha()}Ui(c)}var Na=function(){return Io((function e(){Ro(this,e),Do(this,"$$",void 0),Do(this,"$$set",void 0)}),[{key:"$destroy",value:function(){Ta(this,1),this.$destroy=Ho}},{key:"$on",value:function(e,t){if(!Qo(t))return Ho;var n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}}},{key:"$set",value:function(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}])}();function Ia(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){var t=function(e){try{if("undefined"!=typeof window&&void 0!==window.localStorage)return window.localStorage[e]}catch(e){}}("debug");return null!=t&&t.endsWith("*")?e.startsWith(t.slice(0,-1)):e===t}(e);if(!t)return Da;var n=function(e){for(var t=0,n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return za[Math.abs(t)%za.length]}(e);return function(){for(var t,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];(t=console).log.apply(t,["%c".concat(e),"color:".concat(n)].concat(o))}}function Da(){}"undefined"!=typeof window&&(window.__svelte||(window.__svelte={v:new Set})).v.add("4");var za=["#0000CC","#0099FF","#009400","#8dd200","#CCCC00","#CC9933","#ae04e7","#ff35d7","#FF3333","#FF6600","#FF9933","#FFCC33"];function Ba(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.delay,r=void 0===n?0:n,o=t.duration,i=void 0===o?400:o,a=t.easing,s=void 0===a?Wo:a,c=+getComputedStyle(e).opacity;return{delay:r,duration:i,easing:s,css:function(e){return"opacity: ".concat(e*c)}}}var La=hi.window;function qa(e){pi(e,"svelte-n7cvum",".svelte-n7cvum{box-sizing:border-box}.bg.svelte-n7cvum{position:fixed;z-index:1000;top:0;left:0;display:flex;flex-direction:column;justify-content:center;width:100vw;height:100vh;background:rgba(0, 0, 0, 0.66)}@supports (-webkit-touch-callout: none){}.wrap.svelte-n7cvum{position:relative;margin:2rem;max-height:100%}.window.svelte-n7cvum{position:relative;width:40rem;max-width:100%;max-height:100%;margin:2rem auto;color:black;border-radius:0.5rem;background:white}.content.svelte-n7cvum{position:relative;padding:1rem;max-height:calc(100vh - 4rem);overflow:auto}.close.svelte-n7cvum{display:block;box-sizing:border-box;position:absolute;z-index:1000;top:1rem;right:1rem;margin:0;padding:0;width:1.5rem;height:1.5rem;border:0;color:black;border-radius:1.5rem;background:white;box-shadow:0 0 0 1px black;transition:transform 0.2s cubic-bezier(0.25, 0.1, 0.25, 1),\n      background 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);-webkit-appearance:none}.close.svelte-n7cvum:before,.close.svelte-n7cvum:after{content:'';display:block;box-sizing:border-box;position:absolute;top:50%;width:1rem;height:1px;background:black;transform-origin:center;transition:height 0.2s cubic-bezier(0.25, 0.1, 0.25, 1),\n      background 0.2s cubic-bezier(0.25, 0.1, 0.25, 1)}.close.svelte-n7cvum:before{-webkit-transform:translate(0, -50%) rotate(45deg);-moz-transform:translate(0, -50%) rotate(45deg);transform:translate(0, -50%) rotate(45deg);left:0.25rem}.close.svelte-n7cvum:after{-webkit-transform:translate(0, -50%) rotate(-45deg);-moz-transform:translate(0, -50%) rotate(-45deg);transform:translate(0, -50%) rotate(-45deg);left:0.25rem}.close.svelte-n7cvum:hover{background:black}.close.svelte-n7cvum:hover:before,.close.svelte-n7cvum:hover:after{height:2px;background:white}.close.svelte-n7cvum:focus{border-color:#3399ff;box-shadow:0 0 0 2px #3399ff}.close.svelte-n7cvum:active{transform:scale(0.9)}.close.svelte-n7cvum:hover,.close.svelte-n7cvum:focus,.close.svelte-n7cvum:active{outline:none}")}function Fa(e){var t,n,r,o,i,a,s,c,u,l,f,d,h,v,p,m,g,y,b=e[1].closeButton&&Va(e),w=e[2];return w&&(a=Li(w,{})),{c:function(){t=ki("div"),n=ki("div"),r=ki("div"),b&&b.c(),o=Ci(),i=ki("div"),a&&Ea(a.$$.fragment),Ai(i,"class",s=ai(e[1].classContent)+" svelte-n7cvum"),Ai(i,"style",e[9]),zi(i,"content",!e[0]),Ai(r,"class",c=ai(e[1].classWindow)+" svelte-n7cvum"),Ai(r,"role","dialog"),Ai(r,"aria-modal","true"),Ai(r,"aria-label",u=e[1].ariaLabelledBy?null:e[1].ariaLabel||null),Ai(r,"aria-labelledby",l=e[1].ariaLabelledBy||null),Ai(r,"style",e[8]),zi(r,"window",!e[0]),Ai(n,"class",d=ai(e[1].classWindowWrap)+" svelte-n7cvum"),Ai(n,"style",e[7]),zi(n,"wrap",!e[0]),Ai(t,"aria-hidden","true"),Ai(t,"id",h=e[1].id),Ai(t,"class",v=ai(e[1].classBg)+" svelte-n7cvum"),Ai(t,"style",e[6]),zi(t,"bg",!e[0])},m:function(s,c){bi(s,t,c),vi(t,n),vi(n,r),b&&b.m(r,null),vi(r,o),vi(r,i),a&&Pa(a,i,null),e[50](r),e[51](n),e[52](t),m=!0,g||(y=[_i(r,"introstart",(function(){Qo(e[13])&&e[13].apply(this,arguments)})),_i(r,"outrostart",(function(){Qo(e[14])&&e[14].apply(this,arguments)})),_i(r,"introend",(function(){Qo(e[15])&&e[15].apply(this,arguments)})),_i(r,"outroend",(function(){Qo(e[16])&&e[16].apply(this,arguments)})),_i(t,"mousedown",e[20]),_i(t,"mouseup",e[21])],g=!0)},p:function(f,p){if((e=f)[1].closeButton?b?(b.p(e,p),2&p[0]&&wa(b,1)):((b=Va(e)).c(),wa(b,1),b.m(r,o)):b&&(ya(),xa(b,1,1,(function(){b=null})),ba()),4&p[0]&&w!==(w=e[2])){if(a){ya();var g=a;xa(g.$$.fragment,1,0,(function(){Ta(g,1)})),ba()}w?(Ea((a=Li(w,{})).$$.fragment),wa(a.$$.fragment,1),Pa(a,i,null)):a=null}(!m||2&p[0]&&s!==(s=ai(e[1].classContent)+" svelte-n7cvum"))&&Ai(i,"class",s),(!m||512&p[0])&&Ai(i,"style",e[9]),(!m||3&p[0])&&zi(i,"content",!e[0]),(!m||2&p[0]&&c!==(c=ai(e[1].classWindow)+" svelte-n7cvum"))&&Ai(r,"class",c),(!m||2&p[0]&&u!==(u=e[1].ariaLabelledBy?null:e[1].ariaLabel||null))&&Ai(r,"aria-label",u),(!m||2&p[0]&&l!==(l=e[1].ariaLabelledBy||null))&&Ai(r,"aria-labelledby",l),(!m||256&p[0])&&Ai(r,"style",e[8]),(!m||3&p[0])&&zi(r,"window",!e[0]),(!m||2&p[0]&&d!==(d=ai(e[1].classWindowWrap)+" svelte-n7cvum"))&&Ai(n,"class",d),(!m||128&p[0])&&Ai(n,"style",e[7]),(!m||3&p[0])&&zi(n,"wrap",!e[0]),(!m||2&p[0]&&h!==(h=e[1].id))&&Ai(t,"id",h),(!m||2&p[0]&&v!==(v=ai(e[1].classBg)+" svelte-n7cvum"))&&Ai(t,"class",v),(!m||64&p[0])&&Ai(t,"style",e[6]),(!m||3&p[0])&&zi(t,"bg",!e[0])},i:function(n){m||(wa(b),a&&wa(a.$$.fragment,n),n&&ca((function(){m&&(f||(f=ja(r,e[12],e[1].transitionWindowProps,!0)),f.run(1))})),n&&ca((function(){m&&(p||(p=ja(t,e[11],e[1].transitionBgProps,!0)),p.run(1))})),m=!0)},o:function(n){xa(b),a&&xa(a.$$.fragment,n),n&&(f||(f=ja(r,e[12],e[1].transitionWindowProps,!1)),f.run(0)),n&&(p||(p=ja(t,e[11],e[1].transitionBgProps,!1)),p.run(0)),m=!1},d:function(n){n&&wi(t),b&&b.d(),a&&Ta(a),e[50](null),n&&f&&f.end(),e[51](null),e[52](null),n&&p&&p.end(),g=!1,Go(y)}}}function Va(e){var t,n,r,o,i,a=[Wa,Ha],s=[];function c(e,n){return 2&n[0]&&(t=null),null==t&&(t=!!e[17](e[1].closeButton)),t?0:1}return n=c(e,[-1,-1,-1]),r=s[n]=a[n](e),{c:function(){r.c(),o=$i()},m:function(e,t){s[n].m(e,t),bi(e,o,t),i=!0},p:function(e,t){var i=n;(n=c(e,t))===i?s[n].p(e,t):(ya(),xa(s[i],1,1,(function(){s[i]=null})),ba(),(r=s[n])?r.p(e,t):(r=s[n]=a[n](e)).c(),wa(r,1),r.m(o.parentNode,o))},i:function(e){i||(wa(r),i=!0)},o:function(e){xa(r),i=!1},d:function(e){e&&wi(o),s[n].d(e)}}}function Ha(e){var t,n,r,o;return{c:function(){Ai(t=ki("button"),"class",n=ai(e[1].classCloseButton)+" svelte-n7cvum"),Ai(t,"aria-label","Close modal"),Ai(t,"style",e[10]),Ai(t,"type","button"),zi(t,"close",!e[0])},m:function(n,i){bi(n,t,i),r||(o=_i(t,"click",e[18]),r=!0)},p:function(e,r){2&r[0]&&n!==(n=ai(e[1].classCloseButton)+" svelte-n7cvum")&&Ai(t,"class",n),1024&r[0]&&Ai(t,"style",e[10]),3&r[0]&&zi(t,"close",!e[0])},i:Ho,o:Ho,d:function(e){e&&wi(t),r=!1,o()}}}function Wa(e){var t,n,r,o=e[1].closeButton;function i(e,t){return{props:{onClose:e[18]}}}return o&&(t=Li(o,i(e))),{c:function(){t&&Ea(t.$$.fragment),n=$i()},m:function(e,o){t&&Pa(t,e,o),bi(e,n,o),r=!0},p:function(e,r){if(2&r[0]&&o!==(o=e[1].closeButton)){if(t){ya();var a=t;xa(a.$$.fragment,1,0,(function(){Ta(a,1)})),ba()}o?(Ea((t=Li(o,i(e))).$$.fragment),wa(t.$$.fragment,1),Pa(t,n.parentNode,n)):t=null}},i:function(e){r||(t&&wa(t.$$.fragment,e),r=!0)},o:function(e){t&&xa(t.$$.fragment,e),r=!1},d:function(e){e&&wi(n),t&&Ta(t,e)}}}function Ua(e){var t,n,r,o,i=e[2]&&Fa(e),a=e[49].default,s=Zo(a,e,e[48],null);return{c:function(){i&&i.c(),t=Ci(),s&&s.c()},m:function(a,c){i&&i.m(a,c),bi(a,t,c),s&&s.m(a,c),n=!0,r||(o=_i(La,"keydown",e[19]),r=!0)},p:function(e,r){e[2]?i?(i.p(e,r),4&r[0]&&wa(i,1)):((i=Fa(e)).c(),wa(i,1),i.m(t.parentNode,t)):i&&(ya(),xa(i,1,1,(function(){i=null})),ba()),s&&s.p&&(!n||131072&r[1])&&ni(s,a,e,e[48],n?ti(a,e[48],r,null):ri(e[48]),null)},i:function(e){n||(wa(i),wa(s,e),n=!0)},o:function(e){xa(i),xa(s,e),n=!1},d:function(e){e&&wi(t),i&&i.d(e),s&&s.d(e),r=!1,o()}}}function Ja(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){return new e(To(To({},n),{},{props:To(To({},t),n.props)}))}}function Ka(e,t,n){var r,o,i,a,s,c,u,l,f,d,h,v,p,m,g,y=t.$$slots,b=void 0===y?{}:y,w=t.$$scope,x=Qi(),k=Yi,j=t.isTabbable,S=void 0===j?function(e){return e.tabIndex>=0&&!e.hidden&&!e.disabled&&"none"!==e.style.display&&"hidden"!==e.type&&Boolean(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}:j,C=t.show,$=void 0===C?null:C,_=t.id,O=void 0===_?null:_,M=t.key,A=void 0===M?"simple-modal":M,E=t.ariaLabel,P=void 0===E?null:E,T=t.ariaLabelledBy,R=void 0===T?null:T,N=t.closeButton,I=void 0===N||N,D=t.closeOnEsc,z=void 0===D||D,B=t.closeOnOuterClick,L=void 0===B||B,q=t.styleBg,F=void 0===q?{}:q,V=t.styleWindowWrap,H=void 0===V?{}:V,W=t.styleWindow,U=void 0===W?{}:W,J=t.styleContent,K=void 0===J?{}:J,G=t.styleCloseButton,Q=void 0===G?{}:G,Y=t.classBg,X=void 0===Y?null:Y,Z=t.classWindowWrap,ee=void 0===Z?null:Z,te=t.classWindow,ne=void 0===te?null:te,re=t.classContent,oe=void 0===re?null:re,ie=t.classCloseButton,ae=void 0===ie?null:ie,se=t.unstyled,ce=void 0!==se&&se,ue=t.setContext,le=void 0===ue?k:ue,fe=t.transitionBg,de=void 0===fe?Ba:fe,he=t.transitionBgProps,ve=void 0===he?{duration:250}:he,pe=t.transitionWindow,me=void 0===pe?de:pe,ge=t.transitionWindowProps,ye=void 0===ge?ve:ge,be=t.disableFocusTrap,we=void 0!==be&&be,xe={id:O,ariaLabel:P,ariaLabelledBy:R,closeButton:I,closeOnEsc:z,closeOnOuterClick:L,styleBg:F,styleWindowWrap:H,styleWindow:U,styleContent:K,styleCloseButton:Q,classBg:X,classWindowWrap:ee,classWindow:ne,classContent:oe,classCloseButton:ae,transitionBg:de,transitionBgProps:ve,transitionWindow:me,transitionWindowProps:ye,disableFocusTrap:we,isTabbable:S,unstyled:ce},ke=To({},xe),je=null,Se=function(e){return e?Object.keys(e).reduce((function(t,n){return"".concat(t,"; ").concat(function(e){return e.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()}(n),": ").concat(e[n])}),""):""},Ce=function(e){return!!(e&&e.constructor&&e.call&&e.apply)},$e=function(){},_e=$e,Oe=$e,Me=$e,Ae=$e,Ee=function(e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};n(2,je=Ja(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})),n(1,ke=To(To({},xe),t)),n(6,s=Se(Object.assign({},{width:window.innerWidth,height:window.innerHeight},ke.styleBg))),n(7,c=Se(ke.styleWindowWrap)),n(8,u=Se(ke.styleWindow)),n(9,l=Se(ke.styleContent)),n(10,f=Se(ke.styleCloseButton)),n(11,d=ke.transitionBg),n(12,h=ke.transitionWindow),Te(),n(13,_e=function(e){r.onOpen&&r.onOpen(e),x("open"),x("opening")}),n(14,Oe=function(e){r.onClose&&r.onClose(e),x("close"),x("closing")}),n(15,Me=function(e){r.onOpened&&r.onOpened(e),x("opened")}),n(16,Ae=function(e){r.onClosed&&r.onClosed(e),x("closed")})},Pe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};je&&(n(14,Oe=e.onClose||Oe),n(16,Ae=e.onClosed||Ae),n(2,je=null),Re())},Te=function(){a=window.scrollY,v=document.body.style.position,p=document.body.style.overflow,m=document.body.style.width,document.body.style.position="fixed",document.body.style.top="-".concat(a,"px"),document.body.style.overflow="hidden",document.body.style.width="100%"},Re=function(){document.body.style.position=v||"",document.body.style.top="",document.body.style.overflow=p||"",document.body.style.width=m||"",window.scrollTo({top:a,left:0,behavior:"instant"})};le(A,{open:Ee,close:Pe});var Ne=!1;return Gi((function(){Ne&&Pe()})),Ki((function(){n(47,Ne=!0)})),e.$$set=function(e){"isTabbable"in e&&n(22,S=e.isTabbable),"show"in e&&n(23,$=e.show),"id"in e&&n(24,O=e.id),"key"in e&&n(25,A=e.key),"ariaLabel"in e&&n(26,P=e.ariaLabel),"ariaLabelledBy"in e&&n(27,R=e.ariaLabelledBy),"closeButton"in e&&n(28,I=e.closeButton),"closeOnEsc"in e&&n(29,z=e.closeOnEsc),"closeOnOuterClick"in e&&n(30,L=e.closeOnOuterClick),"styleBg"in e&&n(31,F=e.styleBg),"styleWindowWrap"in e&&n(32,H=e.styleWindowWrap),"styleWindow"in e&&n(33,U=e.styleWindow),"styleContent"in e&&n(34,K=e.styleContent),"styleCloseButton"in e&&n(35,Q=e.styleCloseButton),"classBg"in e&&n(36,X=e.classBg),"classWindowWrap"in e&&n(37,ee=e.classWindowWrap),"classWindow"in e&&n(38,ne=e.classWindow),"classContent"in e&&n(39,oe=e.classContent),"classCloseButton"in e&&n(40,ae=e.classCloseButton),"unstyled"in e&&n(0,ce=e.unstyled),"setContext"in e&&n(41,le=e.setContext),"transitionBg"in e&&n(42,de=e.transitionBg),"transitionBgProps"in e&&n(43,ve=e.transitionBgProps),"transitionWindow"in e&&n(44,me=e.transitionWindow),"transitionWindowProps"in e&&n(45,ye=e.transitionWindowProps),"disableFocusTrap"in e&&n(46,we=e.disableFocusTrap),"$$scope"in e&&n(48,w=e.$$scope)},e.$$.update=function(){8388608&e.$$.dirty[0]|65536&e.$$.dirty[1]&&Ne&&(Ce($)?Ee($):Pe())},[ce,ke,je,r,o,i,s,c,u,l,f,d,h,_e,Oe,Me,Ae,Ce,Pe,function(e){if(ke.closeOnEsc&&je&&"Escape"===e.key&&(e.preventDefault(),Pe()),je&&"Tab"===e.key&&!ke.disableFocusTrap){var t=i.querySelectorAll("*"),n=Array.from(t).filter(ke.isTabbable).sort((function(e,t){return e.tabIndex-t.tabIndex})),r=n.indexOf(document.activeElement);-1===r&&e.shiftKey&&(r=0),r+=n.length+(e.shiftKey?-1:1),n[r%=n.length].focus(),e.preventDefault()}},function(e){!ke.closeOnOuterClick||e.target!==r&&e.target!==o||(g=e.target)},function(e){ke.closeOnOuterClick&&e.target===g&&(e.preventDefault(),Pe())},S,$,O,A,P,R,I,z,L,F,H,U,K,Q,X,ee,ne,oe,ae,le,de,ve,me,ye,we,Ne,w,b,function(e){ta[e?"unshift":"push"]((function(){n(5,i=e)}))},function(e){ta[e?"unshift":"push"]((function(){n(4,o=e)}))},function(e){ta[e?"unshift":"push"]((function(){n(3,r=e)}))}]}var Ga,Qa,Ya,Xa,Za,es,ts,ns=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,Ka,Ua,Yo,{isTabbable:22,show:23,id:24,key:25,ariaLabel:26,ariaLabelledBy:27,closeButton:28,closeOnEsc:29,closeOnOuterClick:30,styleBg:31,styleWindowWrap:32,styleWindow:33,styleContent:34,styleCloseButton:35,classBg:36,classWindowWrap:37,classWindow:38,classContent:39,classCloseButton:40,unstyled:0,setContext:41,transitionBg:42,transitionBgProps:43,transitionWindow:44,transitionWindowProps:45,disableFocusTrap:46},qa,[-1,-1,-1]),n}return Ao(t,Na),Io(t)}();!function(e){e.text="text",e.tree="tree",e.table="table"}(Ga||(Ga={})),function(e){e.after="after",e.inside="inside",e.key="key",e.value="value",e.multi="multi",e.text="text"}(Qa||(Qa={})),function(e){e.after="after",e.key="key",e.value="value",e.inside="inside"}(Ya||(Ya={})),function(e){e.info="info",e.warning="warning",e.error="error"}(Xa||(Xa={})),function(e){e.key="key",e.value="value"}(Za||(Za={})),function(e){e.asc="asc",e.desc="desc"}(es||(es={})),function(e){e.no="no",e.self="self",e.nextInside="nextInside"}(ts||(ts={}));var rs=50,os=200,is=400,as=1200,ss=1e3,cs=100,us=100,ls=2e4,fs=[{start:0,end:cs}],ds=104857600,hs=1048576,vs=10485760,ps=10240,ms={closeButton:!1,classBg:"jse-modal-bg",classWindow:"jse-modal-window",classWindowWrap:"jse-modal-window-wrap",classContent:"jse-modal-container"},gs=To(To({},ms),{},{classWindow:"jse-modal-window jse-modal-window-sort"}),ys=To(To({},ms),{},{classWindow:"jse-modal-window jse-modal-window-transform"}),bs=To(To({},ms),{},{classWindow:"jse-modal-window jse-modal-window-jsoneditor"}),ws="Insert or paste contents, enter [ insert a new array, enter { to insert a new object, or start typing to insert a new value",xs="Open context menu (Click here, right click on the selection, or use the context menu button or Ctrl+Q)",ks="hover-insert-inside",js="hover-insert-after",Ss="hover-collection",Cs="valid",$s="repairable",_s=336,Os=260,Ms=100,As=Do(Do({},es.asc,"ascending"),es.desc,"descending"),Es=0;function Ps(){return++Es}function Ts(e){return Array.isArray(e)}function Rs(e){return null!==e&&"object"===Vo(e)&&(void 0===e.constructor||"Object"===e.constructor.name)}function Ns(e){return!(!e||"object"!==Vo(e))&&"add"===e.op}function Is(e){return!(!e||"object"!==Vo(e))&&"remove"===e.op}function Ds(e){return!(!e||"object"!==Vo(e))&&"replace"===e.op}function zs(e){return!(!e||"object"!==Vo(e))&&"copy"===e.op}function Bs(e){return!(!e||"object"!==Vo(e))&&"move"===e.op}function Ls(e,t){return e===t}function qs(e){return e.slice(0,e.length-1)}function Fs(e){return"object"===Vo(e)&&null!==e}function Vs(e){if(Ts(e)){var t=e.slice();return Object.getOwnPropertySymbols(e).forEach((function(n){t[n]=e[n]})),t}if(Rs(e)){var n=To({},e);return Object.getOwnPropertySymbols(e).forEach((function(t){n[t]=e[t]})),n}return e}function Hs(e,t,n){if(e[t]===n)return e;var r=Vs(e);return r[t]=n,r}function Ws(e,t){for(var n=e,r=0;r<t.length;)n=Rs(n)?n[t[r]]:Ts(n)?n[parseInt(t[r])]:void 0,r++;return n}function Us(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(0===t.length)return n;var o=t[0],i=Us(e?e[o]:void 0,t.slice(1),n,r);if(Rs(e)||Ts(e))return Hs(e,o,i);if(r){var a=Js.test(o)?[]:{};return a[o]=i,a}throw new Error("Path does not exist")}var Js=/^\d+$/;function Ks(e,t,n){if(0===t.length)return n(e);if(!Fs(e))throw new Error("Path doesn't exist");var r=t[0];return Hs(e,r,Ks(e[r],t.slice(1),n))}function Gs(e,t){if(0===t.length)return e;if(!Fs(e))throw new Error("Path does not exist");if(1===t.length){var n=t[0];if(n in e){var r=Vs(e);return Ts(r)&&r.splice(parseInt(n),1),Rs(r)&&delete r[n],r}return e}var o=t[0];return Hs(e,o,Gs(e[o],t.slice(1)))}function Qs(e,t,n){var r=t.slice(0,t.length-1),o=t[t.length-1];return Ks(e,r,(function(e){if(!Array.isArray(e))throw new TypeError("Array expected at path "+JSON.stringify(r));var t=Vs(e);return t.splice(parseInt(o),0,n),t}))}function Ys(e,t){return void 0!==e&&(0===t.length||null!==e&&Ys(e[t[0]],t.slice(1)))}function Xs(e){var t=e.split("/");return t.shift(),t.map((function(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}))}function Zs(e){return e.map(ec).join("")}function ec(e){return"/"+String(e).replace(/~/g,"~0").replace(/\//g,"~1")}function tc(e,t){return e+ec(t)}function nc(e,t){return e.startsWith(t)&&(e.length===t.length||"/"===e[t.length])}function rc(e,t,n){for(var r=e,o=0;o<t.length;o++){fc(t[o]);var i=t[o];if(n&&n.before){var a=n.before(r,i);if(void 0!==a){if(void 0!==a.document&&(r=a.document),void 0!==a.json)throw new Error('Deprecation warning: returned object property ".json" has been renamed to ".document"');void 0!==a.operation&&(i=a.operation)}}var s=r,c=dc(r,i.path);if("add"===i.op)r=ac(r,c,i.value);else if("remove"===i.op)r=ic(r,c);else if("replace"===i.op)r=oc(r,c,i.value);else if("copy"===i.op)r=sc(r,c,hc(i.from));else if("move"===i.op)r=cc(r,c,hc(i.from));else{if("test"!==i.op)throw new Error("Unknown JSONPatch operation "+JSON.stringify(i));uc(r,c,i.value)}if(n&&n.after){var u=n.after(r,i,s);void 0!==u&&(r=u)}}return r}function oc(e,t,n){return Us(e,t,n)}function ic(e,t){return Gs(e,t)}function ac(e,t,n){return lc(e,t)?Qs(e,t,n):Us(e,t,n)}function sc(e,t,n){var r=Ws(e,n);return lc(e,t)?Qs(e,t,r):Us(e,t,Ws(e,n))}function cc(e,t,n){var r=Ws(e,n),o=Gs(e,n);return lc(o,t)?Qs(o,t,r):Us(o,t,r)}function uc(e,t,n){if(void 0===n)throw new Error('Test failed: no value provided (path: "'.concat(Zs(t),'")'));if(!Ys(e,t))throw new Error('Test failed: path not found (path: "'.concat(Zs(t),'")'));var r,o,i=Ws(e,t);if(r=i,o=n,JSON.stringify(r)!==JSON.stringify(o))throw new Error('Test failed, value differs (path: "'.concat(Zs(t),'")'))}function lc(e,t){if(0===t.length)return!1;var n=Ws(e,qs(t));return Array.isArray(n)}function fc(e){if(!["add","remove","replace","copy","move","test"].includes(e.op))throw new Error("Unknown JSONPatch op "+JSON.stringify(e.op));if("string"!=typeof e.path)throw new Error('Required property "path" missing or not a string in operation '+JSON.stringify(e));if(("copy"===e.op||"move"===e.op)&&"string"!=typeof e.from)throw new Error('Required property "from" missing or not a string in operation '+JSON.stringify(e))}function dc(e,t){return function(e,t){if("-"!==function(e){return e[e.length-1]}(t))return t;var n=qs(t),r=Ws(e,n);return n.concat(r.length)}(e,Xs(t))}function hc(e){return Xs(e)}function vc(e,t,n){var r=[];return rc(e,t,{before:function(e,t){var o,i,a=dc(e,t.path);if("add"===t.op)o=gc(e,a);else if("remove"===t.op)o=mc(e,a);else if("replace"===t.op)o=pc(e,a);else if("copy"===t.op)o=function(e,t){return gc(e,t)}(e,a);else if("move"===t.op)o=function(e,t,n){if(t.length<n.length&&function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ls;if(e.length<t.length)return!1;for(var r=0;r<t.length;r++)if(!n(e[r],t[r]))return!1;return!0}(n,t))return[{op:"replace",path:Zs(t),value:e}];var r={op:"move",from:Zs(t),path:Zs(n)};return!lc(e,t)&&Ys(e,t)?[r].concat(Bo(mc(e,t))):[r]}(e,a,hc(t.from));else{if("test"!==t.op)throw new Error("Unknown JSONPatch operation "+JSON.stringify(t));o=[]}if(n&&n.before){var s=n.before(e,t,o);if(s&&s.revertOperations&&(o=s.revertOperations),s&&s.document&&(i=s.document),s&&s.json)throw new Error('Deprecation warning: returned object property ".json" has been renamed to ".document"')}if(r=o.concat(r),void 0!==i)return{document:i}}}),r}function pc(e,t){return[{op:"replace",path:Zs(t),value:Ws(e,t)}]}function mc(e,t){return[{op:"add",path:Zs(t),value:Ws(e,t)}]}function gc(e,t){return lc(e,t)||!Ys(e,t)?[{op:"remove",path:Zs(t)}]:pc(e,t)}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function yc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var bc={},wc={b:"\b",f:"\f",n:"\n",r:"\r",t:"\t",'"':'"',"/":"/","\\":"\\"},xc="a".charCodeAt();bc.parse=function(e,t,n){var r={},o=0,i=0,a=0,s=n&&n.bigint&&"undefined"!=typeof BigInt;return{data:c("",!0),pointers:r};function c(t,n){var r;u(),m(t,"value");var o=d();switch(o){case"t":f("rue"),r=!0;break;case"f":f("alse"),r=!1;break;case"n":f("ull"),r=null;break;case'"':r=l();break;case"[":r=function(e){u();var t=[],n=0;if("]"==d())return t;h();for(;;){var r=e+"/"+n;t.push(c(r)),u();var o=d();if("]"==o)break;","!=o&&w(),u(),n++}return t}(t);break;case"{":r=function(e){u();var t={};if("}"==d())return t;h();for(;;){var n=y();'"'!=d()&&w();var r=l(),o=e+"/"+Tc(r);g(o,"key",n),m(o,"keyEnd"),u(),":"!=d()&&w(),u(),t[r]=c(o),u();var i=d();if("}"==i)break;","!=i&&w(),u()}return t}(t);break;default:h(),"-0123456789".indexOf(o)>=0?r=function(){var t="",n=!0;"-"==e[a]&&(t+=d());t+="0"==e[a]?d():p(),"."==e[a]&&(t+=d()+p(),n=!1);"e"!=e[a]&&"E"!=e[a]||(t+=d(),"+"!=e[a]&&"-"!=e[a]||(t+=d()),t+=p(),n=!1);var r=+t;return s&&n&&(r>Number.MAX_SAFE_INTEGER||r<Number.MIN_SAFE_INTEGER)?BigInt(t):r}():b()}return m(t,"valueEnd"),u(),n&&a<e.length&&b(),r}function u(){e:for(;a<e.length;){switch(e[a]){case" ":i++;break;case"\t":i+=4;break;case"\r":i=0;break;case"\n":i=0,o++;break;default:break e}a++}}function l(){for(var e,t="";'"'!=(e=d());)"\\"==e?(e=d())in wc?t+=wc[e]:"u"==e?t+=v():w():t+=e;return t}function f(e){for(var t=0;t<e.length;t++)d()!==e[t]&&w()}function d(){x();var t=e[a];return a++,i++,t}function h(){a--,i--}function v(){for(var e=4,t=0;e--;){t<<=4;var n=d().toLowerCase();n>="a"&&n<="f"?t+=n.charCodeAt()-xc+10:n>="0"&&n<="9"?t+=+n:w()}return String.fromCharCode(t)}function p(){for(var t="";e[a]>="0"&&e[a]<="9";)t+=d();if(t.length)return t;x(),b()}function m(e,t){g(e,t,y())}function g(e,t,n){r[e]=r[e]||{},r[e][t]=n}function y(){return{line:o,column:i,pos:a}}function b(){throw new SyntaxError("Unexpected token "+e[a]+" in JSON at position "+a)}function w(){h(),b()}function x(){if(a>=e.length)throw new SyntaxError("Unexpected end of JSON input")}},bc.stringify=function(e,t,n){if(jc(e)){var r,o,i=0,a="object"==Vo(n)?n.space:n;switch(Vo(a)){case"number":var s=a>10?10:a<0?0:Math.floor(a);a=s&&y(s," "),r=s,o=s;break;case"string":a=a.slice(0,10),r=0,o=0;for(var c=0;c<a.length;c++){switch(a[c]){case" ":o++;break;case"\t":o+=4;break;case"\r":o=0;break;case"\n":o=0,i++;break;default:throw new Error("whitespace characters not allowed in JSON")}r++}break;default:a=void 0}var u="",l={},f=0,d=0,h=0,v=n&&n.es6&&"function"==typeof Map;return function e(t,n,r){switch(g(r,"value"),Vo(t)){case"number":case"bigint":case"boolean":p(""+t);break;case"string":p(Ac(t));break;case"object":null===t?p("null"):"function"==typeof t.toJSON?p(Ac(t.toJSON())):Array.isArray(t)?o():v?t.constructor.BYTES_PER_ELEMENT?o():t instanceof Map?s():t instanceof Set?s(!0):i():i()}function o(){if(t.length){p("[");for(var o=n+1,i=0;i<t.length;i++){i&&p(","),m(o);var a=jc(t[i])?t[i]:null;e(a,o,r+"/"+i)}m(n),p("]")}else p("[]")}function i(){var o=Object.keys(t);if(o.length){p("{");for(var i=n+1,s=0;s<o.length;s++){var c=o[s],u=t[c];if(jc(u)){s&&p(",");var l=r+"/"+Tc(c);m(i),g(l,"key"),p(Ac(c)),g(l,"keyEnd"),p(":"),a&&p(" "),e(u,i,l)}}m(n),p("}")}else p("{}")}function s(o){if(t.size){p("{");for(var i=n+1,s=!0,c=t.entries(),u=c.next();!u.done;){var l=u.value,f=l[0],d=!!o||l[1];if(jc(d)){s||p(","),s=!1;var h=r+"/"+Tc(f);m(i),g(h,"key"),p(Ac(f)),g(h,"keyEnd"),p(":"),a&&p(" "),e(d,i,h)}u=c.next()}m(n),p("}")}else p("{}")}g(r,"valueEnd")}(e,0,""),{json:u,pointers:l}}function p(e){d+=e.length,h+=e.length,u+=e}function m(e){if(a){for(u+="\n"+y(e,a),f++,d=0;e--;)i?(f+=i,d=o):d+=o,h+=r;h+=1}}function g(e,t){l[e]=l[e]||{},l[e][t]={line:f,column:d,pos:h}}function y(e,t){return Array(e+1).join(t)}};var kc=["number","bigint","boolean","string","object"];function jc(e){return kc.indexOf(Vo(e))>=0}var Sc=/"|\\/g,Cc=/[\b]/g,$c=/\f/g,_c=/\n/g,Oc=/\r/g,Mc=/\t/g;function Ac(e){return'"'+(e=e.replace(Sc,"\\$&").replace($c,"\\f").replace(Cc,"\\b").replace(_c,"\\n").replace(Oc,"\\r").replace(Mc,"\\t"))+'"'}var Ec=/~/g,Pc=/\//g;function Tc(e){return e.replace(Ec,"~0").replace(Pc,"~1")}var Rc=function(e){function t(e,n){var r;return Ro(this,t),(r=_o(this,t,[e+" at position "+n])).position=n,r}return Ao(t,$o(Error)),Io(t)}(),Nc=92,Ic=47,Dc=42,zc=123,Bc=125,Lc=91,qc=93,Fc=40,Vc=41,Hc=32,Wc=10,Uc=9,Jc=13,Kc=8,Gc=12,Qc=34,Yc=43,Xc=45,Zc=39,eu=48,tu=57,nu=44,ru=46,ou=58,iu=59,au=65,su=97,cu=69,uu=101,lu=70,fu=102,du=160,hu=8192,vu=8202,pu=8239,mu=8287,gu=12288,yu=8220,bu=8221,wu=8216,xu=8217,ku=96,ju=180;function Su(e){return e>=eu&&e<=tu||e>=au&&e<=lu||e>=su&&e<=fu}function Cu(e){return e>=eu&&e<=tu}function $u(e){return e>=32&&e<=1114111}function _u(e){return Ou.test(e)}var Ou=/^[,:[\]/{}()\n+]$/;function Mu(e){return Au.test(e)||e&&Ru(e.charCodeAt(0))}var Au=/^[[{\w-]$/;function Eu(e){return e===Wc||e===Jc||e===Uc||e===Kc||e===Gc}function Pu(e){return e===Hc||e===Wc||e===Uc||e===Jc}function Tu(e){return e===du||e>=hu&&e<=vu||e===pu||e===mu||e===gu}function Ru(e){return Nu(e)||Du(e)}function Nu(e){return e===Qc||e===yu||e===bu}function Iu(e){return e===Qc}function Du(e){return e===Zc||e===wu||e===xu||e===ku||e===ju}function zu(e){return e===Zc}function Bu(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e.lastIndexOf(t);return-1!==r?e.substring(0,r)+(n?"":e.substring(r+1)):e}function Lu(e,t){var n=e.length;if(!Pu(e.charCodeAt(n-1)))return e+t;for(;Pu(e.charCodeAt(n-1));)n--;return e.substring(0,n)+t+e.substring(n)}function qu(e,t,n){return e.substring(0,t)+e.substring(t+n)}var Fu={"\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},Vu={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};function Hu(e){var t=0,n="";o()||function(){throw new Rc("Unexpected end of json string",e.length)}();var r=c(nu);for(r&&i(),Mu(e[t])&&function(e){return/[,\n][ \t\r]*$/.test(e)}(n)?(r||(n=Lu(n,",")),function(){var e=!0,t=!0;for(;t;){if(e)e=!1;else c(nu)||(n=Lu(n,","));t=o()}t||(n=Bu(n,","));n="[\n".concat(n,"\n]")}()):r&&(n=Bu(n,","));e.charCodeAt(t)===Bc||e.charCodeAt(t)===qc;)t++,i();if(t>=e.length)return n;function o(){i();var r=function(){if(e.charCodeAt(t)===zc){n+="{",t++,i();for(var r=!0;t<e.length&&e.charCodeAt(t)!==Bc;){if(r?(!0,r=!1):(c(nu)||(n=Lu(n,",")),i()),!(l()||h())){e.charCodeAt(t)===Bc||e.charCodeAt(t)===zc||e.charCodeAt(t)===qc||e.charCodeAt(t)===Lc||void 0===e[t]?n=Bu(n,","):y();break}i();var a=c(ou),s=t>=e.length;a||(Mu(e[t])||s?n=Lu(n,":"):b()),o()||(a||s?n+="null":b())}return e.charCodeAt(t)===Bc?(n+="}",t++):n=Lu(n,"}"),!0}return!1}()||function(){if(e.charCodeAt(t)===Lc){n+="[",t++,i();for(var r=!0;t<e.length&&e.charCodeAt(t)!==qc;){if(r)r=!1;else c(nu)||(n=Lu(n,","));if(!o()){n=Bu(n,",");break}}return e.charCodeAt(t)===qc?(n+="]",t++):n=Lu(n,"]"),!0}return!1}()||l()||function(){var r=t;if(e.charCodeAt(t)===Xc&&(t++,m(r)))return!0;for(;Cu(e.charCodeAt(t));)t++;if(e.charCodeAt(t)===ru){if(t++,m(r))return!0;for(;Cu(e.charCodeAt(t));)t++}if(e.charCodeAt(t)===uu||e.charCodeAt(t)===cu){if(t++,e.charCodeAt(t)!==Xc&&e.charCodeAt(t)!==Yc||t++,m(r))return!0;for(;Cu(e.charCodeAt(t));)t++}if(t>r){var o=e.slice(r,t),i=/^0\d/.test(o);return n+=i?'"'.concat(o,'"'):o,!0}return!1}()||d("true","true")||d("false","false")||d("null","null")||d("True","true")||d("False","false")||d("None","null")||h();return i(),r}function i(){var e=t,n=a();do{(n=s())&&(n=a())}while(n);return t>e}function a(){for(var r,o="";(r=Pu(e.charCodeAt(t)))||Tu(e.charCodeAt(t));)o+=r?e[t]:" ",t++;return o.length>0&&(n+=o,!0)}function s(){if(e.charCodeAt(t)===Ic&&e.charCodeAt(t+1)===Dc){for(;t<e.length&&!Wu(e,t);)t++;return t+=2,!0}if(e.charCodeAt(t)===Ic&&e.charCodeAt(t+1)===Ic){for(;t<e.length&&e.charCodeAt(t)!==Wc;)t++;return!0}return!1}function c(r){return e.charCodeAt(t)===r&&(n+=e[t],t++,!0)}function u(){return function(n){return e.charCodeAt(t)===n&&(t++,!0)}(Nc)}function l(){var r=arguments.length>0&&void 0!==arguments[0]&&arguments[0],o=e.charCodeAt(t)===Nc;if(o&&(t++,o=!0),Ru(e.charCodeAt(t))){var a=Iu(e.charCodeAt(t))?Iu:zu(e.charCodeAt(t))?zu:Du(e.charCodeAt(t))?Du:Nu,s=t,c=n.length,d='"';for(t++;;){if(t>=e.length)return r?(d=Lu(d,'"'),n+=d,!0):(t=s,n=n.substring(0,c),l(!0));if(a(e.charCodeAt(t))){var h=t,p=d.length;if(t++,n+=d+='"',i(),r||t>=e.length||_u(e.charAt(t))||Ru(e.charCodeAt(t)))return f(),!0;if(_u(e.charAt(v(h-1))))return t=s,n=n.substring(0,c),l(!0);n=n.substring(0,c),t=h+1,d=d.substring(0,p)+"\\"+d.substring(p)}else{if(r&&_u(e[t]))return d=Lu(d,'"'),n+=d,f(),!0;if(e.charCodeAt(t)===Nc){var m=e.charAt(t+1);if(void 0!==Vu[m])d+=e.slice(t,t+2),t+=2;else if("u"===m){for(var y=2;y<6&&Su(e.charCodeAt(t+y));)y++;6===y?(d+=e.slice(t,t+6),t+=6):t+y>=e.length?t=e.length:w()}else d+=m,t+=2}else{var b=e.charAt(t),x=e.charCodeAt(t);x===Qc&&e.charCodeAt(t-1)!==Nc?(d+="\\"+b,t++):Eu(x)?(d+=Fu[b],t++):($u(x)||g(b),d+=b,t++)}}o&&u()}}return!1}function f(){var r=!1;for(i();e.charCodeAt(t)===Yc;){r=!0,t++,i();var o=(n=Bu(n,'"',!0)).length,a=l();n=a?qu(n,o,1):Lu(n,'"')}return r}function d(r,o){return e.slice(t,t+r.length)===r&&(n+=o,t+=r.length,!0)}function h(){for(var r=t;t<e.length&&!_u(e[t])&&!Ru(e.charCodeAt(t));)t++;if(t>r){if(e.charCodeAt(t)===Fc)return t++,o(),e.charCodeAt(t)===Vc&&(t++,e.charCodeAt(t)===iu&&t++),!0;for(;Pu(e.charCodeAt(t-1))&&t>0;)t--;var i=e.slice(r,t);return n+="undefined"===i?"null":JSON.stringify(i),e.charCodeAt(t)===Qc&&t++,!0}}function v(t){for(var n=t;n>0&&Pu(e.charCodeAt(n));)n--;return n}function p(n){if(!Cu(e.charCodeAt(t))){var r=e.slice(n,t);throw new Rc("Invalid number '".concat(r,"', expecting a digit ").concat(e[t]?"but got '".concat(e[t],"'"):"but reached end of input"),t)}}function m(r){return t>=e.length?(n+=e.slice(r,t)+"0",!0):(p(r),!1)}function g(e){throw new Rc("Invalid character "+JSON.stringify(e),t)}function y(){throw new Rc("Object key expected",t)}function b(){throw new Rc("Colon expected",t)}function w(){var n=e.slice(t,t+6);throw new Rc('Invalid unicode character "'.concat(n,'"'),t)}!function(){throw new Rc("Unexpected character "+JSON.stringify(e[t]),t)}()}function Wu(e,t){return"*"===e[t]&&"/"===e[t+1]}function Uu(e){return parseInt(e,10)}function Ju(e){return Ku.test(e)}var Ku=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function Gu(e){return"object"===Vo(e)&&null!==e&&(void 0===e.constructor||"Object"===e.constructor.name)}function Qu(e){return"object"===Vo(e)&&null!==e&&(void 0===e.constructor||"Object"===e.constructor.name||"Array"===e.constructor.name)}function Yu(e){if("number"==typeof e)return e>9466848e5&&isFinite(e)&&Math.floor(e)===e&&!isNaN(new Date(e).valueOf());if("bigint"==typeof e)return Yu(Number(e));try{var t=e?e.valueOf():e;if(t!==e)return Yu(t)}catch(e){return!1}return!1}function Xu(e){(Zu=Zu||window.document.createElement("div")).style.color="",Zu.style.color=e;var t=Zu.style.color;return""!==t?t.replace(/\s+/g,"").toLowerCase():null}var Zu=null;function el(e,t){if("number"==typeof e||"string"==typeof e||"boolean"==typeof e||void 0===e)return Vo(e);if("bigint"==typeof e)return"number";if(null===e)return"null";if(Array.isArray(e))return"array";if(Gu(e))return"object";var n=t.stringify(e);return n&&Ju(n)?"number":"true"===n||"false"===n?"boolean":"null"===n?"null":"unknown"}var tl=/^https?:\/\/\S+$/;function nl(e){return"string"==typeof e&&tl.test(e)}function rl(e,t){if(""===e)return"";var n=e.trim();return"null"===n?null:"true"===n||"false"!==n&&(Ju(n)?t.parse(n):e)}function ol(e){return il.test(e)}var il=/^-?[0-9]+$/,al="object"==("undefined"==typeof global?"undefined":Vo(global))&&global&&global.Object===Object&&global,sl="object"==("undefined"==typeof self?"undefined":Vo(self))&&self&&self.Object===Object&&self,cl=al||sl||Function("return this")(),ul=cl.Symbol,ll=Object.prototype,fl=ll.hasOwnProperty,dl=ll.toString,hl=ul?ul.toStringTag:void 0;var vl=Object.prototype.toString;var pl="[object Null]",ml="[object Undefined]",gl=ul?ul.toStringTag:void 0;function yl(e){return null==e?void 0===e?ml:pl:gl&&gl in Object(e)?function(e){var t=fl.call(e,hl),n=e[hl];try{e[hl]=void 0;var r=!0}catch(e){}var o=dl.call(e);return r&&(t?e[hl]=n:delete e[hl]),o}(e):function(e){return vl.call(e)}(e)}function bl(e){return null!=e&&"object"==Vo(e)}var wl="[object Symbol]";function xl(e){return"symbol"==Vo(e)||bl(e)&&yl(e)==wl}var kl=NaN;function jl(e){return"number"==typeof e?e:xl(e)?kl:+e}function Sl(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var Cl=Array.isArray,$l=1/0,_l=ul?ul.prototype:void 0,Ol=_l?_l.toString:void 0;function Ml(e){if("string"==typeof e)return e;if(Cl(e))return Sl(e,Ml)+"";if(xl(e))return Ol?Ol.call(e):"";var t=e+"";return"0"==t&&1/e==-$l?"-0":t}function Al(e,t){return function(n,r){var o;if(void 0===n&&void 0===r)return t;if(void 0!==n&&(o=n),void 0!==r){if(void 0===o)return r;"string"==typeof n||"string"==typeof r?(n=Ml(n),r=Ml(r)):(n=jl(n),r=jl(r)),o=e(n,r)}return o}}var El=Al((function(e,t){return e+t}),0),Pl=/\s/;function Tl(e){for(var t=e.length;t--&&Pl.test(e.charAt(t)););return t}var Rl=/^\s+/;function Nl(e){return e?e.slice(0,Tl(e)+1).replace(Rl,""):e}function Il(e){var t=Vo(e);return null!=e&&("object"==t||"function"==t)}var Dl=NaN,zl=/^[-+]0x[0-9a-f]+$/i,Bl=/^0b[01]+$/i,Ll=/^0o[0-7]+$/i,ql=parseInt;function Fl(e){if("number"==typeof e)return e;if(xl(e))return Dl;if(Il(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Il(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Nl(e);var n=Bl.test(e);return n||Ll.test(e)?ql(e.slice(2),n?2:8):zl.test(e)?Dl:+e}var Vl=1/0,Hl=17976931348623157e292;function Wl(e){return e?(e=Fl(e))===Vl||e===-Vl?(e<0?-1:1)*Hl:e==e?e:0:0===e?e:0}function Ul(e){var t=Wl(e),n=t%1;return t==t?n?t-n:t:0}function Jl(e,t){if("function"!=typeof t)throw new TypeError("Expected a function");return e=Ul(e),function(){if(--e<1)return t.apply(this,arguments)}}function Kl(e){return e}var Gl="[object AsyncFunction]",Ql="[object Function]",Yl="[object GeneratorFunction]",Xl="[object Proxy]";function Zl(e){if(!Il(e))return!1;var t=yl(e);return t==Ql||t==Yl||t==Gl||t==Xl}var ef,tf=cl["__core-js_shared__"],nf=(ef=/[^.]+$/.exec(tf&&tf.keys&&tf.keys.IE_PROTO||""))?"Symbol(src)_1."+ef:"";var rf=Function.prototype.toString;function of(e){if(null!=e){try{return rf.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var af=/^\[object .+?Constructor\]$/,sf=Function.prototype,cf=Object.prototype,uf=sf.toString,lf=cf.hasOwnProperty,ff=RegExp("^"+uf.call(lf).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function df(e){return!(!Il(e)||function(e){return!!nf&&nf in e}(e))&&(Zl(e)?ff:af).test(of(e))}function hf(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return df(n)?n:void 0}var vf=hf(cl,"WeakMap"),pf=vf&&new vf,mf=pf?function(e,t){return pf.set(e,t),e}:Kl,gf=Object.create,yf=function(){function e(){}return function(t){if(!Il(t))return{};if(gf)return gf(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function bf(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=yf(e.prototype),r=e.apply(n,t);return Il(r)?r:n}}var wf=1;function xf(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var kf=Math.max;function jf(e,t,n,r){for(var o=-1,i=e.length,a=n.length,s=-1,c=t.length,u=kf(i-a,0),l=Array(c+u),f=!r;++s<c;)l[s]=t[s];for(;++o<a;)(f||o<i)&&(l[n[o]]=e[o]);for(;u--;)l[s++]=e[o++];return l}var Sf=Math.max;function Cf(e,t,n,r){for(var o=-1,i=e.length,a=-1,s=n.length,c=-1,u=t.length,l=Sf(i-s,0),f=Array(l+u),d=!r;++o<l;)f[o]=e[o];for(var h=o;++c<u;)f[h+c]=t[c];for(;++a<s;)(d||o<i)&&(f[h+n[a]]=e[o++]);return f}function $f(){}var _f=4294967295;function Of(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=_f,this.__views__=[]}function Mf(){}Of.prototype=yf($f.prototype),Of.prototype.constructor=Of;var Af=pf?function(e){return pf.get(e)}:Mf,Ef={},Pf=Object.prototype.hasOwnProperty;function Tf(e){for(var t=e.name+"",n=Ef[t],r=Pf.call(Ef,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function Rf(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function Nf(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function If(e){if(e instanceof Of)return e.clone();var t=new Rf(e.__wrapped__,e.__chain__);return t.__actions__=Nf(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}Rf.prototype=yf($f.prototype),Rf.prototype.constructor=Rf;var Df=Object.prototype.hasOwnProperty;function zf(e){if(bl(e)&&!Cl(e)&&!(e instanceof Of)){if(e instanceof Rf)return e;if(Df.call(e,"__wrapped__"))return If(e)}return new Rf(e)}function Bf(e){var t=Tf(e),n=zf[t];if("function"!=typeof n||!(t in Of.prototype))return!1;if(e===n)return!0;var r=Af(n);return!!r&&e===r[0]}zf.prototype=$f.prototype,zf.prototype.constructor=zf;var Lf=Date.now;function qf(e){var t=0,n=0;return function(){var r=Lf(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Ff=qf(mf),Vf=/\{\n\/\* \[wrapped with (.+)\] \*/,Hf=/,? & /;var Wf=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function Uf(e){return function(){return e}}var Jf=function(){try{var e=hf(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Kf=Jf?function(e,t){return Jf(e,"toString",{configurable:!0,enumerable:!1,value:Uf(t),writable:!0})}:Kl,Gf=qf(Kf);function Qf(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Yf(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Xf(e){return e!=e}function Zf(e,t,n){return t==t?function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):Yf(e,Xf,n)}function ed(e,t){return!!(null==e?0:e.length)&&Zf(e,t,0)>-1}var td=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];function nd(e,t,n){var r=t+"";return Gf(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Wf,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Qf(td,(function(n){var r="_."+n[0];t&n[1]&&!ed(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(Vf);return t?t[1].split(Hf):[]}(r),n)))}var rd=1,od=2,id=4,ad=8,sd=32,cd=64;function ud(e,t,n,r,o,i,a,s,c,u){var l=t&ad;t|=l?sd:cd,(t&=~(l?cd:sd))&id||(t&=~(rd|od));var f=[e,t,o,l?i:void 0,l?a:void 0,l?void 0:i,l?void 0:a,s,c,u],d=n.apply(void 0,f);return Bf(e)&&Ff(d,f),d.placeholder=r,nd(d,e,t)}function ld(e){return e.placeholder}var fd=9007199254740991,dd=/^(?:0|[1-9]\d*)$/;function hd(e,t){var n=Vo(e);return!!(t=null==t?fd:t)&&("number"==n||"symbol"!=n&&dd.test(e))&&e>-1&&e%1==0&&e<t}var vd=Math.min;var pd="__lodash_placeholder__";function md(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==pd||(e[n]=pd,i[o++]=n)}return i}var gd=1,yd=2,bd=8,wd=16,xd=128,kd=512;function jd(e,t,n,r,o,i,a,s,c,u){var l=t&xd,f=t&gd,d=t&yd,h=t&(bd|wd),v=t&kd,p=d?void 0:bf(e);return function m(){for(var g=arguments.length,y=Array(g),b=g;b--;)y[b]=arguments[b];if(h)var w=ld(m),x=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(y,w);if(r&&(y=jf(y,r,o,h)),i&&(y=Cf(y,i,a,h)),g-=x,h&&g<u){var k=md(y,w);return ud(e,t,jd,m.placeholder,n,y,k,s,c,u-g)}var j=f?n:this,S=d?j[e]:e;return g=y.length,s?y=function(e,t){for(var n=e.length,r=vd(t.length,n),o=Nf(e);r--;){var i=t[r];e[r]=hd(i,n)?o[i]:void 0}return e}(y,s):v&&g>1&&y.reverse(),l&&c<g&&(y.length=c),this&&this!==cl&&this instanceof m&&(S=p||bf(S)),S.apply(j,y)}}var Sd=1;var Cd="__lodash_placeholder__",$d=1,_d=2,Od=4,Md=8,Ad=128,Ed=256,Pd=Math.min;var Td="Expected a function",Rd=1,Nd=2,Id=8,Dd=16,zd=32,Bd=64,Ld=Math.max;function qd(e,t,n,r,o,i,a,s){var c=t&Nd;if(!c&&"function"!=typeof e)throw new TypeError(Td);var u=r?r.length:0;if(u||(t&=~(zd|Bd),r=o=void 0),a=void 0===a?a:Ld(Ul(a),0),s=void 0===s?s:Ul(s),u-=o?o.length:0,t&Bd){var l=r,f=o;r=o=void 0}var d=c?void 0:Af(e),h=[e,t,n,r,o,l,f,i,a,s];if(d&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<($d|_d|Ad),a=r==Ad&&n==Md||r==Ad&&n==Ed&&e[7].length<=t[8]||r==(Ad|Ed)&&t[7].length<=t[8]&&n==Md;if(!i&&!a)return e;r&$d&&(e[2]=t[2],o|=n&$d?0:Od);var s=t[3];if(s){var c=e[3];e[3]=c?jf(c,s,t[4]):s,e[4]=c?md(e[3],Cd):t[4]}(s=t[5])&&(c=e[5],e[5]=c?Cf(c,s,t[6]):s,e[6]=c?md(e[5],Cd):t[6]),(s=t[7])&&(e[7]=s),r&Ad&&(e[8]=null==e[8]?t[8]:Pd(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(h,d),e=h[0],t=h[1],n=h[2],r=h[3],o=h[4],!(s=h[9]=void 0===h[9]?c?0:e.length:Ld(h[9]-u,0))&&t&(Id|Dd)&&(t&=~(Id|Dd)),t&&t!=Rd)v=t==Id||t==Dd?function(e,t,n){var r=bf(e);return function o(){for(var i=arguments.length,a=Array(i),s=i,c=ld(o);s--;)a[s]=arguments[s];var u=i<3&&a[0]!==c&&a[i-1]!==c?[]:md(a,c);return(i-=u.length)<n?ud(e,t,jd,o.placeholder,void 0,a,u,void 0,void 0,n-i):xf(this&&this!==cl&&this instanceof o?r:e,this,a)}}(e,t,s):t!=zd&&t!=(Rd|zd)||o.length?jd.apply(void 0,h):function(e,t,n,r){var o=t&Sd,i=bf(e);return function t(){for(var a=-1,s=arguments.length,c=-1,u=r.length,l=Array(u+s),f=this&&this!==cl&&this instanceof t?i:e;++c<u;)l[c]=r[c];for(;s--;)l[c++]=arguments[++a];return xf(f,o?n:this,l)}}(e,t,n,r);else var v=function(e,t,n){var r=t&wf,o=bf(e);return function t(){return(this&&this!==cl&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,n);return nd((d?mf:Ff)(v,h),e,t)}var Fd=128;function Vd(e,t,n){return t=n?void 0:t,t=e&&null==t?e.length:t,qd(e,Fd,void 0,void 0,void 0,void 0,t)}function Hd(e,t,n){"__proto__"==t&&Jf?Jf(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Wd(e,t){return e===t||e!=e&&t!=t}var Ud=Object.prototype.hasOwnProperty;function Jd(e,t,n){var r=e[t];Ud.call(e,t)&&Wd(r,n)&&(void 0!==n||t in e)||Hd(e,t,n)}function Kd(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],c=r?r(n[s],e[s],s,n,e):void 0;void 0===c&&(c=e[s]),o?Hd(n,s,c):Jd(n,s,c)}return n}var Gd=Math.max;function Qd(e,t,n){return t=Gd(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=Gd(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(a),xf(e,this,s)}}function Yd(e,t){return Gf(Qd(e,t,Kl),e+"")}var Xd=9007199254740991;function Zd(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Xd}function eh(e){return null!=e&&Zd(e.length)&&!Zl(e)}function th(e,t,n){if(!Il(n))return!1;var r=Vo(t);return!!("number"==r?eh(n)&&hd(t,n.length):"string"==r&&t in n)&&Wd(n[t],e)}function nh(e){return Yd((function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(o--,i):void 0,a&&th(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r<o;){var s=n[r];s&&e(t,s,r,i)}return t}))}var rh=Object.prototype;function oh(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||rh)}function ih(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function ah(e){return bl(e)&&"[object Arguments]"==yl(e)}var sh=Object.prototype,ch=sh.hasOwnProperty,uh=sh.propertyIsEnumerable,lh=ah(function(){return arguments}())?ah:function(e){return bl(e)&&ch.call(e,"callee")&&!uh.call(e,"callee")};function fh(){return!1}var dh="object"==("undefined"==typeof exports?"undefined":Vo(exports))&&exports&&!exports.nodeType&&exports,hh=dh&&"object"==("undefined"==typeof module?"undefined":Vo(module))&&module&&!module.nodeType&&module,vh=hh&&hh.exports===dh?cl.Buffer:void 0,ph=(vh?vh.isBuffer:void 0)||fh,mh={};function gh(e){return function(t){return e(t)}}mh["[object Float32Array]"]=mh["[object Float64Array]"]=mh["[object Int8Array]"]=mh["[object Int16Array]"]=mh["[object Int32Array]"]=mh["[object Uint8Array]"]=mh["[object Uint8ClampedArray]"]=mh["[object Uint16Array]"]=mh["[object Uint32Array]"]=!0,mh["[object Arguments]"]=mh["[object Array]"]=mh["[object ArrayBuffer]"]=mh["[object Boolean]"]=mh["[object DataView]"]=mh["[object Date]"]=mh["[object Error]"]=mh["[object Function]"]=mh["[object Map]"]=mh["[object Number]"]=mh["[object Object]"]=mh["[object RegExp]"]=mh["[object Set]"]=mh["[object String]"]=mh["[object WeakMap]"]=!1;var yh="object"==("undefined"==typeof exports?"undefined":Vo(exports))&&exports&&!exports.nodeType&&exports,bh=yh&&"object"==("undefined"==typeof module?"undefined":Vo(module))&&module&&!module.nodeType&&module,wh=bh&&bh.exports===yh&&al.process,xh=function(){try{var e=bh&&bh.require&&bh.require("util").types;return e||wh&&wh.binding&&wh.binding("util")}catch(e){}}(),kh=xh&&xh.isTypedArray,jh=kh?gh(kh):function(e){return bl(e)&&Zd(e.length)&&!!mh[yl(e)]},Sh=Object.prototype.hasOwnProperty;function Ch(e,t){var n=Cl(e),r=!n&&lh(e),o=!n&&!r&&ph(e),i=!n&&!r&&!o&&jh(e),a=n||r||o||i,s=a?ih(e.length,String):[],c=s.length;for(var u in e)!t&&!Sh.call(e,u)||a&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||hd(u,c))||s.push(u);return s}function $h(e,t){return function(n){return e(t(n))}}var _h=$h(Object.keys,Object),Oh=Object.prototype.hasOwnProperty;function Mh(e){if(!oh(e))return _h(e);var t=[];for(var n in Object(e))Oh.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Ah(e){return eh(e)?Ch(e):Mh(e)}var Eh=Object.prototype.hasOwnProperty,Ph=nh((function(e,t){if(oh(t)||eh(t))Kd(t,Ah(t),e);else for(var n in t)Eh.call(t,n)&&Jd(e,n,t[n])})),Th=Ph;var Rh=Object.prototype.hasOwnProperty;function Nh(e){if(!Il(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=oh(e),n=[];for(var r in e)("constructor"!=r||!t&&Rh.call(e,r))&&n.push(r);return n}function Ih(e){return eh(e)?Ch(e,!0):Nh(e)}var Dh=nh((function(e,t){Kd(t,Ih(t),e)})),zh=Dh,Bh=nh((function(e,t,n,r){Kd(t,Ih(t),e,r)})),Lh=Bh,qh=nh((function(e,t,n,r){Kd(t,Ah(t),e,r)})),Fh=qh,Vh=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Hh=/^\w*$/;function Wh(e,t){if(Cl(e))return!1;var n=Vo(e);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!xl(e))||(Hh.test(e)||!Vh.test(e)||null!=t&&e in Object(t))}var Uh=hf(Object,"create");var Jh=Object.prototype.hasOwnProperty;var Kh=Object.prototype.hasOwnProperty;function Gh(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Qh(e,t){for(var n=e.length;n--;)if(Wd(e[n][0],t))return n;return-1}Gh.prototype.clear=function(){this.__data__=Uh?Uh(null):{},this.size=0},Gh.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Gh.prototype.get=function(e){var t=this.__data__;if(Uh){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Jh.call(t,e)?t[e]:void 0},Gh.prototype.has=function(e){var t=this.__data__;return Uh?void 0!==t[e]:Kh.call(t,e)},Gh.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Uh&&void 0===t?"__lodash_hash_undefined__":t,this};var Yh=Array.prototype.splice;function Xh(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Xh.prototype.clear=function(){this.__data__=[],this.size=0},Xh.prototype.delete=function(e){var t=this.__data__,n=Qh(t,e);return!(n<0)&&(n==t.length-1?t.pop():Yh.call(t,n,1),--this.size,!0)},Xh.prototype.get=function(e){var t=this.__data__,n=Qh(t,e);return n<0?void 0:t[n][1]},Xh.prototype.has=function(e){return Qh(this.__data__,e)>-1},Xh.prototype.set=function(e,t){var n=this.__data__,r=Qh(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var Zh=hf(cl,"Map");function ev(e,t){var n=e.__data__;return function(e){var t=Vo(e);return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function tv(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}tv.prototype.clear=function(){this.size=0,this.__data__={hash:new Gh,map:new(Zh||Xh),string:new Gh}},tv.prototype.delete=function(e){var t=ev(this,e).delete(e);return this.size-=t?1:0,t},tv.prototype.get=function(e){return ev(this,e).get(e)},tv.prototype.has=function(e){return ev(this,e).has(e)},tv.prototype.set=function(e,t){var n=ev(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};var nv="Expected a function";function rv(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(nv);var n=function n(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(rv.Cache||tv),n}rv.Cache=tv;var ov=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,iv=/\\(\\)?/g,av=function(e){var t=rv(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ov,(function(e,n,r,o){t.push(r?o.replace(iv,"$1"):n||e)})),t}));function sv(e){return null==e?"":Ml(e)}function cv(e,t){return Cl(e)?e:Wh(e,t)?[e]:av(sv(e))}var uv=1/0;function lv(e){if("string"==typeof e||xl(e))return e;var t=e+"";return"0"==t&&1/e==-uv?"-0":t}function fv(e,t){for(var n=0,r=(t=cv(t,e)).length;null!=e&&n<r;)e=e[lv(t[n++])];return n&&n==r?e:void 0}function dv(e,t,n){var r=null==e?void 0:fv(e,t);return void 0===r?n:r}function hv(e,t){for(var n=-1,r=t.length,o=Array(r),i=null==e;++n<r;)o[n]=i?void 0:dv(e,t[n]);return o}function vv(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var pv=ul?ul.isConcatSpreadable:void 0;function mv(e){return Cl(e)||lh(e)||!!(pv&&e&&e[pv])}function gv(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=mv),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?gv(s,t-1,n,r,o):vv(o,s):r||(o[o.length]=s)}return o}function yv(e){return(null==e?0:e.length)?gv(e,1):[]}function bv(e){return Gf(Qd(e,void 0,yv),e+"")}var wv=bv(hv),xv=$h(Object.getPrototypeOf,Object),kv="[object Object]",jv=Function.prototype,Sv=Object.prototype,Cv=jv.toString,$v=Sv.hasOwnProperty,_v=Cv.call(Object);function Ov(e){if(!bl(e)||yl(e)!=kv)return!1;var t=xv(e);if(null===t)return!0;var n=$v.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Cv.call(n)==_v}var Mv="[object DOMException]",Av="[object Error]";function Ev(e){if(!bl(e))return!1;var t=yl(e);return t==Av||t==Mv||"string"==typeof e.message&&"string"==typeof e.name&&!Ov(e)}var Pv=Yd((function(e,t){try{return xf(e,void 0,t)}catch(e){return Ev(e)?e:new Error(e)}})),Tv=Pv,Rv="Expected a function";function Nv(e,t){var n;if("function"!=typeof t)throw new TypeError(Rv);return e=Ul(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var Iv=Yd((function(e,t,n){var r=1;if(n.length){var o=md(n,ld(Iv));r|=32}return qd(e,r,t,n,o)}));Iv.placeholder={};var Dv=Iv,zv=bv((function(e,t){return Qf(t,(function(t){t=lv(t),Hd(e,t,Dv(e[t],e))})),e})),Bv=zv,Lv=Yd((function(e,t,n){var r=3;if(n.length){var o=md(n,ld(Lv));r|=32}return qd(t,r,e,n,o)}));Lv.placeholder={};var qv=Lv;function Fv(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}function Vv(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:Fv(e,t,n)}var Hv=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function Wv(e){return Hv.test(e)}var Uv="\\ud800-\\udfff",Jv="["+Uv+"]",Kv="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Gv="\\ud83c[\\udffb-\\udfff]",Qv="[^"+Uv+"]",Yv="(?:\\ud83c[\\udde6-\\uddff]){2}",Xv="[\\ud800-\\udbff][\\udc00-\\udfff]",Zv="(?:"+Kv+"|"+Gv+")"+"?",ep="[\\ufe0e\\ufe0f]?",tp=ep+Zv+("(?:\\u200d(?:"+[Qv,Yv,Xv].join("|")+")"+ep+Zv+")*"),np="(?:"+[Qv+Kv+"?",Kv,Yv,Xv,Jv].join("|")+")",rp=RegExp(Gv+"(?="+Gv+")|"+np+tp,"g");function op(e){return Wv(e)?function(e){return e.match(rp)||[]}(e):function(e){return e.split("")}(e)}function ip(e){return function(t){var n=Wv(t=sv(t))?op(t):void 0,r=n?n[0]:t.charAt(0),o=n?Vv(n,1).join(""):t.slice(1);return r[e]()+o}}var ap=ip("toUpperCase");function sp(e){return ap(sv(e).toLowerCase())}function cp(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function up(e){return function(t){return null==e?void 0:e[t]}}var lp=up({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","Ĳ":"IJ","ĳ":"ij","Œ":"Oe","œ":"oe","ŉ":"'n","ſ":"s"}),fp=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,dp=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");function hp(e){return(e=sv(e))&&e.replace(fp,lp).replace(dp,"")}var vp=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var pp=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var mp="\\ud800-\\udfff",gp="\\u2700-\\u27bf",yp="a-z\\xdf-\\xf6\\xf8-\\xff",bp="A-Z\\xc0-\\xd6\\xd8-\\xde",wp="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",xp="["+wp+"]",kp="\\d+",jp="["+gp+"]",Sp="["+yp+"]",Cp="[^"+mp+wp+kp+gp+yp+bp+"]",$p="(?:\\ud83c[\\udde6-\\uddff]){2}",_p="[\\ud800-\\udbff][\\udc00-\\udfff]",Op="["+bp+"]",Mp="(?:"+Sp+"|"+Cp+")",Ap="(?:"+Op+"|"+Cp+")",Ep="(?:['’](?:d|ll|m|re|s|t|ve))?",Pp="(?:['’](?:D|LL|M|RE|S|T|VE))?",Tp="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",Rp="[\\ufe0e\\ufe0f]?",Np=Rp+Tp+("(?:\\u200d(?:"+["[^"+mp+"]",$p,_p].join("|")+")"+Rp+Tp+")*"),Ip="(?:"+[jp,$p,_p].join("|")+")"+Np,Dp=RegExp([Op+"?"+Sp+"+"+Ep+"(?="+[xp,Op,"$"].join("|")+")",Ap+"+"+Pp+"(?="+[xp,Op+Mp,"$"].join("|")+")",Op+"?"+Mp+"+"+Ep,Op+"+"+Pp,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",kp,Ip].join("|"),"g");function zp(e,t,n){return e=sv(e),void 0===(t=n?void 0:t)?function(e){return pp.test(e)}(e)?function(e){return e.match(Dp)||[]}(e):function(e){return e.match(vp)||[]}(e):e.match(t)||[]}var Bp=RegExp("['’]","g");function Lp(e){return function(t){return cp(zp(hp(t).replace(Bp,"")),e,"")}}var qp=Lp((function(e,t,n){return t=t.toLowerCase(),e+(n?sp(t):t)})),Fp=qp;function Vp(){if(!arguments.length)return[];var e=arguments[0];return Cl(e)?e:[e]}var Hp=cl.isFinite,Wp=Math.min;function Up(e){var t=Math[e];return function(e,n){if(e=Fl(e),(n=null==n?0:Wp(Ul(n),292))&&Hp(e)){var r=(sv(e)+"e").split("e");return+((r=(sv(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Jp=Up("ceil");function Kp(e){var t=zf(e);return t.__chain__=!0,t}var Gp=Math.ceil,Qp=Math.max;function Yp(e,t,n){t=(n?th(e,t,n):void 0===t)?1:Qp(Ul(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var o=0,i=0,a=Array(Gp(r/t));o<r;)a[i++]=Fv(e,o,o+=t);return a}function Xp(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}function Zp(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=Fl(n))==n?n:0),void 0!==t&&(t=(t=Fl(t))==t?t:0),Xp(Fl(e),t,n)}function em(e){var t=this.__data__=new Xh(e);this.size=t.size}function tm(e,t){return e&&Kd(t,Ah(t),e)}em.prototype.clear=function(){this.__data__=new Xh,this.size=0},em.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},em.prototype.get=function(e){return this.__data__.get(e)},em.prototype.has=function(e){return this.__data__.has(e)},em.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Xh){var r=n.__data__;if(!Zh||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new tv(r)}return n.set(e,t),this.size=n.size,this};var nm="object"==("undefined"==typeof exports?"undefined":Vo(exports))&&exports&&!exports.nodeType&&exports,rm=nm&&"object"==("undefined"==typeof module?"undefined":Vo(module))&&module&&!module.nodeType&&module,om=rm&&rm.exports===nm?cl.Buffer:void 0,im=om?om.allocUnsafe:void 0;function am(e,t){if(t)return e.slice();var n=e.length,r=im?im(n):new e.constructor(n);return e.copy(r),r}function sm(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function cm(){return[]}var um=Object.prototype.propertyIsEnumerable,lm=Object.getOwnPropertySymbols,fm=lm?function(e){return null==e?[]:(e=Object(e),sm(lm(e),(function(t){return um.call(e,t)})))}:cm;var dm=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)vv(t,fm(e)),e=xv(e);return t}:cm;function hm(e,t,n){var r=t(e);return Cl(e)?r:vv(r,n(e))}function vm(e){return hm(e,Ah,fm)}function pm(e){return hm(e,Ih,dm)}var mm=hf(cl,"DataView"),gm=hf(cl,"Promise"),ym=hf(cl,"Set"),bm="[object Map]",wm="[object Promise]",xm="[object Set]",km="[object WeakMap]",jm="[object DataView]",Sm=of(mm),Cm=of(Zh),$m=of(gm),_m=of(ym),Om=of(vf),Mm=yl;(mm&&Mm(new mm(new ArrayBuffer(1)))!=jm||Zh&&Mm(new Zh)!=bm||gm&&Mm(gm.resolve())!=wm||ym&&Mm(new ym)!=xm||vf&&Mm(new vf)!=km)&&(Mm=function(e){var t=yl(e),n="[object Object]"==t?e.constructor:void 0,r=n?of(n):"";if(r)switch(r){case Sm:return jm;case Cm:return bm;case $m:return wm;case _m:return xm;case Om:return km}return t});var Am=Mm,Em=Object.prototype.hasOwnProperty;var Pm=cl.Uint8Array;function Tm(e){var t=new e.constructor(e.byteLength);return new Pm(t).set(new Pm(e)),t}var Rm=/\w*$/;var Nm=ul?ul.prototype:void 0,Im=Nm?Nm.valueOf:void 0;function Dm(e,t){var n=t?Tm(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var zm="[object Boolean]",Bm="[object Date]",Lm="[object Map]",qm="[object Number]",Fm="[object RegExp]",Vm="[object Set]",Hm="[object String]",Wm="[object Symbol]",Um="[object ArrayBuffer]",Jm="[object DataView]",Km="[object Float32Array]",Gm="[object Float64Array]",Qm="[object Int8Array]",Ym="[object Int16Array]",Xm="[object Int32Array]",Zm="[object Uint8Array]",eg="[object Uint8ClampedArray]",tg="[object Uint16Array]",ng="[object Uint32Array]";function rg(e,t,n){var r,o=e.constructor;switch(t){case Um:return Tm(e);case zm:case Bm:return new o(+e);case Jm:return function(e,t){var n=t?Tm(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case Km:case Gm:case Qm:case Ym:case Xm:case Zm:case eg:case tg:case ng:return Dm(e,n);case Lm:return new o;case qm:case Hm:return new o(e);case Fm:return function(e){var t=new e.constructor(e.source,Rm.exec(e));return t.lastIndex=e.lastIndex,t}(e);case Vm:return new o;case Wm:return r=e,Im?Object(Im.call(r)):{}}}function og(e){return"function"!=typeof e.constructor||oh(e)?{}:yf(xv(e))}var ig=xh&&xh.isMap,ag=ig?gh(ig):function(e){return bl(e)&&"[object Map]"==Am(e)};var sg=xh&&xh.isSet,cg=sg?gh(sg):function(e){return bl(e)&&"[object Set]"==Am(e)},ug=1,lg=2,fg=4,dg="[object Arguments]",hg="[object Function]",vg="[object GeneratorFunction]",pg="[object Object]",mg={};function gg(e,t,n,r,o,i){var a,s=t&ug,c=t&lg,u=t&fg;if(n&&(a=o?n(e,r,o,i):n(e)),void 0!==a)return a;if(!Il(e))return e;var l=Cl(e);if(l){if(a=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Em.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!s)return Nf(e,a)}else{var f=Am(e),d=f==hg||f==vg;if(ph(e))return am(e,s);if(f==pg||f==dg||d&&!o){if(a=c||d?{}:og(e),!s)return c?function(e,t){return Kd(e,dm(e),t)}(e,function(e,t){return e&&Kd(t,Ih(t),e)}(a,e)):function(e,t){return Kd(e,fm(e),t)}(e,tm(a,e))}else{if(!mg[f])return o?e:{};a=rg(e,f,s)}}i||(i=new em);var h=i.get(e);if(h)return h;i.set(e,a),cg(e)?e.forEach((function(r){a.add(gg(r,t,n,r,e,i))})):ag(e)&&e.forEach((function(r,o){a.set(o,gg(r,t,n,o,e,i))}));var v=l?void 0:(u?c?pm:vm:c?Ih:Ah)(e);return Qf(v||e,(function(r,o){v&&(r=e[o=r]),Jd(a,o,gg(r,t,n,o,e,i))})),a}mg[dg]=mg["[object Array]"]=mg["[object ArrayBuffer]"]=mg["[object DataView]"]=mg["[object Boolean]"]=mg["[object Date]"]=mg["[object Float32Array]"]=mg["[object Float64Array]"]=mg["[object Int8Array]"]=mg["[object Int16Array]"]=mg["[object Int32Array]"]=mg["[object Map]"]=mg["[object Number]"]=mg[pg]=mg["[object RegExp]"]=mg["[object Set]"]=mg["[object String]"]=mg["[object Symbol]"]=mg["[object Uint8Array]"]=mg["[object Uint8ClampedArray]"]=mg["[object Uint16Array]"]=mg["[object Uint32Array]"]=!0,mg["[object Error]"]=mg[hg]=mg["[object WeakMap]"]=!1;function yg(e){return gg(e,4)}var bg=1,wg=4;function xg(e){return gg(e,bg|wg)}var kg=1,jg=4;function Sg(e,t){return gg(e,kg|jg,t="function"==typeof t?t:void 0)}function Cg(e,t){return gg(e,4,t="function"==typeof t?t:void 0)}function $g(){return new Rf(this.value(),this.__chain__)}function _g(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o}function Og(){var e=arguments.length;if(!e)return[];for(var t=Array(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return vv(Cl(n)?Nf(n):[n],gv(t,1))}function Mg(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new tv;++t<n;)this.add(e[t])}function Ag(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function Eg(e,t){return e.has(t)}Mg.prototype.add=Mg.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Mg.prototype.has=function(e){return this.__data__.has(e)};var Pg=1,Tg=2;function Rg(e,t,n,r,o,i){var a=n&Pg,s=e.length,c=t.length;if(s!=c&&!(a&&c>s))return!1;var u=i.get(e),l=i.get(t);if(u&&l)return u==t&&l==e;var f=-1,d=!0,h=n&Tg?new Mg:void 0;for(i.set(e,t),i.set(t,e);++f<s;){var v=e[f],p=t[f];if(r)var m=a?r(p,v,f,t,e,i):r(v,p,f,e,t,i);if(void 0!==m){if(m)continue;d=!1;break}if(h){if(!Ag(t,(function(e,t){if(!Eg(h,t)&&(v===e||o(v,e,n,r,i)))return h.push(t)}))){d=!1;break}}else if(v!==p&&!o(v,p,n,r,i)){d=!1;break}}return i.delete(e),i.delete(t),d}function Ng(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Ig(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var Dg=1,zg=2,Bg="[object Boolean]",Lg="[object Date]",qg="[object Error]",Fg="[object Map]",Vg="[object Number]",Hg="[object RegExp]",Wg="[object Set]",Ug="[object String]",Jg="[object Symbol]",Kg="[object ArrayBuffer]",Gg="[object DataView]",Qg=ul?ul.prototype:void 0,Yg=Qg?Qg.valueOf:void 0;var Xg=1,Zg=Object.prototype.hasOwnProperty;var ey=1,ty="[object Arguments]",ny="[object Array]",ry="[object Object]",oy=Object.prototype.hasOwnProperty;function iy(e,t,n,r,o,i){var a=Cl(e),s=Cl(t),c=a?ny:Am(e),u=s?ny:Am(t),l=(c=c==ty?ry:c)==ry,f=(u=u==ty?ry:u)==ry,d=c==u;if(d&&ph(e)){if(!ph(t))return!1;a=!0,l=!1}if(d&&!l)return i||(i=new em),a||jh(e)?Rg(e,t,n,r,o,i):function(e,t,n,r,o,i,a){switch(n){case Gg:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Kg:return!(e.byteLength!=t.byteLength||!i(new Pm(e),new Pm(t)));case Bg:case Lg:case Vg:return Wd(+e,+t);case qg:return e.name==t.name&&e.message==t.message;case Hg:case Ug:return e==t+"";case Fg:var s=Ng;case Wg:var c=r&Dg;if(s||(s=Ig),e.size!=t.size&&!c)return!1;var u=a.get(e);if(u)return u==t;r|=zg,a.set(e,t);var l=Rg(s(e),s(t),r,o,i,a);return a.delete(e),l;case Jg:if(Yg)return Yg.call(e)==Yg.call(t)}return!1}(e,t,c,n,r,o,i);if(!(n&ey)){var h=l&&oy.call(e,"__wrapped__"),v=f&&oy.call(t,"__wrapped__");if(h||v){var p=h?e.value():e,m=v?t.value():t;return i||(i=new em),o(p,m,n,r,i)}}return!!d&&(i||(i=new em),function(e,t,n,r,o,i){var a=n&Xg,s=vm(e),c=s.length;if(c!=vm(t).length&&!a)return!1;for(var u=c;u--;){var l=s[u];if(!(a?l in t:Zg.call(t,l)))return!1}var f=i.get(e),d=i.get(t);if(f&&d)return f==t&&d==e;var h=!0;i.set(e,t),i.set(t,e);for(var v=a;++u<c;){var p=e[l=s[u]],m=t[l];if(r)var g=a?r(m,p,l,t,e,i):r(p,m,l,e,t,i);if(!(void 0===g?p===m||o(p,m,n,r,i):g)){h=!1;break}v||(v="constructor"==l)}if(h&&!v){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(h=!1)}return i.delete(e),i.delete(t),h}(e,t,n,r,o,i))}function ay(e,t,n,r,o){return e===t||(null==e||null==t||!bl(e)&&!bl(t)?e!=e&&t!=t:iy(e,t,n,r,ay,o))}var sy=1,cy=2;function uy(e,t,n,r){var o=n.length,i=o,a=!r;if(null==e)return!i;for(e=Object(e);o--;){var s=n[o];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<i;){var c=(s=n[o])[0],u=e[c],l=s[1];if(a&&s[2]){if(void 0===u&&!(c in e))return!1}else{var f=new em;if(r)var d=r(u,l,c,e,t,f);if(!(void 0===d?ay(l,u,sy|cy,r,f):d))return!1}}return!0}function ly(e){return e==e&&!Il(e)}function fy(e){for(var t=Ah(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,ly(o)]}return t}function dy(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}function hy(e){var t=fy(e);return 1==t.length&&t[0][2]?dy(t[0][0],t[0][1]):function(n){return n===e||uy(n,e,t)}}function vy(e,t){return null!=e&&t in Object(e)}function py(e,t,n){for(var r=-1,o=(t=cv(t,e)).length,i=!1;++r<o;){var a=lv(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&Zd(o)&&hd(a,o)&&(Cl(e)||lh(e))}function my(e,t){return null!=e&&py(e,t,vy)}var gy=1,yy=2;function by(e,t){return Wh(e)&&ly(t)?dy(lv(e),t):function(n){var r=dv(n,e);return void 0===r&&r===t?my(n,e):ay(t,r,gy|yy)}}function wy(e){return function(t){return null==t?void 0:t[e]}}function xy(e){return Wh(e)?wy(lv(e)):function(e){return function(t){return fv(t,e)}}(e)}function ky(e){return"function"==typeof e?e:null==e?Kl:"object"==Vo(e)?Cl(e)?by(e[0],e[1]):hy(e):xy(e)}function jy(e){var t=null==e?0:e.length,n=ky;return e=t?Sl(e,(function(e){if("function"!=typeof e[1])throw new TypeError("Expected a function");return[n(e[0]),e[1]]})):[],Yd((function(n){for(var r=-1;++r<t;){var o=e[r];if(xf(o[0],this,n))return xf(o[1],this,n)}}))}function Sy(e,t,n){var r=n.length;if(null==e)return!r;for(e=Object(e);r--;){var o=n[r],i=t[o],a=e[o];if(void 0===a&&!(o in e)||!i(a))return!1}return!0}function Cy(e){return function(e){var t=Ah(e);return function(n){return Sy(n,e,t)}}(gg(e,1))}function $y(e,t){return null==t||Sy(e,t,Ah(t))}function _y(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function Oy(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var c=a[e?s:++o];if(!1===n(i[c],c,i))break}return t}}var My=Oy();function Ay(e,t){return e&&My(e,t,Ah)}function Ey(e,t){return function(n,r){if(null==n)return n;if(!eh(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Object(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}var Py=Ey(Ay);function Ty(e,t,n,r){return Py(e,(function(e,o,i){t(r,e,n(e),i)})),r}function Ry(e,t){return function(n,r){var o=Cl(n)?_y:Ty,i=t?t():{};return o(n,e,ky(r),i)}}var Ny=Object.prototype.hasOwnProperty,Iy=Ry((function(e,t,n){Ny.call(e,n)?++e[n]:Hd(e,n,1)})),Dy=Iy;function zy(e,t){var n=yf(e);return null==t?n:tm(n,t)}function By(e,t,n){var r=qd(e,8,void 0,void 0,void 0,void 0,void 0,t=n?void 0:t);return r.placeholder=By.placeholder,r}By.placeholder={};function Ly(e,t,n){var r=qd(e,16,void 0,void 0,void 0,void 0,void 0,t=n?void 0:t);return r.placeholder=Ly.placeholder,r}Ly.placeholder={};var qy=function(){return cl.Date.now()},Fy="Expected a function",Vy=Math.max,Hy=Math.min;function Wy(e,t,n){var r,o,i,a,s,c,u=0,l=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError(Fy);function h(t){var n=r,i=o;return r=o=void 0,u=t,a=e.apply(i,n)}function v(e){var n=e-c;return void 0===c||n>=t||n<0||f&&e-u>=i}function p(){var e=qy();if(v(e))return m(e);s=setTimeout(p,function(e){var n=t-(e-c);return f?Hy(n,i-(e-u)):n}(e))}function m(e){return s=void 0,d&&r?h(e):(r=o=void 0,a)}function g(){var e=qy(),n=v(e);if(r=arguments,o=this,c=e,n){if(void 0===s)return function(e){return u=e,s=setTimeout(p,t),l?h(e):a}(c);if(f)return clearTimeout(s),s=setTimeout(p,t),h(c)}return void 0===s&&(s=setTimeout(p,t)),a}return t=Fl(t)||0,Il(n)&&(l=!!n.leading,i=(f="maxWait"in n)?Vy(Fl(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),g.cancel=function(){void 0!==s&&clearTimeout(s),u=0,r=c=o=s=void 0},g.flush=function(){return void 0===s?a:m(qy())},g}function Uy(e,t){return null==e||e!=e?t:e}var Jy=Object.prototype,Ky=Jy.hasOwnProperty,Gy=Yd((function(e,t){e=Object(e);var n=-1,r=t.length,o=r>2?t[2]:void 0;for(o&&th(t[0],t[1],o)&&(r=1);++n<r;)for(var i=t[n],a=Ih(i),s=-1,c=a.length;++s<c;){var u=a[s],l=e[u];(void 0===l||Wd(l,Jy[u])&&!Ky.call(e,u))&&(e[u]=i[u])}return e})),Qy=Gy;function Yy(e,t,n){(void 0!==n&&!Wd(e[t],n)||void 0===n&&!(t in e))&&Hd(e,t,n)}function Xy(e){return bl(e)&&eh(e)}function Zy(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}function eb(e){return Kd(e,Ih(e))}function tb(e,t,n,r,o){e!==t&&My(t,(function(i,a){if(o||(o=new em),Il(i))!function(e,t,n,r,o,i,a){var s=Zy(e,n),c=Zy(t,n),u=a.get(c);if(u)Yy(e,n,u);else{var l=i?i(s,c,n+"",e,t,a):void 0,f=void 0===l;if(f){var d=Cl(c),h=!d&&ph(c),v=!d&&!h&&jh(c);l=c,d||h||v?Cl(s)?l=s:Xy(s)?l=Nf(s):h?(f=!1,l=am(c,!0)):v?(f=!1,l=Dm(c,!0)):l=[]:Ov(c)||lh(c)?(l=s,lh(s)?l=eb(s):Il(s)&&!Zl(s)||(l=og(c))):f=!1}f&&(a.set(c,l),o(l,c,r,i,a),a.delete(c)),Yy(e,n,l)}}(e,t,a,n,tb,r,o);else{var s=r?r(Zy(e,a),i,a+"",e,t,o):void 0;void 0===s&&(s=i),Yy(e,a,s)}}),Ih)}function nb(e,t,n,r,o,i){return Il(e)&&Il(t)&&(i.set(t,e),tb(e,t,void 0,nb,i),i.delete(t)),e}var rb=nh((function(e,t,n,r){tb(e,t,n,r)})),ob=rb,ib=Yd((function(e){return e.push(void 0,nb),xf(ob,void 0,e)}));function ab(e,t,n){if("function"!=typeof e)throw new TypeError("Expected a function");return setTimeout((function(){e.apply(void 0,n)}),t)}var sb=Yd((function(e,t){return ab(e,1,t)})),cb=sb,ub=Yd((function(e,t,n){return ab(e,Fl(t)||0,n)})),lb=ub;function fb(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}var db=200;function hb(e,t,n,r){var o=-1,i=ed,a=!0,s=e.length,c=[],u=t.length;if(!s)return c;n&&(t=Sl(t,gh(n))),r?(i=fb,a=!1):t.length>=db&&(i=Eg,a=!1,t=new Mg(t));e:for(;++o<s;){var l=e[o],f=null==n?l:n(l);if(l=r||0!==l?l:0,a&&f==f){for(var d=u;d--;)if(t[d]===f)continue e;c.push(l)}else i(t,f,r)||c.push(l)}return c}var vb=Yd((function(e,t){return Xy(e)?hb(e,gv(t,1,Xy,!0)):[]})),pb=vb;function mb(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}var gb=Yd((function(e,t){var n=mb(t);return Xy(n)&&(n=void 0),Xy(e)?hb(e,gv(t,1,Xy,!0),ky(n)):[]})),yb=gb,bb=Yd((function(e,t){var n=mb(t);return Xy(n)&&(n=void 0),Xy(e)?hb(e,gv(t,1,Xy,!0),void 0,n):[]})),wb=bb,xb=Al((function(e,t){return e/t}),1);function kb(e,t,n){var r=null==e?0:e.length;return r?Fv(e,(t=n||void 0===t?1:Ul(t))<0?0:t,r):[]}function jb(e,t,n){var r=null==e?0:e.length;return r?Fv(e,0,(t=r-(t=n||void 0===t?1:Ul(t)))<0?0:t):[]}function Sb(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?Fv(e,r?0:i,r?i+1:o):Fv(e,r?i+1:0,r?o:i)}function Cb(e,t){return e&&e.length?Sb(e,ky(t),!0,!0):[]}function $b(e,t){return e&&e.length?Sb(e,ky(t),!0):[]}function _b(e){return"function"==typeof e?e:Kl}function Ob(e,t){return(Cl(e)?Qf:Py)(e,_b(t))}function Mb(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}var Ab=Oy(!0);function Eb(e,t){return e&&Ab(e,t,Ah)}var Pb=Ey(Eb,!0);function Tb(e,t){return(Cl(e)?Mb:Pb)(e,_b(t))}function Rb(e,t,n){e=sv(e),t=Ml(t);var r=e.length,o=n=void 0===n?r:Xp(Ul(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t}function Nb(e){return function(t){var n=Am(t);return"[object Map]"==n?Ng(t):"[object Set]"==n?function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}(t):function(e,t){return Sl(t,(function(t){return[t,e[t]]}))}(t,e(t))}}var Ib=Nb(Ah),Db=Nb(Ih),zb=up({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}),Bb=/[&<>"']/g,Lb=RegExp(Bb.source);function qb(e){return(e=sv(e))&&Lb.test(e)?e.replace(Bb,zb):e}var Fb=/[\\^$.*+?()[\]{}|]/g,Vb=RegExp(Fb.source);function Hb(e){return(e=sv(e))&&Vb.test(e)?e.replace(Fb,"\\$&"):e}function Wb(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Ub(e,t){var n=!0;return Py(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function Jb(e,t,n){var r=Cl(e)?Wb:Ub;return n&&th(e,t,n)&&(t=void 0),r(e,ky(t))}var Kb=4294967295;function Gb(e){return e?Xp(Ul(e),0,Kb):0}function Qb(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&th(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=Ul(n))<0&&(n=-n>o?0:o+n),(r=void 0===r||r>o?o:Ul(r))<0&&(r+=o),r=n>r?0:Gb(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]}function Yb(e,t){var n=[];return Py(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function Xb(e,t){return(Cl(e)?sm:Yb)(e,ky(t))}function Zb(e){return function(t,n,r){var o=Object(t);if(!eh(t)){var i=ky(n);t=Ah(t),n=function(e){return i(o[e],e,o)}}var a=e(t,n,r);return a>-1?o[i?t[a]:a]:void 0}}var ew=Math.max;function tw(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Ul(n);return o<0&&(o=ew(r+o,0)),Yf(e,ky(t),o)}var nw=Zb(tw);function rw(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function ow(e,t){return rw(e,ky(t),Ay)}var iw=Math.max,aw=Math.min;function sw(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return void 0!==n&&(o=Ul(n),o=n<0?iw(r+o,0):aw(o,r-1)),Yf(e,ky(t),o,!0)}var cw=Zb(sw);function uw(e,t){return rw(e,ky(t),Eb)}function lw(e){return e&&e.length?e[0]:void 0}function fw(e,t){var n=-1,r=eh(e)?Array(e.length):[];return Py(e,(function(e,o,i){r[++n]=t(e,o,i)})),r}function dw(e,t){return(Cl(e)?Sl:fw)(e,ky(t))}function hw(e,t){return gv(dw(e,t),1)}function vw(e,t){return gv(dw(e,t),Infinity)}function pw(e,t,n){return n=void 0===n?1:Ul(n),gv(dw(e,t),n)}function mw(e){return(null==e?0:e.length)?gv(e,Infinity):[]}function gw(e,t){return(null==e?0:e.length)?gv(e,t=void 0===t?1:Ul(t)):[]}function yw(e){return qd(e,512)}var bw=Up("floor");function ww(e){return bv((function(t){var n=t.length,r=n,o=Rf.prototype.thru;for(e&&t.reverse();r--;){var i=t[r];if("function"!=typeof i)throw new TypeError("Expected a function");if(o&&!a&&"wrapper"==Tf(i))var a=new Rf([],!0)}for(r=a?r:n;++r<n;){var s=Tf(i=t[r]),c="wrapper"==s?Af(i):void 0;a=c&&Bf(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?a[Tf(c[0])].apply(a,c[3]):1==i.length&&Bf(i)?a[s]():a.thru(i)}return function(){var e=arguments,r=e[0];if(a&&1==e.length&&Cl(r))return a.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}}))}var xw=ww(),kw=ww(!0);function jw(e,t){return null==e?e:My(e,_b(t),Ih)}function Sw(e,t){return null==e?e:Ab(e,_b(t),Ih)}function Cw(e,t){return e&&Ay(e,_b(t))}function $w(e,t){return e&&Eb(e,_b(t))}function _w(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r}function Ow(e,t){return sm(t,(function(t){return Zl(e[t])}))}function Mw(e){return null==e?[]:Ow(e,Ah(e))}function Aw(e){return null==e?[]:Ow(e,Ih(e))}var Ew=Object.prototype.hasOwnProperty,Pw=Ry((function(e,t,n){Ew.call(e,n)?e[n].push(t):Hd(e,n,[t])})),Tw=Pw;function Rw(e,t){return e>t}function Nw(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Fl(t),n=Fl(n)),e(t,n)}}var Iw=Nw(Rw),Dw=Nw((function(e,t){return e>=t})),zw=Object.prototype.hasOwnProperty;function Bw(e,t){return null!=e&&zw.call(e,t)}function Lw(e,t){return null!=e&&py(e,t,Bw)}var qw=Math.max,Fw=Math.min;function Vw(e,t,n){return t=Wl(t),void 0===n?(n=t,t=0):n=Wl(n),function(e,t,n){return e>=Fw(t,n)&&e<qw(t,n)}(e=Fl(e),t,n)}var Hw="[object String]";function Ww(e){return"string"==typeof e||!Cl(e)&&bl(e)&&yl(e)==Hw}function Uw(e,t){return Sl(t,(function(t){return e[t]}))}function Jw(e){return null==e?[]:Uw(e,Ah(e))}var Kw=Math.max;function Gw(e,t,n,r){e=eh(e)?e:Jw(e),n=n&&!r?Ul(n):0;var o=e.length;return n<0&&(n=Kw(o+n,0)),Ww(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Zf(e,t,n)>-1}var Qw=Math.max;function Yw(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Ul(n);return o<0&&(o=Qw(r+o,0)),Zf(e,t,o)}function Xw(e){return(null==e?0:e.length)?Fv(e,0,-1):[]}var Zw=Math.min;function ex(e,t,n){for(var r=n?fb:ed,o=e[0].length,i=e.length,a=i,s=Array(i),c=1/0,u=[];a--;){var l=e[a];a&&t&&(l=Sl(l,gh(t))),c=Zw(l.length,c),s[a]=!n&&(t||o>=120&&l.length>=120)?new Mg(a&&l):void 0}l=e[0];var f=-1,d=s[0];e:for(;++f<o&&u.length<c;){var h=l[f],v=t?t(h):h;if(h=n||0!==h?h:0,!(d?Eg(d,v):r(u,v,n))){for(a=i;--a;){var p=s[a];if(!(p?Eg(p,v):r(e[a],v,n)))continue e}d&&d.push(v),u.push(h)}}return u}function tx(e){return Xy(e)?e:[]}var nx=Yd((function(e){var t=Sl(e,tx);return t.length&&t[0]===e[0]?ex(t):[]})),rx=Yd((function(e){var t=mb(e),n=Sl(e,tx);return t===mb(n)?t=void 0:n.pop(),n.length&&n[0]===e[0]?ex(n,ky(t)):[]})),ox=rx,ix=Yd((function(e){var t=mb(e),n=Sl(e,tx);return(t="function"==typeof t?t:void 0)&&n.pop(),n.length&&n[0]===e[0]?ex(n,void 0,t):[]}));function ax(e,t){return function(n,r){return function(e,t,n,r){return Ay(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}var sx=Object.prototype.toString,cx=ax((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=sx.call(t)),e[t]=n}),Uf(Kl)),ux=cx,lx=Object.prototype,fx=lx.hasOwnProperty,dx=lx.toString,hx=ax((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=dx.call(t)),fx.call(e,t)?e[t].push(n):e[t]=[n]}),ky),vx=hx;function px(e,t){return t.length<2?e:fv(e,Fv(t,0,-1))}function mx(e,t,n){var r=null==(e=px(e,t=cv(t,e)))?e:e[lv(mb(t))];return null==r?void 0:xf(r,e,n)}var gx=Yd(mx),yx=Yd((function(e,t,n){var r=-1,o="function"==typeof t,i=eh(e)?Array(e.length):[];return Py(e,(function(e){i[++r]=o?xf(t,e,n):mx(e,t,n)})),i})),bx=yx;var wx=xh&&xh.isArrayBuffer,xx=wx?gh(wx):function(e){return bl(e)&&"[object ArrayBuffer]"==yl(e)};function kx(e){return!0===e||!1===e||bl(e)&&"[object Boolean]"==yl(e)}var jx=xh&&xh.isDate,Sx=jx?gh(jx):function(e){return bl(e)&&"[object Date]"==yl(e)};function Cx(e){return bl(e)&&1===e.nodeType&&!Ov(e)}var $x="[object Map]",_x="[object Set]",Ox=Object.prototype.hasOwnProperty;function Mx(e){if(null==e)return!0;if(eh(e)&&(Cl(e)||"string"==typeof e||"function"==typeof e.splice||ph(e)||jh(e)||lh(e)))return!e.length;var t=Am(e);if(t==$x||t==_x)return!e.size;if(oh(e))return!Mh(e).length;for(var n in e)if(Ox.call(e,n))return!1;return!0}function Ax(e,t){return ay(e,t)}function Ex(e,t,n){var r=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===r?ay(e,t,void 0,n):!!r}var Px=cl.isFinite;function Tx(e){return"number"==typeof e&&Px(e)}function Rx(e){return"number"==typeof e&&e==Ul(e)}function Nx(e,t){return e===t||uy(e,t,fy(t))}function Ix(e,t,n){return n="function"==typeof n?n:void 0,uy(e,t,fy(t),n)}var Dx="[object Number]";function zx(e){return"number"==typeof e||bl(e)&&yl(e)==Dx}function Bx(e){return zx(e)&&e!=+e}var Lx=tf?Zl:fh;function qx(e){if(Lx(e))throw new Error("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return df(e)}function Fx(e){return null==e}function Vx(e){return null===e}var Hx=xh&&xh.isRegExp,Wx=Hx?gh(Hx):function(e){return bl(e)&&"[object RegExp]"==yl(e)},Ux=9007199254740991;function Jx(e){return Rx(e)&&e>=-9007199254740991&&e<=Ux}function Kx(e){return void 0===e}function Gx(e){return bl(e)&&"[object WeakMap]"==Am(e)}function Qx(e){return bl(e)&&"[object WeakSet]"==yl(e)}function Yx(e){return ky("function"==typeof e?e:gg(e,1))}var Xx=Array.prototype.join;function Zx(e,t){return null==e?"":Xx.call(e,t)}var ek=Lp((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),tk=ek,nk=Ry((function(e,t,n){Hd(e,n,t)})),rk=nk;var ok=Math.max,ik=Math.min;function ak(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return void 0!==n&&(o=(o=Ul(n))<0?ok(r+o,0):ik(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):Yf(e,Xf,o,!0)}var sk=Lp((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),ck=sk,uk=ip("toLowerCase");function lk(e,t){return e<t}var fk=Nw(lk),dk=Nw((function(e,t){return e<=t}));function hk(e,t){var n={};return t=ky(t),Ay(e,(function(e,r,o){Hd(n,t(e,r,o),e)})),n}function vk(e,t){var n={};return t=ky(t),Ay(e,(function(e,r,o){Hd(n,r,t(e,r,o))})),n}function pk(e){return hy(gg(e,1))}function mk(e,t){return by(e,gg(t,1))}function gk(e,t,n){for(var r=-1,o=e.length;++r<o;){var i=e[r],a=t(i);if(null!=a&&(void 0===s?a==a&&!xl(a):n(a,s)))var s=a,c=i}return c}function yk(e){return e&&e.length?gk(e,Kl,Rw):void 0}function bk(e,t){return e&&e.length?gk(e,ky(t),Rw):void 0}function wk(e,t){for(var n,r=-1,o=e.length;++r<o;){var i=t(e[r]);void 0!==i&&(n=void 0===n?i:n+i)}return n}var xk=NaN;function kk(e,t){var n=null==e?0:e.length;return n?wk(e,t)/n:xk}function jk(e){return kk(e,Kl)}function Sk(e,t){return kk(e,ky(t))}var Ck=nh((function(e,t,n){tb(e,t,n)})),$k=Ck,_k=Yd((function(e,t){return function(n){return mx(n,e,t)}})),Ok=_k,Mk=Yd((function(e,t){return function(n){return mx(e,n,t)}})),Ak=Mk;function Ek(e){return e&&e.length?gk(e,Kl,lk):void 0}function Pk(e,t){return e&&e.length?gk(e,ky(t),lk):void 0}function Tk(e,t,n){var r=Ah(t),o=Ow(t,r),i=!(Il(n)&&"chain"in n&&!n.chain),a=Zl(e);return Qf(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=Nf(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,vv([this.value()],arguments))})})),e}var Rk=Al((function(e,t){return e*t}),1),Nk="Expected a function";function Ik(e){if("function"!=typeof e)throw new TypeError(Nk);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}var Dk="[object Map]",zk="[object Set]",Bk=ul?ul.iterator:void 0;function Lk(e){if(!e)return[];if(eh(e))return Ww(e)?op(e):Nf(e);if(Bk&&e[Bk])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Bk]());var t=Am(e);return(t==Dk?Ng:t==zk?Ig:Jw)(e)}function qk(){void 0===this.__values__&&(this.__values__=Lk(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}}function Fk(e,t){var n=e.length;if(n)return hd(t+=t<0?n:0,n)?e[t]:void 0}function Vk(e,t){return e&&e.length?Fk(e,Ul(t)):void 0}function Hk(e){return e=Ul(e),Yd((function(t){return Fk(t,e)}))}function Wk(e,t){return null==(e=px(e,t=cv(t,e)))||delete e[lv(mb(t))]}function Uk(e){return Ov(e)?void 0:e}var Jk=bv((function(e,t){var n={};if(null==e)return n;var r=!1;t=Sl(t,(function(t){return t=cv(t,e),r||(r=t.length>1),t})),Kd(e,pm(e),n),r&&(n=gg(n,7,Uk));for(var o=t.length;o--;)Wk(n,t[o]);return n})),Kk=Jk;function Gk(e,t,n,r){if(!Il(e))return e;for(var o=-1,i=(t=cv(t,e)).length,a=i-1,s=e;null!=s&&++o<i;){var c=lv(t[o]),u=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=a){var l=s[c];void 0===(u=r?r(l,c,s):void 0)&&(u=Il(l)?l:hd(t[o+1])?[]:{})}Jd(s,c,u),s=s[c]}return e}function Qk(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=fv(e,a);n(s,a)&&Gk(i,cv(a,e),s)}return i}function Yk(e,t){if(null==e)return{};var n=Sl(pm(e),(function(e){return[e]}));return t=ky(t),Qk(e,n,(function(e,n){return t(e,n[0])}))}function Xk(e,t){return Yk(e,Ik(ky(t)))}function Zk(e){return Nv(2,e)}function ej(e,t){if(e!==t){var n=void 0!==e,r=null===e,o=e==e,i=xl(e),a=void 0!==t,s=null===t,c=t==t,u=xl(t);if(!s&&!u&&!i&&e>t||i&&a&&c&&!s&&!u||r&&a&&c||!n&&c||!o)return 1;if(!r&&!i&&!u&&e<t||u&&n&&o&&!r&&!i||s&&n&&o||!a&&o||!c)return-1}return 0}function tj(e,t,n){t=t.length?Sl(t,(function(e){return Cl(e)?function(t){return fv(t,1===e.length?e[0]:e)}:e})):[Kl];var r=-1;t=Sl(t,gh(ky));var o=fw(e,(function(e,n,o){var i=Sl(t,(function(t){return t(e)}));return{criteria:i,index:++r,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(o,(function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,s=n.length;++r<a;){var c=ej(o[r],i[r]);if(c)return r>=s?c:c*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function nj(e,t,n,r){return null==e?[]:(Cl(t)||(t=null==t?[]:[t]),Cl(n=r?void 0:n)||(n=null==n?[]:[n]),tj(e,t,n))}function rj(e){return bv((function(t){return t=Sl(t,gh(ky)),Yd((function(n){var r=this;return e(t,(function(e){return xf(e,r,n)}))}))}))}var oj=rj(Sl),ij=Yd,aj=Math.min,sj=ij((function(e,t){var n=(t=1==t.length&&Cl(t[0])?Sl(t[0],gh(ky)):Sl(gv(t,1),gh(ky))).length;return Yd((function(r){for(var o=-1,i=aj(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return xf(e,this,r)}))})),cj=sj,uj=rj(Wb),lj=rj(Ag),fj=9007199254740991,dj=Math.floor;function hj(e,t){var n="";if(!e||t<1||t>fj)return n;do{t%2&&(n+=e),(t=dj(t/2))&&(e+=e)}while(t);return n}var vj=wy("length"),pj="\\ud800-\\udfff",mj="["+pj+"]",gj="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",yj="\\ud83c[\\udffb-\\udfff]",bj="[^"+pj+"]",wj="(?:\\ud83c[\\udde6-\\uddff]){2}",xj="[\\ud800-\\udbff][\\udc00-\\udfff]",kj="(?:"+gj+"|"+yj+")"+"?",jj="[\\ufe0e\\ufe0f]?",Sj=jj+kj+("(?:\\u200d(?:"+[bj,wj,xj].join("|")+")"+jj+kj+")*"),Cj="(?:"+[bj+gj+"?",gj,wj,xj,mj].join("|")+")",$j=RegExp(yj+"(?="+yj+")|"+Cj+Sj,"g");function _j(e){return Wv(e)?function(e){for(var t=$j.lastIndex=0;$j.test(e);)++t;return t}(e):vj(e)}var Oj=Math.ceil;function Mj(e,t){var n=(t=void 0===t?" ":Ml(t)).length;if(n<2)return n?hj(t,e):t;var r=hj(t,Oj(e/_j(t)));return Wv(t)?Vv(op(r),0,e).join(""):r.slice(0,e)}var Aj=Math.ceil,Ej=Math.floor;function Pj(e,t,n){e=sv(e);var r=(t=Ul(t))?_j(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Mj(Ej(o),n)+e+Mj(Aj(o),n)}function Tj(e,t,n){e=sv(e);var r=(t=Ul(t))?_j(e):0;return t&&r<t?e+Mj(t-r,n):e}function Rj(e,t,n){e=sv(e);var r=(t=Ul(t))?_j(e):0;return t&&r<t?Mj(t-r,n)+e:e}var Nj=/^\s+/,Ij=cl.parseInt;function Dj(e,t,n){return n||null==t?t=0:t&&(t=+t),Ij(sv(e).replace(Nj,""),t||0)}var zj=Yd((function(e,t){return qd(e,32,void 0,t,md(t,ld(zj)))}));zj.placeholder={};var Bj=zj,Lj=Yd((function(e,t){return qd(e,64,void 0,t,md(t,ld(Lj)))}));Lj.placeholder={};var qj=Lj,Fj=Ry((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),Vj=Fj;var Hj=bv((function(e,t){return null==e?{}:function(e,t){return Qk(e,t,(function(t,n){return my(e,n)}))}(e,t)})),Wj=Hj;function Uj(e){for(var t,n=this;n instanceof $f;){var r=If(n);r.__index__=0,r.__values__=void 0,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t}function Jj(e){return function(t){return null==e?void 0:fv(e,t)}}function Kj(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}var Gj=Array.prototype.splice;function Qj(e,t,n,r){var o=r?Kj:Zf,i=-1,a=t.length,s=e;for(e===t&&(t=Nf(t)),n&&(s=Sl(e,gh(n)));++i<a;)for(var c=0,u=t[i],l=n?n(u):u;(c=o(s,l,c,r))>-1;)s!==e&&Gj.call(s,c,1),Gj.call(e,c,1);return e}function Yj(e,t){return e&&e.length&&t&&t.length?Qj(e,t):e}var Xj=Yd(Yj);function Zj(e,t,n){return e&&e.length&&t&&t.length?Qj(e,t,ky(n)):e}function eS(e,t,n){return e&&e.length&&t&&t.length?Qj(e,t,void 0,n):e}var tS=Array.prototype.splice;function nS(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;hd(o)?tS.call(e,o,1):Wk(e,o)}}return e}var rS=bv((function(e,t){var n=null==e?0:e.length,r=hv(e,t);return nS(e,Sl(t,(function(e){return hd(e,n)?+e:e})).sort(ej)),r})),oS=rS,iS=Math.floor,aS=Math.random;function sS(e,t){return e+iS(aS()*(t-e+1))}var cS=parseFloat,uS=Math.min,lS=Math.random;function fS(e,t,n){if(n&&"boolean"!=typeof n&&th(e,t,n)&&(t=n=void 0),void 0===n&&("boolean"==typeof t?(n=t,t=void 0):"boolean"==typeof e&&(n=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=Wl(e),void 0===t?(t=e,e=0):t=Wl(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=lS();return uS(e+o*(t-e+cS("1e-"+((o+"").length-1))),t)}return sS(e,t)}var dS=Math.ceil,hS=Math.max;function vS(e){return function(t,n,r){return r&&"number"!=typeof r&&th(t,n,r)&&(n=r=void 0),t=Wl(t),void 0===n?(n=t,t=0):n=Wl(n),function(e,t,n,r){for(var o=-1,i=hS(dS((t-e)/(n||1)),0),a=Array(i);i--;)a[r?i:++o]=e,e+=n;return a}(t,n,r=void 0===r?t<n?1:-1:Wl(r),e)}}var pS=vS(),mS=vS(!0),gS=bv((function(e,t){return qd(e,256,void 0,void 0,void 0,t)})),yS=gS;function bS(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function wS(e,t,n){var r=Cl(e)?cp:bS,o=arguments.length<3;return r(e,ky(t),n,o,Py)}function xS(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function kS(e,t,n){var r=Cl(e)?xS:bS,o=arguments.length<3;return r(e,ky(t),n,o,Pb)}function jS(e,t){return(Cl(e)?sm:Yb)(e,Ik(ky(t)))}function SS(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=ky(t);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return nS(e,o),n}function CS(e,t,n){return t=(n?th(e,t,n):void 0===t)?1:Ul(t),hj(sv(e),t)}function $S(){var e=arguments,t=sv(e[0]);return e.length<3?t:t.replace(e[1],e[2])}function _S(e,t){if("function"!=typeof e)throw new TypeError("Expected a function");return Yd(e,t=void 0===t?t:Ul(t))}function OS(e,t,n){var r=-1,o=(t=cv(t,e)).length;for(o||(o=1,e=void 0);++r<o;){var i=null==e?void 0:e[lv(t[r])];void 0===i&&(r=o,i=n),e=Zl(i)?i.call(e):i}return e}var MS=Array.prototype.reverse;function AS(e){return null==e?e:MS.call(e)}var ES=Up("round");function PS(e){var t=e.length;return t?e[sS(0,t-1)]:void 0}function TS(e){return PS(Jw(e))}function RS(e){return(Cl(e)?PS:TS)(e)}function NS(e,t){var n=-1,r=e.length,o=r-1;for(t=void 0===t?r:t;++n<t;){var i=sS(n,o),a=e[i];e[i]=e[n],e[n]=a}return e.length=t,e}function IS(e,t){return NS(Nf(e),Xp(t,0,e.length))}function DS(e,t){var n=Jw(e);return NS(n,Xp(t,0,n.length))}function zS(e,t,n){return t=(n?th(e,t,n):void 0===t)?1:Ul(t),(Cl(e)?IS:DS)(e,t)}function BS(e,t,n){return null==e?e:Gk(e,t,n)}function LS(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:Gk(e,t,n,r)}function qS(e){return NS(Nf(e))}function FS(e){return NS(Jw(e))}function VS(e){return(Cl(e)?qS:FS)(e)}function HS(e){if(null==e)return 0;if(eh(e))return Ww(e)?_j(e):e.length;var t=Am(e);return"[object Map]"==t||"[object Set]"==t?e.size:Mh(e).length}function WS(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&th(e,t,n)?(t=0,n=r):(t=null==t?0:Ul(t),n=void 0===n?r:Ul(n)),Fv(e,t,n)):[]}var US=Lp((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),JS=US;function KS(e,t){var n;return Py(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function GS(e,t,n){var r=Cl(e)?Ag:KS;return n&&th(e,t,n)&&(t=void 0),r(e,ky(t))}var QS=Yd((function(e,t){if(null==e)return[];var n=t.length;return n>1&&th(e,t[0],t[1])?t=[]:n>2&&th(t[0],t[1],t[2])&&(t=[t[0]]),tj(e,gv(t,1),[])})),YS=QS,XS=4294967294,ZS=Math.floor,eC=Math.min;function tC(e,t,n,r){var o=0,i=null==e?0:e.length;if(0===i)return 0;for(var a=(t=n(t))!=t,s=null===t,c=xl(t),u=void 0===t;o<i;){var l=ZS((o+i)/2),f=n(e[l]),d=void 0!==f,h=null===f,v=f==f,p=xl(f);if(a)var m=r||v;else m=u?v&&(r||d):s?v&&d&&(r||!h):c?v&&d&&!h&&(r||!p):!h&&!p&&(r?f<=t:f<t);m?o=l+1:i=l}return eC(i,XS)}var nC=2147483647;function rC(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=nC){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!xl(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return tC(e,t,Kl,n)}function oC(e,t){return rC(e,t)}function iC(e,t,n){return tC(e,t,ky(n))}function aC(e,t){var n=null==e?0:e.length;if(n){var r=rC(e,t);if(r<n&&Wd(e[r],t))return r}return-1}function sC(e,t){return rC(e,t,!0)}function cC(e,t,n){return tC(e,t,ky(n),!0)}function uC(e,t){if(null==e?0:e.length){var n=rC(e,t,!0)-1;if(Wd(e[n],t))return n}return-1}function lC(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!Wd(s,c)){var c=s;i[o++]=0===a?0:a}}return i}function fC(e){return e&&e.length?lC(e):[]}function dC(e,t){return e&&e.length?lC(e,ky(t)):[]}function hC(e,t,n){return n&&"number"!=typeof n&&th(e,t,n)&&(t=n=void 0),(n=void 0===n?4294967295:n>>>0)?(e=sv(e))&&("string"==typeof t||null!=t&&!Wx(t))&&!(t=Ml(t))&&Wv(e)?Vv(op(e),0,n):e.split(t,n):[]}var vC=Math.max;function pC(e,t){if("function"!=typeof e)throw new TypeError("Expected a function");return t=null==t?0:vC(Ul(t),0),Yd((function(n){var r=n[t],o=Vv(n,0,t);return r&&vv(o,r),xf(e,this,o)}))}var mC=Lp((function(e,t,n){return e+(n?" ":"")+ap(t)})),gC=mC;function yC(e,t,n){return e=sv(e),n=null==n?0:Xp(Ul(n),0,e.length),t=Ml(t),e.slice(n,n+t.length)==t}function bC(){return{}}function wC(){return""}function xC(){return!0}var kC=Al((function(e,t){return e-t}),0);function jC(e){return e&&e.length?wk(e,Kl):0}function SC(e,t){return e&&e.length?wk(e,ky(t)):0}function CC(e){var t=null==e?0:e.length;return t?Fv(e,1,t):[]}function $C(e,t,n){return e&&e.length?Fv(e,0,(t=n||void 0===t?1:Ul(t))<0?0:t):[]}function _C(e,t,n){var r=null==e?0:e.length;return r?Fv(e,(t=r-(t=n||void 0===t?1:Ul(t)))<0?0:t,r):[]}function OC(e,t){return e&&e.length?Sb(e,ky(t),!1,!0):[]}function MC(e,t){return e&&e.length?Sb(e,ky(t)):[]}function AC(e,t){return t(e),e}var EC=Object.prototype,PC=EC.hasOwnProperty;function TC(e,t,n,r){return void 0===e||Wd(e,EC[n])&&!PC.call(r,n)?t:e}var RC={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function NC(e){return"\\"+RC[e]}var IC=/<%=([\s\S]+?)%>/g,DC={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:IC,variable:"",imports:{_:{escape:qb}}},zC=/\b__p \+= '';/g,BC=/\b(__p \+=) '' \+/g,LC=/(__e\(.*?\)|\b__t\)) \+\n'';/g,qC=/[()=,{}\[\]\/\s]/,FC=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,VC=/($^)/,HC=/['\n\r\u2028\u2029\\]/g,WC=Object.prototype.hasOwnProperty;function UC(e,t,n){var r=DC.imports._.templateSettings||DC;n&&th(e,t,n)&&(t=void 0),e=sv(e),t=Lh({},t,r,TC);var o,i,a=Lh({},t.imports,r.imports,TC),s=Ah(a),c=Uw(a,s),u=0,l=t.interpolate||VC,f="__p += '",d=RegExp((t.escape||VC).source+"|"+l.source+"|"+(l===IC?FC:VC).source+"|"+(t.evaluate||VC).source+"|$","g"),h=WC.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+"\n":"";e.replace(d,(function(t,n,r,a,s,c){return r||(r=a),f+=e.slice(u,c).replace(HC,NC),n&&(o=!0,f+="' +\n__e("+n+") +\n'"),s&&(i=!0,f+="';\n"+s+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=c+t.length,t})),f+="';\n";var v=WC.call(t,"variable")&&t.variable;if(v){if(qC.test(v))throw new Error("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(i?f.replace(zC,""):f).replace(BC,"$1").replace(LC,"$1;"),f="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var p=Tv((function(){return Function(s,h+"return "+f).apply(void 0,c)}));if(p.source=f,Ev(p))throw p;return p}function JC(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return Il(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Wy(e,t,{leading:r,maxWait:t,trailing:o})}function KC(e,t){return t(e)}var GC=9007199254740991,QC=4294967295,YC=Math.min;function XC(e,t){if((e=Ul(e))<1||e>GC)return[];var n=QC,r=YC(e,QC);t=_b(t),e-=QC;for(var o=ih(r,t);++n<e;)t(n);return o}function ZC(){return this}function e$(e,t){var n=e;return n instanceof Of&&(n=n.value()),cp(t,(function(e,t){return t.func.apply(t.thisArg,vv([e],t.args))}),n)}function t$(){return e$(this.__wrapped__,this.__actions__)}function n$(e){return sv(e).toLowerCase()}function r$(e){return Cl(e)?Sl(e,lv):xl(e)?[e]:Nf(av(sv(e)))}var o$=9007199254740991;function i$(e){return e?Xp(Ul(e),-9007199254740991,o$):0===e?e:0}function a$(e){return sv(e).toUpperCase()}function s$(e,t,n){var r=Cl(e),o=r||ph(e)||jh(e);if(t=ky(t),null==n){var i=e&&e.constructor;n=o?r?new i:[]:Il(e)&&Zl(i)?yf(xv(e)):{}}return(o?Qf:Ay)(e,(function(e,r,o){return t(n,e,r,o)})),n}function c$(e,t){for(var n=e.length;n--&&Zf(t,e[n],0)>-1;);return n}function u$(e,t){for(var n=-1,r=e.length;++n<r&&Zf(t,e[n],0)>-1;);return n}function l$(e,t,n){if((e=sv(e))&&(n||void 0===t))return Nl(e);if(!e||!(t=Ml(t)))return e;var r=op(e),o=op(t);return Vv(r,u$(r,o),c$(r,o)+1).join("")}function f$(e,t,n){if((e=sv(e))&&(n||void 0===t))return e.slice(0,Tl(e)+1);if(!e||!(t=Ml(t)))return e;var r=op(e);return Vv(r,0,c$(r,op(t))+1).join("")}var d$=/^\s+/;function h$(e,t,n){if((e=sv(e))&&(n||void 0===t))return e.replace(d$,"");if(!e||!(t=Ml(t)))return e;var r=op(e);return Vv(r,u$(r,op(t))).join("")}var v$=/\w*$/;function p$(e,t){var n=30,r="...";if(Il(t)){var o="separator"in t?t.separator:o;n="length"in t?Ul(t.length):n,r="omission"in t?Ml(t.omission):r}var i=(e=sv(e)).length;if(Wv(e)){var a=op(e);i=a.length}if(n>=i)return e;var s=n-_j(r);if(s<1)return r;var c=a?Vv(a,0,s).join(""):e.slice(0,s);if(void 0===o)return c+r;if(a&&(s+=c.length-s),Wx(o)){if(e.slice(s).search(o)){var u,l=c;for(o.global||(o=RegExp(o.source,sv(v$.exec(o))+"g")),o.lastIndex=0;u=o.exec(l);)var f=u.index;c=c.slice(0,void 0===f?s:f)}}else if(e.indexOf(Ml(o),s)!=s){var d=c.lastIndexOf(o);d>-1&&(c=c.slice(0,d))}return c+r}function m$(e){return Vd(e,1)}var g$=up({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),y$=/&(?:amp|lt|gt|quot|#39);/g,b$=RegExp(y$.source);function w$(e){return(e=sv(e))&&b$.test(e)?e.replace(y$,g$):e}var x$=ym&&1/Ig(new ym([,-0]))[1]==1/0?function(e){return new ym(e)}:Mf,k$=200;function j$(e,t,n){var r=-1,o=ed,i=e.length,a=!0,s=[],c=s;if(n)a=!1,o=fb;else if(i>=k$){var u=t?null:x$(e);if(u)return Ig(u);a=!1,o=Eg,c=new Mg}else c=t?[]:s;e:for(;++r<i;){var l=e[r],f=t?t(l):l;if(l=n||0!==l?l:0,a&&f==f){for(var d=c.length;d--;)if(c[d]===f)continue e;t&&c.push(f),s.push(l)}else o(c,f,n)||(c!==s&&c.push(f),s.push(l))}return s}var S$=Yd((function(e){return j$(gv(e,1,Xy,!0))})),C$=Yd((function(e){var t=mb(e);return Xy(t)&&(t=void 0),j$(gv(e,1,Xy,!0),ky(t))})),$$=C$,_$=Yd((function(e){var t=mb(e);return t="function"==typeof t?t:void 0,j$(gv(e,1,Xy,!0),void 0,t)}));function O$(e){return e&&e.length?j$(e):[]}function M$(e,t){return e&&e.length?j$(e,ky(t)):[]}function A$(e,t){return t="function"==typeof t?t:void 0,e&&e.length?j$(e,void 0,t):[]}var E$=0;function P$(e){var t=++E$;return sv(e)+t}function T$(e,t){return null==e||Wk(e,t)}var R$=Math.max;function N$(e){if(!e||!e.length)return[];var t=0;return e=sm(e,(function(e){if(Xy(e))return t=R$(e.length,t),!0})),ih(t,(function(t){return Sl(e,wy(t))}))}function I$(e,t){if(!e||!e.length)return[];var n=N$(e);return null==t?n:Sl(n,(function(e){return xf(t,void 0,e)}))}function D$(e,t,n,r){return Gk(e,t,n(fv(e,t)),r)}function z$(e,t,n){return null==e?e:D$(e,t,_b(n))}function B$(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:D$(e,t,_b(n),r)}var L$=Lp((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),q$=L$;function F$(e){return null==e?[]:Uw(e,Ih(e))}var V$=Yd((function(e,t){return Xy(e)?hb(e,t):[]})),H$=V$;function W$(e,t){return Bj(_b(t),e)}var U$=bv((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return hv(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Of&&hd(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:KC,args:[o],thisArg:void 0}),new Rf(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(o)})),J$=U$;function K$(){return Kp(this)}function G$(){var e=this.__wrapped__;if(e instanceof Of){var t=e;return this.__actions__.length&&(t=new Of(this)),(t=t.reverse()).__actions__.push({func:KC,args:[AS],thisArg:void 0}),new Rf(t,this.__chain__)}return this.thru(AS)}function Q$(e,t,n){var r=e.length;if(r<2)return r?j$(e[0]):[];for(var o=-1,i=Array(r);++o<r;)for(var a=e[o],s=-1;++s<r;)s!=o&&(i[o]=hb(i[o]||a,e[s],t,n));return j$(gv(i,1),t,n)}var Y$=Yd((function(e){return Q$(sm(e,Xy))})),X$=Yd((function(e){var t=mb(e);return Xy(t)&&(t=void 0),Q$(sm(e,Xy),ky(t))})),Z$=X$,e_=Yd((function(e){var t=mb(e);return t="function"==typeof t?t:void 0,Q$(sm(e,Xy),void 0,t)})),t_=Yd(N$);function n_(e,t,n){for(var r=-1,o=e.length,i=t.length,a={};++r<o;){var s=r<i?t[r]:void 0;n(a,e[r],s)}return a}function r_(e,t){return n_(e||[],t||[],Jd)}function o_(e,t){return n_(e||[],t||[],Gk)}var i_=Yd((function(e){var t=e.length,n=t>1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,I$(e,n)})),a_=i_,s_={chunk:Yp,compact:_g,concat:Og,difference:pb,differenceBy:yb,differenceWith:wb,drop:kb,dropRight:jb,dropRightWhile:Cb,dropWhile:$b,fill:Qb,findIndex:tw,findLastIndex:sw,first:lw,flatten:yv,flattenDeep:mw,flattenDepth:gw,fromPairs:_w,head:lw,indexOf:Yw,initial:Xw,intersection:nx,intersectionBy:ox,intersectionWith:ix,join:Zx,last:mb,lastIndexOf:ak,nth:Vk,pull:Xj,pullAll:Yj,pullAllBy:Zj,pullAllWith:eS,pullAt:oS,remove:SS,reverse:AS,slice:WS,sortedIndex:oC,sortedIndexBy:iC,sortedIndexOf:aC,sortedLastIndex:sC,sortedLastIndexBy:cC,sortedLastIndexOf:uC,sortedUniq:fC,sortedUniqBy:dC,tail:CC,take:$C,takeRight:_C,takeRightWhile:OC,takeWhile:MC,union:S$,unionBy:$$,unionWith:_$,uniq:O$,uniqBy:M$,uniqWith:A$,unzip:N$,unzipWith:I$,without:H$,xor:Y$,xorBy:Z$,xorWith:e_,zip:t_,zipObject:r_,zipObjectDeep:o_,zipWith:a_},c_={countBy:Dy,each:Ob,eachRight:Tb,every:Jb,filter:Xb,find:nw,findLast:cw,flatMap:hw,flatMapDeep:vw,flatMapDepth:pw,forEach:Ob,forEachRight:Tb,groupBy:Tw,includes:Gw,invokeMap:bx,keyBy:rk,map:dw,orderBy:nj,partition:Vj,reduce:wS,reduceRight:kS,reject:jS,sample:RS,sampleSize:zS,shuffle:VS,size:HS,some:GS,sortBy:YS},u_={now:qy},l_={after:Jl,ary:Vd,before:Nv,bind:Dv,bindKey:qv,curry:By,curryRight:Ly,debounce:Wy,defer:cb,delay:lb,flip:yw,memoize:rv,negate:Ik,once:Zk,overArgs:cj,partial:Bj,partialRight:qj,rearg:yS,rest:_S,spread:pC,throttle:JC,unary:m$,wrap:W$},f_={castArray:Vp,clone:yg,cloneDeep:xg,cloneDeepWith:Sg,cloneWith:Cg,conformsTo:$y,eq:Wd,gt:Iw,gte:Dw,isArguments:lh,isArray:Cl,isArrayBuffer:xx,isArrayLike:eh,isArrayLikeObject:Xy,isBoolean:kx,isBuffer:ph,isDate:Sx,isElement:Cx,isEmpty:Mx,isEqual:Ax,isEqualWith:Ex,isError:Ev,isFinite:Tx,isFunction:Zl,isInteger:Rx,isLength:Zd,isMap:ag,isMatch:Nx,isMatchWith:Ix,isNaN:Bx,isNative:qx,isNil:Fx,isNull:Vx,isNumber:zx,isObject:Il,isObjectLike:bl,isPlainObject:Ov,isRegExp:Wx,isSafeInteger:Jx,isSet:cg,isString:Ww,isSymbol:xl,isTypedArray:jh,isUndefined:Kx,isWeakMap:Gx,isWeakSet:Qx,lt:fk,lte:dk,toArray:Lk,toFinite:Wl,toInteger:Ul,toLength:Gb,toNumber:Fl,toPlainObject:eb,toSafeInteger:i$,toString:sv},d_={add:El,ceil:Jp,divide:xb,floor:bw,max:yk,maxBy:bk,mean:jk,meanBy:Sk,min:Ek,minBy:Pk,multiply:Rk,round:ES,subtract:kC,sum:jC,sumBy:SC},h_=Zp,v_=Vw,p_=fS,m_={assign:Th,assignIn:zh,assignInWith:Lh,assignWith:Fh,at:wv,create:zy,defaults:Qy,defaultsDeep:ib,entries:Ib,entriesIn:Db,extend:zh,extendWith:Lh,findKey:ow,findLastKey:uw,forIn:jw,forInRight:Sw,forOwn:Cw,forOwnRight:$w,functions:Mw,functionsIn:Aw,get:dv,has:Lw,hasIn:my,invert:ux,invertBy:vx,invoke:gx,keys:Ah,keysIn:Ih,mapKeys:hk,mapValues:vk,merge:$k,mergeWith:ob,omit:Kk,omitBy:Xk,pick:Wj,pickBy:Yk,result:OS,set:BS,setWith:LS,toPairs:Ib,toPairsIn:Db,transform:s$,unset:T$,update:z$,updateWith:B$,values:Jw,valuesIn:F$},g_={at:J$,chain:Kp,commit:$g,lodash:zf,next:qk,plant:Uj,reverse:G$,tap:AC,thru:KC,toIterator:ZC,toJSON:t$,value:t$,valueOf:t$,wrapperChain:K$},y_={camelCase:Fp,capitalize:sp,deburr:hp,endsWith:Rb,escape:qb,escapeRegExp:Hb,kebabCase:tk,lowerCase:ck,lowerFirst:uk,pad:Pj,padEnd:Tj,padStart:Rj,parseInt:Dj,repeat:CS,replace:$S,snakeCase:JS,split:hC,startCase:gC,startsWith:yC,template:UC,templateSettings:DC,toLower:n$,toUpper:a$,trim:l$,trimEnd:f$,trimStart:h$,truncate:p$,unescape:w$,upperCase:q$,upperFirst:ap,words:zp},b_={attempt:Tv,bindAll:Bv,cond:jy,conforms:Cy,constant:Uf,defaultTo:Uy,flow:xw,flowRight:kw,identity:Kl,iteratee:Yx,matches:pk,matchesProperty:mk,method:Ok,methodOf:Ak,mixin:Tk,noop:Mf,nthArg:Hk,over:oj,overEvery:uj,overSome:lj,property:xy,propertyOf:Jj,range:pS,rangeRight:mS,stubArray:cm,stubFalse:fh,stubObject:bC,stubString:wC,stubTrue:xC,times:XC,toPath:r$,uniqueId:P$};var w_=Math.max,x_=Math.min;var k_=Math.min;
/**
 * @license
 * Lodash (Custom Build) <https://lodash.com/>
 * Build: `lodash modularize exports="es" -o ./`
 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
 * Released under MIT license <https://lodash.com/license>
 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
 */var j_,S_=4294967295,C_=Array.prototype,$_=Object.prototype.hasOwnProperty,__=ul?ul.iterator:void 0,O_=Math.max,M_=Math.min,A_=function(e){return function(t,n,r){if(null==r){var o=Il(n),i=o&&Ah(n),a=i&&i.length&&Ow(n,i);(a?a.length:o)||(r=n,n=t,t=this)}return e(t,n,r)}}(Tk);zf.after=l_.after,zf.ary=l_.ary,zf.assign=m_.assign,zf.assignIn=m_.assignIn,zf.assignInWith=m_.assignInWith,zf.assignWith=m_.assignWith,zf.at=m_.at,zf.before=l_.before,zf.bind=l_.bind,zf.bindAll=b_.bindAll,zf.bindKey=l_.bindKey,zf.castArray=f_.castArray,zf.chain=g_.chain,zf.chunk=s_.chunk,zf.compact=s_.compact,zf.concat=s_.concat,zf.cond=b_.cond,zf.conforms=b_.conforms,zf.constant=b_.constant,zf.countBy=c_.countBy,zf.create=m_.create,zf.curry=l_.curry,zf.curryRight=l_.curryRight,zf.debounce=l_.debounce,zf.defaults=m_.defaults,zf.defaultsDeep=m_.defaultsDeep,zf.defer=l_.defer,zf.delay=l_.delay,zf.difference=s_.difference,zf.differenceBy=s_.differenceBy,zf.differenceWith=s_.differenceWith,zf.drop=s_.drop,zf.dropRight=s_.dropRight,zf.dropRightWhile=s_.dropRightWhile,zf.dropWhile=s_.dropWhile,zf.fill=s_.fill,zf.filter=c_.filter,zf.flatMap=c_.flatMap,zf.flatMapDeep=c_.flatMapDeep,zf.flatMapDepth=c_.flatMapDepth,zf.flatten=s_.flatten,zf.flattenDeep=s_.flattenDeep,zf.flattenDepth=s_.flattenDepth,zf.flip=l_.flip,zf.flow=b_.flow,zf.flowRight=b_.flowRight,zf.fromPairs=s_.fromPairs,zf.functions=m_.functions,zf.functionsIn=m_.functionsIn,zf.groupBy=c_.groupBy,zf.initial=s_.initial,zf.intersection=s_.intersection,zf.intersectionBy=s_.intersectionBy,zf.intersectionWith=s_.intersectionWith,zf.invert=m_.invert,zf.invertBy=m_.invertBy,zf.invokeMap=c_.invokeMap,zf.iteratee=b_.iteratee,zf.keyBy=c_.keyBy,zf.keys=Ah,zf.keysIn=m_.keysIn,zf.map=c_.map,zf.mapKeys=m_.mapKeys,zf.mapValues=m_.mapValues,zf.matches=b_.matches,zf.matchesProperty=b_.matchesProperty,zf.memoize=l_.memoize,zf.merge=m_.merge,zf.mergeWith=m_.mergeWith,zf.method=b_.method,zf.methodOf=b_.methodOf,zf.mixin=A_,zf.negate=Ik,zf.nthArg=b_.nthArg,zf.omit=m_.omit,zf.omitBy=m_.omitBy,zf.once=l_.once,zf.orderBy=c_.orderBy,zf.over=b_.over,zf.overArgs=l_.overArgs,zf.overEvery=b_.overEvery,zf.overSome=b_.overSome,zf.partial=l_.partial,zf.partialRight=l_.partialRight,zf.partition=c_.partition,zf.pick=m_.pick,zf.pickBy=m_.pickBy,zf.property=b_.property,zf.propertyOf=b_.propertyOf,zf.pull=s_.pull,zf.pullAll=s_.pullAll,zf.pullAllBy=s_.pullAllBy,zf.pullAllWith=s_.pullAllWith,zf.pullAt=s_.pullAt,zf.range=b_.range,zf.rangeRight=b_.rangeRight,zf.rearg=l_.rearg,zf.reject=c_.reject,zf.remove=s_.remove,zf.rest=l_.rest,zf.reverse=s_.reverse,zf.sampleSize=c_.sampleSize,zf.set=m_.set,zf.setWith=m_.setWith,zf.shuffle=c_.shuffle,zf.slice=s_.slice,zf.sortBy=c_.sortBy,zf.sortedUniq=s_.sortedUniq,zf.sortedUniqBy=s_.sortedUniqBy,zf.split=y_.split,zf.spread=l_.spread,zf.tail=s_.tail,zf.take=s_.take,zf.takeRight=s_.takeRight,zf.takeRightWhile=s_.takeRightWhile,zf.takeWhile=s_.takeWhile,zf.tap=g_.tap,zf.throttle=l_.throttle,zf.thru=KC,zf.toArray=f_.toArray,zf.toPairs=m_.toPairs,zf.toPairsIn=m_.toPairsIn,zf.toPath=b_.toPath,zf.toPlainObject=f_.toPlainObject,zf.transform=m_.transform,zf.unary=l_.unary,zf.union=s_.union,zf.unionBy=s_.unionBy,zf.unionWith=s_.unionWith,zf.uniq=s_.uniq,zf.uniqBy=s_.uniqBy,zf.uniqWith=s_.uniqWith,zf.unset=m_.unset,zf.unzip=s_.unzip,zf.unzipWith=s_.unzipWith,zf.update=m_.update,zf.updateWith=m_.updateWith,zf.values=m_.values,zf.valuesIn=m_.valuesIn,zf.without=s_.without,zf.words=y_.words,zf.wrap=l_.wrap,zf.xor=s_.xor,zf.xorBy=s_.xorBy,zf.xorWith=s_.xorWith,zf.zip=s_.zip,zf.zipObject=s_.zipObject,zf.zipObjectDeep=s_.zipObjectDeep,zf.zipWith=s_.zipWith,zf.entries=m_.toPairs,zf.entriesIn=m_.toPairsIn,zf.extend=m_.assignIn,zf.extendWith=m_.assignInWith,A_(zf,zf),zf.add=d_.add,zf.attempt=b_.attempt,zf.camelCase=y_.camelCase,zf.capitalize=y_.capitalize,zf.ceil=d_.ceil,zf.clamp=h_,zf.clone=f_.clone,zf.cloneDeep=f_.cloneDeep,zf.cloneDeepWith=f_.cloneDeepWith,zf.cloneWith=f_.cloneWith,zf.conformsTo=f_.conformsTo,zf.deburr=y_.deburr,zf.defaultTo=b_.defaultTo,zf.divide=d_.divide,zf.endsWith=y_.endsWith,zf.eq=f_.eq,zf.escape=y_.escape,zf.escapeRegExp=y_.escapeRegExp,zf.every=c_.every,zf.find=c_.find,zf.findIndex=s_.findIndex,zf.findKey=m_.findKey,zf.findLast=c_.findLast,zf.findLastIndex=s_.findLastIndex,zf.findLastKey=m_.findLastKey,zf.floor=d_.floor,zf.forEach=c_.forEach,zf.forEachRight=c_.forEachRight,zf.forIn=m_.forIn,zf.forInRight=m_.forInRight,zf.forOwn=m_.forOwn,zf.forOwnRight=m_.forOwnRight,zf.get=m_.get,zf.gt=f_.gt,zf.gte=f_.gte,zf.has=m_.has,zf.hasIn=m_.hasIn,zf.head=s_.head,zf.identity=Kl,zf.includes=c_.includes,zf.indexOf=s_.indexOf,zf.inRange=v_,zf.invoke=m_.invoke,zf.isArguments=f_.isArguments,zf.isArray=Cl,zf.isArrayBuffer=f_.isArrayBuffer,zf.isArrayLike=f_.isArrayLike,zf.isArrayLikeObject=f_.isArrayLikeObject,zf.isBoolean=f_.isBoolean,zf.isBuffer=f_.isBuffer,zf.isDate=f_.isDate,zf.isElement=f_.isElement,zf.isEmpty=f_.isEmpty,zf.isEqual=f_.isEqual,zf.isEqualWith=f_.isEqualWith,zf.isError=f_.isError,zf.isFinite=f_.isFinite,zf.isFunction=f_.isFunction,zf.isInteger=f_.isInteger,zf.isLength=f_.isLength,zf.isMap=f_.isMap,zf.isMatch=f_.isMatch,zf.isMatchWith=f_.isMatchWith,zf.isNaN=f_.isNaN,zf.isNative=f_.isNative,zf.isNil=f_.isNil,zf.isNull=f_.isNull,zf.isNumber=f_.isNumber,zf.isObject=Il,zf.isObjectLike=f_.isObjectLike,zf.isPlainObject=f_.isPlainObject,zf.isRegExp=f_.isRegExp,zf.isSafeInteger=f_.isSafeInteger,zf.isSet=f_.isSet,zf.isString=f_.isString,zf.isSymbol=f_.isSymbol,zf.isTypedArray=f_.isTypedArray,zf.isUndefined=f_.isUndefined,zf.isWeakMap=f_.isWeakMap,zf.isWeakSet=f_.isWeakSet,zf.join=s_.join,zf.kebabCase=y_.kebabCase,zf.last=mb,zf.lastIndexOf=s_.lastIndexOf,zf.lowerCase=y_.lowerCase,zf.lowerFirst=y_.lowerFirst,zf.lt=f_.lt,zf.lte=f_.lte,zf.max=d_.max,zf.maxBy=d_.maxBy,zf.mean=d_.mean,zf.meanBy=d_.meanBy,zf.min=d_.min,zf.minBy=d_.minBy,zf.stubArray=b_.stubArray,zf.stubFalse=b_.stubFalse,zf.stubObject=b_.stubObject,zf.stubString=b_.stubString,zf.stubTrue=b_.stubTrue,zf.multiply=d_.multiply,zf.nth=s_.nth,zf.noop=b_.noop,zf.now=u_.now,zf.pad=y_.pad,zf.padEnd=y_.padEnd,zf.padStart=y_.padStart,zf.parseInt=y_.parseInt,zf.random=p_,zf.reduce=c_.reduce,zf.reduceRight=c_.reduceRight,zf.repeat=y_.repeat,zf.replace=y_.replace,zf.result=m_.result,zf.round=d_.round,zf.sample=c_.sample,zf.size=c_.size,zf.snakeCase=y_.snakeCase,zf.some=c_.some,zf.sortedIndex=s_.sortedIndex,zf.sortedIndexBy=s_.sortedIndexBy,zf.sortedIndexOf=s_.sortedIndexOf,zf.sortedLastIndex=s_.sortedLastIndex,zf.sortedLastIndexBy=s_.sortedLastIndexBy,zf.sortedLastIndexOf=s_.sortedLastIndexOf,zf.startCase=y_.startCase,zf.startsWith=y_.startsWith,zf.subtract=d_.subtract,zf.sum=d_.sum,zf.sumBy=d_.sumBy,zf.template=y_.template,zf.times=b_.times,zf.toFinite=f_.toFinite,zf.toInteger=Ul,zf.toLength=f_.toLength,zf.toLower=y_.toLower,zf.toNumber=f_.toNumber,zf.toSafeInteger=f_.toSafeInteger,zf.toString=f_.toString,zf.toUpper=y_.toUpper,zf.trim=y_.trim,zf.trimEnd=y_.trimEnd,zf.trimStart=y_.trimStart,zf.truncate=y_.truncate,zf.unescape=y_.unescape,zf.uniqueId=b_.uniqueId,zf.upperCase=y_.upperCase,zf.upperFirst=y_.upperFirst,zf.each=c_.forEach,zf.eachRight=c_.forEachRight,zf.first=s_.head,A_(zf,(j_={},Ay(zf,(function(e,t){$_.call(zf.prototype,t)||(j_[t]=e)})),j_),{chain:!1}),zf.VERSION="4.17.21",(zf.templateSettings=y_.templateSettings).imports._=zf,Qf(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){zf[e].placeholder=zf})),Qf(["drop","take"],(function(e,t){Of.prototype[e]=function(n){n=void 0===n?1:O_(Ul(n),0);var r=this.__filtered__&&!t?new Of(this):this.clone();return r.__filtered__?r.__takeCount__=M_(n,r.__takeCount__):r.__views__.push({size:M_(n,S_),type:e+(r.__dir__<0?"Right":"")}),r},Of.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Qf(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Of.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ky(e),type:n}),t.__filtered__=t.__filtered__||r,t}})),Qf(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Of.prototype[e]=function(){return this[n](1).value()[0]}})),Qf(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Of.prototype[e]=function(){return this.__filtered__?new Of(this):this[n](1)}})),Of.prototype.compact=function(){return this.filter(Kl)},Of.prototype.find=function(e){return this.filter(e).head()},Of.prototype.findLast=function(e){return this.reverse().find(e)},Of.prototype.invokeMap=Yd((function(e,t){return"function"==typeof e?new Of(this):this.map((function(n){return mx(n,e,t)}))})),Of.prototype.reject=function(e){return this.filter(Ik(ky(e)))},Of.prototype.slice=function(e,t){e=Ul(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Of(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=Ul(t))<0?n.dropRight(-t):n.take(t-e)),n)},Of.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Of.prototype.toArray=function(){return this.take(S_)},Ay(Of.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=zf[r?"take"+("last"==t?"Right":""):t],i=r||/^find/.test(t);o&&(zf.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,s=t instanceof Of,c=a[0],u=s||Cl(t),l=function(e){var t=o.apply(zf,vv([e],a));return r&&f?t[0]:t};u&&n&&"function"==typeof c&&1!=c.length&&(s=u=!1);var f=this.__chain__,d=!!this.__actions__.length,h=i&&!f,v=s&&!d;if(!i&&u){t=v?t:new Of(this);var p=e.apply(t,a);return p.__actions__.push({func:KC,args:[l],thisArg:void 0}),new Rf(p,f)}return h&&v?e.apply(this,a):(p=this.thru(l),h?r?p.value()[0]:p.value():p)})})),Qf(["pop","push","shift","sort","splice","unshift"],(function(e){var t=C_[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);zf.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Cl(o)?o:[],e)}return this[n]((function(n){return t.apply(Cl(n)?n:[],e)}))}})),Ay(Of.prototype,(function(e,t){var n=zf[t];if(n){var r=n.name+"";$_.call(Ef,r)||(Ef[r]=[]),Ef[r].push({name:t,func:n})}})),Ef[jd(void 0,2).name]=[{name:"wrapper",func:void 0}],Of.prototype.clone=function(){var e=new Of(this.__wrapped__);return e.__actions__=Nf(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Nf(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Nf(this.__views__),e},Of.prototype.reverse=function(){if(this.__filtered__){var e=new Of(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Of.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Cl(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=x_(t,e+a);break;case"takeRight":e=w_(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,s=i.end,c=s-a,u=r?s:a-1,l=this.__iteratees__,f=l.length,d=0,h=k_(c,this.__takeCount__);if(!n||!r&&o==c&&h==c)return e$(e,this.__actions__);var v=[];e:for(;c--&&d<h;){for(var p=-1,m=e[u+=t];++p<f;){var g=l[p],y=g.iteratee,b=g.type,w=y(m);if(2==b)m=w;else if(!w){if(1==b)continue e;break e}}v[d++]=m}return v},zf.prototype.at=g_.at,zf.prototype.chain=g_.wrapperChain,zf.prototype.commit=g_.commit,zf.prototype.next=g_.next,zf.prototype.plant=g_.plant,zf.prototype.reverse=g_.reverse,zf.prototype.toJSON=zf.prototype.valueOf=zf.prototype.value=g_.value,zf.prototype.first=zf.prototype.head,__&&(zf.prototype[__]=g_.toIterator)
/**
 * @license
 * Lodash (Custom Build) <https://lodash.com/>
 * Build: `lodash modularize exports="es" -o ./`
 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
 * Released under MIT license <https://lodash.com/license>
 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
 */;var E_=Object.freeze({__proto__:null,add:El,after:Jl,ary:Vd,assign:Th,assignIn:zh,assignInWith:Lh,assignWith:Fh,at:wv,attempt:Tv,before:Nv,bind:Dv,bindAll:Bv,bindKey:qv,camelCase:Fp,capitalize:sp,castArray:Vp,ceil:Jp,chain:Kp,chunk:Yp,clamp:Zp,clone:yg,cloneDeep:xg,cloneDeepWith:Sg,cloneWith:Cg,commit:$g,compact:_g,concat:Og,cond:jy,conforms:Cy,conformsTo:$y,constant:Uf,countBy:Dy,create:zy,curry:By,curryRight:Ly,debounce:Wy,deburr:hp,default:zf,defaultTo:Uy,defaults:Qy,defaultsDeep:ib,defer:cb,delay:lb,difference:pb,differenceBy:yb,differenceWith:wb,divide:xb,drop:kb,dropRight:jb,dropRightWhile:Cb,dropWhile:$b,each:Ob,eachRight:Tb,endsWith:Rb,entries:Ib,entriesIn:Db,eq:Wd,escape:qb,escapeRegExp:Hb,every:Jb,extend:zh,extendWith:Lh,fill:Qb,filter:Xb,find:nw,findIndex:tw,findKey:ow,findLast:cw,findLastIndex:sw,findLastKey:uw,first:lw,flatMap:hw,flatMapDeep:vw,flatMapDepth:pw,flatten:yv,flattenDeep:mw,flattenDepth:gw,flip:yw,floor:bw,flow:xw,flowRight:kw,forEach:Ob,forEachRight:Tb,forIn:jw,forInRight:Sw,forOwn:Cw,forOwnRight:$w,fromPairs:_w,functions:Mw,functionsIn:Aw,get:dv,groupBy:Tw,gt:Iw,gte:Dw,has:Lw,hasIn:my,head:lw,identity:Kl,inRange:Vw,includes:Gw,indexOf:Yw,initial:Xw,intersection:nx,intersectionBy:ox,intersectionWith:ix,invert:ux,invertBy:vx,invoke:gx,invokeMap:bx,isArguments:lh,isArray:Cl,isArrayBuffer:xx,isArrayLike:eh,isArrayLikeObject:Xy,isBoolean:kx,isBuffer:ph,isDate:Sx,isElement:Cx,isEmpty:Mx,isEqual:Ax,isEqualWith:Ex,isError:Ev,isFinite:Tx,isFunction:Zl,isInteger:Rx,isLength:Zd,isMap:ag,isMatch:Nx,isMatchWith:Ix,isNaN:Bx,isNative:qx,isNil:Fx,isNull:Vx,isNumber:zx,isObject:Il,isObjectLike:bl,isPlainObject:Ov,isRegExp:Wx,isSafeInteger:Jx,isSet:cg,isString:Ww,isSymbol:xl,isTypedArray:jh,isUndefined:Kx,isWeakMap:Gx,isWeakSet:Qx,iteratee:Yx,join:Zx,kebabCase:tk,keyBy:rk,keys:Ah,keysIn:Ih,last:mb,lastIndexOf:ak,lodash:zf,lowerCase:ck,lowerFirst:uk,lt:fk,lte:dk,map:dw,mapKeys:hk,mapValues:vk,matches:pk,matchesProperty:mk,max:yk,maxBy:bk,mean:jk,meanBy:Sk,memoize:rv,merge:$k,mergeWith:ob,method:Ok,methodOf:Ak,min:Ek,minBy:Pk,mixin:Tk,multiply:Rk,negate:Ik,next:qk,noop:Mf,now:qy,nth:Vk,nthArg:Hk,omit:Kk,omitBy:Xk,once:Zk,orderBy:nj,over:oj,overArgs:cj,overEvery:uj,overSome:lj,pad:Pj,padEnd:Tj,padStart:Rj,parseInt:Dj,partial:Bj,partialRight:qj,partition:Vj,pick:Wj,pickBy:Yk,plant:Uj,property:xy,propertyOf:Jj,pull:Xj,pullAll:Yj,pullAllBy:Zj,pullAllWith:eS,pullAt:oS,random:fS,range:pS,rangeRight:mS,rearg:yS,reduce:wS,reduceRight:kS,reject:jS,remove:SS,repeat:CS,replace:$S,rest:_S,result:OS,reverse:AS,round:ES,sample:RS,sampleSize:zS,set:BS,setWith:LS,shuffle:VS,size:HS,slice:WS,snakeCase:JS,some:GS,sortBy:YS,sortedIndex:oC,sortedIndexBy:iC,sortedIndexOf:aC,sortedLastIndex:sC,sortedLastIndexBy:cC,sortedLastIndexOf:uC,sortedUniq:fC,sortedUniqBy:dC,split:hC,spread:pC,startCase:gC,startsWith:yC,stubArray:cm,stubFalse:fh,stubObject:bC,stubString:wC,stubTrue:xC,subtract:kC,sum:jC,sumBy:SC,tail:CC,take:$C,takeRight:_C,takeRightWhile:OC,takeWhile:MC,tap:AC,template:UC,templateSettings:DC,throttle:JC,thru:KC,times:XC,toArray:Lk,toFinite:Wl,toInteger:Ul,toIterator:ZC,toJSON:t$,toLength:Gb,toLower:n$,toNumber:Fl,toPairs:Ib,toPairsIn:Db,toPath:r$,toPlainObject:eb,toSafeInteger:i$,toString:sv,toUpper:a$,transform:s$,trim:l$,trimEnd:f$,trimStart:h$,truncate:p$,unary:m$,unescape:w$,union:S$,unionBy:$$,unionWith:_$,uniq:O$,uniqBy:M$,uniqWith:A$,uniqueId:P$,unset:T$,unzip:N$,unzipWith:I$,update:z$,updateWith:B$,upperCase:q$,upperFirst:ap,value:t$,valueOf:t$,values:Jw,valuesIn:F$,without:H$,words:zp,wrap:W$,wrapperAt:J$,wrapperChain:K$,wrapperCommit:$g,wrapperLodash:zf,wrapperNext:qk,wrapperPlant:Uj,wrapperReverse:G$,wrapperToIterator:ZC,wrapperValue:t$,xor:Y$,xorBy:Z$,xorWith:e_,zip:t_,zipObject:r_,zipObjectDeep:o_,zipWith:a_}),P_=1e4,T_=[];function R_(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={};if(!Array.isArray(e))throw new TypeError("Array expected");function r(e,o){(!Array.isArray(e)&&!Gu(e)||t&&o.length>0)&&(n[Zs(o)]=!0),Gu(e)&&Object.keys(e).forEach((function(t){r(e[t],o.concat(t))}))}for(var o=Math.min(e.length,P_),i=0;i<o;i++){r(e[i],T_)}return Object.keys(n).sort().map(Xs)}function N_(e,t,n){if(!(t<=e))for(var r=e;r<t;r++)n(r)}function I_(e,t){return e.length>t?e.slice(0,t):e}function D_(e){return To({},e)}function z_(e){return Object.values(e)}function B_(e,t,n,r){var o=e.slice(0),i=o.splice(t,n);return o.splice.apply(o,[t+r,0].concat(Bo(i))),o}function L_(e,t){try{return t.parse(e)}catch(n){return t.parse(Hu(e))}}function q_(e,t){try{return L_(e,t)}catch(e){return}}function F_(e,t){e=e.replace(H_,"");try{return t(e)}catch(e){}try{return t("["+e+"]")}catch(e){}try{return t("{"+e+"}")}catch(e){}throw new Error("Failed to parse partial JSON")}function V_(e){e=e.replace(H_,"");try{return Hu(e)}catch(e){}try{var t=Hu("["+e+"]");return t.substring(1,t.length-1)}catch(e){}try{var n=Hu("{"+e+"}");return n.substring(1,n.length-1)}catch(e){}throw new Error("Failed to repair partial JSON")}var H_=/,\s*$/;function W_(e,t){var n=tO.exec(t);if(n){var r=Uu(n[2]),o=function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length,o=0,i=n;i<r;i++)e.charAt(i)===t&&o++;return o}(e,"\n",0,r),i=r-e.lastIndexOf("\n",r)-1;return{position:r,line:o,column:i,message:t.replace(tO,(function(){return"line ".concat(o+1," column ").concat(i+1)}))}}var a=nO.exec(t),s=a?Uu(a[1]):null,c=null!==s?s-1:null,u=rO.exec(t),l=u?Uu(u[1]):null,f=null!==l?l-1:null,d=null!==c&&null!==f?function(e,t,n){var r=e.indexOf("\n"),o=1;for(;o<t&&-1!==r;)r=e.indexOf("\n",r+1),o++;return-1!==r?r+n+1:null}(e,c,f):null;return{position:d,line:c,column:f,message:t.replace(/^JSON.parse: /,"").replace(/ of the JSON data$/,"")}}function U_(e){return Gu(e)?void 0!==e.json?void 0!==e.text?'Content must contain either a property "json" or a property "text" but not both':null:void 0===e.text?'Content must contain either a property "json" or a property "text"':"string"!=typeof e.text?'Content "text" property must be a string containing a JSON document. Did you mean to use the "json" property instead?':null:"Content must be an object"}function J_(e){return Gu(e)&&(void 0!==e.json||"string"==typeof e.text)}function K_(e){return Gu(e)&&"string"==typeof e.text}function G_(e){return Gu(e)&&void 0!==e.json}function Q_(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:JSON;return K_(e)?e:{text:n.stringify(e.json,null,t)}}function Y_(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:JSON;return G_(e)?e:{json:t.parse(e.text)}}function X_(e,t,n){return Q_(e,t,n).text}function Z_(e,t){return eO(e,t)>t}function eO(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0;if(K_(e))return e.text.length;var n=e.json,r=0;return function e(n){if(Array.isArray(n)){if((r+=n.length-1+2)>t)return r;for(var o=0;o<n.length;o++){if(e(n[o]),r>t)return r}}else if(Gu(n)){var i=Object.keys(n);r+=2+i.length+(i.length-1);for(var a=0;a<i.length;a++){var s=i[a],c=n[s];r+=s.length+2,e(c)}}else r+="string"==typeof n?n.length+2:String(n).length}(n),r}var tO=/(position|char) (\d+)/,nO=/line (\d+)/,rO=/column (\d+)/;function oO(e,t){return e.parse===t.parse&&e.stringify===t.stringify}function iO(e){var t=e.substring(0,999).trim();return!t.includes("\n")&&aO.test(t)}var aO=/[,:]\S/;function sO(e){var t=e.escapeControlCharacters,n=e.escapeUnicodeCharacters;return t?n?cO:uO:n?lO:fO}var cO={escapeValue:function(e){return dO(mO(String(e)))},unescapeValue:function(e){return gO(hO(e))}},uO={escapeValue:function(e){return mO(String(e))},unescapeValue:function(e){return gO(e)}},lO={escapeValue:function(e){return dO(String(e))},unescapeValue:function(e){return hO(e)}},fO={escapeValue:function(e){return String(e)},unescapeValue:function(e){return e}};function dO(e){return e.replace(/[^\x20-\x7F]/g,(function(e){var t;return"\b"===e||"\f"===e||"\n"===e||"\r"===e||"\t"===e?e:"\\u"+("000"+(null===(t=e.codePointAt(0))||void 0===t?void 0:t.toString(16))).slice(-4)}))}function hO(e){return e.replace(/\\u[a-fA-F0-9]{4}/g,(function(e){try{var t=JSON.parse('"'+e+'"');return vO[t]||t}catch(t){return e}}))}var vO={'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},pO={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"};function mO(e){return e.replace(/["\b\f\n\r\t\\]/g,(function(e){return vO[e]||e}))}function gO(e){return e.replace(/\\["bfnrt\\]/g,(function(e){return pO[e]||e}))}function yO(e){return"string"!=typeof e?String(e):e.endsWith("\n")?e+"\n":e}function bO(e,t){return xO(e,(function(e){return e.nodeName.toUpperCase()===t.toUpperCase()}))}function wO(e,t,n){return xO(e,(function(e){return function(e,t,n){return"function"==typeof e.getAttribute&&e.getAttribute(t)===n}(e,t,n)}))}function xO(e,t){return!!kO(e,t)}function kO(e,t){for(var n=e;n&&!t(n);)n=n.parentNode;return n||void 0}function jO(e){if(null!=e.firstChild){var t=document.createRange(),n=window.getSelection();t.setStart(e,1),t.collapse(!0),null==n||n.removeAllRanges(),null==n||n.addRange(t)}else e.focus()}function SO(e,t,n,r){var o=CO(e);if(o){var i=o.document.activeElement?o.document.activeElement:null;i&&i.isContentEditable&&(i.textContent=n?t:i.textContent+t,jO(i),r&&r(i))}}function CO(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:null}function $O(e){var t=CO(e),n=null==t?void 0:t.document.activeElement;return!!n&&xO(n,(function(t){return t===e}))}function _O(e,t){return kO(e,(function(e){return e.nodeName===t}))}function OO(e){return wO(e,"data-type","selectable-key")?Qa.key:wO(e,"data-type","selectable-value")?Qa.value:wO(e,"data-type","insert-selection-area-inside")?Qa.inside:wO(e,"data-type","insert-selection-area-after")?Qa.after:Qa.multi}function MO(e){return encodeURIComponent(Zs(e))}function AO(e){var t=kO(e,(function(e){return!(null==e||!e.hasAttribute)&&e.hasAttribute("data-path")})),n=null==t?void 0:t.getAttribute("data-path");return n?Xs(decodeURIComponent(n)):null}function EO(e){var t=e.allElements,n=e.currentElement,r=e.direction,o=e.hasPrio,i=void 0===o?function(){return!0}:o,a=e.margin,s=void 0===a?10:a,c=dw(t.filter((function(e){var t=e.getBoundingClientRect();return t.width>0&&t.height>0})),l),u=l(n);function l(e){var t=e.getBoundingClientRect();return{x:t.left+t.width/2,y:t.top+t.height/2,rect:t,element:e}}function f(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=e.x-t.x,o=(e.y-t.y)*n;return Math.sqrt(r*r+o*o)}var d=function(e){return f(e,u)};if("Left"===r||"Right"===r){var h="Left"===r?c.filter((function(e){return t=u,e.rect.left+s<t.rect.left;var t})):c.filter((function(e){return t=u,e.rect.right>t.rect.right+s;var t})),v=Pk(h.filter((function(e){return t=e,n=u,Math.abs(t.y-n.y)<s;var t,n})),d)||Pk(h,(function(e){return f(e,u,10)}));return null==v?void 0:v.element}if("Up"===r||"Down"===r){var p="Up"===r?c.filter((function(e){return t=u,e.y+s<t.y;var t})):c.filter((function(e){return t=u,e.y>t.y+s;var t})),m=Pk(p.filter((function(e){return i(e.element)})),d)||Pk(p,d);return null==m?void 0:m.element}}function PO(e){return!!e&&"DIV"===e.nodeName&&"function"==typeof e.refresh&&"function"==typeof e.cancel}function TO(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"+",n=[];e.ctrlKey&&n.push("Ctrl"),e.metaKey&&n.push("Ctrl"),e.altKey&&n.push("Alt"),e.shiftKey&&n.push("Shift");var r=1===e.key.length?e.key.toUpperCase():e.key;return r in RO||n.push(r),n.join(t)}var RO={Ctrl:!0,Command:!0,Control:!0,Alt:!0,Option:!0,Shift:!0},NO=hi.window;function IO(e){pi(e,"svelte-1r8q3m8",".jse-absolute-popup.svelte-1r8q3m8.svelte-1r8q3m8{position:relative;left:0;top:0;width:0;height:0;z-index:1001}.jse-absolute-popup.svelte-1r8q3m8 .jse-hidden-input.svelte-1r8q3m8{position:fixed;left:0;top:0;width:0;height:0;padding:0;margin:0;border:none;outline:none;overflow:hidden}.jse-absolute-popup.svelte-1r8q3m8 .jse-absolute-popup-content.svelte-1r8q3m8{position:absolute}")}function DO(e){var t,n,r,o,i,a,s=[e[0].props],c=e[0].component;function u(e,t){for(var n={},r=0;r<s.length;r+=1)n=Uo(n,s[r]);return void 0!==t&&1&t&&(n=Uo(n,Oa(s,[Ma(e[0].props)]))),{props:n}}return c&&(o=Li(c,u(e))),{c:function(){t=ki("div"),n=ki("input"),r=Ci(),o&&Ea(o.$$.fragment),Ai(n,"type","text"),n.readOnly=!0,Ai(n,"tabindex","-1"),Ai(n,"class","jse-hidden-input svelte-1r8q3m8"),Ai(t,"class","jse-absolute-popup-content svelte-1r8q3m8"),Ai(t,"style",i=LO(e[1],e[0].options))},m:function(i,s){bi(i,t,s),vi(t,n),e[7](n),vi(t,r),o&&Pa(o,t,null),a=!0},p:function(e,n){if(1&n&&c!==(c=e[0].component)){if(o){ya();var r=o;xa(r.$$.fragment,1,0,(function(){Ta(r,1)})),ba()}c?(Ea((o=Li(c,u(e,n))).$$.fragment),wa(o.$$.fragment,1),Pa(o,t,null)):o=null}else if(c){var l=1&n?Oa(s,[Ma(e[0].props)]):{};o.$set(l)}(!a||3&n&&i!==(i=LO(e[1],e[0].options)))&&Ai(t,"style",i)},i:function(e){a||(o&&wa(o.$$.fragment,e),a=!0)},o:function(e){o&&xa(o.$$.fragment,e),a=!1},d:function(n){n&&wi(t),e[7](null),o&&Ta(o)}}}function zO(e){var t,n,r,o,i=e[1]&&DO(e);return{c:function(){t=ki("div"),i&&i.c(),Ai(t,"role","none"),Ai(t,"class","jse-absolute-popup svelte-1r8q3m8")},m:function(a,s){bi(a,t,s),i&&i.m(t,null),e[8](t),n=!0,r||(o=[_i(NO,"mousedown",e[3],!0),_i(NO,"keydown",e[4],!0),_i(NO,"wheel",e[5],!0),_i(t,"mousedown",BO),_i(t,"keydown",e[4])],r=!0)},p:function(e,n){var r=jo(n,1)[0];e[1]?i?(i.p(e,r),2&r&&wa(i,1)):((i=DO(e)).c(),wa(i,1),i.m(t,null)):i&&(ya(),xa(i,1,1,(function(){i=null})),ba())},i:function(e){n||(wa(i),n=!0)},o:function(e){xa(i),n=!1},d:function(n){n&&wi(t),i&&i.d(),e[8](null),r=!1,Go(o)}}}function BO(e){e.stopPropagation()}function LO(e,t){var n=e.getBoundingClientRect(),r=function(){if(t.anchor){var e=t.anchor,n=t.width,r=void 0===n?0:n,o=t.height,i=void 0===o?0:o,a=t.offsetTop,s=void 0===a?0:a,c=t.offsetLeft,u=void 0===c?0:c,l=t.position,f=e.getBoundingClientRect(),d=f.left,h=f.top,v=f.bottom,p=f.right,m="top"===l||h+i>window.innerHeight&&h>i,g="left"===l||d+r>window.innerWidth&&d>r;return{left:g?p-u:d+u,top:m?h-s:v+s,positionAbove:m,positionLeft:g}}if("number"==typeof t.left&&"number"==typeof t.top){var y=t.left,b=t.top,w=t.width,x=void 0===w?0:w,k=t.height,j=void 0===k?0:k;return{left:y,top:b,positionAbove:b+j>window.innerHeight&&b>j,positionLeft:y+x>window.innerWidth&&y>x}}throw new Error('Invalid config: pass either "left" and "top", or pass "anchor"')}(),o=r.left,i=r.top,a=r.positionAbove,s=r.positionLeft;return(a?"bottom: ".concat(n.top-i,"px;"):"top: ".concat(i-n.top,"px;"))+(s?"right: ".concat(n.left-o,"px;"):"left: ".concat(o-n.left,"px;"))}function qO(e,t,n){var r,o,i=t.popup,a=t.closeAbsolutePopup;function s(e){i.options&&i.options.closeOnOuterClick&&!xO(e.target,(function(e){return e===r}))&&a(i.id)}return Ki((function(){o&&o.focus()})),e.$$set=function(e){"popup"in e&&n(0,i=e.popup),"closeAbsolutePopup"in e&&n(6,a=e.closeAbsolutePopup)},[i,r,o,function(e){s(e)},function(e){"Escape"===TO(e)&&a(i.id)},function(e){s(e)},a,function(e){ta[e?"unshift":"push"]((function(){n(2,o=e)}))},function(e){ta[e?"unshift":"push"]((function(){n(1,r=e)}))}]}var FO=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,qO,zO,Yo,{popup:0,closeAbsolutePopup:6},IO),n}return Ao(t,Na),Io(t)}();function VO(e,t,n){var r=e.slice();return r[6]=t[n],r}function HO(e){var t,n;return t=new FO({props:{popup:e[6],closeAbsolutePopup:e[1]}}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},p:function(e,n){var r={};1&n&&(r.popup=e[6]),t.$set(r)},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}function WO(e){for(var t,n,r=Sa(e[0]),o=[],i=0;i<r.length;i+=1)o[i]=HO(VO(e,r,i));var a=function(e){return xa(o[e],1,1,(function(){o[e]=null}))},s=e[3].default,c=Zo(s,e,e[2],null);return{c:function(){for(var e=0;e<o.length;e+=1)o[e].c();t=Ci(),c&&c.c()},m:function(e,r){for(var i=0;i<o.length;i+=1)o[i]&&o[i].m(e,r);bi(e,t,r),c&&c.m(e,r),n=!0},p:function(e,i){var u=jo(i,1)[0];if(3&u){var l;for(r=Sa(e[0]),l=0;l<r.length;l+=1){var f=VO(e,r,l);o[l]?(o[l].p(f,u),wa(o[l],1)):(o[l]=HO(f),o[l].c(),wa(o[l],1),o[l].m(t.parentNode,t))}for(ya(),l=r.length;l<o.length;l+=1)a(l);ba()}c&&c.p&&(!n||4&u)&&ni(c,s,e,e[2],n?ti(s,e[2],u,null):ri(e[2]),null)},i:function(e){if(!n){for(var t=0;t<r.length;t+=1)wa(o[t]);wa(c,e),n=!0}},o:function(e){o=o.filter(Boolean);for(var t=0;t<o.length;t+=1)xa(o[t]);xa(c,e),n=!1},d:function(e){e&&wi(t),xi(o,e),c&&c.d(e)}}}function UO(e,t,n){var r=t.$$slots,o=void 0===r?{}:r,i=t.$$scope,a=Ia("jsoneditor:AbsolutePopup"),s=[];function c(e){var t=s.findIndex((function(t){return t.id===e}));if(-1!==t){var r=s[t];r.options.onClose&&r.options.onClose(),n(0,s=s.filter((function(t){return t.id!==e})))}}return Yi("absolute-popup",{openAbsolutePopup:function(e,t,r){a("open...",t,r);var o={id:Ps(),component:e,props:t||{},options:r||{}};return n(0,s=[].concat(Bo(s),[o])),o.id},closeAbsolutePopup:c}),e.$$set=function(e){"$$scope"in e&&n(2,i=e.$$scope)},e.$$.update=function(){1&e.$$.dirty&&a("popups",s)},[s,c,i,o]}var JO=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,UO,WO,Xo,{}),n}return Ao(t,Na),Io(t)}();function KO(e){return e.map((function(e,t){return eM.test(e)?"["+e+"]":/[.[\]]/.test(e)||""===e?'["'+(e.replace(/"/g,'\\"')+'"]'):(t>0?".":"")+e})).join("")}function GO(e){for(var t=[],n=0;n<e.length;)"."===e[n]&&n++,"["===e[n]?(n++,'"'===e[n]?(n++,t.push(r((function(e){return'"'===e}),!0)),o('"')):t.push(r((function(e){return"]"===e}))),o("]")):t.push(r((function(e){return"."===e||"["===e})));function r(t){for(var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o="";n<e.length&&!t(e[n]);)r&&"\\"===e[n]&&'"'===e[n+1]?(o+='"',n+=2):(o+=e[n],n++);return o}function o(t){if(e[n]!==t)throw new SyntaxError("Invalid JSON path: ".concat(t," expected at position ").concat(n));n++}return t}function QO(e){return{value:e,label:Mx(e)?"(item root)":KO(e)}}function YO(e){if(eM.test(e))return"["+e+"]";if(ZO.test(e))return"."+e;var t=JSON.stringify(e);return"['"+t.substring(1,t.length-1).replace(/\\"/g,'"')+"']"}function XO(e){return e.map((function(e){return eM.test(e)?"?.[".concat(e,"]"):ZO.test(e)?"?.".concat(e):"?.[".concat(JSON.stringify(e),"]")})).join("")}var ZO=/^[a-zA-Z$_][a-zA-Z$_\d]*$/,eM=/^\d+$/;function tM(e,t){for(var n=new Set(t),r=e.replace(/ \(copy( \d+)?\)$/,""),o=e,i=1;n.has(o);){var a="copy"+(i>1?" "+i:"");o="".concat(r," (").concat(a,")"),i++}return o}function nM(e,t){var n=t-3;return e.length>t?e.substring(0,n)+"...":e}function rM(e){if(""===e)return"";var t=e.toLowerCase();if("null"===t)return null;if("true"===t)return!0;if("false"===t)return!1;if("undefined"!==t){var n=Number(e),r=parseFloat(e);return isNaN(n)||isNaN(r)?e:n}}var oM={id:"javascript",name:"JavaScript",description:"\n<p>\n  Enter a JavaScript function to filter, sort, or transform the data.\n</p>\n",createQuery:function(e,t){var n=t.filter,r=t.sort,o=t.projection,i=["  return data\n"];if(n&&n.path&&n.relation&&n.value){var a="item => item".concat(XO(n.path)),s=rM(n.value),c="string"==typeof s?"'".concat(n.value,"'"):ol(n.value)&&!Number.isSafeInteger(s)?"".concat(n.value,"n"):n.value;i.push("    .filter(".concat(a," ").concat(n.relation," ").concat(c,")\n"))}r&&r.path&&r.direction&&("desc"===r.direction?i.push("    .slice()\n    .sort((a, b) => {\n      // sort descending\n"+"      const valueA = a".concat(XO(r.path),"\n")+"      const valueB = b".concat(XO(r.path),"\n")+"      return valueA > valueB ? -1 : valueA < valueB ? 1 : 0\n    })\n"):i.push("    .slice()\n    .sort((a, b) => {\n      // sort ascending\n"+"      const valueA = a".concat(XO(r.path),"\n")+"      const valueB = b".concat(XO(r.path),"\n")+"      return valueA > valueB ? 1 : valueA < valueB ? -1 : 0\n    })\n"));if(o&&o.paths)if(o.paths.length>1){var u=o.paths.map((function(e){var t=e[e.length-1]||"item",n="item".concat(XO(e));return"      ".concat(JSON.stringify(t),": ").concat(n)}));i.push("    .map(item => ({\n".concat(u.join(",\n"),"})\n    )\n"))}else{var l="item".concat(XO(o.paths[0]));i.push("    .map(item => ".concat(l,")\n"))}return"function query (data) {\n".concat(i.join(""),"}")},executeQuery:function(e,t){var n=new Function('"use strict";\n\n'+t+'\n\nif (typeof query !== "function") {\n  throw new Error("Cannot execute query: expecting a function named \'query\' but is undefined")\n}\n\nreturn query;\n')()(e);return void 0!==n?n:null}};var iM={prefix:"far",iconName:"lightbulb",icon:[384,512,[128161],"f0eb","M297.2 248.9C311.6 228.3 320 203.2 320 176c0-70.7-57.3-128-128-128S64 105.3 64 176c0 27.2 8.4 52.3 22.8 72.9c3.7 5.3 8.1 11.3 12.8 17.7l0 0c12.9 17.7 28.3 38.9 39.8 59.8c10.4 19 15.7 38.8 18.3 57.5H109c-2.2-12-5.9-23.7-11.8-34.5c-9.9-18-22.2-34.9-34.5-51.8l0 0 0 0c-5.2-7.1-10.4-14.2-15.4-21.4C27.6 247.9 16 213.3 16 176C16 78.8 94.8 0 192 0s176 78.8 176 176c0 37.3-11.6 71.9-31.4 100.3c-5 7.2-10.2 14.3-15.4 21.4l0 0 0 0c-12.3 16.8-24.6 33.7-34.5 51.8c-5.9 10.8-9.6 22.5-11.8 34.5H226.4c2.6-18.7 7.9-38.6 18.3-57.5c11.5-20.9 26.9-42.1 39.8-59.8l0 0 0 0 0 0c4.7-6.4 9-12.4 12.7-17.7zM192 128c-26.5 0-48 21.5-48 48c0 8.8-7.2 16-16 16s-16-7.2-16-16c0-44.2 35.8-80 80-80c8.8 0 16 7.2 16 16s-7.2 16-16 16zm0 384c-44.2 0-80-35.8-80-80V416H272v16c0 44.2-35.8 80-80 80z"]},aM={prefix:"far",iconName:"square-check",icon:[448,512,[9745,9989,61510,"check-square"],"f14a","M64 80c-8.8 0-16 7.2-16 16V416c0 8.8 7.2 16 16 16H384c8.8 0 16-7.2 16-16V96c0-8.8-7.2-16-16-16H64zM0 96C0 60.7 28.7 32 64 32H384c35.3 0 64 28.7 64 64V416c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V96zM337 209L209 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L303 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"]},sM={prefix:"far",iconName:"square",icon:[448,512,[9632,9723,9724,61590],"f0c8","M384 80c8.8 0 16 7.2 16 16V416c0 8.8-7.2 16-16 16H64c-8.8 0-16-7.2-16-16V96c0-8.8 7.2-16 16-16H384zM64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64z"]},cM={prefix:"far",iconName:"clock",icon:[512,512,[128339,"clock-four"],"f017","M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM232 120V256c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2V120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"]};function uM(e){var t;return{c:function(){t=ji("g")},m:function(n,r){bi(n,t,r),t.innerHTML=e[0]},p:function(e,n){1&jo(n,1)[0]&&(t.innerHTML=e[0])},i:Ho,o:Ho,d:function(e){e&&wi(t)}}}function lM(e,t,n){var r=870711;var o="",i=t.data;function a(e){if(!e||!e.raw)return"";var t=e.raw,n={};return t=t.replace(/\s(?:xml:)?id=["']?([^"')\s]+)/g,(function(e,t){var o="fa-".concat((r+=1).toString(16));return n[t]=o,' id="'.concat(o,'"')})),t=t.replace(/#(?:([^'")\s]+)|xpointer\(id\((['"]?)([^')]+)\2\)\))/g,(function(e,t,r,o){var i=t||o;return i&&n[i]?"#".concat(n[i]):e})),t}return e.$$set=function(e){"data"in e&&n(1,i=e.data)},e.$$.update=function(){2&e.$$.dirty&&n(0,o=a(i))},[o,i]}var fM=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,lM,uM,Yo,{data:1}),n}return Ao(t,Na),Io(t)}();function dM(e){pi(e,"svelte-1mc5hvj",".fa-icon.svelte-1mc5hvj{display:inline-block;fill:currentColor}.fa-flip-horizontal.svelte-1mc5hvj{transform:scale(-1, 1)}.fa-flip-vertical.svelte-1mc5hvj{transform:scale(1, -1)}.fa-spin.svelte-1mc5hvj{animation:svelte-1mc5hvj-fa-spin 1s 0s infinite linear}.fa-inverse.svelte-1mc5hvj{color:#fff}.fa-pulse.svelte-1mc5hvj{animation:svelte-1mc5hvj-fa-spin 1s infinite steps(8)}@keyframes svelte-1mc5hvj-fa-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}")}function hM(e){for(var t,n,r,o,i=e[12].default,a=Zo(i,e,e[11],null),s=[{version:"1.1"},{class:n="fa-icon "+e[0]},{width:e[1]},{height:e[2]},{"aria-label":e[9]},{role:r=e[9]?"img":"presentation"},{viewBox:e[3]},{style:e[8]},e[10]],c={},u=0;u<s.length;u+=1)c=Uo(c,s[u]);return{c:function(){t=ji("svg"),a&&a.c(),Ti(t,c),zi(t,"fa-spin",e[4]),zi(t,"fa-pulse",e[6]),zi(t,"fa-inverse",e[5]),zi(t,"fa-flip-horizontal","horizontal"===e[7]),zi(t,"fa-flip-vertical","vertical"===e[7]),zi(t,"svelte-1mc5hvj",!0)},m:function(e,n){bi(e,t,n),a&&a.m(t,null),o=!0},p:function(e,u){var l=jo(u,1)[0];a&&a.p&&(!o||2048&l)&&ni(a,i,e,e[11],o?ti(i,e[11],l,null):ri(e[11]),null),Ti(t,c=Oa(s,[{version:"1.1"},(!o||1&l&&n!==(n="fa-icon "+e[0]))&&{class:n},(!o||2&l)&&{width:e[1]},(!o||4&l)&&{height:e[2]},(!o||512&l)&&{"aria-label":e[9]},(!o||512&l&&r!==(r=e[9]?"img":"presentation"))&&{role:r},(!o||8&l)&&{viewBox:e[3]},(!o||256&l)&&{style:e[8]},1024&l&&e[10]])),zi(t,"fa-spin",e[4]),zi(t,"fa-pulse",e[6]),zi(t,"fa-inverse",e[5]),zi(t,"fa-flip-horizontal","horizontal"===e[7]),zi(t,"fa-flip-vertical","vertical"===e[7]),zi(t,"svelte-1mc5hvj",!0)},i:function(e){o||(wa(a,e),o=!0)},o:function(e){xa(a,e),o=!1},d:function(e){e&&wi(t),a&&a.d(e)}}}function vM(e,t,n){var r=["class","width","height","box","spin","inverse","pulse","flip","style","label"],o=ii(t,r),i=t,a=i.$$slots,s=void 0===a?{}:a,c=i.$$scope,u=t.class,l=void 0===u?"":u,f=t.width,d=t.height,h=t.box,v=void 0===h?"0 0 0 0":h,p=t.spin,m=void 0!==p&&p,g=t.inverse,y=void 0!==g&&g,b=t.pulse,w=void 0!==b&&b,x=t.flip,k=void 0===x?"none":x,j=t.style,S=void 0===j?"":j,C=t.label,$=void 0===C?"":C;return e.$$set=function(e){t=Uo(Uo({},t),oi(e)),n(10,o=ii(t,r)),"class"in e&&n(0,l=e.class),"width"in e&&n(1,f=e.width),"height"in e&&n(2,d=e.height),"box"in e&&n(3,v=e.box),"spin"in e&&n(4,m=e.spin),"inverse"in e&&n(5,y=e.inverse),"pulse"in e&&n(6,w=e.pulse),"flip"in e&&n(7,k=e.flip),"style"in e&&n(8,S=e.style),"label"in e&&n(9,$=e.label),"$$scope"in e&&n(11,c=e.$$scope)},[l,f,d,v,m,y,w,k,S,$,o,c,s]}var pM=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,vM,hM,Yo,{class:0,width:1,height:2,box:3,spin:4,inverse:5,pulse:6,flip:7,style:8,label:9},dM),n}return Ao(t,Na),Io(t)}();function mM(e,t,n){var r=e.slice();return r[24]=t[n],r}function gM(e,t,n){var r=e.slice();return r[27]=t[n],r}function yM(e){for(var t,n=[e[27]],r={},o=0;o<n.length;o+=1)r=Uo(r,n[o]);return{c:function(){Ti(t=ji("path"),r)},m:function(e,n){bi(e,t,n)},p:function(e,o){Ti(t,r=Oa(n,[64&o&&e[27]]))},d:function(e){e&&wi(t)}}}function bM(e){for(var t,n=[e[24]],r={},o=0;o<n.length;o+=1)r=Uo(r,n[o]);return{c:function(){Ti(t=ji("polygon"),r)},m:function(e,n){bi(e,t,n)},p:function(e,o){Ti(t,r=Oa(n,[64&o&&e[24]]))},d:function(e){e&&wi(t)}}}function wM(e){var t,n,r;function o(t){e[16](t)}var i={};return void 0!==e[6]&&(i.data=e[6]),t=new fM({props:i}),ta.push((function(){return Aa(t,"data",o)})),{c:function(){Ea(t.$$.fragment)},m:function(e,n){Pa(t,e,n),r=!0},p:function(e,r){var o={};!n&&64&r&&(n=!0,o.data=e[6],ua((function(){return n=!1}))),t.$set(o)},i:function(e){r||(wa(t.$$.fragment,e),r=!0)},o:function(e){xa(t.$$.fragment,e),r=!1},d:function(e){Ta(t,e)}}}function xM(e){var t,n=e[15].default,r=Zo(n,e,e[17],null),o=r||function(e){for(var t,n,r,o,i,a,s,c=Sa((null===(t=e[6])||void 0===t?void 0:t.paths)||[]),u=[],l=0;l<c.length;l+=1)u[l]=yM(gM(e,c,l));for(var f=Sa((null===(n=e[6])||void 0===n?void 0:n.polygons)||[]),d=[],h=0;h<f.length;h+=1)d[h]=bM(mM(e,f,h));var v=(null===(r=e[6])||void 0===r?void 0:r.raw)&&wM(e);return{c:function(){for(var e=0;e<u.length;e+=1)u[e].c();o=Ci();for(var t=0;t<d.length;t+=1)d[t].c();i=Ci(),v&&v.c(),a=$i()},m:function(e,t){for(var n=0;n<u.length;n+=1)u[n]&&u[n].m(e,t);bi(e,o,t);for(var r=0;r<d.length;r+=1)d[r]&&d[r].m(e,t);bi(e,i,t),v&&v.m(e,t),bi(e,a,t),s=!0},p:function(e,t){var n;if(64&t){var r,s;for(c=Sa((null===(r=e[6])||void 0===r?void 0:r.paths)||[]),s=0;s<c.length;s+=1){var l=gM(e,c,s);u[s]?u[s].p(l,t):(u[s]=yM(l),u[s].c(),u[s].m(o.parentNode,o))}for(;s<u.length;s+=1)u[s].d(1);u.length=c.length}if(64&t){var h,p;for(f=Sa((null===(h=e[6])||void 0===h?void 0:h.polygons)||[]),p=0;p<f.length;p+=1){var m=mM(e,f,p);d[p]?d[p].p(m,t):(d[p]=bM(m),d[p].c(),d[p].m(i.parentNode,i))}for(;p<d.length;p+=1)d[p].d(1);d.length=f.length}null!==(n=e[6])&&void 0!==n&&n.raw?v?(v.p(e,t),64&t&&wa(v,1)):((v=wM(e)).c(),wa(v,1),v.m(a.parentNode,a)):v&&(ya(),xa(v,1,1,(function(){v=null})),ba())},i:function(e){s||(wa(v),s=!0)},o:function(e){xa(v),s=!1},d:function(e){e&&(wi(o),wi(i),wi(a)),xi(u,e),xi(d,e),v&&v.d(e)}}}(e);return{c:function(){o&&o.c()},m:function(e,n){o&&o.m(e,n),t=!0},p:function(e,i){r?r.p&&(!t||131072&i)&&ni(r,n,e,e[17],t?ti(n,e[17],i,null):ri(e[17]),null):o&&o.p&&(!t||64&i)&&o.p(e,t?i:-1)},i:function(e){t||(wa(o,e),t=!0)},o:function(e){xa(o,e),t=!1},d:function(e){o&&o.d(e)}}}function kM(e){for(var t,n,r=[{label:e[5]},{width:e[7]},{height:e[8]},{box:e[10]},{style:e[9]},{spin:e[1]},{flip:e[4]},{inverse:e[2]},{pulse:e[3]},{class:e[0]},e[11]],o={$$slots:{default:[xM]},$$scope:{ctx:e}},i=0;i<r.length;i+=1)o=Uo(o,r[i]);return t=new pM({props:o}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},p:function(e,n){var o=jo(n,1)[0],i=4031&o?Oa(r,[32&o&&{label:e[5]},128&o&&{width:e[7]},256&o&&{height:e[8]},1024&o&&{box:e[10]},512&o&&{style:e[9]},2&o&&{spin:e[1]},16&o&&{flip:e[4]},4&o&&{inverse:e[2]},8&o&&{pulse:e[3]},1&o&&{class:e[0]},2048&o&&Ma(e[11])]):{};131136&o&&(i.$$scope={dirty:o,ctx:e}),t.$set(i)},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}function jM(e,t,n){var r,o,i,a=["class","data","scale","spin","inverse","pulse","flip","label","style"],s=ii(t,a),c=t,u=c.$$slots,l=void 0===u?{}:u,f=c.$$scope,d=t.class,h=void 0===d?"":d,v=t.data,p=t.scale,m=void 0===p?1:p,g=t.spin,y=void 0!==g&&g,b=t.inverse,w=void 0!==b&&b,x=t.pulse,k=void 0!==x&&x,j=t.flip,S=void 0===j?void 0:j,C=t.label,$=void 0===C?"":C,_=t.style,O=void 0===_?"":_,M=10,A=10;function E(){var e=1;return void 0!==m&&(e=Number(m)),isNaN(e)||e<=0?(console.warn('Invalid prop: prop "scale" should be a number over 0.'),1):1*e}function P(){return r?Math.max(r.width,r.height)/16:1}return e.$$set=function(e){t=Uo(Uo({},t),oi(e)),n(11,s=ii(t,a)),"class"in e&&n(0,h=e.class),"data"in e&&n(12,v=e.data),"scale"in e&&n(13,m=e.scale),"spin"in e&&n(1,y=e.spin),"inverse"in e&&n(2,w=e.inverse),"pulse"in e&&n(3,k=e.pulse),"flip"in e&&n(4,S=e.flip),"label"in e&&n(5,$=e.label),"style"in e&&n(14,O=e.style),"$$scope"in e&&n(17,f=e.$$scope)},e.$$.update=function(){28672&e.$$.dirty&&(n(6,r=function(e){var t;if(e){if(!("definition"in e)){if("iconName"in e&&"icon"in e){e.iconName;var n=jo(e.icon,5),r=n[0],o=n[1],i=n[4];t={width:r,height:o,paths:(Array.isArray(i)?i:[i]).map((function(e){return{d:e}}))}}else t=e[Object.keys(e)[0]];return t}console.error("`import faIconName from '@fortawesome/package-name/faIconName` not supported - Please use `import { faIconName } from '@fortawesome/package-name/faIconName'` instead")}}(v)),n(7,M=r?r.width/P()*E():0),n(8,A=r?r.height/P()*E():0),n(9,o=function(){var e="";null!==O&&(e+=O);var t=E();return 1===t?0===e.length?"":e:(""===e||e.endsWith(";")||(e+="; "),"".concat(e,"font-size: ").concat(t,"em"))}()),n(10,i=r?"0 0 ".concat(r.width," ").concat(r.height):"0 0 ".concat(M," ").concat(A)))},[h,y,w,k,S,$,r,M,A,o,i,s,v,m,O,l,function(e){n(6,r=e),n(12,v),n(14,O),n(13,m)},f]}var SM=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,jM,kM,Yo,{class:0,data:12,scale:13,spin:1,inverse:2,pulse:3,flip:4,label:5,style:14}),n}return Ao(t,Na),Io(t)}();function CM(e){pi(e,"svelte-68vtq4",".jse-boolean-toggle.svelte-68vtq4{padding:0;margin:1px 0 0;vertical-align:top;display:inline-flex;color:var(--jse-value-color-boolean, #ff8c00)}.jse-boolean-toggle.svelte-68vtq4:not(.jse-readonly){cursor:pointer}")}function $M(e){var t,n,r,o,i,a,s;return n=new SM({props:{data:!0===e[0]?aM:sM}}),{c:function(){t=ki("div"),Ea(n.$$.fragment),Ai(t,"role","checkbox"),Ai(t,"tabindex","-1"),Ai(t,"aria-checked",r=!0===e[0]),Ai(t,"class","jse-boolean-toggle svelte-68vtq4"),Ai(t,"title",o=e[1]?"Boolean value ".concat(e[0]):"Click to toggle this boolean value"),zi(t,"jse-readonly",e[1])},m:function(r,o){bi(r,t,o),Pa(n,t,null),i=!0,a||(s=_i(t,"mousedown",e[2]),a=!0)},p:function(e,a){var s=jo(a,1)[0],c={};1&s&&(c.data=!0===e[0]?aM:sM),n.$set(c),(!i||1&s&&r!==(r=!0===e[0]))&&Ai(t,"aria-checked",r),(!i||3&s&&o!==(o=e[1]?"Boolean value ".concat(e[0]):"Click to toggle this boolean value"))&&Ai(t,"title",o),(!i||2&s)&&zi(t,"jse-readonly",e[1])},i:function(e){i||(wa(n.$$.fragment,e),i=!0)},o:function(e){xa(n.$$.fragment,e),i=!1},d:function(e){e&&wi(t),Ta(n),a=!1,s()}}}function _M(e,t,n){var r=t.path,o=t.value,i=t.readOnly,a=t.onPatch,s=t.focus;return e.$$set=function(e){"path"in e&&n(3,r=e.path),"value"in e&&n(0,o=e.value),"readOnly"in e&&n(1,i=e.readOnly),"onPatch"in e&&n(4,a=e.onPatch),"focus"in e&&n(5,s=e.focus)},[o,i,function(e){e.stopPropagation(),i||(a([{op:"replace",path:Zs(r),value:!o}]),s())},r,a,s]}var OM=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,_M,$M,Xo,{path:3,value:0,readOnly:1,onPatch:4,focus:5},CM),n}return Ao(t,Na),Io(t)}();function MM(e){pi(e,"svelte-1f4ayrt",".jse-color-picker-popup.svelte-1f4ayrt .picker_wrapper.popup,.jse-color-picker-popup.svelte-1f4ayrt .picker_wrapper.popup .picker_arrow::before,.jse-color-picker-popup.svelte-1f4ayrt .picker_wrapper.popup .picker_arrow::after{background:var(--jse-color-picker-background, var(--jse-panel-background, #ebebeb));line-height:normal}.jse-color-picker-popup.svelte-1f4ayrt .picker_slider,.jse-color-picker-popup.svelte-1f4ayrt .picker_sl,.jse-color-picker-popup.svelte-1f4ayrt .picker_editor input,.jse-color-picker-popup.svelte-1f4ayrt .picker_sample,.jse-color-picker-popup.svelte-1f4ayrt .picker_done button{box-shadow:var(--jse-color-picker-border-box-shadow, #cbcbcb 0 0 0 1px)}.jse-color-picker-popup.svelte-1f4ayrt .picker_editor input{background:var(--jse-background-color, #fff);color:var(--jse-text-color, #4d4d4d)}.jse-color-picker-popup.svelte-1f4ayrt .picker_done button{background:var(--jse-button-background, #e0e0e0);color:var(--jse-button-color, var(--jse-text-color, #4d4d4d))}.jse-color-picker-popup.svelte-1f4ayrt .picker_done button:hover{background:var(--jse-button-background-highlight, #e7e7e7)}")}function AM(e){var t;return{c:function(){Ai(t=ki("div"),"class","jse-color-picker-popup svelte-1f4ayrt")},m:function(n,r){bi(n,t,r),e[4](t)},p:Ho,i:Ho,o:Ho,d:function(n){n&&wi(t),e[4](null)}}}function EM(e,t,n){var r,o=t.color,i=t.onChange,a=t.showOnTop,s=function(){};return Ki(ko(wo().mark((function e(){var t,n,c;return wo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.resolve().then((function(){return xte}));case 2:if(e.t1=t=e.sent,e.t0=null===e.t1,e.t0){e.next=6;break}e.t0=void 0===t;case 6:if(!e.t0){e.next=10;break}e.t2=void 0,e.next=11;break;case 10:e.t2=t.default;case 11:n=e.t2,c=new n({parent:r,color:o,popup:a?"top":"bottom",onDone:function(e){var t=1===e.rgba[3]?e.hex.substring(0,7):e.hex;i(t)}}),c.show(),s=function(){c.destroy()};case 15:case"end":return e.stop()}}),e)})))),Gi((function(){s()})),e.$$set=function(e){"color"in e&&n(1,o=e.color),"onChange"in e&&n(2,i=e.onChange),"showOnTop"in e&&n(3,a=e.showOnTop)},[r,o,i,a,function(e){ta[e?"unshift":"push"]((function(){n(0,r=e)}))}]}var PM=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,EM,AM,Yo,{color:1,onChange:2,showOnTop:3},MM),n}return Ao(t,Na),Io(t)}();function TM(e){pi(e,"svelte-1zzxwe",".jse-color-picker-button.svelte-1zzxwe{font-size:var(--jse-font-size-mono, 14px);width:var(--jse-color-picker-button-size, 1em);height:var(--jse-color-picker-button-size, 1em);box-sizing:border-box;padding:0;margin:2px 0 0;display:inline-flex;vertical-align:top;border:1px solid var(--jse-text-color, #4d4d4d);border-radius:2px;background:inherit;outline:none}.jse-color-picker-button.svelte-1zzxwe:not(.jse-readonly){cursor:pointer}")}function RM(e){var t,n,r,o;return{c:function(){Ai(t=ki("button"),"type","button"),Ai(t,"class","jse-color-picker-button svelte-1zzxwe"),Ii(t,"background",e[2]),Ai(t,"title",n=e[1]?"Color ".concat(e[0]):"Click to open a color picker"),zi(t,"jse-readonly",e[1])},m:function(n,i){bi(n,t,i),r||(o=_i(t,"click",e[3]),r=!0)},p:function(e,r){var o=jo(r,1)[0];4&o&&Ii(t,"background",e[2]),3&o&&n!==(n=e[1]?"Color ".concat(e[0]):"Click to open a color picker")&&Ai(t,"title",n),2&o&&zi(t,"jse-readonly",e[1])},i:Ho,o:Ho,d:function(e){e&&wi(t),r=!1,o()}}}function NM(e,t,n){var r,o=Xi("absolute-popup").openAbsolutePopup,i=t.path,a=t.value,s=t.readOnly,c=t.onPatch,u=t.focus;function l(e){c([{op:"replace",path:Zs(i),value:e}]),f()}function f(){u()}return e.$$set=function(e){"path"in e&&n(4,i=e.path),"value"in e&&n(0,a=e.value),"readOnly"in e&&n(1,s=e.readOnly),"onPatch"in e&&n(5,c=e.onPatch),"focus"in e&&n(6,u=e.focus)},e.$$.update=function(){1&e.$$.dirty&&n(2,r=Xu(a))},[a,s,r,function(e){var t,n;if(!s){var r=e.target,i=r.getBoundingClientRect().top,c=null!==(t=null===(n=CO(r))||void 0===n?void 0:n.innerHeight)&&void 0!==t?t:0;o(PM,{color:a,onChange:l,showOnTop:c-i<300&&i>300},{anchor:r,closeOnOuterClick:!0,onClose:f,offsetTop:18,offsetLeft:-8,height:300})}},i,c,u]}var IM=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,NM,RM,Xo,{path:4,value:0,readOnly:1,onPatch:5,focus:6},TM),n}return Ao(t,Na),Io(t)}();function DM(e){for(var t=YS(e,(function(e){return e.start})),n=[t[0]],r=0;r<t.length;r++){var o=n.length-1,i=n[o],a=t[r];a.start<=i.end?n[o]={start:Math.min(i.start,a.start),end:Math.max(i.end,a.end)}:n.push(a)}return n}function zM(e,t){return e.some((function(e){return t>=e.start&&t<e.end}))}function BM(e){return LM(e)+cs}function LM(e){return Math.floor(e/cs)*cs}function qM(e){var t={expandedMap:{},enforceStringMap:{},visibleSectionsMap:{},selection:null,sortedColumn:null};return null!=e&&e.select&&void 0!==e.json&&(t=To(To({},t),{},{selection:e.select(e.json,t)})),null!=e&&e.expand&&(t=WM(e.json,t,[],e.expand)),t}function FM(e,t){return e.visibleSectionsMap[t]||fs}function VM(e,t,n){t.forEach((function(t){var r=t.start,o=t.end;N_(r,Math.min(e.length,o),n)}))}function HM(e,t,n){for(var r=To({},t.expandedMap),o=To({},t.visibleSectionsMap),i=0;i<n.length;i++){var a=n.slice(0,i),s=Zs(a),c=Ws(e,a);if(Qu(c)&&(r[s]=!0),Array.isArray(c)&&i<n.length){var u=o[s]||fs,l=Uu(n[i]);if(!zM(u,l)){var f=LM(l),d={start:f,end:BM(f)};o[s]=DM(u.concat(d))}}}return To(To({},t),{},{expandedMap:r,visibleSectionsMap:o})}function WM(e,t,n,r){var o=To({},t.expandedMap);var i=n.slice(),a=void 0!==e?Ws(e,n):e;return void 0!==a&&function e(n){var a=i.length;if(Array.isArray(n)){if(r(i)){var s=Zs(i);if(o[s]=!0,n.length>0){var c=FM(t,s);VM(n,c,(function(t){i[a]=String(t),e(n[t])})),i.pop()}}}else if(Gu(n)&&r(i)){o[Zs(i)]=!0;var u=Object.keys(n);if(u.length>0){var l,f=bo(u);try{for(f.s();!(l=f.n()).done;){var d=l.value;i[a]=d,e(n[d])}}catch(e){f.e(e)}finally{f.f()}i.pop()}}}(a),To(To({},t),{},{expandedMap:o})}function UM(e,t){var n=YM(e.expandedMap,t),r=YM(e.enforceStringMap,t),o=YM(e.visibleSectionsMap,t);return To(To({},e),{},{expandedMap:n,enforceStringMap:r,visibleSectionsMap:o})}function JM(e,t,n){if(n){var r=To({},e.enforceStringMap);return r[t]=n,To(To({},e),{},{enforceStringMap:r})}if("boolean"==typeof e.enforceStringMap[t]){var o=To({},e.enforceStringMap);return delete o[t],To(To({},e),{},{enforceStringMap:o})}return e}function KM(e,t,n){var r=rc(e,n),o=n.reduce((function(e,t){return Ns(t)?GM(r,e,t):Is(t)?QM(r,e,t):Ds(t)?function(e,t,n){var r=n.path,o=nA(e,t.expandedMap),i=nA(e,t.enforceStringMap),a=nA(e,t.visibleSectionsMap);Rs(n.value)||Ts(n.value)||delete o[r];Ts(n.value)||delete a[r];(Rs(n.value)||Ts(n.value))&&delete i[r];return To(To({},t),{},{expandedMap:o,enforceStringMap:i,visibleSectionsMap:a})}(r,e,t):zs(t)||Bs(t)?function(e,t,n){if(Bs(n)&&n.from===n.path)return t;var r=function(e){return n.path+e.substring(n.from.length)},o=eA(XM(t.expandedMap,n.from),r),i=eA(XM(t.enforceStringMap,n.from),r),a=eA(XM(t.visibleSectionsMap,n.from),r),s=t;Bs(n)&&(s=QM(e,s,{op:"remove",path:n.from}));s=GM(e,s,{op:"add",path:n.path,value:null});var c=ZM(s.expandedMap,o),u=ZM(s.enforceStringMap,i),l=ZM(s.visibleSectionsMap,a);return To(To({},t),{},{expandedMap:c,enforceStringMap:u,visibleSectionsMap:l})}(r,e,t):e}),t);return{json:r,documentState:o}}function GM(e,t,n){var r=dc(e,n.path),o=Xw(r),i=Zs(o);if(Ts(Ws(e,o))){var a=Uu(mb(r)),s=tA(t.expandedMap,o,a,1),c=tA(t.enforceStringMap,o,a,1),u=tA(t.visibleSectionsMap,o,a,1);return u=rA(u,i,(function(e){return oA(e,a,1)})),To(To({},t),{},{expandedMap:s,enforceStringMap:c,visibleSectionsMap:u})}return t}function QM(e,t,n){var r=dc(e,n.path),o=Xw(r),i=Zs(o),a=Ws(e,o),s=t.expandedMap,c=t.enforceStringMap,u=t.visibleSectionsMap;if(s=YM(s,r),c=YM(c,r),u=YM(u,r),Ts(a)){var l=Uu(mb(r));s=tA(s,o,l,-1),c=tA(c,o,l,-1),u=rA(u=tA(u,o,l,-1),i,(function(e){return oA(e,l,-1)}))}return To(To({},t),{},{expandedMap:s,enforceStringMap:c,visibleSectionsMap:u})}function YM(e,t){var n={},r=Zs(t);return Object.keys(e).forEach((function(t){nc(t,r)||(n[t]=e[t])})),n}function XM(e,t){var n={};return Object.keys(e).forEach((function(r){nc(r,t)&&(n[r]=e[r])})),n}function ZM(e,t){return To(To({},e),t)}function eA(e,t){var n={};return Object.keys(e).forEach((function(r){var o=t(r);n[o]=e[r]})),n}function tA(e,t,n,r){for(var o=t.length,i=Zs(t),a=[],s=0,c=Object.keys(e);s<c.length;s++){var u=c[s];if(nc(u,i)){var l=Xs(u),f=Uu(l[o]);f>=n&&(l[o]=String(f+r),a.push({oldPointer:u,newPointer:Zs(l),value:e[u]}))}}if(0===a.length)return e;var d=To({},e);return a.forEach((function(e){delete d[e.oldPointer]})),a.forEach((function(e){d[e.newPointer]=e.value})),d}function nA(e,t){var n={};return Object.keys(t).filter((function(t){return Ys(e,dc(e,t))})).forEach((function(e){n[e]=t[e]})),n}function rA(e,t,n){var r=e[t];if(t in e){var o=n(r);if(!Ax(r,o)){var i=To({},e);return void 0===o?delete i[t]:i[t]=o,i}}return e}function oA(e,t,n){return function(e){var t=e.slice(0),n=1;for(;n<t.length;)t[n-1].end===t[n].start&&(t[n-1]={start:t[n-1].start,end:t[n].end},t.splice(n)),n++;return t}(e.map((function(e){return{start:e.start>t?e.start+n:e.start,end:e.end>t?e.end+n:e.end}})))}function iA(e,t,n,r){var o=t?t[n]:void 0;return"boolean"==typeof o?o:function(e,t){return"string"==typeof e&&"string"!=typeof rl(e,t)}(e,r)}function aA(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e.indexOf(t);return-1!==r?n?e.slice(r):e.slice(r+1):[]}function sA(e,t){var n=[];return function e(r,o){n.push(o);var i=Zs(o);if(r&&!0===t.expandedMap[i]){if(Ts(r)){var a=FM(t,i);VM(r,a,(function(t){e(r[t],o.concat(String(t)))}))}Rs(r)&&Object.keys(r).forEach((function(t){e(r[t],o.concat(t))}))}}(e,[]),n}function cA(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=[];return function e(o,i){r.push({path:i,type:Ya.value});var a=Zs(i);if(o&&!0===t.expandedMap[a]){if(n&&r.push({path:i,type:Ya.inside}),Ts(o)){var s=FM(t,a);VM(o,s,(function(t){var a=i.concat(String(t));e(o[t],a),n&&r.push({path:a,type:Ya.after})}))}if(Rs(o))Object.keys(o).forEach((function(t){var a=i.concat(t);r.push({path:a,type:Ya.key}),e(o[t],a),n&&r.push({path:a,type:Ya.after})}))}}(e,[]),r}function uA(e,t,n){var r=sA(e,t),o=r.map(Zs).indexOf(Zs(n));return-1!==o&&o<r.length-1?r[o+1]:null}function lA(e,t,n){var r=Ws(e,n);return void 0===r?t:WM(e,t,n,!Z_({json:r},ps)?dA:fA)}function fA(e){return 0===e.length||1===e.length&&"0"===e[0]}function dA(){return!0}function hA(e){return e&&e.type===Qa.after||!1}function vA(e){return e&&e.type===Qa.inside||!1}function pA(e){return e&&e.type===Qa.key||!1}function mA(e){return e&&e.type===Qa.value||!1}function gA(e){return e&&e.type===Qa.multi||!1}function yA(e){return gA(e)&&Ax(e.focusPath,e.anchorPath)}function bA(e){return gA(e)||hA(e)||vA(e)||pA(e)||mA(e)}function wA(e){return e&&e.type===Qa.text||!1}function xA(e,t){var n=[];return function(e,t,n){if(!t)return;var r=GA(t),o=KA(t);if(Ax(r,o))return n(r);if(void 0===e)return;var i=MA(r,o);if(r.length===i.length||o.length===i.length)return n(i);var a=zA(r,o),s=jA(e,a),c=SA(e,a),u=JA(e,a,s),l=JA(e,a,c);if(-1===u||-1===l)return;var f=Ws(e,i);if(Rs(f)){for(var d=Object.keys(f),h=u;h<=l;h++){var v=n(i.concat(d[h]));if(void 0!==v)return v}return}if(Ts(f)){for(var p=u;p<=l;p++){var m=n(i.concat(String(p)));if(void 0!==m)return m}return}throw new Error("Failed to create selection")}(e,t,(function(e){n.push(e)})),n}function kA(e){return vA(e)?e.path:Xw(KA(e))}function jA(e,t){if(!gA(t))return t.path;var n=JA(e,t,t.anchorPath);return JA(e,t,t.focusPath)<n?t.focusPath:t.anchorPath}function SA(e,t){if(!gA(t))return t.path;var n=JA(e,t,t.anchorPath);return JA(e,t,t.focusPath)>n?t.focusPath:t.anchorPath}function CA(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t.selection;if(!r)return null;var o=n?KA(r):jA(e,r),i=function(e,t,n){var r=sA(e,t),o=r.map(Zs),i=Zs(n),a=o.indexOf(i);return-1!==a&&a>0?r[a-1]:null}(e,t,o);if(n)return vA(r)||hA(r)?null!==i?zA(o,o):null:null!==i?zA(GA(r),i):null;if(hA(r))return NA(o,!1);if(vA(r))return NA(o,!1);if(pA(r)){if(null==i||0===i.length)return null;var a=Ws(e,Xw(i));return Array.isArray(a)||Mx(i)?NA(i,!1):RA(i,!1)}return mA(r),null!==i?NA(i,!1):null}function $A(e,t,n){var r=t.selection;if(!r)return{caret:null,previous:null,next:null};var o=cA(e,t,n),i=o.findIndex((function(e){return Ax(e.path,KA(r))&&String(e.type)===String(r.type)}));return{caret:-1!==i?o[i]:null,previous:-1!==i&&i>0?o[i-1]:null,next:-1!==i&&i<o.length-1?o[i+1]:null}}function _A(e,t){for(var n=sA(e,t),r=0;r<n.length-1&&n[r+1].length>n[r].length;)r++;var o=n[r];return void 0===o||0===o.length||Array.isArray(Ws(e,Xw(o)))?NA(o,!1):RA(o,!1)}function OA(e,t){if(1===t.length){var n=lw(t);if("replace"===n.op)return NA(dc(e,n.path),!1)}if(!Mx(t)&&t.every((function(e){return"move"===e.op}))){var r=lw(t),o=t.slice(1);if((zs(r)||Bs(r))&&r.from!==r.path&&o.every((function(e){return(zs(e)||Bs(e))&&e.from===e.path})))return RA(dc(e,r.path),!1)}var i=t.filter((function(e){return"test"!==e.op&&"remove"!==e.op&&("move"!==e.op||e.from!==e.path)&&"string"==typeof e.path})).map((function(t){return dc(e,t.path)}));return Mx(i)?null:{type:Qa.multi,anchorPath:lw(i),focusPath:mb(i)}}function MA(e,t){for(var n=0;n<e.length&&n<t.length&&e[n]===t[n];)n++;return e.slice(0,n)}function AA(e){return pA(e)||mA(e)||yA(e)}function EA(e,t){return AA(t)&&Qu(Ws(e,KA(t)))?KA(t):Xw(KA(t))}function PA(e,t){if(e.length<t.length)return!1;for(var n=0;n<t.length;n++)if(e[n]!==t[n])return!1;return!0}function TA(e){var t=e.selection;return(pA(t)||mA(t))&&t.edit?To(To({},e),{},{selection:To(To({},t),{},{edit:!1})}):e}function RA(e,t){return{type:Qa.key,path:e,edit:t}}function NA(e,t){return{type:Qa.value,path:e,edit:t}}function IA(e){return{type:Qa.inside,path:e}}function DA(e){return{type:Qa.after,path:e}}function zA(e,t){var n=MA(e,t),r=e.length>n.length&&t.length>n.length;return{type:Qa.multi,anchorPath:r?n.concat(e[n.length]):n,focusPath:r?n.concat(t[n.length]):n}}function BA(e,t,n,r){if(pA(t))return String(mb(t.path));if(mA(t)){var o,i=Ws(e,t.path);return"string"==typeof i?i:null!==(o=r.stringify(i,null,n))&&void 0!==o?o:null}if(gA(t)){var a;if(Mx(t.focusPath))return null!==(a=r.stringify(e,null,n))&&void 0!==a?a:null;var s=kA(t),c=Ws(e,s);if(Array.isArray(c)){if(yA(t)){var u,l=Ws(e,t.focusPath);return null!==(u=r.stringify(l,null,n))&&void 0!==u?u:null}return xA(e,t).map((function(t){var o=Ws(e,t);return"".concat(r.stringify(o,null,n),",")})).join("\n")}return xA(e,t).map((function(t){var o=mb(t),i=Ws(e,t);return"".concat(r.stringify(o),": ").concat(r.stringify(i,null,n),",")})).join("\n")}return null}function LA(e){return(pA(e)||mA(e))&&!0===e.edit}function qA(e){return pA(e)||mA(e)||gA(e)}function FA(e){return pA(e)||mA(e)||yA(e)}function VA(e){switch(e.type){case Ya.key:return RA(e.path,!1);case Ya.value:return NA(e.path,!1);case Ya.after:return DA(e.path);case Ya.inside:return IA(e.path)}}function HA(e,t,n){switch(t){case Qa.key:return RA(n,!1);case Qa.value:return NA(n,!1);case Qa.after:return DA(n);case Qa.inside:return IA(n);case Qa.multi:case Qa.text:return zA(n,n)}}function WA(e,t,n){return t&&(UA(e,t,n)||PA(gA(t)?Xw(t.focusPath):t.path,n))?t:null}function UA(e,t,n){if(void 0===e||!t)return!1;if(pA(t)||vA(t)||hA(t))return Ax(t.path,n);if(mA(t))return PA(n,t.path);if(gA(t)){var r=jA(e,t),o=SA(e,t),i=Xw(t.focusPath);if(!PA(n,i)||n.length<=i.length)return!1;var a=JA(e,t,r),s=JA(e,t,o),c=JA(e,t,n);return-1!==c&&c>=a&&c<=s}return!1}function JA(e,t,n){var r=Xw(t.focusPath);if(!PA(n,r)||n.length<=r.length)return-1;var o=n[r.length],i=Ws(e,r);if(Rs(i))return Object.keys(i).indexOf(o);if(Ts(i)){var a=Uu(o);if(a<i.length)return a}return-1}function KA(e){return gA(e)?e.focusPath:e.path}function GA(e){return gA(e)?e.anchorPath:e.path}function QA(){for(var e=[],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(var o=0,i=n;o<i.length;o++){var a=i[o];if("string"==typeof a&&e.push(a),a&&"object"===Vo(a))for(var s in a)Object.hasOwnProperty.call(a,s)&&a[s]&&e.push(s)}return e.join(" ")}function YA(e,t){return QA("jse-value","jse-"+el(e,t),{"jse-url":nl(e),"jse-empty":"string"==typeof e&&0===e.length})}function XA(e){pi(e,"svelte-zwlnit",".jse-value.jse-string.svelte-zwlnit{color:var(--jse-value-color-string, #008000)}.jse-value.jse-object.svelte-zwlnit,.jse-value.jse-array.svelte-zwlnit{min-width:16px;color:var(--jse-delimiter-color, rgba(0, 0, 0, 0.38))}.jse-value.jse-number.svelte-zwlnit{color:var(--jse-value-color-number, #ee422e)}.jse-value.jse-boolean.svelte-zwlnit{color:var(--jse-value-color-boolean, #ff8c00)}.jse-value.jse-null.svelte-zwlnit{color:var(--jse-value-color-null, #004ed0)}.jse-value.jse-invalid.svelte-zwlnit{color:var(--jse-text-color, #4d4d4d)}.jse-value.jse-url.svelte-zwlnit{color:var(--jse-value-color-url, #008000);text-decoration:underline}div.jse-editable-div.svelte-zwlnit{min-width:2em;padding:0 5px;box-sizing:border-box;outline:none;border-radius:1px;vertical-align:top;cursor:text !important;word-break:normal;white-space:pre-wrap;overflow-wrap:anywhere}div.jse-editable-div.jse-short-text.svelte-zwlnit{overflow-wrap:normal}div.jse-editable-div[contenteditable=true].svelte-zwlnit{outline:var(--jse-edit-outline, 2px solid #656565);background:inherit !important;position:relative;border-radius:0;z-index:3}div.jse-editable-div.jse-empty.svelte-zwlnit:not(:focus){outline:1px dotted var(--jse-tag-background, rgba(0, 0, 0, 0.2));-moz-outline-radius:2px}div.jse-editable-div.jse-empty.svelte-zwlnit::after{pointer-events:none;color:var(--jse-tag-background, rgba(0, 0, 0, 0.2))}")}function ZA(e){var t,n,r,o;return{c:function(){Ai(t=ki("div"),"role","textbox"),Ai(t,"tabindex","0"),Ai(t,"class",n=ai(QA("jse-editable-div",e[2],{"jse-short-text":e[0]}))+" svelte-zwlnit"),Ai(t,"contenteditable","true"),Ai(t,"spellcheck","false")},m:function(n,i){bi(n,t,i),e[13](t),r||(o=[_i(t,"input",e[3]),_i(t,"keydown",e[4]),_i(t,"paste",e[5]),_i(t,"blur",e[6])],r=!0)},p:function(e,r){5&jo(r,1)[0]&&n!==(n=ai(QA("jse-editable-div",e[2],{"jse-short-text":e[0]}))+" svelte-zwlnit")&&Ai(t,"class",n)},i:Ho,o:Ho,d:function(n){n&&wi(t),e[13](null),r=!1,Go(o)}}}function eE(e,t,n){var r,o,i=Ia("jsoneditor:EditableDiv"),a=t.value,s=t.shortText,c=void 0!==s&&s,u=t.onChange,l=t.onCancel,f=t.onFind,d=t.onPaste,h=void 0===d?Mf:d,v=t.onValueClass,p=void 0===v?function(){return""}:v,m=!1;function g(){return r?function(e){return e.replace(/\n$/,"")}(r.innerText):""}function y(e){r&&n(1,r.innerText=yO(e),r)}function b(){var e=g();""===e&&y(""),n(2,o=p(e))}function w(){m=!0,l()}return Ki((function(){i("onMount",{value:a}),y(a),r&&(jO(r),n(1,r.refresh=b,r),n(1,r.cancel=w,r))})),Gi((function(){var e=g();i("onDestroy",{closed:m,value:a,newValue:e}),m||e===a||u(e,ts.no)})),e.$$set=function(e){"value"in e&&n(7,a=e.value),"shortText"in e&&n(0,c=e.shortText),"onChange"in e&&n(8,u=e.onChange),"onCancel"in e&&n(9,l=e.onCancel),"onFind"in e&&n(10,f=e.onFind),"onPaste"in e&&n(11,h=e.onPaste),"onValueClass"in e&&n(12,p=e.onValueClass)},e.$$.update=function(){4224&e.$$.dirty&&n(2,o=p(a))},[c,r,o,b,function(e){e.stopPropagation();var t=TO(e);if("Escape"===t&&w(),"Enter"===t||"Tab"===t){m=!0;var n=g();u(n,ts.nextInside)}"Ctrl+F"===t&&(e.preventDefault(),f(!1)),"Ctrl+H"===t&&(e.preventDefault(),f(!0))},function(e){if(e.stopPropagation(),h&&e.clipboardData){var t=e.clipboardData.getData("text/plain");h(t)}},function(){var e=document.hasFocus(),t=g();i("handleBlur",{hasFocus:e,closed:m,value:a,newValue:t}),document.hasFocus()&&!m&&(m=!0,t!==a&&u(t,ts.self))},a,u,l,f,h,p,function(e){ta[e?"unshift":"push"]((function(){n(1,r=e)}))}]}var tE=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,eE,ZA,Xo,{value:7,shortText:0,onChange:8,onCancel:9,onFind:10,onPaste:11,onValueClass:12},XA),n}return Ao(t,Na),Io(t)}();function nE(e){var t,n;return t=new tE({props:{value:e[1].escapeValue(e[0]),onChange:e[3],onCancel:e[4],onPaste:e[5],onFind:e[2],onValueClass:e[6]}}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},p:function(e,n){var r=jo(n,1)[0],o={};3&r&&(o.value=e[1].escapeValue(e[0])),4&r&&(o.onFind=e[2]),t.$set(o)},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}function rE(e,t,n){var r=t.path,o=t.value,i=t.parser,a=t.normalization,s=t.enforceString,c=t.onPatch,u=t.onPasteJson,l=t.onSelect,f=t.onFind,d=t.focus,h=t.findNextInside;function v(e){return s?e:rl(e,i)}return e.$$set=function(e){"path"in e&&n(7,r=e.path),"value"in e&&n(0,o=e.value),"parser"in e&&n(8,i=e.parser),"normalization"in e&&n(1,a=e.normalization),"enforceString"in e&&n(9,s=e.enforceString),"onPatch"in e&&n(10,c=e.onPatch),"onPasteJson"in e&&n(11,u=e.onPasteJson),"onSelect"in e&&n(12,l=e.onSelect),"onFind"in e&&n(2,f=e.onFind),"focus"in e&&n(13,d=e.focus),"findNextInside"in e&&n(14,h=e.findNextInside)},[o,a,f,function(e,t){c([{op:"replace",path:Zs(r),value:v(a.unescapeValue(e))}],(function(e,n){if(!n.selection||Ax(r,KA(n.selection))){var o=t===ts.nextInside?h(r):NA(r,!1);return{state:To(To({},n),{},{selection:o})}}})),d()},function(){l(NA(r,!1)),d()},function(e){try{var t=i.parse(e);Qu(t)&&u({path:r,contents:t})}catch(e){}},function(e){return YA(v(a.unescapeValue(e)),i)},r,i,s,c,u,l,d,h]}var oE=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,rE,nE,Xo,{path:7,value:0,parser:8,normalization:1,enforceString:9,onPatch:10,onPasteJson:11,onSelect:12,onFind:2,focus:13,findNextInside:14}),n}return Ao(t,Na),Io(t)}();function iE(e,t,n){var r=Xw(t),o=Ws(e,r);if(Ts(o)){var i=Uu(mb(t));return n.map((function(e,t){return{op:"add",path:Zs(r.concat(String(i+t))),value:e.value}}))}if(Rs(o)){var a=mb(t),s=Object.keys(o),c=void 0!==a?aA(s,a,!0):[];return[].concat(Bo(n.map((function(e){var t=tM(e.key,s);return{op:"add",path:Zs(r.concat(t)),value:e.value}}))),Bo(c.map((function(e){return fE(r,e)}))))}throw new Error("Cannot create insert operations: parent must be an Object or Array")}function aE(e,t,n){var r=Ws(e,t);if(Array.isArray(r)){var o=r.length;return n.map((function(e,n){return{op:"add",path:Zs(t.concat(String(o+n))),value:e.value}}))}return n.map((function(e){var n=tM(e.key,Object.keys(r));return{op:"add",path:Zs(t.concat(n)),value:e.value}}))}function sE(e,t,n,r){var o=tM(r,t.filter((function(e){return e!==n}))),i=aA(t,n,!1);return[{op:"move",from:Zs(e.concat(n)),path:Zs(e.concat(o))}].concat(Bo(i.map((function(t){return fE(e,t)}))))}function cE(e,t){var n=mb(t);if(Mx(n))throw new Error("Cannot duplicate root object");var r=Xw(n),o=mb(n),i=Ws(e,r);if(Ts(i)){var a=mb(t),s=a?Uu(mb(a))+1:0;return Bo(t.map((function(e,t){return{op:"copy",from:Zs(e),path:Zs(r.concat(String(t+s)))}})))}if(Rs(i)){var c=Object.keys(i),u=void 0!==o?aA(c,o,!1):[];return[].concat(Bo(t.map((function(e){var t=tM(mb(e),c);return{op:"copy",from:Zs(e),path:Zs(r.concat(t))}}))),Bo(u.map((function(e){return fE(r,e)}))))}throw new Error("Cannot create duplicate operations: parent must be an Object or Array")}function uE(e,t,n,r){if(pA(t)){var o=q_(n,r),i=Xw(t.path),a=Ws(e,i);return sE(i,Object.keys(a),mb(t.path),"string"==typeof o?o:n)}if(mA(t)||gA(t)&&Mx(t.focusPath))try{return[{op:"replace",path:Zs(KA(t)),value:F_(n,(function(e){return L_(e,r)}))}]}catch(e){return[{op:"replace",path:Zs(KA(t)),value:n}]}if(gA(t)){var s=dE(n,r);return function(e,t,n){var r=Xw(lw(t)),o=Ws(e,r);if(Ts(o)){var i=lw(t),a=i?Uu(mb(i)):0;return[].concat(Bo(lE(t)),Bo(n.map((function(e,t){return{op:"add",path:Zs(r.concat(String(t+a))),value:e.value}}))))}if(Rs(o)){var s=mb(t),c=Xw(s),u=mb(s),l=Object.keys(o),f=void 0!==u?aA(l,u,!1):[],d=new Set(t.map((function(e){return mb(e)}))),h=l.filter((function(e){return!d.has(e)}));return[].concat(Bo(lE(t)),Bo(n.map((function(e){var t=tM(e.key,h);return{op:"add",path:Zs(c.concat(t)),value:e.value}}))),Bo(f.map((function(e){return fE(c,e)}))))}throw new Error("Cannot create replace operations: parent must be an Object or Array")}(e,xA(e,t),s)}if(hA(t)){var c=dE(n,r),u=t.path,l=Xw(u),f=Ws(e,l);if(Ts(f)){var d=Uu(mb(u));return iE(e,l.concat(String(d+1)),c)}if(Rs(f)){var h=String(mb(u)),v=Object.keys(f);if(Mx(v)||mb(v)===h)return aE(e,l,c);var p=v.indexOf(h),m=v[p+1];return iE(e,l.concat(m),c)}throw new Error("Cannot create insert operations: parent must be an Object or Array")}if(vA(t)){var g=dE(n,r),y=t.path,b=Ws(e,y);if(Ts(b))return iE(e,y.concat("0"),g);if(Rs(b)){var w=Object.keys(b);if(Mx(w))return aE(e,y,g);var x=lw(w);return iE(e,y.concat(x),g)}throw new Error("Cannot create insert operations: parent must be an Object or Array")}throw new Error("Cannot insert: unsupported type of selection "+JSON.stringify(t))}function lE(e){return e.map((function(e){return{op:"remove",path:Zs(e)}})).reverse()}function fE(e,t){return{op:"move",from:Zs(e.concat(t)),path:Zs(e.concat(t))}}function dE(e,t){var n=/^\s*{/.test(e),r=/^\s*\[/.test(e),o=q_(e,t),i=void 0!==o?o:F_(e,(function(e){return L_(e,t)}));return n&&Gu(i)||r&&Array.isArray(i)?[{key:"New item",value:i}]:Array.isArray(i)?i.map((function(e,t){return{key:"New item "+t,value:e}})):Gu(i)?Object.keys(i).map((function(e){return{key:e,value:i[e]}})):[{key:"New item",value:i}]}function hE(e,t){if(pA(t)){var n=Xw(t.path),r=Ws(e,n),o=sE(n,Object.keys(r),mb(t.path),"");return{operations:o,newSelection:OA(e,o)}}if(mA(t))return{operations:[{op:"replace",path:Zs(t.path),value:""}],newSelection:t};if(gA(t)){var i=xA(e,t),a=lE(i),s=mb(i);if(Mx(s)){return{operations:[{op:"replace",path:"",value:""}],newSelection:NA([],!1)}}var c=Xw(s),u=Ws(e,c);if(Ts(u)){var l=Uu(mb(lw(i)));return{operations:a,newSelection:0===l?IA(c):DA(c.concat(String(l-1)))}}if(Rs(u)){var f=Object.keys(u),d=mb(lw(i)),h=f.indexOf(d),v=f[h-1];return{operations:a,newSelection:0===h?IA(c):DA(c.concat(v))}}throw new Error("Cannot create remove operations: parent must be an Object or Array")}throw new Error("Cannot remove: unsupported type of selection "+JSON.stringify(t))}function vE(e,t){return vc(e,t,{before:function(e,t,n){if(Is(t)){var r=Xs(t.path);return{revertOperations:[].concat(Bo(n),Bo(pE(e,r)))}}if(Bs(t)){var o=Xs(t.from);return{revertOperations:[].concat(Bo(n),Bo(pE(e,o)))}}return{document:e}}})}function pE(e,t){var n=Xw(t),r=mb(t),o=Ws(e,n);return Rs(o)?aA(Object.keys(o),r,!1).map((function(e){return fE(n,e)})):[]}function mE(e,t,n){var r=null!=n&&n.activeItem?CE(n.activeItem):void 0,o=t.findIndex((function(e){return Ax(r,CE(e))})),i=-1!==o?o:void 0!==(null==n?void 0:n.activeIndex)&&(null==n?void 0:n.activeIndex)<t.length?null==n?void 0:n.activeIndex:t.length>0?0:-1,a=t.map((function(e,t){return To(To({},e),{},{active:t===i})})),s=a[i];return{items:a,itemsMap:Tw(a,(function(e){return Zs(e.path)})),activeItem:s,activeIndex:i}}function gE(e){var t=e.activeIndex<e.items.length-1?e.activeIndex+1:e.items.length>0?0:-1,n=e.items[t],r=e.items.map((function(e,n){return To(To({},e),{},{active:n===t})}));return To(To({},e),{},{items:r,itemsMap:Tw(r,(function(e){return Zs(e.path)})),activeItem:n,activeIndex:t})}function yE(e){var t=e.activeIndex>0?e.activeIndex-1:e.items.length-1,n=e.items[t],r=e.items.map((function(e,n){return To(To({},e),{},{active:n===t})}));return To(To({},e),{},{items:r,itemsMap:Tw(r,(function(e){return Zs(e.path)})),activeItem:n,activeIndex:t})}function bE(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=e.toLowerCase(),i=null!==(n=null==r?void 0:r.maxResults)&&void 0!==n?n:1/0,a=null==r?void 0:r.columns,s=[],c=[];function u(e){s.length>=i||s.push(e)}function l(e,t){if(Ts(t)){var n=c.length;c.push("0");for(var r=0;r<t.length;r++)if(c[n]=String(r),l(e,t[r]),s.length>=i)return;c.pop()}else if(Rs(t)){var o=Object.keys(t),a=c.length;c.push("");for(var f=0,d=o;f<d.length;f++){var h=d[f];if(c[a]=h,wE(h,e,c,Za.key,u),l(e,t[h]),s.length>=i)return}c.pop()}else wE(String(t),e,c,Za.value,u)}if(""===e)return[];if(a){if(!Array.isArray(t))throw new Error("json must be an Array when option columns is defined");for(var f=0;f<t.length;f++){c[0]=String(f);for(var d=t[f],h=0;h<a.length;h++){var v=a[h];if(1===v.length)c[1]=v[0];else for(var p=0;p<v.length;p++)c[p+1]=v[p];for(;c.length>v.length+1;)c.pop();l(o,Ws(d,v))}if(s.length>=i)break}return s}return l(o,t),s}function wE(e,t,n,r,o){var i=e.toLowerCase(),a=0,s=-1,c=-1;do{-1!==(c=i.indexOf(t,s))&&(s=c+t.length,o({path:n.slice(0),field:r,fieldIndex:a,start:c,end:s}),a++)}while(-1!==c)}function xE(e,t,n,r){return e.substring(0,n)+t+e.substring(r)}function kE(e,t,n){var r=e;return Tb(n,(function(e){r=xE(r,t,e.start,e.end)})),r}function jE(e,t,n,r,o){var i=r.field,a=r.path,s=r.start,c=r.end;if(i===Za.key){var u=Xw(a),l=Ws(e,u),f=mb(a),d=sE(u,Object.keys(l),f,xE(f,n,s,c));return{newSelection:OA(e,d),operations:d}}if(i===Za.value){var h=Ws(e,a);if(void 0===h)throw new Error("Cannot replace: path not found ".concat(Zs(a)));var v="string"==typeof h?h:String(h),p=Zs(a),m=iA(h,t.enforceStringMap,p,o),g=xE(v,n,s,c),y=[{op:"replace",path:Zs(a),value:m?g:rl(g,o)}];return{newSelection:OA(e,y),operations:y}}throw new Error("Cannot replace: unknown type of search result field ".concat(i))}function SE(e,t,n,r,o){for(var i=bE(n,e,{maxResults:1/0}),a=[],s=0;s<i.length;s++){var c=i[s-1],u=i[s];0!==s&&u.field===c.field&&Ax(u.path,c.path)?mb(a).items.push(u):a.push({path:u.path,field:u.field,items:[u]})}a.sort((function(e,t){return e.field!==t.field?e.field===Za.key?1:-1:t.path.length-e.path.length}));var l=[],f=null;return a.forEach((function(n){var i=n.field,a=n.path,s=n.items;if(i===Za.key){var c=Xw(a),u=Ws(e,c),d=mb(a),h=sE(c,Object.keys(u),d,kE(d,r,s));l=l.concat(h),f=OA(e,h)}else{if(i!==Za.value)throw new Error("Cannot replace: unknown type of search result field ".concat(i));var v=Ws(e,a);if(void 0===v)throw new Error("Cannot replace: path not found ".concat(Zs(a)));var p="string"==typeof v?v:String(v),m=Zs(a),g=iA(v,t.enforceStringMap,m,o),y=kE(p,r,s),b=[{op:"replace",path:Zs(a),value:g?y:rl(y,o)}];l=l.concat(b),f=OA(e,b)}})),{operations:l,newSelection:f}}function CE(e){return e.path.concat(e.field,String(e.fieldIndex))}function $E(e,t){var n,r=null==e||null===(n=e[t])||void 0===n?void 0:n.filter((function(e){return e.field===Za.key}));if(r&&0!==r.length)return r}function _E(e,t){var n,r=null==e||null===(n=e[t])||void 0===n?void 0:n.filter((function(e){return e.field===Za.value}));if(r&&0!==r.length)return r}function OE(e){pi(e,"svelte-1n1l5ny",".jse-highlight.svelte-1n1l5ny{background-color:var(--jse-search-match-color, #ffe665);outline:var(--jse-search-match-outline, 1px solid #ffd700)}.jse-highlight.jse-active.svelte-1n1l5ny{background-color:var(--jse-search-match-active-color, #ffd700);outline:var(--jse-search-match-active-outline, 1px solid #e1be00)}")}function ME(e,t,n){var r=e.slice();return r[3]=t[n],r}function AE(e){var t,n,r=yO(e[3].text)+"";return{c:function(){t=ki("span"),n=Si(r),Ai(t,"class","jse-highlight svelte-1n1l5ny"),zi(t,"jse-active",e[3].active)},m:function(e,r){bi(e,t,r),vi(t,n)},p:function(e,o){1&o&&r!==(r=yO(e[3].text)+"")&&Ri(n,r),1&o&&zi(t,"jse-active",e[3].active)},d:function(e){e&&wi(t)}}}function EE(e){var t,n=e[3].text+"";return{c:function(){t=Si(n)},m:function(e,n){bi(e,t,n)},p:function(e,r){1&r&&n!==(n=e[3].text+"")&&Ri(t,n)},d:function(e){e&&wi(t)}}}function PE(e){var t;function n(e,t){return"normal"===e[3].type?EE:AE}var r=n(e),o=r(e);return{c:function(){o.c(),t=$i()},m:function(e,n){o.m(e,n),bi(e,t,n)},p:function(e,i){r===(r=n(e))&&o?o.p(e,i):(o.d(1),(o=r(e))&&(o.c(),o.m(t.parentNode,t)))},d:function(e){e&&wi(t),o.d(e)}}}function TE(e){for(var t,n=Sa(e[0]),r=[],o=0;o<n.length;o+=1)r[o]=PE(ME(e,n,o));return{c:function(){for(var e=0;e<r.length;e+=1)r[e].c();t=$i()},m:function(e,n){for(var o=0;o<r.length;o+=1)r[o]&&r[o].m(e,n);bi(e,t,n)},p:function(e,o){var i=jo(o,1)[0];if(1&i){var a;for(n=Sa(e[0]),a=0;a<n.length;a+=1){var s=ME(e,n,a);r[a]?r[a].p(s,i):(r[a]=PE(s),r[a].c(),r[a].m(t.parentNode,t))}for(;a<r.length;a+=1)r[a].d(1);r.length=n.length}},i:Ho,o:Ho,d:function(e){e&&wi(t),xi(r,e)}}}function RE(e,t,n){var r,o=t.text,i=t.searchResultItems;return e.$$set=function(e){"text"in e&&n(1,o=e.text),"searchResultItems"in e&&n(2,i=e.searchResultItems)},e.$$.update=function(){6&e.$$.dirty&&n(0,r=function(e,t){var n,r=[],o=0,i=bo(t);try{for(i.s();!(n=i.n()).done;){var a=n.value,s=e.slice(o,a.start);""!==s&&r.push({type:"normal",text:s,active:!1});var c=e.slice(a.start,a.end);r.push({type:"highlight",text:c,active:a.active}),o=a.end}}catch(e){i.e(e)}finally{i.f()}var u=mb(t);return u&&u.end<e.length&&r.push({type:"normal",text:e.slice(u.end),active:!1}),r}(String(o),i))},[r,o,i]}var NE=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,RE,TE,Yo,{text:1,searchResultItems:2},OE),n}return Ao(t,Na),Io(t)}();function IE(e){pi(e,"svelte-1v88515",'.jse-value.jse-string.svelte-1v88515{color:var(--jse-value-color-string, #008000)}.jse-value.jse-object.svelte-1v88515,.jse-value.jse-array.svelte-1v88515{min-width:16px;color:var(--jse-delimiter-color, rgba(0, 0, 0, 0.38))}.jse-value.jse-number.svelte-1v88515{color:var(--jse-value-color-number, #ee422e)}.jse-value.jse-boolean.svelte-1v88515{color:var(--jse-value-color-boolean, #ff8c00)}.jse-value.jse-null.svelte-1v88515{color:var(--jse-value-color-null, #004ed0)}.jse-value.jse-invalid.svelte-1v88515{color:var(--jse-text-color, #4d4d4d)}.jse-value.jse-url.svelte-1v88515{color:var(--jse-value-color-url, #008000);text-decoration:underline}.jse-value.svelte-1v88515{min-width:2em;padding:0 5px;box-sizing:border-box;outline:none;border-radius:1px;vertical-align:top;cursor:var(--jse-contents-cursor, pointer);word-break:normal;overflow-wrap:anywhere;white-space:pre-wrap}.jse-value.svelte-1v88515:hover{background:var(--jse-hover-background-color, rgba(0, 0, 0, 0.06))}.jse-value.jse-empty.svelte-1v88515{min-width:4em;outline:1px dotted var(--jse-tag-background, rgba(0, 0, 0, 0.2));-moz-outline-radius:2px}.jse-value.jse-empty.svelte-1v88515::after{pointer-events:none;color:var(--jse-tag-background, rgba(0, 0, 0, 0.2));content:"value"}')}function DE(e){var t,n=yO(e[1].escapeValue(e[0]))+"";return{c:function(){t=Si(n)},m:function(e,n){bi(e,t,n)},p:function(e,r){3&r&&n!==(n=yO(e[1].escapeValue(e[0]))+"")&&Ri(t,n)},i:Ho,o:Ho,d:function(e){e&&wi(t)}}}function zE(e){var t,n;return t=new NE({props:{text:e[1].escapeValue(e[0]),searchResultItems:e[3]}}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},p:function(e,n){var r={};3&n&&(r.text=e[1].escapeValue(e[0])),8&n&&(r.searchResultItems=e[3]),t.$set(r)},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}function BE(e){var t,n,r,o,i,a,s,c,u=[zE,DE],l=[];function f(e,t){return e[3]?0:1}return n=f(e),r=l[n]=u[n](e),{c:function(){t=ki("div"),r.c(),Ai(t,"role","button"),Ai(t,"tabindex","-1"),Ai(t,"data-type","selectable-value"),Ai(t,"class",o=ai(YA(e[0],e[2]))+" svelte-1v88515"),Ai(t,"title",i=e[4]?"Ctrl+Click or Ctrl+Enter to open url in new window":null)},m:function(r,o){bi(r,t,o),l[n].m(t,null),a=!0,s||(c=[_i(t,"click",e[5]),_i(t,"dblclick",e[6])],s=!0)},p:function(e,s){var c=jo(s,1)[0],d=n;(n=f(e))===d?l[n].p(e,c):(ya(),xa(l[d],1,1,(function(){l[d]=null})),ba(),(r=l[n])?r.p(e,c):(r=l[n]=u[n](e)).c(),wa(r,1),r.m(t,null)),(!a||5&c&&o!==(o=ai(YA(e[0],e[2]))+" svelte-1v88515"))&&Ai(t,"class",o),(!a||16&c&&i!==(i=e[4]?"Ctrl+Click or Ctrl+Enter to open url in new window":null))&&Ai(t,"title",i)},i:function(e){a||(wa(r),a=!0)},o:function(e){xa(r),a=!1},d:function(e){e&&wi(t),l[n].d(),s=!1,Go(c)}}}function LE(e,t,n){var r,o=t.path,i=t.value,a=t.readOnly,s=t.normalization,c=t.parser,u=t.onSelect,l=t.searchResultItems;return e.$$set=function(e){"path"in e&&n(7,o=e.path),"value"in e&&n(0,i=e.value),"readOnly"in e&&n(8,a=e.readOnly),"normalization"in e&&n(1,s=e.normalization),"parser"in e&&n(2,c=e.parser),"onSelect"in e&&n(9,u=e.onSelect),"searchResultItems"in e&&n(3,l=e.searchResultItems)},e.$$.update=function(){1&e.$$.dirty&&n(4,r=nl(i))},[i,s,c,l,r,function(e){"string"==typeof i&&r&&e.ctrlKey&&(e.preventDefault(),e.stopPropagation(),window.open(i,"_blank"))},function(e){a||(e.preventDefault(),u(NA(o,!0)))},o,a,u]}var qE=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,LE,BE,Xo,{path:7,value:0,readOnly:8,normalization:1,parser:2,onSelect:9,searchResultItems:3},IE),n}return Ao(t,Na),Io(t)}();function FE(e){pi(e,"svelte-1sftg37",'.jse-tooltip.svelte-1sftg37{font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);line-height:normal;padding:calc(0.5 * var(--jse-padding, 10px)) var(--jse-padding, 10px);border-radius:3px;background:var(--jse-context-menu-background, #656565);color:var(--jse-context-menu-color, var(--jse-text-color-inverse, #fff));white-space:nowrap;box-shadow:var(--jse-controls-box-shadow, 0 2px 6px 0 rgba(0, 0, 0, 0.24))}')}function VE(e){var t,n;return{c:function(){t=ki("div"),n=Si(e[0]),Ai(t,"class","jse-tooltip svelte-1sftg37")},m:function(e,r){bi(e,t,r),vi(t,n)},p:function(e,t){1&jo(t,1)[0]&&Ri(n,e[0])},i:Ho,o:Ho,d:function(e){e&&wi(t)}}}function HE(e,t,n){var r=t.text;return e.$$set=function(e){"text"in e&&n(0,r=e.text)},[r]}var WE=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,HE,VE,Yo,{text:0},FE),n}return Ao(t,Na),Io(t)}();function UE(e,t){var n,r=t.text,o=t.openAbsolutePopup,i=t.closeAbsolutePopup;function a(){n=o(WE,{text:r},{position:"top",width:10*r.length,offsetTop:3,anchor:e,closeOnOuterClick:!0})}function s(){i(n)}return e.addEventListener("mouseenter",a),e.addEventListener("mouseleave",s),{destroy:function(){e.removeEventListener("mouseenter",a),e.removeEventListener("mouseleave",s)}}}function JE(e){pi(e,"svelte-1sqrs1u",".jse-timestamp.svelte-1sqrs1u{padding:0;margin:0;vertical-align:middle;display:inline-flex;color:var(--jse-value-color-number, #ee422e)}")}function KE(e){var t,n,r,o,i,a;return n=new SM({props:{data:cM}}),{c:function(){t=ki("div"),Ea(n.$$.fragment),Ai(t,"class","jse-timestamp svelte-1sqrs1u")},m:function(s,c){bi(s,t,c),Pa(n,t,null),o=!0,i||(a=si(r=UE.call(null,t,To({text:e[0]},e[1]))),i=!0)},p:function(e,t){var n=jo(t,1)[0];r&&Qo(r.update)&&1&n&&r.update.call(null,To({text:e[0]},e[1]))},i:function(e){o||(wa(n.$$.fragment,e),o=!0)},o:function(e){xa(n.$$.fragment,e),o=!1},d:function(e){e&&wi(t),Ta(n),i=!1,a()}}}function GE(e,t,n){var r,o=Xi("absolute-popup"),i=t.value;return e.$$set=function(e){"value"in e&&n(2,i=e.value)},e.$$.update=function(){4&e.$$.dirty&&n(0,r="Time: ".concat(new Date(i).toString()))},[r,o,i]}var QE=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,GE,KE,Xo,{value:2},JE),n}return Ao(t,Na),Io(t)}();function YE(e){var t=e.path,n=e.value,r=e.readOnly,o=e.enforceString,i=e.searchResultItems,a=e.isEditing,s=e.parser,c=e.normalization,u=e.onPatch,l=e.onPasteJson,f=e.onSelect,d=e.onFind,h=e.findNextInside,v=e.focus,p=[];return!a&&function(e){return!0===e||!1===e}(n)&&p.push({component:OM,props:{path:t,value:n,readOnly:r,onPatch:u,focus:v}}),!a&&function(e){return"string"==typeof e&&e.length<99&&!!Xu(e)}(n)&&p.push({component:IM,props:{path:t,value:n,readOnly:r,onPatch:u,focus:v}}),a&&p.push({component:oE,props:{path:t,value:n,enforceString:o,parser:s,normalization:c,onPatch:u,onPasteJson:l,onSelect:f,onFind:d,findNextInside:h,focus:v}}),a||p.push({component:qE,props:{path:t,value:n,readOnly:r,parser:s,normalization:c,searchResultItems:i,onSelect:f}}),!a&&Yu(n)&&p.push({component:QE,props:{value:n}}),p}var XE={prefix:"fas",iconName:"trash-can",icon:[448,512,[61460,"trash-alt"],"f2ed","M135.2 17.7C140.6 6.8 151.7 0 163.8 0H284.2c12.1 0 23.2 6.8 28.6 17.7L320 32h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 96 0 81.7 0 64S14.3 32 32 32h96l7.2-14.3zM32 128H416V448c0 35.3-28.7 64-64 64H96c-35.3 0-64-28.7-64-64V128zm96 64c-8.8 0-16 7.2-16 16V432c0 8.8 7.2 16 16 16s16-7.2 16-16V208c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16V432c0 8.8 7.2 16 16 16s16-7.2 16-16V208c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16V432c0 8.8 7.2 16 16 16s16-7.2 16-16V208c0-8.8-7.2-16-16-16z"]},ZE={prefix:"fas",iconName:"down-left-and-up-right-to-center",icon:[512,512,["compress-alt"],"f422","M439 7c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8H296c-13.3 0-24-10.7-24-24V72c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39L439 7zM72 272H216c13.3 0 24 10.7 24 24V440c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39L73 505c-9.4 9.4-24.6 9.4-33.9 0L7 473c-9.4-9.4-9.4-24.6 0-33.9l87-87L55 313c-6.9-6.9-8.9-17.2-5.2-26.2s12.5-14.8 22.2-14.8z"]},eP={prefix:"fas",iconName:"caret-right",icon:[256,512,[],"f0da","M246.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-128-128c-9.2-9.2-22.9-11.9-34.9-6.9s-19.8 16.6-19.8 29.6l0 256c0 12.9 7.8 24.6 19.8 29.6s25.7 2.2 34.9-6.9l128-128z"]},tP={prefix:"fas",iconName:"paste",icon:[512,512,["file-clipboard"],"f0ea","M160 0c-23.7 0-44.4 12.9-55.4 32H48C21.5 32 0 53.5 0 80V400c0 26.5 21.5 48 48 48H192V176c0-44.2 35.8-80 80-80h48V80c0-26.5-21.5-48-48-48H215.4C204.4 12.9 183.7 0 160 0zM272 128c-26.5 0-48 21.5-48 48V448v16c0 26.5 21.5 48 48 48H464c26.5 0 48-21.5 48-48V243.9c0-12.7-5.1-24.9-14.1-33.9l-67.9-67.9c-9-9-21.2-14.1-33.9-14.1H320 272zM160 40a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"]},nP={prefix:"fas",iconName:"circle-notch",icon:[512,512,[],"f1ce","M222.7 32.1c5 16.9-4.6 34.8-21.5 39.8C121.8 95.6 64 169.1 64 256c0 106 86 192 192 192s192-86 192-192c0-86.9-57.8-160.4-137.1-184.1c-16.9-5-26.6-22.9-21.5-39.8s22.9-26.6 39.8-21.5C434.9 42.1 512 140 512 256c0 141.4-114.6 256-256 256S0 397.4 0 256C0 140 77.1 42.1 182.9 10.6c16.9-5 34.8 4.6 39.8 21.5z"]},rP={prefix:"fas",iconName:"scissors",icon:[512,512,[9984,9986,9988,"cut"],"f0c4","M256 192l-39.5-39.5c4.9-12.6 7.5-26.2 7.5-40.5C224 50.1 173.9 0 112 0S0 50.1 0 112s50.1 112 112 112c14.3 0 27.9-2.7 40.5-7.5L192 256l-39.5 39.5c-12.6-4.9-26.2-7.5-40.5-7.5C50.1 288 0 338.1 0 400s50.1 112 112 112s112-50.1 112-112c0-14.3-2.7-27.9-7.5-40.5L499.2 76.8c7.1-7.1 7.1-18.5 0-25.6c-28.3-28.3-74.1-28.3-102.4 0L256 192zm22.6 150.6L396.8 460.8c28.3 28.3 74.1 28.3 102.4 0c7.1-7.1 7.1-18.5 0-25.6L342.6 278.6l-64 64zM64 112a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zm48 240a48 48 0 1 1 0 96 48 48 0 1 1 0-96z"]},oP={prefix:"fas",iconName:"square-caret-down",icon:[448,512,["caret-square-down"],"f150","M384 480c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l320 0zM224 352c-6.7 0-13-2.8-17.6-7.7l-104-112c-6.5-7-8.2-17.2-4.4-25.9s12.5-14.4 22-14.4l208 0c9.5 0 18.2 5.7 22 14.4s2.1 18.9-4.4 25.9l-104 112c-4.5 4.9-10.9 7.7-17.6 7.7z"]},iP={prefix:"fas",iconName:"caret-left",icon:[256,512,[],"f0d9","M9.4 278.6c-12.5-12.5-12.5-32.8 0-45.3l128-128c9.2-9.2 22.9-11.9 34.9-6.9s19.8 16.6 19.8 29.6l0 256c0 12.9-7.8 24.6-19.8 29.6s-25.7 2.2-34.9-6.9l-128-128z"]},aP={prefix:"fas",iconName:"square-check",icon:[448,512,[9745,9989,61510,"check-square"],"f14a","M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zM337 209L209 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L303 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"]},sP={prefix:"fas",iconName:"pen-to-square",icon:[512,512,["edit"],"f044","M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3 172.4 241.7zM96 64C43 64 0 107 0 160V416c0 53 43 96 96 96H352c53 0 96-43 96-96V320c0-17.7-14.3-32-32-32s-32 14.3-32 32v96c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V160c0-17.7 14.3-32 32-32h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H96z"]},cP={prefix:"fas",iconName:"chevron-up",icon:[512,512,[],"f077","M233.4 105.4c12.5-12.5 32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L256 173.3 86.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z"]},uP={prefix:"fas",iconName:"angle-right",icon:[320,512,[8250],"f105","M278.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-160 160c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L210.7 256 73.4 118.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l160 160z"]},lP={prefix:"fas",iconName:"square-caret-up",icon:[448,512,["caret-square-up"],"f151","M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zM224 160c6.7 0 13 2.8 17.6 7.7l104 112c6.5 7 8.2 17.2 4.4 25.9s-12.5 14.4-22 14.4H120c-9.5 0-18.2-5.7-22-14.4s-2.1-18.9 4.4-25.9l104-112c4.5-4.9 10.9-7.7 17.6-7.7z"]},fP={prefix:"fas",iconName:"caret-up",icon:[320,512,[],"f0d8","M182.6 137.4c-12.5-12.5-32.8-12.5-45.3 0l-128 128c-9.2 9.2-11.9 22.9-6.9 34.9s16.6 19.8 29.6 19.8H288c12.9 0 24.6-7.8 29.6-19.8s2.2-25.7-6.9-34.9l-128-128z"]},dP={prefix:"fas",iconName:"square",icon:[448,512,[9632,9723,9724,61590],"f0c8","M0 96C0 60.7 28.7 32 64 32H384c35.3 0 64 28.7 64 64V416c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V96z"]},hP={prefix:"fas",iconName:"filter",icon:[512,512,[],"f0b0","M3.9 54.9C10.5 40.9 24.5 32 40 32H472c15.5 0 29.5 8.9 36.1 22.9s4.6 30.5-5.2 42.5L320 320.9V448c0 12.1-6.8 23.2-17.7 28.6s-23.8 4.3-33.5-3l-64-48c-8.1-6-12.8-15.5-12.8-25.6V320.9L9 97.3C-.7 85.4-2.8 68.8 3.9 54.9z"]},vP={prefix:"fas",iconName:"code",icon:[640,512,[],"f121","M392.8 1.2c-17-4.9-34.7 5-39.6 22l-128 448c-4.9 17 5 34.7 22 39.6s34.7-5 39.6-22l128-448c4.9-17-5-34.7-22-39.6zm80.6 120.1c-12.5 12.5-12.5 32.8 0 45.3L562.7 256l-89.4 89.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l112-112c12.5-12.5 12.5-32.8 0-45.3l-112-112c-12.5-12.5-32.8-12.5-45.3 0zm-306.7 0c-12.5-12.5-32.8-12.5-45.3 0l-112 112c-12.5 12.5-12.5 32.8 0 45.3l112 112c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256l89.4-89.4c12.5-12.5 12.5-32.8 0-45.3z"]},pP={prefix:"fas",iconName:"wrench",icon:[512,512,[128295],"f0ad","M352 320c88.4 0 160-71.6 160-160c0-15.3-2.2-30.1-6.2-44.2c-3.1-10.8-16.4-13.2-24.3-5.3l-76.8 76.8c-3 3-7.1 4.7-11.3 4.7H336c-8.8 0-16-7.2-16-16V118.6c0-4.2 1.7-8.3 4.7-11.3l76.8-76.8c7.9-7.9 5.4-21.2-5.3-24.3C382.1 2.2 367.3 0 352 0C263.6 0 192 71.6 192 160c0 19.1 3.4 37.5 9.5 54.5L19.9 396.1C7.2 408.8 0 426.1 0 444.1C0 481.6 30.4 512 67.9 512c18 0 35.3-7.2 48-19.9L297.5 310.5c17 6.2 35.4 9.5 54.5 9.5zM80 408a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"]},mP={prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z"]},gP={prefix:"fas",iconName:"pen",icon:[512,512,[128394],"f304","M362.7 19.3L314.3 67.7 444.3 197.7l48.4-48.4c25-25 25-65.5 0-90.5L453.3 19.3c-25-25-65.5-25-90.5 0zm-71 71L58.6 323.5c-10.4 10.4-18 23.3-22.2 37.4L1 481.2C-1.5 489.7 .8 498.8 7 505s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L421.7 220.3 291.7 90.3z"]},yP={prefix:"fas",iconName:"arrow-rotate-right",icon:[512,512,[8635,"arrow-right-rotate","arrow-rotate-forward","redo"],"f01e","M386.3 160H336c-17.7 0-32 14.3-32 32s14.3 32 32 32H464c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32s-32 14.3-32 32v51.2L414.4 97.6c-87.5-87.5-229.3-87.5-316.8 0s-87.5 229.3 0 316.8s229.3 87.5 316.8 0c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0c-62.5 62.5-163.8 62.5-226.3 0s-62.5-163.8 0-226.3s163.8-62.5 226.3 0L386.3 160z"]},bP={prefix:"fas",iconName:"arrow-rotate-left",icon:[512,512,[8634,"arrow-left-rotate","arrow-rotate-back","arrow-rotate-backward","undo"],"f0e2","M125.7 160H176c17.7 0 32 14.3 32 32s-14.3 32-32 32H48c-17.7 0-32-14.3-32-32V64c0-17.7 14.3-32 32-32s32 14.3 32 32v51.2L97.6 97.6c87.5-87.5 229.3-87.5 316.8 0s87.5 229.3 0 316.8s-229.3 87.5-316.8 0c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0c62.5 62.5 163.8 62.5 226.3 0s62.5-163.8 0-226.3s-163.8-62.5-226.3 0L125.7 160z"]},wP={prefix:"fas",iconName:"crop-simple",icon:[512,512,["crop-alt"],"f565","M128 32c0-17.7-14.3-32-32-32S64 14.3 64 32V64H32C14.3 64 0 78.3 0 96s14.3 32 32 32H64V384c0 35.3 28.7 64 64 64H352V384H128V32zM384 480c0 17.7 14.3 32 32 32s32-14.3 32-32V448h32c17.7 0 32-14.3 32-32s-14.3-32-32-32H448l0-256c0-35.3-28.7-64-64-64L160 64v64l224 0 0 352z"]},xP={prefix:"fas",iconName:"gear",icon:[512,512,[9881,"cog"],"f013","M495.9 166.6c3.2 8.7 .5 18.4-6.4 24.6l-43.3 39.4c1.1 8.3 1.7 16.8 1.7 25.4s-.6 17.1-1.7 25.4l43.3 39.4c6.9 6.2 9.6 15.9 6.4 24.6c-4.4 11.9-9.7 23.3-15.8 34.3l-4.7 8.1c-6.6 11-14 21.4-22.1 31.2c-5.9 7.2-15.7 9.6-24.5 6.8l-55.7-17.7c-13.4 10.3-28.2 18.9-44 25.4l-12.5 57.1c-2 9.1-9 16.3-18.2 17.8c-13.8 2.3-28 3.5-42.5 3.5s-28.7-1.2-42.5-3.5c-9.2-1.5-16.2-8.7-18.2-17.8l-12.5-57.1c-15.8-6.5-30.6-15.1-44-25.4L83.1 425.9c-8.8 2.8-18.6 .3-24.5-6.8c-8.1-9.8-15.5-20.2-22.1-31.2l-4.7-8.1c-6.1-11-11.4-22.4-15.8-34.3c-3.2-8.7-.5-18.4 6.4-24.6l43.3-39.4C64.6 273.1 64 264.6 64 256s.6-17.1 1.7-25.4L22.4 191.2c-6.9-6.2-9.6-15.9-6.4-24.6c4.4-11.9 9.7-23.3 15.8-34.3l4.7-8.1c6.6-11 14-21.4 22.1-31.2c5.9-7.2 15.7-9.6 24.5-6.8l55.7 17.7c13.4-10.3 28.2-18.9 44-25.4l12.5-57.1c2-9.1 9-16.3 18.2-17.8C227.3 1.2 241.5 0 256 0s28.7 1.2 42.5 3.5c9.2 1.5 16.2 8.7 18.2 17.8l12.5 57.1c15.8 6.5 30.6 15.1 44 25.4l55.7-17.7c8.8-2.8 18.6-.3 24.5 6.8c8.1 9.8 15.5 20.2 22.1 31.2l4.7 8.1c6.1 11 11.4 22.4 15.8 34.3zM256 336a80 80 0 1 0 0-160 80 80 0 1 0 0 160z"]},kP={prefix:"fas",iconName:"caret-down",icon:[320,512,[],"f0d7","M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z"]},jP={prefix:"fas",iconName:"ellipsis-vertical",icon:[128,512,["ellipsis-v"],"f142","M64 360a56 56 0 1 0 0 112 56 56 0 1 0 0-112zm0-160a56 56 0 1 0 0 112 56 56 0 1 0 0-112zM120 96A56 56 0 1 0 8 96a56 56 0 1 0 112 0z"]},SP={prefix:"fas",iconName:"arrow-right-arrow-left",icon:[448,512,[8644,"exchange"],"f0ec","M438.6 150.6c12.5-12.5 12.5-32.8 0-45.3l-96-96c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.7 96 32 96C14.3 96 0 110.3 0 128s14.3 32 32 32l306.7 0-41.4 41.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l96-96zm-333.3 352c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 416 416 416c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0 41.4-41.4c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-96 96c-12.5 12.5-12.5 32.8 0 45.3l96 96z"]},CP={prefix:"fas",iconName:"arrow-down-short-wide",icon:[576,512,["sort-amount-desc","sort-amount-down-alt"],"f884","M151.6 469.6C145.5 476.2 137 480 128 480s-17.5-3.8-23.6-10.4l-88-96c-11.9-13-11.1-33.3 2-45.2s33.3-11.1 45.2 2L96 365.7V64c0-17.7 14.3-32 32-32s32 14.3 32 32V365.7l32.4-35.4c11.9-13 32.2-13.9 45.2-2s13.9 32.2 2 45.2l-88 96zM320 32h32c17.7 0 32 14.3 32 32s-14.3 32-32 32H320c-17.7 0-32-14.3-32-32s14.3-32 32-32zm0 128h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H320c-17.7 0-32-14.3-32-32s14.3-32 32-32zm0 128H480c17.7 0 32 14.3 32 32s-14.3 32-32 32H320c-17.7 0-32-14.3-32-32s14.3-32 32-32zm0 128H544c17.7 0 32 14.3 32 32s-14.3 32-32 32H320c-17.7 0-32-14.3-32-32s14.3-32 32-32z"]},$P={prefix:"fas",iconName:"angle-down",icon:[448,512,[8964],"f107","M201.4 342.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 274.7 86.6 137.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"]},_P={prefix:"fas",iconName:"arrow-down",icon:[384,512,[8595],"f063","M169.4 470.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 370.8 224 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 306.7L54.6 265.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"]},OP={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},MP={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},AP={prefix:"fas",iconName:"copy",icon:[448,512,[],"f0c5","M208 0H332.1c12.7 0 24.9 5.1 33.9 14.1l67.9 67.9c9 9 14.1 21.2 14.1 33.9V336c0 26.5-21.5 48-48 48H208c-26.5 0-48-21.5-48-48V48c0-26.5 21.5-48 48-48zM48 128h80v64H64V448H256V416h64v48c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V176c0-26.5 21.5-48 48-48z"]},EP={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32V224H48c-17.7 0-32 14.3-32 32s14.3 32 32 32H192V432c0 17.7 14.3 32 32 32s32-14.3 32-32V288H400c17.7 0 32-14.3 32-32s-14.3-32-32-32H256V80z"]},PP={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},TP=PP,RP=PP,NP={prefix:"fas",iconName:"rotate",icon:[512,512,[128260,"sync-alt"],"f2f1","M142.9 142.9c62.2-62.2 162.7-62.5 225.3-1L327 183c-6.9 6.9-8.9 17.2-5.2 26.2s12.5 14.8 22.2 14.8H463.5c0 0 0 0 0 0H472c13.3 0 24-10.7 24-24V72c0-9.7-5.8-18.5-14.8-22.2s-19.3-1.7-26.2 5.2L413.4 96.6c-87.6-86.5-228.7-86.2-315.8 1C73.2 122 55.6 150.7 44.8 181.4c-5.9 16.7 2.9 34.9 19.5 40.8s34.9-2.9 40.8-19.5c7.7-21.8 20.2-42.3 37.8-59.8zM16 312v7.6 .7V440c0 9.7 5.8 18.5 14.8 22.2s19.3 1.7 26.2-5.2l41.6-41.6c87.6 86.5 228.7 86.2 315.8-1c24.4-24.4 42.1-53.1 52.9-83.7c5.9-16.7-2.9-34.9-19.5-40.8s-34.9 2.9-40.8 19.5c-7.7 21.8-20.2 42.3-37.8 59.8c-62.2 62.2-162.7 62.5-225.3 1L185 329c6.9-6.9 8.9-17.2 5.2-26.2s-12.5-14.8-22.2-14.8H48.4h-.7H40c-13.3 0-24 10.7-24 24z"]},IP={prefix:"fas",iconName:"up-right-and-down-left-from-center",icon:[512,512,["expand-alt"],"f424","M344 0H488c13.3 0 24 10.7 24 24V168c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39-87 87c-9.4 9.4-24.6 9.4-33.9 0l-32-32c-9.4-9.4-9.4-24.6 0-33.9l87-87L327 41c-6.9-6.9-8.9-17.2-5.2-26.2S334.3 0 344 0zM168 512H24c-13.3 0-24-10.7-24-24V344c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39 87-87c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8z"]},DP={prefix:"fas",iconName:"clone",icon:[512,512,[],"f24d","M288 448H64V224h64V160H64c-35.3 0-64 28.7-64 64V448c0 35.3 28.7 64 64 64H288c35.3 0 64-28.7 64-64V384H288v64zm-64-96H448c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64H224c-35.3 0-64 28.7-64 64V288c0 35.3 28.7 64 64 64z"]},zP={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]},BP={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480H40c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24V296c0 13.3 10.7 24 24 24s24-10.7 24-24V184c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},LP={},qP={showWizard:!0,showOriginal:!0},FP=Math.min,VP=Math.max,HP=Math.round,WP=Math.floor,UP=function(e){return{x:e,y:e}},JP={left:"right",right:"left",bottom:"top",top:"bottom"},KP={start:"end",end:"start"};function GP(e,t,n){return VP(e,FP(t,n))}function QP(e,t){return"function"==typeof e?e(t):e}function YP(e){return e.split("-")[0]}function XP(e){return e.split("-")[1]}function ZP(e){return"x"===e?"y":"x"}function eT(e){return"y"===e?"height":"width"}function tT(e){return["top","bottom"].includes(YP(e))?"y":"x"}function nT(e){return ZP(tT(e))}function rT(e,t,n){void 0===n&&(n=!1);var r=XP(e),o=nT(e),i=eT(o),a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=sT(a)),[a,sT(a)]}function oT(e){var t=sT(e);return[iT(e),t,iT(t)]}function iT(e){return e.replace(/start|end/g,(function(e){return KP[e]}))}function aT(e,t,n,r){var o=XP(e),i=function(e,t,n){var r=["left","right"],o=["right","left"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(YP(e),"start"===n,r);return o&&(i=i.map((function(e){return e+"-"+o})),t&&(i=i.concat(i.map(iT)))),i}function sT(e){return e.replace(/left|right|bottom|top/g,(function(e){return JP[e]}))}function cT(e){return"number"!=typeof e?function(e){return To({top:0,right:0,bottom:0,left:0},e)}(e):{top:e,right:e,bottom:e,left:e}}function uT(e){return To(To({},e),{},{top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height})}function lT(e,t,n){var r,o=e.reference,i=e.floating,a=tT(t),s=nT(t),c=eT(s),u=YP(t),l="y"===a,f=o.x+o.width/2-i.width/2,d=o.y+o.height/2-i.height/2,h=o[c]/2-i[c]/2;switch(u){case"top":r={x:f,y:o.y-i.height};break;case"bottom":r={x:f,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:d};break;case"left":r={x:o.x-i.width,y:d};break;default:r={x:o.x,y:o.y}}switch(XP(t)){case"start":r[s]-=h*(n&&l?-1:1);break;case"end":r[s]+=h*(n&&l?-1:1)}return r}var fT=function(){var e=ko(wo().mark((function e(t,n,r){var o,i,a,s,c,u,l,f,d,h,v,p,m,g,y,b,w,x,k,j,S,C,$,_,O,M;return wo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=r.placement,i=void 0===o?"bottom":o,a=r.strategy,s=void 0===a?"absolute":a,c=r.middleware,u=void 0===c?[]:c,l=r.platform,f=u.filter(Boolean),e.next=4,null==l.isRTL?void 0:l.isRTL(n);case 4:return d=e.sent,e.next=7,l.getElementRects({reference:t,floating:n,strategy:s});case 7:h=e.sent,v=lT(h,i,d),p=v.x,m=v.y,g=i,y={},b=0,w=0;case 13:if(!(w<f.length)){e.next=46;break}return x=f[w],k=x.name,j=x.fn,e.next=17,j({x:p,y:m,initialPlacement:i,placement:g,strategy:s,middlewareData:y,rects:h,platform:l,elements:{reference:t,floating:n}});case 17:if(S=e.sent,C=S.x,$=S.y,_=S.data,O=S.reset,p=null!=C?C:p,m=null!=$?$:m,y=To(To({},y),{},Do({},k,To(To({},y[k]),_))),!(O&&b<=50)){e.next=43;break}if(b++,"object"!==Vo(O)){e.next=41;break}if(O.placement&&(g=O.placement),!O.rects){e.next=38;break}if(!0!==O.rects){e.next=36;break}return e.next=33,l.getElementRects({reference:t,floating:n,strategy:s});case 33:e.t0=e.sent,e.next=37;break;case 36:e.t0=O.rects;case 37:h=e.t0;case 38:M=lT(h,g,d),p=M.x,m=M.y;case 41:return w=-1,e.abrupt("continue",43);case 43:w++,e.next=13;break;case 46:return e.abrupt("return",{x:p,y:m,placement:g,strategy:s,middlewareData:y});case 47:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}();function dT(e,t){return hT.apply(this,arguments)}function hT(){return hT=ko(wo().mark((function e(t,n){var r,o,i,a,s,c,u,l,f,d,h,v,p,m,g,y,b,w,x,k,j,S,C,$,_;return wo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return void 0===n&&(n={}),o=t.x,i=t.y,a=t.platform,s=t.rects,c=t.elements,u=t.strategy,l=QP(n,t),f=l.boundary,d=void 0===f?"clippingAncestors":f,h=l.rootBoundary,v=void 0===h?"viewport":h,p=l.elementContext,m=void 0===p?"floating":p,g=l.altBoundary,y=void 0!==g&&g,b=l.padding,w=cT(void 0===b?0:b),x="floating"===m?"reference":"floating",k=c[y?x:m],e.t0=uT,e.t1=a,e.next=10,null==a.isElement?void 0:a.isElement(k);case 10:if(e.t2=r=e.sent,null==e.t2){e.next=15;break}e.t3=r,e.next=16;break;case 15:e.t3=!0;case 16:if(!e.t3){e.next=20;break}e.t4=k,e.next=26;break;case 20:if(e.t5=k.contextElement,e.t5){e.next=25;break}return e.next=24,null==a.getDocumentElement?void 0:a.getDocumentElement(c.floating);case 24:e.t5=e.sent;case 25:e.t4=e.t5;case 26:return e.t6=e.t4,e.t7=d,e.t8=v,e.t9=u,e.t10={element:e.t6,boundary:e.t7,rootBoundary:e.t8,strategy:e.t9},e.next=33,e.t1.getClippingRect.call(e.t1,e.t10);case 33:return e.t11=e.sent,j=(0,e.t0)(e.t11),S="floating"===m?To(To({},s.floating),{},{x:o,y:i}):s.reference,e.next=38,null==a.getOffsetParent?void 0:a.getOffsetParent(c.floating);case 38:return C=e.sent,e.next=41,null==a.isElement?void 0:a.isElement(C);case 41:if(!e.sent){e.next=50;break}return e.next=44,null==a.getScale?void 0:a.getScale(C);case 44:if(e.t13=e.sent,e.t13){e.next=47;break}e.t13={x:1,y:1};case 47:e.t12=e.t13,e.next=51;break;case 50:e.t12={x:1,y:1};case 51:if($=e.t12,e.t14=uT,!a.convertOffsetParentRelativeRectToViewportRelativeRect){e.next=59;break}return e.next=56,a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:S,offsetParent:C,strategy:u});case 56:e.t15=e.sent,e.next=60;break;case 59:e.t15=S;case 60:return e.t16=e.t15,_=(0,e.t14)(e.t16),e.abrupt("return",{top:(j.top-_.top+w.top)/$.y,bottom:(_.bottom-j.bottom+w.bottom)/$.y,left:(j.left-_.left+w.left)/$.x,right:(_.right-j.right+w.right)/$.x});case 63:case"end":return e.stop()}}),e)}))),hT.apply(this,arguments)}function vT(e,t){return pT.apply(this,arguments)}function pT(){return pT=ko(wo().mark((function e(t,n){var r,o,i,a,s,c,u,l,f,d,h,v,p,m;return wo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.placement,o=t.platform,i=t.elements,e.next=3,null==o.isRTL?void 0:o.isRTL(i.floating);case 3:return a=e.sent,s=YP(r),c=XP(r),u="y"===tT(r),l=["left","top"].includes(s)?-1:1,f=a&&u?-1:1,d=QP(n,t),h="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:To({mainAxis:0,crossAxis:0,alignmentAxis:null},d),v=h.mainAxis,p=h.crossAxis,m=h.alignmentAxis,c&&"number"==typeof m&&(p="end"===c?-1*m:m),e.abrupt("return",u?{x:p*f,y:v*l}:{x:v*l,y:p*f});case 13:case"end":return e.stop()}}),e)}))),pT.apply(this,arguments)}function mT(e){return bT(e)?(e.nodeName||"").toLowerCase():"#document"}function gT(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function yT(e){var t;return null==(t=(bT(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function bT(e){return e instanceof Node||e instanceof gT(e).Node}function wT(e){return e instanceof Element||e instanceof gT(e).Element}function xT(e){return e instanceof HTMLElement||e instanceof gT(e).HTMLElement}function kT(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof gT(e).ShadowRoot)}function jT(e){var t=OT(e),n=t.overflow,r=t.overflowX,o=t.overflowY,i=t.display;return/auto|scroll|overlay|hidden|clip/.test(n+o+r)&&!["inline","contents"].includes(i)}function ST(e){return["table","td","th"].includes(mT(e))}function CT(e){var t=$T(),n=OT(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((function(e){return(n.willChange||"").includes(e)}))||["paint","layout","strict","content"].some((function(e){return(n.contain||"").includes(e)}))}function $T(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function _T(e){return["html","body","#document"].includes(mT(e))}function OT(e){return gT(e).getComputedStyle(e)}function MT(e){return wT(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function AT(e){if("html"===mT(e))return e;var t=e.assignedSlot||e.parentNode||kT(e)&&e.host||yT(e);return kT(t)?t.host:t}function ET(e){var t=AT(e);return _T(t)?e.ownerDocument?e.ownerDocument.body:e.body:xT(t)&&jT(t)?t:ET(t)}function PT(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);var o=ET(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=gT(o);return i?t.concat(a,a.visualViewport||[],jT(o)?o:[],a.frameElement&&n?PT(a.frameElement):[]):t.concat(o,PT(o,[],n))}function TT(e){var t=OT(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=xT(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=HP(n)!==i||HP(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function RT(e){return wT(e)?e:e.contextElement}function NT(e){var t=RT(e);if(!xT(t))return UP(1);var n=t.getBoundingClientRect(),r=TT(t),o=r.width,i=r.height,a=r.$,s=(a?HP(n.width):n.width)/o,c=(a?HP(n.height):n.height)/i;return s&&Number.isFinite(s)||(s=1),c&&Number.isFinite(c)||(c=1),{x:s,y:c}}var IT=UP(0);function DT(e){var t=gT(e);return $T()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:IT}function zT(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);var o=e.getBoundingClientRect(),i=RT(e),a=UP(1);t&&(r?wT(r)&&(a=NT(r)):a=NT(e));var s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==gT(e))&&t}(i,n,r)?DT(i):UP(0),c=(o.left+s.x)/a.x,u=(o.top+s.y)/a.y,l=o.width/a.x,f=o.height/a.y;if(i)for(var d=gT(i),h=r&&wT(r)?gT(r):r,v=d.frameElement;v&&r&&h!==d;){var p=NT(v),m=v.getBoundingClientRect(),g=OT(v),y=m.left+(v.clientLeft+parseFloat(g.paddingLeft))*p.x,b=m.top+(v.clientTop+parseFloat(g.paddingTop))*p.y;c*=p.x,u*=p.y,l*=p.x,f*=p.y,c+=y,u+=b,v=gT(v).frameElement}return uT({width:l,height:f,x:c,y:u})}function BT(e){return zT(yT(e)).left+MT(e).scrollLeft}function LT(e,t,n){var r;if("viewport"===t)r=function(e,t){var n=gT(e),r=yT(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;var u=$T();(!u||u&&"fixed"===t)&&(s=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:s,y:c}}(e,n);else if("document"===t)r=function(e){var t=yT(e),n=MT(e),r=e.ownerDocument.body,o=VP(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=VP(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-n.scrollLeft+BT(e),s=-n.scrollTop;return"rtl"===OT(r).direction&&(a+=VP(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(yT(e));else if(wT(t))r=function(e,t){var n=zT(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=xT(e)?NT(e):UP(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{var o=DT(e);r=To(To({},t),{},{x:t.x-o.x,y:t.y-o.y})}return uT(r)}function qT(e,t){var n=AT(e);return!(n===t||!wT(n)||_T(n))&&("fixed"===OT(n).position||qT(n,t))}function FT(e,t,n){var r=xT(t),o=yT(t),i="fixed"===n,a=zT(e,!0,i,t),s={scrollLeft:0,scrollTop:0},c=UP(0);if(r||!r&&!i)if(("body"!==mT(t)||jT(o))&&(s=MT(t)),r){var u=zT(t,!0,i,t);c.x=u.x+t.clientLeft,c.y=u.y+t.clientTop}else o&&(c.x=BT(o));return{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function VT(e,t){return xT(e)&&"fixed"!==OT(e).position?t?t(e):e.offsetParent:null}function HT(e,t){var n=gT(e);if(!xT(e))return n;for(var r=VT(e,t);r&&ST(r)&&"static"===OT(r).position;)r=VT(r,t);return r&&("html"===mT(r)||"body"===mT(r)&&"static"===OT(r).position&&!CT(r))?n:r||function(e){for(var t=AT(e);xT(t)&&!_T(t);){if(CT(t))return t;t=AT(t)}return null}(e)||n}var WT={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){var t=e.rect,n=e.offsetParent,r=e.strategy,o=xT(n),i=yT(n);if(n===i)return t;var a={scrollLeft:0,scrollTop:0},s=UP(1),c=UP(0);if((o||!o&&"fixed"!==r)&&(("body"!==mT(n)||jT(i))&&(a=MT(n)),xT(n))){var u=zT(n);s=NT(n),c.x=u.x+n.clientLeft,c.y=u.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-a.scrollLeft*s.x+c.x,y:t.y*s.y-a.scrollTop*s.y+c.y}},getDocumentElement:yT,getClippingRect:function(e){var t=e.element,n=e.boundary,r=e.rootBoundary,o=e.strategy,i="clippingAncestors"===n?function(e,t){var n=t.get(e);if(n)return n;for(var r=PT(e,[],!1).filter((function(e){return wT(e)&&"body"!==mT(e)})),o=null,i="fixed"===OT(e).position,a=i?AT(e):e;wT(a)&&!_T(a);){var s=OT(a),c=CT(a);c||"fixed"!==s.position||(o=null),(i?!c&&!o:!c&&"static"===s.position&&o&&["absolute","fixed"].includes(o.position)||jT(a)&&!c&&qT(e,a))?r=r.filter((function(e){return e!==a})):o=s,a=AT(a)}return t.set(e,r),r}(t,this._c):[].concat(n),a=[].concat(Bo(i),[r]),s=a[0],c=a.reduce((function(e,n){var r=LT(t,n,o);return e.top=VP(r.top,e.top),e.right=FP(r.right,e.right),e.bottom=FP(r.bottom,e.bottom),e.left=VP(r.left,e.left),e}),LT(t,s,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:HT,getElementRects:function(){var e=ko(wo().mark((function e(t){var n,r,o,i,a;return wo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.reference,r=t.floating,o=t.strategy,i=this.getOffsetParent||HT,a=this.getDimensions,e.t0=FT,e.t1=n,e.next=7,i(r);case 7:return e.t2=e.sent,e.t3=o,e.t4=(0,e.t0)(e.t1,e.t2,e.t3),e.t5=To,e.t6={x:0,y:0},e.next=14,a(r);case 14:return e.t7=e.sent,e.t8=(0,e.t5)(e.t6,e.t7),e.abrupt("return",{reference:e.t4,floating:e.t8});case 17:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){var t=TT(e);return{width:t.width,height:t.height}},getScale:NT,isElement:wT,isRTL:function(e){return"rtl"===OT(e).direction}};function UT(e,t,n,r){void 0===r&&(r={});var o=r,i=o.ancestorScroll,a=void 0===i||i,s=o.ancestorResize,c=void 0===s||s,u=o.elementResize,l=void 0===u?"function"==typeof ResizeObserver:u,f=o.layoutShift,d=void 0===f?"function"==typeof IntersectionObserver:f,h=o.animationFrame,v=void 0!==h&&h,p=RT(e),m=a||c?[].concat(Bo(p?PT(p):[]),Bo(PT(t))):[];m.forEach((function(e){a&&e.addEventListener("scroll",n,{passive:!0}),c&&e.addEventListener("resize",n)}));var g,y=p&&d?function(e,t){var n,r=null,o=yT(e);function i(){clearTimeout(n),r&&r.disconnect(),r=null}return function a(s,c){void 0===s&&(s=!1),void 0===c&&(c=1),i();var u=e.getBoundingClientRect(),l=u.left,f=u.top,d=u.width,h=u.height;if(s||t(),d&&h){var v={rootMargin:-WP(f)+"px "+-WP(o.clientWidth-(l+d))+"px "+-WP(o.clientHeight-(f+h))+"px "+-WP(l)+"px",threshold:VP(0,FP(1,c))||1},p=!0;try{r=new IntersectionObserver(m,To(To({},v),{},{root:o.ownerDocument}))}catch(e){r=new IntersectionObserver(m,v)}r.observe(e)}function m(e){var t=e[0].intersectionRatio;if(t!==c){if(!p)return a();t?a(!1,t):n=setTimeout((function(){a(!1,1e-7)}),100)}p=!1}}(!0),i}(p,n):null,b=-1,w=null;l&&(w=new ResizeObserver((function(e){var r=jo(e,1)[0];r&&r.target===p&&w&&(w.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame((function(){w&&w.observe(t)}))),n()})),p&&!v&&w.observe(p),w.observe(t));var x=v?zT(e):null;return v&&function t(){var r=zT(e);!x||r.x===x.x&&r.y===x.y&&r.width===x.width&&r.height===x.height||n();x=r,g=requestAnimationFrame(t)}(),n(),function(){m.forEach((function(e){a&&e.removeEventListener("scroll",n),c&&e.removeEventListener("resize",n)})),y&&y(),w&&w.disconnect(),w=null,v&&cancelAnimationFrame(g)}}var JT=function(e){return void 0===e&&(e={}),{name:"shift",options:e,fn:function(t){return ko(wo().mark((function n(){var r,o,i,a,s,c,u,l,f,d,h,v,p,m,g,y,b,w,x,k,j,S,C,$;return wo().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=t.x,o=t.y,i=t.placement,a=QP(e,t),s=a.mainAxis,c=void 0===s||s,u=a.crossAxis,l=void 0!==u&&u,f=a.limiter,d=void 0===f?{fn:function(e){return{x:e.x,y:e.y}}}:f,h=yo(a,po),v={x:r,y:o},n.next=5,dT(t,h);case 5:return p=n.sent,m=tT(YP(i)),g=ZP(m),y=v[g],b=v[m],c&&(w="y"===g?"bottom":"right",x=y+p["y"===g?"top":"left"],k=y-p[w],y=GP(x,y,k)),l&&(j="y"===m?"bottom":"right",S=b+p["y"===m?"top":"left"],C=b-p[j],b=GP(S,b,C)),$=d.fn(To(To({},t),{},Do(Do({},g,y),m,b))),n.abrupt("return",To(To({},$),{},{data:{x:$.x-r,y:$.y-o}}));case 14:case"end":return n.stop()}}),n)})))()}}},KT=function(e){return void 0===e&&(e={}),{name:"flip",options:e,fn:function(t){return ko(wo().mark((function n(){var r,o,i,a,s,c,u,l,f,d,h,v,p,m,g,y,b,w,x,k,j,S,C,$,_,O,M,A,E,P,T,R,N,I,D,z,B;return wo().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(i=t.placement,a=t.middlewareData,s=t.rects,c=t.initialPlacement,u=t.platform,l=t.elements,f=QP(e,t),d=f.mainAxis,h=void 0===d||d,v=f.crossAxis,p=void 0===v||v,m=f.fallbackPlacements,g=f.fallbackStrategy,y=void 0===g?"bestFit":g,b=f.fallbackAxisSideDirection,w=void 0===b?"none":b,x=f.flipAlignment,k=void 0===x||x,j=yo(f,vo),null==(r=a.arrow)||!r.alignmentOffset){n.next=4;break}return n.abrupt("return",{});case 4:return S=YP(i),C=YP(c)===c,n.next=8,null==u.isRTL?void 0:u.isRTL(l.floating);case 8:return $=n.sent,_=m||(C||!k?[sT(c)]:oT(c)),m||"none"===w||_.push.apply(_,Bo(aT(c,k,w,$))),O=[c].concat(Bo(_)),n.next=14,dT(t,j);case 14:if(M=n.sent,A=[],E=(null==(o=a.flip)?void 0:o.overflows)||[],h&&A.push(M[S]),p&&(P=rT(i,s,$),A.push(M[P[0]],M[P[1]])),E=[].concat(Bo(E),[{placement:i,overflows:A}]),A.every((function(e){return e<=0}))){n.next=37;break}if(N=((null==(T=a.flip)?void 0:T.index)||0)+1,!(I=O[N])){n.next=25;break}return n.abrupt("return",{data:{index:N,overflows:E},reset:{placement:I}});case 25:if(D=null==(R=E.filter((function(e){return e.overflows[0]<=0})).sort((function(e,t){return e.overflows[1]-t.overflows[1]}))[0])?void 0:R.placement){n.next=35;break}n.t0=y,n.next="bestFit"===n.t0?30:"initialPlacement"===n.t0?33:35;break;case 30:return B=null==(z=E.map((function(e){return[e.placement,e.overflows.filter((function(e){return e>0})).reduce((function(e,t){return e+t}),0)]})).sort((function(e,t){return e[1]-t[1]}))[0])?void 0:z[0],B&&(D=B),n.abrupt("break",35);case 33:return D=c,n.abrupt("break",35);case 35:if(i===D){n.next=37;break}return n.abrupt("return",{reset:{placement:D}});case 37:return n.abrupt("return",{});case 38:case"end":return n.stop()}}),n)})))()}}},GT=function(e,t,n){var r=new Map,o=To({platform:WT},n),i=To(To({},o.platform),{},{_c:r});return fT(e,t,To(To({},o),{},{platform:i}))};function QT(e){var t=e.loadOptions,n=e.filterText,r=e.items,o=e.multiple,i=e.value,a=e.itemId,s=e.groupBy,c=e.filterSelectedItems,u=e.itemFilter,l=e.convertStringItemsToObjects,f=e.filterGroupedItems,d=e.label;if(r&&t)return r;if(!r)return[];r&&r.length>0&&"object"!==Vo(r[0])&&(r=l(r));var h=r.filter((function(e){var t=u(e[d],n,e);return t&&o&&null!=i&&i.length&&(t=!i.some((function(t){return!!c&&t[a]===e[a]}))),t}));return s&&(h=f(h)),h}function YT(e){return XT.apply(this,arguments)}function XT(){return XT=ko(wo().mark((function e(t){var n,r,o,i,a;return wo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.dispatch,r=t.loadOptions,o=t.convertStringItemsToObjects,i=t.filterText,e.next=3,r(i).catch((function(e){console.warn("svelte-select loadOptions error :>> ",e),n("error",{type:"loadOptions",details:e})}));case 3:if(!(a=e.sent)||a.cancelled){e.next=7;break}return a?(a&&a.length>0&&"object"!==Vo(a[0])&&(a=o(a)),n("loaded",{items:a})):a=[],e.abrupt("return",{filteredItems:a,loading:!1,focused:!0,listOpen:!0});case 7:case"end":return e.stop()}}),e)}))),XT.apply(this,arguments)}function ZT(e){pi(e,"svelte-qbd276","svg.svelte-qbd276{width:var(--chevron-icon-width, 20px);height:var(--chevron-icon-width, 20px);color:var(--chevron-icon-colour, currentColor)}")}function eR(e){var t,n;return{c:function(){t=ji("svg"),Ai(n=ji("path"),"fill","currentColor"),Ai(n,"d","M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747\n          3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0\n          1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502\n          0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0\n          0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"),Ai(t,"width","100%"),Ai(t,"height","100%"),Ai(t,"viewBox","0 0 20 20"),Ai(t,"focusable","false"),Ai(t,"aria-hidden","true"),Ai(t,"class","svelte-qbd276")},m:function(e,r){bi(e,t,r),vi(t,n)},p:Ho,i:Ho,o:Ho,d:function(e){e&&wi(t)}}}var tR=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,null,eR,Yo,{},ZT),n}return Ao(t,Na),Io(t)}();function nR(e){pi(e,"svelte-whdbu1","svg.svelte-whdbu1{width:var(--clear-icon-width, 20px);height:var(--clear-icon-width, 20px);color:var(--clear-icon-color, currentColor)}")}function rR(e){var t,n;return{c:function(){t=ji("svg"),Ai(n=ji("path"),"fill","currentColor"),Ai(n,"d","M34.923,37.251L24,26.328L13.077,37.251L9.436,33.61l10.923-10.923L9.436,11.765l3.641-3.641L24,19.047L34.923,8.124\n    l3.641,3.641L27.641,22.688L38.564,33.61L34.923,37.251z"),Ai(t,"width","100%"),Ai(t,"height","100%"),Ai(t,"viewBox","-2 -2 50 50"),Ai(t,"focusable","false"),Ai(t,"aria-hidden","true"),Ai(t,"role","presentation"),Ai(t,"class","svelte-whdbu1")},m:function(e,r){bi(e,t,r),vi(t,n)},p:Ho,i:Ho,o:Ho,d:function(e){e&&wi(t)}}}var oR=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,null,rR,Yo,{},nR),n}return Ao(t,Na),Io(t)}();function iR(e){pi(e,"svelte-1p3nqvd",".loading.svelte-1p3nqvd{width:var(--spinner-width, 20px);height:var(--spinner-height, 20px);color:var(--spinner-color, var(--icons-color));animation:svelte-1p3nqvd-rotate 0.75s linear infinite;transform-origin:center center;transform:none}.circle_path.svelte-1p3nqvd{stroke-dasharray:90;stroke-linecap:round}@keyframes svelte-1p3nqvd-rotate{100%{transform:rotate(360deg)}}")}function aR(e){var t,n;return{c:function(){t=ji("svg"),Ai(n=ji("circle"),"class","circle_path svelte-1p3nqvd"),Ai(n,"cx","50"),Ai(n,"cy","50"),Ai(n,"r","20"),Ai(n,"fill","none"),Ai(n,"stroke","currentColor"),Ai(n,"stroke-width","5"),Ai(n,"stroke-miterlimit","10"),Ai(t,"class","loading svelte-1p3nqvd"),Ai(t,"viewBox","25 25 50 50")},m:function(e,r){bi(e,t,r),vi(t,n)},p:Ho,i:Ho,o:Ho,d:function(e){e&&wi(t)}}}var sR=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,null,aR,Yo,{},iR),n}return Ao(t,Na),Io(t)}();function cR(e){pi(e,"svelte-82qwg8",".svelte-select.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{--borderRadius:var(--border-radius);--clearSelectColor:var(--clear-select-color);--clearSelectWidth:var(--clear-select-width);--disabledBackground:var(--disabled-background);--disabledBorderColor:var(--disabled-border-color);--disabledColor:var(--disabled-color);--disabledPlaceholderColor:var(--disabled-placeholder-color);--disabledPlaceholderOpacity:var(--disabled-placeholder-opacity);--errorBackground:var(--error-background);--errorBorder:var(--error-border);--groupItemPaddingLeft:var(--group-item-padding-left);--groupTitleColor:var(--group-title-color);--groupTitleFontSize:var(--group-title-font-size);--groupTitleFontWeight:var(--group-title-font-weight);--groupTitlePadding:var(--group-title-padding);--groupTitleTextTransform:var(--group-title-text-transform);--groupTitleBorderColor:var(--group-title-border-color);--groupTitleBorderWidth:var(--group-title-border-width);--groupTitleBorderStyle:var(--group-title-border-style);--indicatorColor:var(--chevron-color);--indicatorHeight:var(--chevron-height);--indicatorWidth:var(--chevron-width);--inputColor:var(--input-color);--inputLeft:var(--input-left);--inputLetterSpacing:var(--input-letter-spacing);--inputMargin:var(--input-margin);--inputPadding:var(--input-padding);--itemActiveBackground:var(--item-active-background);--itemColor:var(--item-color);--itemFirstBorderRadius:var(--item-first-border-radius);--itemHoverBG:var(--item-hover-bg);--itemHoverColor:var(--item-hover-color);--itemIsActiveBG:var(--item-is-active-bg);--itemIsActiveColor:var(--item-is-active-color);--itemIsNotSelectableColor:var(--item-is-not-selectable-color);--itemPadding:var(--item-padding);--listBackground:var(--list-background);--listBorder:var(--list-border);--listBorderRadius:var(--list-border-radius);--listEmptyColor:var(--list-empty-color);--listEmptyPadding:var(--list-empty-padding);--listEmptyTextAlign:var(--list-empty-text-align);--listMaxHeight:var(--list-max-height);--listPosition:var(--list-position);--listShadow:var(--list-shadow);--listZIndex:var(--list-z-index);--multiItemBG:var(--multi-item-bg);--multiItemBorderRadius:var(--multi-item-border-radius);--multiItemDisabledHoverBg:var(--multi-item-disabled-hover-bg);--multiItemDisabledHoverColor:var(--multi-item-disabled-hover-color);--multiItemHeight:var(--multi-item-height);--multiItemMargin:var(--multi-item-margin);--multiItemPadding:var(--multi-item-padding);--multiSelectInputMargin:var(--multi-select-input-margin);--multiSelectInputPadding:var(--multi-select-input-padding);--multiSelectPadding:var(--multi-select-padding);--placeholderColor:var(--placeholder-color);--placeholderOpacity:var(--placeholder-opacity);--selectedItemPadding:var(--selected-item-padding);--spinnerColor:var(--spinner-color);--spinnerHeight:var(--spinner-height);--spinnerWidth:var(--spinner-width);--internal-padding:0 0 0 16px;border:var(--border, 1px solid #d8dbdf);border-radius:var(--border-radius, 6px);min-height:var(--height, 42px);position:relative;display:flex;align-items:stretch;padding:var(--padding, var(--internal-padding));background:var(--background, #fff);margin:var(--margin, 0);width:var(--width, 100%);font-size:var(--font-size, 16px);max-height:var(--max-height)}.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{box-sizing:var(--box-sizing, border-box)}.svelte-select.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8:hover{border:var(--border-hover, 1px solid #b2b8bf)}.value-container.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{display:flex;flex:1 1 0%;flex-wrap:wrap;align-items:center;gap:5px 10px;padding:var(--value-container-padding, 5px 0);position:relative;overflow:var(--value-container-overflow, hidden);align-self:stretch}.prepend.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8,.indicators.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{display:flex;flex-shrink:0;align-items:center}.indicators.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{position:var(--indicators-position);top:var(--indicators-top);right:var(--indicators-right);bottom:var(--indicators-bottom)}input.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{position:absolute;cursor:default;border:none;color:var(--input-color, var(--item-color));padding:var(--input-padding, 0);letter-spacing:var(--input-letter-spacing, inherit);margin:var(--input-margin, 0);min-width:10px;top:0;right:0;bottom:0;left:0;background:transparent;font-size:var(--font-size, 16px)}.svelte-82qwg8:not(.multi)>.value-container.svelte-82qwg8>input.svelte-82qwg8{width:100%;height:100%}input.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8::placeholder{color:var(--placeholder-color, #78848f);opacity:var(--placeholder-opacity, 1)}input.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8:focus{outline:none}.svelte-select.focused.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{border:var(--border-focused, 1px solid #006fe8);border-radius:var(--border-radius-focused, var(--border-radius, 6px))}.disabled.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{background:var(--disabled-background, #ebedef);border-color:var(--disabled-border-color, #ebedef);color:var(--disabled-color, #c1c6cc)}.disabled.svelte-82qwg8 input.svelte-82qwg8.svelte-82qwg8::placeholder{color:var(--disabled-placeholder-color, #c1c6cc);opacity:var(--disabled-placeholder-opacity, 1)}.selected-item.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{position:relative;overflow:var(--selected-item-overflow, hidden);padding:var(--selected-item-padding, 0 20px 0 0);text-overflow:ellipsis;white-space:nowrap;color:var(--selected-item-color, inherit);font-size:var(--font-size, 16px)}.multi.svelte-82qwg8 .selected-item.svelte-82qwg8.svelte-82qwg8{position:absolute;line-height:var(--height, 42px);height:var(--height, 42px)}.selected-item.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8:focus{outline:none}.hide-selected-item.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{opacity:0}.icon.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{display:flex;align-items:center;justify-content:center}.clear-select.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{all:unset;display:flex;align-items:center;justify-content:center;width:var(--clear-select-width, 40px);height:var(--clear-select-height, 100%);color:var(--clear-select-color, var(--icons-color));margin:var(--clear-select-margin, 0);pointer-events:all;flex-shrink:0}.clear-select.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8:focus{outline:var(--clear-select-focus-outline, 1px solid #006fe8)}.loading.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{width:var(--loading-width, 40px);height:var(--loading-height);color:var(--loading-color, var(--icons-color));margin:var(--loading--margin, 0);flex-shrink:0}.chevron.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{width:var(--chevron-width, 40px);height:var(--chevron-height, 40px);background:var(--chevron-background, transparent);pointer-events:var(--chevron-pointer-events, none);color:var(--chevron-color, var(--icons-color));border:var(--chevron-border, 0 0 0 1px solid #d8dbdf);flex-shrink:0}.multi.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{padding:var(--multi-select-padding, var(--internal-padding))}.multi.svelte-82qwg8 input.svelte-82qwg8.svelte-82qwg8{padding:var(--multi-select-input-padding, 0);position:relative;margin:var(--multi-select-input-margin, 5px 0);flex:1 1 40px}.svelte-select.error.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{border:var(--error-border, 1px solid #ff2d55);background:var(--error-background, #fff)}.a11y-text.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{z-index:9999;border:0px;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0px;white-space:nowrap}.multi-item.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{background:var(--multi-item-bg, #ebedef);margin:var(--multi-item-margin, 0);outline:var(--multi-item-outline, 1px solid #ddd);border-radius:var(--multi-item-border-radius, 4px);height:var(--multi-item-height, 25px);line-height:var(--multi-item-height, 25px);display:flex;cursor:default;padding:var(--multi-item-padding, 0 5px);overflow:hidden;gap:var(--multi-item-gap, 4px);outline-offset:-1px;max-width:var(--multi-max-width, none);color:var(--multi-item-color, var(--item-color))}.multi-item.disabled.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8:hover{background:var(--multi-item-disabled-hover-bg, #ebedef);color:var(--multi-item-disabled-hover-color, #c1c6cc)}.multi-item-text.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.multi-item-clear.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{display:flex;align-items:center;justify-content:center;--clear-icon-color:var(--multi-item-clear-icon-color, #000)}.multi-item.active.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{outline:var(--multi-item-active-outline, 1px solid #006fe8)}.svelte-select-list.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{box-shadow:var(--list-shadow, 0 2px 3px 0 rgba(44, 62, 80, 0.24));border-radius:var(--list-border-radius, 4px);max-height:var(--list-max-height, 252px);overflow-y:auto;background:var(--list-background, #fff);position:var(--list-position, absolute);z-index:var(--list-z-index, 2);border:var(--list-border)}.prefloat.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{opacity:0;pointer-events:none}.list-group-title.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{color:var(--group-title-color, #8f8f8f);cursor:default;font-size:var(--group-title-font-size, 16px);font-weight:var(--group-title-font-weight, 600);height:var(--height, 42px);line-height:var(--height, 42px);padding:var(--group-title-padding, 0 20px);text-overflow:ellipsis;overflow-x:hidden;white-space:nowrap;text-transform:var(--group-title-text-transform, uppercase);border-width:var(--group-title-border-width, medium);border-style:var(--group-title-border-style, none);border-color:var(--group-title-border-color, color)}.empty.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{text-align:var(--list-empty-text-align, center);padding:var(--list-empty-padding, 20px 0);color:var(--list-empty-color, #78848f)}.item.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{cursor:default;height:var(--item-height, var(--height, 42px));line-height:var(--item-line-height, var(--height, 42px));padding:var(--item-padding, 0 20px);color:var(--item-color, inherit);text-overflow:ellipsis;overflow:hidden;white-space:nowrap;transition:var(--item-transition, all 0.2s);align-items:center;width:100%}.item.group-item.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{padding-left:var(--group-item-padding-left, 40px)}.item.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8:active{background:var(--item-active-background, #b9daff)}.item.active.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{background:var(--item-is-active-bg, #007aff);color:var(--item-is-active-color, #fff)}.item.first.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{border-radius:var(--item-first-border-radius, 4px 4px 0 0)}.item.hover.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8:not(.active){background:var(--item-hover-bg, #e7f2ff);color:var(--item-hover-color, inherit)}.item.not-selectable.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8,.item.hover.item.not-selectable.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8,.item.active.item.not-selectable.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8,.item.not-selectable.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8:active{color:var(--item-is-not-selectable-color, #999);background:transparent}.required.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{opacity:0;z-index:-1;position:absolute;top:0;left:0;bottom:0;right:0}")}var uR=function(e){return{value:8&e[0]}},lR=function(e){return{value:e[3]}},fR=function(e){return{value:8&e[0]}},dR=function(e){return{value:e[3]}},hR=function(e){return{listOpen:64&e[0]}},vR=function(e){return{listOpen:e[6]}},pR=function(e){return{}},mR=function(e){return{}},gR=function(e){return{}},yR=function(e){return{}},bR=function(e){return{selection:8&e[0]}},wR=function(e){return{selection:e[3]}};function xR(e,t,n){var r=e.slice();return r[126]=t[n],r[128]=n,r}var kR=function(e){return{}},jR=function(e){return{}},SR=function(e){return{selection:8&e[0]}},CR=function(e){return{selection:e[126],index:e[128]}},$R=function(e){return{}},_R=function(e){return{}},OR=function(e){return{}},MR=function(e){return{}},AR=function(e){return{}},ER=function(e){return{}};function PR(e,t,n){var r=e.slice();return r[126]=t[n],r[128]=n,r}var TR=function(e){return{item:16777216&e[0]}},RR=function(e){return{item:e[126],index:e[128]}},NR=function(e){return{filteredItems:16777216&e[0]}},IR=function(e){return{filteredItems:e[24]}},DR=function(e){return{}},zR=function(e){return{}};function BR(e){var t,n,r,o,i,a,s,c,u=e[50]["list-prepend"]&&LR(e),l=[VR,FR,qR],f=[];function d(e,t){return e[50].list?0:e[24].length>0?1:e[19]?-1:2}~(r=d(e))&&(o=f[r]=l[r](e));var h=e[50]["list-append"]&&WR(e);return{c:function(){t=ki("div"),u&&u.c(),n=Ci(),o&&o.c(),i=Ci(),h&&h.c(),Ai(t,"class","svelte-select-list svelte-82qwg8"),Ai(t,"role","none"),zi(t,"prefloat",e[28])},m:function(o,l){bi(o,t,l),u&&u.m(t,null),vi(t,n),~r&&f[r].m(t,null),vi(t,i),h&&h.m(t,null),e[91](t),a=!0,s||(c=[si(e[49].call(null,t)),_i(t,"scroll",e[41]),_i(t,"pointerup",Mi(Oi(e[85]))),_i(t,"mousedown",Mi(Oi(e[86])))],s=!0)},p:function(e,s){e[50]["list-prepend"]?u?(u.p(e,s),524288&s[1]&&wa(u,1)):((u=LR(e)).c(),wa(u,1),u.m(t,n)):u&&(ya(),xa(u,1,1,(function(){u=null})),ba());var c=r;(r=d(e))===c?~r&&f[r].p(e,s):(o&&(ya(),xa(f[c],1,1,(function(){f[c]=null})),ba()),~r?((o=f[r])?o.p(e,s):(o=f[r]=l[r](e)).c(),wa(o,1),o.m(t,i)):o=null),e[50]["list-append"]?h?(h.p(e,s),524288&s[1]&&wa(h,1)):((h=WR(e)).c(),wa(h,1),h.m(t,null)):h&&(ya(),xa(h,1,1,(function(){h=null})),ba()),(!a||268435456&s[0])&&zi(t,"prefloat",e[28])},i:function(e){a||(wa(u),wa(o),wa(h),a=!0)},o:function(e){xa(u),xa(o),xa(h),a=!1},d:function(n){n&&wi(t),u&&u.d(),~r&&f[r].d(),h&&h.d(),e[91](null),s=!1,Go(c)}}}function LR(e){var t,n=e[83]["list-prepend"],r=Zo(n,e,e[82],zR);return{c:function(){r&&r.c()},m:function(e,n){r&&r.m(e,n),t=!0},p:function(e,o){r&&r.p&&(!t||1048576&o[2])&&ni(r,n,e,e[82],t?ti(n,e[82],o,DR):ri(e[82]),zR)},i:function(e){t||(wa(r,e),t=!0)},o:function(e){xa(r,e),t=!1},d:function(e){r&&r.d(e)}}}function qR(e){var t,n,r=e[83].empty,o=Zo(r,e,e[82],ER),i=o||{c:function(){(n=ki("div")).textContent="No options",Ai(n,"class","empty svelte-82qwg8")},m:function(e,t){bi(e,n,t)},p:Ho,d:function(e){e&&wi(n)}};return{c:function(){i&&i.c()},m:function(e,n){i&&i.m(e,n),t=!0},p:function(e,n){o&&o.p&&(!t||1048576&n[2])&&ni(o,r,e,e[82],t?ti(r,e[82],n,AR):ri(e[82]),ER)},i:function(e){t||(wa(i,e),t=!0)},o:function(e){xa(i,e),t=!1},d:function(e){i&&i.d(e)}}}function FR(e){for(var t,n,r=Sa(e[24]),o=[],i=0;i<r.length;i+=1)o[i]=HR(PR(e,r,i));var a=function(e){return xa(o[e],1,1,(function(){o[e]=null}))};return{c:function(){for(var e=0;e<o.length;e+=1)o[e].c();t=$i()},m:function(e,r){for(var i=0;i<o.length;i+=1)o[i]&&o[i].m(e,r);bi(e,t,r),n=!0},p:function(e,n){if(1627402376&n[0]|28672&n[1]|1048576&n[2]){var i;for(r=Sa(e[24]),i=0;i<r.length;i+=1){var s=PR(e,r,i);o[i]?(o[i].p(s,n),wa(o[i],1)):(o[i]=HR(s),o[i].c(),wa(o[i],1),o[i].m(t.parentNode,t))}for(ya(),i=r.length;i<o.length;i+=1)a(i);ba()}},i:function(e){if(!n){for(var t=0;t<r.length;t+=1)wa(o[t]);n=!0}},o:function(e){o=o.filter(Boolean);for(var t=0;t<o.length;t+=1)xa(o[t]);n=!1},d:function(e){e&&wi(t),xi(o,e)}}}function VR(e){var t,n=e[83].list,r=Zo(n,e,e[82],IR);return{c:function(){r&&r.c()},m:function(e,n){r&&r.m(e,n),t=!0},p:function(e,o){r&&r.p&&(!t||16777216&o[0]|1048576&o[2])&&ni(r,n,e,e[82],t?ti(n,e[82],o,NR):ri(e[82]),IR)},i:function(e){t||(wa(r,e),t=!0)},o:function(e){xa(r,e),t=!1},d:function(e){r&&r.d(e)}}}function HR(e){var t,n,r,o,i,a,s,c,u=e[83].item,l=Zo(u,e,e[82],RR),f=l||function(e){var t,n,r=(null===(t=e[126])||void 0===t?void 0:t[e[12]])+"";return{c:function(){n=Si(r)},m:function(e,t){bi(e,n,t)},p:function(e,t){var o;16781312&t[0]&&r!==(r=(null===(o=e[126])||void 0===o?void 0:o[e[12]])+"")&&Ri(n,r)},d:function(e){e&&wi(n)}}}(e);function d(){return e[88](e[128])}function h(){return e[89](e[128])}function v(){return e[90](e[126],e[128])}return{c:function(){var r;t=ki("div"),n=ki("div"),f&&f.c(),i=Ci(),Ai(n,"class","item svelte-82qwg8"),zi(n,"list-group-title",e[126].groupHeader),zi(n,"active",e[45](e[126],e[3],e[13])),zi(n,"first",0===e[128]),zi(n,"hover",e[7]===e[128]),zi(n,"group-item",e[126].groupItem),zi(n,"not-selectable",!1===(null===(r=e[126])||void 0===r?void 0:r.selectable)),Ai(t,"class","list-item svelte-82qwg8"),Ai(t,"tabindex","-1"),Ai(t,"role","none")},m:function(u,l){bi(u,t,l),vi(t,n),f&&f.m(n,null),vi(t,i),a=!0,s||(c=[si(r=e[46].call(null,n,{scroll:e[45](e[126],e[3],e[13]),listDom:e[30]})),si(o=e[47].call(null,n,{scroll:e[29]===e[128],listDom:e[30]})),_i(t,"mouseover",d),_i(t,"focus",h),_i(t,"click",Mi(v)),_i(t,"keydown",Mi(Oi(e[87])))],s=!0)},p:function(t,i){var s;(e=t,l?l.p&&(!a||16777216&i[0]|1048576&i[2])&&ni(l,u,e,e[82],a?ti(u,e[82],i,TR):ri(e[82]),RR):f&&f.p&&(!a||16781312&i[0])&&f.p(e,a?i:[-1,-1,-1,-1,-1]),r&&Qo(r.update)&&1090527240&i[0]&&r.update.call(null,{scroll:e[45](e[126],e[3],e[13]),listDom:e[30]}),o&&Qo(o.update)&&1610612736&i[0]&&o.update.call(null,{scroll:e[29]===e[128],listDom:e[30]}),(!a||16777216&i[0])&&zi(n,"list-group-title",e[126].groupHeader),(!a||16785416&i[0]|16384&i[1])&&zi(n,"active",e[45](e[126],e[3],e[13])),(!a||128&i[0])&&zi(n,"hover",e[7]===e[128]),(!a||16777216&i[0])&&zi(n,"group-item",e[126].groupItem),!a||16777216&i[0])&&zi(n,"not-selectable",!1===(null===(s=e[126])||void 0===s?void 0:s.selectable))},i:function(e){a||(wa(f,e),a=!0)},o:function(e){xa(f,e),a=!1},d:function(e){e&&wi(t),f&&f.d(e),s=!1,Go(c)}}}function WR(e){var t,n=e[83]["list-append"],r=Zo(n,e,e[82],MR);return{c:function(){r&&r.c()},m:function(e,n){r&&r.m(e,n),t=!0},p:function(e,o){r&&r.p&&(!t||1048576&o[2])&&ni(r,n,e,e[82],t?ti(n,e[82],o,OR):ri(e[82]),MR)},i:function(e){t||(wa(r,e),t=!0)},o:function(e){xa(r,e),t=!1},d:function(e){r&&r.d(e)}}}function UR(e){var t,n,r,o,i;return{c:function(){t=ki("span"),n=Si(e[32]),r=Ci(),o=ki("span"),i=Si(e[31]),Ai(t,"id","aria-selection"),Ai(t,"class","svelte-82qwg8"),Ai(o,"id","aria-context"),Ai(o,"class","svelte-82qwg8")},m:function(e,a){bi(e,t,a),vi(t,n),bi(e,r,a),bi(e,o,a),vi(o,i)},p:function(e,t){2&t[1]&&Ri(n,e[32]),1&t[1]&&Ri(i,e[31])},d:function(e){e&&(wi(t),wi(r),wi(o))}}}function JR(e){var t,n,r,o,i=[GR,KR],a=[];function s(e,t){return e[9]?0:1}return t=s(e),n=a[t]=i[t](e),{c:function(){n.c(),r=$i()},m:function(e,n){a[t].m(e,n),bi(e,r,n),o=!0},p:function(e,o){var c=t;(t=s(e))===c?a[t].p(e,o):(ya(),xa(a[c],1,1,(function(){a[c]=null})),ba(),(n=a[t])?n.p(e,o):(n=a[t]=i[t](e)).c(),wa(n,1),n.m(r.parentNode,r))},i:function(e){o||(wa(n),o=!0)},o:function(e){xa(n),o=!1},d:function(e){e&&wi(r),a[t].d(e)}}}function KR(e){var t,n,r=e[83].selection,o=Zo(r,e,e[82],wR),i=o||function(e){var t,n=e[3][e[12]]+"";return{c:function(){t=Si(n)},m:function(e,n){bi(e,t,n)},p:function(e,r){4104&r[0]&&n!==(n=e[3][e[12]]+"")&&Ri(t,n)},d:function(e){e&&wi(t)}}}(e);return{c:function(){t=ki("div"),i&&i.c(),Ai(t,"class","selected-item svelte-82qwg8"),zi(t,"hide-selected-item",e[35])},m:function(e,r){bi(e,t,r),i&&i.m(t,null),n=!0},p:function(e,a){o?o.p&&(!n||8&a[0]|1048576&a[2])&&ni(o,r,e,e[82],n?ti(r,e[82],a,bR):ri(e[82]),wR):i&&i.p&&(!n||4104&a[0])&&i.p(e,n?a:[-1,-1,-1,-1,-1]),(!n||16&a[1])&&zi(t,"hide-selected-item",e[35])},i:function(e){n||(wa(i,e),n=!0)},o:function(e){xa(i,e),n=!1},d:function(e){e&&wi(t),i&&i.d(e)}}}function GR(e){for(var t,n,r=Sa(e[3]),o=[],i=0;i<r.length;i+=1)o[i]=YR(xR(e,r,i));var a=function(e){return xa(o[e],1,1,(function(){o[e]=null}))};return{c:function(){for(var e=0;e<o.length;e+=1)o[e].c();t=$i()},m:function(e,r){for(var i=0;i<o.length;i+=1)o[i]&&o[i].m(e,r);bi(e,t,r),n=!0},p:function(e,n){if(67116040&n[0]|32&n[1]|1048576&n[2]){var i;for(r=Sa(e[3]),i=0;i<r.length;i+=1){var s=xR(e,r,i);o[i]?(o[i].p(s,n),wa(o[i],1)):(o[i]=YR(s),o[i].c(),wa(o[i],1),o[i].m(t.parentNode,t))}for(ya(),i=r.length;i<o.length;i+=1)a(i);ba()}},i:function(e){if(!n){for(var t=0;t<r.length;t+=1)wa(o[t]);n=!0}},o:function(e){o=o.filter(Boolean);for(var t=0;t<o.length;t+=1)xa(o[t]);n=!1},d:function(e){e&&wi(t),xi(o,e)}}}function QR(e){var t,n,r,o,i=e[83]["multi-clear-icon"],a=Zo(i,e,e[82],jR),s=a||function(e){var t,n;return t=new oR({}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}();function c(){return e[92](e[128])}return{c:function(){t=ki("div"),s&&s.c(),Ai(t,"class","multi-item-clear svelte-82qwg8")},m:function(e,i){bi(e,t,i),s&&s.m(t,null),n=!0,r||(o=_i(t,"pointerup",Mi(Oi(c))),r=!0)},p:function(t,r){e=t,a&&a.p&&(!n||1048576&r[2])&&ni(a,i,e,e[82],n?ti(i,e[82],r,kR):ri(e[82]),jR)},i:function(e){n||(wa(s,e),n=!0)},o:function(e){xa(s,e),n=!1},d:function(e){e&&wi(t),s&&s.d(e),r=!1,o()}}}function YR(e){var t,n,r,o,i,a,s,c=e[83].selection,u=Zo(c,e,e[82],CR),l=u||function(e){var t,n=e[126][e[12]]+"";return{c:function(){t=Si(n)},m:function(e,n){bi(e,t,n)},p:function(e,r){4104&r[0]&&n!==(n=e[126][e[12]]+"")&&Ri(t,n)},d:function(e){e&&wi(t)}}}(e),f=!e[11]&&!e[10]&&oR&&QR(e);function d(){return e[93](e[128])}return{c:function(){t=ki("div"),n=ki("span"),l&&l.c(),r=Ci(),f&&f.c(),o=Ci(),Ai(n,"class","multi-item-text svelte-82qwg8"),Ai(t,"class","multi-item svelte-82qwg8"),Ai(t,"role","none"),zi(t,"active",e[26]===e[128]),zi(t,"disabled",e[11])},m:function(c,u){bi(c,t,u),vi(t,n),l&&l.m(n,null),vi(t,r),f&&f.m(t,null),vi(t,o),i=!0,a||(s=[_i(t,"click",Oi(d)),_i(t,"keydown",Mi(Oi(e[84])))],a=!0)},p:function(n,r){e=n,u?u.p&&(!i||8&r[0]|1048576&r[2])&&ni(u,c,e,e[82],i?ti(c,e[82],r,SR):ri(e[82]),CR):l&&l.p&&(!i||4104&r[0])&&l.p(e,i?r:[-1,-1,-1,-1,-1]),e[11]||e[10]||!oR?f&&(ya(),xa(f,1,1,(function(){f=null})),ba()):f?(f.p(e,r),3072&r[0]&&wa(f,1)):((f=QR(e)).c(),wa(f,1),f.m(t,o)),(!i||67108864&r[0])&&zi(t,"active",e[26]===e[128]),(!i||2048&r[0])&&zi(t,"disabled",e[11])},i:function(e){i||(wa(l,e),wa(f),i=!0)},o:function(e){xa(l,e),xa(f),i=!1},d:function(e){e&&wi(t),l&&l.d(e),f&&f.d(),a=!1,Go(s)}}}function XR(e){var t,n,r=e[83]["loading-icon"],o=Zo(r,e,e[82],yR),i=o||function(e){var t,n;return t=new sR({}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}();return{c:function(){t=ki("div"),i&&i.c(),Ai(t,"class","icon loading svelte-82qwg8"),Ai(t,"aria-hidden","true")},m:function(e,r){bi(e,t,r),i&&i.m(t,null),n=!0},p:function(e,t){o&&o.p&&(!n||1048576&t[2])&&ni(o,r,e,e[82],n?ti(r,e[82],t,gR):ri(e[82]),yR)},i:function(e){n||(wa(i,e),n=!0)},o:function(e){xa(i,e),n=!1},d:function(e){e&&wi(t),i&&i.d(e)}}}function ZR(e){var t,n,r,o,i=e[83]["clear-icon"],a=Zo(i,e,e[82],mR),s=a||function(e){var t,n;return t=new oR({}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}();return{c:function(){t=ki("button"),s&&s.c(),Ai(t,"type","button"),Ai(t,"class","icon clear-select svelte-82qwg8")},m:function(i,a){bi(i,t,a),s&&s.m(t,null),n=!0,r||(o=_i(t,"click",e[22]),r=!0)},p:function(e,t){a&&a.p&&(!n||1048576&t[2])&&ni(a,i,e,e[82],n?ti(i,e[82],t,pR):ri(e[82]),mR)},i:function(e){n||(wa(s,e),n=!0)},o:function(e){xa(s,e),n=!1},d:function(e){e&&wi(t),s&&s.d(e),r=!1,o()}}}function eN(e){var t,n,r=e[83]["chevron-icon"],o=Zo(r,e,e[82],vR),i=o||function(e){var t,n;return t=new tR({}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}();return{c:function(){t=ki("div"),i&&i.c(),Ai(t,"class","icon chevron svelte-82qwg8"),Ai(t,"aria-hidden","true")},m:function(e,r){bi(e,t,r),i&&i.m(t,null),n=!0},p:function(e,t){o&&o.p&&(!n||64&t[0]|1048576&t[2])&&ni(o,r,e,e[82],n?ti(r,e[82],t,hR):ri(e[82]),vR)},i:function(e){n||(wa(i,e),n=!0)},o:function(e){xa(i,e),n=!1},d:function(e){e&&wi(t),i&&i.d(e)}}}function tN(e){var t,n,r=e[83].required,o=Zo(r,e,e[82],lR),i=o||{c:function(){Ai(n=ki("select"),"class","required svelte-82qwg8"),n.required=!0,Ai(n,"tabindex","-1"),Ai(n,"aria-hidden","true")},m:function(e,t){bi(e,n,t)},p:Ho,d:function(e){e&&wi(n)}};return{c:function(){i&&i.c()},m:function(e,n){i&&i.m(e,n),t=!0},p:function(e,n){o&&o.p&&(!t||8&n[0]|1048576&n[2])&&ni(o,r,e,e[82],t?ti(r,e[82],n,uR):ri(e[82]),lR)},i:function(e){t||(wa(i,e),t=!0)},o:function(e){xa(i,e),t=!1},d:function(e){i&&i.d(e)}}}function nN(e){for(var t,n,r,o,i,a,s,c,u,l,f,d,h,v,p,m,g,y,b,w,x=e[6]&&BR(e),k=e[2]&&UR(e),j=e[83].prepend,S=Zo(j,e,e[82],_R),C=e[25]&&JR(e),$=[{readOnly:l=!e[17]},e[27],{placeholder:e[33]},{style:e[18]},{disabled:e[11]}],_={},O=0;O<$.length;O+=1)_=Uo(_,$[O]);var M=e[5]&&XR(e),A=e[34]&&ZR(e),E=e[20]&&eN(e),P=e[83]["input-hidden"],T=Zo(P,e,e[82],dR),R=T||function(e){var t,n;return{c:function(){Ai(t=ki("input"),"name",e[8]),Ai(t,"type","hidden"),t.value=n=e[3]?JSON.stringify(e[3]):null,Ai(t,"class","svelte-82qwg8")},m:function(e,n){bi(e,t,n)},p:function(e,r){256&r[0]&&Ai(t,"name",e[8]),8&r[0]&&n!==(n=e[3]?JSON.stringify(e[3]):null)&&(t.value=n)},d:function(e){e&&wi(t)}}}(e),N=e[16]&&(!e[3]||0===e[3].length)&&tN(e);return{c:function(){t=ki("div"),x&&x.c(),n=Ci(),r=ki("span"),k&&k.c(),o=Ci(),i=ki("div"),S&&S.c(),a=Ci(),s=ki("div"),C&&C.c(),c=Ci(),u=ki("input"),f=Ci(),d=ki("div"),M&&M.c(),h=Ci(),A&&A.c(),v=Ci(),E&&E.c(),p=Ci(),R&&R.c(),m=Ci(),N&&N.c(),Ai(r,"aria-live","polite"),Ai(r,"aria-atomic","false"),Ai(r,"aria-relevant","additions text"),Ai(r,"class","a11y-text svelte-82qwg8"),Ai(i,"class","prepend svelte-82qwg8"),Pi(u,_),zi(u,"svelte-82qwg8",!0),Ai(s,"class","value-container svelte-82qwg8"),Ai(d,"class","indicators svelte-82qwg8"),Ai(t,"class",g="svelte-select "+e[21]+" svelte-82qwg8"),Ai(t,"style",e[14]),Ai(t,"role","none"),zi(t,"multi",e[9]),zi(t,"disabled",e[11]),zi(t,"focused",e[2]),zi(t,"list-open",e[6]),zi(t,"show-chevron",e[20]),zi(t,"error",e[15])},m:function(l,g){bi(l,t,g),x&&x.m(t,null),vi(t,n),vi(t,r),k&&k.m(r,null),vi(t,o),vi(t,i),S&&S.m(i,null),vi(t,a),vi(t,s),C&&C.m(s,null),vi(s,c),vi(s,u),u.autofocus&&u.focus(),e[94](u),Ni(u,e[4]),vi(t,f),vi(t,d),M&&M.m(d,null),vi(d,h),A&&A.m(d,null),vi(d,v),E&&E.m(d,null),vi(t,p),R&&R.m(t,null),vi(t,m),N&&N.m(t,null),e[96](t),y=!0,b||(w=[_i(window,"click",e[42]),_i(window,"keydown",e[37]),_i(u,"keydown",e[37]),_i(u,"blur",e[39]),_i(u,"focus",e[38]),_i(u,"input",e[95]),_i(t,"pointerup",Oi(e[40])),si(e[48].call(null,t))],b=!0)},p:function(e,o){e[6]?x?(x.p(e,o),64&o[0]&&wa(x,1)):((x=BR(e)).c(),wa(x,1),x.m(t,n)):x&&(ya(),xa(x,1,1,(function(){x=null})),ba()),e[2]?k?k.p(e,o):((k=UR(e)).c(),k.m(r,null)):k&&(k.d(1),k=null),S&&S.p&&(!y||1048576&o[2])&&ni(S,j,e,e[82],y?ti(j,e[82],o,$R):ri(e[82]),_R),e[25]?C?(C.p(e,o),33554432&o[0]&&wa(C,1)):((C=JR(e)).c(),wa(C,1),C.m(s,c)):C&&(ya(),xa(C,1,1,(function(){C=null})),ba()),Pi(u,_=Oa($,[(!y||131072&o[0]&&l!==(l=!e[17]))&&{readOnly:l},134217728&o[0]&&e[27],(!y||4&o[1])&&{placeholder:e[33]},(!y||262144&o[0])&&{style:e[18]},(!y||2048&o[0])&&{disabled:e[11]}])),16&o[0]&&u.value!==e[4]&&Ni(u,e[4]),zi(u,"svelte-82qwg8",!0),e[5]?M?(M.p(e,o),32&o[0]&&wa(M,1)):((M=XR(e)).c(),wa(M,1),M.m(d,h)):M&&(ya(),xa(M,1,1,(function(){M=null})),ba()),e[34]?A?(A.p(e,o),8&o[1]&&wa(A,1)):((A=ZR(e)).c(),wa(A,1),A.m(d,v)):A&&(ya(),xa(A,1,1,(function(){A=null})),ba()),e[20]?E?(E.p(e,o),1048576&o[0]&&wa(E,1)):((E=eN(e)).c(),wa(E,1),E.m(d,null)):E&&(ya(),xa(E,1,1,(function(){E=null})),ba()),T?T.p&&(!y||8&o[0]|1048576&o[2])&&ni(T,P,e,e[82],y?ti(P,e[82],o,fR):ri(e[82]),dR):R&&R.p&&(!y||264&o[0])&&R.p(e,y?o:[-1,-1,-1,-1,-1]),!e[16]||e[3]&&0!==e[3].length?N&&(ya(),xa(N,1,1,(function(){N=null})),ba()):N?(N.p(e,o),65544&o[0]&&wa(N,1)):((N=tN(e)).c(),wa(N,1),N.m(t,null)),(!y||2097152&o[0]&&g!==(g="svelte-select "+e[21]+" svelte-82qwg8"))&&Ai(t,"class",g),(!y||16384&o[0])&&Ai(t,"style",e[14]),(!y||2097664&o[0])&&zi(t,"multi",e[9]),(!y||2099200&o[0])&&zi(t,"disabled",e[11]),(!y||2097156&o[0])&&zi(t,"focused",e[2]),(!y||2097216&o[0])&&zi(t,"list-open",e[6]),(!y||3145728&o[0])&&zi(t,"show-chevron",e[20]),(!y||2129920&o[0])&&zi(t,"error",e[15])},i:function(e){y||(wa(x),wa(S,e),wa(C),wa(M),wa(A),wa(E),wa(R,e),wa(N),y=!0)},o:function(e){xa(x),xa(S,e),xa(C),xa(M),xa(A),xa(E),xa(R,e),xa(N),y=!1},d:function(n){n&&wi(t),x&&x.d(),k&&k.d(),S&&S.d(n),C&&C.d(),e[94](null),M&&M.d(),A&&A.d(),E&&E.d(),R&&R.d(n),N&&N.d(),e[96](null),b=!1,Go(w)}}}function rN(e){return e.map((function(e,t){return{index:t,value:e,label:"".concat(e)}}))}function oN(e,t,n){var r,o,i,a,s,c,u,l,f,d,h,v,p,m,g,y,b=t.$$slots,w=void 0===b?{}:b,x=t.$$scope,k=function(e){var t={};for(var n in e)t[n]=!0;return t}(w),j=Qi(),S=t.justValue,C=void 0===S?null:S,$=t.filter,_=void 0===$?QT:$,O=t.getItems,M=void 0===O?YT:O,A=t.id,E=void 0===A?null:A,P=t.name,T=void 0===P?null:P,R=t.container,N=void 0===R?void 0:R,I=t.input,D=void 0===I?void 0:I,z=t.multiple,B=void 0!==z&&z,L=t.multiFullItemClearable,q=void 0!==L&&L,F=t.disabled,V=void 0!==F&&F,H=t.focused,W=void 0!==H&&H,U=t.value,J=void 0===U?null:U,K=t.filterText,G=void 0===K?"":K,Q=t.placeholder,Y=void 0===Q?"Please select":Q,X=t.placeholderAlwaysShow,Z=void 0!==X&&X,ee=t.items,te=void 0===ee?null:ee,ne=t.label,re=void 0===ne?"label":ne,oe=t.itemFilter,ie=void 0===oe?function(e,t,n){return"".concat(e).toLowerCase().includes(t.toLowerCase())}:oe,ae=t.groupBy,se=void 0===ae?void 0:ae,ce=t.groupFilter,ue=void 0===ce?function(e){return e}:ce,le=t.groupHeaderSelectable,fe=void 0!==le&&le,de=t.itemId,he=void 0===de?"value":de,ve=t.loadOptions,pe=void 0===ve?void 0:ve,me=t.containerStyles,ge=void 0===me?"":me,ye=t.hasError,be=void 0!==ye&&ye,we=t.filterSelectedItems,xe=void 0===we||we,ke=t.required,je=void 0!==ke&&ke,Se=t.closeListOnChange,Ce=void 0===Se||Se,$e=t.clearFilterTextOnBlur,_e=void 0===$e||$e,Oe=t.createGroupHeaderItem,Me=void 0===Oe?function(e,t){return Do({value:e},re,e)}:Oe,Ae=t.searchable,Ee=void 0===Ae||Ae,Pe=t.inputStyles,Te=void 0===Pe?"":Pe,Re=t.clearable,Ne=void 0===Re||Re,Ie=t.loading,De=void 0!==Ie&&Ie,ze=t.listOpen,Be=void 0!==ze&&ze,Le=t.debounce,qe=void 0===Le?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;clearTimeout(d),d=setTimeout(e,t)}:Le,Fe=t.debounceWait,Ve=void 0===Fe?300:Fe,He=t.hideEmptyState,We=void 0!==He&&He,Ue=t.inputAttributes,Je=void 0===Ue?{}:Ue,Ke=t.listAutoWidth,Ge=void 0===Ke||Ke,Qe=t.showChevron,Ye=void 0!==Qe&&Qe,Xe=t.listOffset,Ze=void 0===Xe?5:Xe,et=t.hoverItemIndex,tt=void 0===et?0:et,nt=t.floatingConfig,rt=void 0===nt?{}:nt,ot=t.class,it=void 0===ot?"":ot;function at(e){var t=[],n={};e.forEach((function(e){var r=se(e);t.includes(r)||(t.push(r),n[r]=[],r&&n[r].push(Object.assign(Me(r,e),{id:r,groupHeader:!0,selectable:fe}))),n[r].push(Object.assign({groupItem:!!r},e))}));var r=[];return ue(t).forEach((function(e){n[e]&&r.push.apply(r,Bo(n[e]))})),r}function st(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;n(7,tt=e<0?0:e),!t&&se&&u[tt]&&!u[tt].selectable&&Mt(1)}function ct(){var e=!0;if(J){var t=[],r=[];J.forEach((function(n){t.includes(n[he])?e=!1:(t.push(n[he]),r.push(n))})),e||n(3,J=r)}return e}function ut(e){var t=e?e[he]:J[he];return te.find((function(e){return e[he]===t}))}function lt(e){return ft.apply(this,arguments)}function ft(){return ft=ko(wo().mark((function e(t){var r;return wo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=J[t],1===J.length?n(3,J=void 0):n(3,J=J.filter((function(e){return e!==r}))),j("clear",r);case 3:case"end":return e.stop()}}),e)}))),ft.apply(this,arguments)}function dt(e){var t,r;W&&D===(null===(t=document)||void 0===t?void 0:t.activeElement)||(e&&j("focus",e),null===(r=D)||void 0===r||r.focus(),n(2,W=!0))}function ht(e){return vt.apply(this,arguments)}function vt(){return(vt=ko(wo().mark((function e(t){var r;return wo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Ct){e.next=2;break}return e.abrupt("return");case 2:(Be||W)&&(j("blur",t),pt(),n(2,W=!1),n(26,h=void 0),null===(r=D)||void 0===r||r.blur());case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function pt(){_e&&n(4,G=""),n(6,Be=!1)}y=ko(wo().mark((function e(){return wo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n(78,v=J),n(79,p=G),n(80,m=B);case 3:case"end":return e.stop()}}),e)}))),Ji().$$.before_update.push(y),Ki((function(){Be&&n(2,W=!0),W&&D&&D.focus()}));var mt=t.ariaValues,gt=void 0===mt?function(e){return"Option ".concat(e,", selected.")}:mt,yt=t.ariaListOpen,bt=void 0===yt?function(e,t){return"You are currently focused on option ".concat(e,". There are ").concat(t," results available.")}:yt,wt=t.ariaFocused,xt=void 0===wt?function(){return"Select is focused, type to refine list, press down to open the menu."}:wt;var kt,jt=null;function St(){clearTimeout(kt),kt=setTimeout((function(){Ct=!1}),100)}Gi((function(){var e;null===(e=jt)||void 0===e||e.remove()}));var Ct=!1;function $t(e){e&&!1!==e.selectable&&function(e){if(e){n(4,G="");var t=Object.assign({},e);if(t.groupHeader&&!t.selectable)return;n(3,J=B?J?J.concat([t]):[t]:n(3,J=t)),setTimeout((function(){Ce&&pt(),n(26,h=void 0),j("change",J),j("select",e)}))}}(e)}function _t(e){Ct||n(7,tt=e)}function Ot(e){var t=e.item,r=e.i;if(!1!==(null==t?void 0:t.selectable))return J&&!B&&J[he]===t[he]?pt():void(function(e){return e.groupHeader&&e.selectable||e.selectable||!e.hasOwnProperty("selectable")}(t)&&(n(7,tt=r),$t(t)))}function Mt(e){if(0===u.filter((function(e){return!Object.hasOwn(e,"selectable")||!0===e.selectable})).length)return n(7,tt=0);e>0&&tt===u.length-1?n(7,tt=0):n(7,e<0&&0===tt?tt=u.length-1:tt+=e);var t=u[tt];t&&!1===t.selectable&&(1!==e&&-1!==e||Mt(e))}var At=Pt,Et=Pt;function Pt(e){return{update:function(t){t.scroll&&(St(),e.scrollIntoView({behavior:"auto",block:"nearest"}))}}}var Tt,Rt={strategy:"absolute",placement:"bottom-start",middleware:[(Tt=Ze,void 0===Tt&&(Tt=0),{name:"offset",options:Tt,fn:function(e){return ko(wo().mark((function t(){var n,r,o,i,a,s,c;return wo().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=e.x,i=e.y,a=e.placement,s=e.middlewareData,t.next=3,vT(e,Tt);case 3:if(c=t.sent,a!==(null==(n=s.offset)?void 0:n.placement)||null==(r=s.arrow)||!r.alignmentOffset){t.next=6;break}return t.abrupt("return",{});case 6:return t.abrupt("return",{x:o+c.x,y:i+c.y,data:To(To({},c),{},{placement:a})});case 7:case"end":return t.stop()}}),t)})))()}}),KT(),JT()],autoUpdate:!1},Nt=function(e){var t,n,r={autoUpdate:!0},o=e,i=function(t){return To(To(To({},r),e||{}),t||{})},a=function(e){t&&n&&(o=i(e),GT(t,n,o).then((function(e){var t;Object.assign(n.style,{position:e.strategy,left:"".concat(e.x,"px"),top:"".concat(e.y,"px")}),(null===(t=o)||void 0===t?void 0:t.onComputed)&&o.onComputed(e)})))},s=function(e){Gi(e.subscribe((function(e){void 0===t?(t=e,a()):(Object.assign(t,e),a())})))};return[function(e){if("subscribe"in e)return s(e),{};t=e,a()},function(e,r){var s;n=e,o=i(r),setTimeout((function(){return a(r)}),0),a(r);var c=function(){s&&(s(),s=void 0)},u=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:o||{}).autoUpdate;c(),!1!==e&&sa().then((function(){return UT(t,n,(function(){return a(o)}),!0===e?{}:e)}))};return s=u(),{update:function(e){a(e),s=u(e)},destroy:function(){c()}}},a]}(Rt),It=jo(Nt,3),Dt=It[0],zt=It[1],Bt=It[2],Lt=!0;return e.$$set=function(e){"justValue"in e&&n(52,C=e.justValue),"filter"in e&&n(53,_=e.filter),"getItems"in e&&n(54,M=e.getItems),"id"in e&&n(55,E=e.id),"name"in e&&n(8,T=e.name),"container"in e&&n(0,N=e.container),"input"in e&&n(1,D=e.input),"multiple"in e&&n(9,B=e.multiple),"multiFullItemClearable"in e&&n(10,q=e.multiFullItemClearable),"disabled"in e&&n(11,V=e.disabled),"focused"in e&&n(2,W=e.focused),"value"in e&&n(3,J=e.value),"filterText"in e&&n(4,G=e.filterText),"placeholder"in e&&n(56,Y=e.placeholder),"placeholderAlwaysShow"in e&&n(57,Z=e.placeholderAlwaysShow),"items"in e&&n(51,te=e.items),"label"in e&&n(12,re=e.label),"itemFilter"in e&&n(58,ie=e.itemFilter),"groupBy"in e&&n(59,se=e.groupBy),"groupFilter"in e&&n(60,ue=e.groupFilter),"groupHeaderSelectable"in e&&n(61,fe=e.groupHeaderSelectable),"itemId"in e&&n(13,he=e.itemId),"loadOptions"in e&&n(62,pe=e.loadOptions),"containerStyles"in e&&n(14,ge=e.containerStyles),"hasError"in e&&n(15,be=e.hasError),"filterSelectedItems"in e&&n(63,xe=e.filterSelectedItems),"required"in e&&n(16,je=e.required),"closeListOnChange"in e&&n(64,Ce=e.closeListOnChange),"clearFilterTextOnBlur"in e&&n(65,_e=e.clearFilterTextOnBlur),"createGroupHeaderItem"in e&&n(66,Me=e.createGroupHeaderItem),"searchable"in e&&n(17,Ee=e.searchable),"inputStyles"in e&&n(18,Te=e.inputStyles),"clearable"in e&&n(68,Ne=e.clearable),"loading"in e&&n(5,De=e.loading),"listOpen"in e&&n(6,Be=e.listOpen),"debounce"in e&&n(69,qe=e.debounce),"debounceWait"in e&&n(70,Ve=e.debounceWait),"hideEmptyState"in e&&n(19,We=e.hideEmptyState),"inputAttributes"in e&&n(71,Je=e.inputAttributes),"listAutoWidth"in e&&n(72,Ge=e.listAutoWidth),"showChevron"in e&&n(20,Ye=e.showChevron),"listOffset"in e&&n(73,Ze=e.listOffset),"hoverItemIndex"in e&&n(7,tt=e.hoverItemIndex),"floatingConfig"in e&&n(74,rt=e.floatingConfig),"class"in e&&n(21,it=e.class),"ariaValues"in e&&n(75,gt=e.ariaValues),"ariaListOpen"in e&&n(76,bt=e.ariaListOpen),"ariaFocused"in e&&n(77,xt=e.ariaFocused),"$$scope"in e&&n(82,x=e.$$scope)},e.$$.update=function(){var t,d,y,b,w;(8&e.$$.dirty[0]|1048576&e.$$.dirty[1]&&J&&function(){if("string"==typeof J){var e=(te||[]).find((function(e){return e[he]===J}));n(3,J=e||Do(Do({},he,J),"label",J))}else B&&Array.isArray(J)&&J.length>0&&n(3,J=J.map((function(e){return"string"==typeof e?{value:e,label:e}:e})))}(),131072&e.$$.dirty[0]|512&e.$$.dirty[2]&&(!Je&&Ee||(n(27,g=Object.assign({autocapitalize:"none",autocomplete:"off",autocorrect:"off",spellcheck:!1,tabindex:0,type:"text","aria-autocomplete":"list"},Je)),E&&n(27,g.id=E,g),Ee||n(27,g.readonly=!0,g))),512&e.$$.dirty[0]&&B&&J&&(Array.isArray(J)?n(3,J=Bo(J)):n(3,J=[J])),512&e.$$.dirty[0]|262144&e.$$.dirty[2]&&m&&!B&&J&&n(3,J=null),520&e.$$.dirty[0]&&B&&J&&J.length>1&&ct(),8&e.$$.dirty[0]&&J&&(B?JSON.stringify(J)!==JSON.stringify(v)&&ct()&&j("input",J):v&&JSON.stringify(J[he])===JSON.stringify(v[he])||j("input",J)),520&e.$$.dirty[0]|65536&e.$$.dirty[2]&&!J&&B&&v&&j("input",J),6&e.$$.dirty[0]&&!W&&D&&pt(),16&e.$$.dirty[0]|131072&e.$$.dirty[2]&&G!==p&&(pe||0!==G.length)&&(pe?qe(ko(wo().mark((function e(){var t;return wo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n(5,De=!0),e.next=3,M({dispatch:j,loadOptions:pe,convertStringItemsToObjects:rN,filterText:G});case 3:(t=e.sent)?(n(5,De=t.loading),n(6,Be=Be?t.listOpen:G.length>0),n(2,W=Be&&t.focused),n(51,te=se?at(t.filteredItems):t.filteredItems)):(n(5,De=!1),n(2,W=!0),n(6,Be=!0));case 5:case"end":return e.stop()}}),e)}))),Ve):(n(6,Be=!0),B&&n(26,h=void 0))),12824&e.$$.dirty[0]|407896064&e.$$.dirty[1]|3&e.$$.dirty[2]&&n(24,u=_({loadOptions:pe,filterText:G,items:te,multiple:B,value:J,itemId:he,groupBy:se,label:re,filterSelectedItems:xe,itemFilter:ie,convertStringItemsToObjects:rN,filterGroupedItems:at})),16777800&e.$$.dirty[0]&&!B&&Be&&J&&u&&(t=u.findIndex((function(e){return e[he]===J[he]})),st(t,!0)),576&e.$$.dirty[0]&&Be&&B&&n(7,tt=0),16&e.$$.dirty[0]&&G&&n(7,tt=0),128&e.$$.dirty[0]&&function(e){j("hoverItem",e)}(tt),520&e.$$.dirty[0]&&n(25,r=B?J&&J.length>0:J),33554448&e.$$.dirty[0]&&n(35,o=r&&G.length>0),33556512&e.$$.dirty[0]|64&e.$$.dirty[2]&&n(34,i=r&&Ne&&!V&&!De),520&e.$$.dirty[0]|100663296&e.$$.dirty[1])&&n(33,a=Z&&B||B&&0===(null===(d=J)||void 0===d?void 0:d.length)?Y:J?"":Y);(520&e.$$.dirty[0]&&n(32,s=J?(y=void 0,y=B&&J.length>0?J.map((function(e){return e[re]})).join(", "):J[re],gt(y)):""),16777412&e.$$.dirty[0]&&n(31,c=function(){if(!u||0===u.length)return"";var e=u[tt];if(Be&&e){var t=u?u.length:0;return bt(e[re],t)}return xt()}()),1048576&e.$$.dirty[1]&&function(e){e&&0!==e.length&&!e.some((function(e){return"object"!==Vo(e)}))&&J&&(B?!J.some((function(e){return!e||!e[he]})):J[he])&&(Array.isArray(J)?n(3,J=J.map((function(e){return ut(e)||e}))):n(3,J=ut()||J))}(te),8712&e.$$.dirty[0]&&n(52,C=B?J?J.map((function(e){return e[he]})):null:J?J[he]:J),520&e.$$.dirty[0]|65536&e.$$.dirty[2]&&(B||!v||J||j("input",J)),16777800&e.$$.dirty[0]&&Be&&u&&!B&&!J&&st(),16777216&e.$$.dirty[0]&&function(e){Be&&j("filter",e)}(u),1&e.$$.dirty[0]|4096&e.$$.dirty[2])&&(N&&void 0===(null===(b=rt)||void 0===b?void 0:b.autoUpdate)&&n(81,Rt.autoUpdate=!0,Rt));1&e.$$.dirty[0]|528384&e.$$.dirty[2]&&N&&rt&&Bt(Object.assign(Rt,rt)),8388608&e.$$.dirty[0]&&n(30,l=!!jt),8388672&e.$$.dirty[0]&&function(e,t){if(!e||!t)return n(28,Lt=!0);setTimeout((function(){n(28,Lt=!1)}),0)}(jt,Be),8388673&e.$$.dirty[0]&&Be&&N&&jt&&(w=N.getBoundingClientRect().width,n(23,jt.style.width=Ge?w+"px":"auto",jt)),128&e.$$.dirty[0]&&n(29,f=tt),70&e.$$.dirty[0]&&D&&Be&&!W&&dt()},[N,D,W,J,G,De,Be,tt,T,B,q,V,re,he,ge,be,je,Ee,Te,We,Ye,it,function(){j("clear",J),n(3,J=void 0),pt(),dt()},jt,u,r,h,g,Lt,f,l,c,s,a,i,o,lt,function(e){if(W)switch(e.stopPropagation(),e.key){case"Escape":e.preventDefault(),pt();break;case"Enter":if(e.preventDefault(),Be){if(0===u.length)break;var t=u[tt];if(J&&!B&&J[he]===t[he]){pt();break}$t(u[tt])}break;case"ArrowDown":e.preventDefault(),Be?Mt(1):(n(6,Be=!0),n(26,h=void 0));break;case"ArrowUp":e.preventDefault(),Be?Mt(-1):(n(6,Be=!0),n(26,h=void 0));break;case"Tab":if(Be&&W){if(0===u.length||J&&J[he]===u[tt][he])return pt();e.preventDefault(),$t(u[tt]),pt()}break;case"Backspace":if(!B||G.length>0)return;if(B&&J&&J.length>0){if(lt(void 0!==h?h:J.length-1),0===h||void 0===h)break;n(26,h=J.length>h?h-1:void 0)}break;case"ArrowLeft":if(!J||!B||G.length>0)return;void 0===h?n(26,h=J.length-1):J.length>h&&0!==h&&n(26,h-=1);break;case"ArrowRight":if(!J||!B||G.length>0||void 0===h)return;h===J.length-1?n(26,h=void 0):h<J.length-1&&n(26,h+=1)}},dt,ht,function(){if(!V)return G.length>0?n(6,Be=!0):void n(6,Be=!Be)},St,function(e){var t;Be||W||!N||N.contains(e.target)||null!==(t=jt)&&void 0!==t&&t.contains(e.target)||ht()},_t,Ot,function(e,t,n){if(!B)return t&&t[n]===e[n]},At,Et,Dt,zt,k,te,C,_,M,E,Y,Z,ie,se,ue,fe,pe,xe,Ce,_e,Me,function(){return u},Ne,qe,Ve,Je,Ge,Ze,rt,gt,bt,xt,v,p,m,Rt,x,w,function(t){Zi.call(this,e,t)},function(t){Zi.call(this,e,t)},function(t){Zi.call(this,e,t)},function(t){Zi.call(this,e,t)},function(e){return _t(e)},function(e){return _t(e)},function(e,t){return Ot({item:e,i:t})},function(e){ta[e?"unshift":"push"]((function(){n(23,jt=e)}))},function(e){return lt(e)},function(e){return q?lt(e):{}},function(e){ta[e?"unshift":"push"]((function(){n(1,D=e)}))},function(){G=this.value,n(4,G)},function(e){ta[e?"unshift":"push"]((function(){n(0,N=e)}))}]}var iN=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,oN,nN,Yo,{justValue:52,filter:53,getItems:54,id:55,name:8,container:0,input:1,multiple:9,multiFullItemClearable:10,disabled:11,focused:2,value:3,filterText:4,placeholder:56,placeholderAlwaysShow:57,items:51,label:12,itemFilter:58,groupBy:59,groupFilter:60,groupHeaderSelectable:61,itemId:13,loadOptions:62,containerStyles:14,hasError:15,filterSelectedItems:63,required:16,closeListOnChange:64,clearFilterTextOnBlur:65,createGroupHeaderItem:66,getFilteredItems:67,searchable:17,inputStyles:18,clearable:68,loading:5,listOpen:6,debounce:69,debounceWait:70,hideEmptyState:19,inputAttributes:71,listAutoWidth:72,showChevron:20,listOffset:73,hoverItemIndex:7,floatingConfig:74,class:21,handleClear:22,ariaValues:75,ariaListOpen:76,ariaFocused:77},cR,[-1,-1,-1,-1,-1]),n}return Ao(t,Na),Io(t,[{key:"getFilteredItems",get:function(){return this.$$.ctx[67]}},{key:"handleClear",get:function(){return this.$$.ctx[22]}}])}();function aN(e){pi(e,"svelte-ijtq0l","table.jse-transform-wizard.svelte-ijtq0l.svelte-ijtq0l{border-collapse:collapse;border-spacing:0;width:100%}table.jse-transform-wizard.svelte-ijtq0l input.svelte-ijtq0l{font-family:inherit;font-size:inherit}table.jse-transform-wizard.svelte-ijtq0l tr th.svelte-ijtq0l{font-weight:normal;text-align:left;width:60px}table.jse-transform-wizard.svelte-ijtq0l tr td .jse-horizontal.svelte-ijtq0l{width:100%;display:flex;flex-direction:row;margin-bottom:calc(0.5 * var(--jse-padding, 10px))}table.jse-transform-wizard.svelte-ijtq0l tr td .jse-horizontal.svelte-ijtq0l .svelte-select .multi-item{align-items:center}table.jse-transform-wizard.svelte-ijtq0l tr td .jse-horizontal.svelte-ijtq0l .svelte-select .value-container{gap:0 !important}table.jse-transform-wizard.svelte-ijtq0l tr td .jse-horizontal.svelte-ijtq0l .svelte-select.jse-filter-path{flex:4;margin-right:calc(0.5 * var(--jse-padding, 10px))}table.jse-transform-wizard.svelte-ijtq0l tr td .jse-horizontal.svelte-ijtq0l .svelte-select.jse-filter-relation{flex:1.5;margin-right:calc(0.5 * var(--jse-padding, 10px))}table.jse-transform-wizard.svelte-ijtq0l tr td .jse-horizontal.svelte-ijtq0l .svelte-select.jse-sort-path{flex:3;margin-right:calc(0.5 * var(--jse-padding, 10px))}table.jse-transform-wizard.svelte-ijtq0l tr td .jse-horizontal.svelte-ijtq0l .svelte-select.jse-sort-direction{flex:1}table.jse-transform-wizard.svelte-ijtq0l tr td .jse-horizontal.svelte-ijtq0l .svelte-select.jse-projection-paths{flex:1}table.jse-transform-wizard.svelte-ijtq0l tr td .jse-horizontal.svelte-ijtq0l .svelte-select input{box-sizing:border-box}table.jse-transform-wizard.svelte-ijtq0l tr td .jse-horizontal .jse-filter-value.svelte-ijtq0l{flex:4;padding:4px 8px;border:var(--jse-input-border, 1px solid #d8dbdf);border-radius:var(--jse-input-radius, 3px);outline:none;background:var(--jse-input-background, var(--jse-background-color, #fff));color:inherit}table.jse-transform-wizard.svelte-ijtq0l tr td .jse-horizontal .jse-filter-value.svelte-ijtq0l:focus{border:var(--jse-input-border-focus, 1px solid var(--jse-input-border-focus, var(--jse-theme-color, #3883fa)))}")}function sN(e){var t,n,r,o,i,a,s,c,u,l,f,d,h,v,p,m,g,y,b,w,x,k,j,S,C,$,_,O,M,A,E,P,T,R,N;function I(t){e[16](t)}var D={class:"jse-filter-path",showChevron:!0,items:e[7]};function z(t){e[17](t)}void 0!==e[0]&&(D.value=e[0]),s=new iN({props:D}),ta.push((function(){return Aa(s,"value",I)}));var B={class:"jse-filter-relation",showChevron:!0,items:e[8]};function L(t){e[19](t)}void 0!==e[1]&&(B.value=e[1]),l=new iN({props:B}),ta.push((function(){return Aa(l,"value",z)}));var q={class:"jse-sort-path",showChevron:!0,items:e[7]};function F(t){e[20](t)}void 0!==e[3]&&(q.value=e[3]),w=new iN({props:q}),ta.push((function(){return Aa(w,"value",L)}));var V={class:"jse-sort-direction",showChevron:!0,items:e[9]};function H(t){e[21](t)}void 0!==e[4]&&(V.value=e[4]),j=new iN({props:V}),ta.push((function(){return Aa(j,"value",F)}));var W={class:"jse-projection-paths",multiple:!0,showChevron:!0,items:e[6]};return void 0!==e[5]&&(W.value=e[5]),E=new iN({props:W}),ta.push((function(){return Aa(E,"value",H)})),{c:function(){t=ki("table"),n=ki("tr"),(r=ki("th")).textContent="Filter",o=Ci(),i=ki("td"),a=ki("div"),Ea(s.$$.fragment),u=Ci(),Ea(l.$$.fragment),d=Ci(),h=ki("input"),v=Ci(),p=ki("tr"),(m=ki("th")).textContent="Sort",g=Ci(),y=ki("td"),b=ki("div"),Ea(w.$$.fragment),k=Ci(),Ea(j.$$.fragment),C=Ci(),$=ki("tr"),(_=ki("th")).textContent="Pick",O=Ci(),M=ki("td"),A=ki("div"),Ea(E.$$.fragment),Ai(r,"class","svelte-ijtq0l"),Ai(h,"class","jse-filter-value svelte-ijtq0l"),Ai(a,"class","jse-horizontal svelte-ijtq0l"),Ai(m,"class","svelte-ijtq0l"),Ai(b,"class","jse-horizontal svelte-ijtq0l"),Ai(_,"class","svelte-ijtq0l"),Ai(A,"class","jse-horizontal svelte-ijtq0l"),Ai(t,"class","jse-transform-wizard svelte-ijtq0l")},m:function(c,f){bi(c,t,f),vi(t,n),vi(n,r),vi(n,o),vi(n,i),vi(i,a),Pa(s,a,null),vi(a,u),Pa(l,a,null),vi(a,d),vi(a,h),Ni(h,e[2]),vi(t,v),vi(t,p),vi(p,m),vi(p,g),vi(p,y),vi(y,b),Pa(w,b,null),vi(b,k),Pa(j,b,null),vi(t,C),vi(t,$),vi($,_),vi($,O),vi($,M),vi(M,A),Pa(E,A,null),T=!0,R||(N=_i(h,"input",e[18]),R=!0)},p:function(e,t){var n=jo(t,1)[0],r={};128&n&&(r.items=e[7]),!c&&1&n&&(c=!0,r.value=e[0],ua((function(){return c=!1}))),s.$set(r);var o={};!f&&2&n&&(f=!0,o.value=e[1],ua((function(){return f=!1}))),l.$set(o),4&n&&h.value!==e[2]&&Ni(h,e[2]);var i={};128&n&&(i.items=e[7]),!x&&8&n&&(x=!0,i.value=e[3],ua((function(){return x=!1}))),w.$set(i);var a={};!S&&16&n&&(S=!0,a.value=e[4],ua((function(){return S=!1}))),j.$set(a);var u={};64&n&&(u.items=e[6]),!P&&32&n&&(P=!0,u.value=e[5],ua((function(){return P=!1}))),E.$set(u)},i:function(e){T||(wa(s.$$.fragment,e),wa(l.$$.fragment,e),wa(w.$$.fragment,e),wa(j.$$.fragment,e),wa(E.$$.fragment,e),T=!0)},o:function(e){xa(s.$$.fragment,e),xa(l.$$.fragment,e),xa(w.$$.fragment,e),xa(j.$$.fragment,e),xa(E.$$.fragment,e),T=!1},d:function(e){e&&wi(t),Ta(s),Ta(l),Ta(w),Ta(j),Ta(E),R=!1,N()}}}function cN(e,t,n){var r,o,i,a,s,c,u,l,f,d,h,v=Ia("jsoneditor:TransformWizard"),p=t.json,m=t.queryOptions,g=void 0===m?{}:m,y=t.onChange,b=["==","!=","<","<=",">",">="].map((function(e){return{value:e,label:e}})),w=[{value:"asc",label:"ascending"},{value:"desc",label:"descending"}],x=null!==(r=g)&&void 0!==r&&null!==(r=r.filter)&&void 0!==r&&r.path?QO(g.filter.path):null,k=null!==(o=g)&&void 0!==o&&null!==(o=o.filter)&&void 0!==o&&o.relation?b.find((function(e){var t;return e.value===(null===(t=g.filter)||void 0===t?void 0:t.relation)})):null,j=(null===(i=g)||void 0===i||null===(i=i.filter)||void 0===i?void 0:i.value)||"",S=null!==(a=g)&&void 0!==a&&null!==(a=a.sort)&&void 0!==a&&a.path?QO(g.sort.path):null,C=null!==(s=g)&&void 0!==s&&null!==(s=s.sort)&&void 0!==s&&s.direction?w.find((function(e){var t;return e.value===(null===(t=g.sort)||void 0===t?void 0:t.direction)})):null;return e.$$set=function(e){"json"in e&&n(11,p=e.json),"queryOptions"in e&&n(10,g=e.queryOptions),"onChange"in e&&n(12,y=e.onChange)},e.$$.update=function(){var t,r,o,i,a,s,m,b,w,$,_,O,M;(2048&e.$$.dirty&&n(15,c=Array.isArray(p)),34816&e.$$.dirty&&n(14,u=c?R_(p):[]),34816&e.$$.dirty&&n(13,l=c?R_(p,!0):[]),16384&e.$$.dirty&&n(7,f=u.map(QO)),8192&e.$$.dirty&&n(6,d=l?l.map(QO):[]),1088&e.$$.dirty)&&n(5,h=null!==(t=g)&&void 0!==t&&null!==(t=t.projection)&&void 0!==t&&t.paths&&d?g.projection.paths.map((function(e){return d.find((function(t){return Ax(t.value,e)}))})).filter((function(e){return!!e})):null);1&e.$$.dirty&&(o=null===(r=x)||void 0===r?void 0:r.value,Ax(null===(i=g)||void 0===i||null===(i=i.filter)||void 0===i?void 0:i.path,o)||(v("changeFilterPath",o),n(10,g=Us(g,["filter","path"],o,!0)),y(g)));2&e.$$.dirty&&(s=null===(a=k)||void 0===a?void 0:a.value,Ax(null===(m=g)||void 0===m||null===(m=m.filter)||void 0===m?void 0:m.relation,s)||(v("changeFilterRelation",s),n(10,g=Us(g,["filter","relation"],s,!0)),y(g)));(4&e.$$.dirty&&(b=j,Ax(null===(w=g)||void 0===w||null===(w=w.filter)||void 0===w?void 0:w.value,b)||(v("changeFilterValue",b),n(10,g=Us(g,["filter","value"],b,!0)),y(g))),8&e.$$.dirty)&&function(e){var t;Ax(null===(t=g)||void 0===t||null===(t=t.sort)||void 0===t?void 0:t.path,e)||(v("changeSortPath",e),n(10,g=Us(g,["sort","path"],e,!0)),y(g))}(null===($=S)||void 0===$?void 0:$.value);16&e.$$.dirty&&(O=null===(_=C)||void 0===_?void 0:_.value,Ax(null===(M=g)||void 0===M||null===(M=M.sort)||void 0===M?void 0:M.direction,O)||(v("changeSortDirection",O),n(10,g=Us(g,["sort","direction"],O,!0)),y(g)));32&e.$$.dirty&&function(e){var t;Ax(null===(t=g)||void 0===t||null===(t=t.projection)||void 0===t?void 0:t.paths,e)||(v("changeProjectionPaths",e),n(10,g=Us(g,["projection","paths"],e,!0)),y(g))}(h?h.map((function(e){return e.value})):void 0)},[x,k,j,S,C,h,d,f,b,w,g,p,y,l,u,c,function(e){n(0,x=e)},function(e){n(1,k=e)},function(){j=this.value,n(2,j)},function(e){n(3,S=e)},function(e){n(4,C=e)},function(e){n(5,h=e),n(10,g),n(6,d),n(13,l),n(15,c),n(11,p)}]}var uN=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,cN,sN,Xo,{json:11,queryOptions:10,onChange:12},aN),n}return Ao(t,Na),Io(t)}();function lN(e){pi(e,"svelte-1wg043c",'.jse-select-query-language.svelte-1wg043c.svelte-1wg043c{position:relative;width:32px}.jse-select-query-language.svelte-1wg043c .jse-select-query-language-container.svelte-1wg043c{position:absolute;top:0;right:0;display:flex;flex-direction:column;box-shadow:var(--jse-controls-box-shadow, 0 2px 6px 0 rgba(0, 0, 0, 0.24))}.jse-select-query-language.svelte-1wg043c .jse-select-query-language-container .jse-query-language.svelte-1wg043c{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);padding:5px;margin:0;text-align:left;padding:var(--jse-padding, 10px) calc(2 * var(--jse-padding, 10px));white-space:nowrap;color:var(--jse-context-menu-color, var(--jse-text-color-inverse, #fff));background:var(--jse-context-menu-background, #656565)}.jse-select-query-language.svelte-1wg043c .jse-select-query-language-container .jse-query-language.svelte-1wg043c:hover{background:var(--jse-context-menu-background-highlight, #7a7a7a)}')}function fN(e,t,n){var r=e.slice();return r[5]=t[n],r}function dN(e){var t,n;return t=new SM({props:{data:sM}}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}function hN(e){var t,n;return t=new SM({props:{data:aM}}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}function vN(e){var t,n,r,o,i,a,s,c,u,l,f=e[5].name+"",d=[hN,dN],h=[];function v(e,t){return e[5].id===e[0]?0:1}function p(){return e[4](e[5])}return n=v(e),r=h[n]=d[n](e),{c:function(){t=ki("button"),r.c(),o=Ci(),i=Si(f),a=Ci(),Ai(t,"type","button"),Ai(t,"class","jse-query-language svelte-1wg043c"),Ai(t,"title",s="Select ".concat(e[5].name," as query language")),zi(t,"selected",e[5].id===e[0])},m:function(e,r){bi(e,t,r),h[n].m(t,null),vi(t,o),vi(t,i),vi(t,a),c=!0,u||(l=_i(t,"click",p),u=!0)},p:function(a,u){var l=n;(n=v(e=a))!==l&&(ya(),xa(h[l],1,1,(function(){h[l]=null})),ba(),(r=h[n])||(r=h[n]=d[n](e)).c(),wa(r,1),r.m(t,o)),(!c||2&u)&&f!==(f=e[5].name+"")&&Ri(i,f),(!c||2&u&&s!==(s="Select ".concat(e[5].name," as query language")))&&Ai(t,"title",s),(!c||3&u)&&zi(t,"selected",e[5].id===e[0])},i:function(e){c||(wa(r),c=!0)},o:function(e){xa(r),c=!1},d:function(e){e&&wi(t),h[n].d(),u=!1,l()}}}function pN(e){for(var t,n,r,o=Sa(e[1]),i=[],a=0;a<o.length;a+=1)i[a]=vN(fN(e,o,a));var s=function(e){return xa(i[e],1,1,(function(){i[e]=null}))};return{c:function(){t=ki("div"),n=ki("div");for(var e=0;e<i.length;e+=1)i[e].c();Ai(n,"class","jse-select-query-language-container svelte-1wg043c"),Ai(t,"class","jse-select-query-language svelte-1wg043c")},m:function(e,o){bi(e,t,o),vi(t,n);for(var a=0;a<i.length;a+=1)i[a]&&i[a].m(n,null);r=!0},p:function(e,t){var r=jo(t,1)[0];if(7&r){var a;for(o=Sa(e[1]),a=0;a<o.length;a+=1){var c=fN(e,o,a);i[a]?(i[a].p(c,r),wa(i[a],1)):(i[a]=vN(c),i[a].c(),wa(i[a],1),i[a].m(n,null))}for(ya(),a=o.length;a<i.length;a+=1)s(a);ba()}},i:function(e){if(!r){for(var t=0;t<o.length;t+=1)wa(i[t]);r=!0}},o:function(e){i=i.filter(Boolean);for(var t=0;t<i.length;t+=1)xa(i[t]);r=!1},d:function(e){e&&wi(t),xi(i,e)}}}function mN(e,t,n){var r=t.queryLanguages,o=t.queryLanguageId,i=t.onChangeQueryLanguage;function a(e){n(0,o=e),i(e)}return e.$$set=function(e){"queryLanguages"in e&&n(1,r=e.queryLanguages),"queryLanguageId"in e&&n(0,o=e.queryLanguageId),"onChangeQueryLanguage"in e&&n(3,i=e.onChangeQueryLanguage)},[o,r,a,i,function(e){return a(e.id)}]}var gN=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,mN,pN,Yo,{queryLanguages:1,queryLanguageId:0,onChangeQueryLanguage:3},lN),n}return Ao(t,Na),Io(t)}();function yN(e){pi(e,"svelte-1n68mbh",".jse-header.svelte-1n68mbh.svelte-1n68mbh{display:flex;background:var(--jse-theme-color, #3883fa);color:var(--jse-menu-color, var(--jse-text-color-inverse, #fff))}.jse-header.svelte-1n68mbh .jse-title.svelte-1n68mbh{flex:1;padding:5px;vertical-align:middle}.jse-header.svelte-1n68mbh button.svelte-1n68mbh{border:none;background:transparent;min-width:32px;color:inherit;cursor:pointer}.jse-header.svelte-1n68mbh button.svelte-1n68mbh:hover{background:rgba(255, 255, 255, 0.1)}")}var bN=function(e){return{}},wN=function(e){return{}};function xN(e){var t,n,r,o,i;return n=new SM({props:{data:e[0]?ZE:IP}}),{c:function(){t=ki("button"),Ea(n.$$.fragment),Ai(t,"type","button"),Ai(t,"class","jse-fullscreen svelte-1n68mbh"),Ai(t,"title","Toggle full screen")},m:function(a,s){bi(a,t,s),Pa(n,t,null),r=!0,o||(i=_i(t,"click",e[7]),o=!0)},p:function(e,t){var r={};1&t&&(r.data=e[0]?ZE:IP),n.$set(r)},i:function(e){r||(wa(n.$$.fragment,e),r=!0)},o:function(e){xa(n.$$.fragment,e),r=!1},d:function(e){e&&wi(t),Ta(n),o=!1,i()}}}function kN(e){var t,n,r,o,i,a,s,c,u,l,f,d=e[6].actions,h=Zo(d,e,e[5],wN),v=e[2]&&xN(e);return c=new SM({props:{data:RP}}),{c:function(){t=ki("div"),n=ki("div"),r=Si(e[1]),o=Ci(),h&&h.c(),i=Ci(),v&&v.c(),a=Ci(),s=ki("button"),Ea(c.$$.fragment),Ai(n,"class","jse-title svelte-1n68mbh"),Ai(s,"type","button"),Ai(s,"class","jse-close svelte-1n68mbh"),Ai(t,"class","jse-header svelte-1n68mbh")},m:function(d,p){bi(d,t,p),vi(t,n),vi(n,r),vi(t,o),h&&h.m(t,null),vi(t,i),v&&v.m(t,null),vi(t,a),vi(t,s),Pa(c,s,null),u=!0,l||(f=_i(s,"click",e[8]),l=!0)},p:function(e,n){var o=jo(n,1)[0];(!u||2&o)&&Ri(r,e[1]),h&&h.p&&(!u||32&o)&&ni(h,d,e,e[5],u?ti(d,e[5],o,bN):ri(e[5]),wN),e[2]?v?(v.p(e,o),4&o&&wa(v,1)):((v=xN(e)).c(),wa(v,1),v.m(t,a)):v&&(ya(),xa(v,1,1,(function(){v=null})),ba())},i:function(e){u||(wa(h,e),wa(v),wa(c.$$.fragment,e),u=!0)},o:function(e){xa(h,e),xa(v),xa(c.$$.fragment,e),u=!1},d:function(e){e&&wi(t),h&&h.d(e),v&&v.d(),Ta(c),l=!1,f()}}}function jN(e,t,n){var r=t.$$slots,o=void 0===r?{}:r,i=t.$$scope,a=t.title,s=void 0===a?"Modal":a,c=t.fullScreenButton,u=void 0!==c&&c,l=t.fullscreen,f=void 0!==l&&l,d=t.onClose,h=void 0===d?void 0:d,v=Xi("simple-modal").close;return e.$$set=function(e){"title"in e&&n(1,s=e.title),"fullScreenButton"in e&&n(2,u=e.fullScreenButton),"fullscreen"in e&&n(0,f=e.fullscreen),"onClose"in e&&n(3,h=e.onClose),"$$scope"in e&&n(5,i=e.$$scope)},[f,s,u,h,v,i,o,function(){return n(0,f=!f)},function(){h?h():v()}]}var SN=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,jN,kN,Xo,{title:1,fullScreenButton:2,fullscreen:0,onClose:3},yN),n}return Ao(t,Na),Io(t)}();function CN(e){pi(e,"svelte-zdpca7",".jse-config.svelte-zdpca7{border:none;background:transparent;min-width:32px;color:inherit;cursor:pointer}.jse-config.svelte-zdpca7:hover{background:rgba(255, 255, 255, 0.1)}.jse-config.hide.svelte-zdpca7{display:none}")}function $N(e){var t,n,r,o,i;return n=new SM({props:{data:xP}}),{c:function(){t=ki("button"),Ea(n.$$.fragment),Ai(t,"slot","actions"),Ai(t,"type","button"),Ai(t,"class","jse-config svelte-zdpca7"),Ai(t,"title","Select a query language"),zi(t,"hide",e[1].length<=1)},m:function(a,s){bi(a,t,s),Pa(n,t,null),e[7](t),r=!0,o||(i=_i(t,"click",e[4]),o=!0)},p:function(e,n){(!r||2&n)&&zi(t,"hide",e[1].length<=1)},i:function(e){r||(wa(n.$$.fragment,e),r=!0)},o:function(e){xa(n.$$.fragment,e),r=!1},d:function(r){r&&wi(t),Ta(n),e[7](null),o=!1,i()}}}function _N(e){var t,n,r;function o(t){e[8](t)}var i={title:"Transform",fullScreenButton:!0,onClose:e[3],$$slots:{actions:[$N]},$$scope:{ctx:e}};return void 0!==e[0]&&(i.fullscreen=e[0]),t=new SN({props:i}),ta.push((function(){return Aa(t,"fullscreen",o)})),{c:function(){Ea(t.$$.fragment)},m:function(e,n){Pa(t,e,n),r=!0},p:function(e,r){var o=jo(r,1)[0],i={};4102&o&&(i.$$scope={dirty:o,ctx:e}),!n&&1&o&&(n=!0,i.fullscreen=e[0],ua((function(){return n=!1}))),t.$set(i)},i:function(e){r||(wa(t.$$.fragment,e),r=!0)},o:function(e){xa(t.$$.fragment,e),r=!1},d:function(e){Ta(t,e)}}}function ON(e,t,n){var r,o,i=t.queryLanguages,a=t.queryLanguageId,s=t.onChangeQueryLanguage,c=t.fullscreen,u=Xi("simple-modal").close,l=Xi("absolute-popup"),f=l.openAbsolutePopup,d=l.closeAbsolutePopup;return e.$$set=function(e){"queryLanguages"in e&&n(1,i=e.queryLanguages),"queryLanguageId"in e&&n(5,a=e.queryLanguageId),"onChangeQueryLanguage"in e&&n(6,s=e.onChangeQueryLanguage),"fullscreen"in e&&n(0,c=e.fullscreen)},[c,i,r,u,function(){var e={queryLanguages:i,queryLanguageId:a,onChangeQueryLanguage:function(e){d(o),s(e)}};o=f(gN,e,{offsetTop:-2,offsetLeft:0,anchor:r,closeOnOuterClick:!0})},a,s,function(e){ta[e?"unshift":"push"]((function(){n(2,r=e)}))},function(e){n(0,c=e)}]}var MN=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,ON,_N,Xo,{queryLanguages:1,queryLanguageId:5,onChangeQueryLanguage:6,fullscreen:0},CN),n}return Ao(t,Na),Io(t)}(),AN=Ia("jsoneditor:AutoScrollHandler");var EN=function(e,t,n,r){return(e/=r/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t},PN=function(){var e,t,n,r,o,i,a,s,c,u,l,f,d;function h(t){return t.getBoundingClientRect().top-(e.getBoundingClientRect?e.getBoundingClientRect().top:0)+n}function v(t){e.scrollTo?e.scrollTo(e.scrollLeft,t):e.scrollTop=t}function p(e){u||(u=e),v(i(l=e-u,n,s,c)),d=!0,l<c?requestAnimationFrame(p):function(){if(v(n+s),t&&a){t.setAttribute("tabindex","-1"),t.focus()}"function"==typeof f&&f();u=0,d=!1}()}return function(l){var v=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(c=1e3,o=v.offset||0,f=v.callback,i=v.easing||EN,a=v.a11y||!1,Vo(v.container)){case"object":e=v.container;break;case"string":e=document.querySelector(v.container);break;default:e=window.document.documentElement}switch(n=e.scrollTop,Vo(l)){case"number":t=void 0,a=!1,r=n+l;break;case"object":r=h(t=l);break;case"string":t=document.querySelector(l),r=h(t)}switch(s=r-n+o,Vo(v.duration)){case"number":c=v.duration;break;case"function":c=v.duration(s)}d?u=0:requestAnimationFrame(p)}},TN=1e3,RN=Ia("jsoneditor:History");function NN(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.maxItems||TN,n=[],r=0;function o(){return r<n.length}function i(){return r>0}function a(){return{canUndo:o(),canRedo:i(),length:n.length}}function s(){e.onChange&&e.onChange(a())}return{add:function(e){RN("add",e),n=[e].concat(n.slice(r)).slice(0,t),r=0,s()},clear:function(){RN("clear"),n=[],r=0,s()},getState:a,undo:function(){if(o()){var e=n[r];return r+=1,RN("undo",e),s(),e}},redo:function(){if(i())return RN("redo",n[r-=1]),s(),n[r]}}}function IN(e,t){var n=Date.now(),r=e();return t(Date.now()-n),r}var DN=Ia("validation");function zN(e,t,n,r){if(DN("validateJSON"),!t)return[];if(n!==r){var o=n.stringify(e);return t(void 0!==o?r.parse(o):void 0)}return t(e)}function BN(e,t,n,r){if(DN("validateText"),e.length>ds)return{validationErrors:[{path:[],message:"Validation turned off: the document is too large",severity:Xa.info}]};if(0===e.length)return null;try{var o=IN((function(){return n.parse(e)}),(function(e){return DN("validate: parsed json in ".concat(e," ms"))}));if(!t)return null;var i=n===r?o:IN((function(){return r.parse(e)}),(function(e){return DN("validate: parsed json with the validationParser in ".concat(e," ms"))})),a=IN((function(){return t(i)}),(function(e){return DN("validate: validated json in ".concat(e," ms"))}));return Mx(a)?null:{validationErrors:a}}catch(t){var s=IN((function(){return function(e,t){if(e.length>hs)return!1;try{return t.parse(Hu(e)),!0}catch(e){return!1}}(e,n)}),(function(e){return DN("validate: checked whether repairable in ".concat(e," ms"))}));return{parseError:W_(e,t.message||t.toString()),isRepairable:s}}}var LN=Ia("jsoneditor:FocusTracker");function qN(e){var t,n=e.onMount,r=e.onDestroy,o=e.getWindow,i=e.hasFocus,a=e.onFocus,s=e.onBlur,c=!1;function u(){var e=i();e&&(clearTimeout(t),c||(LN("focus"),a(),c=e))}function l(){c&&(clearTimeout(t),t=setTimeout((function(){i()||(LN("blur"),c=!1,s())})))}n((function(){LN("mount FocusTracker");var e=o();e&&(e.addEventListener("focusin",u,!0),e.addEventListener("focusout",l,!0))})),r((function(){LN("destroy FocusTracker");var e=o();e&&(e.removeEventListener("focusin",u,!0),e.removeEventListener("focusout",l,!0))}))}function FN(e){pi(e,"svelte-p1zf9f",'.jse-message.svelte-p1zf9f.svelte-p1zf9f{font-family:var(--jse-font-family-mono, consolas, menlo, monaco, "Ubuntu Mono", "source-code-pro", monospace);font-size:var(--jse-font-size-mono, 14px);padding:var(--jse-padding, 10px);display:flex;gap:var(--jse-padding, 10px);flex-wrap:wrap;align-items:stretch}.jse-message.jse-success.svelte-p1zf9f.svelte-p1zf9f{background:var(--message-success-background, #9ac45d);color:var(--jse-message-success-color, #fff)}.jse-message.svelte-p1zf9f .jse-text.svelte-p1zf9f{display:flex;flex:1;min-width:60%;align-items:center}.jse-message.svelte-p1zf9f .jse-text.jse-clickable.svelte-p1zf9f{cursor:pointer}.jse-message.svelte-p1zf9f .jse-text.jse-clickable.svelte-p1zf9f:hover{background-color:rgba(255, 255, 255, 0.1)}.jse-message.jse-error.svelte-p1zf9f.svelte-p1zf9f{background:var(--jse-message-error-background, var(--jse-error-color, #ee5341));color:var(--jse-message-error-color, #fff)}.jse-message.jse-warning.svelte-p1zf9f.svelte-p1zf9f{background:var(--jse-message-warning-background, #ffde5c);color:var(--jse-message-warning-color, #4d4d4d)}.jse-message.jse-info.svelte-p1zf9f.svelte-p1zf9f{background:var(--jse-message-info-background, #4f91ff);color:var(--jse-message-info-color, #fff)}.jse-message.svelte-p1zf9f .jse-actions.svelte-p1zf9f{display:flex;gap:var(--jse-padding, 10px)}.jse-message.svelte-p1zf9f .jse-actions button.jse-action.svelte-p1zf9f{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);padding:5px;margin:0;background:var(--jse-message-action-background, rgba(255, 255, 255, 0.2));color:inherit;padding:calc(0.5 * var(--jse-padding, 10px)) var(--jse-padding, 10px)}.jse-message.svelte-p1zf9f .jse-actions button.jse-action.svelte-p1zf9f:hover{background:var(--jse-message-action-background-highlight, rgba(255, 255, 255, 0.3))}')}function VN(e,t,n){var r=e.slice();return r[9]=t[n],r}function HN(e){var t,n;return t=new SM({props:{data:e[1]}}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},p:function(e,n){var r={};2&n&&(r.data=e[1]),t.$set(r)},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}function WN(e){var t,n;return t=new SM({props:{data:e[9].icon}}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},p:function(e,n){var r={};8&n&&(r.data=e[9].icon),t.$set(r)},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}function UN(e){var t,n,r,o,i,a,s,c,u,l=e[9].text+"",f=e[9].icon&&WN(e);function d(){return e[7](e[9])}function h(){return e[8](e[9])}return{c:function(){t=ki("button"),f&&f.c(),n=Ci(),r=Si(l),o=Ci(),Ai(t,"type","button"),Ai(t,"class","jse-button jse-action jse-primary svelte-p1zf9f"),Ai(t,"title",i=e[9].title),t.disabled=a=e[9].disabled},m:function(e,i){bi(e,t,i),f&&f.m(t,null),vi(t,n),vi(t,r),vi(t,o),s=!0,c||(u=[_i(t,"click",d),_i(t,"mousedown",h)],c=!0)},p:function(o,c){(e=o)[9].icon?f?(f.p(e,c),8&c&&wa(f,1)):((f=WN(e)).c(),wa(f,1),f.m(t,n)):f&&(ya(),xa(f,1,1,(function(){f=null})),ba()),(!s||8&c)&&l!==(l=e[9].text+"")&&Ri(r,l),(!s||8&c&&i!==(i=e[9].title))&&Ai(t,"title",i),(!s||8&c&&a!==(a=e[9].disabled))&&(t.disabled=a)},i:function(e){s||(wa(f),s=!0)},o:function(e){xa(f),s=!1},d:function(e){e&&wi(t),f&&f.d(),c=!1,Go(u)}}}function JN(e){for(var t,n,r,o,i,a,s,c,u,l,f,d=e[1]&&HN(e),h=Sa(e[3]),v=[],p=0;p<h.length;p+=1)v[p]=UN(VN(e,h,p));var m=function(e){return xa(v[e],1,1,(function(){v[e]=null}))};return{c:function(){t=ki("div"),n=ki("div"),r=ki("div"),d&&d.c(),o=Ci(),i=Si(e[2]),a=Ci(),s=ki("div");for(var u=0;u<v.length;u+=1)v[u].c();Ai(r,"class","jse-text-centered"),Ai(n,"role","button"),Ai(n,"tabindex","-1"),Ai(n,"class","jse-text svelte-p1zf9f"),zi(n,"jse-clickable",!!e[4]),Ai(s,"class","jse-actions svelte-p1zf9f"),Ai(t,"class",c="jse-message jse-"+e[0]+" svelte-p1zf9f")},m:function(c,h){bi(c,t,h),vi(t,n),vi(n,r),d&&d.m(r,null),vi(r,o),vi(r,i),vi(t,a),vi(t,s);for(var p=0;p<v.length;p+=1)v[p]&&v[p].m(s,null);u=!0,l||(f=_i(n,"click",e[5]),l=!0)},p:function(e,a){var l=jo(a,1)[0];if(e[1]?d?(d.p(e,l),2&l&&wa(d,1)):((d=HN(e)).c(),wa(d,1),d.m(r,o)):d&&(ya(),xa(d,1,1,(function(){d=null})),ba()),(!u||4&l)&&Ri(i,e[2]),(!u||16&l)&&zi(n,"jse-clickable",!!e[4]),8&l){var f;for(h=Sa(e[3]),f=0;f<h.length;f+=1){var p=VN(e,h,f);v[f]?(v[f].p(p,l),wa(v[f],1)):(v[f]=UN(p),v[f].c(),wa(v[f],1),v[f].m(s,null))}for(ya(),f=h.length;f<v.length;f+=1)m(f);ba()}(!u||1&l&&c!==(c="jse-message jse-"+e[0]+" svelte-p1zf9f"))&&Ai(t,"class",c)},i:function(e){if(!u){wa(d);for(var t=0;t<h.length;t+=1)wa(v[t]);u=!0}},o:function(e){xa(d),v=v.filter(Boolean);for(var t=0;t<v.length;t+=1)xa(v[t]);u=!1},d:function(e){e&&wi(t),d&&d.d(),xi(v,e),l=!1,f()}}}function KN(e,t,n){var r=t.type,o=void 0===r?"success":r,i=t.icon,a=void 0===i?void 0:i,s=t.message,c=void 0===s?void 0:s,u=t.actions,l=void 0===u?[]:u,f=t.onClick,d=void 0===f?void 0:f,h=t.onClose,v=void 0===h?void 0:h;v&&Gi(v);return e.$$set=function(e){"type"in e&&n(0,o=e.type),"icon"in e&&n(1,a=e.icon),"message"in e&&n(2,c=e.message),"actions"in e&&n(3,l=e.actions),"onClick"in e&&n(4,d=e.onClick),"onClose"in e&&n(6,v=e.onClose)},[o,a,c,l,d,function(){d&&d()},v,function(e){e.onClick&&e.onClick()},function(e){e.onMouseDown&&e.onMouseDown()}]}var GN=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,KN,JN,Xo,{type:0,icon:1,message:2,actions:3,onClick:4,onClose:6},FN),n}return Ao(t,Na),Io(t)}();function QN(e){pi(e,"svelte-1gq3gfv",'.jse-validation-errors-overview.svelte-1gq3gfv.svelte-1gq3gfv{font-family:var(--jse-font-family-mono, consolas, menlo, monaco, "Ubuntu Mono", "source-code-pro", monospace);font-size:var(--jse-font-size-mono, 14px);overflow:auto;max-height:25%}.jse-validation-errors-overview.svelte-1gq3gfv table.svelte-1gq3gfv{border-collapse:collapse;width:100%}.jse-validation-errors-overview.svelte-1gq3gfv table tr.svelte-1gq3gfv{cursor:pointer}.jse-validation-errors-overview.svelte-1gq3gfv table tr.jse-validation-error.svelte-1gq3gfv{background:var(--jse-message-error-background, var(--jse-error-color, #ee5341));color:var(--jse-message-error-color, #fff)}.jse-validation-errors-overview.svelte-1gq3gfv table tr.jse-validation-warning.svelte-1gq3gfv{background:var(--jse-message-warning-background, #ffde5c);color:var(--jse-message-warning-color, #4d4d4d)}.jse-validation-errors-overview.svelte-1gq3gfv table tr.jse-validation-warning.svelte-1gq3gfv:hover{filter:brightness(105%)}.jse-validation-errors-overview.svelte-1gq3gfv table tr.jse-validation-info.svelte-1gq3gfv{background:var(--jse-message-info-background, #4f91ff);color:var(--jse-message-info-color, #fff)}.jse-validation-errors-overview.svelte-1gq3gfv table tr.svelte-1gq3gfv:hover{filter:brightness(110%)}.jse-validation-errors-overview.svelte-1gq3gfv table tr td.svelte-1gq3gfv{padding:4px var(--jse-padding, 10px);vertical-align:middle}.jse-validation-errors-overview.svelte-1gq3gfv table tr td.jse-validation-error-icon.svelte-1gq3gfv{width:36px;box-sizing:border-box}.jse-validation-errors-overview.svelte-1gq3gfv table tr td.jse-validation-error-action.svelte-1gq3gfv{width:36px;box-sizing:border-box;padding:0}.jse-validation-errors-overview.svelte-1gq3gfv table tr td.jse-validation-error-action button.jse-validation-errors-collapse.svelte-1gq3gfv{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);padding:5px;margin:0;width:36px;height:26px;cursor:pointer}.jse-validation-errors-overview.svelte-1gq3gfv table tr td.jse-validation-error-action button.jse-validation-errors-collapse.svelte-1gq3gfv:hover{background-color:rgba(255, 255, 255, 0.2)}.jse-validation-errors-overview.svelte-1gq3gfv table tr td div.jse-validation-errors-expand.svelte-1gq3gfv{display:inline-block;position:relative;top:3px}')}function YN(e,t,n){var r=e.slice();return r[8]=t[n],r[10]=n,r}function XN(e){var t,n,r,o,i=[eI,ZN],a=[];function s(e,t){return e[2]||1===e[3]?0:1}return n=s(e),r=a[n]=i[n](e),{c:function(){t=ki("div"),r.c(),Ai(t,"class","jse-validation-errors-overview svelte-1gq3gfv")},m:function(e,r){bi(e,t,r),a[n].m(t,null),o=!0},p:function(e,o){var c=n;(n=s(e))===c?a[n].p(e,o):(ya(),xa(a[c],1,1,(function(){a[c]=null})),ba(),(r=a[n])?r.p(e,o):(r=a[n]=i[n](e)).c(),wa(r,1),r.m(t,null))},i:function(e){o||(wa(r),o=!0)},o:function(e){xa(r),o=!1},d:function(e){e&&wi(t),a[n].d()}}}function ZN(e){var t,n,r,o,i,a,s,c,u,l,f,d,h,v,p;return i=new SM({props:{data:BP}}),f=new SM({props:{data:uP}}),{c:function(){t=ki("table"),n=ki("tbody"),r=ki("tr"),o=ki("td"),Ea(i.$$.fragment),a=Ci(),s=ki("td"),c=Si(e[3]),u=Si(" validation errors\n              "),l=ki("div"),Ea(f.$$.fragment),Ai(o,"class","jse-validation-error-icon svelte-1gq3gfv"),Ai(l,"class","jse-validation-errors-expand svelte-1gq3gfv"),Ai(s,"class","jse-validation-error-count svelte-1gq3gfv"),Ai(r,"class",d="jse-validation-"+e[6](e[0])+" svelte-1gq3gfv"),Ai(t,"class","jse-validation-errors-overview-collapsed svelte-1gq3gfv")},m:function(d,m){bi(d,t,m),vi(t,n),vi(n,r),vi(r,o),Pa(i,o,null),vi(r,a),vi(r,s),vi(s,c),vi(s,u),vi(s,l),Pa(f,l,null),h=!0,v||(p=_i(r,"click",e[5]),v=!0)},p:function(e,t){(!h||8&t)&&Ri(c,e[3]),(!h||1&t&&d!==(d="jse-validation-"+e[6](e[0])+" svelte-1gq3gfv"))&&Ai(r,"class",d)},i:function(e){h||(wa(i.$$.fragment,e),wa(f.$$.fragment,e),h=!0)},o:function(e){xa(i.$$.fragment,e),xa(f.$$.fragment,e),h=!1},d:function(e){e&&wi(t),Ta(i),Ta(f),v=!1,p()}}}function eI(e){for(var t,n,r,o,i=Sa(I_(e[0],us)),a=[],s=0;s<i.length;s+=1)a[s]=nI(YN(e,i,s));var c=function(e){return xa(a[e],1,1,(function(){a[e]=null}))},u=e[3]>us&&rI(e);return{c:function(){t=ki("table"),n=ki("tbody");for(var e=0;e<a.length;e+=1)a[e].c();r=Ci(),u&&u.c(),Ai(t,"class","jse-validation-errors-overview-expanded svelte-1gq3gfv")},m:function(e,i){bi(e,t,i),vi(t,n);for(var s=0;s<a.length;s+=1)a[s]&&a[s].m(n,null);vi(n,r),u&&u.m(n,null),o=!0},p:function(e,t){if(19&t){var o;for(i=Sa(I_(e[0],us)),o=0;o<i.length;o+=1){var s=YN(e,i,o);a[o]?(a[o].p(s,t),wa(a[o],1)):(a[o]=nI(s),a[o].c(),wa(a[o],1),a[o].m(n,r))}for(ya(),o=i.length;o<a.length;o+=1)c(o);ba()}e[3]>us?u?u.p(e,t):((u=rI(e)).c(),u.m(n,null)):u&&(u.d(1),u=null)},i:function(e){if(!o){for(var t=0;t<i.length;t+=1)wa(a[t]);o=!0}},o:function(e){a=a.filter(Boolean);for(var t=0;t<a.length;t+=1)xa(a[t]);o=!1},d:function(e){e&&wi(t),xi(a,e),u&&u.d()}}}function tI(e){var t,n,r,o,i;return n=new SM({props:{data:$P}}),{c:function(){t=ki("button"),Ea(n.$$.fragment),Ai(t,"type","button"),Ai(t,"class","jse-validation-errors-collapse svelte-1gq3gfv"),Ai(t,"title","Collapse validation errors")},m:function(a,s){bi(a,t,s),Pa(n,t,null),r=!0,o||(i=_i(t,"click",Mi(e[4])),o=!0)},p:Ho,i:function(e){r||(wa(n.$$.fragment,e),r=!0)},o:function(e){xa(n.$$.fragment,e),r=!1},d:function(e){e&&wi(t),Ta(n),o=!1,i()}}}function nI(e){var t,n,r,o,i,a,s,c,u,l,f,d,h,v,p,m=KO(e[8].path)+"",g=e[8].message+"";r=new SM({props:{data:BP}});var y=0===e[10]&&e[0].length>1&&tI(e);function b(){return e[7](e[8])}return{c:function(){t=ki("tr"),n=ki("td"),Ea(r.$$.fragment),o=Ci(),i=ki("td"),a=Si(m),s=Ci(),c=ki("td"),u=Si(g),l=Ci(),f=ki("td"),y&&y.c(),Ai(n,"class","jse-validation-error-icon svelte-1gq3gfv"),Ai(i,"class","jse-validation-error-path svelte-1gq3gfv"),Ai(c,"class","jse-validation-error-message svelte-1gq3gfv"),Ai(f,"class","jse-validation-error-action svelte-1gq3gfv"),Ai(t,"class",d="jse-validation-"+e[8].severity+" svelte-1gq3gfv")},m:function(e,d){bi(e,t,d),vi(t,n),Pa(r,n,null),vi(t,o),vi(t,i),vi(i,a),vi(t,s),vi(t,c),vi(c,u),vi(t,l),vi(t,f),y&&y.m(f,null),h=!0,v||(p=_i(t,"click",b),v=!0)},p:function(n,r){e=n,(!h||1&r)&&m!==(m=KO(e[8].path)+"")&&Ri(a,m),(!h||1&r)&&g!==(g=e[8].message+"")&&Ri(u,g),0===e[10]&&e[0].length>1?y?(y.p(e,r),1&r&&wa(y,1)):((y=tI(e)).c(),wa(y,1),y.m(f,null)):y&&(ya(),xa(y,1,1,(function(){y=null})),ba()),(!h||1&r&&d!==(d="jse-validation-"+e[8].severity+" svelte-1gq3gfv"))&&Ai(t,"class",d)},i:function(e){h||(wa(r.$$.fragment,e),wa(y),h=!0)},o:function(e){xa(r.$$.fragment,e),xa(y),h=!1},d:function(e){e&&wi(t),Ta(r),y&&y.d(),v=!1,p()}}}function rI(e){var t,n,r,o,i,a,s,c,u,l,f,d=e[3]-us+"";return{c:function(){t=ki("tr"),n=ki("td"),r=Ci(),o=ki("td"),i=Ci(),a=ki("td"),s=Si("(and "),c=Si(d),u=Si(" more errors)"),l=Ci(),f=ki("td"),Ai(n,"class","svelte-1gq3gfv"),Ai(o,"class","svelte-1gq3gfv"),Ai(a,"class","svelte-1gq3gfv"),Ai(f,"class","svelte-1gq3gfv"),Ai(t,"class","jse-validation-error svelte-1gq3gfv")},m:function(e,d){bi(e,t,d),vi(t,n),vi(t,r),vi(t,o),vi(t,i),vi(t,a),vi(a,s),vi(a,c),vi(a,u),vi(t,l),vi(t,f)},p:function(e,t){8&t&&d!==(d=e[3]-us+"")&&Ri(c,d)},d:function(e){e&&wi(t)}}}function oI(e){var t,n,r=!Mx(e[0]),o=r&&XN(e);return{c:function(){o&&o.c(),t=$i()},m:function(e,r){o&&o.m(e,r),bi(e,t,r),n=!0},p:function(e,n){var i=jo(n,1)[0];1&i&&(r=!Mx(e[0])),r?o?(o.p(e,i),1&i&&wa(o,1)):((o=XN(e)).c(),wa(o,1),o.m(t.parentNode,t)):o&&(ya(),xa(o,1,1,(function(){o=null})),ba())},i:function(e){n||(wa(o),n=!0)},o:function(e){xa(o),n=!1},d:function(e){e&&wi(t),o&&o.d(e)}}}function iI(e,t,n){var r,o=t.validationErrors,i=t.selectError,a=!0;return e.$$set=function(e){"validationErrors"in e&&n(0,o=e.validationErrors),"selectError"in e&&n(1,i=e.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(e){return[Xa.error,Xa.warning,Xa.info].find((function(t){return e.some((function(e){return e.severity===t}))}))},function(e){setTimeout((function(){return i(e)}))}]}var aI=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,iI,oI,Xo,{validationErrors:0,selectError:1},QN),n}return Ao(t,Na),Io(t)}(),sI="undefined"!=typeof navigator&&navigator.platform.toUpperCase().indexOf("MAC")>=0,cI=[];function uI(e){if("Escape"===e.key){var t=mb(cI);t&&t()}}function lI(e,t){return Mx(cI)&&window.addEventListener("keydown",uI),cI.push(t),{destroy:function(){Mx(cI=cI.filter((function(e){return e!==t})))&&window.removeEventListener("keydown",uI)}}}function fI(e){pi(e,"svelte-1nm0t3v",'.jse-modal.svelte-1nm0t3v.svelte-1nm0t3v{flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);line-height:normal;background:var(--jse-modal-background, #f5f5f5);color:var(--jse-text-color, #4d4d4d)}.jse-modal.svelte-1nm0t3v .svelte-select{--border:var(--jse-svelte-select-border, 1px solid #d8dbdf);--item-is-active-bg:var(--jse-item-is-active-bg, #3883fa);--border-radius:var(--jse-svelte-select-border-radius, 3px);--background:var(--jse-svelte-select-background, #fff);--padding:var(--jse-svelte-select-padding, 0 10px);--multi-select-padding:var(--jse-svelte-select-multi-select-padding, 0 10px);--font-size:var(--jse-svelte-select-font-size, var(--jse-font-size, 16px));--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px}.jse-modal.svelte-1nm0t3v .jse-modal-contents.svelte-1nm0t3v{flex:1;display:flex;flex-direction:column;padding:20px;overflow:auto;min-width:0;min-height:0}.jse-modal.svelte-1nm0t3v .jse-modal-contents .jse-actions.svelte-1nm0t3v{display:flex;flex-direction:row;justify-content:flex-end;padding-top:var(--jse-padding, 10px)}.jse-modal.svelte-1nm0t3v .jse-modal-contents .jse-actions button.jse-primary.svelte-1nm0t3v{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);padding:5px;margin:0;background:var(--jse-button-primary-background, var(--jse-theme-color, #3883fa));color:var(--jse-button-primary-color, #fff);padding:var(--jse-padding, 10px) calc(2 * var(--jse-padding, 10px));border-radius:3px}.jse-modal.svelte-1nm0t3v .jse-modal-contents .jse-actions button.jse-primary.svelte-1nm0t3v:hover{background:var(--jse-button-primary-background-highlight, var(--jse-theme-color-highlight, #5f9dff))}.jse-modal.svelte-1nm0t3v .jse-modal-contents .jse-actions button.jse-primary.svelte-1nm0t3v:disabled{background:var(--jse-button-primary-background-disabled, #9d9d9d)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-overlay-background, rgba(0, 0, 0, 0.3))}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0;overflow:auto}.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;max-height:500px;display:flex}.bg.jse-modal-bg .jse-modal-window:has(div.fullscreen){margin:var(--jse-padding, 10px);padding:0;width:calc(100vw - 2 * var(--jse-padding, 10px));height:calc(100vh - 2 * var(--jse-padding, 10px));max-width:none;max-height:none}.bg.jse-modal-bg .jse-modal-container{flex:1;display:flex;flex-direction:column;padding:0;max-height:none}.jse-modal.jse-copy-paste.svelte-1nm0t3v .jse-shortcuts.svelte-1nm0t3v{display:flex;flex-wrap:wrap;justify-content:space-around;margin:calc(2 * var(--jse-padding, 10px)) 0}.jse-modal.jse-copy-paste.svelte-1nm0t3v .jse-shortcuts .jse-shortcut .jse-key.svelte-1nm0t3v{font-size:200%;color:var(--jse-theme-color, #3883fa)}')}function dI(e){var t,n,r,o,i,a,s,c,u,l,f,d,h,v,p,m,g,y,b,w,x,k,j,S;return n=new SN({props:{title:"Copying and pasting"}}),{c:function(){t=ki("div"),Ea(n.$$.fragment),r=Ci(),o=ki("div"),(i=ki("div")).textContent="These actions are unavailable via the menu. Please use:",a=Ci(),s=ki("div"),c=ki("div"),(u=ki("div")).textContent="".concat(e[1],"+C"),l=Si("\n        for copy"),f=Ci(),d=ki("div"),(h=ki("div")).textContent="".concat(e[1],"+X"),v=Si("\n        for cut"),p=Ci(),m=ki("div"),(g=ki("div")).textContent="".concat(e[1],"+V"),y=Si("\n        for paste"),b=Ci(),w=ki("div"),(x=ki("button")).textContent="Close",Ai(u,"class","jse-key svelte-1nm0t3v"),Ai(c,"class","jse-shortcut"),Ai(h,"class","jse-key svelte-1nm0t3v"),Ai(d,"class","jse-shortcut"),Ai(g,"class","jse-key svelte-1nm0t3v"),Ai(m,"class","jse-shortcut"),Ai(s,"class","jse-shortcuts svelte-1nm0t3v"),Ai(x,"type","button"),Ai(x,"class","jse-primary svelte-1nm0t3v"),Ai(w,"class","jse-actions svelte-1nm0t3v"),Ai(o,"class","jse-modal-contents svelte-1nm0t3v"),Ai(t,"class","jse-modal jse-copy-paste svelte-1nm0t3v")},m:function(C,$){bi(C,t,$),Pa(n,t,null),vi(t,r),vi(t,o),vi(o,i),vi(o,a),vi(o,s),vi(s,c),vi(c,u),vi(c,l),vi(s,f),vi(s,d),vi(d,h),vi(d,v),vi(s,p),vi(s,m),vi(m,g),vi(m,y),vi(o,b),vi(o,w),vi(w,x),k=!0,j||(S=[_i(x,"click",e[2]),si(lI.call(null,t,e[3]))],j=!0)},p:Ho,i:function(e){k||(wa(n.$$.fragment,e),k=!0)},o:function(e){xa(n.$$.fragment,e),k=!1},d:function(e){e&&wi(t),Ta(n),j=!1,Go(S)}}}function hI(e){var t=Xi("simple-modal").close;return[t,sI?"⌘":"Ctrl",function(){return t()},function(){return t()}]}var vI=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,hI,dI,Xo,{},fI),n}return Ao(t,Na),Io(t)}();function pI(e){return!!e&&("space"===e.type||!0===e.space)}function mI(e){return!!e&&("separator"===e.type||!0===e.separator)}function gI(e){return!!e&&("label"===e.type&&"string"==typeof e.text)}function yI(e){return!!e&&"function"==typeof e.onClick}function bI(e){return!!e&&("dropdown-button"===e.type&&yI(e.main)&&Array.isArray(e.items))}function wI(e){return!!e&&("row"===e.type&&Array.isArray(e.items))}function xI(e){return!!e&&("column"===e.type&&Array.isArray(e.items))}function kI(e){return Gu(e)&&Gu(e.parseError)}function jI(e){return Gu(e)&&Array.isArray(e.validationErrors)}function SI(e){return Gu(e)&&Array.isArray(e.path)&&"string"==typeof e.message&&"severity"in e}function CI(e){return Gu(e)&&SI(e)&&"boolean"==typeof e.isChildError}function $I(e){return Gu(e)&&"component"in e&&Gu(e.props)}function _I(e){return Gu(e)&&"function"==typeof e.action&&Gu(e.props)}function OI(e){pi(e,"svelte-7deygj",'.jse-menu.svelte-7deygj.svelte-7deygj{background:var(--jse-theme-color, #3883fa);font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size-main-menu, 14px);color:var(--jse-menu-color, var(--jse-text-color-inverse, #fff));display:flex;flex-wrap:wrap;align-items:stretch;position:relative}.jse-menu.svelte-7deygj .jse-button.svelte-7deygj{font-family:inherit;font-size:inherit;line-height:1.5em;border:none;background:transparent;color:inherit;cursor:pointer;width:var(--jse-menu-button-size, 32px);height:var(--jse-menu-button-size, 32px);padding:calc(0.5 * var(--jse-padding, 10px));margin:0;border-radius:0;display:inline-flex;align-items:center;text-align:center;justify-content:center}.jse-menu.svelte-7deygj .jse-button.svelte-7deygj:hover,.jse-menu.svelte-7deygj .jse-button.svelte-7deygj:focus{background:var(--jse-theme-color-highlight, #5f9dff)}.jse-menu.svelte-7deygj .jse-button.svelte-7deygj:disabled{color:var(--jse-menu-color, var(--jse-text-color-inverse, #fff));opacity:0.5;background:transparent}.jse-menu.svelte-7deygj .jse-button.jse-group-button.svelte-7deygj{width:auto;height:calc(var(--jse-menu-button-size, 32px) - var(--jse-padding, 10px));margin:calc(0.5 * var(--jse-padding, 10px)) 0;padding:0 calc(0.5 * var(--jse-padding, 10px)) 1px;border:1px solid var(--jse-menu-color, var(--jse-text-color-inverse, #fff))}.jse-menu.svelte-7deygj .jse-button.jse-group-button.svelte-7deygj:not(.jse-last){border-right:none}.jse-menu.svelte-7deygj .jse-button.jse-group-button.jse-first.svelte-7deygj{margin-left:calc(0.5 * var(--jse-padding, 10px))}.jse-menu.svelte-7deygj .jse-button.jse-group-button.jse-last.svelte-7deygj{margin-right:calc(0.5 * var(--jse-padding, 10px))}.jse-menu.svelte-7deygj .jse-button.jse-group-button.svelte-7deygj:hover,.jse-menu.svelte-7deygj .jse-button.jse-group-button.svelte-7deygj:focus{background:var(--jse-theme-color-highlight, #5f9dff)}.jse-menu.svelte-7deygj .jse-button.jse-group-button.jse-selected.svelte-7deygj{background:var(--jse-menu-color, var(--jse-text-color-inverse, #fff));color:var(--jse-theme-color, #3883fa)}.jse-menu.svelte-7deygj .jse-space.svelte-7deygj{flex:1}.jse-menu.svelte-7deygj .jse-separator.svelte-7deygj{background:var(--jse-menu-color, var(--jse-text-color-inverse, #fff));opacity:0.3;width:1px;margin:3px}')}var MI=function(e){return{}},AI=function(e){return{}};function EI(e,t,n){var r=e.slice();return r[3]=t[n],r}var PI=function(e){return{}},TI=function(e){return{}};function RI(e){var t,n=FI(e[3])+"";return{c:function(){t=Si(n)},m:function(e,n){bi(e,t,n)},p:function(e,r){1&r&&n!==(n=FI(e[3])+"")&&Ri(t,n)},i:Ho,o:Ho,d:function(e){e&&wi(t)}}}function NI(e){var t,n,r,o,i,a,s,c,u=e[3].icon&&zI(e),l=e[3].text&&BI(e);return{c:function(){t=ki("button"),u&&u.c(),n=Ci(),l&&l.c(),Ai(t,"type","button"),Ai(t,"class",r="jse-button "+e[3].className+" svelte-7deygj"),Ai(t,"title",o=e[3].title),t.disabled=i=e[3].disabled||!1},m:function(r,o){bi(r,t,o),u&&u.m(t,null),vi(t,n),l&&l.m(t,null),a=!0,s||(c=_i(t,"click",(function(){Qo(e[3].onClick)&&e[3].onClick.apply(this,arguments)})),s=!0)},p:function(s,c){(e=s)[3].icon?u?(u.p(e,c),1&c&&wa(u,1)):((u=zI(e)).c(),wa(u,1),u.m(t,n)):u&&(ya(),xa(u,1,1,(function(){u=null})),ba()),e[3].text?l?l.p(e,c):((l=BI(e)).c(),l.m(t,null)):l&&(l.d(1),l=null),(!a||1&c&&r!==(r="jse-button "+e[3].className+" svelte-7deygj"))&&Ai(t,"class",r),(!a||1&c&&o!==(o=e[3].title))&&Ai(t,"title",o),(!a||1&c&&i!==(i=e[3].disabled||!1))&&(t.disabled=i)},i:function(e){a||(wa(u),a=!0)},o:function(e){xa(u),a=!1},d:function(e){e&&wi(t),u&&u.d(),l&&l.d(),s=!1,c()}}}function II(e){var t;return{c:function(){Ai(t=ki("div"),"class","jse-space svelte-7deygj")},m:function(e,n){bi(e,t,n)},p:Ho,i:Ho,o:Ho,d:function(e){e&&wi(t)}}}function DI(e){var t;return{c:function(){Ai(t=ki("div"),"class","jse-separator svelte-7deygj")},m:function(e,n){bi(e,t,n)},p:Ho,i:Ho,o:Ho,d:function(e){e&&wi(t)}}}function zI(e){var t,n;return t=new SM({props:{data:e[3].icon}}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},p:function(e,n){var r={};1&n&&(r.data=e[3].icon),t.$set(r)},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}function BI(e){var t,n=e[3].text+"";return{c:function(){t=Si(n)},m:function(e,n){bi(e,t,n)},p:function(e,r){1&r&&n!==(n=e[3].text+"")&&Ri(t,n)},d:function(e){e&&wi(t)}}}function LI(e){var t,n,r,o,i,a,s,c=[DI,II,NI,RI],u=[];function l(e,o){return 1&o&&(t=null),1&o&&(n=null),1&o&&(r=null),null==t&&(t=!!mI(e[3])),t?0:(null==n&&(n=!!pI(e[3])),n?1:(null==r&&(r=!!yI(e[3])),r?2:3))}return o=l(e,-1),i=u[o]=c[o](e),{c:function(){i.c(),a=$i()},m:function(e,t){u[o].m(e,t),bi(e,a,t),s=!0},p:function(e,t){var n=o;(o=l(e,t))===n?u[o].p(e,t):(ya(),xa(u[n],1,1,(function(){u[n]=null})),ba(),(i=u[o])?i.p(e,t):(i=u[o]=c[o](e)).c(),wa(i,1),i.m(a.parentNode,a))},i:function(e){s||(wa(i),s=!0)},o:function(e){xa(i),s=!1},d:function(e){e&&wi(a),u[o].d(e)}}}function qI(e){for(var t,n,r,o,i=e[2].left,a=Zo(i,e,e[1],TI),s=Sa(e[0]),c=[],u=0;u<s.length;u+=1)c[u]=LI(EI(e,s,u));var l=function(e){return xa(c[e],1,1,(function(){c[e]=null}))},f=e[2].right,d=Zo(f,e,e[1],AI);return{c:function(){t=ki("div"),a&&a.c(),n=Ci();for(var e=0;e<c.length;e+=1)c[e].c();r=Ci(),d&&d.c(),Ai(t,"class","jse-menu svelte-7deygj")},m:function(e,i){bi(e,t,i),a&&a.m(t,null),vi(t,n);for(var s=0;s<c.length;s+=1)c[s]&&c[s].m(t,null);vi(t,r),d&&d.m(t,null),o=!0},p:function(e,n){var u=jo(n,1)[0];if(a&&a.p&&(!o||2&u)&&ni(a,i,e,e[1],o?ti(i,e[1],u,PI):ri(e[1]),TI),1&u){var h;for(s=Sa(e[0]),h=0;h<s.length;h+=1){var v=EI(e,s,h);c[h]?(c[h].p(v,u),wa(c[h],1)):(c[h]=LI(v),c[h].c(),wa(c[h],1),c[h].m(t,r))}for(ya(),h=s.length;h<c.length;h+=1)l(h);ba()}d&&d.p&&(!o||2&u)&&ni(d,f,e,e[1],o?ti(f,e[1],u,MI):ri(e[1]),AI)},i:function(e){if(!o){wa(a,e);for(var t=0;t<s.length;t+=1)wa(c[t]);wa(d,e),o=!0}},o:function(e){xa(a,e),c=c.filter(Boolean);for(var t=0;t<c.length;t+=1)xa(c[t]);xa(d,e),o=!1},d:function(e){e&&wi(t),a&&a.d(e),xi(c,e),d&&d.d(e)}}}function FI(e){return console.error("Unknown type of menu item",e),"???"}function VI(e,t,n){var r=t.$$slots,o=void 0===r?{}:r,i=t.$$scope,a=t.items,s=void 0===a?[]:a;return e.$$set=function(e){"items"in e&&n(0,s=e.items),"$$scope"in e&&n(1,i=e.$$scope)},[s,i,o]}var HI=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,VI,qI,Xo,{items:0},OI),n}return Ao(t,Na),Io(t)}();function WI(e){pi(e,"svelte-1d84pok",'.jse-json-repair-component.svelte-1d84pok.svelte-1d84pok{flex:1;display:flex;flex-direction:column;background:var(--jse-background-color, #fff);color:var(--jse-text-color, #4d4d4d)}.jse-json-repair-component.svelte-1d84pok .jse-menu .jse-info.svelte-1d84pok{padding:calc(0.5 * var(--jse-padding, 10px));font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);vertical-align:center}.jse-json-repair-component.svelte-1d84pok .jse-json-text.svelte-1d84pok{flex:1;border:none;padding:2px;font-family:var(--jse-font-family-mono, consolas, menlo, monaco, "Ubuntu Mono", "source-code-pro", monospace);font-size:var(--jse-font-size-mono, 14px);background:var(--jse-input-background, var(--jse-background-color, #fff));color:var(--jse-text-color, #4d4d4d);resize:none;outline:none}')}function UI(e){var t;return{c:function(){(t=ki("div")).textContent="Repair invalid JSON, then click apply",Ai(t,"slot","left"),Ai(t,"class","jse-info svelte-1d84pok")},m:function(e,n){bi(e,t,n)},p:Ho,d:function(e){e&&wi(t)}}}function JI(e){var t,n;return t=new GN({props:{type:"success",message:"JSON is valid now and can be parsed.",actions:e[5]}}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},p:function(e,n){var r={};32&n&&(r.actions=e[5]),t.$set(r)},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}function KI(e){var t,n;return t=new GN({props:{type:"error",icon:BP,message:"Cannot parse JSON: ".concat(e[2].message),actions:e[6]}}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},p:function(e,n){var r={};4&n&&(r.message="Cannot parse JSON: ".concat(e[2].message)),64&n&&(r.actions=e[6]),t.$set(r)},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}function GI(e){var t,n,r,o,i,a,s,c,u,l;n=new HI({props:{items:e[4],$$slots:{left:[UI]},$$scope:{ctx:e}}});var f=[KI,JI],d=[];function h(e,t){return e[2]?0:1}return o=h(e),i=d[o]=f[o](e),{c:function(){t=ki("div"),Ea(n.$$.fragment),r=Ci(),i.c(),a=Ci(),(s=ki("textarea")).readOnly=e[1],Ai(s,"class","jse-json-text svelte-1d84pok"),Ai(s,"autocomplete","off"),Ai(s,"autocapitalize","off"),Ai(s,"spellcheck","false"),s.value=e[0],Ai(t,"class","jse-json-repair-component svelte-1d84pok")},m:function(i,f){bi(i,t,f),Pa(n,t,null),vi(t,r),d[o].m(t,null),vi(t,a),vi(t,s),e[16](s),c=!0,u||(l=_i(s,"input",e[7]),u=!0)},p:function(e,r){var u=jo(r,1)[0],l={};16&u&&(l.items=e[4]),8388608&u&&(l.$$scope={dirty:u,ctx:e}),n.$set(l);var v=o;(o=h(e))===v?d[o].p(e,u):(ya(),xa(d[v],1,1,(function(){d[v]=null})),ba(),(i=d[o])?i.p(e,u):(i=d[o]=f[o](e)).c(),wa(i,1),i.m(t,a)),(!c||2&u)&&(s.readOnly=e[1]),(!c||1&u)&&(s.value=e[0])},i:function(e){c||(wa(n.$$.fragment,e),wa(i),c=!0)},o:function(e){xa(n.$$.fragment,e),xa(i),c=!1},d:function(r){r&&wi(t),Ta(n),d[o].d(),e[16](null),u=!1,l()}}}function QI(e,t,n){var r,o,i,a,s,c,u,l,f=t.text,d=void 0===f?"":f,h=t.readOnly,v=void 0!==h&&h,p=t.onParse,m=t.onRepair,g=t.onChange,y=void 0===g?null:g,b=t.onApply,w=t.onCancel,x=Ia("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(t){return W_(e,t.message)}}(d)),1&e.$$.dirty&&n(15,o=function(e){try{return m(e),!0}catch(e){return!1}}(d)),4&e.$$.dirty&&x("error",r),4096&e.$$.dirty&&n(4,l=[{type:"space"},{type:"button",icon:RP,title:"Cancel repair",className:"jse-cancel",onClick:w}]),57344&e.$$.dirty&&n(6,s=o?[i,a]:[i]),2&e.$$.dirty&&n(5,c=[{icon:zP,text:"Apply",title:"Apply fixed JSON",disabled:v,onClick:k}])},n(13,i={icon:_P,text:"Show me",title:"Scroll to the error location",onClick:function(){if(u&&r){var e=null!=r.position?r.position:0;u.setSelectionRange(e,e),u.focus()}}}),n(14,a={icon:pP,text:"Auto repair",title:"Automatically repair JSON",onClick:function(){try{n(0,d=m(d)),y&&y(d)}catch(e){}}}),[d,v,r,u,l,c,s,function(e){x("handleChange");var t=e.target.value;d!==t&&(n(0,d=t),y&&y(d))},p,m,y,b,w,i,a,o,function(e){ta[e?"unshift":"push"]((function(){n(3,u=e)}))}]}var YI=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,QI,GI,Xo,{text:0,readOnly:1,onParse:8,onRepair:9,onChange:10,onApply:11,onCancel:12},WI),n}return Ao(t,Na),Io(t)}();function XI(e){pi(e,"svelte-rn18r0",'.jse-modal.jse-repair.svelte-rn18r0{flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);line-height:normal;background:var(--jse-modal-background, #f5f5f5);color:var(--jse-text-color, #4d4d4d)}')}function ZI(e){var t,n,r,o,i,a;function s(t){e[7](t)}var c={onParse:e[1],onRepair:e[2],onApply:e[4],onCancel:e[5]};return void 0!==e[0]&&(c.text=e[0]),n=new YI({props:c}),ta.push((function(){return Aa(n,"text",s)})),{c:function(){t=ki("div"),Ea(n.$$.fragment),Ai(t,"class","jse-modal jse-repair svelte-rn18r0")},m:function(r,s){bi(r,t,s),Pa(n,t,null),o=!0,i||(a=si(lI.call(null,t,e[3])),i=!0)},p:function(e,t){var o=jo(t,1)[0],i={};2&o&&(i.onParse=e[1]),4&o&&(i.onRepair=e[2]),!r&&1&o&&(r=!0,i.text=e[0],ua((function(){return r=!1}))),n.$set(i)},i:function(e){o||(wa(n.$$.fragment,e),o=!0)},o:function(e){xa(n.$$.fragment,e),o=!1},d:function(e){e&&wi(t),Ta(n),i=!1,a()}}}function eD(e,t,n){var r=t.text,o=t.onParse,i=t.onRepair,a=t.onApply,s=Xi("simple-modal").close;return e.$$set=function(e){"text"in e&&n(0,r=e.text),"onParse"in e&&n(1,o=e.onParse),"onRepair"in e&&n(2,i=e.onRepair),"onApply"in e&&n(6,a=e.onApply)},[r,o,i,s,function(e){s(),a(e)},function(){s()},a,function(e){n(0,r=e)}]}var tD=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,eD,ZI,Xo,{text:0,onParse:1,onRepair:2,onApply:6},XI),n}return Ao(t,Na),Io(t)}();function nD(e){pi(e,"svelte-lajpxi",'div.jse-collapsed-items.svelte-lajpxi.svelte-lajpxi{margin-left:calc(var(--level) * var(--jse-indent-size, calc(1em + 4px)));font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);color:var(--jse-collapsed-items-link-color, rgba(0, 0, 0, 0.38));padding:calc(0.5 * var(--jse-padding, 10px));border:8px solid transparent;border-width:8px 0;background-color:var(--jse-contents-background-color, transparent);background-image:linear-gradient(var(--jse-collapsed-items-background-color, #f5f5f5), var(--jse-collapsed-items-background-color, #f5f5f5)), linear-gradient(to bottom right, transparent 50.5%, var(--jse-collapsed-items-background-color, #f5f5f5) 50.5%), linear-gradient(to bottom left, transparent 50.5%, var(--jse-collapsed-items-background-color, #f5f5f5) 50.5%), linear-gradient(to top right, transparent 50.5%, var(--jse-collapsed-items-background-color, #f5f5f5) 50.5%), linear-gradient(to top left, transparent 50.5%, var(--jse-collapsed-items-background-color, #f5f5f5) 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-lajpxi div.jse-text.svelte-lajpxi,div.jse-collapsed-items.svelte-lajpxi button.jse-expand-items.svelte-lajpxi{margin:0 calc(0.5 * var(--jse-padding, 10px))}div.jse-collapsed-items.svelte-lajpxi div.jse-text.svelte-lajpxi{display:inline}div.jse-collapsed-items.svelte-lajpxi button.jse-expand-items.svelte-lajpxi{font-family:inherit;font-size:inherit;color:var(--jse-collapsed-items-link-color, rgba(0, 0, 0, 0.38));background:none;border:none;padding:0;text-decoration:underline;cursor:pointer}div.jse-collapsed-items.svelte-lajpxi button.jse-expand-items.svelte-lajpxi:hover,div.jse-collapsed-items.svelte-lajpxi button.jse-expand-items.svelte-lajpxi:focus{color:var(--jse-collapsed-items-link-color-highlight, #ee5341)}')}function rD(e,t,n){var r=e.slice();return r[13]=t[n],r}function oD(e){var t,n,r,o,i,a,s,c,u=e[13].start+"",l=e[13].end+"";function f(){return e[12](e[13])}return{c:function(){t=ki("button"),n=Si("show "),r=Si(u),o=Si("-"),i=Si(l),a=Ci(),Ai(t,"type","button"),Ai(t,"class","jse-expand-items svelte-lajpxi")},m:function(e,u){bi(e,t,u),vi(t,n),vi(t,r),vi(t,o),vi(t,i),vi(t,a),s||(c=_i(t,"click",f),s=!0)},p:function(t,n){e=t,16&n&&u!==(u=e[13].start+"")&&Ri(r,u),16&n&&l!==(l=e[13].end+"")&&Ri(i,l)},d:function(e){e&&wi(t),s=!1,c()}}}function iD(e){for(var t,n,r,o,i,a,s,c,u,l,f=Sa(e[4]),d=[],h=0;h<f.length;h+=1)d[h]=oD(rD(e,f,h));return{c:function(){t=ki("div"),n=ki("div"),r=ki("div"),o=Si("Items "),i=Si(e[3]),a=Si("-"),s=Si(e[2]),c=Ci();for(var u=0;u<d.length;u+=1)d[u].c();Ai(r,"class","jse-text svelte-lajpxi"),Ai(t,"role","none"),Ai(t,"class","jse-collapsed-items svelte-lajpxi"),zi(t,"jse-selected",e[5]),Ii(t,"--level",e[0].length+2)},m:function(e,f){bi(e,t,f),vi(t,n),vi(n,r),vi(r,o),vi(r,i),vi(r,a),vi(r,s),vi(n,c);for(var h=0;h<d.length;h+=1)d[h]&&d[h].m(n,null);u||(l=_i(t,"mousemove",aD),u=!0)},p:function(e,r){var o=jo(r,1)[0];if(8&o&&Ri(i,e[3]),4&o&&Ri(s,e[2]),19&o){var a;for(f=Sa(e[4]),a=0;a<f.length;a+=1){var c=rD(e,f,a);d[a]?d[a].p(c,o):(d[a]=oD(c),d[a].c(),d[a].m(n,null))}for(;a<d.length;a+=1)d[a].d(1);d.length=f.length}32&o&&zi(t,"jse-selected",e[5]),1&o&&Ii(t,"--level",e[0].length+2)},i:Ho,o:Ho,d:function(e){e&&wi(t),xi(d,e),u=!1,l()}}}function aD(e){e.stopPropagation()}function sD(e,t,n){var r,o,i,a,s,c=t.visibleSections,u=t.sectionIndex,l=t.total,f=t.path,d=t.selection,h=t.onExpandSection,v=t.context;return e.$$set=function(e){"visibleSections"in e&&n(6,c=e.visibleSections),"sectionIndex"in e&&n(7,u=e.sectionIndex),"total"in e&&n(8,l=e.total),"path"in e&&n(0,f=e.path),"selection"in e&&n(9,d=e.selection),"onExpandSection"in e&&n(1,h=e.onExpandSection),"context"in e&&n(10,v=e.context)},e.$$.update=function(){192&e.$$.dirty&&n(11,r=c[u]),2048&e.$$.dirty&&n(3,o=r.end),448&e.$$.dirty&&n(2,i=c[u+1]?c[u+1].start:l),1545&e.$$.dirty&&n(5,a=UA(v.getJson(),d,f.concat(String(o)))),12&e.$$.dirty&&n(4,s=function(e,t){var n={start:e,end:Math.min(BM(e),t)},r=Math.max(LM((e+t)/2),e),o={start:r,end:Math.min(BM(r),t)},i=LM(t),a=i===t?i-cs:i,s={start:Math.max(a,e),end:t},c=[n],u=o.start>=n.end&&o.end<=s.start;return u&&c.push(o),s.start>=(u?o.end:n.end)&&c.push(s),c}(o,i))},[f,h,i,o,s,a,c,u,l,d,v,r,function(e){return h(f,e)}]}var cD=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,sD,iD,Xo,{visibleSections:6,sectionIndex:7,total:8,path:0,selection:9,onExpandSection:1,context:10},nD),n}return Ao(t,Na),Io(t)}();function uD(e){pi(e,"svelte-6k6355",".jse-context-menu-pointer.svelte-6k6355{position:absolute;top:calc(-0.5 * var(--jse-context-menu-pointer-size, calc(1em + 4px)));right:calc(-0.5 * var(--jse-context-menu-pointer-size, calc(1em + 4px)));width:var(--jse-context-menu-pointer-size, calc(1em + 4px));height:var(--jse-context-menu-pointer-size, calc(1em + 4px));padding:0;margin:0;cursor:pointer;background:transparent;border-radius:2px;background:var(--jse-context-menu-pointer-background, var(--jse-context-menu-background, #656565));color:var(--jse-context-menu-pointer-color, var(--jse-context-menu-color, var(--jse-text-color-inverse, #fff)));border:none;box-shadow:var(--jse-controls-box-shadow, 0 2px 6px 0 rgba(0, 0, 0, 0.24))}.jse-context-menu-pointer.svelte-6k6355:hover{background:var(--jse-context-menu-pointer-background-highlight, var(--jse-context-menu-background-highlight, #7a7a7a))}")}function lD(e){var t,n,r,o,i;return n=new SM({props:{data:kP}}),{c:function(){t=ki("button"),Ea(n.$$.fragment),Ai(t,"type","button"),Ai(t,"class","jse-context-menu-pointer svelte-6k6355"),Ai(t,"title",xs),zi(t,"jse-selected",e[0])},m:function(a,s){bi(a,t,s),Pa(n,t,null),r=!0,o||(i=_i(t,"click",e[1]),o=!0)},p:function(e,n){var o=jo(n,1)[0];(!r||1&o)&&zi(t,"jse-selected",e[0])},i:function(e){r||(wa(n.$$.fragment,e),r=!0)},o:function(e){xa(n.$$.fragment,e),r=!1},d:function(e){e&&wi(t),Ta(n),o=!1,i()}}}function fD(e,t,n){var r=t.selected,o=t.onContextMenu;return e.$$set=function(e){"selected"in e&&n(0,r=e.selected),"onContextMenu"in e&&n(2,o=e.onContextMenu)},[r,function(e){for(var t=e.target;t&&"BUTTON"!==t.nodeName;)t=t.parentNode;t&&o({anchor:t,left:0,top:0,width:Os,height:_s,offsetTop:2,offsetLeft:0,showTip:!0})},o]}var dD=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,fD,lD,Xo,{selected:0,onContextMenu:2},uD),n}return Ao(t,Na),Io(t)}();function hD(e){pi(e,"svelte-10xe8tv",'.jse-key.svelte-10xe8tv{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, #1a1a1a);cursor:var(--jse-contents-cursor, pointer);word-break:normal;overflow-wrap:normal;white-space:pre-wrap}.jse-key.svelte-10xe8tv:hover{background:var(--jse-hover-background-color, rgba(0, 0, 0, 0.06))}.jse-key.svelte-10xe8tv:hover{background:var(--jse-hover-background-color, rgba(0, 0, 0, 0.06))}.jse-key.jse-empty.svelte-10xe8tv{min-width:3em;outline:1px dotted var(--jse-tag-background, rgba(0, 0, 0, 0.2));-moz-outline-radius:2px}.jse-key.jse-empty.svelte-10xe8tv::after{pointer-events:none;color:var(--jse-tag-background, rgba(0, 0, 0, 0.2));content:"key"}')}function vD(e){var t,n,r,o,i,a,s,c=[gD,mD],u=[];function l(e,t){return e[1]?0:1}return n=l(e),r=u[n]=c[n](e),{c:function(){t=ki("div"),r.c(),Ai(t,"role","none"),Ai(t,"data-type","selectable-key"),Ai(t,"class",o=ai(e[6](e[0]))+" svelte-10xe8tv")},m:function(r,o){bi(r,t,o),u[n].m(t,null),i=!0,a||(s=_i(t,"dblclick",e[5]),a=!0)},p:function(e,a){var s=n;(n=l(e))===s?u[n].p(e,a):(ya(),xa(u[s],1,1,(function(){u[s]=null})),ba(),(r=u[n])?r.p(e,a):(r=u[n]=c[n](e)).c(),wa(r,1),r.m(t,null)),(!i||1&a&&o!==(o=ai(e[6](e[0]))+" svelte-10xe8tv"))&&Ai(t,"class",o)},i:function(e){i||(wa(r),i=!0)},o:function(e){xa(r),i=!1},d:function(e){e&&wi(t),u[n].d(),a=!1,s()}}}function pD(e){var t,n;return t=new tE({props:{value:e[2].normalization.escapeValue(e[0]),shortText:!0,onChange:e[7],onCancel:e[8],onFind:e[2].onFind}}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},p:function(e,n){var r={};5&n&&(r.value=e[2].normalization.escapeValue(e[0])),4&n&&(r.onFind=e[2].onFind),t.$set(r)},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}function mD(e){var t,n=yO(e[2].normalization.escapeValue(e[0]))+"";return{c:function(){t=Si(n)},m:function(e,n){bi(e,t,n)},p:function(e,r){5&r&&n!==(n=yO(e[2].normalization.escapeValue(e[0]))+"")&&Ri(t,n)},i:Ho,o:Ho,d:function(e){e&&wi(t)}}}function gD(e){var t,n;return t=new NE({props:{text:e[2].normalization.escapeValue(e[0]),searchResultItems:e[1]}}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},p:function(e,n){var r={};5&n&&(r.text=e[2].normalization.escapeValue(e[0])),2&n&&(r.searchResultItems=e[1]),t.$set(r)},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}function yD(e){var t,n;return t=new dD({props:{selected:!0,onContextMenu:e[2].onContextMenu}}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},p:function(e,n){var r={};4&n&&(r.onContextMenu=e[2].onContextMenu),t.$set(r)},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}function bD(e){var t,n,r,o,i,a=[pD,vD],s=[];function c(e,t){return!e[2].readOnly&&e[4]?0:1}t=c(e),n=s[t]=a[t](e);var u=!e[2].readOnly&&e[3]&&!e[4]&&yD(e);return{c:function(){n.c(),r=Ci(),u&&u.c(),o=$i()},m:function(e,n){s[t].m(e,n),bi(e,r,n),u&&u.m(e,n),bi(e,o,n),i=!0},p:function(e,i){var l=jo(i,1)[0],f=t;(t=c(e))===f?s[t].p(e,l):(ya(),xa(s[f],1,1,(function(){s[f]=null})),ba(),(n=s[t])?n.p(e,l):(n=s[t]=a[t](e)).c(),wa(n,1),n.m(r.parentNode,r)),e[2].readOnly||!e[3]||e[4]?u&&(ya(),xa(u,1,1,(function(){u=null})),ba()):u?(u.p(e,l),28&l&&wa(u,1)):((u=yD(e)).c(),wa(u,1),u.m(o.parentNode,o))},i:function(e){i||(wa(n),wa(u),i=!0)},o:function(e){xa(n),xa(u),i=!1},d:function(e){e&&(wi(r),wi(o)),s[t].d(e),u&&u.d(e)}}}function wD(e,t,n){var r,o,i=t.path,a=t.key,s=t.selection,c=t.searchResultItems,u=t.onUpdateKey,l=t.context;return e.$$set=function(e){"path"in e&&n(9,i=e.path),"key"in e&&n(0,a=e.key),"selection"in e&&n(10,s=e.selection),"searchResultItems"in e&&n(1,c=e.searchResultItems),"onUpdateKey"in e&&n(11,u=e.onUpdateKey),"context"in e&&n(2,l=e.context)},e.$$.update=function(){1536&e.$$.dirty&&n(3,r=!!s&&(pA(s)&&Ax(s.path,i))),1032&e.$$.dirty&&n(4,o=r&&LA(s))},[a,c,l,r,o,function(e){o||l.readOnly||(e.preventDefault(),l.onSelect(RA(i,!0)))},function(e){return QA("jse-key",{"jse-empty":""===e})},function(e,t){var n=u(a,l.normalization.unescapeValue(e)),r=Xw(i).concat(n);l.onSelect(t===ts.nextInside?NA(r,!1):RA(r,!1)),t!==ts.self&&l.focus()},function(){l.onSelect(RA(i,!1)),l.focus()},i,s,u]}var xD=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,wD,bD,Xo,{path:9,key:0,selection:10,searchResultItems:1,onUpdateKey:11,context:2},hD),n}return Ao(t,Na),Io(t)}();function kD(e,t,n){var r=e.slice();return r[8]=t[n],r}function jD(e){var t,n,r=e[8].component,o=CD(e);return{c:function(){o.c(),t=$i()},m:function(e,r){o.m(e,r),bi(e,t,r),n=!0},p:function(e,n){1&n&&Xo(r,r=e[8].component)?(ya(),xa(o,1,1,Ho),ba(),(o=CD(e)).c(),wa(o,1),o.m(t.parentNode,t)):o.p(e,n)},i:function(e){n||(wa(o),n=!0)},o:function(e){xa(o),n=!1},d:function(e){e&&wi(t),o.d(e)}}}function SD(e){var t,n=e[8].action,r=$D(e);return{c:function(){r.c(),t=$i()},m:function(e,n){r.m(e,n),bi(e,t,n)},p:function(e,o){1&o&&Xo(n,n=e[8].action)?(r.d(1),(r=$D(e)).c(),r.m(t.parentNode,t)):r.p(e,o)},i:Ho,o:Ho,d:function(e){e&&wi(t),r.d(e)}}}function CD(e){var t,n,r,o=[e[8].props],i=e[8].component;function a(e,t){for(var n={},r=0;r<o.length;r+=1)n=Uo(n,o[r]);return void 0!==t&&1&t&&(n=Uo(n,Oa(o,[Ma(e[8].props)]))),{props:n}}return i&&(t=Li(i,a(e))),{c:function(){t&&Ea(t.$$.fragment),n=$i()},m:function(e,o){t&&Pa(t,e,o),bi(e,n,o),r=!0},p:function(e,r){if(1&r&&i!==(i=e[8].component)){if(t){ya();var s=t;xa(s.$$.fragment,1,0,(function(){Ta(s,1)})),ba()}i?(Ea((t=Li(i,a(e,r))).$$.fragment),wa(t.$$.fragment,1),Pa(t,n.parentNode,n)):t=null}else if(i){var c=1&r?Oa(o,[Ma(e[8].props)]):{};t.$set(c)}},i:function(e){r||(t&&wa(t.$$.fragment,e),r=!0)},o:function(e){t&&xa(t.$$.fragment,e),r=!1},d:function(e){e&&wi(n),t&&Ta(t,e)}}}function $D(e){var t,n,r,o;return{c:function(){Ai(t=ki("div"),"role","button"),Ai(t,"tabindex","-1"),Ai(t,"class","jse-value jse-readonly-password"),Ai(t,"data-type","selectable-value")},m:function(i,a){bi(i,t,a),r||(o=si(n=e[11].call(null,t,e[8].props)),r=!0)},p:function(t,r){e=t,n&&Qo(n.update)&&1&r&&n.update.call(null,e[8].props)},d:function(e){e&&wi(t),r=!1,o()}}}function _D(e){var t,n,r,o,i,a=[SD,jD],s=[];function c(e,n){return 1&n&&(t=null),null==t&&(t=!!_I(e[8])),t?0:1}function u(e,t){return 0===t?function(e){var t=e.slice(),n=t[8].action;return t[11]=n,t}(e):e}return n=c(e,-1),r=s[n]=a[n](u(e,n)),{c:function(){r.c(),o=$i()},m:function(e,t){s[n].m(e,t),bi(e,o,t),i=!0},p:function(e,t){var i=n;(n=c(e,t))===i?s[n].p(u(e,n),t):(ya(),xa(s[i],1,1,(function(){s[i]=null})),ba(),(r=s[n])?r.p(u(e,n),t):(r=s[n]=a[n](u(e,n))).c(),wa(r,1),r.m(o.parentNode,o))},i:function(e){i||(wa(r),i=!0)},o:function(e){xa(r),i=!1},d:function(e){e&&wi(o),s[n].d(e)}}}function OD(e){for(var t,n,r=Sa(e[0]),o=[],i=0;i<r.length;i+=1)o[i]=_D(kD(e,r,i));var a=function(e){return xa(o[e],1,1,(function(){o[e]=null}))};return{c:function(){for(var e=0;e<o.length;e+=1)o[e].c();t=$i()},m:function(e,r){for(var i=0;i<o.length;i+=1)o[i]&&o[i].m(e,r);bi(e,t,r),n=!0},p:function(e,n){var i=jo(n,1)[0];if(1&i){var s;for(r=Sa(e[0]),s=0;s<r.length;s+=1){var c=kD(e,r,s);o[s]?(o[s].p(c,i),wa(o[s],1)):(o[s]=_D(c),o[s].c(),wa(o[s],1),o[s].m(t.parentNode,t))}for(ya(),s=r.length;s<o.length;s+=1)a(s);ba()}},i:function(e){if(!n){for(var t=0;t<r.length;t+=1)wa(o[t]);n=!0}},o:function(e){o=o.filter(Boolean);for(var t=0;t<o.length;t+=1)xa(o[t]);n=!1},d:function(e){e&&wi(t),xi(o,e)}}}function MD(e,t,n){var r,o,i=t.path,a=t.value,s=t.context,c=t.enforceString,u=t.selection,l=t.searchResultItems;return e.$$set=function(e){"path"in e&&n(1,i=e.path),"value"in e&&n(2,a=e.value),"context"in e&&n(3,s=e.context),"enforceString"in e&&n(4,c=e.enforceString),"selection"in e&&n(5,u=e.selection),"searchResultItems"in e&&n(6,l=e.searchResultItems)},e.$$.update=function(){32&e.$$.dirty&&n(7,r=mA(u)&&LA(u)),254&e.$$.dirty&&n(0,o=s.onRenderValue({path:i,value:a,readOnly:s.readOnly,enforceString:c,isEditing:r,parser:s.parser,normalization:s.normalization,selection:u,searchResultItems:l,onPatch:s.onPatch,onPasteJson:s.onPasteJson,onSelect:s.onSelect,onFind:s.onFind,findNextInside:s.findNextInside,focus:s.focus}))},[o,i,a,s,c,u,l,r]}var AD=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,MD,OD,Xo,{path:1,value:2,context:3,enforceString:4,selection:5,searchResultItems:6}),n}return Ao(t,Na),Io(t)}(),ED=AD,PD={selecting:!1,selectionAnchor:null,selectionAnchorType:null,selectionFocus:null,dragging:!1};function TD(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(e){var t=e.json,n=e.items,r=e.selection,o=e.deltaY,i=jA(t,r),a=n.findIndex((function(e){return Ax(e.path,i)})),s=function(){var e;return null===(e=n[c-1])||void 0===e?void 0:e.height},c=a,u=0;for(;void 0!==s()&&Math.abs(o)>u+s()/2;)u+=s(),c-=1;var l=n[c].path,f=c-a;return c!==a&&void 0!==n[c]?{beforePath:l,offset:f}:void 0}({json:t,selection:i,deltaY:r,items:o}):function(e){var t,n=e.json,r=e.items,o=e.selection,i=e.deltaY,a=SA(n,o),s=r.findIndex((function(e){return Ax(e.path,a)})),c=0,u=s,l=function(){var e;return null===(e=r[u+1])||void 0===e?void 0:e.height};for(;void 0!==l()&&Math.abs(i)>c+l()/2;)c+=l(),u+=1;var f=Xw(a),d=Ws(n,f),h=Array.isArray(d),v=h?u:u+1,p=null===(t=r[v])||void 0===t?void 0:t.path,m=u-s;return p?{beforePath:p,offset:m}:{append:!0,offset:m}}({json:t,selection:i,deltaY:r,items:o});if(!a||0===a.offset)return{operations:void 0,updatedSelection:null,offset:0};var s=function(e,t,n){if(!t)return[];var r="beforePath"in n?n.beforePath:void 0,o="append"in n?n.append:void 0,i=Xw(KA(t)),a=Ws(e,i);if(!(o||r&&PA(r,i)&&r.length>i.length))return[];var s=jA(e,t),c=SA(e,t),u=mb(s),l=mb(c),f=r?r[i.length]:void 0;if(!Rs(a)){if(Ts(a)){var d=Uu(u),h=Uu(l),v=void 0!==f?Uu(f):a.length;return XC(h-d+1,v<d?function(e){return{op:"move",from:Zs(i.concat(String(d+e))),path:Zs(i.concat(String(v+e)))}}:function(){return{op:"move",from:Zs(i.concat(String(d))),path:Zs(i.concat(String(v)))}})}throw new Error("Cannot create move operations: parent must be an Object or Array")}var p=Object.keys(a),m=p.indexOf(u),g=p.indexOf(l),y=o?p.length:void 0!==f?p.indexOf(f):-1;return-1!==m&&-1!==g&&-1!==y?y>m?[].concat(Bo(p.slice(m,g+1)),Bo(p.slice(y,p.length))).map((function(e){return fE(i,e)})):[].concat(Bo(p.slice(y,m)),Bo(p.slice(g+1,p.length))).map((function(e){return fE(i,e)})):[]}(t,i,a),c=Ws(t,Xw(jA(t,i)));if(Array.isArray(c)){var u=function(e){var t,n,r=e.items,o=e.json,i=e.selection,a=e.offset,s=jA(o,i),c=SA(o,i),u=r.findIndex((function(e){return Ax(e.path,s)})),l=r.findIndex((function(e){return Ax(e.path,c)})),f=null===(t=r[u+a])||void 0===t?void 0:t.path,d=null===(n=r[l+a])||void 0===n?void 0:n.path;return zA(f,d)}({items:o,json:t,selection:i,offset:a.offset});return{operations:s,updatedSelection:u,offset:a.offset}}return{operations:s,updatedSelection:null,offset:a.offset}}function RD(e,t){return function(e,t){if(e){for(var n={},r=0,o=Object.keys(e);r<o.length;r++){var i=o[r];t(i,e[i])&&(n[i]=e[i])}return Object.keys(n).length>0?n:void 0}}(e,(function(e){return nc(e,t)}))}function ND(e){pi(e,"svelte-1yy7qpj",'button.jse-validation-error.svelte-1yy7qpj{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);padding:5px;margin:0;padding:0;margin:0;vertical-align:top;display:inline-flex;color:var(--jse-error-color, #ee5341)}button.jse-validation-info.svelte-1yy7qpj{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);padding:5px;margin:0;padding:0;margin:0;vertical-align:top;display:inline-flex;color:var(--jse-info-color, #4f91ff)}button.jse-validation-warning.svelte-1yy7qpj{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);padding:5px;margin:0;padding:0;margin:0;vertical-align:top;display:inline-flex;color:var(--jse-warning-color, #fdc539)}')}function ID(e){var t,n,r,o,i,a,s;return n=new SM({props:{data:BP}}),{c:function(){t=ki("button"),Ea(n.$$.fragment),Ai(t,"type","button"),Ai(t,"class",r="jse-validation-"+e[0].severity+" svelte-1yy7qpj")},m:function(r,c){bi(r,t,c),Pa(n,t,null),i=!0,a||(s=[_i(t,"click",(function(){Qo(e[1])&&e[1].apply(this,arguments)})),si(o=UE.call(null,t,To({text:e[2]},e[3])))],a=!0)},p:function(n,a){var s=jo(a,1)[0];e=n,(!i||1&s&&r!==(r="jse-validation-"+e[0].severity+" svelte-1yy7qpj"))&&Ai(t,"class",r),o&&Qo(o.update)&&4&s&&o.update.call(null,To({text:e[2]},e[3]))},i:function(e){i||(wa(n.$$.fragment,e),i=!0)},o:function(e){xa(n.$$.fragment,e),i=!1},d:function(e){e&&wi(t),Ta(n),a=!1,Go(s)}}}function DD(e,t,n){var r,o=Xi("absolute-popup"),i=t.validationError,a=t.onExpand;return e.$$set=function(e){"validationError"in e&&n(0,i=e.validationError),"onExpand"in e&&n(1,a=e.onExpand)},e.$$.update=function(){1&e.$$.dirty&&n(2,r=CI(i)&&i.isChildError?"Contains invalid data":i.message)},[i,a,r,o]}var zD=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,DD,ID,Yo,{validationError:0,onExpand:1},ND),n}return Ao(t,Na),Io(t)}();function BD(e){pi(e,"svelte-6mjnsm",'.jse-json-node.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{position:relative;color:var(--jse-text-color, #4d4d4d)}.jse-json-node.jse-root.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{min-height:100%;padding-bottom:2px;box-sizing:border-box}.jse-json-node.jse-root.svelte-6mjnsm>.jse-header-outer.svelte-6mjnsm .jse-context-menu-pointer,.jse-json-node.jse-root.svelte-6mjnsm>.jse-contents-outer.svelte-6mjnsm>.jse-contents.svelte-6mjnsm .jse-context-menu-pointer{top:0;right:calc(-2px - var(--jse-context-menu-pointer-size, calc(1em + 4px)))}.jse-json-node.jse-root.svelte-6mjnsm>.jse-contents-outer.svelte-6mjnsm>.jse-contents.svelte-6mjnsm.svelte-6mjnsm{padding-left:0}.jse-json-node.svelte-6mjnsm .jse-props.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.svelte-6mjnsm .jse-items.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{position:relative}.jse-json-node.svelte-6mjnsm .jse-header-outer.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.svelte-6mjnsm .jse-footer-outer.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{display:flex;margin-left:calc(var(--level) * var(--jse-indent-size, calc(1em + 4px)))}.jse-json-node.svelte-6mjnsm .jse-header.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{position:relative}.jse-json-node.svelte-6mjnsm .jse-header .jse-meta.svelte-6mjnsm>.jse-meta-inner.svelte-6mjnsm.svelte-6mjnsm{display:flex;justify-content:center}.jse-json-node.svelte-6mjnsm .jse-contents-outer.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{display:flex;margin-left:calc(var(--level) * var(--jse-indent-size, calc(1em + 4px)))}.jse-json-node.svelte-6mjnsm .jse-header.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.svelte-6mjnsm .jse-contents.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{display:flex;flex-direction:row;align-items:flex-start}.jse-json-node.svelte-6mjnsm .jse-contents.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{padding-left:var(--jse-indent-size, calc(1em + 4px))}.jse-json-node.svelte-6mjnsm .jse-footer.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{display:inline-flex;padding-left:calc(var(--jse-indent-size, calc(1em + 4px)) + 5px)}.jse-json-node.svelte-6mjnsm .jse-header.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.svelte-6mjnsm .jse-contents.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.svelte-6mjnsm .jse-footer.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{background:var(--jse-contents-background-color, transparent)}.jse-json-node.svelte-6mjnsm .jse-insert-selection-area.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{visibility:hidden;padding:0 calc(0.5 * var(--jse-padding, 10px));flex:1}.jse-json-node.svelte-6mjnsm .jse-insert-selection-area.jse-inside.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{display:inline-flex;align-items:center}.jse-json-node.svelte-6mjnsm .jse-insert-selection-area.jse-after.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{display:flex;align-items:flex-end}.jse-json-node.svelte-6mjnsm .jse-context-menu-pointer-anchor.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{position:relative}.jse-json-node.svelte-6mjnsm .jse-insert-area.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{display:flex;position:relative;z-index:1;margin-left:calc(var(--level) * var(--jse-indent-size, calc(1em + 4px)));max-width:250px;min-width:100px;height:0;margin-right:calc(0.5 * var(--jse-padding, 10px));outline:1px solid}.jse-json-node.svelte-6mjnsm .jse-insert-area.svelte-6mjnsm .jse-context-menu-pointer{right:-1px;background:var(--jse-context-menu-pointer-hover-background, #b2b2b2)}.jse-json-node.svelte-6mjnsm .jse-insert-area.jse-hovered.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{outline-color:var(--jse-context-menu-pointer-hover-background, #b2b2b2)}.jse-json-node.svelte-6mjnsm:hover>.jse-contents-outer .jse-insert-selection-area.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm:not(.jse-selected),.jse-json-node.svelte-6mjnsm .jse-header-outer.svelte-6mjnsm:hover>.jse-insert-selection-area.svelte-6mjnsm.svelte-6mjnsm:not(.jse-selected),.jse-json-node.svelte-6mjnsm .jse-footer-outer:hover .jse-insert-selection-area.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm:not(.jse-selected){visibility:visible}.jse-json-node.jse-hovered.svelte-6mjnsm>.jse-header-outer.svelte-6mjnsm>.jse-header.svelte-6mjnsm>.jse-meta.svelte-6mjnsm,.jse-json-node.jse-hovered.svelte-6mjnsm .jse-props .jse-header.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.jse-hovered.svelte-6mjnsm .jse-items .jse-header.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.jse-hovered.svelte-6mjnsm .jse-props .jse-contents.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.jse-hovered.svelte-6mjnsm .jse-items .jse-contents.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.jse-hovered.svelte-6mjnsm .jse-footer.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{background:var(--jse-hover-background-color, rgba(0, 0, 0, 0.06))}.jse-json-node.jse-selected.svelte-6mjnsm>.jse-header-outer.svelte-6mjnsm>.jse-header.svelte-6mjnsm>.jse-meta.svelte-6mjnsm,.jse-json-node.jse-selected.svelte-6mjnsm .jse-props .jse-header.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.jse-selected.svelte-6mjnsm .jse-items .jse-header.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.jse-selected.svelte-6mjnsm .jse-props .jse-contents.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.jse-selected.svelte-6mjnsm .jse-items .jse-contents.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.jse-selected.svelte-6mjnsm .jse-header.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.jse-selected.svelte-6mjnsm .jse-contents.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.jse-selected.svelte-6mjnsm .jse-footer.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.jse-selected.svelte-6mjnsm .jse-key,.jse-json-node.jse-selected.svelte-6mjnsm .jse-value{background:var(--jse-selection-background-color, #d3d3d3);cursor:var(--jse-contents-selected-cursor, grab)}.jse-json-node.jse-selected.svelte-6mjnsm .jse-expand.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{background:var(--jse-selection-background-color, #d3d3d3)}.jse-json-node.jse-selected-key.svelte-6mjnsm>.jse-contents-outer.svelte-6mjnsm>.jse-contents.svelte-6mjnsm>.jse-identifier>.jse-key,.jse-json-node.jse-selected-key.svelte-6mjnsm>.jse-header-outer.svelte-6mjnsm>.jse-header.svelte-6mjnsm>.jse-identifier>.jse-key{background:var(--jse-selection-background-color, #d3d3d3);cursor:var(--jse-contents-selected-cursor, grab)}.jse-json-node.jse-selected-value.svelte-6mjnsm>.jse-contents-outer.svelte-6mjnsm>.jse-contents.svelte-6mjnsm>.jse-value{background:var(--jse-selection-background-color, #d3d3d3);cursor:var(--jse-contents-selected-cursor, grab)}.jse-json-node.svelte-6mjnsm .jse-collapsed-items.jse-selected,.jse-json-node.jse-selected.svelte-6mjnsm .jse-collapsed-items,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-collapsed-items{background-color:var(--jse-selection-background-color, #d3d3d3);--jse-collapsed-items-background-color:var(--jse-collapsed-items-selected-background-color, #c2c2c2)}.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-meta.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.jse-selected-value.svelte-6mjnsm>.jse-header-outer.svelte-6mjnsm>.jse-header.svelte-6mjnsm>.jse-meta.svelte-6mjnsm,.jse-json-node.jse-selected-value.svelte-6mjnsm>.jse-footer-outer.svelte-6mjnsm>.jse-footer.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-props .jse-contents.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-props .jse-header.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-props .jse-footer.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-props .jse-expand.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-items .jse-contents.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-items .jse-header.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-items .jse-footer.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-items .jse-expand.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{background:var(--jse-selection-background-color, #d3d3d3)}.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-meta.svelte-6mjnsm .jse-key,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-meta.svelte-6mjnsm .jse-value,.jse-json-node.jse-selected-value.svelte-6mjnsm>.jse-header-outer.svelte-6mjnsm>.jse-header.svelte-6mjnsm>.jse-meta.svelte-6mjnsm .jse-key,.jse-json-node.jse-selected-value.svelte-6mjnsm>.jse-header-outer.svelte-6mjnsm>.jse-header.svelte-6mjnsm>.jse-meta.svelte-6mjnsm .jse-value,.jse-json-node.jse-selected-value.svelte-6mjnsm>.jse-footer-outer.svelte-6mjnsm>.jse-footer.svelte-6mjnsm .jse-key,.jse-json-node.jse-selected-value.svelte-6mjnsm>.jse-footer-outer.svelte-6mjnsm>.jse-footer.svelte-6mjnsm .jse-value,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-props .jse-contents.svelte-6mjnsm .jse-key,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-props .jse-contents.svelte-6mjnsm .jse-value,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-props .jse-header.svelte-6mjnsm .jse-key,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-props .jse-header.svelte-6mjnsm .jse-value,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-props .jse-footer.svelte-6mjnsm .jse-key,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-props .jse-footer.svelte-6mjnsm .jse-value,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-props .jse-expand.svelte-6mjnsm .jse-key,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-props .jse-expand.svelte-6mjnsm .jse-value,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-items .jse-contents.svelte-6mjnsm .jse-key,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-items .jse-contents.svelte-6mjnsm .jse-value,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-items .jse-header.svelte-6mjnsm .jse-key,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-items .jse-header.svelte-6mjnsm .jse-value,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-items .jse-footer.svelte-6mjnsm .jse-key,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-items .jse-footer.svelte-6mjnsm .jse-value,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-items .jse-expand.svelte-6mjnsm .jse-key,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-items .jse-expand.svelte-6mjnsm .jse-value{background:var(--jse-selection-background-color, #d3d3d3);cursor:var(--jse-contents-selected-cursor, grab)}.jse-json-node.jse-readonly.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{--jse-contents-selected-cursor:pointer}.jse-json-node.svelte-6mjnsm .jse-insert-area.jse-selected.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{outline-color:var(--jse-context-menu-pointer-background, var(--jse-context-menu-background, #656565))}.jse-json-node.svelte-6mjnsm .jse-insert-area.jse-selected.svelte-6mjnsm .jse-context-menu-pointer{background:var(--jse-context-menu-pointer-background, var(--jse-context-menu-background, #656565))}.jse-json-node.svelte-6mjnsm .jse-insert-area.jse-selected.svelte-6mjnsm .jse-context-menu-pointer:hover{background:var(--jse-context-menu-pointer-background-highlight, var(--jse-context-menu-background-highlight, #7a7a7a))}.jse-main:not(.jse-focus) .jse-json-node.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{--jse-selection-background-color:var(--jse-selection-background-inactive-color, #e8e8e8);--jse-context-menu-pointer-background:var(--jse-context-menu-pointer-hover-background, #b2b2b2)}.jse-expand.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{width:var(--jse-indent-size, calc(1em + 4px));padding:0;margin:0;border:none;cursor:pointer;background:transparent;color:var(--jse-delimiter-color, rgba(0, 0, 0, 0.38));font-size:var(--jse-font-size-mono, 14px);height:var(--jse-line-height, calc(1em + 4px))}.jse-expand.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm:hover{opacity:0.8}.jse-meta.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-separator.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-index.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-bracket.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{vertical-align:top;color:var(--jse-delimiter-color, rgba(0, 0, 0, 0.38))}.jse-index.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{padding:0 calc(0.5 * var(--jse-padding, 10px))}.jse-bracket.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{padding:0 2px}.jse-bracket.jse-expanded.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{padding-right:var(--jse-padding, 10px)}.jse-tag.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{border:none;font-size:80%;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);color:var(--jse-tag-color, var(--jse-text-color-inverse, #fff));background:var(--jse-tag-background, rgba(0, 0, 0, 0.2));border-radius:2px;cursor:pointer;display:inline-block;padding:0 4px;line-height:normal;margin:1px 0}.jse-tag.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm:hover{opacity:0.8}.jse-tag.jse-expanded.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{opacity:0.7;cursor:inherit}.jse-identifier.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{vertical-align:top;position:relative}')}var LD=function(e){return{}},qD=function(e){return{}};function FD(e,t,n){var r=e.slice();return r[52]=t[n],r}var VD=function(e){return{}},HD=function(e){return{}};function WD(e,t,n){var r=e.slice();return r[46]=t[n],r[48]=n,r}function UD(e,t,n){var r=e.slice();return r[49]=t[n],r}var JD=function(e){return{}},KD=function(e){return{}};function GD(e){var t,n,r,o,i,a,s,c,u,l=!e[8].readOnly&&e[16]&&e[7]&&(mA(e[7])||gA(e[7]))&&!LA(e[7])&&Ax(KA(e[7]),e[1]),f=e[33].identifier,d=Zo(f,e,e[34],qD),h=!e[17]&&XD();i=new ED({props:{path:e[1],value:e[0],enforceString:e[13]||!1,selection:e[16]?e[7]:null,searchResultItems:_E(e[6],e[9]),context:e[8]}});var v=l&&ZD(e),p=e[15]&&ez(e),m=!e[17]&&tz(e);return{c:function(){t=ki("div"),n=ki("div"),d&&d.c(),r=Ci(),h&&h.c(),o=Ci(),Ea(i.$$.fragment),a=Ci(),v&&v.c(),s=Ci(),p&&p.c(),c=Ci(),m&&m.c(),Ai(n,"class","jse-contents svelte-6mjnsm"),Ai(t,"class","jse-contents-outer svelte-6mjnsm")},m:function(e,l){bi(e,t,l),vi(t,n),d&&d.m(n,null),vi(n,r),h&&h.m(n,null),vi(n,o),Pa(i,n,null),vi(n,a),v&&v.m(n,null),vi(t,s),p&&p.m(t,null),vi(t,c),m&&m.m(t,null),u=!0},p:function(e,r){d&&d.p&&(!u||8&r[1])&&ni(d,f,e,e[34],u?ti(f,e[34],r,LD):ri(e[34]),qD),e[17]?h&&(h.d(1),h=null):h||((h=XD()).c(),h.m(n,o));var a={};2&r[0]&&(a.path=e[1]),1&r[0]&&(a.value=e[0]),8192&r[0]&&(a.enforceString=e[13]||!1),65664&r[0]&&(a.selection=e[16]?e[7]:null),576&r[0]&&(a.searchResultItems=_E(e[6],e[9])),256&r[0]&&(a.context=e[8]),i.$set(a),65922&r[0]&&(l=!e[8].readOnly&&e[16]&&e[7]&&(mA(e[7])||gA(e[7]))&&!LA(e[7])&&Ax(KA(e[7]),e[1])),l?v?(v.p(e,r),65922&r[0]&&wa(v,1)):((v=ZD(e)).c(),wa(v,1),v.m(n,null)):v&&(ya(),xa(v,1,1,(function(){v=null})),ba()),e[15]?p?(p.p(e,r),32768&r[0]&&wa(p,1)):((p=ez(e)).c(),wa(p,1),p.m(t,c)):p&&(ya(),xa(p,1,1,(function(){p=null})),ba()),e[17]?m&&(m.d(1),m=null):m?m.p(e,r):((m=tz(e)).c(),m.m(t,null))},i:function(e){u||(wa(d,e),wa(i.$$.fragment,e),wa(v),wa(p),u=!0)},o:function(e){xa(d,e),xa(i.$$.fragment,e),xa(v),xa(p),u=!1},d:function(e){e&&wi(t),d&&d.d(e),h&&h.d(),Ta(i),v&&v.d(),p&&p.d(),m&&m.d()}}}function QD(e){var t,n,r,o,i,a,s,c,u,l,f,d,h,v,p,m,g,y,b=!e[8].readOnly&&e[16]&&e[7]&&(mA(e[7])||gA(e[7]))&&!LA(e[7])&&Ax(KA(e[7]),e[1]),w=[rz,nz],x=[];function k(e,t){return e[12]?0:1}o=k(e),i=x[o]=w[o](e);var j=e[33].identifier,S=Zo(j,e,e[34],HD),C=!e[17]&&oz();function $(e,t){return e[12]?az:iz}var _=$(e),O=_(e),M=b&&sz(e),A=e[15]&&(!e[12]||!e[15].isChildError)&&cz(e);function E(e,t){return e[12]?lz:e[17]?void 0:uz}var P=E(e),T=P&&P(e),R=e[12]&&fz(e);return{c:function(){t=ki("div"),n=ki("div"),r=ki("button"),i.c(),a=Ci(),S&&S.c(),s=Ci(),C&&C.c(),c=Ci(),u=ki("div"),l=ki("div"),O.c(),f=Ci(),M&&M.c(),d=Ci(),A&&A.c(),h=Ci(),T&&T.c(),v=Ci(),R&&R.c(),p=$i(),Ai(r,"type","button"),Ai(r,"class","jse-expand svelte-6mjnsm"),Ai(r,"title","Expand or collapse this object (Ctrl+Click to expand/collapse recursively)"),Ai(l,"class","jse-meta-inner svelte-6mjnsm"),Ai(u,"class","jse-meta svelte-6mjnsm"),Ai(u,"data-type","selectable-value"),Ai(n,"class","jse-header svelte-6mjnsm"),Ai(t,"class","jse-header-outer svelte-6mjnsm")},m:function(i,b){bi(i,t,b),vi(t,n),vi(n,r),x[o].m(r,null),vi(n,a),S&&S.m(n,null),vi(n,s),C&&C.m(n,null),vi(n,c),vi(n,u),vi(u,l),O.m(l,null),vi(n,f),M&&M.m(n,null),vi(t,d),A&&A.m(t,null),vi(t,h),T&&T.m(t,null),bi(i,v,b),R&&R.m(i,b),bi(i,p,b),m=!0,g||(y=_i(r,"click",e[20]),g=!0)},p:function(e,a){var s=o;(o=k(e))!==s&&(ya(),xa(x[s],1,1,(function(){x[s]=null})),ba(),(i=x[o])||(i=x[o]=w[o](e)).c(),wa(i,1),i.m(r,null)),S&&S.p&&(!m||8&a[1])&&ni(S,j,e,e[34],m?ti(j,e[34],a,VD):ri(e[34]),HD),e[17]?C&&(C.d(1),C=null):C||((C=oz()).c(),C.m(n,c)),_===(_=$(e))&&O?O.p(e,a):(O.d(1),(O=_(e))&&(O.c(),O.m(l,null))),65922&a[0]&&(b=!e[8].readOnly&&e[16]&&e[7]&&(mA(e[7])||gA(e[7]))&&!LA(e[7])&&Ax(KA(e[7]),e[1])),b?M?(M.p(e,a),65922&a[0]&&wa(M,1)):((M=sz(e)).c(),wa(M,1),M.m(n,null)):M&&(ya(),xa(M,1,1,(function(){M=null})),ba()),!e[15]||e[12]&&e[15].isChildError?A&&(ya(),xa(A,1,1,(function(){A=null})),ba()):A?(A.p(e,a),36864&a[0]&&wa(A,1)):((A=cz(e)).c(),wa(A,1),A.m(t,h)),P===(P=E(e))&&T?T.p(e,a):(T&&T.d(1),(T=P&&P(e))&&(T.c(),T.m(t,null))),e[12]?R?(R.p(e,a),4096&a[0]&&wa(R,1)):((R=fz(e)).c(),wa(R,1),R.m(p.parentNode,p)):R&&(ya(),xa(R,1,1,(function(){R=null})),ba())},i:function(e){m||(wa(i),wa(S,e),wa(M),wa(A),wa(R),m=!0)},o:function(e){xa(i),xa(S,e),xa(M),xa(A),xa(R),m=!1},d:function(e){e&&(wi(t),wi(v),wi(p)),x[o].d(),S&&S.d(e),C&&C.d(),O.d(),M&&M.d(),A&&A.d(),T&&T.d(),R&&R.d(e),g=!1,y()}}}function YD(e){var t,n,r,o,i,a,s,c,u,l,f,d,h,v,p,m,g,y,b=!e[8].readOnly&&e[16]&&e[7]&&(mA(e[7])||gA(e[7]))&&!LA(e[7])&&Ax(KA(e[7]),e[1]),w=[gz,mz],x=[];function k(e,t){return e[12]?0:1}o=k(e),i=x[o]=w[o](e);var j=e[33].identifier,S=Zo(j,e,e[34],KD),C=!e[17]&&yz();function $(e,t){return e[12]?wz:bz}var _=$(e),O=_(e),M=b&&xz(e),A=e[15]&&(!e[12]||!e[15].isChildError)&&kz(e);function E(e,t){return e[12]?Sz:jz}var P=E(e),T=P(e),R=e[12]&&Cz(e);return{c:function(){t=ki("div"),n=ki("div"),r=ki("button"),i.c(),a=Ci(),S&&S.c(),s=Ci(),C&&C.c(),c=Ci(),u=ki("div"),l=ki("div"),O.c(),f=Ci(),M&&M.c(),d=Ci(),A&&A.c(),h=Ci(),T.c(),v=Ci(),R&&R.c(),p=$i(),Ai(r,"type","button"),Ai(r,"class","jse-expand svelte-6mjnsm"),Ai(r,"title","Expand or collapse this array (Ctrl+Click to expand/collapse recursively)"),Ai(l,"class","jse-meta-inner svelte-6mjnsm"),Ai(l,"data-type","selectable-value"),Ai(u,"class","jse-meta svelte-6mjnsm"),Ai(n,"class","jse-header svelte-6mjnsm"),Ai(t,"class","jse-header-outer svelte-6mjnsm")},m:function(i,b){bi(i,t,b),vi(t,n),vi(n,r),x[o].m(r,null),vi(n,a),S&&S.m(n,null),vi(n,s),C&&C.m(n,null),vi(n,c),vi(n,u),vi(u,l),O.m(l,null),vi(n,f),M&&M.m(n,null),vi(t,d),A&&A.m(t,null),vi(t,h),T.m(t,null),bi(i,v,b),R&&R.m(i,b),bi(i,p,b),m=!0,g||(y=_i(r,"click",e[20]),g=!0)},p:function(e,a){var s=o;(o=k(e))!==s&&(ya(),xa(x[s],1,1,(function(){x[s]=null})),ba(),(i=x[o])||(i=x[o]=w[o](e)).c(),wa(i,1),i.m(r,null)),S&&S.p&&(!m||8&a[1])&&ni(S,j,e,e[34],m?ti(j,e[34],a,JD):ri(e[34]),KD),e[17]?C&&(C.d(1),C=null):C||((C=yz()).c(),C.m(n,c)),_===(_=$(e))&&O?O.p(e,a):(O.d(1),(O=_(e))&&(O.c(),O.m(l,null))),65922&a[0]&&(b=!e[8].readOnly&&e[16]&&e[7]&&(mA(e[7])||gA(e[7]))&&!LA(e[7])&&Ax(KA(e[7]),e[1])),b?M?(M.p(e,a),65922&a[0]&&wa(M,1)):((M=xz(e)).c(),wa(M,1),M.m(n,null)):M&&(ya(),xa(M,1,1,(function(){M=null})),ba()),!e[15]||e[12]&&e[15].isChildError?A&&(ya(),xa(A,1,1,(function(){A=null})),ba()):A?(A.p(e,a),36864&a[0]&&wa(A,1)):((A=kz(e)).c(),wa(A,1),A.m(t,h)),P===(P=E(e))&&T?T.p(e,a):(T.d(1),(T=P(e))&&(T.c(),T.m(t,null))),e[12]?R?(R.p(e,a),4096&a[0]&&wa(R,1)):((R=Cz(e)).c(),wa(R,1),R.m(p.parentNode,p)):R&&(ya(),xa(R,1,1,(function(){R=null})),ba())},i:function(e){m||(wa(i),wa(S,e),wa(M),wa(A),wa(R),m=!0)},o:function(e){xa(i),xa(S,e),xa(M),xa(A),xa(R),m=!1},d:function(e){e&&(wi(t),wi(v),wi(p)),x[o].d(),S&&S.d(e),C&&C.d(),O.d(),M&&M.d(),A&&A.d(),T.d(),R&&R.d(e),g=!1,y()}}}function XD(e){var t;return{c:function(){(t=ki("div")).textContent=":",Ai(t,"class","jse-separator svelte-6mjnsm")},m:function(e,n){bi(e,t,n)},d:function(e){e&&wi(t)}}}function ZD(e){var t,n,r;return n=new dD({props:{selected:!0,onContextMenu:e[8].onContextMenu}}),{c:function(){t=ki("div"),Ea(n.$$.fragment),Ai(t,"class","jse-context-menu-pointer-anchor svelte-6mjnsm")},m:function(e,o){bi(e,t,o),Pa(n,t,null),r=!0},p:function(e,t){var r={};256&t[0]&&(r.onContextMenu=e[8].onContextMenu),n.$set(r)},i:function(e){r||(wa(n.$$.fragment,e),r=!0)},o:function(e){xa(n.$$.fragment,e),r=!1},d:function(e){e&&wi(t),Ta(n)}}}function ez(e){var t,n;return t=new zD({props:{validationError:e[15],onExpand:e[21]}}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},p:function(e,n){var r={};32768&n[0]&&(r.validationError=e[15]),t.$set(r)},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}function tz(e){var t,n,r;return{c:function(){Ai(t=ki("div"),"role","none"),Ai(t,"class","jse-insert-selection-area jse-after svelte-6mjnsm"),Ai(t,"data-type","insert-selection-area-after")},m:function(o,i){bi(o,t,i),n||(r=_i(t,"click",e[29]),n=!0)},p:Ho,d:function(e){e&&wi(t),n=!1,r()}}}function nz(e){var t,n;return t=new SM({props:{data:eP}}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}function rz(e){var t,n;return t=new SM({props:{data:kP}}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}function oz(e){var t;return{c:function(){(t=ki("div")).textContent=":",Ai(t,"class","jse-separator svelte-6mjnsm")},m:function(e,n){bi(e,t,n)},d:function(e){e&&wi(t)}}}function iz(e){var t,n,r,o,i,a,s,c,u,l,f=Object.keys(e[0]).length+"",d=1===Object.keys(e[0]).length?"prop":"props";return{c:function(){(t=ki("div")).textContent="{",n=Ci(),r=ki("button"),o=Si(f),i=Ci(),a=Si(d),s=Ci(),(c=ki("div")).textContent="}",Ai(t,"class","jse-bracket svelte-6mjnsm"),Ai(r,"type","button"),Ai(r,"class","jse-tag svelte-6mjnsm"),Ai(c,"class","jse-bracket svelte-6mjnsm")},m:function(f,d){bi(f,t,d),bi(f,n,d),bi(f,r,d),vi(r,o),vi(r,i),vi(r,a),bi(f,s,d),bi(f,c,d),u||(l=_i(r,"click",e[21]),u=!0)},p:function(e,t){1&t[0]&&f!==(f=Object.keys(e[0]).length+"")&&Ri(o,f),1&t[0]&&d!==(d=1===Object.keys(e[0]).length?"prop":"props")&&Ri(a,d)},d:function(e){e&&(wi(t),wi(n),wi(r),wi(s),wi(c)),u=!1,l()}}}function az(e){var t;return{c:function(){(t=ki("div")).textContent="{",Ai(t,"class","jse-bracket jse-expanded svelte-6mjnsm")},m:function(e,n){bi(e,t,n)},p:Ho,d:function(e){e&&wi(t)}}}function sz(e){var t,n,r;return n=new dD({props:{selected:!0,onContextMenu:e[8].onContextMenu}}),{c:function(){t=ki("div"),Ea(n.$$.fragment),Ai(t,"class","jse-context-menu-pointer-anchor svelte-6mjnsm")},m:function(e,o){bi(e,t,o),Pa(n,t,null),r=!0},p:function(e,t){var r={};256&t[0]&&(r.onContextMenu=e[8].onContextMenu),n.$set(r)},i:function(e){r||(wa(n.$$.fragment,e),r=!0)},o:function(e){xa(n.$$.fragment,e),r=!1},d:function(e){e&&wi(t),Ta(n)}}}function cz(e){var t,n;return t=new zD({props:{validationError:e[15],onExpand:e[21]}}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},p:function(e,n){var r={};32768&n[0]&&(r.validationError=e[15]),t.$set(r)},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}function uz(e){var t,n,r;return{c:function(){Ai(t=ki("div"),"role","none"),Ai(t,"class","jse-insert-selection-area jse-after svelte-6mjnsm"),Ai(t,"data-type","insert-selection-area-after")},m:function(o,i){bi(o,t,i),n||(r=_i(t,"click",e[29]),n=!0)},p:Ho,d:function(e){e&&wi(t),n=!1,r()}}}function lz(e){var t,n,r;return{c:function(){Ai(t=ki("div"),"role","none"),Ai(t,"class","jse-insert-selection-area jse-inside svelte-6mjnsm"),Ai(t,"data-type","insert-selection-area-inside")},m:function(o,i){bi(o,t,i),n||(r=_i(t,"click",e[28]),n=!0)},p:Ho,d:function(e){e&&wi(t),n=!1,r()}}}function fz(e){for(var t,n,r,o,i,a,s,c=!e[8].readOnly&&(e[10]===ks||e[16]&&vA(e[7])),u=c&&dz(e),l=Sa(e[18](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]=vz(FD(e,l,d));var h=function(e){return xa(f[e],1,1,(function(){f[e]=null}))},v=!e[17]&&pz(e);return{c:function(){t=ki("div"),u&&u.c(),n=Ci();for(var e=0;e<f.length;e+=1)f[e].c();r=Ci(),o=ki("div"),(i=ki("div")).innerHTML='<div class="jse-bracket svelte-6mjnsm">}</div>',a=Ci(),v&&v.c(),Ai(t,"class","jse-props svelte-6mjnsm"),Ai(i,"data-type","selectable-value"),Ai(i,"class","jse-footer svelte-6mjnsm"),Ai(o,"class","jse-footer-outer svelte-6mjnsm")},m:function(e,c){bi(e,t,c),u&&u.m(t,null),vi(t,n);for(var l=0;l<f.length;l+=1)f[l]&&f[l].m(t,null);bi(e,r,c),bi(e,o,c),vi(o,i),vi(o,a),v&&v.m(o,null),s=!0},p:function(e,r){if(66944&r[0]&&(c=!e[8].readOnly&&(e[10]===ks||e[16]&&vA(e[7]))),c?u?(u.p(e,r),66944&r[0]&&wa(u,1)):((u=dz(e)).c(),wa(u,1),u.m(t,n)):u&&(ya(),xa(u,1,1,(function(){u=null})),ba()),38013439&r[0]){var i;for(l=Sa(e[18](e[1],e[0],e[2],e[3],e[4],e[5],e[6],e[7],e[11])),i=0;i<l.length;i+=1){var a=FD(e,l,i);f[i]?(f[i].p(a,r),wa(f[i],1)):(f[i]=vz(a),f[i].c(),wa(f[i],1),f[i].m(t,null))}for(ya(),i=l.length;i<f.length;i+=1)h(i);ba()}e[17]?v&&(v.d(1),v=null):v?v.p(e,r):((v=pz(e)).c(),v.m(o,null))},i:function(e){if(!s){wa(u);for(var t=0;t<l.length;t+=1)wa(f[t]);s=!0}},o:function(e){xa(u),f=f.filter(Boolean);for(var t=0;t<f.length;t+=1)xa(f[t]);s=!1},d:function(e){e&&(wi(t),wi(r),wi(o)),u&&u.d(),xi(f,e),v&&v.d()}}}function dz(e){var t,n,r;return n=new dD({props:{selected:e[16]&&vA(e[7]),onContextMenu:e[30]}}),{c:function(){t=ki("div"),Ea(n.$$.fragment),Ai(t,"class","jse-insert-area jse-inside svelte-6mjnsm"),Ai(t,"data-type","insert-selection-area-inside"),Ai(t,"title",ws),zi(t,"jse-hovered",e[10]===ks),zi(t,"jse-selected",e[16]&&vA(e[7])),Ii(t,"--level",e[1].length+1)},m:function(e,o){bi(e,t,o),Pa(n,t,null),r=!0},p:function(e,o){var i={};65664&o[0]&&(i.selected=e[16]&&vA(e[7])),n.$set(i),(!r||1024&o[0])&&zi(t,"jse-hovered",e[10]===ks),(!r||65664&o[0])&&zi(t,"jse-selected",e[16]&&vA(e[7])),2&o[0]&&Ii(t,"--level",e[1].length+1)},i:function(e){r||(wa(n.$$.fragment,e),r=!0)},o:function(e){xa(n.$$.fragment,e),r=!1},d:function(e){e&&wi(t),Ta(n)}}}function hz(e){var t,n,r,o;return n=new xD({props:{path:e[52].path,key:e[52].key,selection:e[52].selection,searchResultItems:e[52].keySearchResultItemsMap,context:e[8],onUpdateKey:e[22]}}),{c:function(){t=ki("div"),Ea(n.$$.fragment),r=Ci(),Ai(t,"slot","identifier"),Ai(t,"class","jse-identifier svelte-6mjnsm")},m:function(e,i){bi(e,t,i),Pa(n,t,null),vi(t,r),o=!0},p:function(e,t){var r={};2303&t[0]&&(r.path=e[52].path),2303&t[0]&&(r.key=e[52].key),2303&t[0]&&(r.selection=e[52].selection),2303&t[0]&&(r.searchResultItems=e[52].keySearchResultItemsMap),256&t[0]&&(r.context=e[8]),n.$set(r)},i:function(e){o||(wa(n.$$.fragment,e),o=!0)},o:function(e){xa(n.$$.fragment,e),o=!1},d:function(e){e&&wi(t),Ta(n)}}}function vz(e){var t,n;return t=new Nz({props:{value:e[52].value,path:e[52].path,expandedMap:e[52].expandedMap,enforceStringMap:e[52].enforceStringMap,visibleSectionsMap:e[52].visibleSectionsMap,validationErrorsMap:e[52].validationErrorsMap,searchResultItemsMap:e[52].valueSearchResultItemsMap,selection:e[52].selection,context:e[8],onDragSelectionStart:e[25],$$slots:{identifier:[hz]},$$scope:{ctx:e}}}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},p:function(e,n){var r={};2303&n[0]&&(r.value=e[52].value),2303&n[0]&&(r.path=e[52].path),2303&n[0]&&(r.expandedMap=e[52].expandedMap),2303&n[0]&&(r.enforceStringMap=e[52].enforceStringMap),2303&n[0]&&(r.visibleSectionsMap=e[52].visibleSectionsMap),2303&n[0]&&(r.validationErrorsMap=e[52].validationErrorsMap),2303&n[0]&&(r.searchResultItemsMap=e[52].valueSearchResultItemsMap),2303&n[0]&&(r.selection=e[52].selection),256&n[0]&&(r.context=e[8]),2559&n[0]|8&n[1]&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}function pz(e){var t,n,r;return{c:function(){Ai(t=ki("div"),"role","none"),Ai(t,"class","jse-insert-selection-area jse-after svelte-6mjnsm"),Ai(t,"data-type","insert-selection-area-after")},m:function(o,i){bi(o,t,i),n||(r=_i(t,"click",e[29]),n=!0)},p:Ho,d:function(e){e&&wi(t),n=!1,r()}}}function mz(e){var t,n;return t=new SM({props:{data:eP}}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}function gz(e){var t,n;return t=new SM({props:{data:kP}}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}function yz(e){var t;return{c:function(){(t=ki("div")).textContent=":",Ai(t,"class","jse-separator svelte-6mjnsm")},m:function(e,n){bi(e,t,n)},d:function(e){e&&wi(t)}}}function bz(e){var t,n,r,o,i,a,s,c,u,l,f=e[0].length+"",d=1===e[0].length?"item":"items";return{c:function(){(t=ki("div")).textContent="[",n=Ci(),r=ki("button"),o=Si(f),i=Ci(),a=Si(d),s=Ci(),(c=ki("div")).textContent="]",Ai(t,"class","jse-bracket svelte-6mjnsm"),Ai(r,"type","button"),Ai(r,"class","jse-tag svelte-6mjnsm"),Ai(c,"class","jse-bracket svelte-6mjnsm")},m:function(f,d){bi(f,t,d),bi(f,n,d),bi(f,r,d),vi(r,o),vi(r,i),vi(r,a),bi(f,s,d),bi(f,c,d),u||(l=_i(r,"click",e[21]),u=!0)},p:function(e,t){1&t[0]&&f!==(f=e[0].length+"")&&Ri(o,f),1&t[0]&&d!==(d=1===e[0].length?"item":"items")&&Ri(a,d)},d:function(e){e&&(wi(t),wi(n),wi(r),wi(s),wi(c)),u=!1,l()}}}function wz(e){var t,n,r,o,i,a,s,c=e[0].length+"",u=1===e[0].length?"item":"items";return{c:function(){(t=ki("div")).textContent="[",n=Ci(),r=ki("span"),o=Si(c),i=Ci(),a=Si(u),s=Si("\n               "),Ai(t,"class","jse-bracket svelte-6mjnsm"),Ai(r,"class","jse-tag jse-expanded svelte-6mjnsm")},m:function(e,c){bi(e,t,c),bi(e,n,c),bi(e,r,c),vi(r,o),vi(r,i),vi(r,a),bi(e,s,c)},p:function(e,t){1&t[0]&&c!==(c=e[0].length+"")&&Ri(o,c),1&t[0]&&u!==(u=1===e[0].length?"item":"items")&&Ri(a,u)},d:function(e){e&&(wi(t),wi(n),wi(r),wi(s))}}}function xz(e){var t,n,r;return n=new dD({props:{selected:!0,onContextMenu:e[8].onContextMenu}}),{c:function(){t=ki("div"),Ea(n.$$.fragment),Ai(t,"class","jse-context-menu-pointer-anchor svelte-6mjnsm")},m:function(e,o){bi(e,t,o),Pa(n,t,null),r=!0},p:function(e,t){var r={};256&t[0]&&(r.onContextMenu=e[8].onContextMenu),n.$set(r)},i:function(e){r||(wa(n.$$.fragment,e),r=!0)},o:function(e){xa(n.$$.fragment,e),r=!1},d:function(e){e&&wi(t),Ta(n)}}}function kz(e){var t,n;return t=new zD({props:{validationError:e[15],onExpand:e[21]}}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},p:function(e,n){var r={};32768&n[0]&&(r.validationError=e[15]),t.$set(r)},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}function jz(e){var t,n,r;return{c:function(){Ai(t=ki("div"),"role","none"),Ai(t,"class","jse-insert-selection-area jse-after svelte-6mjnsm"),Ai(t,"data-type","insert-selection-area-after")},m:function(o,i){bi(o,t,i),n||(r=_i(t,"click",e[29]),n=!0)},p:Ho,d:function(e){e&&wi(t),n=!1,r()}}}function Sz(e){var t,n,r;return{c:function(){Ai(t=ki("div"),"role","none"),Ai(t,"class","jse-insert-selection-area jse-inside svelte-6mjnsm"),Ai(t,"data-type","insert-selection-area-inside")},m:function(o,i){bi(o,t,i),n||(r=_i(t,"click",e[28]),n=!0)},p:Ho,d:function(e){e&&wi(t),n=!1,r()}}}function Cz(e){for(var t,n,r,o,i,a,s,c=!e[8].readOnly&&(e[10]===ks||e[16]&&vA(e[7])),u=[],l=new Map,f=c&&$z(e),d=Sa(e[14]||fs),h=function(e){return e[48]},v=0;v<d.length;v+=1){var p=WD(e,d,v),m=h(p);l.set(m,u[v]=Az(m,p))}var g=!e[17]&&Ez(e);return{c:function(){t=ki("div"),f&&f.c(),n=Ci();for(var e=0;e<u.length;e+=1)u[e].c();r=Ci(),o=ki("div"),(i=ki("div")).innerHTML='<span class="jse-bracket svelte-6mjnsm">]</span>',a=Ci(),g&&g.c(),Ai(t,"class","jse-items svelte-6mjnsm"),Ai(i,"data-type","selectable-value"),Ai(i,"class","jse-footer svelte-6mjnsm"),Ai(o,"class","jse-footer-outer svelte-6mjnsm")},m:function(e,c){bi(e,t,c),f&&f.m(t,null),vi(t,n);for(var l=0;l<u.length;l+=1)u[l]&&u[l].m(t,null);bi(e,r,c),bi(e,o,c),vi(o,i),vi(o,a),g&&g.m(o,null),s=!0},p:function(e,r){66944&r[0]&&(c=!e[8].readOnly&&(e[10]===ks||e[16]&&vA(e[7]))),c?f?(f.p(e,r),66944&r[0]&&wa(f,1)):((f=$z(e)).c(),wa(f,1),f.m(t,n)):f&&(ya(),xa(f,1,1,(function(){f=null})),ba()),34097663&r[0]&&(d=Sa(e[14]||fs),ya(),u=_a(u,r,h,1,e,d,l,t,$a,Az,null,WD),ba()),e[17]?g&&(g.d(1),g=null):g?g.p(e,r):((g=Ez(e)).c(),g.m(o,null))},i:function(e){if(!s){wa(f);for(var t=0;t<d.length;t+=1)wa(u[t]);s=!0}},o:function(e){xa(f);for(var t=0;t<u.length;t+=1)xa(u[t]);s=!1},d:function(e){e&&(wi(t),wi(r),wi(o)),f&&f.d();for(var n=0;n<u.length;n+=1)u[n].d();g&&g.d()}}}function $z(e){var t,n,r;return n=new dD({props:{selected:e[16]&&vA(e[7]),onContextMenu:e[30]}}),{c:function(){t=ki("div"),Ea(n.$$.fragment),Ai(t,"class","jse-insert-area jse-inside svelte-6mjnsm"),Ai(t,"data-type","insert-selection-area-inside"),Ai(t,"title",ws),zi(t,"jse-hovered",e[10]===ks),zi(t,"jse-selected",e[16]&&vA(e[7])),Ii(t,"--level",e[1].length+1)},m:function(e,o){bi(e,t,o),Pa(n,t,null),r=!0},p:function(e,o){var i={};65664&o[0]&&(i.selected=e[16]&&vA(e[7])),n.$set(i),(!r||1024&o[0])&&zi(t,"jse-hovered",e[10]===ks),(!r||65664&o[0])&&zi(t,"jse-selected",e[16]&&vA(e[7])),2&o[0]&&Ii(t,"--level",e[1].length+1)},i:function(e){r||(wa(n.$$.fragment,e),r=!0)},o:function(e){xa(n.$$.fragment,e),r=!1},d:function(e){e&&wi(t),Ta(n)}}}function _z(e){var t,n,r,o=e[49].index+"";return{c:function(){t=ki("div"),n=ki("div"),r=Si(o),Ai(n,"class","jse-index svelte-6mjnsm"),Ai(t,"slot","identifier"),Ai(t,"class","jse-identifier svelte-6mjnsm")},m:function(e,o){bi(e,t,o),vi(t,n),vi(n,r)},p:function(e,t){18687&t[0]&&o!==(o=e[49].index+"")&&Ri(r,o)},d:function(e){e&&wi(t)}}}function Oz(e,t){var n,r,o;return r=new Nz({props:{value:t[49].value,path:t[49].path,expandedMap:t[49].expandedMap,enforceStringMap:t[49].enforceStringMap,visibleSectionsMap:t[49].visibleSectionsMap,validationErrorsMap:t[49].validationErrorsMap,searchResultItemsMap:t[49].searchResultItemsMap,selection:t[49].selection,context:t[8],onDragSelectionStart:t[25],$$slots:{identifier:[_z]},$$scope:{ctx:t}}}),{key:e,first:null,c:function(){n=$i(),Ea(r.$$.fragment),this.first=n},m:function(e,t){bi(e,n,t),Pa(r,e,t),o=!0},p:function(e,n){t=e;var o={};18687&n[0]&&(o.value=t[49].value),18687&n[0]&&(o.path=t[49].path),18687&n[0]&&(o.expandedMap=t[49].expandedMap),18687&n[0]&&(o.enforceStringMap=t[49].enforceStringMap),18687&n[0]&&(o.visibleSectionsMap=t[49].visibleSectionsMap),18687&n[0]&&(o.validationErrorsMap=t[49].validationErrorsMap),18687&n[0]&&(o.searchResultItemsMap=t[49].searchResultItemsMap),18687&n[0]&&(o.selection=t[49].selection),256&n[0]&&(o.context=t[8]),18687&n[0]|8&n[1]&&(o.$$scope={dirty:n,ctx:t}),r.$set(o)},i:function(e){o||(wa(r.$$.fragment,e),o=!0)},o:function(e){xa(r.$$.fragment,e),o=!1},d:function(e){e&&wi(n),Ta(r,e)}}}function Mz(e){var t,n;return t=new cD({props:{visibleSections:e[14]||fs,sectionIndex:e[48],total:e[0].length,path:e[1],onExpandSection:e[8].onExpandSection,selection:e[7],context:e[8]}}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},p:function(e,n){var r={};16384&n[0]&&(r.visibleSections=e[14]||fs),16384&n[0]&&(r.sectionIndex=e[48]),1&n[0]&&(r.total=e[0].length),2&n[0]&&(r.path=e[1]),256&n[0]&&(r.onExpandSection=e[8].onExpandSection),128&n[0]&&(r.selection=e[7]),256&n[0]&&(r.context=e[8]),t.$set(r)},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}function Az(e,t){for(var n,r,o,i,a=[],s=new Map,c=Sa(t[19](t[1],t[0],t[46],t[2],t[3],t[4],t[5],t[6],t[7],t[11])),u=function(e){return e[49].index},l=0;l<c.length;l+=1){var f=UD(t,c,l),d=u(f);s.set(d,a[l]=Oz(d,f))}var h=t[46].end<t[0].length&&Mz(t);return{key:e,first:null,c:function(){n=$i();for(var e=0;e<a.length;e+=1)a[e].c();r=Ci(),h&&h.c(),o=$i(),this.first=n},m:function(e,t){bi(e,n,t);for(var s=0;s<a.length;s+=1)a[s]&&a[s].m(e,t);bi(e,r,t),h&&h.m(e,t),bi(e,o,t),i=!0},p:function(e,n){t=e,34097663&n[0]&&(c=Sa(t[19](t[1],t[0],t[46],t[2],t[3],t[4],t[5],t[6],t[7],t[11])),ya(),a=_a(a,n,u,1,t,c,s,r.parentNode,$a,Oz,r,UD),ba()),t[46].end<t[0].length?h?(h.p(t,n),16385&n[0]&&wa(h,1)):((h=Mz(t)).c(),wa(h,1),h.m(o.parentNode,o)):h&&(ya(),xa(h,1,1,(function(){h=null})),ba())},i:function(e){if(!i){for(var t=0;t<c.length;t+=1)wa(a[t]);wa(h),i=!0}},o:function(e){for(var t=0;t<a.length;t+=1)xa(a[t]);xa(h),i=!1},d:function(e){e&&(wi(n),wi(r),wi(o));for(var t=0;t<a.length;t+=1)a[t].d(e);h&&h.d(e)}}}function Ez(e){var t,n,r;return{c:function(){Ai(t=ki("div"),"role","none"),Ai(t,"class","jse-insert-selection-area jse-after svelte-6mjnsm"),Ai(t,"data-type","insert-selection-area-after")},m:function(o,i){bi(o,t,i),n||(r=_i(t,"click",e[29]),n=!0)},p:Ho,d:function(e){e&&wi(t),n=!1,r()}}}function Pz(e){var t,n,r;return n=new dD({props:{selected:e[16]&&hA(e[7]),onContextMenu:e[31]}}),{c:function(){t=ki("div"),Ea(n.$$.fragment),Ai(t,"class","jse-insert-area jse-after svelte-6mjnsm"),Ai(t,"data-type","insert-selection-area-after"),Ai(t,"title",ws),zi(t,"jse-hovered",e[10]===js),zi(t,"jse-selected",e[16]&&hA(e[7]))},m:function(e,o){bi(e,t,o),Pa(n,t,null),r=!0},p:function(e,o){var i={};65664&o[0]&&(i.selected=e[16]&&hA(e[7])),n.$set(i),(!r||1024&o[0])&&zi(t,"jse-hovered",e[10]===js),(!r||65664&o[0])&&zi(t,"jse-selected",e[16]&&hA(e[7]))},i:function(e){r||(wa(n.$$.fragment,e),r=!0)},o:function(e){xa(n.$$.fragment,e),r=!1},d:function(e){e&&wi(t),Ta(n)}}}function Tz(e){var t,n,r,o,i,a,s,c,u,l,f,d=!e[8].readOnly&&(e[10]===js||e[16]&&hA(e[7])),h=[YD,QD,GD],v=[];function p(e,t){return 1&t[0]&&(n=null),1&t[0]&&(r=null),null==n&&(n=!!Array.isArray(e[0])),n?0:(null==r&&(r=!!Gu(e[0])),r?1:2)}o=p(e,[-1,-1]),i=v[o]=h[o](e);var m=d&&Pz(e);return{c:function(){t=ki("div"),i.c(),a=Ci(),m&&m.c(),Ai(t,"role","treeitem"),Ai(t,"tabindex","-1"),Ai(t,"class",s=ai(QA("jse-json-node",{"jse-expanded":e[12]},e[8].onClassName(e[1],e[0])))+" svelte-6mjnsm"),Ai(t,"data-path",c=MO(e[1])),Ai(t,"aria-selected",e[16]),zi(t,"jse-root",e[17]),zi(t,"jse-selected",e[16]&&gA(e[7])),zi(t,"jse-selected-key",e[16]&&pA(e[7])),zi(t,"jse-selected-value",e[16]&&mA(e[7])),zi(t,"jse-readonly",e[8].readOnly),zi(t,"jse-hovered",e[10]===Ss),Ii(t,"--level",e[1].length)},m:function(n,r){bi(n,t,r),v[o].m(t,null),vi(t,a),m&&m.m(t,null),u=!0,l||(f=[_i(t,"mousedown",e[23]),_i(t,"mousemove",e[24]),_i(t,"mouseover",e[26]),_i(t,"mouseout",e[27]),_i(t,"focus",void 0),_i(t,"blur",void 0)],l=!0)},p:function(e,n){var r=o;(o=p(e,n))===r?v[o].p(e,n):(ya(),xa(v[r],1,1,(function(){v[r]=null})),ba(),(i=v[o])?i.p(e,n):(i=v[o]=h[o](e)).c(),wa(i,1),i.m(t,a)),66944&n[0]&&(d=!e[8].readOnly&&(e[10]===js||e[16]&&hA(e[7]))),d?m?(m.p(e,n),66944&n[0]&&wa(m,1)):((m=Pz(e)).c(),wa(m,1),m.m(t,null)):m&&(ya(),xa(m,1,1,(function(){m=null})),ba()),(!u||4355&n[0]&&s!==(s=ai(QA("jse-json-node",{"jse-expanded":e[12]},e[8].onClassName(e[1],e[0])))+" svelte-6mjnsm"))&&Ai(t,"class",s),(!u||2&n[0]&&c!==(c=MO(e[1])))&&Ai(t,"data-path",c),(!u||65536&n[0])&&Ai(t,"aria-selected",e[16]),(!u||135427&n[0])&&zi(t,"jse-root",e[17]),(!u||70019&n[0])&&zi(t,"jse-selected",e[16]&&gA(e[7])),(!u||70019&n[0])&&zi(t,"jse-selected-key",e[16]&&pA(e[7])),(!u||70019&n[0])&&zi(t,"jse-selected-value",e[16]&&mA(e[7])),(!u||4355&n[0])&&zi(t,"jse-readonly",e[8].readOnly),(!u||5379&n[0])&&zi(t,"jse-hovered",e[10]===Ss),2&n[0]&&Ii(t,"--level",e[1].length)},i:function(e){u||(wa(i),wa(m),u=!0)},o:function(e){xa(i),xa(m),u=!1},d:function(e){e&&wi(t),v[o].d(),m&&m.d(),l=!1,Go(f)}}}function Rz(e,t,n){var r,o,i,a,s,c,u,l=t.$$slots,f=void 0===l?{}:l,d=t.$$scope,h=t.value,v=t.path,p=t.expandedMap,m=t.enforceStringMap,g=t.visibleSectionsMap,y=t.validationErrorsMap,b=t.searchResultItemsMap,w=t.selection,x=t.context,k=t.onDragSelectionStart,j=Ia("jsoneditor:JSONNode"),S=void 0,C=void 0,$=void 0,_=rv((function(e){return e}),KO);function O(e){x.onDrag(e)}function M(e){PD.selecting&&(PD.selecting=!1,e.stopPropagation()),x.onDragEnd(),document.removeEventListener("mousemove",O,!0),document.removeEventListener("mouseup",M)}function A(){var e;return(null===(e=x.findElement([]))||void 0===e||null===(e=e.getBoundingClientRect())||void 0===e?void 0:e.top)||0}function E(e,t){var n=A()-e.initialContentTop;return t.clientY-e.initialClientY-n}function P(e){if($){var t=x.getJson();if(void 0===t)return;var r=x.getDocumentState(),o=E($,e),i=TD({json:t,documentState:r,deltaY:o,items:$.items}).offset;i!==$.offset&&(j("drag selection",i,o),n(11,$=To(To({},$),{},{offset:i,didMoveItems:!0})))}}function T(e){if($){var t=x.getJson();if(void 0===t)return;var r=TD({json:t,documentState:x.getDocumentState(),deltaY:E($,e),items:$.items}),o=r.operations,i=r.updatedSelection;if(o)x.onPatch(o,(function(e,t){return{state:To(To({},t),{},{selection:i||w})}}));else if(e.target===$.initialTarget&&!$.didMoveItems){var a=OO(e.target),s=AO(e.target);s&&x.onSelect(HA(0,a,s))}n(11,$=void 0),PD.dragging=!1,document.removeEventListener("mousemove",P,!0),document.removeEventListener("mouseup",T)}}return e.$$set=function(e){"value"in e&&n(0,h=e.value),"path"in e&&n(1,v=e.path),"expandedMap"in e&&n(2,p=e.expandedMap),"enforceStringMap"in e&&n(3,m=e.enforceStringMap),"visibleSectionsMap"in e&&n(4,g=e.visibleSectionsMap),"validationErrorsMap"in e&&n(5,y=e.validationErrorsMap),"searchResultItemsMap"in e&&n(6,b=e.searchResultItemsMap),"selection"in e&&n(7,w=e.selection),"context"in e&&n(8,x=e.context),"onDragSelectionStart"in e&&n(32,k=e.onDragSelectionStart),"$$scope"in e&&n(34,d=e.$$scope)},e.$$.update=function(){2&e.$$.dirty[0]&&n(9,o=Zs(v)),516&e.$$.dirty[0]&&n(12,i=!!p&&!0===p[o]),777&e.$$.dirty[0]&&n(13,a=iA(h,m,o,x.parser)),528&e.$$.dirty[0]&&n(14,s=g?g[o]:void 0),544&e.$$.dirty[0]&&n(15,c=y?y[o]:void 0),386&e.$$.dirty[0]&&n(16,u=UA(x.getJson(),w,v)),2&e.$$.dirty[0]&&n(17,r=0===v.length)},[h,v,p,m,g,y,b,w,x,o,S,$,i,a,s,c,u,r,function(e,t,n,r,i,a,s,c,u){var l=Object.keys(t).map((function(u){var l=_(e.concat(u)),f=tc(o,u);return{key:u,value:t[u],path:l,expandedMap:RD(n,f),enforceStringMap:RD(r,f),visibleSectionsMap:RD(i,f),validationErrorsMap:RD(a,f),keySearchResultItemsMap:$E(s,f),valueSearchResultItemsMap:RD(s,f),selection:WA(x.getJson(),c,l)}}));return u&&0!==u.offset&&(l=B_(l,u.selectionStartIndex,u.selectionItemsCount,u.offset)),l},function(e,t,n,r,i,a,s,c,u,l){for(var f=n.start,d=Math.min(n.end,t.length),h=[],v=f;v<d;v++){var p=_(e.concat(String(v))),m=tc(o,v);h.push({index:v,value:t[v],path:p,expandedMap:RD(r,m),enforceStringMap:RD(i,m),visibleSectionsMap:RD(a,m),validationErrorsMap:RD(s,m),searchResultItemsMap:RD(c,m),selection:WA(x.getJson(),u,p)})}if(l&&0!==l.offset){var g=h.map((function(e){return e.index}));h=B_(h,l.selectionStartIndex,l.selectionItemsCount,l.offset);for(var y=0;y<h.length;y++)h[y].index=g[y]}return h},function(e){e.stopPropagation();var t=e.ctrlKey;x.onExpand(v,!i,t)},function(e){e.stopPropagation(),x.onExpand(v,!0)},function(e,t){var n=sE(v,Object.keys(h),e,t);return x.onPatch(n),mb(Xs(n[0].path))},function(e){if(!(function(e){return"DIV"===e.nodeName&&"true"===e.contentEditable}(e.target)||1===e.which&&bO(e.target,"BUTTON"))){e.stopPropagation(),e.preventDefault(),x.focus(),document.addEventListener("mousemove",O,!0),document.addEventListener("mouseup",M);var t=OO(e.target),n=x.getJson(),o=x.getDocumentState();if(!w||t===Qa.after||t===Qa.inside||w.type!==t&&w.type!==Qa.multi||!UA(n,w,v))if(PD.selecting=!0,PD.selectionAnchor=v,PD.selectionAnchorType=t,PD.selectionFocus=v,e.shiftKey){var i=x.getDocumentState().selection;i&&x.onSelect(zA(GA(i),v))}else if(t===Qa.multi)if(r&&e.target.hasAttribute("data-path")){var a=mb(cA(h,o));x.onSelect(VA(a))}else x.onSelect(zA(v,v));else void 0!==n&&x.onSelect(HA(0,t,v));else 0===e.button&&k(e)}},function(e){if(PD.selecting){e.preventDefault(),e.stopPropagation(),null==PD.selectionFocus&&window.getSelection&&window.getSelection().empty();var t=OO(e.target);Ax(v,PD.selectionFocus)&&t===PD.selectionAnchorType||(PD.selectionFocus=v,PD.selectionAnchorType=t,x.onSelect(zA(PD.selectionAnchor||PD.selectionFocus,PD.selectionFocus)))}},function(e){if(!x.readOnly&&w){var t=Xw(KA(w));if(Ax(v,t)){var r=function(e,t){var n=[];function r(e){var t=v.concat(e),r=x.findElement(t);null!=r&&n.push({path:t,height:r.clientHeight})}if(Array.isArray(h)){var o=x.getJson();if(void 0===o)return null;var i=jA(o,e),a=SA(o,e),s=parseInt(mb(i),10),c=parseInt(mb(a),10),u=t.find((function(e){return s>=e.start&&c<=e.end}));if(!u)return null;var l=u.start,f=u.end;N_(l,Math.min(h.length,f),(function(e){return r(String(e))}))}else Object.keys(h).forEach(r);return n}(w,s||fs);if(j("dragSelectionStart",{selection:w,items:r}),r){var o=x.getJson();if(void 0!==o){var i=jA(o,w),a=r.findIndex((function(e){return Ax(e.path,i)})),c=TD({json:o,documentState:x.getDocumentState(),deltaY:0,items:r}).offset;n(11,$={initialTarget:e.target,initialClientY:e.clientY,initialContentTop:A(),selectionStartIndex:a,selectionItemsCount:xA(o,w).length,items:r,offset:c,didMoveItems:!1}),PD.dragging=!0,document.addEventListener("mousemove",P,!0),document.addEventListener("mouseup",T)}}else j("Cannot drag the current selection (probably spread over multiple sections)")}else k(e)}},function(e){PD.selecting||PD.dragging||(e.stopPropagation(),wO(e.target,"data-type","selectable-value")?n(10,S=Ss):wO(e.target,"data-type","insert-selection-area-inside")?n(10,S=ks):wO(e.target,"data-type","insert-selection-area-after")&&n(10,S=js),clearTimeout(C))},function(e){e.stopPropagation(),C=window.setTimeout((function(){return n(10,S=void 0)}))},function(e){e.shiftKey||(e.stopPropagation(),e.preventDefault(),x.onSelect(IA(v)))},function(e){e.shiftKey||(e.stopPropagation(),e.preventDefault(),x.onSelect(DA(v)))},function(e){x.onSelect(IA(v)),x.onContextMenu(e)},function(e){x.onSelect(DA(v)),x.onContextMenu(e)},k,f,d]}var Nz=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,Rz,Tz,Xo,{value:0,path:1,expandedMap:2,enforceStringMap:3,visibleSectionsMap:4,validationErrorsMap:5,searchResultItemsMap:6,selection:7,context:8,onDragSelectionStart:32},BD,[-1,-1]),n}return Ao(t,Na),Io(t)}(),Iz=Nz,Dz={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"]},zz={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"]},Bz={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"]},Lz={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 qz(e){var t,n;return t=new HI({props:{items:e[0]}}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},p:function(e,n){var r={};1&jo(n,1)[0]&&(r.items=e[0]),t.$set(r)},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}function Fz(e,t,n){var r,o,i,a,s,c,u,l=t.json,f=t.selection,d=t.readOnly,h=t.showSearch,v=void 0!==h&&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,j=t.onCopy,S=t.onRenderMenu;function C(){n(1,v=!v)}return e.$$set=function(e){"json"in e&&n(2,l=e.json),"selection"in e&&n(3,f=e.selection),"readOnly"in e&&n(4,d=e.readOnly),"showSearch"in e&&n(1,v=e.showSearch),"historyState"in e&&n(5,p=e.historyState),"onExpandAll"in e&&n(6,m=e.onExpandAll),"onCollapseAll"in e&&n(7,g=e.onCollapseAll),"onUndo"in e&&n(8,y=e.onUndo),"onRedo"in e&&n(9,b=e.onRedo),"onSort"in e&&n(10,w=e.onSort),"onTransform"in e&&n(11,x=e.onTransform),"onContextMenu"in e&&n(12,k=e.onContextMenu),"onCopy"in e&&n(13,j=e.onCopy),"onRenderMenu"in e&&n(14,S=e.onRenderMenu)},e.$$.update=function(){4&e.$$.dirty&&n(20,r=void 0!==l),1048584&e.$$.dirty&&n(19,o=r&&(gA(f)||pA(f)||mA(f))),68&e.$$.dirty&&n(15,a={type:"button",icon:Dz,title:"Expand all",className:"jse-expand-all",onClick:m,disabled:!Qu(l)}),132&e.$$.dirty&&n(16,s={type:"button",icon:zz,title:"Collapse all",className:"jse-collapse-all",onClick:g,disabled:!Qu(l)}),4&e.$$.dirty&&n(17,c={type:"button",icon:OP,title:"Search (Ctrl+F)",className:"jse-search",onClick:C,disabled:void 0===l}),769844&e.$$.dirty&&n(18,u=d?[a,s,{type:"separator"},{type:"button",icon:AP,title:"Copy (Ctrl+C)",className:"jse-copy",onClick:j,disabled:!o},{type:"separator"},c,{type:"space"}]:[a,s,{type:"separator"},{type:"button",icon:CP,title:"Sort",className:"jse-sort",onClick:w,disabled:d||void 0===l},{type:"button",icon:hP,title:"Transform contents (filter, sort, project)",className:"jse-transform",onClick:x,disabled:d||void 0===l},c,{type:"button",icon:jP,title:xs,className:"jse-contextmenu",onClick:k},{type:"separator"},{type:"button",icon:bP,title:"Undo (Ctrl+Z)",className:"jse-undo",onClick:y,disabled:!p.canUndo},{type:"button",icon:yP,title:"Redo (Ctrl+Shift+Z)",className:"jse-redo",onClick:b,disabled:!p.canRedo},{type:"space"}]),278528&e.$$.dirty&&n(0,i=S(u))},[i,v,l,f,d,p,m,g,y,b,w,x,k,j,S,a,s,c,u,o,r]}var Vz=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,Fz,qz,Xo,{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}),n}return Ao(t,Na),Io(t)}();function Hz(e){pi(e,"svelte-s2toti",'.jse-welcome.svelte-s2toti.svelte-s2toti{flex:1;overflow:auto;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);display:flex;flex-direction:column;align-items:center;border-left:var(--jse-main-border, 1px solid #d7d7d7);border-right:var(--jse-main-border, 1px solid #d7d7d7)}.jse-welcome.svelte-s2toti.svelte-s2toti:last-child{border-bottom:var(--jse-main-border, 1px solid #d7d7d7)}.jse-welcome.svelte-s2toti .jse-space.jse-before.svelte-s2toti{flex:1}.jse-welcome.svelte-s2toti .jse-space.jse-after.svelte-s2toti{flex:2}.jse-welcome.svelte-s2toti .jse-contents.svelte-s2toti{display:flex;flex-direction:column;max-width:300px;margin:2em var(--jse-padding, 10px);gap:var(--jse-padding, 10px)}.jse-welcome.svelte-s2toti .jse-contents .jse-welcome-info.svelte-s2toti{color:var(--jse-panel-color-readonly, #b2b2b2)}.jse-welcome.svelte-s2toti .jse-contents button.svelte-s2toti{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);padding:5px;margin:0;background:var(--jse-button-primary-background, var(--jse-theme-color, #3883fa));color:var(--jse-button-primary-color, #fff);padding:var(--jse-padding, 10px) calc(2 * var(--jse-padding, 10px));border-radius:3px}.jse-welcome.svelte-s2toti .jse-contents button.svelte-s2toti:hover{background:var(--jse-button-primary-background-highlight, var(--jse-theme-color-highlight, #5f9dff))}.jse-welcome.svelte-s2toti .jse-contents button.svelte-s2toti:disabled{background:var(--jse-button-primary-background-disabled, #9d9d9d)}')}function Wz(e){var t,n,r,o,i,a,s;return{c:function(){(t=ki("div")).innerHTML="You can paste clipboard data using <b>Ctrl+V</b>, or use the following options:",n=Ci(),(r=ki("button")).textContent="Create object",o=Ci(),(i=ki("button")).textContent="Create array",Ai(t,"class","jse-welcome-info svelte-s2toti"),Ai(r,"title","Create an empty JSON object (press '{')"),Ai(r,"class","svelte-s2toti"),Ai(i,"title","Create an empty JSON array (press '[')"),Ai(i,"class","svelte-s2toti")},m:function(c,u){bi(c,t,u),bi(c,n,u),bi(c,r,u),bi(c,o,u),bi(c,i,u),a||(s=[_i(r,"click",Mi(e[4])),_i(i,"click",Mi(e[5]))],a=!0)},p:Ho,d:function(e){e&&(wi(t),wi(n),wi(r),wi(o),wi(i)),a=!1,Go(s)}}}function Uz(e){var t,n,r,o,i,a,s,c,u,l,f=!e[0]&&Wz(e);return{c:function(){t=ki("div"),n=ki("div"),r=Ci(),o=ki("div"),(i=ki("div")).textContent="Empty document",a=Ci(),f&&f.c(),s=Ci(),c=ki("div"),Ai(n,"class","jse-space jse-before svelte-s2toti"),Ai(i,"class","jse-welcome-title"),Ai(o,"class","jse-contents svelte-s2toti"),Ai(c,"class","jse-space jse-after svelte-s2toti"),Ai(t,"class","jse-welcome svelte-s2toti"),Ai(t,"role","none")},m:function(d,h){bi(d,t,h),vi(t,n),vi(t,r),vi(t,o),vi(o,i),vi(o,a),f&&f.m(o,null),vi(t,s),vi(t,c),u||(l=_i(t,"click",e[6]),u=!0)},p:function(e,t){var n=jo(t,1)[0];e[0]?f&&(f.d(1),f=null):f?f.p(e,n):((f=Wz(e)).c(),f.m(o,null))},i:Ho,o:Ho,d:function(e){e&&wi(t),f&&f.d(),u=!1,l()}}}function Jz(e,t,n){var r=t.readOnly,o=t.onCreateArray,i=t.onCreateObject,a=t.onClick;return e.$$set=function(e){"readOnly"in e&&n(0,r=e.readOnly),"onCreateArray"in e&&n(1,o=e.onCreateArray),"onCreateObject"in e&&n(2,i=e.onCreateObject),"onClick"in e&&n(3,a=e.onClick)},[r,o,i,a,function(){return i()},function(){return o()},function(){return a()}]}var Kz=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,Jz,Uz,Xo,{readOnly:0,onCreateArray:1,onCreateObject:2,onClick:3},Hz),n}return Ao(t,Na),Io(t)}(),Gz={exports:{}},Qz=function(e,t){var n,r,o=1,i=0,a=0,s=String.alphabet;function c(e,t,r){if(r){for(n=t;(r=c(e,n))<76&&r>65;)++n;return+e.slice(t-1,n)}return(r=s&&s.indexOf(e.charAt(t)))>-1?r+76:(r=e.charCodeAt(t)||0)<45||r>127?r:r<46?65:r<48?r-1:r<58?r+18:r<65?r-11:r<91?r+11:r<97?r-37:r<123?r+5:r-63}if((e+="")!=(t+=""))for(;o;)if(r=c(e,i++),o=c(t,a++),r<76&&o<76&&r>66&&o>66&&(r=c(e,i,i),o=c(t,a,i=n),a=n),r!=o)return r<o?-1:1;return 0};try{Gz.exports=Qz}catch(e){String.naturalCompare=Qz}var Yz=yc(Gz.exports);function Xz(e,t){var n="string"==typeof e?e.toLowerCase():e,r="string"==typeof t?t.toLowerCase():t;return Yz(n,r)}function Zz(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(Ts(Ws(e,t))){if(void 0===n)throw new Error("Cannot sort: no property selected by which to sort the array");return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=function(e,t){return function(n,r){var o=Ws(n,e),i=Ws(r,e);return void 0===o?t:void 0===i?-t:"string"!=typeof o&&"string"!=typeof i?o>i?t:o<i?-t:0:t*Xz(o,i)}}(n,r),i=Ws(e,t);return[{op:"replace",path:Zs(t),value:i.slice(0).sort(o)}]}(e,t,n,r)}if(Gu(e))return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=Ws(e,t),o=Object.keys(r),i=o.slice();i.sort((function(e,t){return n*Xz(e,t)}));for(var a=[],s=0;s<i.length;s++){var c=i[s],u=Zs(t.concat(c));a.push({op:"move",from:u,path:u})}return a}(e,t,r);throw new Error("Cannot sort: no array or object")}function eB(e){pi(e,"svelte-12glmu0",'.jse-navigation-bar-dropdown.svelte-12glmu0.svelte-12glmu0{position:absolute;top:100%;left:0;z-index:3;background:var(--jse-navigation-bar-background, var(--jse-background-color, #fff));color:var(--jse-navigation-bar-dropdown-color, #656565);box-shadow:var(--jse-controls-box-shadow, 0 2px 6px 0 rgba(0, 0, 0, 0.24));display:flex;flex-direction:column;max-height:300px;overflow:auto;min-width:80px}.jse-navigation-bar-dropdown.svelte-12glmu0 button.jse-navigation-bar-dropdown-item.svelte-12glmu0{font-family:var(--jse-font-family-mono, consolas, menlo, monaco, "Ubuntu Mono", "source-code-pro", monospace);font-size:var(--jse-font-size-mono, 14px);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, 10px)) 36px}.jse-navigation-bar-dropdown.svelte-12glmu0 button.jse-navigation-bar-dropdown-item.svelte-12glmu0:focus,.jse-navigation-bar-dropdown.svelte-12glmu0 button.jse-navigation-bar-dropdown-item.svelte-12glmu0:hover{background:var(--jse-navigation-bar-background-highlight, #e5e5e5)}.jse-navigation-bar-dropdown.svelte-12glmu0 button.jse-navigation-bar-dropdown-item.jse-selected.svelte-12glmu0{background:var(--jse-navigation-bar-dropdown-color, #656565);color:var(--jse-navigation-bar-background, var(--jse-background-color, #fff))}')}function tB(e,t,n){var r=e.slice();return r[4]=t[n],r}function nB(e,t){var n,r,o,i,a,s=nM(t[4].toString(),aB)+"";function c(){return t[3](t[4])}return{key:e,first:null,c:function(){n=ki("button"),r=Si(s),Ai(n,"type","button"),Ai(n,"class","jse-navigation-bar-dropdown-item svelte-12glmu0"),Ai(n,"title",o=t[4].toString()),zi(n,"jse-selected",t[4]===t[1]),this.first=n},m:function(e,t){bi(e,n,t),vi(n,r),i||(a=_i(n,"click",Mi(c)),i=!0)},p:function(e,i){t=e,1&i&&s!==(s=nM(t[4].toString(),aB)+"")&&Ri(r,s),1&i&&o!==(o=t[4].toString())&&Ai(n,"title",o),3&i&&zi(n,"jse-selected",t[4]===t[1])},d:function(e){e&&wi(n),i=!1,a()}}}function rB(e){var t,n;return{c:function(){t=ki("button"),n=Si("..."),Ai(t,"type","button"),Ai(t,"class","jse-navigation-bar-dropdown-item svelte-12glmu0"),Ai(t,"title","Limited to "+iB+" items")},m:function(e,r){bi(e,t,r),vi(t,n)},p:Ho,d:function(e){e&&wi(t)}}}function oB(e){for(var t,n,r=[],o=new Map,i=Sa(I_(e[0],iB)),a=function(e){return e[4]},s=0;s<i.length;s+=1){var c=tB(e,i,s),u=a(c);o.set(u,r[s]=nB(u,c))}var l=e[0].length>iB&&rB();return{c:function(){t=ki("div");for(var e=0;e<r.length;e+=1)r[e].c();n=Ci(),l&&l.c(),Ai(t,"class","jse-navigation-bar-dropdown svelte-12glmu0")},m:function(e,o){bi(e,t,o);for(var i=0;i<r.length;i+=1)r[i]&&r[i].m(t,null);vi(t,n),l&&l.m(t,null)},p:function(e,s){var c=jo(s,1)[0];7&c&&(i=Sa(I_(e[0],iB)),r=_a(r,c,a,1,e,i,o,t,Ca,nB,n,tB)),e[0].length>iB?l?l.p(e,c):((l=rB()).c(),l.m(t,null)):l&&(l.d(1),l=null)},i:Ho,o:Ho,d:function(e){e&&wi(t);for(var n=0;n<r.length;n+=1)r[n].d();l&&l.d()}}}var iB=100,aB=30;function sB(e,t,n){var r=t.items,o=t.selectedItem,i=t.onSelect;return e.$$set=function(e){"items"in e&&n(0,r=e.items),"selectedItem"in e&&n(1,o=e.selectedItem),"onSelect"in e&&n(2,i=e.onSelect)},[r,o,i,function(e){return i(e)}]}var cB=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,sB,oB,Xo,{items:0,selectedItem:1,onSelect:2},eB),n}return Ao(t,Na),Io(t)}();function uB(e){pi(e,"svelte-x08607",".jse-navigation-bar-item.svelte-x08607.svelte-x08607{position:relative;display:flex}.jse-navigation-bar-item.svelte-x08607 button.jse-navigation-bar-button.svelte-x08607{font-family:inherit;font-size:inherit;padding:calc(0.5 * var(--jse-padding, 10px)) 2px;border:none;background:transparent;color:inherit;cursor:pointer;outline:none;min-width:2em;white-space:nowrap}.jse-navigation-bar-item.svelte-x08607 button.jse-navigation-bar-button.svelte-x08607:focus,.jse-navigation-bar-item.svelte-x08607 button.jse-navigation-bar-button.svelte-x08607:hover{background:var(--jse-panel-button-background-highlight, #e0e0e0);color:var(--panel-button-color-highlight, var(--jse-text-color, #4d4d4d))}.jse-navigation-bar-item.svelte-x08607 button.jse-navigation-bar-button.jse-navigation-bar-arrow.svelte-x08607{padding:2px var(--jse-padding, 10px) 0}.jse-navigation-bar-item.svelte-x08607 button.jse-navigation-bar-button.jse-navigation-bar-arrow.jse-open.svelte-x08607{background:var(--jse-navigation-bar-background, var(--jse-background-color, #fff));color:var(--jse-navigation-bar-dropdown-color, #656565)}.jse-navigation-bar-item.svelte-x08607.svelte-x08607:last-child{padding-right:var(--jse-padding, 10px)}")}function lB(e){var t,n,r,o;return{c:function(){t=ki("button"),n=Si(e[2]),Ai(t,"type","button"),Ai(t,"class","jse-navigation-bar-button svelte-x08607")},m:function(i,a){bi(i,t,a),vi(t,n),r||(o=_i(t,"click",e[9]),r=!0)},p:function(e,t){4&t&&Ri(n,e[2])},d:function(e){e&&wi(t),r=!1,o()}}}function fB(e){var t,n,r,o,i,a,s;r=new SM({props:{data:uP}});var c=void 0!==e[2]&&lB(e);return{c:function(){t=ki("div"),n=ki("button"),Ea(r.$$.fragment),o=Ci(),c&&c.c(),Ai(n,"type","button"),Ai(n,"class","jse-navigation-bar-button jse-navigation-bar-arrow svelte-x08607"),zi(n,"jse-open",e[1]),Ai(t,"class","jse-navigation-bar-item svelte-x08607")},m:function(u,l){bi(u,t,l),vi(t,n),Pa(r,n,null),vi(t,o),c&&c.m(t,null),e[10](t),i=!0,a||(s=_i(n,"click",e[4]),a=!0)},p:function(e,r){var o=jo(r,1)[0];(!i||2&o)&&zi(n,"jse-open",e[1]),void 0!==e[2]?c?c.p(e,o):((c=lB(e)).c(),c.m(t,null)):c&&(c.d(1),c=null)},i:function(e){i||(wa(r.$$.fragment,e),i=!0)},o:function(e){xa(r.$$.fragment,e),i=!1},d:function(n){n&&wi(t),Ta(r),c&&c.d(),e[10](null),a=!1,s()}}}function dB(e,t,n){var r,o,i,a,s=Xi("absolute-popup"),c=s.openAbsolutePopup,u=s.closeAbsolutePopup,l=t.path,f=t.index,d=t.onSelect,h=t.getItems,v=!1;function p(e){u(a),d(r.concat(e))}return e.$$set=function(e){"path"in e&&n(5,l=e.path),"index"in e&&n(6,f=e.index),"onSelect"in e&&n(7,d=e.onSelect),"getItems"in e&&n(8,h=e.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 e={items:h(r),selectedItem:o,onSelect:p};a=c(cB,e,{anchor:i,closeOnOuterClick:!0,onClose:function(){n(1,v=!1)}})}},l,f,d,h,function(){return p(o)},function(e){ta[e?"unshift":"push"]((function(){n(0,i=e)}))}]}var hB=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,dB,fB,Xo,{path:5,index:6,onSelect:7,getItems:8},uB),n}return Ao(t,Na),Io(t)}();function vB(e){var t,n;if(navigator.clipboard)return navigator.clipboard.writeText(e);if(null!==(t=(n=document).queryCommandSupported)&&void 0!==t&&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(e){console.error(e)}finally{document.body.removeChild(r)}}else console.error("Copy failed.")}function pB(e){pi(e,"svelte-1844qyt",".jse-navigation-bar-path-editor.svelte-1844qyt.svelte-1844qyt{flex:1;display:flex;border:var(--jse-edit-outline, 2px solid #656565);background:var(--jse-background-color, #fff)}.jse-navigation-bar-path-editor.svelte-1844qyt input.jse-navigation-bar-text.svelte-1844qyt{flex:1;font-family:inherit;font-size:inherit;padding:0 5px 1px;background:var(--jse-background-color, #fff);color:var(--jse-text-color, #4d4d4d);border:none;outline:none}.jse-navigation-bar-path-editor.svelte-1844qyt button.svelte-1844qyt{border:none;background:var(--jse-background-color, #fff);cursor:pointer;font-family:inherit;font-size:80%;color:inherit}.jse-navigation-bar-path-editor.svelte-1844qyt button.jse-navigation-bar-copy.copied.svelte-1844qyt{color:var(--message-success-background, #9ac45d)}.jse-navigation-bar-path-editor.svelte-1844qyt button.jse-navigation-bar-validation-error.svelte-1844qyt{color:var(--jse-error-color, #ee5341)}.jse-navigation-bar-path-editor.error.svelte-1844qyt.svelte-1844qyt{border-color:var(--jse-error-color, #ee5341)}.jse-navigation-bar-path-editor.error.svelte-1844qyt input.jse-navigation-bar-text.svelte-1844qyt{color:var(--jse-error-color, #ee5341)}.jse-navigation-bar-path-editor.svelte-1844qyt .jse-copied-text.svelte-1844qyt{background:var(--message-success-background, #9ac45d);color:var(--jse-message-success-color, #fff);position:relative;margin:2px;padding:0 5px;border-radius:3px}")}function mB(e){var t,n,r,o,i,a;return n=new SM({props:{data:BP}}),{c:function(){t=ki("button"),Ea(n.$$.fragment),Ai(t,"type","button"),Ai(t,"class","jse-navigation-bar-validation-error svelte-1844qyt")},m:function(s,c){bi(s,t,c),Pa(n,t,null),o=!0,i||(a=si(r=UE.call(null,t,To({text:String(e[3]||"")},e[4]))),i=!0)},p:function(e,t){r&&Qo(r.update)&&8&t&&r.update.call(null,To({text:String(e[3]||"")},e[4]))},i:function(e){o||(wa(n.$$.fragment,e),o=!0)},o:function(e){xa(n.$$.fragment,e),o=!1},d:function(e){e&&wi(t),Ta(n),i=!1,a()}}}function gB(e){var t;return{c:function(){(t=ki("div")).textContent="Copied!",Ai(t,"class","jse-copied-text svelte-1844qyt")},m:function(e,n){bi(e,t,n)},d:function(e){e&&wi(t)}}}function yB(e){var t,n,r,o,i,a,s,c,u,l,f=e[3]&&mB(e),d=e[2]&&gB();return s=new SM({props:{data:AP}}),{c:function(){t=ki("div"),n=ki("input"),r=Ci(),f&&f.c(),o=Ci(),d&&d.c(),i=Ci(),a=ki("button"),Ea(s.$$.fragment),Ai(n,"type","text"),Ai(n,"class","jse-navigation-bar-text svelte-1844qyt"),n.value=e[0],Ai(a,"type","button"),Ai(a,"class","jse-navigation-bar-copy svelte-1844qyt"),Ai(a,"title","Copy selected path to the clipboard"),zi(a,"copied",e[2]),Ai(t,"class","jse-navigation-bar-path-editor svelte-1844qyt"),zi(t,"error",e[3])},m:function(h,v){bi(h,t,v),vi(t,n),e[15](n),vi(t,r),f&&f.m(t,null),vi(t,o),d&&d.m(t,null),vi(t,i),vi(t,a),Pa(s,a,null),c=!0,u||(l=[_i(n,"keydown",Mi(e[6])),_i(n,"input",e[5]),_i(a,"click",e[7])],u=!0)},p:function(e,r){var s=jo(r,1)[0];(!c||1&s&&n.value!==e[0])&&(n.value=e[0]),e[3]?f?(f.p(e,s),8&s&&wa(f,1)):((f=mB(e)).c(),wa(f,1),f.m(t,o)):f&&(ya(),xa(f,1,1,(function(){f=null})),ba()),e[2]?d||((d=gB()).c(),d.m(t,i)):d&&(d.d(1),d=null),(!c||4&s)&&zi(a,"copied",e[2]),(!c||8&s)&&zi(t,"error",e[3])},i:function(e){c||(wa(f),wa(s.$$.fragment,e),c=!0)},o:function(e){xa(f),xa(s.$$.fragment,e),c=!1},d:function(n){n&&wi(t),e[15](null),f&&f.d(),d&&d.d(),Ta(s),u=!1,Go(l)}}}function bB(e,t,n){var r,o,i,a=Xi("absolute-popup"),s=t.path,c=t.pathParser,u=t.onChange,l=t.onClose,f=t.onError,d=t.pathExists,h=!1,v=void 0,p=!1;function m(){o.focus()}function g(e){try{var t=c.parse(e);return function(e){if(!d(e))throw new Error("Path does not exist in current document")}(t),{path:t,error:void 0}}catch(e){return{path:void 0,error:e}}}return Ki((function(){m()})),Gi((function(){clearTimeout(v)})),e.$$set=function(e){"path"in e&&n(8,s=e.path),"pathParser"in e&&n(9,c=e.pathParser),"onChange"in e&&n(10,u=e.onChange),"onClose"in e&&n(11,l=e.onClose),"onError"in e&&n(12,f=e.onError),"pathExists"in e&&n(13,d=e.pathExists)},e.$$.update=function(){768&e.$$.dirty&&n(0,i=c.stringify(s)),16385&e.$$.dirty&&n(3,r=h?g(i).error:void 0)},[i,o,p,r,a,function(e){n(0,i=e.currentTarget.value)},function(e){var t=TO(e);if("Escape"===t&&l(),"Enter"===t){n(14,h=!0);var r=g(i);void 0!==r.path?u(r.path):f(r.error)}},function(){vB(i),n(2,p=!0),v=window.setTimeout((function(){return n(2,p=!1)}),1e3),m()},s,c,u,l,f,d,h,function(e){ta[e?"unshift":"push"]((function(){n(1,o=e)}))}]}var wB=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,bB,yB,Yo,{path:8,pathParser:9,onChange:10,onClose:11,onError:12,pathExists:13},pB),n}return Ao(t,Na),Io(t)}();function xB(e){pi(e,"svelte-1aycet9",'.jse-navigation-bar.svelte-1aycet9.svelte-1aycet9{font-family:var(--jse-font-family-mono, consolas, menlo, monaco, "Ubuntu Mono", "source-code-pro", monospace);font-size:var(--jse-font-size-mono, 14px);background:var(--jse-panel-background, #ebebeb);color:var(--jse-panel-button-color, inherit);padding:0;margin:0;display:flex;overflow:auto;border-left:var(--jse-main-border, 1px solid #d7d7d7);border-right:var(--jse-main-border, 1px solid #d7d7d7)}.jse-navigation-bar.svelte-1aycet9 .jse-navigation-bar-edit.svelte-1aycet9{font-family:var(--jse-font-family-mono, consolas, menlo, monaco, "Ubuntu Mono", "source-code-pro", monospace);font-size:var(--jse-font-size-mono, 14px);padding:calc(0.5 * var(--jse-padding, 10px)) var(--jse-padding, 10px);color:var(--jse-panel-color-readonly, #b2b2b2);background:transparent;border:none;display:flex;cursor:pointer;outline:none;align-items:center}.jse-navigation-bar.svelte-1aycet9 .jse-navigation-bar-edit.flex.svelte-1aycet9{flex:1}.jse-navigation-bar.svelte-1aycet9 .jse-navigation-bar-edit.svelte-1aycet9:focus,.jse-navigation-bar.svelte-1aycet9 .jse-navigation-bar-edit.svelte-1aycet9:hover,.jse-navigation-bar.svelte-1aycet9 .jse-navigation-bar-edit.editing.svelte-1aycet9{background:var(--jse-panel-button-background-highlight, #e0e0e0);color:var(--panel-button-color-highlight, var(--jse-text-color, #4d4d4d));transition:color 0.2s ease-in, background 0.2s ease-in}.jse-navigation-bar.svelte-1aycet9 .jse-navigation-bar-edit .jse-navigation-bar-space.svelte-1aycet9{flex:1;text-align:left}')}function kB(e,t,n){var r=e.slice();return r[18]=t[n],r[20]=n,r}function jB(e){var t,n;return t=new wB({props:{path:e[3],onClose:e[11],onChange:e[12],onError:e[1],pathExists:e[8],pathParser:e[2]}}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},p:function(e,n){var r={};8&n&&(r.path=e[3]),2&n&&(r.onError=e[1]),4&n&&(r.pathParser=e[2]),t.$set(r)},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}function SB(e){for(var t,n,r,o=[],i=new Map,a=Sa(e[3]),s=function(e){return e[20]},c=0;c<a.length;c+=1){var u=kB(e,a,c),l=s(u);i.set(l,o[c]=CB(l,u))}var f=e[6]&&$B(e);return{c:function(){for(var e=0;e<o.length;e+=1)o[e].c();t=Ci(),f&&f.c(),n=$i()},m:function(e,i){for(var a=0;a<o.length;a+=1)o[a]&&o[a].m(e,i);bi(e,t,i),f&&f.m(e,i),bi(e,n,i),r=!0},p:function(e,r){648&r&&(a=Sa(e[3]),ya(),o=_a(o,r,s,1,e,a,i,t.parentNode,$a,CB,t,kB),ba()),e[6]?f?(f.p(e,r),64&r&&wa(f,1)):((f=$B(e)).c(),wa(f,1),f.m(n.parentNode,n)):f&&(ya(),xa(f,1,1,(function(){f=null})),ba())},i:function(e){if(!r){for(var t=0;t<a.length;t+=1)wa(o[t]);wa(f),r=!0}},o:function(e){for(var t=0;t<o.length;t+=1)xa(o[t]);xa(f),r=!1},d:function(e){e&&(wi(t),wi(n));for(var r=0;r<o.length;r+=1)o[r].d(e);f&&f.d(e)}}}function CB(e,t){var n,r,o;return r=new hB({props:{getItems:t[7],path:t[3],index:t[20],onSelect:t[9]}}),{key:e,first:null,c:function(){n=$i(),Ea(r.$$.fragment),this.first=n},m:function(e,t){bi(e,n,t),Pa(r,e,t),o=!0},p:function(e,n){t=e;var o={};8&n&&(o.path=t[3]),8&n&&(o.index=t[20]),r.$set(o)},i:function(e){o||(wa(r.$$.fragment,e),o=!0)},o:function(e){xa(r.$$.fragment,e),o=!1},d:function(e){e&&wi(n),Ta(r,e)}}}function $B(e){var t,n;return t=new hB({props:{getItems:e[7],path:e[3],index:e[3].length,onSelect:e[9]}}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},p:function(e,n){var r={};8&n&&(r.path=e[3]),8&n&&(r.index=e[3].length),t.$set(r)},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}function _B(e){var t,n,r,o,i,a,s,c,u,l,f,d,h,v=Qu(e[0])||e[5]?" ":"Navigation bar",p=[SB,jB],m=[];function g(e,t){return e[5]?1:0}return n=g(e),r=m[n]=p[n](e),u=new SM({props:{data:e[5]?TP:sP}}),{c:function(){t=ki("div"),r.c(),o=Ci(),i=ki("button"),a=ki("span"),s=Si(v),c=Ci(),Ea(u.$$.fragment),Ai(a,"class","jse-navigation-bar-space svelte-1aycet9"),Ai(i,"type","button"),Ai(i,"class","jse-navigation-bar-edit svelte-1aycet9"),Ai(i,"title",l=e[5]?"Cancel editing the selected path":"Edit the selected path"),zi(i,"flex",!e[5]),zi(i,"editing",e[5]),Ai(t,"class","jse-navigation-bar svelte-1aycet9")},m:function(r,l){bi(r,t,l),m[n].m(t,null),vi(t,o),vi(t,i),vi(i,a),vi(a,s),vi(i,c),Pa(u,i,null),e[15](t),f=!0,d||(h=_i(i,"click",e[10]),d=!0)},p:function(e,a){var c=jo(a,1)[0],d=n;(n=g(e))===d?m[n].p(e,c):(ya(),xa(m[d],1,1,(function(){m[d]=null})),ba(),(r=m[n])?r.p(e,c):(r=m[n]=p[n](e)).c(),wa(r,1),r.m(t,o)),(!f||33&c)&&v!==(v=Qu(e[0])||e[5]?" ":"Navigation bar")&&Ri(s,v);var h={};32&c&&(h.data=e[5]?TP:sP),u.$set(h),(!f||32&c&&l!==(l=e[5]?"Cancel editing the selected path":"Edit the selected path"))&&Ai(i,"title",l),(!f||32&c)&&zi(i,"flex",!e[5]),(!f||32&c)&&zi(i,"editing",e[5])},i:function(e){f||(wa(r),wa(u.$$.fragment,e),f=!0)},o:function(e){xa(r),xa(u.$$.fragment,e),f=!1},d:function(r){r&&wi(t),m[n].d(),Ta(u),e[15](null),d=!1,h()}}}function OB(e,t,n){var r,o,i,a=Ia("jsoneditor:NavigationBar"),s=t.json,c=t.selection,u=t.onSelect,l=t.onError,f=t.pathParser,d=!1;function h(e){a("select path",JSON.stringify(e)),u(zA(e,e))}function v(){n(5,d=!1)}return e.$$set=function(e){"json"in e&&n(0,s=e.json),"selection"in e&&n(13,c=e.selection),"onSelect"in e&&n(14,u=e.onSelect),"onError"in e&&n(1,l=e.onError),"pathParser"in e&&n(2,f=e.pathParser)},e.$$.update=function(){8192&e.$$.dirty&&n(3,r=c?KA(c):[]),9&e.$$.dirty&&n(6,o=Qu(Ws(s,r))),8&e.$$.dirty&&setTimeout((function(){if(i&&i.scrollTo){var e=i.scrollWidth-i.clientWidth;e>0&&(a("scrollTo ",e),i.scrollTo({left:e,behavior:"smooth"}))}}))},[s,l,f,r,i,d,o,function(e){a("get items for path",e);var t=Ws(s,e);if(Array.isArray(t))return pS(0,t.length).map(String);if(Gu(t)){var n=Object.keys(t).slice(0);return n.sort(Xz),n}return[]},function(e){return Ys(s,e)},h,function(){n(5,d=!d)},v,function(e){v(),h(e)},c,u,function(e){ta[e?"unshift":"push"]((function(){n(4,i=e)}))}]}var MB=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,OB,_B,Xo,{json:0,selection:13,onSelect:14,onError:1,pathParser:2},xB),n}return Ao(t,Na),Io(t)}();function AB(e){pi(e,"svelte-wnmp4a",'.jse-search-box.svelte-wnmp4a.svelte-wnmp4a{border:var(--jse-panel-border, var(--jse-main-border, 1px solid #d7d7d7));border-radius:3px;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);background:var(--jse-panel-background, #ebebeb);color:var(--jse-panel-color-readonly, #b2b2b2);box-shadow:var(--jse-controls-box-shadow, 0 2px 6px 0 rgba(0, 0, 0, 0.24));display:inline-block;width:400px;max-width:100%;overflow:auto}.jse-search-box.svelte-wnmp4a .jse-search-form.svelte-wnmp4a{display:flex;align-items:stretch}.jse-search-box.svelte-wnmp4a .jse-search-form button.svelte-wnmp4a,.jse-search-box.svelte-wnmp4a .jse-search-form input.svelte-wnmp4a{font-family:inherit;font-size:inherit}.jse-search-box.svelte-wnmp4a .jse-search-form button.svelte-wnmp4a{display:block;text-align:center;border:none;padding:0 5px;margin:0;cursor:pointer;color:var(--jse-panel-button-color, inherit);background:var(--jse-panel-button-background, transparent)}.jse-search-box.svelte-wnmp4a .jse-search-form button.svelte-wnmp4a:hover{color:var(--panel-button-color-highlight, var(--jse-text-color, #4d4d4d));background:var(--jse-panel-button-background-highlight, #e0e0e0)}.jse-search-box.svelte-wnmp4a .jse-search-form input.svelte-wnmp4a{color:var(--jse-panel-color, var(--jse-text-color, #4d4d4d));border:var(--jse-input-border, 1px solid #d8dbdf);border-radius:3px;background:var(--jse-input-background, var(--jse-background-color, #fff));height:28px;padding:0 5px;margin:0;flex:1;width:0;min-width:50px;outline:none}.jse-search-box.svelte-wnmp4a .jse-search-form .jse-replace-toggle.svelte-wnmp4a{padding:var(--jse-padding, 10px) calc(0.5 * var(--jse-padding, 10px));min-width:20px;background:var(--jse-panel-button-background-highlight, #e0e0e0)}.jse-search-box.svelte-wnmp4a .jse-search-form .jse-search-contents.svelte-wnmp4a{flex:1;display:flex;flex-direction:column;padding:calc(0.5 * var(--jse-padding, 10px));gap:calc(0.5 * var(--jse-padding, 10px))}.jse-search-box.svelte-wnmp4a .jse-search-form .jse-search-contents .jse-search-section.svelte-wnmp4a{flex:1;display:flex;align-items:center;position:relative}.jse-search-box.svelte-wnmp4a .jse-search-form .jse-search-contents .jse-search-section .jse-search-icon.svelte-wnmp4a{color:inherit;cursor:inherit;background:inherit;width:32px;text-align:center}.jse-search-box.svelte-wnmp4a .jse-search-form .jse-search-contents .jse-search-section label.jse-search-input-label.svelte-wnmp4a{flex:1;display:flex}.jse-search-box.svelte-wnmp4a .jse-search-form .jse-search-contents .jse-search-section .jse-search-count.svelte-wnmp4a{color:inherit;font-size:80%;visibility:hidden;padding:0 5px;min-width:36px;text-align:center}.jse-search-box.svelte-wnmp4a .jse-search-form .jse-search-contents .jse-search-section .jse-search-count.jse-visible.svelte-wnmp4a{visibility:visible}.jse-search-box.svelte-wnmp4a .jse-search-form .jse-search-contents .jse-replace-section.svelte-wnmp4a{padding-left:32px;flex:1;display:flex}.jse-search-box.svelte-wnmp4a .jse-search-form .jse-search-contents .jse-replace-section button.svelte-wnmp4a{width:auto}')}function EB(e){var t,n,r,o,i,a,s,c,u,l,f,d,h,v,p,m,g,y,b,w,x,k,j,S,C,$,_,O,M=(-1!==e[7]&&e[7]<e[4]?"".concat(e[7]+1,"/"):"")+"",A=!e[2]&&PB(e),E=[RB,TB],P=[];function T(e,t){return e[6]?0:1}s=T(e),c=P[s]=E[s](e),y=new SM({props:{data:MP}}),x=new SM({props:{data:cP}}),S=new SM({props:{data:RP}});var R=e[0]&&!e[2]&&NB(e);return{c:function(){t=ki("div"),n=ki("form"),A&&A.c(),r=Ci(),o=ki("div"),i=ki("div"),a=ki("div"),c.c(),u=Ci(),l=ki("label"),f=ki("input"),d=Ci(),h=ki("div"),v=Si(M),p=Si(e[8]),m=Ci(),g=ki("button"),Ea(y.$$.fragment),b=Ci(),w=ki("button"),Ea(x.$$.fragment),k=Ci(),j=ki("button"),Ea(S.$$.fragment),C=Ci(),R&&R.c(),Ai(a,"class","jse-search-icon svelte-wnmp4a"),Ai(f,"class","jse-search-input svelte-wnmp4a"),Ai(f,"title","Enter text to search"),Ai(f,"type","text"),Ai(f,"placeholder","Find"),Ai(l,"class","jse-search-input-label svelte-wnmp4a"),Ai(l,"about","jse-search input"),Ai(h,"class","jse-search-count svelte-wnmp4a"),zi(h,"jse-visible",""!==e[3]),Ai(g,"type","button"),Ai(g,"class","jse-search-next svelte-wnmp4a"),Ai(g,"title","Go to next search result (Enter)"),Ai(w,"type","button"),Ai(w,"class","jse-search-previous svelte-wnmp4a"),Ai(w,"title","Go to previous search result (Shift+Enter)"),Ai(j,"type","button"),Ai(j,"class","jse-search-clear svelte-wnmp4a"),Ai(j,"title","Close search box (Esc)"),Ai(i,"class","jse-search-section svelte-wnmp4a"),Ai(o,"class","jse-search-contents svelte-wnmp4a"),Ai(n,"class","jse-search-form svelte-wnmp4a"),Ai(t,"class","jse-search-box svelte-wnmp4a")},m:function(c,M){bi(c,t,M),vi(t,n),A&&A.m(n,null),vi(n,r),vi(n,o),vi(o,i),vi(i,a),P[s].m(a,null),vi(i,u),vi(i,l),vi(l,f),Ni(f,e[3]),vi(i,d),vi(i,h),vi(h,v),vi(h,p),vi(i,m),vi(i,g),Pa(y,g,null),vi(i,b),vi(i,w),Pa(x,w,null),vi(i,k),vi(i,j),Pa(S,j,null),vi(o,C),R&&R.m(o,null),$=!0,_||(O=[_i(f,"input",e[27]),si(DB.call(null,f)),_i(f,"paste",e[12]),_i(g,"click",e[15]),_i(w,"click",e[16]),_i(j,"click",e[17]),_i(n,"keydown",e[10])],_=!0)},p:function(e,t){e[2]?A&&(ya(),xa(A,1,1,(function(){A=null})),ba()):A?(A.p(e,t),4&t[0]&&wa(A,1)):((A=PB(e)).c(),wa(A,1),A.m(n,r));var i=s;(s=T(e))!==i&&(ya(),xa(P[i],1,1,(function(){P[i]=null})),ba(),(c=P[s])||(c=P[s]=E[s](e)).c(),wa(c,1),c.m(a,null)),8&t[0]&&f.value!==e[3]&&Ni(f,e[3]),(!$||144&t[0])&&M!==(M=(-1!==e[7]&&e[7]<e[4]?"".concat(e[7]+1,"/"):"")+"")&&Ri(v,M),(!$||256&t[0])&&Ri(p,e[8]),(!$||8&t[0])&&zi(h,"jse-visible",""!==e[3]),e[0]&&!e[2]?R?R.p(e,t):((R=NB(e)).c(),R.m(o,null)):R&&(R.d(1),R=null)},i:function(e){$||(wa(A),wa(c),wa(y.$$.fragment,e),wa(x.$$.fragment,e),wa(S.$$.fragment,e),$=!0)},o:function(e){xa(A),xa(c),xa(y.$$.fragment,e),xa(x.$$.fragment,e),xa(S.$$.fragment,e),$=!1},d:function(e){e&&wi(t),A&&A.d(),P[s].d(),Ta(y),Ta(x),Ta(S),R&&R.d(),_=!1,Go(O)}}}function PB(e){var t,n,r,o,i;return n=new SM({props:{data:e[0]?kP:eP}}),{c:function(){t=ki("button"),Ea(n.$$.fragment),Ai(t,"type","button"),Ai(t,"class","jse-replace-toggle svelte-wnmp4a"),Ai(t,"title","Toggle visibility of replace options (Ctrl+H)")},m:function(a,s){bi(a,t,s),Pa(n,t,null),r=!0,o||(i=_i(t,"click",e[9]),o=!0)},p:function(e,t){var r={};1&t[0]&&(r.data=e[0]?kP:eP),n.$set(r)},i:function(e){r||(wa(n.$$.fragment,e),r=!0)},o:function(e){xa(n.$$.fragment,e),r=!1},d:function(e){e&&wi(t),Ta(n),o=!1,i()}}}function TB(e){var t,n;return t=new SM({props:{data:OP}}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}function RB(e){var t,n;return t=new SM({props:{data:nP,spin:!0}}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}function NB(e){var t,n,r,o,i,a,s,c;return{c:function(){t=ki("div"),n=ki("input"),r=Ci(),(o=ki("button")).textContent="Replace",i=Ci(),(a=ki("button")).textContent="All",Ai(n,"class","jse-replace-input svelte-wnmp4a"),Ai(n,"title","Enter replacement text"),Ai(n,"type","text"),Ai(n,"placeholder","Replace"),Ai(o,"type","button"),Ai(o,"title","Replace current occurrence (Ctrl+Enter)"),Ai(o,"class","svelte-wnmp4a"),Ai(a,"type","button"),Ai(a,"title","Replace all occurrences"),Ai(a,"class","svelte-wnmp4a"),Ai(t,"class","jse-replace-section svelte-wnmp4a")},m:function(u,l){bi(u,t,l),vi(t,n),Ni(n,e[5]),vi(t,r),vi(t,o),vi(t,i),vi(t,a),s||(c=[_i(n,"input",e[28]),_i(n,"keydown",e[11]),_i(o,"click",e[13]),_i(a,"click",e[14])],s=!0)},p:function(e,t){32&t[0]&&n.value!==e[5]&&Ni(n,e[5])},d:function(e){e&&wi(t),s=!1,Go(c)}}}function IB(e){var t,n,r=e[1]&&EB(e);return{c:function(){r&&r.c(),t=$i()},m:function(e,o){r&&r.m(e,o),bi(e,t,o),n=!0},p:function(e,n){e[1]?r?(r.p(e,n),2&n[0]&&wa(r,1)):((r=EB(e)).c(),wa(r,1),r.m(t.parentNode,t)):r&&(ya(),xa(r,1,1,(function(){r=null})),ba())},i:function(e){n||(wa(r),n=!0)},o:function(e){xa(r),n=!1},d:function(e){e&&wi(t),r&&r.d(e)}}}function DB(e){e.select()}function zB(e,t,n){var r,o,i,a,s=Ia("jsoneditor:SearchBox"),c=t.json,u=t.documentState,l=t.parser,f=t.showSearch,d=t.showReplace,h=t.readOnly,v=t.columns,p=t.onSearch,m=t.onFocus,g=t.onPatch,y=t.onClose,b="",w="",x="",k=!1,j=Wy((function(e){return D.apply(this,arguments)}),300),S=Wy((function(e){return z.apply(this,arguments)}),300);function C(){n(0,d=!d&&!h)}function $(){return($=ko(wo().mark((function e(){return wo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,sa();case 2:setTimeout((function(){return j.flush()}));case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function _(){return O.apply(this,arguments)}function O(){return(O=ko(wo().mark((function e(){var t,r,i,f,d;return wo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!h){e.next=2;break}return e.abrupt("return");case 2:if(r=null===(t=a)||void 0===t?void 0:t.activeItem,s("handleReplace",{replaceText:x,activeItem:r}),a&&r&&void 0!==c){e.next=6;break}return e.abrupt("return");case 6:return n(26,a=To(To({},gE(a)),{},{activeIndex:o})),i=jE(c,u,x,r,l),f=i.operations,d=i.newSelection,g(f,(function(e,t){return{state:To(To({},t),{},{selection:d})}})),e.next=11,sa();case 11:return e.next=13,S.flush();case 13:return e.next=15,R();case 15:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function M(){return(M=ko(wo().mark((function e(){var t,n,r;return wo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!h){e.next=2;break}return e.abrupt("return");case 2:return s("handleReplaceAll",{text:b,replaceText:x}),t=SE(c,u,b,x,l),n=t.operations,r=t.newSelection,g(n,(function(e,t){return{state:To(To({},t),{},{selection:r})}})),e.next=7,R();case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function A(){return E.apply(this,arguments)}function E(){return(E=ko(wo().mark((function e(){return wo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n(26,a=a?gE(a):void 0),e.next=3,R();case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function P(){return T.apply(this,arguments)}function T(){return(T=ko(wo().mark((function e(){return wo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n(26,a=a?yE(a):void 0),e.next=3,R();case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function R(){return N.apply(this,arguments)}function N(){return(N=ko(wo().mark((function e(){var t,n;return wo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s("handleFocus",a),!(n=null===(t=a)||void 0===t?void 0:t.activeItem)||void 0===c){e.next=5;break}return e.next=5,m(n.path);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function I(){return I=ko(wo().mark((function e(t){return wo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,B(t,b,c);case 2:case"end":return e.stop()}}),e)}))),I.apply(this,arguments)}function D(){return D=ko(wo().mark((function e(t){return wo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,B(f,t,c);case 2:return e.next=4,R();case 4:case"end":return e.stop()}}),e)}))),D.apply(this,arguments)}function z(){return z=ko(wo().mark((function e(t){return wo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,B(f,b,t);case 2:case"end":return e.stop()}}),e)}))),z.apply(this,arguments)}function B(e,t,n){return L.apply(this,arguments)}function L(){return L=ko(wo().mark((function e(t,r,o){return wo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=3;break}return a&&n(26,a=void 0),e.abrupt("return");case 3:if(s("applySearch",{showSearch:t,text:r}),""!==r){e.next=8;break}return s("clearing search result"),void 0!==a&&n(26,a=void 0),e.abrupt("return");case 8:return n(6,k=!0),e.abrupt("return",new Promise((function(e){setTimeout((function(){var t=bE(r,o,{maxResults:ss,columns:v});n(26,a=mE(0,t,a)),n(6,k=!1),e()}))})));case 10:case"end":return e.stop()}}),e)}))),L.apply(this,arguments)}function q(){s("handleClose"),j.cancel(),S.cancel(),B(!1,b,c),y()}return e.$$set=function(e){"json"in e&&n(18,c=e.json),"documentState"in e&&n(19,u=e.documentState),"parser"in e&&n(20,l=e.parser),"showSearch"in e&&n(1,f=e.showSearch),"showReplace"in e&&n(0,d=e.showReplace),"readOnly"in e&&n(2,h=e.readOnly),"columns"in e&&n(21,v=e.columns),"onSearch"in e&&n(22,p=e.onSearch),"onFocus"in e&&n(23,m=e.onFocus),"onPatch"in e&&n(24,g=e.onPatch),"onClose"in e&&n(25,y=e.onClose)},e.$$.update=function(){var t,s;67108864&e.$$.dirty[0]&&n(4,r=(null===(t=a)||void 0===t||null===(t=t.items)||void 0===t?void 0:t.length)||0);67108864&e.$$.dirty[0]&&n(7,o=(null===(s=a)||void 0===s?void 0:s.activeIndex)||0);16&e.$$.dirty[0]&&n(8,i=r>=ss?"".concat(999,"+"):String(r)),71303168&e.$$.dirty[0]&&p(a),2&e.$$.dirty[0]&&function(e){I.apply(this,arguments)}(f),8&e.$$.dirty[0]&&j(b),262144&e.$$.dirty[0]&&S(c)},[d,f,h,b,r,x,k,o,i,C,function(e){e.stopPropagation();var t=TO(e);"Enter"===t&&(e.preventDefault(),b!==w?(j.flush(),w=b):A()),"Shift+Enter"===t&&(e.preventDefault(),P()),"Ctrl+Enter"===t&&(e.preventDefault(),d?_():A()),"Ctrl+H"===t&&(e.preventDefault(),C()),"Escape"===t&&(e.preventDefault(),q())},function(e){"Enter"===TO(e)&&(e.preventDefault(),e.stopPropagation(),_())},function(){return $.apply(this,arguments)},_,function(){return M.apply(this,arguments)},A,P,q,c,u,l,v,p,m,g,y,a,function(){b=this.value,n(3,b)},function(){x=this.value,n(5,x)}]}var BB=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,zB,IB,Xo,{json:18,documentState:19,parser:20,showSearch:1,showReplace:0,readOnly:2,columns:21,onSearch:22,onFocus:23,onPatch:24,onClose:25},AB,[-1,-1]),n}return Ao(t,Na),Io(t)}(),LB=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function qB(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||LB(r)&&LB(o)))return!1;var r,o;return!0}function FB(e,t){void 0===t&&(t=qB);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}var VB=Symbol("path");function HB(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,r={};Array.isArray(e)&&function(e,t,n){if(e.length<t)e.forEach(n);else for(var r=t>1?(e.length-1)/(t-1):e.length,o=0;o<t;o++){var i=Math.floor(o*r);n(e[i],i,e)}}(e,n,(function(e){Gu(e)?WB(e,r,t):r[VB]=!0}));var o=[];return VB in r&&o.push([]),UB(r,[],o,t),o}function WB(e,t,n){for(var r in e){var o=e[r],i=t[r]||(t[r]={});Gu(o)&&n?WB(o,i,n):void 0===i[VB]&&(i[VB]=!0)}}function UB(e,t,n,r){for(var o in e){var i=t.concat(o),a=e[o];a&&!0===a[VB]&&n.push(i),Rs(a)&&r&&UB(a,i,n,r)}}function JB(e,t,n,r,o,i){for(var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:80,s=Ts(n)?n.length:0,c=function(e,t){var n=Object.values(e);if(Mx(n))return t;var r=function(e,t){return e+t},o=n.reduce(r);return o/n.length}(r,o),u=e-a,l=t+2*a,f=function(e){return r[e]||o},d=0,h=i;h<u&&d<s;)h+=f(d),d++;d>0&&(h-=f(--d));for(var v=d,p=0;p<l&&v<s;)p+=f(v),v++;for(var m=0,g=v;g<s;g++)m+=f(g);return{startIndex:d,endIndex:v,startHeight:h,endHeight:m,averageItemHeight:c,visibleHeight:p,visibleItems:Ts(n)?n.slice(d,v):[]}}function KB(e,t,n,r){for(var o=GB(e,t).rowIndex,i=0,a=0;a<o;a++)i+=n[a]||r;return i}function GB(e,t){var n,r=Co(n=e)||qo(n)||Lo(n)||So(),o=r[0],i=r.slice(1),a=parseInt(o,10);return{rowIndex:isNaN(a)?-1:a,columnIndex:t.findIndex((function(e){return PA(i,e)}))}}function QB(e,t){var n=e.rowIndex,r=e.columnIndex;return[String(n)].concat(Bo(t[r]))}function YB(e,t){var n=jo(Vj(e,(function(e){return Ju(e.path[0])})),2),r=n[0],o=n[1],i=vk(Tw(r,ZB),(function(e){var n={row:[],columns:{}};return e.forEach((function(e){var r=function(e,t){var n=GB(e.path,t);if(-1!==n.columnIndex)return n.columnIndex;return-1}(e,t);-1!==r?(void 0===n.columns[r]&&(n.columns[r]=[]),n.columns[r].push(e)):n.row.push(e)})),n}));return{root:o,rows:i}}function XB(e,t){if(t&&0!==t.length)return 1===t.length?t[0]:{path:e,message:"Multiple validation issues: "+t.map((function(e){return KO(e.path)+" "+e.message})).join(", "),severity:Xa.warning}}function ZB(e){return parseInt(e.path[0],10)}function eL(e,t,n){return t.some((function(t){return function(e,t,n){if(!e)return!1;if("replace"===t.op){var r=GB(Xs(t.path),n),o=r.rowIndex,i=r.columnIndex,a=n.findIndex((function(t){return Ax(t,e.path)}));if(-1!==o&&-1!==i&&i!==a)return!1}return!0}(e.sortedColumn,t,n)}))?To(To({},e),{},{sortedColumn:null}):e}var tL=Ia("jsoneditor:actions");function nL(e){return rL.apply(this,arguments)}function rL(){return rL=ko(wo().mark((function e(t){var n,r,o,i,a,s,c,u,l,f;return wo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.json,r=t.documentState,o=t.indentation,i=t.readOnly,a=t.parser,s=t.onPatch,!i&&void 0!==n&&r.selection&&qA(r.selection)){e.next=3;break}return e.abrupt("return");case 3:if(null!=(c=BA(n,r.selection,o,a))){e.next=6;break}return e.abrupt("return");case 6:return tL("cut",{selection:r.selection,clipboard:c,indentation:o}),e.next=9,vB(c);case 9:u=hE(n,r.selection),l=u.operations,f=u.newSelection,s(l,(function(e,t){return{state:To(To({},t),{},{selection:f})}}));case 11:case"end":return e.stop()}}),e)}))),rL.apply(this,arguments)}function oL(e){return iL.apply(this,arguments)}function iL(){return iL=ko(wo().mark((function e(t){var n,r,o,i,a;return wo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.json,r=t.documentState,o=t.indentation,i=t.parser,null!=(a=BA(n,r.selection,o,i))){e.next=4;break}return e.abrupt("return");case 4:return tL("copy",{clipboard:a,indentation:o}),e.next=7,vB(a);case 7:case"end":return e.stop()}}),e)}))),iL.apply(this,arguments)}function aL(e){var t=e.clipboardText,n=e.json,r=e.selection,o=e.readOnly,i=e.parser,a=e.onPatch,s=e.onChangeText,c=e.openRepairModal;if(!o)try{u(t)}catch(e){c(t,(function(e){tL("repaired pasted text: ",e),u(e)}))}function u(e){if(void 0!==n){var o=r||NA([],!1),c=uE(n,o,e,i);tL("paste",{pastedText:e,operations:c,selectionNonNull:o}),a(c,(function(e,t){var r=t;return c.filter((function(e){return(Ns(e)||Ds(e))&&Qu(e.value)})).forEach((function(t){var o=dc(n,t.path);r=lA(e,r,o)})),{state:r}}))}else tL("paste text",{pastedText:e}),s(t,(function(e,t){if(e){return{state:lA(e,t,[])}}}))}}function sL(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 c=void 0!==t&&(pA(r.selection)||mA(r.selection))?zA(r.selection.path,r.selection.path):r.selection;if(Mx(KA(r.selection)))tL("remove root",{selection:r.selection}),a&&a({text:"",json:void 0},void 0!==t?{text:void 0,json:t}:{text:n||"",json:t},{contentErrors:null,patchResult:null});else if(void 0!==t){var u=hE(t,c),l=u.operations,f=u.newSelection;tL("remove",{operations:l,selection:r.selection,newSelection:f}),s(l,(function(e,t){return{state:To(To({},t),{},{selection:o?r.selection:f})}}))}}}function cL(e){var t=e.json,n=e.documentState,r=e.columns,o=e.readOnly,i=e.onPatch;if(!o&&void 0!==t&&n.selection&&qA(n.selection)){var a=GB(KA(n.selection),r),s=a.rowIndex,c=a.columnIndex;tL("duplicate row",{rowIndex:s});var u=[String(s)];i(cE(t,[u]),(function(e,n){var o=NA(QB({rowIndex:s<t.length?s+1:s,columnIndex:c},r),!1);return{state:To(To({},n),{},{selection:o})}}))}}function uL(e){var t=e.json,n=e.documentState,r=e.columns,o=e.readOnly,i=e.onPatch;if(!o&&void 0!==t&&n.selection&&qA(n.selection)){var a=GB(KA(n.selection),r).rowIndex;tL("insert before row",{rowIndex:a}),i(iE(t,[String(a)],[{key:"",value:Rs(t[0])?{}:""}]))}}function lL(e){var t=e.json,n=e.documentState,r=e.columns,o=e.readOnly,i=e.onPatch;if(!o&&void 0!==t&&n.selection&&qA(n.selection)){var a=GB(KA(n.selection),r),s=a.rowIndex,c=a.columnIndex;tL("insert after row",{rowIndex:s});var u=s+1,l=[String(u)],f=[{key:"",value:Rs(t[0])?{}:""}];i(u<t.length?iE(t,l,f):aE(t,[],f),(function(e,t){var n=NA(QB({rowIndex:u,columnIndex:c},r),!1);return{state:To(To({},t),{},{selection:n})}}))}}function fL(e){var t=e.json,n=e.documentState,r=e.columns,o=e.readOnly,i=e.onPatch;if(!o&&void 0!==t&&n.selection&&qA(n.selection)){var a=GB(KA(n.selection),r),s=a.rowIndex,c=a.columnIndex;tL("remove row",{rowIndex:s}),i(lE([[String(s)]]),(function(e,t){var n=s<e.length?s:s>0?s-1:void 0,o=void 0!==n?NA(QB({rowIndex:n,columnIndex:c},r),!1):null;return tL("remove row new selection",{rowIndex:s,newRowIndex:n,newSelection:o}),{state:To(To({},t),{},{selection:o})}}))}}function dL(e){var t=e.insertType,n=e.selectInside,r=e.refJsonEditor,o=e.json,i=e.selection,a=e.readOnly,s=e.parser,c=e.onPatch,u=e.onReplaceJson;if(!a){var l=function(e,t,n){if("object"===n)return{};if("array"===n)return[];if("structure"===n&&void 0!==e){var r=Ws(e,t?kA(t):[]);if(Array.isArray(r)&&!Mx(r)){var o=lw(r);return Qu(o)?Sg(o,(function(e){return Array.isArray(e)?[]:Gu(e)?void 0:""})):""}}return""}(o,i,t);if(void 0!==o){var f=s.stringify(l),d=uE(o,i,f,s);tL("onInsert",{insertType:t,operations:d,newValue:l,data:f});var h=mb(d.filter((function(e){return"add"===e.op||"replace"===e.op})));c(d,(function(e,t){if(h){var r=dc(e,h.path);if(Qu(l))return{state:To(To({},WM(e,t,r,dA)),{},{selection:n?IA(r):t.selection})};if(""===l){var o=Mx(r)?null:Ws(e,Xw(r));return{state:HM(e,To(To({},t),{},{selection:Gu(o)?RA(r,!0):NA(r,!0)}),r)}}}else;})),tL("after patch"),h&&""===l&&gL((function(){return SO(r,"",!0,yL)}))}else{tL("onInsert",{insertType:t,newValue:l});var v=[];u(l,(function(e,t){return{state:To(To({},lA(e,t,v)),{},{selection:Qu(l)?IA(v):NA(v,!0)})}}))}}}function hL(e){return vL.apply(this,arguments)}function vL(){return vL=ko(wo().mark((function e(t){var n,r,o,i,a,s,c,u,l,f,d,h;return wo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.char,r=t.selectInside,o=t.refJsonEditor,i=t.json,a=t.selection,s=t.readOnly,c=t.parser,u=t.onPatch,l=t.onReplaceJson,f=t.onSelect,!s){e.next=3;break}return e.abrupt("return");case 3:if(!pA(a)){e.next=8;break}return d=!a.edit,f(To(To({},a),{},{edit:!0})),gL((function(){return SO(o,n,d,yL)})),e.abrupt("return");case 8:if("{"!==n){e.next=12;break}dL({insertType:"object",selectInside:r,refJsonEditor:o,json:i,selection:a,readOnly:s,parser:c,onPatch:u,onReplaceJson:l}),e.next=23;break;case 12:if("["!==n){e.next=16;break}dL({insertType:"array",selectInside:r,refJsonEditor:o,json:i,selection:a,readOnly:s,parser:c,onPatch:u,onReplaceJson:l}),e.next=23;break;case 16:if(!mA(a)||void 0===i){e.next=20;break}Qu(Ws(i,a.path))||(h=!a.edit,f(To(To({},a),{},{edit:!0})),gL((function(){return SO(o,n,h,yL)}))),e.next=23;break;case 20:return tL("onInsertValueWithCharacter",{char:n}),e.next=23,pL({char:n,refJsonEditor:o,json:i,selection:a,readOnly:s,parser:c,onPatch:u,onReplaceJson:l});case 23:case"end":return e.stop()}}),e)}))),vL.apply(this,arguments)}function pL(e){return mL.apply(this,arguments)}function mL(){return mL=ko(wo().mark((function e(t){var n,r,o,i,a,s,c,u,l;return wo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.char,r=t.refJsonEditor,o=t.json,i=t.selection,a=t.readOnly,s=t.parser,c=t.onPatch,u=t.onReplaceJson,!a){e.next=3;break}return e.abrupt("return");case 3:dL({insertType:"value",selectInside:!1,refJsonEditor:r,json:o,selection:i,readOnly:a,parser:s,onPatch:c,onReplaceJson:u}),l=!LA(i),gL((function(){return SO(r,n,l,yL)}));case 6:case"end":return e.stop()}}),e)}))),mL.apply(this,arguments)}function gL(e){setTimeout((function(){return setTimeout(e)}))}function yL(e){null==e||e.refresh()}function bL(e){pi(e,"svelte-l2z0i3",'.jse-json-preview.svelte-l2z0i3{flex:1;font-family:var(--jse-font-family-mono, consolas, menlo, monaco, "Ubuntu Mono", "source-code-pro", monospace);font-size:var(--jse-font-size-mono, 14px);color:var(--jse-panel-color-readonly, #b2b2b2);overflow:auto;white-space:pre-wrap;padding:2px;border-left:var(--jse-main-border, 1px solid #d7d7d7);border-right:var(--jse-main-border, 1px solid #d7d7d7);border-bottom:var(--jse-main-border, 1px solid #d7d7d7)}')}function wL(e){var t,n;return{c:function(){t=ki("div"),n=Si(e[0]),Ai(t,"class","jse-json-preview svelte-l2z0i3")},m:function(e,r){bi(e,t,r),vi(t,n)},p:function(e,t){1&jo(t,1)[0]&&Ri(n,e[0])},i:Ho,o:Ho,d:function(e){e&&wi(t)}}}function xL(e,t,n){var r,o,i=t.text,a=t.json,s=t.indentation,c=t.parser;return e.$$set=function(e){"text"in e&&n(1,i=e.text),"json"in e&&n(2,a=e.json),"indentation"in e&&n(3,s=e.indentation),"parser"in e&&n(4,c=e.parser)},e.$$.update=function(){6&e.$$.dirty&&n(5,r=void 0!==a?{json:a}:{text:i||""}),56&e.$$.dirty&&n(0,o=nM(X_(r,s,c),ls))},[o,i,a,s,c,r]}var kL=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,xL,wL,Yo,{text:1,json:2,indentation:3,parser:4},bL),n}return Ao(t,Na),Io(t)}();function jL(e){pi(e,"svelte-szeu2l",'button.jse-context-menu-button.svelte-szeu2l{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);padding:5px;margin:0;flex:1;white-space:nowrap;padding:var(--jse-padding, 10px);color:inherit}button.jse-context-menu-button.svelte-szeu2l:hover{background:var(--jse-context-menu-background-highlight, #7a7a7a)}button.jse-context-menu-button.svelte-szeu2l:focus{background:var(--jse-context-menu-background-highlight, #7a7a7a);z-index:1}button.jse-context-menu-button.svelte-szeu2l:disabled{color:var(--jse-context-menu-color-disabled, #9d9d9d);background:unset}button.jse-context-menu-button.left.svelte-szeu2l{text-align:left}button.jse-context-menu-button.svelte-szeu2l svg{width:16px}')}function SL(e){var t,n;return t=new SM({props:{data:e[0].icon}}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},p:function(e,n){var r={};1&n&&(r.data=e[0].icon),t.$set(r)},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}function CL(e){var t,n=e[0].text+"";return{c:function(){t=Si(n)},m:function(e,n){bi(e,t,n)},p:function(e,r){1&r&&n!==(n=e[0].text+"")&&Ri(t,n)},d:function(e){e&&wi(t)}}}function $L(e){var t,n,r,o,i,a,s,c,u=e[0].icon&&SL(e),l=e[0].text&&CL(e);return{c:function(){t=ki("button"),u&&u.c(),n=Ci(),l&&l.c(),Ai(t,"type","button"),Ai(t,"class",r=ai(QA("jse-context-menu-button",e[1],e[0].className))+" svelte-szeu2l"),Ai(t,"title",o=e[0].title),t.disabled=i=e[0].disabled||!1},m:function(r,o){bi(r,t,o),u&&u.m(t,null),vi(t,n),l&&l.m(t,null),a=!0,s||(c=_i(t,"click",e[3]),s=!0)},p:function(e,s){var c=jo(s,1)[0];e[0].icon?u?(u.p(e,c),1&c&&wa(u,1)):((u=SL(e)).c(),wa(u,1),u.m(t,n)):u&&(ya(),xa(u,1,1,(function(){u=null})),ba()),e[0].text?l?l.p(e,c):((l=CL(e)).c(),l.m(t,null)):l&&(l.d(1),l=null),(!a||3&c&&r!==(r=ai(QA("jse-context-menu-button",e[1],e[0].className))+" svelte-szeu2l"))&&Ai(t,"class",r),(!a||1&c&&o!==(o=e[0].title))&&Ai(t,"title",o),(!a||1&c&&i!==(i=e[0].disabled||!1))&&(t.disabled=i)},i:function(e){a||(wa(u),a=!0)},o:function(e){xa(u),a=!1},d:function(e){e&&wi(t),u&&u.d(),l&&l.d(),s=!1,c()}}}function _L(e,t,n){var r=t.item,o=t.className,i=void 0===o?void 0:o,a=t.onRequestClose;return e.$$set=function(e){"item"in e&&n(0,r=e.item),"className"in e&&n(1,i=e.className),"onRequestClose"in e&&n(2,a=e.onRequestClose)},[r,i,a,function(e){a(),r.onClick(e)}]}var OL=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,_L,$L,Yo,{item:0,className:1,onRequestClose:2},jL),n}return Ao(t,Na),Io(t)}();function ML(e){pi(e,"svelte-9i012w",'.jse-dropdown-button.svelte-9i012w.svelte-9i012w{flex:1;line-height:normal;border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);padding:5px;margin:0;position:relative;padding:0;display:flex}.jse-dropdown-button.svelte-9i012w ul.svelte-9i012w{margin:0;padding:0}.jse-dropdown-button.svelte-9i012w ul li.svelte-9i012w{margin:0;padding:0;list-style-type:none}.jse-dropdown-button.svelte-9i012w button.jse-open-dropdown.svelte-9i012w{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);padding:5px;margin:0;width:2em;background:var(--jse-context-menu-background, #656565);color:var(--jse-context-menu-color, var(--jse-text-color-inverse, #fff));border-radius:0}.jse-dropdown-button.svelte-9i012w button.jse-open-dropdown.jse-visible.svelte-9i012w{background:var(--jse-context-menu-background, #656565)}.jse-dropdown-button.svelte-9i012w button.jse-open-dropdown.svelte-9i012w:hover{background:var(--jse-context-menu-background-highlight, #7a7a7a)}.jse-dropdown-button.svelte-9i012w button.jse-open-dropdown.svelte-9i012w:focus{z-index:1}.jse-dropdown-button.svelte-9i012w button.jse-open-dropdown.svelte-9i012w:disabled{color:var(--jse-context-menu-color-disabled, #9d9d9d);background:unset}.jse-dropdown-button.svelte-9i012w .jse-dropdown-items.svelte-9i012w{display:none;position:absolute;top:100%;left:0;z-index:1;background:var(--jse-context-menu-background, #656565);color:var(--jse-context-menu-color, var(--jse-text-color-inverse, #fff));box-shadow:var(--jse-controls-box-shadow, 0 2px 6px 0 rgba(0, 0, 0, 0.24))}.jse-dropdown-button.svelte-9i012w .jse-dropdown-items.jse-visible.svelte-9i012w{display:block}.jse-dropdown-button.svelte-9i012w .jse-dropdown-items button.svelte-9i012w{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);padding:5px;margin:0;width:100%;text-align:left;padding:var(--jse-padding, 10px);margin:0}.jse-dropdown-button.svelte-9i012w .jse-dropdown-items button.svelte-9i012w:hover{background:var(--jse-context-menu-background-highlight, #7a7a7a)}.jse-dropdown-button.svelte-9i012w .jse-dropdown-items button.svelte-9i012w:disabled{color:var(--jse-context-menu-color-disabled, #9d9d9d);background:unset}')}function AL(e,t,n){var r=e.slice();return r[11]=t[n],r}var EL=function(e){return{}},PL=function(e){return{}};function TL(e){var t,n;return t=new SM({props:{data:e[11].icon}}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},p:function(e,n){var r={};1&n&&(r.data=e[11].icon),t.$set(r)},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}function RL(e){var t,n,r,o,i,a,s,c,u,l,f,d=e[11].text+"",h=e[11].icon&&TL(e);function v(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e)[9].apply(t,[e[11]].concat(r))}return{c:function(){t=ki("li"),n=ki("button"),h&&h.c(),r=Ci(),o=Si(d),c=Ci(),Ai(n,"type","button"),Ai(n,"title",i=e[11].title),n.disabled=a=e[11].disabled,Ai(n,"class",s=ai(e[11].className)+" svelte-9i012w"),Ai(t,"class","svelte-9i012w")},m:function(e,i){bi(e,t,i),vi(t,n),h&&h.m(n,null),vi(n,r),vi(n,o),vi(t,c),u=!0,l||(f=_i(n,"click",v),l=!0)},p:function(t,c){(e=t)[11].icon?h?(h.p(e,c),1&c&&wa(h,1)):((h=TL(e)).c(),wa(h,1),h.m(n,r)):h&&(ya(),xa(h,1,1,(function(){h=null})),ba()),(!u||1&c)&&d!==(d=e[11].text+"")&&Ri(o,d),(!u||1&c&&i!==(i=e[11].title))&&Ai(n,"title",i),(!u||1&c&&a!==(a=e[11].disabled))&&(n.disabled=a),(!u||1&c&&s!==(s=ai(e[11].className)+" svelte-9i012w"))&&Ai(n,"class",s)},i:function(e){u||(wa(h),u=!0)},o:function(e){xa(h),u=!1},d:function(e){e&&wi(t),h&&h.d(),l=!1,f()}}}function NL(e){var t,n,r,o,i,a,s,c,u,l,f=e[8].defaultItem,d=Zo(f,e,e[7],PL);o=new SM({props:{data:kP}});for(var h=Sa(e[0]),v=[],p=0;p<h.length;p+=1)v[p]=RL(AL(e,h,p));var m=function(e){return xa(v[e],1,1,(function(){v[e]=null}))};return{c:function(){t=ki("div"),d&&d.c(),n=Ci(),r=ki("button"),Ea(o.$$.fragment),i=Ci(),a=ki("div"),s=ki("ul");for(var c=0;c<v.length;c+=1)v[c].c();Ai(r,"type","button"),Ai(r,"class","jse-open-dropdown svelte-9i012w"),Ai(r,"data-type","jse-open-dropdown"),r.disabled=e[4],zi(r,"jse-visible",e[3]),Ai(s,"class","svelte-9i012w"),Ai(a,"class","jse-dropdown-items svelte-9i012w"),Ii(a,"width",e[2]),zi(a,"jse-visible",e[3]),Ai(t,"role","button"),Ai(t,"tabindex","0"),Ai(t,"class","jse-dropdown-button svelte-9i012w"),Ai(t,"title",e[1])},m:function(f,h){bi(f,t,h),d&&d.m(t,null),vi(t,n),vi(t,r),Pa(o,r,null),vi(t,i),vi(t,a),vi(a,s);for(var p=0;p<v.length;p+=1)v[p]&&v[p].m(s,null);c=!0,u||(l=[_i(r,"click",e[5]),_i(t,"click",e[6])],u=!0)},p:function(e,n){var o=jo(n,1)[0];if(d&&d.p&&(!c||128&o)&&ni(d,f,e,e[7],c?ti(f,e[7],o,EL):ri(e[7]),PL),(!c||16&o)&&(r.disabled=e[4]),(!c||8&o)&&zi(r,"jse-visible",e[3]),1&o){var i;for(h=Sa(e[0]),i=0;i<h.length;i+=1){var u=AL(e,h,i);v[i]?(v[i].p(u,o),wa(v[i],1)):(v[i]=RL(u),v[i].c(),wa(v[i],1),v[i].m(s,null))}for(ya(),i=h.length;i<v.length;i+=1)m(i);ba()}(!c||4&o)&&Ii(a,"width",e[2]),(!c||8&o)&&zi(a,"jse-visible",e[3]),(!c||2&o)&&Ai(t,"title",e[1])},i:function(e){if(!c){wa(d,e),wa(o.$$.fragment,e);for(var t=0;t<h.length;t+=1)wa(v[t]);c=!0}},o:function(e){xa(d,e),xa(o.$$.fragment,e),v=v.filter(Boolean);for(var t=0;t<v.length;t+=1)xa(v[t]);c=!1},d:function(e){e&&wi(t),d&&d.d(e),Ta(o),xi(v,e),u=!1,Go(l)}}}function IL(e,t,n){var r,o=t.$$slots,i=void 0===o?{}:o,a=t.$$scope,s=t.items,c=void 0===s?[]:s,u=t.title,l=void 0===u?void 0:u,f=t.width,d=void 0===f?"120px":f,h=!1;function v(){n(3,h=!1)}function p(e){"Escape"===TO(e)&&(e.preventDefault(),n(3,h=!1))}Ki((function(){document.addEventListener("click",v),document.addEventListener("keydown",p)})),Gi((function(){document.removeEventListener("click",v),document.removeEventListener("keydown",p)}));return e.$$set=function(e){"items"in e&&n(0,c=e.items),"title"in e&&n(1,l=e.title),"width"in e&&n(2,d=e.width),"$$scope"in e&&n(7,a=e.$$scope)},e.$$.update=function(){1&e.$$.dirty&&n(4,r=c.every((function(e){return!0===e.disabled})))},[c,l,d,h,r,function(){var e=h;setTimeout((function(){return n(3,h=!e)}))},v,a,i,function(e,t){return e.onClick(t)}]}var DL=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,IL,NL,Xo,{items:0,title:1,width:2},ML),n}return Ao(t,Na),Io(t)}();function zL(e){pi(e,"svelte-szeu2l",'button.jse-context-menu-button.svelte-szeu2l{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);padding:5px;margin:0;flex:1;white-space:nowrap;padding:var(--jse-padding, 10px);color:inherit}button.jse-context-menu-button.svelte-szeu2l:hover{background:var(--jse-context-menu-background-highlight, #7a7a7a)}button.jse-context-menu-button.svelte-szeu2l:focus{background:var(--jse-context-menu-background-highlight, #7a7a7a);z-index:1}button.jse-context-menu-button.svelte-szeu2l:disabled{color:var(--jse-context-menu-color-disabled, #9d9d9d);background:unset}button.jse-context-menu-button.left.svelte-szeu2l{text-align:left}button.jse-context-menu-button.svelte-szeu2l svg{width:16px}')}function BL(e){var t,n;return t=new SM({props:{data:e[0].main.icon}}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},p:function(e,n){var r={};1&n&&(r.data=e[0].main.icon),t.$set(r)},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}function LL(e){var t,n,r,o,i,a,s,c,u,l=e[0].main.text+"",f=e[0].main.icon&&BL(e);return{c:function(){t=ki("button"),f&&f.c(),n=Ci(),r=Si(l),Ai(t,"class",o=ai(QA("jse-context-menu-button",e[1],e[0].main.className))+" svelte-szeu2l"),Ai(t,"type","button"),Ai(t,"slot","defaultItem"),Ai(t,"title",i=e[0].main.title),t.disabled=a=e[0].main.disabled||!1},m:function(o,i){bi(o,t,i),f&&f.m(t,null),vi(t,n),vi(t,r),s=!0,c||(u=_i(t,"click",e[4]),c=!0)},p:function(e,c){e[0].main.icon?f?(f.p(e,c),1&c&&wa(f,1)):((f=BL(e)).c(),wa(f,1),f.m(t,n)):f&&(ya(),xa(f,1,1,(function(){f=null})),ba()),(!s||1&c)&&l!==(l=e[0].main.text+"")&&Ri(r,l),(!s||3&c&&o!==(o=ai(QA("jse-context-menu-button",e[1],e[0].main.className))+" svelte-szeu2l"))&&Ai(t,"class",o),(!s||1&c&&i!==(i=e[0].main.title))&&Ai(t,"title",i),(!s||1&c&&a!==(a=e[0].main.disabled||!1))&&(t.disabled=a)},i:function(e){s||(wa(f),s=!0)},o:function(e){xa(f),s=!1},d:function(e){e&&wi(t),f&&f.d(),c=!1,u()}}}function qL(e){var t,n;return t=new DL({props:{width:e[0].width,items:e[3],$$slots:{defaultItem:[LL]},$$scope:{ctx:e}}}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},p:function(e,n){var r=jo(n,1)[0],o={};1&r&&(o.width=e[0].width),8&r&&(o.items=e[3]),39&r&&(o.$$scope={dirty:r,ctx:e}),t.$set(o)},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}function FL(e,t,n){var r,o=t.item,i=t.className,a=void 0===i?void 0:i,s=t.onRequestClose;return e.$$set=function(e){"item"in e&&n(0,o=e.item),"className"in e&&n(1,a=e.className),"onRequestClose"in e&&n(2,s=e.onRequestClose)},e.$$.update=function(){5&e.$$.dirty&&n(3,r=o.items.map((function(e){return To(To({},e),{},{onClick:function(t){s(),e.onClick(t)}})})))},[o,a,s,r,function(e){s(),o.main.onClick(e)}]}var VL=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,FL,qL,Yo,{item:0,className:1,onRequestClose:2},zL),n}return Ao(t,Na),Io(t)}();function HL(e){pi(e,"svelte-fnyc8j",'.jse-contextmenu.svelte-fnyc8j.svelte-fnyc8j{box-shadow:var(--jse-controls-box-shadow, 0 2px 6px 0 rgba(0, 0, 0, 0.24));font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);background:var(--jse-context-menu-background, #656565);color:var(--jse-context-menu-color, var(--jse-text-color-inverse, #fff))}.jse-contextmenu.svelte-fnyc8j .jse-row.svelte-fnyc8j{display:flex;flex-direction:row;align-items:flex-start;justify-content:stretch}.jse-contextmenu.svelte-fnyc8j .jse-row div.jse-label.svelte-fnyc8j{flex:1;white-space:nowrap;padding:var(--jse-padding, 10px);color:var(--jse-context-menu-color-disabled, #9d9d9d);line-height:normal}.jse-contextmenu.svelte-fnyc8j .jse-row div.jse-tip.svelte-fnyc8j{flex:1;background:var(--jse-context-menu-tip-background, rgba(255, 255, 255, 0.2));color:var(--context-menu-tip-color, inherit);margin:calc(0.5 * var(--jse-padding, 10px));padding:calc(0.5 * var(--jse-padding, 10px)) var(--jse-padding, 10px);font-size:80%;line-height:1.3em;display:flex;flex-direction:row;align-items:flex-start;gap:var(--jse-padding, 10px);border-radius:3px}.jse-contextmenu.svelte-fnyc8j .jse-row div.jse-tip div.jse-tip-icon.svelte-fnyc8j{padding-top:calc(0.5 * var(--jse-padding, 10px))}.jse-contextmenu.svelte-fnyc8j .jse-column.svelte-fnyc8j{flex:1;display:flex;flex-direction:column;align-items:stretch}.jse-contextmenu.svelte-fnyc8j .jse-column.svelte-fnyc8j:not(:last-child){border-right:1px solid var(--jse-context-menu-separator-color, #7a7a7a)}.jse-contextmenu.svelte-fnyc8j .jse-separator.svelte-fnyc8j{width:100%;height:1px;background:var(--jse-context-menu-separator-color, #7a7a7a)}')}function WL(e,t,n){var r=e.slice();return r[7]=t[n],r}function UL(e,t,n){var r=e.slice();return r[10]=t[n],r}function JL(e,t,n){var r=e.slice();return r[13]=t[n],r}function KL(e){var t,n=vq(e[7])+"";return{c:function(){t=Si(n)},m:function(e,n){bi(e,t,n)},p:function(e,r){1&r&&n!==(n=vq(e[7])+"")&&Ri(t,n)},i:Ho,o:Ho,d:function(e){e&&wi(t)}}}function GL(e){var t;return{c:function(){Ai(t=ki("div"),"class","jse-separator svelte-fnyc8j")},m:function(e,n){bi(e,t,n)},p:Ho,i:Ho,o:Ho,d:function(e){e&&wi(t)}}}function QL(e){for(var t,n,r=Sa(e[7].items),o=[],i=0;i<r.length;i+=1)o[i]=lq(UL(e,r,i));var a=function(e){return xa(o[e],1,1,(function(){o[e]=null}))};return{c:function(){t=ki("div");for(var e=0;e<o.length;e+=1)o[e].c();Ai(t,"class","jse-row svelte-fnyc8j")},m:function(e,r){bi(e,t,r);for(var i=0;i<o.length;i+=1)o[i]&&o[i].m(t,null);n=!0},p:function(e,n){if(3&n){var i;for(r=Sa(e[7].items),i=0;i<r.length;i+=1){var s=UL(e,r,i);o[i]?(o[i].p(s,n),wa(o[i],1)):(o[i]=lq(s),o[i].c(),wa(o[i],1),o[i].m(t,null))}for(ya(),i=r.length;i<o.length;i+=1)a(i);ba()}},i:function(e){if(!n){for(var t=0;t<r.length;t+=1)wa(o[t]);n=!0}},o:function(e){o=o.filter(Boolean);for(var t=0;t<o.length;t+=1)xa(o[t]);n=!1},d:function(e){e&&wi(t),xi(o,e)}}}function YL(e){var t,n;return t=new VL({props:{item:e[7],onRequestClose:e[1]}}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},p:function(e,n){var r={};1&n&&(r.item=e[7]),2&n&&(r.onRequestClose=e[1]),t.$set(r)},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}function XL(e){var t,n;return t=new OL({props:{item:e[7],onRequestClose:e[1]}}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},p:function(e,n){var r={};1&n&&(r.item=e[7]),2&n&&(r.onRequestClose=e[1]),t.$set(r)},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}function ZL(e){var t,n=vq(e[10])+"";return{c:function(){t=Si(n)},m:function(e,n){bi(e,t,n)},p:function(e,r){1&r&&n!==(n=vq(e[10])+"")&&Ri(t,n)},i:Ho,o:Ho,d:function(e){e&&wi(t)}}}function eq(e){var t;return{c:function(){Ai(t=ki("div"),"class","jse-separator svelte-fnyc8j")},m:function(e,n){bi(e,t,n)},p:Ho,i:Ho,o:Ho,d:function(e){e&&wi(t)}}}function tq(e){for(var t,n,r=Sa(e[10].items),o=[],i=0;i<r.length;i+=1)o[i]=uq(JL(e,r,i));var a=function(e){return xa(o[e],1,1,(function(){o[e]=null}))};return{c:function(){t=ki("div");for(var e=0;e<o.length;e+=1)o[e].c();Ai(t,"class","jse-column svelte-fnyc8j")},m:function(e,r){bi(e,t,r);for(var i=0;i<o.length;i+=1)o[i]&&o[i].m(t,null);n=!0},p:function(e,n){if(3&n){var i;for(r=Sa(e[10].items),i=0;i<r.length;i+=1){var s=JL(e,r,i);o[i]?(o[i].p(s,n),wa(o[i],1)):(o[i]=uq(s),o[i].c(),wa(o[i],1),o[i].m(t,null))}for(ya(),i=r.length;i<o.length;i+=1)a(i);ba()}},i:function(e){if(!n){for(var t=0;t<r.length;t+=1)wa(o[t]);n=!0}},o:function(e){o=o.filter(Boolean);for(var t=0;t<o.length;t+=1)xa(o[t]);n=!1},d:function(e){e&&wi(t),xi(o,e)}}}function nq(e){var t,n;return t=new VL({props:{item:e[10],onRequestClose:e[1]}}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},p:function(e,n){var r={};1&n&&(r.item=e[10]),2&n&&(r.onRequestClose=e[1]),t.$set(r)},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}function rq(e){var t,n;return t=new OL({props:{item:e[10],onRequestClose:e[1]}}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},p:function(e,n){var r={};1&n&&(r.item=e[10]),2&n&&(r.onRequestClose=e[1]),t.$set(r)},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}function oq(e){var t,n=vq(e[13])+"";return{c:function(){t=Si(n)},m:function(e,n){bi(e,t,n)},p:function(e,r){1&r&&n!==(n=vq(e[13])+"")&&Ri(t,n)},i:Ho,o:Ho,d:function(e){e&&wi(t)}}}function iq(e){var t,n,r=e[13].text+"";return{c:function(){t=ki("div"),n=Si(r),Ai(t,"class","jse-label svelte-fnyc8j")},m:function(e,r){bi(e,t,r),vi(t,n)},p:function(e,t){1&t&&r!==(r=e[13].text+"")&&Ri(n,r)},i:Ho,o:Ho,d:function(e){e&&wi(t)}}}function aq(e){var t;return{c:function(){Ai(t=ki("div"),"class","jse-separator svelte-fnyc8j")},m:function(e,n){bi(e,t,n)},p:Ho,i:Ho,o:Ho,d:function(e){e&&wi(t)}}}function sq(e){var t,n;return t=new VL({props:{className:"left",item:e[13],onRequestClose:e[1]}}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},p:function(e,n){var r={};1&n&&(r.item=e[13]),2&n&&(r.onRequestClose=e[1]),t.$set(r)},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}function cq(e){var t,n;return t=new OL({props:{className:"left",item:e[13],onRequestClose:e[1]}}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},p:function(e,n){var r={};1&n&&(r.item=e[13]),2&n&&(r.onRequestClose=e[1]),t.$set(r)},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}function uq(e){var t,n,r,o,i,a,s,c,u=[cq,sq,aq,iq,oq],l=[];function f(e,i){return 1&i&&(t=null),1&i&&(n=null),1&i&&(r=null),1&i&&(o=null),null==t&&(t=!!yI(e[13])),t?0:(null==n&&(n=!!bI(e[13])),n?1:(null==r&&(r=!!mI(e[13])),r?2:(null==o&&(o=!!gI(e[13])),o?3:4)))}return i=f(e,-1),a=l[i]=u[i](e),{c:function(){a.c(),s=$i()},m:function(e,t){l[i].m(e,t),bi(e,s,t),c=!0},p:function(e,t){var n=i;(i=f(e,t))===n?l[i].p(e,t):(ya(),xa(l[n],1,1,(function(){l[n]=null})),ba(),(a=l[i])?a.p(e,t):(a=l[i]=u[i](e)).c(),wa(a,1),a.m(s.parentNode,s))},i:function(e){c||(wa(a),c=!0)},o:function(e){xa(a),c=!1},d:function(e){e&&wi(s),l[i].d(e)}}}function lq(e){var t,n,r,o,i,a,s,c,u=[rq,nq,tq,eq,ZL],l=[];function f(e,i){return 1&i&&(t=null),1&i&&(n=null),1&i&&(r=null),1&i&&(o=null),null==t&&(t=!!yI(e[10])),t?0:(null==n&&(n=!!bI(e[10])),n?1:(null==r&&(r=!!xI(e[10])),r?2:(null==o&&(o=!!mI(e[10])),o?3:4)))}return i=f(e,-1),a=l[i]=u[i](e),{c:function(){a.c(),s=$i()},m:function(e,t){l[i].m(e,t),bi(e,s,t),c=!0},p:function(e,t){var n=i;(i=f(e,t))===n?l[i].p(e,t):(ya(),xa(l[n],1,1,(function(){l[n]=null})),ba(),(a=l[i])?a.p(e,t):(a=l[i]=u[i](e)).c(),wa(a,1),a.m(s.parentNode,s))},i:function(e){c||(wa(a),c=!0)},o:function(e){xa(a),c=!1},d:function(e){e&&wi(s),l[i].d(e)}}}function fq(e){var t,n,r,o,i,a,s,c,u=[XL,YL,QL,GL,KL],l=[];function f(e,i){return 1&i&&(t=null),1&i&&(n=null),1&i&&(r=null),1&i&&(o=null),null==t&&(t=!!yI(e[7])),t?0:(null==n&&(n=!!bI(e[7])),n?1:(null==r&&(r=!!wI(e[7])),r?2:(null==o&&(o=!!mI(e[7])),o?3:4)))}return i=f(e,-1),a=l[i]=u[i](e),{c:function(){a.c(),s=$i()},m:function(e,t){l[i].m(e,t),bi(e,s,t),c=!0},p:function(e,t){var n=i;(i=f(e,t))===n?l[i].p(e,t):(ya(),xa(l[n],1,1,(function(){l[n]=null})),ba(),(a=l[i])?a.p(e,t):(a=l[i]=u[i](e)).c(),wa(a,1),a.m(s.parentNode,s))},i:function(e){c||(wa(a),c=!0)},o:function(e){xa(a),c=!1},d:function(e){e&&wi(s),l[i].d(e)}}}function dq(e){var t,n,r,o,i,a,s,c;return o=new SM({props:{data:iM}}),{c:function(){t=ki("div"),n=ki("div"),r=ki("div"),Ea(o.$$.fragment),i=Ci(),a=ki("div"),s=Si(e[2]),Ai(r,"class","jse-tip-icon svelte-fnyc8j"),Ai(a,"class","jse-tip-text"),Ai(n,"class","jse-tip svelte-fnyc8j"),Ai(t,"class","jse-row svelte-fnyc8j")},m:function(e,u){bi(e,t,u),vi(t,n),vi(n,r),Pa(o,r,null),vi(n,i),vi(n,a),vi(a,s),c=!0},p:function(e,t){(!c||4&t)&&Ri(s,e[2])},i:function(e){c||(wa(o.$$.fragment,e),c=!0)},o:function(e){xa(o.$$.fragment,e),c=!1},d:function(e){e&&wi(t),Ta(o)}}}function hq(e){for(var t,n,r,o,i,a=Sa(e[0]),s=[],c=0;c<a.length;c+=1)s[c]=fq(WL(e,a,c));var u=function(e){return xa(s[e],1,1,(function(){s[e]=null}))},l=e[2]&&dq(e);return{c:function(){t=ki("div");for(var e=0;e<s.length;e+=1)s[e].c();n=Ci(),l&&l.c(),Ai(t,"role","menu"),Ai(t,"tabindex","-1"),Ai(t,"class","jse-contextmenu svelte-fnyc8j")},m:function(a,c){bi(a,t,c);for(var u=0;u<s.length;u+=1)s[u]&&s[u].m(t,null);vi(t,n),l&&l.m(t,null),e[5](t),r=!0,o||(i=_i(t,"keydown",e[4]),o=!0)},p:function(e,r){var o=jo(r,1)[0];if(3&o){var i;for(a=Sa(e[0]),i=0;i<a.length;i+=1){var c=WL(e,a,i);s[i]?(s[i].p(c,o),wa(s[i],1)):(s[i]=fq(c),s[i].c(),wa(s[i],1),s[i].m(t,n))}for(ya(),i=a.length;i<s.length;i+=1)u(i);ba()}e[2]?l?(l.p(e,o),4&o&&wa(l,1)):((l=dq(e)).c(),wa(l,1),l.m(t,null)):l&&(ya(),xa(l,1,1,(function(){l=null})),ba())},i:function(e){if(!r){for(var t=0;t<a.length;t+=1)wa(s[t]);wa(l),r=!0}},o:function(e){s=s.filter(Boolean);for(var t=0;t<s.length;t+=1)xa(s[t]);xa(l),r=!1},d:function(n){n&&wi(t),xi(s,n),l&&l.d(),e[5](null),o=!1,i()}}}function vq(e){return console.error("Unknown type of context menu item",e),"???"}function pq(e,t,n){var r,o=t.items,i=t.onRequestClose,a=t.tip;Ki((function(){var e=Array.from(r.querySelectorAll("button")).find((function(e){return!e.disabled}));e&&e.focus()}));var s={ArrowUp:"Up",ArrowDown:"Down",ArrowLeft:"Left",ArrowRight:"Right"};return e.$$set=function(e){"items"in e&&n(0,o=e.items),"onRequestClose"in e&&n(1,i=e.onRequestClose),"tip"in e&&n(2,a=e.tip)},[o,i,a,r,function(e){var t=TO(e),n=s[t];if(n&&e.target){e.preventDefault();var o=EO({allElements:Array.from(r.querySelectorAll("button:not([disabled])")),currentElement:e.target,direction:n,hasPrio:function(e){return"jse-open-dropdown"!==e.getAttribute("data-type")}});o&&o.focus()}},function(e){ta[e?"unshift":"push"]((function(){n(3,r=e)}))}]}var mq=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,pq,hq,Xo,{items:0,onRequestClose:1,tip:2},HL),n}return Ao(t,Na),Io(t)}();var gq=hi.window;function yq(e){pi(e,"svelte-1ig7ktu",'.jse-tree-mode.svelte-1ig7ktu.svelte-1ig7ktu{flex:1;display:flex;flex-direction:column;position:relative;background:var(--jse-background-color, #fff);min-width:0;min-height:0;font-family:var(--jse-font-family-mono, consolas, menlo, monaco, "Ubuntu Mono", "source-code-pro", monospace);font-size:var(--jse-font-size-mono, 14px);color:var(--jse-text-color, #4d4d4d);line-height:var(--jse-line-height, calc(1em + 4px))}.jse-tree-mode.svelte-1ig7ktu .jse-hidden-input-label .jse-hidden-input.svelte-1ig7ktu{position:fixed;top:-10px;left:-10px;width:1px;height:1px;padding:0;border:0;outline:none}.jse-tree-mode.no-main-menu.svelte-1ig7ktu.svelte-1ig7ktu{border-top:var(--jse-main-border, 1px solid #d7d7d7)}.jse-tree-mode.svelte-1ig7ktu .jse-search-box-container.svelte-1ig7ktu{position:relative;height:0;top:var(--jse-padding, 10px);margin-right:calc(var(--jse-padding, 10px) + 20px);margin-left:var(--jse-padding, 10px);text-align:right;z-index:3}.jse-tree-mode.svelte-1ig7ktu .jse-contents.svelte-1ig7ktu{flex:1;overflow:auto;position:relative;padding:2px;display:flex;flex-direction:column;border-left:var(--jse-main-border, 1px solid #d7d7d7);border-right:var(--jse-main-border, 1px solid #d7d7d7)}.jse-tree-mode.svelte-1ig7ktu .jse-contents.svelte-1ig7ktu:last-child{border-bottom:var(--jse-main-border, 1px solid #d7d7d7)}.jse-tree-mode.svelte-1ig7ktu .jse-contents .jse-loading-space.svelte-1ig7ktu{flex:1}.jse-tree-mode.svelte-1ig7ktu .jse-contents .jse-loading.svelte-1ig7ktu{flex:2;text-align:center;color:var(--jse-panel-color-readonly, #b2b2b2);box-sizing:border-box;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px)}')}function bq(e){var t,n,r;function o(t){e[75](t)}var i={json:e[11],selection:e[12].selection,readOnly:e[0],historyState:e[22],onExpandAll:e[38],onCollapseAll:e[39],onUndo:e[33],onRedo:e[34],onSort:e[35],onTransform:e[36],onContextMenu:e[43],onCopy:e[30],onRenderMenu:e[7]};return void 0!==e[13]&&(i.showSearch=e[13]),t=new Vz({props:i}),ta.push((function(){return Aa(t,"showSearch",o)})),{c:function(){Ea(t.$$.fragment)},m:function(e,n){Pa(t,e,n),r=!0},p:function(e,r){var o={};2048&r[0]&&(o.json=e[11]),4096&r[0]&&(o.selection=e[12].selection),1&r[0]&&(o.readOnly=e[0]),4194304&r[0]&&(o.historyState=e[22]),128&r[0]&&(o.onRenderMenu=e[7]),!n&&8192&r[0]&&(n=!0,o.showSearch=e[13],ua((function(){return n=!1}))),t.$set(o)},i:function(e){r||(wa(t.$$.fragment,e),r=!0)},o:function(e){xa(t.$$.fragment,e),r=!1},d:function(e){Ta(t,e)}}}function wq(e){var t,n;return t=new MB({props:{json:e[11],selection:e[12].selection,onSelect:e[47],onError:e[6],pathParser:e[4]}}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},p:function(e,n){var r={};2048&n[0]&&(r.json=e[11]),4096&n[0]&&(r.selection=e[12].selection),64&n[0]&&(r.onError=e[6]),16&n[0]&&(r.pathParser=e[4]),t.$set(r)},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}function xq(e){var t;return{c:function(){(t=ki("div")).innerHTML='<div class="jse-loading-space svelte-1ig7ktu"></div> <div class="jse-loading svelte-1ig7ktu">loading...</div>',Ai(t,"class","jse-contents svelte-1ig7ktu")},m:function(e,n){bi(e,t,n)},p:Ho,i:Ho,o:Ho,d:function(e){e&&wi(t)}}}function kq(e){var t,n,r,o,i,a,s,c,u,l=[Sq,jq],f=[];function d(e,t){return void 0===e[11]?0:1}return o=d(e),i=f[o]=l[o](e),{c:function(){t=ki("label"),n=ki("input"),r=Ci(),i.c(),a=$i(),Ai(n,"type","text"),n.readOnly=!0,Ai(n,"tabindex","-1"),Ai(n,"class","jse-hidden-input svelte-1ig7ktu"),Ai(t,"class","jse-hidden-input-label")},m:function(i,l){bi(i,t,l),vi(t,n),e[76](n),bi(i,r,l),f[o].m(i,l),bi(i,a,l),s=!0,c||(u=_i(n,"paste",e[31]),c=!0)},p:function(e,t){var n=o;(o=d(e))===n?f[o].p(e,t):(ya(),xa(f[n],1,1,(function(){f[n]=null})),ba(),(i=f[o])?i.p(e,t):(i=f[o]=l[o](e)).c(),wa(i,1),i.m(a.parentNode,a))},i:function(e){s||(wa(i),s=!0)},o:function(e){xa(i),s=!1},d:function(n){n&&(wi(t),wi(r),wi(a)),e[76](null),f[o].d(n),c=!1,u()}}}function jq(e){var t,n,r,o,i,a,s,c,u,l,f;r=new BB({props:{json:e[11],documentState:e[12],parser:e[3],showSearch:e[13],showReplace:e[21],readOnly:e[0],columns:void 0,onSearch:e[26],onFocus:e[27],onPatch:e[37],onClose:e[28]}}),a=new Iz({props:{value:e[11],path:[],expandedMap:e[12].expandedMap,enforceStringMap:e[12].enforceStringMap,visibleSectionsMap:e[12].visibleSectionsMap,validationErrorsMap:e[24],searchResultItemsMap:null===(t=e[20])||void 0===t?void 0:t.itemsMap,selection:e[12].selection,context:e[15],onDragSelectionStart:Mf}});var d=e[19]&&Cq(e),h=e[23]&&$q(e);return l=new aI({props:{validationErrors:e[14],selectError:e[29]}}),{c:function(){n=ki("div"),Ea(r.$$.fragment),o=Ci(),i=ki("div"),Ea(a.$$.fragment),s=Ci(),d&&d.c(),c=Ci(),h&&h.c(),u=Ci(),Ea(l.$$.fragment),Ai(n,"class","jse-search-box-container svelte-1ig7ktu"),Ai(i,"class","jse-contents svelte-1ig7ktu"),Ai(i,"data-jsoneditor-scrollable-contents",!0)},m:function(t,v){bi(t,n,v),Pa(r,n,null),bi(t,o,v),bi(t,i,v),Pa(a,i,null),e[80](i),bi(t,s,v),d&&d.m(t,v),bi(t,c,v),h&&h.m(t,v),bi(t,u,v),Pa(l,t,v),f=!0},p:function(e,t){var n,o={};2048&t[0]&&(o.json=e[11]),4096&t[0]&&(o.documentState=e[12]),8&t[0]&&(o.parser=e[3]),8192&t[0]&&(o.showSearch=e[13]),2097152&t[0]&&(o.showReplace=e[21]),1&t[0]&&(o.readOnly=e[0]),r.$set(o);var i={};2048&t[0]&&(i.value=e[11]),4096&t[0]&&(i.expandedMap=e[12].expandedMap),4096&t[0]&&(i.enforceStringMap=e[12].enforceStringMap),4096&t[0]&&(i.visibleSectionsMap=e[12].visibleSectionsMap),16777216&t[0]&&(i.validationErrorsMap=e[24]),1048576&t[0]&&(i.searchResultItemsMap=null===(n=e[20])||void 0===n?void 0:n.itemsMap),4096&t[0]&&(i.selection=e[12].selection),32768&t[0]&&(i.context=e[15]),a.$set(i),e[19]?d?(d.p(e,t),524288&t[0]&&wa(d,1)):((d=Cq(e)).c(),wa(d,1),d.m(c.parentNode,c)):d&&(ya(),xa(d,1,1,(function(){d=null})),ba()),e[23]?h?(h.p(e,t),8388608&t[0]&&wa(h,1)):((h=$q(e)).c(),wa(h,1),h.m(u.parentNode,u)):h&&(ya(),xa(h,1,1,(function(){h=null})),ba());var s={};16384&t[0]&&(s.validationErrors=e[14]),l.$set(s)},i:function(e){f||(wa(r.$$.fragment,e),wa(a.$$.fragment,e),wa(d),wa(h),wa(l.$$.fragment,e),f=!0)},o:function(e){xa(r.$$.fragment,e),xa(a.$$.fragment,e),xa(d),xa(h),xa(l.$$.fragment,e),f=!1},d:function(t){t&&(wi(n),wi(o),wi(i),wi(s),wi(c),wi(u)),Ta(r),Ta(a),e[80](null),d&&d.d(t),h&&h.d(t),Ta(l,t)}}}function Sq(e){var t,n,r,o,i=[Oq,_q],a=[];function s(e,t){return""===e[18]||void 0===e[18]?0:1}return t=s(e),n=a[t]=i[t](e),{c:function(){n.c(),r=$i()},m:function(e,n){a[t].m(e,n),bi(e,r,n),o=!0},p:function(e,o){var c=t;(t=s(e))===c?a[t].p(e,o):(ya(),xa(a[c],1,1,(function(){a[c]=null})),ba(),(n=a[t])?n.p(e,o):(n=a[t]=i[t](e)).c(),wa(n,1),n.m(r.parentNode,r))},i:function(e){o||(wa(n),o=!0)},o:function(e){xa(n),o=!1},d:function(e){e&&wi(r),a[t].d(e)}}}function Cq(e){var t,n;return t=new GN({props:{type:"info",message:"You pasted a JSON ".concat(Array.isArray(e[19].contents)?"array":"object"," as text"),actions:[{icon:pP,text:"Paste as JSON instead",title:"Replace the value with the pasted JSON",onMouseDown:e[44]},{text:"Leave as is",title:"Keep the JSON embedded in the value",onClick:e[45]}]}}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},p:function(e,n){var r={};524288&n[0]&&(r.message="You pasted a JSON ".concat(Array.isArray(e[19].contents)?"array":"object"," as text")),t.$set(r)},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}function $q(e){var t,n;return t=new GN({props:{type:"success",message:"The loaded JSON document was invalid but is successfully repaired.",actions:e[0]?[]:[{icon:zP,text:"Ok",title:"Accept the repaired document",onClick:e[8]},{icon:vP,text:"Repair manually instead",title:"Leave the document unchanged and repair it manually instead",onClick:e[46]}],onClose:e[9]}}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},p:function(e,n){var r={};1&n[0]&&(r.actions=e[0]?[]:[{icon:zP,text:"Ok",title:"Accept the repaired document",onClick:e[8]},{icon:vP,text:"Repair manually instead",title:"Leave the document unchanged and repair it manually instead",onClick:e[46]}]),t.$set(r)},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}function _q(e){var t,n,r,o;return t=new GN({props:{type:"error",message:"The loaded JSON document is invalid and could not be repaired automatically.",actions:e[0]?[]:[{icon:vP,text:"Repair manually",title:'Open the document in "code" mode and repair it manually',onClick:e[46]}]}}),r=new kL({props:{text:e[18],json:e[11],indentation:e[5],parser:e[3]}}),{c:function(){Ea(t.$$.fragment),n=Ci(),Ea(r.$$.fragment)},m:function(e,i){Pa(t,e,i),bi(e,n,i),Pa(r,e,i),o=!0},p:function(e,n){var o={};1&n[0]&&(o.actions=e[0]?[]:[{icon:vP,text:"Repair manually",title:'Open the document in "code" mode and repair it manually',onClick:e[46]}]),t.$set(o);var i={};262144&n[0]&&(i.text=e[18]),2048&n[0]&&(i.json=e[11]),32&n[0]&&(i.indentation=e[5]),8&n[0]&&(i.parser=e[3]),r.$set(i)},i:function(e){o||(wa(t.$$.fragment,e),wa(r.$$.fragment,e),o=!0)},o:function(e){xa(t.$$.fragment,e),xa(r.$$.fragment,e),o=!1},d:function(e){e&&wi(n),Ta(t,e),Ta(r,e)}}}function Oq(e){var t,n;return t=new Kz({props:{readOnly:e[0],onCreateObject:e[77],onCreateArray:e[78],onClick:e[79]}}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},p:function(e,n){var r={};1&n[0]&&(r.readOnly=e[0]),t.$set(r)},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}function Mq(e){var t,n,r,o,i,a,s,c,u=e[1]&&bq(e),l=e[2]&&wq(e),f=[kq,xq],d=[];return o=function(e,t){return e[25]?1:0}(e),i=d[o]=f[o](e),{c:function(){t=ki("div"),u&&u.c(),n=Ci(),l&&l.c(),r=Ci(),i.c(),Ai(t,"role","tree"),Ai(t,"tabindex","-1"),Ai(t,"class","jse-tree-mode svelte-1ig7ktu"),zi(t,"no-main-menu",!e[1])},m:function(i,f){bi(i,t,f),u&&u.m(t,null),vi(t,n),l&&l.m(t,null),vi(t,r),d[o].m(t,null),e[81](t),a=!0,s||(c=[_i(gq,"mousedown",e[48]),_i(t,"keydown",e[40]),_i(t,"mousedown",e[41]),_i(t,"contextmenu",e[42])],s=!0)},p:function(e,o){e[1]?u?(u.p(e,o),2&o[0]&&wa(u,1)):((u=bq(e)).c(),wa(u,1),u.m(t,n)):u&&(ya(),xa(u,1,1,(function(){u=null})),ba()),e[2]?l?(l.p(e,o),4&o[0]&&wa(l,1)):((l=wq(e)).c(),wa(l,1),l.m(t,r)):l&&(ya(),xa(l,1,1,(function(){l=null})),ba()),i.p(e,o),(!a||2&o[0])&&zi(t,"no-main-menu",!e[1])},i:function(e){a||(wa(u),wa(l),wa(i),a=!0)},o:function(e){xa(u),xa(l),xa(i),a=!1},d:function(n){n&&wi(t),u&&u.d(),l&&l.d(),d[o].d(),e[81](null),s=!1,Go(c)}}}function Aq(e,t,n){var r,o=Ia("jsoneditor:TreeMode"),i="undefined"==typeof window;o("isSSR:",i);var a,s,c,u,l,f=Xi("simple-modal").open,d=P$(),h=P$(),v=Xi("absolute-popup"),p=v.openAbsolutePopup,m=v.closeAbsolutePopup,g=!1,y=PN(),b=t.readOnly,w=t.externalContent,x=t.externalSelection,k=t.mainMenuBar,j=t.navigationBar,S=t.escapeControlCharacters,C=t.escapeUnicodeCharacters,$=t.parser,_=t.parseMemoizeOne,O=t.validator,M=t.validationParser,A=t.pathParser,E=t.indentation,P=t.onError,T=t.onChange,R=t.onChangeMode,N=t.onSelect,I=t.onRenderValue,D=t.onRenderMenu,z=t.onRenderContextMenu,B=t.onClassName,L=t.onFocus,q=t.onBlur,F=t.onSortModal,V=t.onTransformModal,H=t.onJSONEditorModal,W=!1;qN({onMount:Ki,onDestroy:Gi,getWindow:function(){return CO(c)},hasFocus:function(){return W&&document.hasFocus()||$O(c)},onFocus:function(){g=!0,L&&L()},onBlur:function(){g=!1,q&&q()}});var U=void 0;function J(e){o("updateSelection",e);var t="function"==typeof e?e(X.selection)||null:e;Ax(t,X.selection)||(n(12,X=To(To({},X),{},{selection:t})),N(t))}var K,G,Q,Y=!1,X=qM(),Z=!1,ee=!1;function te(){return(te=ko(wo().mark((function e(t){return wo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n(12,X=To(To({},HM(u,X,t)),{},{selection:null})),e.next=3,Ve(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var ne=NN({onChange:function(e){n(22,re=e)}}),re=ne.getState();var oe,ie,ae=!1,se=[],ce=FB(zN);function ue(e,t,r,i){IN((function(){var a;try{a=ce(e,t,r,i)}catch(e){a=[{path:[],message:"Failed to validate: "+e.message,severity:Xa.warning}]}Ax(a,se)||(o("validationErrors changed:",a),n(14,se=a))}),(function(e){return o("validationErrors updated in ".concat(e," ms"))}))}function le(){return o("validate"),U?{parseError:U,isRepairable:!1}:(ue(u,O,$,M),Mx(se)?null:{validationErrors:se})}function fe(){return u}function de(){return X}function he(e){G_(e)?function(e){if(void 0===e)return;var t=!Ax(u,e);if(o("update external json",{isChanged:t,currentlyText:void 0===u}),!t)return;var r=X,i=u,a=l,s=ae;n(11,u=e),ve(u),n(18,l=void 0),n(23,ae=!1),U=void 0,pe(u),me({previousJson:i,previousState:r,previousText:a,previousTextIsRepaired:s})}(e.json):K_(e)&&function(e){if(void 0===e||G_(w))return;var t=e!==l;if(o("update external text",{isChanged:t}),!t)return;var r=u,i=X,a=l,s=ae;try{n(11,u=_(e)),ve(u),n(18,l=e),n(23,ae=!1),U=void 0}catch(t){try{n(11,u=_(Hu(e))),ve(u),n(18,l=e),n(23,ae=!0),U=void 0,pe(u)}catch(e){n(11,u=void 0),n(18,l=w.text),n(23,ae=!1),U=void 0!==l&&""!==l?W_(l,t.message||String(t)):void 0}}pe(u),me({previousJson:r,previousState:i,previousText:a,previousTextIsRepaired:s})}(e.text)}function ve(e){Y||(Y=!0,n(12,X=WM(e,X,[],function(e){return Z_({json:e},ps)?fA:dA}(e))))}function pe(e){X.selection&&(Ys(e,GA(X.selection))&&Ys(e,KA(X.selection))||(o("clearing selection: path does not exist anymore",X.selection),n(12,X=To(To({},X),{},{selection:_A(e,X)}))))}function me(e){var t=e.previousJson,n=e.previousState,r=e.previousText,o=e.previousTextIsRepaired;void 0===t&&void 0===r||(void 0!==u?void 0!==t?ne.add({undo:{patch:[{op:"replace",path:"",value:t}],state:TA(n),json:void 0,text:r,textIsRepaired:o},redo:{patch:[{op:"replace",path:"",value:u}],state:TA(X),json:void 0,text:l,textIsRepaired:ae}}):ne.add({undo:{patch:void 0,json:void 0,text:r,state:TA(n),textIsRepaired:o},redo:{patch:void 0,json:u,state:TA(X),text:l,textIsRepaired:ae}}):void 0!==t&&ne.add({undo:{patch:void 0,json:t,state:TA(n),text:r,textIsRepaired:o},redo:{patch:void 0,json:void 0,text:l,textIsRepaired:ae,state:TA(X)}}))}function ge(e,t){if(o("patch",e,t),void 0===u)throw new Error("Cannot apply patch: no JSON");var r=u,i=X,a=l,s=ae,c=vE(u,e),f=KM(u,X,e),d=OA(u,e),h=function(e,t){return t||!(arguments.length>2&&void 0!==arguments[2])||arguments[2]?To(To({},e),{},{selection:t}):e}(f.documentState,d,!1);o("patch updatedSelection",d);var v="function"==typeof t?t(f.json,h):void 0;n(11,u=v&&void 0!==v.json?v.json:f.json);var p=v&&void 0!==v.state?v.state:h;return n(12,X=p),n(18,l=void 0),n(23,ae=!1),n(19,G=void 0),U=void 0,pe(u),ne.add({undo:{patch:c,json:void 0,text:a,state:TA(i),textIsRepaired:s},redo:{patch:e,json:void 0,state:TA(p),text:l,textIsRepaired:ae}}),{json:u,previousJson:r,undo:c,redo:e}}function ye(){!b&&X.selection&&J(RA(KA(X.selection),!0))}function be(){if(!b&&X.selection){var e=KA(X.selection),t=Ws(u,e);Qu(t)?function(e,t){o("openJSONEditorModal",{path:e,value:t}),W=!0,H({content:{json:t},path:e,onPatch:ie.onPatch,onClose:function(){W=!1,ot()}})}(e,t):J(NA(e,!0))}}function we(){if(!b&&mA(X.selection)){var e=KA(X.selection),t=Zs(e),n=Ws(u,e),r=!iA(n,X.enforceStringMap,t,$),i=r?String(n):rl(String(n),$);o("handleToggleEnforceString",{enforceString:r,value:n,updatedValue:i}),Ke([{op:"replace",path:t,value:i}],(function(e,n){return{state:JM(n,t,r)}}))}}function xe(){return ke.apply(this,arguments)}function ke(){return ke=ko(wo().mark((function e(){var t,n=arguments;return wo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=!(n.length>0&&void 0!==n[0])||n[0],e.next=3,nL({json:u,documentState:X,indentation:t?E:void 0,readOnly:b,parser:$,onPatch:Ke});case 3:case"end":return e.stop()}}),e)}))),ke.apply(this,arguments)}function je(){return Se.apply(this,arguments)}function Se(){return Se=ko(wo().mark((function e(){var t,n=arguments;return wo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=!(n.length>0&&void 0!==n[0])||n[0],void 0!==u){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,oL({json:u,documentState:X,indentation:t?E:void 0,parser:$});case 5:case"end":return e.stop()}}),e)}))),Se.apply(this,arguments)}function Ce(){f(vI,{},To(To({},ms),{},{styleWindow:{width:"450px"}}),{onClose:function(){return ot()}})}function $e(e,t){f(tD,{text:e,onParse:function(e){return F_(e,(function(e){return L_(e,$)}))},onRepair:V_,onApply:t},To(To({},ms),{},{styleWindow:{width:"600px",height:"500px"},styleContent:{padding:0,height:"100%"}}),{onClose:function(){return ot()}})}function _e(){sL({json:u,text:l,documentState:X,keepSelection:!1,readOnly:b,onChange:T,onPatch:Ke})}function Oe(){!b&&void 0!==u&&X.selection&&qA&&!Mx(KA(X.selection))&&(o("duplicate",{selection:X.selection}),Ke(cE(u,xA(u,X.selection))))}function Me(){if(!b&&X.selection&&(gA(X.selection)||mA(X.selection))&&!Mx(KA(X.selection))){o("extract",{selection:X.selection});var e=function(e,t){if(mA(t))return[{op:"move",from:Zs(t.path),path:""}];if(!gA(t))throw new Error("Cannot create extract operations: parent must be an Object or Array");var n=Ws(e,Xw(t.focusPath));if(Ts(n))return[{op:"replace",path:"",value:xA(e,t).map((function(e){var t=Uu(mb(e));return n[t]}))}];if(Rs(n)){var r={};return xA(e,t).forEach((function(e){var t=String(mb(e));r[t]=n[t]})),[{op:"replace",path:"",value:r}]}throw new Error("Cannot extract: unsupported type of selection "+JSON.stringify(t))}(u,X.selection);Ke(e,(function(e,t){if(Qu(e)){return{state:lA(e,t,[])}}}))}}function Ae(e){dL({insertType:e,selectInside:!0,refJsonEditor:c,json:u,selection:X.selection,readOnly:b,parser:$,onPatch:Ke,onReplaceJson:Ge})}function Ee(e){pA(X.selection)&&J(NA(X.selection.path,!1)),X.selection||J(_A(u,X)),Ae(e)}function Pe(e){if(!b&&X.selection)if(FA(X.selection))try{var t=GA(X.selection),n=Ws(u,t),r=function(e,t,n){if("array"===t){if(Array.isArray(e))return e;if(Gu(e))return z_(e);if("string"==typeof e)try{var r=n.parse(e);if(Array.isArray(r))return r;if(Gu(r))return z_(r)}catch(t){return[e]}return[e]}if("object"===t){if(Array.isArray(e))return D_(e);if(Gu(e))return e;if("string"==typeof e)try{var o=n.parse(e);if(Gu(o))return o;if(Array.isArray(o))return D_(o)}catch(t){return{value:e}}return{value:e}}if("value"===t)return Qu(e)?n.stringify(e):e;throw new Error("Cannot convert ".concat(el(e,n)," to ").concat(t))}(n,e,$);if(r===n)return;var i=[{op:"replace",path:Zs(t),value:r}];o("handleConvert",{selection:X.selection,path:t,type:e,operations:i}),Ke(i,(function(e,t){return{state:X.selection?lA(e,t,KA(X.selection)):X}}))}catch(e){P(e)}else P(new Error("Cannot convert current selection to ".concat(e)))}function Te(){if(X.selection){var e=CA(u,X,!1),t=Xw(KA(X.selection));e&&!Mx(KA(e))&&Ax(t,Xw(KA(e)))?J(DA(KA(e))):J(IA(t)),o("insert before",{selection:X.selection,selectionBefore:e,parentPath:t}),sa().then((function(){return nt()}))}}function Re(){if(X.selection){var e=SA(u,X.selection);o("insert after",e),J(DA(e)),sa().then((function(){return nt()}))}}function Ne(e){return Ie.apply(this,arguments)}function Ie(){return(Ie=ko(wo().mark((function e(t){return wo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,hL({char:t,selectInside:!0,refJsonEditor:c,json:u,selection:X.selection,readOnly:b,parser:$,onPatch:Ke,onReplaceJson:Ge,onSelect:J});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function De(){if(!b&&ne.getState().canUndo){var e=ne.undo();if(e){var t={json:u,text:l};n(11,u=e.undo.patch?rc(u,e.undo.patch):e.undo.json),n(12,X=e.undo.state),n(18,l=e.undo.text),n(23,ae=e.undo.textIsRepaired),U=void 0,o("undo",{item:e,json:u,documentState:X}),Je(t,e.undo.patch&&e.redo.patch?{json:u,previousJson:t.json,redo:e.undo.patch,undo:e.redo.patch}:null),ot(),X.selection&&Ve(KA(X.selection),!1)}}}function ze(){if(!b&&ne.getState().canRedo){var e=ne.redo();if(e){var t={json:u,text:l};n(11,u=e.redo.patch?rc(u,e.redo.patch):e.redo.json),n(12,X=e.redo.state),n(18,l=e.redo.text),n(23,ae=e.redo.textIsRepaired),U=void 0,o("redo",{item:e,json:u,documentState:X}),Je(t,e.undo.patch&&e.redo.patch?{json:u,previousJson:t.json,redo:e.redo.patch,undo:e.undo.patch}:null),ot(),X.selection&&Ve(KA(X.selection),!1)}}}function Be(e){var t;b||void 0===u||(W=!0,F({id:d,json:u,rootPath:e,onSort:(t=ko(wo().mark((function t(n){var r;return wo().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=n.operations,o("onSort",e,r),Ke(r,(function(t,n){return{state:To(To({},lA(t,n,e)),{},{selection:NA(e,!1)})}}));case 3:case"end":return t.stop()}}),t)}))),function(e){return t.apply(this,arguments)}),onClose:function(){W=!1,ot()}}))}function Le(){X.selection&&Be(EA(u,X.selection))}function qe(e){if(void 0!==u){var t=e.id,n=e.onTransform,r=e.onClose,i=e.rootPath||[];W=!0,V({id:t||h,json:u,rootPath:i,onTransform:function(e){n?n({operations:e,json:u,transformedJson:rc(u,e)}):(o("onTransform",i,e),Ke(e,(function(e,t){return{state:To(To({},lA(e,t,i)),{},{selection:NA(i,!1)})}})))},onClose:function(){W=!1,ot(),r&&r()}})}}function Fe(){X.selection&&qe({rootPath:EA(u,X.selection)})}function Ve(e){return He.apply(this,arguments)}function He(){return He=ko(wo().mark((function e(t){var r,i,s,c,l,f=arguments;return wo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=!(f.length>1&&void 0!==f[1])||f[1],n(12,X=HM(u,X,t)),e.next=4,sa();case 4:if(i=We(t),o("scrollTo",{path:t,elem:i,refContents:a}),i&&a){e.next=8;break}return e.abrupt("return",Promise.resolve());case 8:if(s=a.getBoundingClientRect(),c=i.getBoundingClientRect(),r){e.next=13;break}if(!(c.bottom>s.top&&c.top<s.bottom)){e.next=13;break}return e.abrupt("return",Promise.resolve());case 13:return l=-s.height/4,e.abrupt("return",new Promise((function(e){y(i,{container:a,offset:l,duration:300,callback:function(){return e()}})})));case 15:case"end":return e.stop()}}),e)}))),He.apply(this,arguments)}function We(e){return a?a.querySelector('div[data-path="'.concat(MO(e),'"]')):null}function Ue(e){var t=We(e);if(t&&a){var n=a.getBoundingClientRect(),r=t.getBoundingClientRect(),o=Qu(Ws(u,e))?20:r.height;r.top<n.top+20?y(t,{container:a,offset:-20,duration:0}):r.top+o>n.bottom-20&&y(t,{container:a,offset:-(n.height-o-20),duration:0})}}function Je(e,t){var n;if(void 0!==e.json||void 0!==(null==e?void 0:e.text))if(void 0!==l)null===(n=T)||void 0===n||n({text:l,json:void 0},e,{contentErrors:le(),patchResult:t});else if(void 0!==u){var r;null===(r=T)||void 0===r||r({text:void 0,json:u},e,{contentErrors:le(),patchResult:t})}}function Ke(e,t){o("handlePatch",e,t);var n={json:u,text:l},r=ge(e,t);return Je(n,r),r}function Ge(e,t){var r=X,o=u,i=l,a={json:u,text:l},s=ae,c=WM(u,X,[],fA),f="function"==typeof t?t(e,c):void 0;n(11,u=f&&void 0!==f.json?f.json:e),n(12,X=f&&void 0!==f.state?f.state:c),n(18,l=void 0),n(23,ae=!1),U=void 0,pe(u),me({previousJson:o,previousState:r,previousText:i,previousTextIsRepaired:s});Je(a,null)}function Qe(e,t){o("handleChangeText");var r=X,i=u,a=l,s={json:u,text:l},c=ae;try{n(11,u=_(e)),n(12,X=WM(u,X,[],fA)),n(18,l=void 0),n(23,ae=!1),U=void 0}catch(t){try{n(11,u=_(Hu(e))),n(12,X=WM(u,X,[],fA)),n(18,l=e),n(23,ae=!0),U=void 0}catch(r){n(11,u=void 0),n(12,X=qM({json:u,expand:fA})),n(18,l=e),n(23,ae=!1),U=""!==l?W_(l,t.message||String(t)):void 0}}if("function"==typeof t){var f=t(u,X);n(11,u=f&&f.json?f.json:u),n(12,X=f&&f.state?f.state:X)}pe(u),me({previousJson:i,previousState:r,previousText:a,previousTextIsRepaired:c});Je(s,null)}function Ye(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];o("expand",{path:e,expanded:t,recursive:r}),n(12,X=t?r?WM(u,X,e,dA):function(e,t){return To(To({},e),{},{expandedMap:To(To({},e.expandedMap),{},Do({},Zs(t),!0))})}(X,e):UM(X,e)),X.selection&&!t&&function(e,t){return PA(KA(e),t)&&(KA(e).length>t.length||vA(e))}(X.selection,e)&&J(null),ot()}function Xe(e){o("openFind",{findAndReplace:e}),n(13,Z=!1),n(21,ee=!1),sa().then((function(){n(13,Z=!0),n(21,ee=e)}))}function Ze(e,t){o("handleExpandSection",e,t);var r=Zs(e);n(12,X=function(e,t,n,r){return To(To({},t),{},{visibleSectionsMap:To(To({},t.visibleSectionsMap),{},Do({},n,DM(FM(t,n).concat(r))))})}(0,X,r,t))}function et(e){o("pasted json as text",e),n(19,G=e)}function tt(e){var t=e.anchor,n=e.left,r=e.top,o=e.width,i=e.height,a=e.offsetTop,s=e.offsetLeft,c=e.showTip,l=function(e){var t=e.json,n=e.documentState,r=e.readOnly,o=e.parser,i=e.onEditKey,a=e.onEditValue,s=e.onToggleEnforceString,c=e.onCut,u=e.onCopy,l=e.onPaste,f=e.onRemove,d=e.onDuplicate,h=e.onExtract,v=e.onInsertBefore,p=e.onInsert,m=e.onConvert,g=e.onInsertAfter,y=e.onSort,b=e.onTransform,w=n.selection,x=void 0!==t,k=!!w,j=!!w&&Mx(KA(w)),S=w?Ws(t,KA(w)):void 0,C=Array.isArray(S)?"Edit array":Gu(S)?"Edit object":"Edit value",$=x&&(gA(w)||pA(w)||mA(w)),_=!r&&x&&null!=w&&AA(w)&&!j&&!Array.isArray(Ws(t,Xw(KA(w)))),O=!r&&x&&null!=w&&AA(w),M=O&&!Qu(S),A=!r&&$,E=$,P=!r&&k,T=!r&&x&&$&&!j,R=!r&&x&&null!=w&&(gA(w)||mA(w))&&!j,N=$,I=N?"Convert to:":"Insert:",D=!r&&!N&&k,z=!r&&(N?FA(w)&&!Gu(S):k),B=!r&&(N?FA(w)&&!Array.isArray(S):k),L=!r&&(N?FA(w)&&Qu(S):k),q=!(null==w||!S)&&iA(S,n.enforceStringMap,Zs(KA(w)),o);function F(e){$?"structure"!==e&&m(e):p(e)}return[{type:"row",items:[{type:"button",onClick:function(){return i()},icon:gP,text:"Edit key",title:"Edit the key (Double-click on the key)",disabled:!_},{type:"dropdown-button",main:{type:"button",onClick:function(){return a()},icon:gP,text:C,title:"Edit the value (Double-click on the value)",disabled:!O},width:"11em",items:[{type:"button",icon:gP,text:C,title:"Edit the value (Double-click on the value)",onClick:function(){return a()},disabled:!O},{type:"button",icon:q?aP:dP,text:"Enforce string",title:"Enforce keeping the value as string when it contains a numeric value",onClick:function(){return s()},disabled:!M}]}]},{type:"separator"},{type:"row",items:[{type:"dropdown-button",main:{type:"button",onClick:function(){return c(!0)},icon:rP,text:"Cut",title:"Cut selected contents, formatted with indentation (Ctrl+X)",disabled:!A},width:"10em",items:[{type:"button",icon:rP,text:"Cut formatted",title:"Cut selected contents, formatted with indentation (Ctrl+X)",onClick:function(){return c(!0)},disabled:!A},{type:"button",icon:rP,text:"Cut compacted",title:"Cut selected contents, without indentation (Ctrl+Shift+X)",onClick:function(){return c(!1)},disabled:!A}]},{type:"dropdown-button",main:{type:"button",onClick:function(){return u(!0)},icon:AP,text:"Copy",title:"Copy selected contents, formatted with indentation (Ctrl+C)",disabled:!E},width:"12em",items:[{type:"button",icon:AP,text:"Copy formatted",title:"Copy selected contents, formatted with indentation (Ctrl+C)",onClick:function(){return u(!0)},disabled:!E},{type:"button",icon:AP,text:"Copy compacted",title:"Copy selected contents, without indentation (Ctrl+Shift+C)",onClick:function(){return u(!1)},disabled:!E}]},{type:"button",onClick:function(){return l()},icon:tP,text:"Paste",title:"Paste clipboard contents (Ctrl+V)",disabled:!P}]},{type:"separator"},{type:"row",items:[{type:"column",items:[{type:"button",onClick:function(){return d()},icon:DP,text:"Duplicate",title:"Duplicate selected contents (Ctrl+D)",disabled:!T},{type:"button",onClick:function(){return h()},icon:wP,text:"Extract",title:"Extract selected contents",disabled:!R},{type:"button",onClick:function(){return y()},icon:CP,text:"Sort",title:"Sort array or object contents",disabled:r||!$},{type:"button",onClick:function(){return b()},icon:hP,text:"Transform",title:"Transform array or object contents (filter, sort, project)",disabled:r||!$},{type:"button",onClick:function(){return f()},icon:XE,text:"Remove",title:"Remove selected contents (Delete)",disabled:r||!$}]},{type:"column",items:[{type:"label",text:I},{type:"button",onClick:function(){return F("structure")},icon:N?SP:EP,text:"Structure",title:I+" structure",disabled:!D},{type:"button",onClick:function(){return F("object")},icon:N?SP:EP,text:"Object",title:I+" structure",disabled:!z},{type:"button",onClick:function(){return F("array")},icon:N?SP:EP,text:"Array",title:I+" array",disabled:!B},{type:"button",onClick:function(){return F("value")},icon:N?SP:EP,text:"Value",title:I+" value",disabled:!L}]}]},{type:"separator"},{type:"row",items:[{type:"button",onClick:function(){return v()},icon:lP,text:"Insert before",title:"Select area before current entry to insert or paste contents",disabled:r||!$||j},{type:"button",onClick:function(){return g()},icon:oP,text:"Insert after",title:"Select area after current entry to insert or paste contents",disabled:r||!$||j}]}]}({json:u,documentState:X,readOnly:b,parser:$,onEditKey:ye,onEditValue:be,onToggleEnforceString:we,onCut:xe,onCopy:je,onPaste:Ce,onRemove:_e,onDuplicate:Oe,onExtract:Me,onInsertBefore:Te,onInsert:Ee,onInsertAfter:Re,onConvert:Pe,onSort:Le,onTransform:Fe}),f=z(l);if(!1!==f){var d={left:n,top:r,offsetTop:a,offsetLeft:s,width:o,height:i,anchor:t,closeOnOuterClick:!0,onClose:function(){W=!1,ot()}};W=!0;var h=p(mq,{tip:c?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0,items:f,onRequestClose:function(){return m(h)}},d)}}function nt(e){if(!LA(X.selection)){if(e&&(e.stopPropagation(),e.preventDefault()),e&&"contextmenu"===e.type&&e.target!==s)tt({left:e.clientX,top:e.clientY,width:Os,height:_s,showTip:!1});else{var t,n=null===(t=a)||void 0===t?void 0:t.querySelector(".jse-context-menu-pointer.jse-selected");if(n)tt({anchor:n,offsetTop:2,width:Os,height:_s,showTip:!1});else{var r,o=null===(r=a)||void 0===r?void 0:r.getBoundingClientRect();o&&tt({top:o.top+2,left:o.left+2,width:Os,height:_s,showTip:!1})}}return!1}}function rt(){return(rt=ko(wo().mark((function e(){var t,r,i,s,c;return wo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o("apply pasted json",G),G){e.next=3;break}return e.abrupt("return");case 3:i=(r=G).path,s=r.contents,n(19,G=void 0),PO(c=(null===(t=a)||void 0===t?void 0:t.querySelector(".jse-editable-div"))||null)&&c.cancel(),Ke([{op:"replace",path:Zs(i),value:s}],(function(e,t){return{state:lA(e,t,i)}})),setTimeout(ot);case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ot(){o("focus"),s&&(s.focus(),s.select())}function it(e){return function(e,t,n){var r=Xw(n),o=[mb(n)],i=Ws(e,r),a=i?uA(i,t,o):void 0;return a?NA(r.concat(a),!1):DA(n)}(u,X,e)}function at(e){r&&r.onDrag(e)}function st(){r&&r.onDragEnd()}return e.$$set=function(e){"readOnly"in e&&n(0,b=e.readOnly),"externalContent"in e&&n(49,w=e.externalContent),"externalSelection"in e&&n(50,x=e.externalSelection),"mainMenuBar"in e&&n(1,k=e.mainMenuBar),"navigationBar"in e&&n(2,j=e.navigationBar),"escapeControlCharacters"in e&&n(51,S=e.escapeControlCharacters),"escapeUnicodeCharacters"in e&&n(52,C=e.escapeUnicodeCharacters),"parser"in e&&n(3,$=e.parser),"parseMemoizeOne"in e&&n(53,_=e.parseMemoizeOne),"validator"in e&&n(54,O=e.validator),"validationParser"in e&&n(55,M=e.validationParser),"pathParser"in e&&n(4,A=e.pathParser),"indentation"in e&&n(5,E=e.indentation),"onError"in e&&n(6,P=e.onError),"onChange"in e&&n(56,T=e.onChange),"onChangeMode"in e&&n(57,R=e.onChangeMode),"onSelect"in e&&n(58,N=e.onSelect),"onRenderValue"in e&&n(59,I=e.onRenderValue),"onRenderMenu"in e&&n(7,D=e.onRenderMenu),"onRenderContextMenu"in e&&n(60,z=e.onRenderContextMenu),"onClassName"in e&&n(61,B=e.onClassName),"onFocus"in e&&n(62,L=e.onFocus),"onBlur"in e&&n(63,q=e.onBlur),"onSortModal"in e&&n(64,F=e.onSortModal),"onTransformModal"in e&&n(65,V=e.onTransformModal),"onJSONEditorModal"in e&&n(66,H=e.onJSONEditorModal)},e.$$.update=function(){3145728&e.$$.dirty[1]&&n(74,K=sO({escapeControlCharacters:S,escapeUnicodeCharacters:C})),4096&e.$$.dirty[0]&&o("selection",X.selection),8192&e.$$.dirty[0]&&function(e){if(a)if(e){var t,r=null!==(t=parseInt(getComputedStyle(a).padding))&&void 0!==t?t:0;n(10,a.style.overflowAnchor="none",a),n(10,a.style.paddingTop=r+Ms+"px",a),n(10,a.scrollTop+=Ms,a),n(10,a.style.overflowAnchor="",a)}else n(10,a.style.overflowAnchor="none",a),n(10,a.style.paddingTop="",a),n(10,a.scrollTop-=Ms,a),n(10,a.style.overflowAnchor="",a)}(Z),262144&e.$$.dirty[1]&&he(w),524288&e.$$.dirty[1]&&function(e){Ax(X.selection,e)||(o("applyExternalSelection",e),(bA(e)||null===e)&&J(e))}(x),2056&e.$$.dirty[0]|25165824&e.$$.dirty[1]&&ue(u,O,$,M),16384&e.$$.dirty[0]&&n(24,oe=function(e){var t={};return e.forEach((function(e){t[Zs(e.path)]=e})),e.forEach((function(e){for(var n=e.path;n.length>0;){var r=Zs(n=Xw(n));r in t||(t[r]={isChildError:!0,path:n,message:"Contains invalid data",severity:Xa.warning})}})),t}(se)),1024&e.$$.dirty[0]&&(r=a?function(e){var t,n;function r(e){return e<20?os:e<50?is:as}function o(){if(e){var n=(t||0)*(rs/1e3);e.scrollTop+=n}}function i(e){n&&e===t||(a(),AN("startAutoScroll",e),t=e,n=setInterval(o,rs))}function a(){n&&(AN("stopAutoScroll"),clearInterval(n),n=void 0,t=void 0)}return AN("createAutoScrollHandler",e),{onDrag:function(t){if(e){var n=t.clientY,o=e.getBoundingClientRect(),s=o.top,c=o.bottom;n<s?i(-r(s-n)):n>c?i(r(n-c)):a()}},onDragEnd:function(){a()}}}(a):void 0),9&e.$$.dirty[0]|1342177280&e.$$.dirty[1]|4096&e.$$.dirty[2]&&n(15,ie={readOnly:b,parser:$,normalization:K,getJson:fe,getDocumentState:de,findElement:We,findNextInside:it,focus:ot,onPatch:Ke,onInsert:Ae,onExpand:Ye,onSelect:J,onFind:Xe,onExpandSection:Ze,onPasteJson:et,onRenderValue:I,onContextMenu:tt,onClassName:B||function(){},onDrag:at,onDragEnd:st}),32768&e.$$.dirty[0]&&o("context changed",ie)},[b,k,j,$,A,E,P,D,function(){return ae&&void 0!==u&&Ge(u),void 0!==u?{json:u}:{text:l||""}},ot,a,u,X,Z,se,ie,s,c,l,G,Q,ee,re,ae,oe,i,function(e){n(20,Q=e)},function(e){return te.apply(this,arguments)},function(){n(13,Z=!1),n(21,ee=!1),ot()},function(e){o("select validation error",e),J(NA(e.path,!1)),Ve(e.path)},je,function(e){var t;e.preventDefault();var n=null===(t=e.clipboardData)||void 0===t?void 0:t.getData("text/plain");void 0!==n&&aL({clipboardText:n,json:u,selection:X.selection,readOnly:b,parser:$,onPatch:Ke,onChangeText:Qe,openRepairModal:$e})},Ne,De,ze,function(){Be([])},function(){qe({rootPath:[]})},Ke,function(){Ye([],!0,!0)},function(){Ye([],!1,!0)},function(e){var t=TO(e),n=e.shiftKey;if(o("keydown",{combo:t,key:e.key}),"Ctrl+X"===t&&(e.preventDefault(),xe(!0)),"Ctrl+Shift+X"===t&&(e.preventDefault(),xe(!1)),"Ctrl+C"===t&&(e.preventDefault(),je(!0)),"Ctrl+Shift+C"===t&&(e.preventDefault(),je(!1)),"Ctrl+D"===t&&(e.preventDefault(),Oe()),"Delete"!==t&&"Backspace"!==t||(e.preventDefault(),_e()),"Insert"===t&&(e.preventDefault(),Ae("structure")),"Ctrl+A"===t&&(e.preventDefault(),J(NA([],!1))),"Ctrl+Q"===t&&nt(e),"ArrowUp"===t||"Shift+ArrowUp"===t){e.preventDefault();var r=X.selection?CA(u,X,n)||X.selection:_A(u,X);J(r),Ue(KA(r))}if("ArrowDown"===t||"Shift+ArrowDown"===t){e.preventDefault();var i=X.selection?function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t.selection;if(!r)return null;var o=n?KA(r):SA(e,r),i=Qu(Ws(e,o))?UM(t,o):t,a=uA(e,t,o),s=uA(e,i,o);if(n)return vA(r)?null!==a?zA(a,a):null:hA(r)?null!==s?zA(s,s):null:null!==s?zA(GA(r),s):null;if(hA(r))return null!==s?NA(s,!1):null;if(vA(r))return null!==a?NA(a,!1):null;if(mA(r))return null!==a?NA(a,!1):null;if(pA(r)){if(null===a||0===a.length)return null;var c=Ws(e,Xw(a));return Array.isArray(c)?NA(a,!1):RA(a,!1)}return gA(r)?null!==s?NA(s,!1):null!==a?NA(a,!1):null:null}(u,X,n)||X.selection:_A(u,X);J(i),Ue(KA(i))}if("ArrowLeft"===t||"Shift+ArrowLeft"===t){e.preventDefault();var a=X.selection?function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=t.selection;if(!o)return null;var i=$A(e,t,r),a=i.caret,s=i.previous;if(n)return gA(o)?null:zA(o.path,o.path);if(a&&s)return VA(s);var c=Ws(e,Xw(KA(o)));return mA(o)&&Array.isArray(c)?zA(o.path,o.path):gA(o)&&!Array.isArray(c)?RA(o.focusPath,!1):null}(u,X,n,!b)||X.selection:_A(u,X);J(a),Ue(KA(a))}if("ArrowRight"===t||"Shift+ArrowRight"===t){e.preventDefault();var s=X.selection&&void 0!==u?function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=t.selection;if(!o)return null;var i=$A(e,t,r),a=i.caret,s=i.next;return n?gA(o)?null:zA(o.path,o.path):a&&s?VA(s):gA(o)?NA(o.focusPath,!1):null}(u,X,n,!b)||X.selection:_A(u,X);J(s),Ue(KA(s))}if("Enter"===t&&X.selection){if(yA(X.selection)){var c=X.selection.focusPath,l=Ws(u,Xw(c));Array.isArray(l)&&J(NA(c,!1))}if(pA(X.selection)&&(e.preventDefault(),J(To(To({},X.selection),{},{edit:!0}))),mA(X.selection))e.preventDefault(),Qu(Ws(u,X.selection.path))?Ye(X.selection.path,!0):J(To(To({},X.selection),{},{edit:!0}))}if(1===t.replace(/^Shift\+/,"").length&&X.selection)return e.preventDefault(),void Ne(e.key);if("Enter"===t&&(hA(X.selection)||vA(X.selection)))return e.preventDefault(),void Ne("");if("Ctrl+Enter"===t&&mA(X.selection)){var f=Ws(u,X.selection.path);nl(f)&&window.open(String(f),"_blank")}"Escape"===t&&X.selection&&(e.preventDefault(),J(null)),"Ctrl+F"===t&&(e.preventDefault(),Xe(!1)),"Ctrl+H"===t&&(e.preventDefault(),Xe(!0)),"Ctrl+Z"===t&&(e.preventDefault(),De()),"Ctrl+Shift+Z"===t&&(e.preventDefault(),ze())},function(e){o("handleMouseDown",e);var t=e.target;bO(t,"BUTTON")||t.isContentEditable||(ot(),X.selection||void 0!==u||""!==l&&void 0!==l||(o("createDefaultSelection"),n(12,X=To(To({},X),{},{selection:NA([],!1)}))))},nt,function(e){tt({anchor:_O(e.target,"BUTTON"),offsetTop:0,width:Os,height:_s,showTip:!0})},function(){return rt.apply(this,arguments)},function(){o("clear pasted json"),n(19,G=void 0),ot()},function(){R(Ga.text)},function(e){J(e),ot(),Ve(KA(e))},function(e){var t=!xO(e.target,(function(e){return e===c}));t&&LA(X.selection)&&(o("click outside the editor, stop edit mode"),J((function(e){return pA(e)||mA(e)?To(To({},e),{},{edit:!1}):e})),g&&s&&(s.focus(),s.blur()),o("blur (outside editor)"),s&&s.blur())},w,x,S,C,_,O,M,T,R,N,I,z,B,L,q,F,V,H,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:dA;o("expand");var t=To(To({},X),{},{expandedMap:{},visibleSectionsMap:{}});n(12,X=WM(u,t,[],e))},le,fe,ge,qe,Ve,We,K,function(e){n(13,Z=e)},function(e){ta[e?"unshift":"push"]((function(){n(16,s=e)}))},function(){ot(),Ne("{")},function(){ot(),Ne("[")},function(){ot()},function(e){ta[e?"unshift":"push"]((function(){n(10,a=e)}))},function(e){ta[e?"unshift":"push"]((function(){n(17,c=e)}))}]}var Eq=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,Aq,Mq,Xo,{readOnly:0,externalContent:49,externalSelection:50,mainMenuBar:1,navigationBar:2,escapeControlCharacters:51,escapeUnicodeCharacters:52,parser:3,parseMemoizeOne:53,validator:54,validationParser:55,pathParser:4,indentation:5,onError:6,onChange:56,onChangeMode:57,onSelect:58,onRenderValue:59,onRenderMenu:7,onRenderContextMenu:60,onClassName:61,onFocus:62,onBlur:63,onSortModal:64,onTransformModal:65,onJSONEditorModal:66,expand:67,validate:68,getJson:69,patch:70,acceptAutoRepair:8,openTransformModal:71,scrollTo:72,findElement:73,focus:9},yq,[-1,-1,-1,-1,-1]),n}return Ao(t,Na),Io(t,[{key:"expand",get:function(){return this.$$.ctx[67]}},{key:"validate",get:function(){return this.$$.ctx[68]}},{key:"getJson",get:function(){return this.$$.ctx[69]}},{key:"patch",get:function(){return this.$$.ctx[70]}},{key:"acceptAutoRepair",get:function(){return this.$$.ctx[8]}},{key:"openTransformModal",get:function(){return this.$$.ctx[71]}},{key:"scrollTo",get:function(){return this.$$.ctx[72]}},{key:"findElement",get:function(){return this.$$.ctx[73]}},{key:"focus",get:function(){return this.$$.ctx[9]}}])}();function Pq(e){return"object"!==Vo(t=e)||null===t?e:new Proxy(e,{get:function(e,t,n){return Pq(Reflect.get(e,t,n))},set:function(){return!1},deleteProperty:function(){return!1}});var t}function Tq(e){pi(e,"svelte-1mpf6w7",'.jse-modal.svelte-1mpf6w7.svelte-1mpf6w7{flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);line-height:normal;background:var(--jse-modal-background, #f5f5f5);color:var(--jse-text-color, #4d4d4d)}.jse-modal.svelte-1mpf6w7 .svelte-select{--border:var(--jse-svelte-select-border, 1px solid #d8dbdf);--item-is-active-bg:var(--jse-item-is-active-bg, #3883fa);--border-radius:var(--jse-svelte-select-border-radius, 3px);--background:var(--jse-svelte-select-background, #fff);--padding:var(--jse-svelte-select-padding, 0 10px);--multi-select-padding:var(--jse-svelte-select-multi-select-padding, 0 10px);--font-size:var(--jse-svelte-select-font-size, var(--jse-font-size, 16px));--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px}.jse-modal.svelte-1mpf6w7 .jse-modal-contents.svelte-1mpf6w7{flex:1;display:flex;flex-direction:column;padding:20px;overflow:auto;min-width:0;min-height:0}.jse-modal.svelte-1mpf6w7 .jse-modal-contents .jse-actions.svelte-1mpf6w7{display:flex;flex-direction:row;justify-content:flex-end;padding-top:var(--jse-padding, 10px)}.jse-modal.svelte-1mpf6w7 .jse-modal-contents .jse-actions button.jse-primary.svelte-1mpf6w7{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);padding:5px;margin:0;background:var(--jse-button-primary-background, var(--jse-theme-color, #3883fa));color:var(--jse-button-primary-color, #fff);padding:var(--jse-padding, 10px) calc(2 * var(--jse-padding, 10px));border-radius:3px}.jse-modal.svelte-1mpf6w7 .jse-modal-contents .jse-actions button.jse-primary.svelte-1mpf6w7:hover{background:var(--jse-button-primary-background-highlight, var(--jse-theme-color-highlight, #5f9dff))}.jse-modal.svelte-1mpf6w7 .jse-modal-contents .jse-actions button.jse-primary.svelte-1mpf6w7:disabled{background:var(--jse-button-primary-background-disabled, #9d9d9d)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-overlay-background, rgba(0, 0, 0, 0.3))}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0;overflow:auto}.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;max-height:500px;display:flex}.bg.jse-modal-bg .jse-modal-window:has(div.fullscreen){margin:var(--jse-padding, 10px);padding:0;width:calc(100vw - 2 * var(--jse-padding, 10px));height:calc(100vh - 2 * var(--jse-padding, 10px));max-width:none;max-height:none}.bg.jse-modal-bg .jse-modal-container{flex:1;display:flex;flex-direction:column;padding:0;max-height:none}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-modal-contents.svelte-1mpf6w7{color:inherit;min-height:0;padding:0}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-modal-contents .jse-main-contents.svelte-1mpf6w7{flex:1;display:flex;gap:calc(2 * var(--jse-padding, 10px));min-height:0;box-sizing:border-box;padding:0 calc(2 * var(--jse-padding, 10px)) var(--jse-padding, 10px)}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-modal-contents .jse-main-contents .jse-query-contents.svelte-1mpf6w7{flex:1;display:flex;flex-direction:column}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-1mpf6w7 p{margin:var(--jse-padding, 10px) 0}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-1mpf6w7 p:first-child{margin-top:0}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-1mpf6w7 p:last-child{margin-bottom:0}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-1mpf6w7 code{background:var(--jse-modal-code-background, rgba(0, 0, 0, 0.05));font-family:var(--jse-font-family-mono, consolas, menlo, monaco, "Ubuntu Mono", "source-code-pro", monospace);font-size:var(--jse-font-size-mono, 14px)}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-modal-contents .jse-main-contents .jse-query-contents textarea.jse-query.svelte-1mpf6w7{flex:1;outline:none;resize:vertical}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-modal-contents .jse-main-contents .jse-data-contents.svelte-1mpf6w7{flex:1;display:flex;flex-direction:column;gap:calc(2 * var(--jse-padding, 10px))}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-modal-contents .jse-main-contents .jse-data-contents .jse-original-data.svelte-1mpf6w7{flex:1;display:flex;flex-direction:column;min-height:0;box-sizing:border-box}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-modal-contents .jse-main-contents .jse-data-contents .jse-original-data.jse-hide.svelte-1mpf6w7{flex:none}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-modal-contents .jse-main-contents .jse-data-contents .jse-preview-data.svelte-1mpf6w7{flex:1;display:flex;flex-direction:column;min-height:0;box-sizing:border-box}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-modal-contents .jse-main-contents .jse-data-contents.jse-hide-original-data.svelte-1mpf6w7{flex-direction:column;gap:0;margin-bottom:0}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-modal-contents .jse-actions.svelte-1mpf6w7{padding:var(--jse-padding, 10px) calc(2 * var(--jse-padding, 10px)) calc(2 * var(--jse-padding, 10px))}@media screen and (max-width: 1200px){.jse-modal.jse-transform.svelte-1mpf6w7 .jse-modal-contents .jse-main-contents.svelte-1mpf6w7{flex-direction:column;overflow:auto}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-modal-contents .jse-main-contents .jse-query-contents textarea.jse-query.svelte-1mpf6w7{min-height:150px;flex:none}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-modal-contents .jse-main-contents .jse-data-contents.svelte-1mpf6w7 .jse-tree-mode{height:300px;flex:none}}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-label.svelte-1mpf6w7{font-weight:bold;display:block;box-sizing:border-box}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-label .jse-label-inner.svelte-1mpf6w7{margin-top:calc(2 * var(--jse-padding, 10px));margin-bottom:calc(0.5 * var(--jse-padding, 10px));box-sizing:border-box}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-label .jse-label-inner button.svelte-1mpf6w7{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);padding:5px;margin:0;font-weight:bold;padding:0}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-tree-mode{flex:1;background:var(--jse-input-background-readonly, transparent);box-shadow:none;box-sizing:border-box;--jse-main-border:var(--jse-input-border, 1px solid #d8dbdf)}.jse-modal.jse-transform.svelte-1mpf6w7 input.svelte-1mpf6w7,.jse-modal.jse-transform.svelte-1mpf6w7 textarea.svelte-1mpf6w7{border:var(--jse-input-border, 1px solid #d8dbdf);outline:none;box-sizing:border-box;padding:calc(0.5 * var(--jse-padding, 10px));font-family:var(--jse-font-family-mono, consolas, menlo, monaco, "Ubuntu Mono", "source-code-pro", monospace);font-size:var(--jse-font-size-mono, 14px);color:inherit;background:var(--jse-input-background, var(--jse-background-color, #fff))}.jse-modal.jse-transform.svelte-1mpf6w7 input.svelte-1mpf6w7:focus,.jse-modal.jse-transform.svelte-1mpf6w7 textarea.svelte-1mpf6w7:focus{border:var(--jse-input-border-focus, 1px solid var(--jse-input-border-focus, var(--jse-theme-color, #3883fa)))}.jse-modal.jse-transform.svelte-1mpf6w7 input.svelte-1mpf6w7:read-only,.jse-modal.jse-transform.svelte-1mpf6w7 textarea.svelte-1mpf6w7:read-only{background:var(--jse-input-background-readonly, transparent)}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-preview.jse-error.svelte-1mpf6w7{flex:1;background:var(--jse-input-background-readonly, transparent);border:var(--jse-input-border, 1px solid #d8dbdf);color:var(--jse-error-color, #ee5341);padding:calc(0.5 * var(--jse-padding, 10px))}.jse-modal.jse-transform.svelte-1mpf6w7 a{color:var(--jse-a-color, #156fc5)}.jse-modal.jse-transform.svelte-1mpf6w7 a:hover{color:var(--jse-a-color-highlight, #0f508d)}')}function Rq(e){var t,n,r,o,i,a=[Iq,Nq],s=[];function c(e,n){return 16384&n[0]&&(t=null),null==t&&(t=!!Array.isArray(e[14])),t?0:1}return n=c(e,[-1,-1]),r=s[n]=a[n](e),{c:function(){r.c(),o=$i()},m:function(e,t){s[n].m(e,t),bi(e,o,t),i=!0},p:function(e,t){var i=n;(n=c(e,t))===i?s[n].p(e,t):(ya(),xa(s[i],1,1,(function(){s[i]=null})),ba(),(r=s[n])?r.p(e,t):(r=s[n]=a[n](e)).c(),wa(r,1),r.m(o.parentNode,o))},i:function(e){i||(wa(r),i=!0)},o:function(e){xa(r),i=!1},d:function(e){e&&wi(o),s[n].d(e)}}}function Nq(e){var t;return{c:function(){t=Si("(Only available for arrays, not for objects)")},m:function(e,n){bi(e,t,n)},p:Ho,i:Ho,o:Ho,d:function(e){e&&wi(t)}}}function Iq(e){var t,n;return t=new uN({props:{queryOptions:e[15],json:e[14],onChange:e[24]}}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},p:function(e,n){var r={};32768&n[0]&&(r.queryOptions=e[15]),16384&n[0]&&(r.json=e[14]),t.$set(r)},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}function Dq(e){var t,n;return t=new Eq({props:{externalContent:e[17],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:e[11],onRenderContextMenu:e[12],onError:console.error,onChange:Mf,onChangeMode:Mf,onSelect:Mf,onFocus:Mf,onBlur:Mf,onSortModal:Mf,onTransformModal:Mf,onJSONEditorModal:Mf,onClassName:e[13],validator:null,validationParser:e[7],pathParser:e[8]}}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},p:function(e,n){var r={};131072&n[0]&&(r.externalContent=e[17]),4&n[0]&&(r.indentation=e[2]),8&n[0]&&(r.escapeControlCharacters=e[3]),16&n[0]&&(r.escapeUnicodeCharacters=e[4]),32&n[0]&&(r.parser=e[5]),64&n[0]&&(r.parseMemoizeOne=e[6]),1024&n[0]&&(r.onRenderValue=e[10]),2048&n[0]&&(r.onRenderMenu=e[11]),4096&n[0]&&(r.onRenderContextMenu=e[12]),8192&n[0]&&(r.onClassName=e[13]),128&n[0]&&(r.validationParser=e[7]),256&n[0]&&(r.pathParser=e[8]),t.$set(r)},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}function zq(e){var t,n;return{c:function(){t=ki("div"),n=Si(e[21]),Ai(t,"class","jse-preview jse-error svelte-1mpf6w7")},m:function(e,r){bi(e,t,r),vi(t,n)},p:function(e,t){2097152&t[0]&&Ri(n,e[21])},i:Ho,o:Ho,d:function(e){e&&wi(t)}}}function Bq(e){var t,n;return t=new Eq({props:{externalContent:e[22],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:e[11],onRenderContextMenu:e[12],onError:console.error,onChange:Mf,onChangeMode:Mf,onSelect:Mf,onFocus:Mf,onBlur:Mf,onSortModal:Mf,onTransformModal:Mf,onJSONEditorModal:Mf,onClassName:e[13],validator:null,validationParser:e[7],pathParser:e[8]}}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},p:function(e,n){var r={};4194304&n[0]&&(r.externalContent=e[22]),4&n[0]&&(r.indentation=e[2]),8&n[0]&&(r.escapeControlCharacters=e[3]),16&n[0]&&(r.escapeUnicodeCharacters=e[4]),32&n[0]&&(r.parser=e[5]),64&n[0]&&(r.parseMemoizeOne=e[6]),1024&n[0]&&(r.onRenderValue=e[10]),2048&n[0]&&(r.onRenderMenu=e[11]),4096&n[0]&&(r.onRenderContextMenu=e[12]),8192&n[0]&&(r.onClassName=e[13]),128&n[0]&&(r.validationParser=e[7]),256&n[0]&&(r.pathParser=e[8]),t.$set(r)},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}function Lq(e){var t,n,r,o,i,a,s,c,u,l,f,d,h,v,p,m,g,y,b,w,x,k,j,S,C,$,_,O,M,A,E,P,T,R,N,I,D,z,B,L,q,F,V,H,W,U,J,K,G=e[23](e[0]).description+"";function Q(t){e[37](t)}var Y={queryLanguages:e[9],queryLanguageId:e[0],onChangeQueryLanguage:e[29]};void 0!==e[18]&&(Y.fullscreen=e[18]),t=new MN({props:Y}),ta.push((function(){return Aa(t,"fullscreen",Q)})),b=new SM({props:{data:e[19]?kP:eP}});var X=e[19]&&Rq(e);P=new SM({props:{data:e[20]?kP:eP}});var Z=e[20]&&Dq(e),ee=[Bq,zq],te=[];function ne(e,t){return e[21]?1:0}return B=ne(e),L=te[B]=ee[B](e),{c:function(){Ea(t.$$.fragment),r=Ci(),o=ki("div"),i=ki("div"),a=ki("div"),(s=ki("div")).innerHTML='<div class="jse-label-inner svelte-1mpf6w7">Language</div>',c=Ci(),u=ki("div"),l=Ci(),(f=ki("div")).innerHTML='<div class="jse-label-inner svelte-1mpf6w7">Path</div>',d=Ci(),h=ki("input"),p=Ci(),m=ki("div"),g=ki("div"),y=ki("button"),Ea(b.$$.fragment),w=Si("\n                Wizard"),x=Ci(),X&&X.c(),k=Ci(),(j=ki("div")).innerHTML='<div class="jse-label-inner svelte-1mpf6w7">Query</div>',S=Ci(),C=ki("textarea"),$=Ci(),_=ki("div"),O=ki("div"),M=ki("div"),A=ki("div"),E=ki("button"),Ea(P.$$.fragment),T=Si("\n                  Original"),R=Ci(),Z&&Z.c(),N=Ci(),I=ki("div"),(D=ki("div")).innerHTML='<div class="jse-label-inner svelte-1mpf6w7">Preview</div>',z=Ci(),L.c(),q=Ci(),F=ki("div"),V=ki("button"),H=Si("Transform"),Ai(s,"class","jse-label svelte-1mpf6w7"),Ai(u,"class","jse-description svelte-1mpf6w7"),Ai(f,"class","jse-label svelte-1mpf6w7"),Ai(h,"class","jse-path svelte-1mpf6w7"),Ai(h,"type","text"),h.readOnly=!0,Ai(h,"title","Selected path"),h.value=v=Mx(e[1])?"(document root)":KO(e[1]),Ai(y,"type","button"),Ai(y,"class","svelte-1mpf6w7"),Ai(g,"class","jse-label-inner svelte-1mpf6w7"),Ai(m,"class","jse-label svelte-1mpf6w7"),Ai(j,"class","jse-label svelte-1mpf6w7"),Ai(C,"class","jse-query svelte-1mpf6w7"),Ai(C,"spellcheck","false"),C.value=e[16],Ai(a,"class","jse-query-contents svelte-1mpf6w7"),Ai(E,"type","button"),Ai(E,"class","svelte-1mpf6w7"),Ai(A,"class","jse-label-inner svelte-1mpf6w7"),Ai(M,"class","jse-label svelte-1mpf6w7"),Ai(O,"class","jse-original-data svelte-1mpf6w7"),zi(O,"jse-hide",!e[20]),Ai(D,"class","jse-label svelte-1mpf6w7"),Ai(I,"class","jse-preview-data svelte-1mpf6w7"),Ai(_,"class","jse-data-contents svelte-1mpf6w7"),zi(_,"jse-hide-original-data",!e[20]),Ai(i,"class","jse-main-contents svelte-1mpf6w7"),Ai(V,"type","button"),Ai(V,"class","jse-primary svelte-1mpf6w7"),V.disabled=W=!!e[21],Ai(F,"class","jse-actions svelte-1mpf6w7"),Ai(o,"class","jse-modal-contents svelte-1mpf6w7")},m:function(n,v){Pa(t,n,v),bi(n,r,v),bi(n,o,v),vi(o,i),vi(i,a),vi(a,s),vi(a,c),vi(a,u),u.innerHTML=G,vi(a,l),vi(a,f),vi(a,d),vi(a,h),vi(a,p),vi(a,m),vi(m,g),vi(g,y),Pa(b,y,null),vi(y,w),vi(a,x),X&&X.m(a,null),vi(a,k),vi(a,j),vi(a,S),vi(a,C),vi(i,$),vi(i,_),vi(_,O),vi(O,M),vi(M,A),vi(A,E),Pa(P,E,null),vi(E,T),vi(O,R),Z&&Z.m(O,null),vi(_,N),vi(_,I),vi(I,D),vi(I,z),te[B].m(I,null),vi(o,q),vi(o,F),vi(F,V),vi(V,H),U=!0,J||(K=[_i(y,"click",e[27]),_i(C,"input",e[25]),_i(E,"click",e[28]),_i(V,"click",e[26]),si(Fq.call(null,V))],J=!0)},p:function(e,r){var o={};512&r[0]&&(o.queryLanguages=e[9]),1&r[0]&&(o.queryLanguageId=e[0]),!n&&262144&r[0]&&(n=!0,o.fullscreen=e[18],ua((function(){return n=!1}))),t.$set(o),(!U||1&r[0])&&G!==(G=e[23](e[0]).description+"")&&(u.innerHTML=G),(!U||2&r[0]&&v!==(v=Mx(e[1])?"(document root)":KO(e[1]))&&h.value!==v)&&(h.value=v);var i={};524288&r[0]&&(i.data=e[19]?kP:eP),b.$set(i),e[19]?X?(X.p(e,r),524288&r[0]&&wa(X,1)):((X=Rq(e)).c(),wa(X,1),X.m(a,k)):X&&(ya(),xa(X,1,1,(function(){X=null})),ba()),(!U||65536&r[0])&&(C.value=e[16]);var s={};1048576&r[0]&&(s.data=e[20]?kP:eP),P.$set(s),e[20]?Z?(Z.p(e,r),1048576&r[0]&&wa(Z,1)):((Z=Dq(e)).c(),wa(Z,1),Z.m(O,null)):Z&&(ya(),xa(Z,1,1,(function(){Z=null})),ba()),(!U||1048576&r[0])&&zi(O,"jse-hide",!e[20]);var c=B;(B=ne(e))===c?te[B].p(e,r):(ya(),xa(te[c],1,1,(function(){te[c]=null})),ba(),(L=te[B])?L.p(e,r):(L=te[B]=ee[B](e)).c(),wa(L,1),L.m(I,null)),(!U||1048576&r[0])&&zi(_,"jse-hide-original-data",!e[20]),(!U||2097152&r[0]&&W!==(W=!!e[21]))&&(V.disabled=W)},i:function(e){U||(wa(t.$$.fragment,e),wa(b.$$.fragment,e),wa(X),wa(P.$$.fragment,e),wa(Z),wa(L),U=!0)},o:function(e){xa(t.$$.fragment,e),xa(b.$$.fragment,e),xa(X),xa(P.$$.fragment,e),xa(Z),xa(L),U=!1},d:function(e){e&&(wi(r),wi(o)),Ta(t,e),Ta(b),X&&X.d(),Ta(P),Z&&Z.d(),te[B].d(),J=!1,Go(K)}}}function qq(e){var t,n,r,o,i;return n=new JO({props:{$$slots:{default:[Lq]},$$scope:{ctx:e}}}),{c:function(){t=ki("div"),Ea(n.$$.fragment),Ai(t,"class","jse-modal jse-transform svelte-1mpf6w7"),zi(t,"fullscreen",e[18])},m:function(a,s){bi(a,t,s),Pa(n,t,null),r=!0,o||(i=si(lI.call(null,t,e[30])),o=!0)},p:function(e,o){var i={};8388607&o[0]|16384&o[1]&&(i.$$scope={dirty:o,ctx:e}),n.$set(i),(!r||262144&o[0])&&zi(t,"fullscreen",e[18])},i:function(e){r||(wa(n.$$.fragment,e),r=!0)},o:function(e){xa(n.$$.fragment,e),r=!1},d:function(e){e&&wi(t),Ta(n),o=!1,i()}}}function Fq(e){e.focus()}function Vq(e,t,n){var r,o,i=Ia("jsoneditor:TransformModal"),a=t.id,s=void 0===a?"transform-modal-"+Ps():a,c=t.json,u=t.rootPath,l=void 0===u?[]:u,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.onRenderMenu,j=t.onRenderContextMenu,S=t.onClassName,C=t.onTransform,$=Xi("simple-modal").close,_=!1,O="".concat(s,":").concat(Zs(l)),M=LP[O]||{},A=!1!==qP.showWizard,E=!1!==qP.showOriginal,P=M.queryOptions||{},T=b===M.queryLanguageId&&M.query?M.query:D(b).createQuery(r,M.queryOptions||{}),R=M.isManual||!1,N=void 0,I={text:""};function D(e){return y.find((function(t){return t.id===e}))||y[0]}var z=Wy((function(e,t){if(void 0===e)return n(22,I={text:""}),void n(21,N="Error: No JSON");try{i("previewTransform",{query:t});var r=D(b).executeQuery(e,t,v);n(22,I={json:r}),n(21,N=void 0)}catch(e){n(22,I={text:""}),n(21,N=String(e))}}),300);return e.$$set=function(e){"id"in e&&n(31,s=e.id),"json"in e&&n(32,c=e.json),"rootPath"in e&&n(1,l=e.rootPath),"indentation"in e&&n(2,f=e.indentation),"escapeControlCharacters"in e&&n(3,d=e.escapeControlCharacters),"escapeUnicodeCharacters"in e&&n(4,h=e.escapeUnicodeCharacters),"parser"in e&&n(5,v=e.parser),"parseMemoizeOne"in e&&n(6,p=e.parseMemoizeOne),"validationParser"in e&&n(7,m=e.validationParser),"pathParser"in e&&n(8,g=e.pathParser),"queryLanguages"in e&&n(9,y=e.queryLanguages),"queryLanguageId"in e&&n(0,b=e.queryLanguageId),"onChangeQueryLanguage"in e&&n(33,w=e.onChangeQueryLanguage),"onRenderValue"in e&&n(10,x=e.onRenderValue),"onRenderMenu"in e&&n(11,k=e.onRenderMenu),"onRenderContextMenu"in e&&n(12,j=e.onRenderContextMenu),"onClassName"in e&&n(13,S=e.onClassName),"onTransform"in e&&n(34,C=e.onTransform)},e.$$.update=function(){2&e.$$.dirty[0]|2&e.$$.dirty[1]&&n(14,r=Pq(Ws(c,l))),16384&e.$$.dirty[0]&&n(17,o=r?{json:r}:{text:""}),81920&e.$$.dirty[0]&&z(r,T),98305&e.$$.dirty[0]|48&e.$$.dirty[1]&&(n(35,LP[O]={queryOptions:P,query:T,queryLanguageId:b,isManual:R},LP),i("store state in memory",O,LP[O]))},[b,l,f,d,h,v,p,m,g,y,x,k,j,S,r,P,T,o,_,A,E,N,I,D,function(e){n(15,P=e),n(16,T=D(b).createQuery(r,e)),n(36,R=!1),i("updateQueryByWizard",{queryOptions:P,query:T,isManual:R})},function(e){n(16,T=e.target.value),n(36,R=!0),i("handleChangeQuery",{query:T,isManual:R})},function(){if(void 0===r)return n(22,I={text:""}),void n(21,N="Error: No JSON");try{i("handleTransform",{query:T});var e=D(b).executeQuery(r,T,v);C([{op:"replace",path:Zs(l),value:e}]),$()}catch(e){console.error(e),n(22,I={text:""}),n(21,N=String(e))}},function(){n(19,A=!A),qP.showWizard=A},function(){n(20,E=!E),qP.showOriginal=E},function(e){i("handleChangeQueryLanguage",e),n(0,b=e),w(e);var t=D(b);n(16,T=t.createQuery(r,P)),n(36,R=!1)},function(){_?n(18,_=!_):$()},s,c,w,C,LP,R,function(e){n(18,_=e)}]}var Hq=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,Vq,qq,Xo,{id:31,json:32,rootPath:1,indentation:2,escapeControlCharacters:3,escapeUnicodeCharacters:4,parser:5,parseMemoizeOne:6,validationParser:7,pathParser:8,queryLanguages:9,queryLanguageId:0,onChangeQueryLanguage:33,onRenderValue:10,onRenderMenu:11,onRenderContextMenu:12,onClassName:13,onTransform:34},Tq,[-1,-1]),n}return Ao(t,Na),Io(t)}(),Wq={};function Uq(e){pi(e,"svelte-jdii8g",'.jse-modal.svelte-jdii8g.svelte-jdii8g{flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);line-height:normal;background:var(--jse-modal-background, #f5f5f5);color:var(--jse-text-color, #4d4d4d)}.jse-modal.svelte-jdii8g .svelte-select{--border:var(--jse-svelte-select-border, 1px solid #d8dbdf);--item-is-active-bg:var(--jse-item-is-active-bg, #3883fa);--border-radius:var(--jse-svelte-select-border-radius, 3px);--background:var(--jse-svelte-select-background, #fff);--padding:var(--jse-svelte-select-padding, 0 10px);--multi-select-padding:var(--jse-svelte-select-multi-select-padding, 0 10px);--font-size:var(--jse-svelte-select-font-size, var(--jse-font-size, 16px));--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px}.jse-modal.svelte-jdii8g .jse-modal-contents.svelte-jdii8g{flex:1;display:flex;flex-direction:column;padding:20px;overflow:auto;min-width:0;min-height:0}.jse-modal.svelte-jdii8g .jse-modal-contents .jse-actions.svelte-jdii8g{display:flex;flex-direction:row;justify-content:flex-end;padding-top:var(--jse-padding, 10px)}.jse-modal.svelte-jdii8g .jse-modal-contents .jse-actions button.jse-primary.svelte-jdii8g{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);padding:5px;margin:0;background:var(--jse-button-primary-background, var(--jse-theme-color, #3883fa));color:var(--jse-button-primary-color, #fff);padding:var(--jse-padding, 10px) calc(2 * var(--jse-padding, 10px));border-radius:3px}.jse-modal.svelte-jdii8g .jse-modal-contents .jse-actions button.jse-primary.svelte-jdii8g:hover{background:var(--jse-button-primary-background-highlight, var(--jse-theme-color-highlight, #5f9dff))}.jse-modal.svelte-jdii8g .jse-modal-contents .jse-actions button.jse-primary.svelte-jdii8g:disabled{background:var(--jse-button-primary-background-disabled, #9d9d9d)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-overlay-background, rgba(0, 0, 0, 0.3))}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0;overflow:auto}.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;max-height:500px;display:flex}.bg.jse-modal-bg .jse-modal-window:has(div.fullscreen){margin:var(--jse-padding, 10px);padding:0;width:calc(100vw - 2 * var(--jse-padding, 10px));height:calc(100vh - 2 * var(--jse-padding, 10px));max-width:none;max-height:none}.bg.jse-modal-bg .jse-modal-container{flex:1;display:flex;flex-direction:column;padding:0;max-height:none}.jse-modal.jse-sort.svelte-jdii8g table.svelte-jdii8g{width:100%;border-collapse:collapse;border-spacing:0}.jse-modal.jse-sort.svelte-jdii8g table th.svelte-jdii8g,.jse-modal.jse-sort.svelte-jdii8g table td.svelte-jdii8g{text-align:left;vertical-align:middle;font-weight:normal;padding-bottom:var(--jse-padding, 10px)}.jse-modal.jse-sort.svelte-jdii8g table th input.jse-path.svelte-jdii8g,.jse-modal.jse-sort.svelte-jdii8g table td input.jse-path.svelte-jdii8g{width:100%;box-sizing:border-box;padding:6px 16px;border:var(--jse-input-border, 1px solid #d8dbdf);border-radius:var(--jse-input-radius, 3px);font-family:inherit;font-size:inherit;background:inherit;color:inherit;outline:none}.jse-modal.jse-sort.svelte-jdii8g table th input.jse-path.svelte-jdii8g:read-only,.jse-modal.jse-sort.svelte-jdii8g table td input.jse-path.svelte-jdii8g:read-only{background:var(--jse-input-background-readonly, transparent)}.jse-modal.jse-sort.svelte-jdii8g table th.svelte-jdii8g .svelte-select input,.jse-modal.jse-sort.svelte-jdii8g table td.svelte-jdii8g .svelte-select input{box-sizing:border-box}.jse-modal.jse-sort.svelte-jdii8g .jse-space.svelte-jdii8g{height:200px}.jse-modal.jse-sort.svelte-jdii8g .jse-space .jse-error.svelte-jdii8g{color:var(--jse-error-color, #ee5341)}')}function Jq(e){var t,n,r,o,i,a,s;function c(t){e[14](t)}var u={showChevron:!0,items:e[5]};return void 0!==e[1]&&(u.value=e[1]),i=new iN({props:u}),ta.push((function(){return Aa(i,"value",c)})),{c:function(){t=ki("tr"),(n=ki("th")).textContent="Property",r=Ci(),o=ki("td"),Ea(i.$$.fragment),Ai(n,"class","svelte-jdii8g"),Ai(o,"class","svelte-jdii8g")},m:function(e,a){bi(e,t,a),vi(t,n),vi(t,r),vi(t,o),Pa(i,o,null),s=!0},p:function(e,t){var n={};32&t&&(n.items=e[5]),!a&&2&t&&(a=!0,n.value=e[1],ua((function(){return a=!1}))),i.$set(n)},i:function(e){s||(wa(i.$$.fragment,e),s=!0)},o:function(e){xa(i.$$.fragment,e),s=!1},d:function(e){e&&wi(t),Ta(i)}}}function Kq(e){var t,n;return{c:function(){t=ki("div"),n=Si(e[4]),Ai(t,"class","jse-error svelte-jdii8g")},m:function(e,r){bi(e,t,r),vi(t,n)},p:function(e,t){16&t&&Ri(n,e[4])},d:function(e){e&&wi(t)}}}function Gq(e){var t,n,r,o,i,a,s,c,u,l,f,d,h,v,p,m,g,y,b,w,x,k,j,S,C,$,_,O,M,A,E,P,T;r=new SN({props:{title:e[3]?"Sort array items":"Sort object keys"}});var R=e[3]&&(e[5]&&(null===(t=e[5])||void 0===t?void 0:t.length)>1||void 0===e[1])&&Jq(e);function N(t){e[15](t)}var I={showChevron:!0,clearable:!1,items:e[7]};void 0!==e[2]&&(I.value=e[2]),k=new iN({props:I}),ta.push((function(){return Aa(k,"value",N)}));var D=e[4]&&Kq(e);return{c:function(){var t;n=ki("div"),Ea(r.$$.fragment),o=Ci(),i=ki("div"),a=ki("table"),(s=ki("colgroup")).innerHTML='<col width="25%"/> <col width="75%"/>',c=Ci(),u=ki("tbody"),l=ki("tr"),(f=ki("th")).textContent="Path",d=Ci(),h=ki("td"),v=ki("input"),m=Ci(),R&&R.c(),g=Ci(),y=ki("tr"),(b=ki("th")).textContent="Direction",w=Ci(),x=ki("td"),Ea(k.$$.fragment),S=Ci(),C=ki("div"),D&&D.c(),$=Ci(),_=ki("div"),O=ki("button"),M=Si("Sort"),Ai(f,"class","svelte-jdii8g"),Ai(v,"class","jse-path svelte-jdii8g"),Ai(v,"type","text"),v.readOnly=!0,Ai(v,"title","Selected path"),v.value=p=Mx(e[0])?"(document root)":KO(e[0]),Ai(h,"class","svelte-jdii8g"),Ai(b,"class","svelte-jdii8g"),Ai(x,"class","svelte-jdii8g"),Ai(a,"class","svelte-jdii8g"),Ai(C,"class","jse-space svelte-jdii8g"),Ai(O,"type","button"),Ai(O,"class","jse-primary svelte-jdii8g"),O.disabled=A=!!(e[3]&&e[5]&&(null===(t=e[5])||void 0===t?void 0:t.length)>1)&&!e[1],Ai(_,"class","jse-actions svelte-jdii8g"),Ai(i,"class","jse-modal-contents svelte-jdii8g"),Ai(n,"class","jse-modal jse-sort svelte-jdii8g")},m:function(t,p){bi(t,n,p),Pa(r,n,null),vi(n,o),vi(n,i),vi(i,a),vi(a,s),vi(a,c),vi(a,u),vi(u,l),vi(l,f),vi(l,d),vi(l,h),vi(h,v),vi(u,m),R&&R.m(u,null),vi(u,g),vi(u,y),vi(y,b),vi(y,w),vi(y,x),Pa(k,x,null),vi(i,S),vi(i,C),D&&D.m(C,null),vi(i,$),vi(i,_),vi(_,O),vi(O,M),E=!0,P||(T=[_i(O,"click",e[8]),si(Qq.call(null,O)),si(lI.call(null,n,e[6]))],P=!0)},p:function(e,t){var n,o,i=jo(t,1)[0],a={};8&i&&(a.title=e[3]?"Sort array items":"Sort object keys"),r.$set(a),(!E||1&i&&p!==(p=Mx(e[0])?"(document root)":KO(e[0]))&&v.value!==p)&&(v.value=p),e[3]&&(e[5]&&(null===(n=e[5])||void 0===n?void 0:n.length)>1||void 0===e[1])?R?(R.p(e,i),42&i&&wa(R,1)):((R=Jq(e)).c(),wa(R,1),R.m(u,g)):R&&(ya(),xa(R,1,1,(function(){R=null})),ba());var s={};!j&&4&i&&(j=!0,s.value=e[2],ua((function(){return j=!1}))),k.$set(s),e[4]?D?D.p(e,i):((D=Kq(e)).c(),D.m(C,null)):D&&(D.d(1),D=null),(!E||42&i&&A!==(A=!!(e[3]&&e[5]&&(null===(o=e[5])||void 0===o?void 0:o.length)>1)&&!e[1]))&&(O.disabled=A)},i:function(e){E||(wa(r.$$.fragment,e),wa(R),wa(k.$$.fragment,e),E=!0)},o:function(e){xa(r.$$.fragment,e),xa(R),xa(k.$$.fragment,e),E=!1},d:function(e){e&&wi(n),Ta(r),R&&R.d(),Ta(k),D&&D.d(),P=!1,Go(T)}}}function Qq(e){e.focus()}function Yq(e,t,n){var r,o,i,a,s,c=Ia("jsoneditor:SortModal"),u=t.id,l=t.json,f=t.rootPath,d=t.onSort,h=Xi("simple-modal").close,v="".concat(u,":").concat(Zs(f)),p=Ws(l,f),m={value:1,label:"ascending"},g=[m,{value:-1,label:"descending"}],y=null===(r=Wq[v])||void 0===r?void 0:r.selectedProperty,b=(null===(o=Wq[v])||void 0===o?void 0:o.selectedDirection)||m,w=void 0;return e.$$set=function(e){"id"in e&&n(9,u=e.id),"json"in e&&n(10,l=e.json),"rootPath"in e&&n(0,f=e.rootPath),"onSort"in e&&n(11,d=e.onSort)},e.$$.update=function(){8&e.$$.dirty&&n(13,a=i&&void 0!==p?R_(p):void 0),8192&e.$$.dirty&&n(5,s=a?a.map(QO):void 0),4102&e.$$.dirty&&(n(12,Wq[v]={selectedProperty:y,selectedDirection:b},Wq),c("store state in memory",v,Wq[v]))},n(3,i=Array.isArray(p)),[f,y,b,i,w,s,h,g,function(){try{var e,t,r;n(4,w=void 0);var o=(null===(e=y)||void 0===e?void 0:e.value)||(null===(t=s)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.value)||[],i=null===(r=b)||void 0===r?void 0:r.value,a=Zz(l,f,o,i);d({operations:a,rootPath:f,itemPath:o,direction:i}),h()}catch(e){n(4,w=String(e))}},u,l,d,Wq,a,function(e){n(1,y=e)},function(e){n(2,b=e)}]}var Xq=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,Yq,Gq,Xo,{id:9,json:10,rootPath:0,onSort:11},Uq),n}return Ao(t,Na),Io(t)}();function Zq(){}function eF(e){var t=arguments.length>1&&void 0!==arguments[1]?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 tF(e){var t,n;return t=new HI({props:{items:e[0]}}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},p:function(e,n){var r={};1&jo(n,1)[0]&&(r.items=e[0]),t.$set(r)},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}function nF(e,t,n){var r,o,i=t.readOnly,a=void 0!==i&&i,s=t.onFormat,c=t.onCompact,u=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:OP,title:"Search (Ctrl+F)",className:"jse-search",onClick:f};return e.$$set=function(e){"readOnly"in e&&n(1,a=e.readOnly),"onFormat"in e&&n(2,s=e.onFormat),"onCompact"in e&&n(3,c=e.onCompact),"onSort"in e&&n(4,u=e.onSort),"onTransform"in e&&n(5,l=e.onTransform),"onToggleSearch"in e&&n(6,f=e.onToggleSearch),"onUndo"in e&&n(7,d=e.onUndo),"onRedo"in e&&n(8,h=e.onRedo),"canUndo"in e&&n(9,v=e.canUndo),"canRedo"in e&&n(10,p=e.canRedo),"canFormat"in e&&n(11,m=e.canFormat),"canCompact"in e&&n(12,g=e.canCompact),"canSort"in e&&n(13,y=e.canSort),"canTransform"in e&&n(14,b=e.canTransform),"onRenderMenu"in e&&n(15,w=e.onRenderMenu)},e.$$.update=function(){32702&e.$$.dirty&&n(16,o=a?[x,{type:"space"}]:[{type:"button",icon:Bz,title:"Format JSON: add proper indentation and new lines (Ctrl+I)",className:"jse-format",onClick:s,disabled:a||!m},{type:"button",icon:Lz,title:"Compact JSON: remove all white spacing and new lines (Ctrl+Shift+I)",className:"jse-compact",onClick:c,disabled:a||!g},{type:"separator"},{type:"button",icon:CP,title:"Sort",className:"jse-sort",onClick:u,disabled:a||!y},{type:"button",icon:hP,title:"Transform contents (filter, sort, project)",className:"jse-transform",onClick:l,disabled:a||!b},x,{type:"separator"},{type:"button",icon:bP,title:"Undo (Ctrl+Z)",className:"jse-undo",onClick:d,disabled:!v},{type:"button",icon:yP,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,c,u,l,f,d,h,v,p,m,g,y,b,w,o]}var rF=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,nF,tF,Xo,{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}),n}return Ao(t,Na),Io(t)}(),oF=function(){function e(){Ro(this,e)}return Io(e,[{key:"lineAt",value:function(e){if(e<0||e>this.length)throw new RangeError("Invalid position ".concat(e," in document of length ").concat(this.length));return this.lineInner(e,!1,1,0)}},{key:"line",value:function(e){if(e<1||e>this.lines)throw new RangeError("Invalid line number ".concat(e," in ").concat(this.lines,"-line document"));return this.lineInner(e,!0,1,0)}},{key:"replace",value:function(e,t,n){var r=jo(hF(this,e,t),2);e=r[0],t=r[1];var o=[];return this.decompose(0,e,o,2),n.length&&n.decompose(0,n.length,o,3),this.decompose(t,this.length,o,1),aF.from(o,this.length-(t-e)+n.length)}},{key:"append",value:function(e){return this.replace(this.length,this.length,e)}},{key:"slice",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,n=jo(hF(this,e,t),2);e=n[0],t=n[1];var r=[];return this.decompose(e,t,r,0),aF.from(r,t-e)}},{key:"eq",value:function(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;for(var t=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),r=new uF(this),o=new uF(e),i=t,a=t;;){if(r.next(i),o.next(i),i=0,r.lineBreak!=o.lineBreak||r.done!=o.done||r.value!=o.value)return!1;if(a+=r.value.length,r.done||a>=n)return!0}}},{key:"iter",value:function(){return new uF(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)}},{key:"iterRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length;return new lF(this,e,t)}},{key:"iterLines",value:function(e,t){var n;if(null==e)n=this.iter();else{null==t&&(t=this.lines+1);var r=this.line(e).from;n=this.iterRange(r,Math.max(r,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new fF(n)}},{key:"toString",value:function(){return this.sliceString(0)}},{key:"toJSON",value:function(){var e=[];return this.flatten(e),e}}],[{key:"of",value:function(t){if(0==t.length)throw new RangeError("A document must have at least one line");return 1!=t.length||t[0]?t.length<=32?new iF(t):aF.from(iF.split(t,[])):e.empty}}])}(),iF=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){var t,n=-1,r=bo(e);try{for(r.s();!(t=r.n()).done;){n+=t.value.length+1}}catch(e){r.e(e)}finally{r.f()}return n}(e);return Ro(this,t),(n=_o(this,t)).text=e,n.length=r,n}return Ao(t,oF),Io(t,[{key:"lines",get:function(){return this.text.length}},{key:"children",get:function(){return null}},{key:"lineInner",value:function(e,t,n,r){for(var o=0;;o++){var i=this.text[o],a=r+i.length;if((t?n:a)>=e)return new dF(r,a,n,i);r=a+1,n++}}},{key:"decompose",value:function(e,n,r,o){var i=e<=0&&n>=this.length?this:new t(cF(this.text,e,n),Math.min(n,this.length)-Math.max(0,e));if(1&o){var a=r.pop(),s=sF(i.text,a.text.slice(),0,i.length);if(s.length<=32)r.push(new t(s,a.length+i.length));else{var c=s.length>>1;r.push(new t(s.slice(0,c)),new t(s.slice(c)))}}else r.push(i)}},{key:"replace",value:function(e,n,r){if(!(r instanceof t))return go(Mo(t.prototype),"replace",this).call(this,e,n,r);var o=jo(hF(this,e,n),2);e=o[0],n=o[1];var i=sF(this.text,sF(r.text,cF(this.text,0,e)),n),a=this.length+r.length-(n-e);return i.length<=32?new t(i,a):aF.from(t.split(i,[]),a)}},{key:"sliceString",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"\n",r=jo(hF(this,e,t),2);e=r[0],t=r[1];for(var o="",i=0,a=0;i<=t&&a<this.text.length;a++){var s=this.text[a],c=i+s.length;i>e&&a&&(o+=n),e<c&&t>i&&(o+=s.slice(Math.max(0,e-i),t-i)),i=c+1}return o}},{key:"flatten",value:function(e){var t,n=bo(this.text);try{for(n.s();!(t=n.n()).done;){var r=t.value;e.push(r)}}catch(e){n.e(e)}finally{n.f()}}},{key:"scanIdentical",value:function(){return 0}}],[{key:"split",value:function(e,n){var r,o=[],i=-1,a=bo(e);try{for(a.s();!(r=a.n()).done;){var s=r.value;o.push(s),i+=s.length+1,32==o.length&&(n.push(new t(o,i)),o=[],i=-1)}}catch(e){a.e(e)}finally{a.f()}return i>-1&&n.push(new t(o,i)),n}}])}(),aF=function(e){function t(e,n){var r;Ro(this,t),(r=_o(this,t)).children=e,r.length=n,r.lines=0;var o,i=bo(e);try{for(i.s();!(o=i.n()).done;){var a=o.value;r.lines+=a.lines}}catch(e){i.e(e)}finally{i.f()}return r}return Ao(t,oF),Io(t,[{key:"lineInner",value:function(e,t,n,r){for(var o=0;;o++){var i=this.children[o],a=r+i.length,s=n+i.lines-1;if((t?s:a)>=e)return i.lineInner(e,t,n,r);r=a+1,n=s+1}}},{key:"decompose",value:function(e,t,n,r){for(var o=0,i=0;i<=t&&o<this.children.length;o++){var a=this.children[o],s=i+a.length;if(e<=s&&t>=i){var c=r&((i<=e?1:0)|(s>=t?2:0));i>=e&&s<=t&&!c?n.push(a):a.decompose(e-i,t-i,n,c)}i=s+1}}},{key:"replace",value:function(e,n,r){var o=jo(hF(this,e,n),2);if(e=o[0],n=o[1],r.lines<this.lines)for(var i=0,a=0;i<this.children.length;i++){var s=this.children[i],c=a+s.length;if(e>=a&&n<=c){var u=s.replace(e-a,n-a,r),l=this.lines-s.lines+u.lines;if(u.lines<l>>4&&u.lines>l>>6){var f=this.children.slice();return f[i]=u,new t(f,this.length-(n-e)+r.length)}return go(Mo(t.prototype),"replace",this).call(this,a,c,u)}a=c+1}return go(Mo(t.prototype),"replace",this).call(this,e,n,r)}},{key:"sliceString",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"\n",r=jo(hF(this,e,t),2);e=r[0],t=r[1];for(var o="",i=0,a=0;i<this.children.length&&a<=t;i++){var s=this.children[i],c=a+s.length;a>e&&i&&(o+=n),e<c&&t>a&&(o+=s.sliceString(e-a,t-a,n)),a=c+1}return o}},{key:"flatten",value:function(e){var t,n=bo(this.children);try{for(n.s();!(t=n.n()).done;){t.value.flatten(e)}}catch(e){n.e(e)}finally{n.f()}}},{key:"scanIdentical",value:function(e,n){if(!(e instanceof t))return 0;for(var r=0,o=jo(n>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1],4),i=o[0],a=o[1],s=o[2],c=o[3];;i+=n,a+=n){if(i==s||a==c)return r;var u=this.children[i],l=e.children[a];if(u!=l)return r+u.scanIdentical(l,n);r+=u.length+1}}}],[{key:"from",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.reduce((function(e,t){return e+t.length+1}),-1),o=0,i=bo(e);try{for(i.s();!(n=i.n()).done;){o+=n.value.lines}}catch(e){i.e(e)}finally{i.f()}if(o<32){var a,s=[],c=bo(e);try{for(c.s();!(a=c.n()).done;){a.value.flatten(s)}}catch(e){c.e(e)}finally{c.f()}return new iF(s,r)}var u=Math.max(32,o>>5),l=u<<1,f=u>>1,d=[],h=0,v=-1,p=[];function m(e){var n;if(e.lines>l&&e instanceof t){var r,o=bo(e.children);try{for(o.s();!(r=o.n()).done;){m(r.value)}}catch(e){o.e(e)}finally{o.f()}}else e.lines>f&&(h>f||!h)?(g(),d.push(e)):e instanceof iF&&h&&(n=p[p.length-1])instanceof iF&&e.lines+n.lines<=32?(h+=e.lines,v+=e.length+1,p[p.length-1]=new iF(n.text.concat(e.text),n.length+1+e.length)):(h+e.lines>u&&g(),h+=e.lines,v+=e.length+1,p.push(e))}function g(){0!=h&&(d.push(1==p.length?p[0]:t.from(p,v)),v=-1,h=p.length=0)}var y,b=bo(e);try{for(b.s();!(y=b.n()).done;){m(y.value)}}catch(e){b.e(e)}finally{b.f()}return g(),1==d.length?d[0]:new t(d,r)}}])}();function sF(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e9,o=0,i=0,a=!0;i<e.length&&o<=r;i++){var s=e[i],c=o+s.length;c>=n&&(c>r&&(s=s.slice(0,r-o)),o<n&&(s=s.slice(n-o)),a?(t[t.length-1]+=s,a=!1):t.push(s)),o=c+1}return t}function cF(e,t,n){return sF(e,[""],t,n)}oF.empty=new iF([""],0);var uF=function(){return Io((function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;Ro(this,e),this.dir=n,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[t],this.offsets=[n>0?1:(t instanceof iF?t.text.length:t.children.length)<<1]}),[{key:"nextInner",value:function(e,t){for(this.done=this.lineBreak=!1;;){var n=this.nodes.length-1,r=this.nodes[n],o=this.offsets[n],i=o>>1,a=r instanceof iF?r.text.length:r.children.length;if(i==(t>0?a:0)){if(0==n)return this.done=!0,this.value="",this;t>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&o)==(t>0?0:1)){if(this.offsets[n]+=t,0==e)return this.lineBreak=!0,this.value="\n",this;e--}else if(r instanceof iF){var s=r.text[i+(t<0?-1:0)];if(this.offsets[n]+=t,s.length>Math.max(0,e))return this.value=0==e?s:t>0?s.slice(e):s.slice(0,s.length-e),this;e-=s.length}else{var c=r.children[i+(t<0?-1:0)];e>c.length?(e-=c.length,this.offsets[n]+=t):(t<0&&this.offsets[n]--,this.nodes.push(c),this.offsets.push(t>0?1:(c instanceof iF?c.text.length:c.children.length)<<1))}}}},{key:"next",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}])}(),lF=function(){return Io((function e(t,n,r){Ro(this,e),this.value="",this.done=!1,this.cursor=new uF(t,n>r?-1:1),this.pos=n>r?t.length:0,this.from=Math.min(n,r),this.to=Math.max(n,r)}),[{key:"nextInner",value:function(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);var n=t<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;var r=this.cursor.next(e).value;return this.pos+=(r.length+e)*t,this.value=r.length<=n?r:t<0?r.slice(r.length-n):r.slice(0,n),this.done=!this.value,this}},{key:"next",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}},{key:"lineBreak",get:function(){return this.cursor.lineBreak&&""!=this.value}}])}(),fF=function(){return Io((function e(t){Ro(this,e),this.inner=t,this.afterBreak=!0,this.value="",this.done=!1}),[{key:"next",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.inner.next(e),n=t.done,r=t.lineBreak,o=t.value;return n&&this.afterBreak?(this.value="",this.afterBreak=!1):n?(this.done=!0,this.value=""):r?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=o,this.afterBreak=!1),this}},{key:"lineBreak",get:function(){return!1}}])}();"undefined"!=typeof Symbol&&(oF.prototype[Symbol.iterator]=function(){return this.iter()},uF.prototype[Symbol.iterator]=lF.prototype[Symbol.iterator]=fF.prototype[Symbol.iterator]=function(){return this});var dF=function(){return Io((function e(t,n,r,o){Ro(this,e),this.from=t,this.to=n,this.number=r,this.text=o}),[{key:"length",get:function(){return this.to-this.from}}])}();function hF(e,t,n){return[t=Math.max(0,Math.min(e.length,t)),Math.max(t,Math.min(e.length,n))]}for(var vF="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map((function(e){return e?parseInt(e,36):1})),pF=1;pF<vF.length;pF++)vF[pF]+=vF[pF-1];function mF(e){for(var t=1;t<vF.length;t+=2)if(vF[t]>e)return vF[t-1]<=e;return!1}function gF(e){return e>=127462&&e<=127487}var yF=8205;function bF(e,t){return(!(arguments.length>2&&void 0!==arguments[2])||arguments[2]?wF:xF)(e,t,!(arguments.length>3&&void 0!==arguments[3])||arguments[3])}function wF(e,t,n){if(t==e.length)return t;t&&kF(e.charCodeAt(t))&&jF(e.charCodeAt(t-1))&&t--;var r=SF(e,t);for(t+=$F(r);t<e.length;){var o=SF(e,t);if(r==yF||o==yF||n&&mF(o))t+=$F(o),r=o;else{if(!gF(o))break;for(var i=0,a=t-2;a>=0&&gF(SF(e,a));)i++,a-=2;if(i%2==0)break;t+=2}}return t}function xF(e,t,n){for(;t>0;){var r=wF(e,t-2,n);if(r<t)return r;t--}return 0}function kF(e){return e>=56320&&e<57344}function jF(e){return e>=55296&&e<56320}function SF(e,t){var n=e.charCodeAt(t);if(!jF(n)||t+1==e.length)return n;var r=e.charCodeAt(t+1);return kF(r)?r-56320+(n-55296<<10)+65536:n}function CF(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}function $F(e){return e<65536?1:2}var _F=/\r\n?|\n/,OF=function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e}(OF||(OF={})),MF=function(){function e(t){Ro(this,e),this.sections=t}return Io(e,[{key:"length",get:function(){for(var e=0,t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}},{key:"newLength",get:function(){for(var e=0,t=0;t<this.sections.length;t+=2){var n=this.sections[t+1];e+=n<0?this.sections[t]:n}return e}},{key:"empty",get:function(){return 0==this.sections.length||2==this.sections.length&&this.sections[1]<0}},{key:"iterGaps",value:function(e){for(var t=0,n=0,r=0;t<this.sections.length;){var o=this.sections[t++],i=this.sections[t++];i<0?(e(n,r,o),r+=o):r+=i,n+=o}}},{key:"iterChangedRanges",value:function(e){TF(this,e,arguments.length>1&&void 0!==arguments[1]&&arguments[1])}},{key:"invertedDesc",get:function(){for(var t=[],n=0;n<this.sections.length;){var r=this.sections[n++],o=this.sections[n++];o<0?t.push(r,o):t.push(o,r)}return new e(t)}},{key:"composeDesc",value:function(e){return this.empty?e:e.empty?this:NF(this,e)}},{key:"mapDesc",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e.empty?this:RF(this,e,t)}},{key:"mapPos",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:OF.Simple,r=0,o=0,i=0;i<this.sections.length;){var a=this.sections[i++],s=this.sections[i++],c=r+a;if(s<0){if(c>e)return o+(e-r);o+=a}else{if(n!=OF.Simple&&c>=e&&(n==OF.TrackDel&&r<e&&c>e||n==OF.TrackBefore&&r<e||n==OF.TrackAfter&&c>e))return null;if(c>e||c==e&&t<0&&!a)return e==r||t<0?o:o+s;o+=s}r=c}if(e>r)throw new RangeError("Position ".concat(e," is out of range for changeset of length ").concat(r));return o}},{key:"touchesRange",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=0,r=0;n<this.sections.length&&r<=t;){var o=r+this.sections[n++];if(this.sections[n++]>=0&&r<=t&&o>=e)return!(r<e&&o>t)||"cover";r=o}return!1}},{key:"toString",value:function(){for(var e="",t=0;t<this.sections.length;){var n=this.sections[t++],r=this.sections[t++];e+=(e?" ":"")+n+(r>=0?":"+r:"")}return e}},{key:"toJSON",value:function(){return this.sections}}],[{key:"fromJSON",value:function(t){if(!Array.isArray(t)||t.length%2||t.some((function(e){return"number"!=typeof e})))throw new RangeError("Invalid JSON representation of ChangeDesc");return new e(t)}},{key:"create",value:function(t){return new e(t)}}])}(),AF=function(e){function t(e,n){var r;return Ro(this,t),(r=_o(this,t,[e])).inserted=n,r}return Ao(t,MF),Io(t,[{key:"apply",value:function(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return TF(this,(function(t,n,r,o,i){return e=e.replace(r,r+(n-t),i)}),!1),e}},{key:"mapDesc",value:function(e){return RF(this,e,arguments.length>1&&void 0!==arguments[1]&&arguments[1],!0)}},{key:"invert",value:function(e){for(var n=this.sections.slice(),r=[],o=0,i=0;o<n.length;o+=2){var a=n[o],s=n[o+1];if(s>=0){n[o]=s,n[o+1]=a;for(var c=o>>1;r.length<c;)r.push(oF.empty);r.push(a?e.slice(i,i+a):oF.empty)}i+=a}return new t(n,r)}},{key:"compose",value:function(e){return this.empty?e:e.empty?this:NF(this,e,!0)}},{key:"map",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e.empty?this:RF(this,e,t,!0)}},{key:"iterChanges",value:function(e){TF(this,e,arguments.length>1&&void 0!==arguments[1]&&arguments[1])}},{key:"desc",get:function(){return MF.create(this.sections)}},{key:"filter",value:function(e){var n=[],r=[],o=[],i=new IF(this);e:for(var a=0,s=0;;){for(var c=a==e.length?1e9:e[a++];s<c||s==c&&0==i.len;){if(i.done)break e;var u=Math.min(i.len,c-s);EF(o,u,-1);var l=-1==i.ins?-1:0==i.off?i.ins:0;EF(n,u,l),l>0&&PF(r,n,i.text),i.forward(u),s+=u}for(var f=e[a++];s<f;){if(i.done)break e;var d=Math.min(i.len,f-s);EF(n,d,-1),EF(o,d,-1==i.ins?-1:0==i.off?i.ins:0),i.forward(d),s+=d}}return{changes:new t(n,r),filtered:MF.create(o)}}},{key:"toJSON",value:function(){for(var e=[],t=0;t<this.sections.length;t+=2){var n=this.sections[t],r=this.sections[t+1];r<0?e.push(n):0==r?e.push([n]):e.push([n].concat(this.inserted[t>>1].toJSON()))}return e}}],[{key:"of",value:function(e,n,r){var o=[],i=[],a=0,s=null;function c(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||o.length){a<n&&EF(o,n-a,-1);var e=new t(o,i);s=s?s.compose(e.map(s)):e,o=[],i=[],a=0}}return function e(u){if(Array.isArray(u)){var l,f=bo(u);try{for(f.s();!(l=f.n()).done;){e(l.value)}}catch(e){f.e(e)}finally{f.f()}}else if(u instanceof t){if(u.length!=n)throw new RangeError("Mismatched change set length (got ".concat(u.length,", expected ").concat(n,")"));c(),s=s?s.compose(u.map(s)):u}else{var d=u.from,h=u.to,v=void 0===h?d:h,p=u.insert;if(d>v||d<0||v>n)throw new RangeError("Invalid change range ".concat(d," to ").concat(v," (in doc of length ").concat(n,")"));var m=p?"string"==typeof p?oF.of(p.split(r||_F)):p:oF.empty,g=m.length;if(d==v&&0==g)return;d<a&&c(),d>a&&EF(o,d-a,-1),EF(o,v-d,g),PF(i,o,m),a=v}}(e),c(!s),s}},{key:"empty",value:function(e){return new t(e?[e,-1]:[],[])}},{key:"fromJSON",value:function(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");for(var n=[],r=[],o=0;o<e.length;o++){var i=e[o];if("number"==typeof i)n.push(i,-1);else{if(!Array.isArray(i)||"number"!=typeof i[0]||i.some((function(e,t){return t&&"string"!=typeof e})))throw new RangeError("Invalid JSON representation of ChangeSet");if(1==i.length)n.push(i[0],0);else{for(;r.length<o;)r.push(oF.empty);r[o]=oF.of(i.slice(1)),n.push(i[0],r[o].length)}}}return new t(n,r)}},{key:"createSet",value:function(e,n){return new t(e,n)}}])}();function EF(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!(0==t&&n<=0)){var o=e.length-2;o>=0&&n<=0&&n==e[o+1]?e[o]+=t:0==t&&0==e[o]?e[o+1]+=n:r?(e[o]+=t,e[o+1]+=n):e.push(t,n)}}function PF(e,t,n){if(0!=n.length){var r=t.length-2>>1;if(r<e.length)e[e.length-1]=e[e.length-1].append(n);else{for(;e.length<r;)e.push(oF.empty);e.push(n)}}}function TF(e,t,n){for(var r=e.inserted,o=0,i=0,a=0;a<e.sections.length;){var s=e.sections[a++],c=e.sections[a++];if(c<0)o+=s,i+=s;else{for(var u=o,l=i,f=oF.empty;u+=s,l+=c,c&&r&&(f=f.append(r[a-2>>1])),!(n||a==e.sections.length||e.sections[a+1]<0);)s=e.sections[a++],c=e.sections[a++];t(o,u,i,l,f),o=u,i=l}}}function RF(e,t,n){for(var r=[],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3]?[]:null,i=new IF(e),a=new IF(t),s=-1;;)if(-1==i.ins&&-1==a.ins){var c=Math.min(i.len,a.len);EF(r,c,-1),i.forward(c),a.forward(c)}else if(a.ins>=0&&(i.ins<0||s==i.i||0==i.off&&(a.len<i.len||a.len==i.len&&!n))){var u=a.len;for(EF(r,a.ins,-1);u;){var l=Math.min(i.len,u);i.ins>=0&&s<i.i&&i.len<=l&&(EF(r,0,i.ins),o&&PF(o,r,i.text),s=i.i),i.forward(l),u-=l}a.next()}else{if(!(i.ins>=0)){if(i.done&&a.done)return o?AF.createSet(r,o):MF.create(r);throw new Error("Mismatched change set lengths")}for(var f=0,d=i.len;d;)if(-1==a.ins){var h=Math.min(d,a.len);f+=h,d-=h,a.forward(h)}else{if(!(0==a.ins&&a.len<d))break;d-=a.len,a.next()}EF(r,f,s<i.i?i.ins:0),o&&s<i.i&&PF(o,r,i.text),s=i.i,i.forward(i.len-d)}}function NF(e,t){for(var n=[],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2]?[]:null,o=new IF(e),i=new IF(t),a=!1;;){if(o.done&&i.done)return r?AF.createSet(n,r):MF.create(n);if(0==o.ins)EF(n,o.len,0,a),o.next();else if(0!=i.len||i.done){if(o.done||i.done)throw new Error("Mismatched change set lengths");var s=Math.min(o.len2,i.len),c=n.length;if(-1==o.ins){var u=-1==i.ins?-1:i.off?0:i.ins;EF(n,s,u,a),r&&u&&PF(r,n,i.text)}else-1==i.ins?(EF(n,o.off?0:o.len,s,a),r&&PF(r,n,o.textBit(s))):(EF(n,o.off?0:o.len,i.off?0:i.ins,a),r&&!i.off&&PF(r,n,i.text));a=(o.ins>s||i.ins>=0&&i.len>s)&&(a||n.length>c),o.forward2(s),i.forward(s)}else EF(n,0,i.ins,a),r&&PF(r,n,i.text),i.next()}}var IF=function(){return Io((function e(t){Ro(this,e),this.set=t,this.i=0,this.next()}),[{key:"next",value:function(){var e=this.set.sections;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}},{key:"done",get:function(){return-2==this.ins}},{key:"len2",get:function(){return this.ins<0?this.len:this.ins}},{key:"text",get:function(){var e=this.set.inserted,t=this.i-2>>1;return t>=e.length?oF.empty:e[t]}},{key:"textBit",value:function(e){var t=this.set.inserted,n=this.i-2>>1;return n>=t.length&&!e?oF.empty:t[n].slice(this.off,null==e?void 0:this.off+e)}},{key:"forward",value:function(e){e==this.len?this.next():(this.len-=e,this.off+=e)}},{key:"forward2",value:function(e){-1==this.ins?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}])}(),DF=function(){function e(t,n,r){Ro(this,e),this.from=t,this.to=n,this.flags=r}return Io(e,[{key:"anchor",get:function(){return 32&this.flags?this.to:this.from}},{key:"head",get:function(){return 32&this.flags?this.from:this.to}},{key:"empty",get:function(){return this.from==this.to}},{key:"assoc",get:function(){return 8&this.flags?-1:16&this.flags?1:0}},{key:"bidiLevel",get:function(){var e=7&this.flags;return 7==e?null:e}},{key:"goalColumn",get:function(){var e=this.flags>>6;return 16777215==e?void 0:e}},{key:"map",value:function(t){var n,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return this.empty?n=r=t.mapPos(this.from,o):(n=t.mapPos(this.from,1),r=t.mapPos(this.to,-1)),n==this.from&&r==this.to?this:new e(n,r,this.flags)}},{key:"extend",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;if(e<=this.anchor&&t>=this.anchor)return zF.range(e,t);var n=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return zF.range(this.anchor,n)}},{key:"eq",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!(this.anchor!=e.anchor||this.head!=e.head||t&&this.empty&&this.assoc!=e.assoc)}},{key:"toJSON",value:function(){return{anchor:this.anchor,head:this.head}}}],[{key:"fromJSON",value:function(e){if(!e||"number"!=typeof e.anchor||"number"!=typeof e.head)throw new RangeError("Invalid JSON representation for SelectionRange");return zF.range(e.anchor,e.head)}},{key:"create",value:function(t,n,r){return new e(t,n,r)}}])}(),zF=function(){function e(t,n){Ro(this,e),this.ranges=t,this.mainIndex=n}return Io(e,[{key:"map",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return t.empty?this:e.create(this.ranges.map((function(e){return e.map(t,n)})),this.mainIndex)}},{key:"eq",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(var n=0;n<this.ranges.length;n++)if(!this.ranges[n].eq(e.ranges[n],t))return!1;return!0}},{key:"main",get:function(){return this.ranges[this.mainIndex]}},{key:"asSingle",value:function(){return 1==this.ranges.length?this:new e([this.main],0)}},{key:"addRange",value:function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.create([t].concat(this.ranges),n?0:this.mainIndex+1)}},{key:"replaceRange",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.mainIndex,r=this.ranges.slice();return r[n]=t,e.create(r,this.mainIndex)}},{key:"toJSON",value:function(){return{ranges:this.ranges.map((function(e){return e.toJSON()})),main:this.mainIndex}}}],[{key:"fromJSON",value:function(t){if(!t||!Array.isArray(t.ranges)||"number"!=typeof t.main||t.main>=t.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new e(t.ranges.map((function(e){return DF.fromJSON(e)})),t.main)}},{key:"single",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;return new e([e.range(t,n)],0)}},{key:"create",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0==t.length)throw new RangeError("A selection needs at least one range");for(var r=0,o=0;o<t.length;o++){var i=t[o];if(i.empty?i.from<=r:i.from<r)return e.normalized(t.slice(),n);r=i.to}return new e(t,n)}},{key:"cursor",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;return DF.create(e,e,(0==t?0:t<0?8:16)|(null==n?7:Math.min(6,n))|(null!=r?r:16777215)<<6)}},{key:"range",value:function(e,t,n,r){var o=(null!=n?n:16777215)<<6|(null==r?7:Math.min(6,r));return t<e?DF.create(t,e,48|o):DF.create(e,t,(t>e?8:0)|o)}},{key:"normalized",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=t[n];t.sort((function(e,t){return e.from-t.from})),n=t.indexOf(r);for(var o=1;o<t.length;o++){var i=t[o],a=t[o-1];if(i.empty?i.from<=a.to:i.from<a.to){var s=a.from,c=Math.max(i.to,a.to);o<=n&&n--,t.splice(--o,2,i.anchor>i.head?e.range(c,s):e.range(s,c))}}return new e(t,n)}}])}();function BF(e,t){var n,r=bo(e.ranges);try{for(r.s();!(n=r.n()).done;){if(n.value.to>t)throw new RangeError("Selection points outside of document")}}catch(e){r.e(e)}finally{r.f()}}var LF=0,qF=function(){function e(t,n,r,o,i){Ro(this,e),this.combine=t,this.compareInput=n,this.compare=r,this.isStatic=o,this.id=LF++,this.default=t([]),this.extensions="function"==typeof i?i(this):i}return Io(e,[{key:"reader",get:function(){return this}},{key:"of",value:function(e){return new VF([],this,0,e)}},{key:"compute",value:function(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new VF(e,this,1,t)}},{key:"computeN",value:function(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new VF(e,this,2,t)}},{key:"from",value:function(e,t){return t||(t=function(e){return e}),this.compute([e],(function(n){return t(n.field(e))}))}}],[{key:"define",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new e(t.combine||function(e){return e},t.compareInput||function(e,t){return e===t},t.compare||(t.combine?function(e,t){return e===t}:FF),!!t.static,t.enables)}}])}();function FF(e,t){return e==t||e.length==t.length&&e.every((function(e,n){return e===t[n]}))}var VF=function(){return Io((function e(t,n,r,o){Ro(this,e),this.dependencies=t,this.facet=n,this.type=r,this.value=o,this.id=LF++}),[{key:"dynamicSlot",value:function(e){var t,n,r=this,o=this.value,i=this.facet.compareInput,a=this.id,s=e[a]>>1,c=2==this.type,u=!1,l=!1,f=[],d=bo(this.dependencies);try{for(d.s();!(n=d.n()).done;){var h=n.value;"doc"==h?u=!0:"selection"==h?l=!0:0==(1&(null!==(t=e[h.id])&&void 0!==t?t:1))&&f.push(e[h.id])}}catch(e){d.e(e)}finally{d.f()}return{create:function(e){return e.values[s]=o(e),1},update:function(e,t){if(u&&t.docChanged||l&&(t.docChanged||t.selection)||WF(e,f)){var n=o(e);if(c?!HF(n,e.values[s],i):!i(n,e.values[s]))return e.values[s]=n,1}return 0},reconfigure:function(e,t){var n,u=t.config.address[a];if(null!=u){var l=iV(t,u);if(r.dependencies.every((function(n){return n instanceof qF?t.facet(n)===e.facet(n):!(n instanceof JF)||t.field(n,!1)==e.field(n,!1)}))||(c?HF(n=o(e),l,i):i(n=o(e),l)))return e.values[s]=l,0}else n=o(e);return e.values[s]=n,1}}}}])}();function HF(e,t,n){if(e.length!=t.length)return!1;for(var r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}function WF(e,t){var n,r=!1,o=bo(t);try{for(o.s();!(n=o.n()).done;){1&oV(e,n.value)&&(r=!0)}}catch(e){o.e(e)}finally{o.f()}return r}var UF=qF.define({static:!0}),JF=function(){function e(t,n,r,o,i){Ro(this,e),this.id=t,this.createF=n,this.updateF=r,this.compareF=o,this.spec=i,this.provides=void 0}return Io(e,[{key:"create",value:function(e){var t=this,n=e.facet(UF).find((function(e){return e.field==t}));return((null==n?void 0:n.create)||this.createF)(e)}},{key:"slot",value:function(e){var t=this,n=e[this.id]>>1;return{create:function(e){return e.values[n]=t.create(e),1},update:function(e,r){var o=e.values[n],i=t.updateF(o,r);return t.compareF(o,i)?0:(e.values[n]=i,1)},reconfigure:function(e,r){return null!=r.config.address[t.id]?(e.values[n]=r.field(t),0):(e.values[n]=t.create(e),1)}}}},{key:"init",value:function(e){return[this,UF.of({field:this,create:e})]}},{key:"extension",get:function(){return this}}],[{key:"define",value:function(t){var n=new e(LF++,t.create,t.update,t.compare||function(e,t){return e===t},t);return t.provide&&(n.provides=t.provide(n)),n}}])}(),KF=4,GF=3,QF=2,YF=1;function XF(e){return function(t){return new eV(t,e)}}var ZF={highest:XF(0),high:XF(YF),default:XF(QF),low:XF(GF),lowest:XF(KF)},eV=Io((function e(t,n){Ro(this,e),this.inner=t,this.prec=n})),tV=function(){function e(){Ro(this,e)}return Io(e,[{key:"of",value:function(e){return new nV(this,e)}},{key:"reconfigure",value:function(t){return e.reconfigure.of({compartment:this,extension:t})}},{key:"get",value:function(e){return e.config.compartments.get(this)}}])}(),nV=Io((function e(t,n){Ro(this,e),this.compartment=t,this.inner=n})),rV=function(){function e(t,n,r,o,i,a){for(Ro(this,e),this.base=t,this.compartments=n,this.dynamicSlots=r,this.address=o,this.staticValues=i,this.facets=a,this.statusTemplate=[];this.statusTemplate.length<r.length;)this.statusTemplate.push(0)}return Io(e,[{key:"staticFacet",value:function(e){var t=this.address[e.id];return null==t?e.default:this.staticValues[t>>1]}}],[{key:"resolve",value:function(t,n,r){var o,i=[],a=Object.create(null),s=new Map,c=bo(function(e,t,n){var r=[[],[],[],[],[]],o=new Map;function i(e,a){var s=o.get(e);if(null!=s){if(s<=a)return;var c=r[s].indexOf(e);c>-1&&r[s].splice(c,1),e instanceof nV&&n.delete(e.compartment)}if(o.set(e,a),Array.isArray(e)){var u,l=bo(e);try{for(l.s();!(u=l.n()).done;){i(u.value,a)}}catch(e){l.e(e)}finally{l.f()}}else if(e instanceof nV){if(n.has(e.compartment))throw new RangeError("Duplicate use of compartment in extensions");var f=t.get(e.compartment)||e.inner;n.set(e.compartment,f),i(f,a)}else if(e instanceof eV)i(e.inner,e.prec);else if(e instanceof JF)r[a].push(e),e.provides&&i(e.provides,a);else if(e instanceof VF)r[a].push(e),e.facet.extensions&&i(e.facet.extensions,QF);else{var d=e.extension;if(!d)throw new Error("Unrecognized extension value in extension set (".concat(e,"). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks."));i(d,a)}}return i(e,QF),r.reduce((function(e,t){return e.concat(t)}))}(t,n,s));try{for(c.s();!(o=c.n()).done;){var u=o.value;u instanceof JF?i.push(u):(a[u.facet.id]||(a[u.facet.id]=[])).push(u)}}catch(e){c.e(e)}finally{c.f()}for(var l=Object.create(null),f=[],d=[],h=function(){var e=p[v];l[e.id]=d.length<<1,d.push((function(t){return e.slot(t)}))},v=0,p=i;v<p.length;v++)h();var m=null==r?void 0:r.config.facets,g=function(){var e=a[y],t=e[0].facet,n=m&&m[y]||[];if(e.every((function(e){return 0==e.type})))if(l[t.id]=f.length<<1|1,FF(n,e))f.push(r.facet(t));else{var o=t.combine(e.map((function(e){return e.value})));f.push(r&&t.compare(o,r.facet(t))?r.facet(t):o)}else{var i,s=bo(e);try{var c=function(){var e=i.value;0==e.type?(l[e.id]=f.length<<1|1,f.push(e.value)):(l[e.id]=d.length<<1,d.push((function(t){return e.dynamicSlot(t)})))};for(s.s();!(i=s.n()).done;)c()}catch(e){s.e(e)}finally{s.f()}l[t.id]=d.length<<1,d.push((function(n){return function(e,t,n){var r=n.map((function(t){return e[t.id]})),o=n.map((function(e){return e.type})),i=r.filter((function(e){return!(1&e)})),a=e[t.id]>>1;function s(e){for(var n=[],i=0;i<r.length;i++){var a=iV(e,r[i]);if(2==o[i]){var s,c=bo(a);try{for(c.s();!(s=c.n()).done;){var u=s.value;n.push(u)}}catch(e){c.e(e)}finally{c.f()}}else n.push(a)}return t.combine(n)}return{create:function(e){var t,n=bo(r);try{for(n.s();!(t=n.n()).done;)oV(e,t.value)}catch(e){n.e(e)}finally{n.f()}return e.values[a]=s(e),1},update:function(e,n){if(!WF(e,i))return 0;var r=s(e);return t.compare(r,e.values[a])?0:(e.values[a]=r,1)},reconfigure:function(e,o){var i=WF(e,r),c=o.config.facets[t.id],u=o.facet(t);if(c&&!i&&FF(n,c))return e.values[a]=u,0;var l=s(e);return t.compare(l,u)?(e.values[a]=u,0):(e.values[a]=l,1)}}}(n,t,e)}))}};for(var y in a)g();return new e(t,s,d.map((function(e){return e(l)})),l,f,a)}}])}();function oV(e,t){if(1&t)return 2;var n=t>>1,r=e.status[n];if(4==r)throw new Error("Cyclic dependency between fields and/or facets");if(2&r)return r;e.status[n]=4;var o=e.computeSlot(e,e.config.dynamicSlots[n]);return e.status[n]=2|o}function iV(e,t){return 1&t?e.config.staticValues[t>>1]:e.values[t>>1]}var aV=qF.define(),sV=qF.define({combine:function(e){return e.some((function(e){return e}))},static:!0}),cV=qF.define({combine:function(e){return e.length?e[0]:void 0},static:!0}),uV=qF.define(),lV=qF.define(),fV=qF.define(),dV=qF.define({combine:function(e){return!!e.length&&e[0]}}),hV=function(){return Io((function e(t,n){Ro(this,e),this.type=t,this.value=n}),null,[{key:"define",value:function(){return new vV}}])}(),vV=function(){return Io((function e(){Ro(this,e)}),[{key:"of",value:function(e){return new hV(this,e)}}])}(),pV=function(){return Io((function e(t){Ro(this,e),this.map=t}),[{key:"of",value:function(e){return new mV(this,e)}}])}(),mV=function(){function e(t,n){Ro(this,e),this.type=t,this.value=n}return Io(e,[{key:"map",value:function(t){var n=this.type.map(this.value,t);return void 0===n?void 0:n==this.value?this:new e(this.type,n)}},{key:"is",value:function(e){return this.type==e}}],[{key:"define",value:function(){return new pV((arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).map||function(e){return e})}},{key:"mapEffects",value:function(e,t){if(!e.length)return e;var n,r=[],o=bo(e);try{for(o.s();!(n=o.n()).done;){var i=n.value.map(t);i&&r.push(i)}}catch(e){o.e(e)}finally{o.f()}return r}}])}();mV.reconfigure=mV.define(),mV.appendConfig=mV.define();var gV=function(){function e(t,n,r,o,i,a){Ro(this,e),this.startState=t,this.changes=n,this.selection=r,this.effects=o,this.annotations=i,this.scrollIntoView=a,this._doc=null,this._state=null,r&&BF(r,n.newLength),i.some((function(t){return t.type==e.time}))||(this.annotations=i.concat(e.time.of(Date.now())))}return Io(e,[{key:"newDoc",get:function(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}},{key:"newSelection",get:function(){return this.selection||this.startState.selection.map(this.changes)}},{key:"state",get:function(){return this._state||this.startState.applyTransaction(this),this._state}},{key:"annotation",value:function(e){var t,n=bo(this.annotations);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.type==e)return r.value}}catch(e){n.e(e)}finally{n.f()}}},{key:"docChanged",get:function(){return!this.changes.empty}},{key:"reconfigured",get:function(){return this.startState.config!=this.state.config}},{key:"isUserEvent",value:function(t){var n=this.annotation(e.userEvent);return!(!n||!(n==t||n.length>t.length&&n.slice(0,t.length)==t&&"."==n[t.length]))}}],[{key:"create",value:function(t,n,r,o,i,a){return new e(t,n,r,o,i,a)}}])}();function yV(e,t){for(var n=[],r=0,o=0;;){var i=void 0,a=void 0;if(r<e.length&&(o==t.length||t[o]>=e[r]))i=e[r++],a=e[r++];else{if(!(o<t.length))return n;i=t[o++],a=t[o++]}!n.length||n[n.length-1]<i?n.push(i,a):n[n.length-1]<a&&(n[n.length-1]=a)}}function bV(e,t,n){var r,o,i,a;return n?(o=t.changes,i=AF.empty(t.changes.length),a=e.changes.compose(t.changes)):(o=t.changes.map(e.changes),i=e.changes.mapDesc(t.changes,!0),a=e.changes.compose(o)),{changes:a,selection:t.selection?t.selection.map(i):null===(r=e.selection)||void 0===r?void 0:r.map(o),effects:mV.mapEffects(e.effects,o).concat(mV.mapEffects(t.effects,i)),annotations:e.annotations.length?e.annotations.concat(t.annotations):t.annotations,scrollIntoView:e.scrollIntoView||t.scrollIntoView}}function wV(e,t,n){var r=t.selection,o=jV(t.annotations);return t.userEvent&&(o=o.concat(gV.userEvent.of(t.userEvent))),{changes:t.changes instanceof AF?t.changes:AF.of(t.changes||[],n,e.facet(cV)),selection:r&&(r instanceof zF?r:zF.single(r.anchor,r.head)),effects:jV(t.effects),annotations:o,scrollIntoView:!!t.scrollIntoView}}function xV(e,t,n){var r=wV(e,t.length?t[0]:{},e.doc.length);t.length&&!1===t[0].filter&&(n=!1);for(var o=1;o<t.length;o++){!1===t[o].filter&&(n=!1);var i=!!t[o].sequential;r=bV(r,wV(e,t[o],i?r.changes.newLength:e.doc.length),i)}var a=gV.create(e,r.changes,r.selection,r.effects,r.annotations,r.scrollIntoView);return function(e){for(var t=e.startState,n=t.facet(fV),r=e,o=n.length-1;o>=0;o--){var i=n[o](e);i&&Object.keys(i).length&&(r=bV(r,wV(t,i,e.changes.newLength),!0))}return r==e?e:gV.create(t,e.changes,e.selection,r.effects,r.annotations,r.scrollIntoView)}(n?function(e){var t,n=e.startState,r=!0,o=bo(n.facet(uV));try{for(o.s();!(t=o.n()).done;){var i=(0,t.value)(e);if(!1===i){r=!1;break}Array.isArray(i)&&(r=!0===r?i:yV(r,i))}}catch(e){o.e(e)}finally{o.f()}if(!0!==r){var a,s;if(!1===r)s=e.changes.invertedDesc,a=AF.empty(n.doc.length);else{var c=e.changes.filter(r);a=c.changes,s=c.filtered.mapDesc(c.changes).invertedDesc}e=gV.create(n,a,e.selection&&e.selection.map(s),mV.mapEffects(e.effects,s),e.annotations,e.scrollIntoView)}for(var u=n.facet(lV),l=u.length-1;l>=0;l--){var f=u[l](e);e=f instanceof gV?f:Array.isArray(f)&&1==f.length&&f[0]instanceof gV?f[0]:xV(n,jV(f),!1)}return e}(a):a)}gV.time=hV.define(),gV.userEvent=hV.define(),gV.addToHistory=hV.define(),gV.remote=hV.define();var kV=[];function jV(e){return null==e?kV:Array.isArray(e)?e:[e]}var SV,CV=function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e}(CV||(CV={})),$V=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;try{SV=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(E_){}function _V(e){return function(t){if(!/\S/.test(t))return CV.Space;if(function(e){if(SV)return SV.test(e);for(var t=0;t<e.length;t++){var n=e[t];if(/\w/.test(n)||n>""&&(n.toUpperCase()!=n.toLowerCase()||$V.test(n)))return!0}return!1}(t))return CV.Word;for(var n=0;n<e.length;n++)if(t.indexOf(e[n])>-1)return CV.Word;return CV.Other}}var OV=function(){function e(t,n,r,o,i,a){Ro(this,e),this.config=t,this.doc=n,this.selection=r,this.values=o,this.status=t.statusTemplate.slice(),this.computeSlot=i,a&&(a._state=this);for(var s=0;s<this.config.dynamicSlots.length;s++)oV(this,s<<1);this.computeSlot=null}return Io(e,[{key:"field",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.config.address[e.id];if(null!=n)return oV(this,n),iV(this,n);if(t)throw new RangeError("Field is not present in this state")}},{key:"update",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return xV(this,t,!0)}},{key:"applyTransaction",value:function(t){var n,r,o=this,i=this.config,a=i,s=a.base,c=a.compartments,u=bo(t.effects);try{for(u.s();!(n=u.n()).done;){var l=n.value;l.is(tV.reconfigure)?(i&&(c=new Map,i.compartments.forEach((function(e,t){return c.set(t,e)})),i=null),c.set(l.value.compartment,l.value.extension)):l.is(mV.reconfigure)?(i=null,s=l.value):l.is(mV.appendConfig)&&(i=null,s=jV(s).concat(l.value))}}catch(e){u.e(e)}finally{u.f()}i?r=t.startState.values.slice():r=new e(i=rV.resolve(s,c,this),this.doc,this.selection,i.dynamicSlots.map((function(){return null})),(function(e,t){return t.reconfigure(e,o)}),null).values;var f=t.startState.facet(sV)?t.newSelection:t.newSelection.asSingle();new e(i,t.newDoc,f,r,(function(e,n){return n.update(e,t)}),t)}},{key:"replaceSelection",value:function(e){return"string"==typeof e&&(e=this.toText(e)),this.changeByRange((function(t){return{changes:{from:t.from,to:t.to,insert:e},range:zF.cursor(t.from+e.length)}}))}},{key:"changeByRange",value:function(e){for(var t=this.selection,n=e(t.ranges[0]),r=this.changes(n.changes),o=[n.range],i=jV(n.effects),a=1;a<t.ranges.length;a++){for(var s=e(t.ranges[a]),c=this.changes(s.changes),u=c.map(r),l=0;l<a;l++)o[l]=o[l].map(u);var f=r.mapDesc(c,!0);o.push(s.range.map(f)),r=r.compose(u),i=mV.mapEffects(i,u).concat(mV.mapEffects(jV(s.effects),f))}return{changes:r,selection:zF.create(o,t.mainIndex),effects:i}}},{key:"changes",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t instanceof AF?t:AF.of(t,this.doc.length,this.facet(e.lineSeparator))}},{key:"toText",value:function(t){return oF.of(t.split(this.facet(e.lineSeparator)||_F))}},{key:"sliceDoc",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.doc.length;return this.doc.sliceString(e,t,this.lineBreak)}},{key:"facet",value:function(e){var t=this.config.address[e.id];return null==t?e.default:(oV(this,t),iV(this,t))}},{key:"toJSON",value:function(e){var t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(var n in e){var r=e[n];r instanceof JF&&null!=this.config.address[r.id]&&(t[n]=r.spec.toJSON(this.field(e[n]),this))}return t}},{key:"tabSize",get:function(){return this.facet(e.tabSize)}},{key:"lineBreak",get:function(){return this.facet(e.lineSeparator)||"\n"}},{key:"readOnly",get:function(){return this.facet(dV)}},{key:"phrase",value:function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i,a=bo(this.facet(e.phrases));try{for(a.s();!(i=a.n()).done;){var s=i.value;if(Object.prototype.hasOwnProperty.call(s,t)){t=s[t];break}}}catch(e){a.e(e)}finally{a.f()}return r.length&&(t=t.replace(/\$(\$|\d*)/g,(function(e,t){if("$"==t)return"$";var n=+(t||1);return!n||n>r.length?e:r[n-1]}))),t}},{key:"languageDataAt",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,o=[],i=bo(this.facet(aV));try{for(i.s();!(n=i.n()).done;){var a,s=bo((0,n.value)(this,t,r));try{for(s.s();!(a=s.n()).done;){var c=a.value;Object.prototype.hasOwnProperty.call(c,e)&&o.push(c[e])}}catch(e){s.e(e)}finally{s.f()}}}catch(e){i.e(e)}finally{i.f()}return o}},{key:"charCategorizer",value:function(e){return _V(this.languageDataAt("wordChars",e).join(""))}},{key:"wordAt",value:function(e){for(var t=this.doc.lineAt(e),n=t.text,r=t.from,o=t.length,i=this.charCategorizer(e),a=e-r,s=e-r;a>0;){var c=bF(n,a,!1);if(i(n.slice(c,a))!=CV.Word)break;a=c}for(;s<o;){var u=bF(n,s);if(i(n.slice(s,u))!=CV.Word)break;s=u}return a==s?null:zF.range(a+r,s+r)}}],[{key:"fromJSON",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;if(!t||"string"!=typeof t.doc)throw new RangeError("Invalid JSON representation for EditorState");var o=[];if(r){var i=function(){if(Object.prototype.hasOwnProperty.call(t,a)){var e=r[a],n=t[a];o.push(e.init((function(t){return e.spec.fromJSON(n,t)})))}};for(var a in r)i()}return e.create({doc:t.doc,selection:zF.fromJSON(t.selection),extensions:n.extensions?o.concat([n.extensions]):o})}},{key:"create",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=rV.resolve(t.extensions||[],new Map),r=t.doc instanceof oF?t.doc:oF.of((t.doc||"").split(n.staticFacet(e.lineSeparator)||_F)),o=t.selection?t.selection instanceof zF?t.selection:zF.single(t.selection.anchor,t.selection.head):zF.single(0);return BF(o,r.length),n.staticFacet(sV)||(o=o.asSingle()),new e(n,r,o,n.dynamicSlots.map((function(){return null})),(function(e,t){return t.create(e)}),null)}}])}();function MV(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={},i=bo(e);try{for(i.s();!(n=i.n()).done;)for(var a=n.value,s=0,c=Object.keys(a);s<c.length;s++){var u=c[s],l=a[u],f=o[u];if(void 0===f)o[u]=l;else if(f===l||void 0===l);else{if(!Object.hasOwnProperty.call(r,u))throw new Error("Config merge conflict for field "+u);o[u]=r[u](f,l)}}}catch(e){i.e(e)}finally{i.f()}for(var d in t)void 0===o[d]&&(o[d]=t[d]);return o}OV.allowMultipleSelections=sV,OV.tabSize=qF.define({combine:function(e){return e.length?e[0]:4}}),OV.lineSeparator=cV,OV.readOnly=dV,OV.phrases=qF.define({compare:function(e,t){var n=Object.keys(e),r=Object.keys(t);return n.length==r.length&&n.every((function(n){return e[n]==t[n]}))}}),OV.languageData=aV,OV.changeFilter=uV,OV.transactionFilter=lV,OV.transactionExtender=fV,tV.reconfigure=mV.define();var AV=function(){return Io((function e(){Ro(this,e)}),[{key:"eq",value:function(e){return this==e}},{key:"range",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return EV.create(e,t,this)}}])}();AV.prototype.startSide=AV.prototype.endSide=0,AV.prototype.point=!1,AV.prototype.mapMode=OF.TrackDel;var EV=function(){function e(t,n,r){Ro(this,e),this.from=t,this.to=n,this.value=r}return Io(e,null,[{key:"create",value:function(t,n,r){return new e(t,n,r)}}])}();function PV(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}var TV=function(){function e(t,n,r,o){Ro(this,e),this.from=t,this.to=n,this.value=r,this.maxPoint=o}return Io(e,[{key:"length",get:function(){return this.to[this.to.length-1]}},{key:"findIndex",value:function(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=n?this.to:this.from,i=r,a=o.length;;){if(i==a)return i;var s=i+a>>1,c=o[s]-e||(n?this.value[s].endSide:this.value[s].startSide)-t;if(s==i)return c>=0?i:a;c>=0?a=s:i=s+1}}},{key:"between",value:function(e,t,n,r){for(var o=this.findIndex(t,-1e9,!0),i=this.findIndex(n,1e9,!1,o);o<i;o++)if(!1===r(this.from[o]+e,this.to[o]+e,this.value[o]))return!1}},{key:"map",value:function(t,n){for(var r=[],o=[],i=[],a=-1,s=-1,c=0;c<this.value.length;c++){var u=this.value[c],l=this.from[c]+t,f=this.to[c]+t,d=void 0,h=void 0;if(l==f){var v=n.mapPos(l,u.startSide,u.mapMode);if(null==v)continue;if(d=h=v,u.startSide!=u.endSide&&(h=n.mapPos(l,u.endSide))<d)continue}else if((d=n.mapPos(l,u.startSide))>(h=n.mapPos(f,u.endSide))||d==h&&u.startSide>0&&u.endSide<=0)continue;(h-d||u.endSide-u.startSide)<0||(a<0&&(a=d),u.point&&(s=Math.max(s,h-d)),r.push(u),o.push(d-a),i.push(h-a))}return{mapped:r.length?new e(o,i,r,s):null,pos:a}}}])}(),RV=function(){function e(t,n,r,o){Ro(this,e),this.chunkPos=t,this.chunk=n,this.nextLayer=r,this.maxPoint=o}return Io(e,[{key:"length",get:function(){var e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}},{key:"size",get:function(){if(this.isEmpty)return 0;var e,t=this.nextLayer.size,n=bo(this.chunk);try{for(n.s();!(e=n.n()).done;){t+=e.value.value.length}}catch(e){n.e(e)}finally{n.f()}return t}},{key:"chunkEnd",value:function(e){return this.chunkPos[e]+this.chunk[e].length}},{key:"update",value:function(t){var n=t.add,r=void 0===n?[]:n,o=t.sort,i=void 0!==o&&o,a=t.filterFrom,s=void 0===a?0:a,c=t.filterTo,u=void 0===c?this.length:c,l=t.filter;if(0==r.length&&!l)return this;if(i&&(r=r.slice().sort(PV)),this.isEmpty)return r.length?e.of(r):this;for(var f=new DV(this,null,-1).goto(0),d=0,h=[],v=new NV;f.value||d<r.length;)if(d<r.length&&(f.from-r[d].from||f.startSide-r[d].value.startSide)>=0){var p=r[d++];v.addInner(p.from,p.to,p.value)||h.push(p)}else 1==f.rangeIndex&&f.chunkIndex<this.chunk.length&&(d==r.length||this.chunkEnd(f.chunkIndex)<r[d].from)&&(!l||s>this.chunkEnd(f.chunkIndex)||u<this.chunkPos[f.chunkIndex])&&v.addChunk(this.chunkPos[f.chunkIndex],this.chunk[f.chunkIndex])?f.nextChunk():((!l||s>f.to||u<f.from||l(f.from,f.to,f.value))&&(v.addInner(f.from,f.to,f.value)||h.push(EV.create(f.from,f.to,f.value))),f.next());return v.finishInner(this.nextLayer.isEmpty&&!h.length?e.empty:this.nextLayer.update({add:h,filter:l,filterFrom:s,filterTo:u}))}},{key:"map",value:function(t){if(t.empty||this.isEmpty)return this;for(var n=[],r=[],o=-1,i=0;i<this.chunk.length;i++){var a=this.chunkPos[i],s=this.chunk[i],c=t.touchesRange(a,a+s.length);if(!1===c)o=Math.max(o,s.maxPoint),n.push(s),r.push(t.mapPos(a));else if(!0===c){var u=s.map(a,t),l=u.mapped,f=u.pos;l&&(o=Math.max(o,l.maxPoint),n.push(l),r.push(f))}}var d=this.nextLayer.map(t);return 0==n.length?d:new e(r,n,d||e.empty,o)}},{key:"between",value:function(e,t,n){if(!this.isEmpty){for(var r=0;r<this.chunk.length;r++){var o=this.chunkPos[r],i=this.chunk[r];if(t>=o&&e<=o+i.length&&!1===i.between(o,e-o,t-o,n))return}this.nextLayer.between(e,t,n)}}},{key:"iter",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return zV.from([this]).goto(e)}},{key:"isEmpty",get:function(){return this.nextLayer==this}}],[{key:"create",value:function(t,n,r,o){return new e(t,n,r,o)}},{key:"iter",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return zV.from(e).goto(t)}},{key:"compare",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,i=e.filter((function(e){return e.maxPoint>0||!e.isEmpty&&e.maxPoint>=o})),a=t.filter((function(e){return e.maxPoint>0||!e.isEmpty&&e.maxPoint>=o})),s=IV(i,a,n),c=new LV(i,s,o),u=new LV(a,s,o);n.iterGaps((function(e,t,n){return qV(c,e,u,t,n,r)})),n.empty&&0==n.length&&qV(c,0,u,0,0,r)}},{key:"eq",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3?arguments[3]:void 0;null==r&&(r=999999999);var o=e.filter((function(e){return!e.isEmpty&&t.indexOf(e)<0})),i=t.filter((function(t){return!t.isEmpty&&e.indexOf(t)<0}));if(o.length!=i.length)return!1;if(!o.length)return!0;for(var a=IV(o,i),s=new LV(o,a,0).goto(n),c=new LV(i,a,0).goto(n);;){if(s.to!=c.to||!FV(s.active,c.active)||s.point&&(!c.point||!s.point.eq(c.point)))return!1;if(s.to>r)return!0;s.next(),c.next()}}},{key:"spans",value:function(e,t,n,r){for(var o=new LV(e,null,arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1).goto(t),i=t,a=o.openStart;;){var s=Math.min(o.to,n);if(o.point){var c=o.activeForPoint(o.to),u=o.pointFrom<t?c.length+1:o.point.startSide<0?c.length:Math.min(c.length,a);r.point(i,s,o.point,c,u,o.pointRank),a=Math.min(o.openEnd(s),c.length)}else s>i&&(r.span(i,s,o.active,a),a=o.openEnd(s));if(o.to>n)return a+(o.point&&o.to>n?1:0);i=o.to,o.next()}}},{key:"of",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=new NV,o=bo(e instanceof EV?[e]:n?function(e){if(e.length>1)for(var t=e[0],n=1;n<e.length;n++){var r=e[n];if(PV(t,r)>0)return e.slice().sort(PV);t=r}return e}(e):e);try{for(o.s();!(t=o.n()).done;){var i=t.value;r.add(i.from,i.to,i.value)}}catch(e){o.e(e)}finally{o.f()}return r.finish()}},{key:"join",value:function(t){if(!t.length)return e.empty;for(var n=t[t.length-1],r=t.length-2;r>=0;r--)for(var o=t[r];o!=e.empty;o=o.nextLayer)n=new e(o.chunkPos,o.chunk,n,Math.max(o.maxPoint,n.maxPoint));return n}}])}();RV.empty=new RV([],[],null,-1),RV.empty.nextLayer=RV.empty;var NV=function(){function e(){Ro(this,e),this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}return Io(e,[{key:"finishChunk",value:function(e){this.chunks.push(new TV(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}},{key:"add",value:function(t,n,r){this.addInner(t,n,r)||(this.nextLayer||(this.nextLayer=new e)).add(t,n,r)}},{key:"addInner",value:function(e,t,n){var r=e-this.lastTo||n.startSide-this.last.endSide;if(r<=0&&(e-this.lastFrom||n.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(r<0)&&(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=n,this.lastFrom=e,this.lastTo=t,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),!0)}},{key:"addChunk",value:function(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);var n=t.value.length-1;return this.last=t.value[n],this.lastFrom=t.from[n]+e,this.lastTo=t.to[n]+e,!0}},{key:"finish",value:function(){return this.finishInner(RV.empty)}},{key:"finishInner",value:function(e){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return e;var t=RV.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}])}();function IV(e,t,n){var r,o=new Map,i=bo(e);try{for(i.s();!(r=i.n()).done;)for(var a=r.value,s=0;s<a.chunk.length;s++)a.chunk[s].maxPoint<=0&&o.set(a.chunk[s],a.chunkPos[s])}catch(e){i.e(e)}finally{i.f()}var c,u=new Set,l=bo(t);try{for(l.s();!(c=l.n()).done;)for(var f=c.value,d=0;d<f.chunk.length;d++){var h=o.get(f.chunk[d]);null==h||(n?n.mapPos(h):h)!=f.chunkPos[d]||(null==n?void 0:n.touchesRange(h,h+f.chunk[d].length))||u.add(f.chunk[d])}}catch(e){l.e(e)}finally{l.f()}return u}var DV=function(){return Io((function e(t,n,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;Ro(this,e),this.layer=t,this.skip=n,this.minPoint=r,this.rank=o}),[{key:"startSide",get:function(){return this.value?this.value.startSide:0}},{key:"endSide",get:function(){return this.value?this.value.endSide:0}},{key:"goto",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1e9;return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,t,!1),this}},{key:"gotoInner",value:function(e,t,n){for(;this.chunkIndex<this.layer.chunk.length;){var r=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(r)||this.layer.chunkEnd(this.chunkIndex)<e||r.maxPoint<this.minPoint))break;this.chunkIndex++,n=!1}if(this.chunkIndex<this.layer.chunk.length){var o=this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],t,!0);(!n||this.rangeIndex<o)&&this.setRangeIndex(o)}this.next()}},{key:"forward",value:function(e,t){(this.to-e||this.endSide-t)<0&&this.gotoInner(e,t,!0)}},{key:"next",value:function(){for(;;){if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}var e=this.layer.chunkPos[this.chunkIndex],t=this.layer.chunk[this.chunkIndex],n=e+t.from[this.rangeIndex];if(this.from=n,this.to=e+t.to[this.rangeIndex],this.value=t.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}},{key:"setRangeIndex",value:function(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=e}},{key:"nextChunk",value:function(){this.chunkIndex++,this.rangeIndex=0,this.next()}},{key:"compare",value:function(e){return this.from-e.from||this.startSide-e.startSide||this.rank-e.rank||this.to-e.to||this.endSide-e.endSide}}])}(),zV=function(){function e(t){Ro(this,e),this.heap=t}return Io(e,[{key:"startSide",get:function(){return this.value?this.value.startSide:0}},{key:"goto",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1e9,r=bo(this.heap);try{for(r.s();!(t=r.n()).done;){t.value.goto(e,n)}}catch(e){r.e(e)}finally{r.f()}for(var o=this.heap.length>>1;o>=0;o--)BV(this.heap,o);return this.next(),this}},{key:"forward",value:function(e,t){var n,r=bo(this.heap);try{for(r.s();!(n=r.n()).done;){n.value.forward(e,t)}}catch(e){r.e(e)}finally{r.f()}for(var o=this.heap.length>>1;o>=0;o--)BV(this.heap,o);(this.to-e||this.value.endSide-t)<0&&this.next()}},{key:"next",value:function(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{var e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),BV(this.heap,0)}}}],[{key:"from",value:function(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,o=[],i=0;i<t.length;i++)for(var a=t[i];!a.isEmpty;a=a.nextLayer)a.maxPoint>=r&&o.push(new DV(a,n,r,i));return 1==o.length?o[0]:new e(o)}}])}();function BV(e,t){for(var n=e[t];;){var r=1+(t<<1);if(r>=e.length)break;var o=e[r];if(r+1<e.length&&o.compare(e[r+1])>=0&&(o=e[r+1],r++),n.compare(o)<0)break;e[r]=n,e[t]=o,t=r}}var LV=function(){return Io((function e(t,n,r){Ro(this,e),this.minPoint=r,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=zV.from(t,n,r)}),[{key:"goto",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1e9;return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}},{key:"forward",value:function(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}},{key:"removeActive",value:function(e){VV(this.active,e),VV(this.activeTo,e),VV(this.activeRank,e),this.minActive=WV(this.active,this.activeTo)}},{key:"addActive",value:function(e){for(var t=0,n=this.cursor,r=n.value,o=n.to,i=n.rank;t<this.activeRank.length&&(i-this.activeRank[t]||o-this.activeTo[t])>0;)t++;HV(this.active,t,r),HV(this.activeTo,t,o),HV(this.activeRank,t,i),e&&HV(e,t,this.cursor.from),this.minActive=WV(this.active,this.activeTo)}},{key:"next",value:function(){var e=this.to,t=this.point;this.point=null;for(var n=this.openStart<0?[]:null;;){var r=this.minActive;if(r>-1&&(this.activeTo[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)<0){if(this.activeTo[r]>e){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),n&&VV(n,r)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}var o=this.cursor.value;if(o.point){if(!(t&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)){this.point=o,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=o.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}this.cursor.next()}else this.addActive(n),this.cursor.next()}}if(n){this.openStart=0;for(var i=n.length-1;i>=0&&n[i]<e;i--)this.openStart++}}},{key:"activeForPoint",value:function(e){if(!this.active.length)return this.active;for(var t=[],n=this.active.length-1;n>=0&&!(this.activeRank[n]<this.pointRank);n--)(this.activeTo[n]>e||this.activeTo[n]==e&&this.active[n].endSide>=this.point.endSide)&&t.push(this.active[n]);return t.reverse()}},{key:"openEnd",value:function(e){for(var t=0,n=this.activeTo.length-1;n>=0&&this.activeTo[n]>e;n--)t++;return t}}])}();function qV(e,t,n,r,o,i){e.goto(t),n.goto(r);for(var a=r+o,s=r,c=r-t;;){var u=e.to+c-n.to||e.endSide-n.endSide,l=u<0?e.to+c:n.to,f=Math.min(l,a);if(e.point||n.point?e.point&&n.point&&(e.point==n.point||e.point.eq(n.point))&&FV(e.activeForPoint(e.to),n.activeForPoint(n.to))||i.comparePoint(s,f,e.point,n.point):f>s&&!FV(e.active,n.active)&&i.compareRange(s,f,e.active,n.active),l>a)break;s=l,u<=0&&e.next(),u>=0&&n.next()}}function FV(e,t){if(e.length!=t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!=t[n]&&!e[n].eq(t[n]))return!1;return!0}function VV(e,t){for(var n=t,r=e.length-1;n<r;n++)e[n]=e[n+1];e.pop()}function HV(e,t,n){for(var r=e.length-1;r>=t;r--)e[r+1]=e[r];e[t]=n}function WV(e,t){for(var n=-1,r=1e9,o=0;o<t.length;o++)(t[o]-r||e[o].endSide-e[n].endSide)<0&&(n=o,r=t[o]);return n}function UV(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,r=0,o=0;o<n;)9==e.charCodeAt(o)?(r+=t-r%t,o++):(r++,o=bF(e,o));return r}function JV(e,t,n,r){for(var o=0,i=0;;){if(i>=t)return o;if(o==e.length)break;i+=9==e.charCodeAt(o)?n-i%n:1,o=bF(e,o)}return!0===r?-1:e.length}for(var KV="undefined"==typeof Symbol?"__ͼ":Symbol.for("ͼ"),GV="undefined"==typeof Symbol?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),QV="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:{},YV=function(){return Io((function e(t,n){Ro(this,e),this.rules=[];var r=(n||{}).finish;function o(e){return/^@/.test(e)?[e]:e.split(/,\s*/)}function i(e,t,n,a){var s=[],c=/^@(\w+)\b/.exec(e[0]),u=c&&"keyframes"==c[1];if(c&&null==t)return n.push(e[0]+";");for(var l in t){var f=t[l];if(/&/.test(l))i(l.split(/,\s*/).map((function(t){return e.map((function(e){return t.replace(/&/,e)}))})).reduce((function(e,t){return e.concat(t)})),f,n);else if(f&&"object"==Vo(f)){if(!c)throw new RangeError("The value of a property ("+l+") should be a primitive value.");i(o(l),f,s,u)}else null!=f&&s.push(l.replace(/_.*/,"").replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()}))+": "+f+";")}(s.length||u)&&n.push((!r||c||a?e:e.map(r)).join(", ")+" {"+s.join(" ")+"}")}for(var a in t)i(o(a),t[a],this.rules)}),[{key:"getRules",value:function(){return this.rules.join("\n")}}],[{key:"newName",value:function(){var e=QV[KV]||1;return QV[KV]=e+1,"ͼ"+e.toString(36)}},{key:"mount",value:function(e,t,n){var r=e[GV],o=n&&n.nonce;r?o&&r.setNonce(o):r=new ZV(e,o),r.mount(Array.isArray(t)?t:[t])}}])}(),XV=new Map,ZV=function(){return Io((function e(t,n){Ro(this,e);var r=t.ownerDocument||t,o=r.defaultView;if(!t.head&&t.adoptedStyleSheets&&o.CSSStyleSheet){var i=XV.get(r);if(i)return t.adoptedStyleSheets=[i.sheet].concat(Bo(t.adoptedStyleSheets)),t[GV]=i;this.sheet=new o.CSSStyleSheet,t.adoptedStyleSheets=[this.sheet].concat(Bo(t.adoptedStyleSheets)),XV.set(r,this)}else{this.styleTag=r.createElement("style"),n&&this.styleTag.setAttribute("nonce",n);var a=t.head||t;a.insertBefore(this.styleTag,a.firstChild)}this.modules=[],t[GV]=this}),[{key:"mount",value:function(e){for(var t=this.sheet,n=0,r=0,o=0;o<e.length;o++){var i=e[o],a=this.modules.indexOf(i);if(a<r&&a>-1&&(this.modules.splice(a,1),r--,a=-1),-1==a){if(this.modules.splice(r++,0,i),t)for(var s=0;s<i.rules.length;s++)t.insertRule(i.rules[s],n++)}else{for(;r<a;)n+=this.modules[r++].rules.length;n+=i.rules.length,r++}}if(!t){for(var c="",u=0;u<this.modules.length;u++)c+=this.modules[u].getRules()+"\n";this.styleTag.textContent=c}}},{key:"setNonce",value:function(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}}])}(),eH={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},tH={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},nH="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),rH="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),oH=0;oH<10;oH++)eH[48+oH]=eH[96+oH]=String(oH);for(oH=1;oH<=24;oH++)eH[oH+111]="F"+oH;for(oH=65;oH<=90;oH++)eH[oH]=String.fromCharCode(oH+32),tH[oH]=String.fromCharCode(oH);for(var iH in eH)tH.hasOwnProperty(iH)||(tH[iH]=eH[iH]);function aH(e){return(11==e.nodeType?e.getSelection?e:e.ownerDocument:e).getSelection()}function sH(e,t){return!!t&&(e==t||e.contains(1!=t.nodeType?t.parentNode:t))}function cH(e,t){if(!t.anchorNode)return!1;try{return sH(e,t.anchorNode)}catch(e){return!1}}function uH(e){return 3==e.nodeType?xH(e,0,e.nodeValue.length).getClientRects():1==e.nodeType?e.getClientRects():[]}function lH(e,t,n,r){return!!n&&(dH(e,t,n,r,-1)||dH(e,t,n,r,1))}function fH(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t}function dH(e,t,n,r,o){for(;;){if(e==n&&t==r)return!0;if(t==(o<0?0:hH(e))){if("DIV"==e.nodeName)return!1;var i=e.parentNode;if(!i||1!=i.nodeType)return!1;t=fH(e)+(o<0?0:1),e=i}else{if(1!=e.nodeType)return!1;if(1==(e=e.childNodes[t+(o<0?-1:0)]).nodeType&&"false"==e.contentEditable)return!1;t=o<0?hH(e):0}}}function hH(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function vH(e,t){var n=t?e.left:e.right;return{left:n,right:n,top:e.top,bottom:e.bottom}}function pH(e){var t=e.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}function mH(e,t){var n=t.width/e.offsetWidth,r=t.height/e.offsetHeight;return(n>.995&&n<1.005||!isFinite(n)||Math.abs(t.width-e.offsetWidth)<1)&&(n=1),(r>.995&&r<1.005||!isFinite(r)||Math.abs(t.height-e.offsetHeight)<1)&&(r=1),{scaleX:n,scaleY:r}}var gH,yH=function(){return Io((function e(){Ro(this,e),this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}),[{key:"eq",value:function(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}},{key:"setRange",value:function(e){var t=e.anchorNode,n=e.focusNode;this.set(t,Math.min(e.anchorOffset,t?hH(t):0),n,Math.min(e.focusOffset,n?hH(n):0))}},{key:"set",value:function(e,t,n,r){this.anchorNode=e,this.anchorOffset=t,this.focusNode=n,this.focusOffset=r}}])}(),bH=null;function wH(e){if(e.setActive)return e.setActive();if(bH)return e.focus(bH);for(var t=[],n=e;n&&(t.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(e.focus(null==bH?{get preventScroll(){return bH={preventScroll:!0},!0}}:void 0),!bH){bH=!1;for(var r=0;r<t.length;){var o=t[r++],i=t[r++],a=t[r++];o.scrollTop!=i&&(o.scrollTop=i),o.scrollLeft!=a&&(o.scrollLeft=a)}}}function xH(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=gH||(gH=document.createRange());return r.setEnd(e,n),r.setStart(e,t),r}function kH(e,t,n,r){var o={key:t,code:t,keyCode:n,which:n,cancelable:!0};r&&(o.altKey=r.altKey,o.ctrlKey=r.ctrlKey,o.shiftKey=r.shiftKey,o.metaKey=r.metaKey);var i=new KeyboardEvent("keydown",o);i.synthetic=!0,e.dispatchEvent(i);var a=new KeyboardEvent("keyup",o);return a.synthetic=!0,e.dispatchEvent(a),i.defaultPrevented||a.defaultPrevented}function jH(e){for(;e.attributes.length;)e.removeAttributeNode(e.attributes[0])}function SH(e){return e.scrollTop>Math.max(1,e.scrollHeight-e.clientHeight-4)}var CH=function(){function e(t,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];Ro(this,e),this.node=t,this.offset=n,this.precise=r}return Io(e,null,[{key:"before",value:function(t,n){return new e(t.parentNode,fH(t),n)}},{key:"after",value:function(t,n){return new e(t.parentNode,fH(t)+1,n)}}])}(),$H=[],_H=function(){function e(){Ro(this,e),this.parent=null,this.dom=null,this.flags=2}return Io(e,[{key:"overrideDOMText",get:function(){return null}},{key:"posAtStart",get:function(){return this.parent?this.parent.posBefore(this):0}},{key:"posAtEnd",get:function(){return this.posAtStart+this.length}},{key:"posBefore",value:function(e){var t,n=this.posAtStart,r=bo(this.children);try{for(r.s();!(t=r.n()).done;){var o=t.value;if(o==e)return n;n+=o.length+o.breakAfter}}catch(e){r.e(e)}finally{r.f()}throw new RangeError("Invalid child in posBefore")}},{key:"posAfter",value:function(e){return this.posBefore(e)+e.length}},{key:"sync",value:function(t,n){if(2&this.flags){var r,o,i=this.dom,a=null,s=bo(this.children);try{for(s.s();!(o=s.n()).done;){var c=o.value;if(7&c.flags){if(!c.dom&&(r=a?a.nextSibling:i.firstChild)){var u=e.get(r);(!u||!u.parent&&u.canReuseDOM(c))&&c.reuseDOM(r)}c.sync(t,n),c.flags&=-8}if(r=a?a.nextSibling:i.firstChild,n&&!n.written&&n.node==i&&r!=c.dom&&(n.written=!0),c.dom.parentNode==i)for(;r&&r!=c.dom;)r=OH(r);else i.insertBefore(c.dom,r);a=c.dom}}catch(e){s.e(e)}finally{s.f()}for((r=a?a.nextSibling:i.firstChild)&&n&&n.node==i&&(n.written=!0);r;)r=OH(r)}else if(1&this.flags){var l,f=bo(this.children);try{for(f.s();!(l=f.n()).done;){var d=l.value;7&d.flags&&(d.sync(t,n),d.flags&=-8)}}catch(e){f.e(e)}finally{f.f()}}}},{key:"reuseDOM",value:function(e){}},{key:"localPosFromDOM",value:function(t,n){var r;if(t==this.dom)r=this.dom.childNodes[n];else{for(var o=0==hH(t)?0:0==n?-1:1;;){var i=t.parentNode;if(i==this.dom)break;0==o&&i.firstChild!=i.lastChild&&(o=t==i.firstChild?-1:1),t=i}r=o<0?t:t.nextSibling}if(r==this.dom.firstChild)return 0;for(;r&&!e.get(r);)r=r.nextSibling;if(!r)return this.length;for(var a=0,s=0;;a++){var c=this.children[a];if(c.dom==r)return s;s+=c.length+c.breakAfter}}},{key:"domBoundsAround",value:function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=-1,o=-1,i=-1,a=-1,s=0,c=n,u=n;s<this.children.length;s++){var l=this.children[s],f=c+l.length;if(c<e&&f>t)return l.domBoundsAround(e,t,c);if(f>=e&&-1==r&&(r=s,o=c),c>t&&l.dom.parentNode==this.dom){i=s,a=u;break}u=f,c=f+l.breakAfter}return{from:o,to:a<0?n+this.length:a,startDOM:(r?this.children[r-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:i<this.children.length&&i>=0?this.children[i].dom:null}}},{key:"markDirty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.flags|=2,this.markParentsDirty(e)}},{key:"markParentsDirty",value:function(e){for(var t=this.parent;t;t=t.parent){if(e&&(t.flags|=2),1&t.flags)return;t.flags|=1,e=!1}}},{key:"setParent",value:function(e){this.parent!=e&&(this.parent=e,7&this.flags&&this.markParentsDirty(!0))}},{key:"setDOM",value:function(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}},{key:"rootView",get:function(){for(var e=this;;){var t=e.parent;if(!t)return e;e=t}}},{key:"replaceChildren",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:$H;this.markDirty();for(var o=e;o<t;o++){var i=this.children[o];i.parent==this&&r.indexOf(i)<0&&i.destroy()}(n=this.children).splice.apply(n,[e,t-e].concat(Bo(r)));for(var a=0;a<r.length;a++)r[a].setParent(this)}},{key:"ignoreMutation",value:function(e){return!1}},{key:"ignoreEvent",value:function(e){return!1}},{key:"childCursor",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.length;return new MH(this.children,e,this.children.length)}},{key:"childPos",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this.childCursor().findPos(e,t)}},{key:"toString",value:function(){var e=this.constructor.name.replace("View","");return e+(this.children.length?"("+this.children.join()+")":this.length?"["+("Text"==e?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}},{key:"isEditable",get:function(){return!0}},{key:"isWidget",get:function(){return!1}},{key:"isHidden",get:function(){return!1}},{key:"merge",value:function(e,t,n,r,o,i){return!1}},{key:"become",value:function(e){return!1}},{key:"canReuseDOM",value:function(e){return e.constructor==this.constructor&&!(8&(this.flags|e.flags))}},{key:"getSide",value:function(){return 0}},{key:"destroy",value:function(){var e,t=bo(this.children);try{for(t.s();!(e=t.n()).done;){var n=e.value;n.parent==this&&n.destroy()}}catch(e){t.e(e)}finally{t.f()}this.parent=null}}],[{key:"get",value:function(e){return e.cmView}}])}();function OH(e){var t=e.nextSibling;return e.parentNode.removeChild(e),t}_H.prototype.breakAfter=0;var MH=function(){return Io((function e(t,n,r){Ro(this,e),this.children=t,this.pos=n,this.i=r,this.off=0}),[{key:"findPos",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;;){if(e>this.pos||e==this.pos&&(t>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;var n=this.children[--this.i];this.pos-=n.length+n.breakAfter}}}])}();function AH(e,t,n,r,o,i,a,s,c){var u=e.children,l=u.length?u[t]:null,f=i.length?i[i.length-1]:null,d=f?f.breakAfter:a;if(!(t==r&&l&&!a&&!d&&i.length<2&&l.merge(n,o,i.length?f:null,0==n,s,c))){if(r<u.length){var h=u[r];h&&(o<h.length||h.breakAfter&&(null==f?void 0:f.breakAfter))?(t==r&&(h=h.split(o),o=0),!d&&f&&h.merge(0,o,f,!0,0,c)?i[i.length-1]=h:((o||h.children.length&&!h.children[0].length)&&h.merge(0,o,null,!1,0,c),i.push(h))):(null==h?void 0:h.breakAfter)&&(f?f.breakAfter=1:a=1),r++}for(l&&(l.breakAfter=a,n>0&&(!a&&i.length&&l.merge(n,l.length,i[0],!1,s,0)?l.breakAfter=i.shift().breakAfter:(n<l.length||l.children.length&&0==l.children[l.children.length-1].length)&&l.merge(n,l.length,null,!1,s,0),t++));t<r&&i.length;)if(u[r-1].become(i[i.length-1]))r--,i.pop(),c=i.length?0:s;else{if(!u[t].become(i[0]))break;t++,i.shift(),s=i.length?0:c}!i.length&&t&&r<u.length&&!u[t-1].breakAfter&&u[r].merge(0,0,u[t-1],!1,s,c)&&t--,(t<r||i.length)&&e.replaceChildren(t,r,i)}}function EH(e,t,n,r,o,i){var a,s=e.childCursor(),c=s.findPos(n,1),u=c.i,l=c.off,f=s.findPos(t,-1),d=f.i,h=f.off,v=t-n,p=bo(r);try{for(p.s();!(a=p.n()).done;){v+=a.value.length}}catch(e){p.e(e)}finally{p.f()}e.length+=v,AH(e,d,h,u,l,r,0,o,i)}var PH="undefined"!=typeof navigator?navigator:{userAgent:"",vendor:"",platform:""},TH="undefined"!=typeof document?document:{documentElement:{style:{}}},RH=/Edge\/(\d+)/.exec(PH.userAgent),NH=/MSIE \d/.test(PH.userAgent),IH=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(PH.userAgent),DH=!!(NH||IH||RH),zH=!DH&&/gecko\/(\d+)/i.test(PH.userAgent),BH=!DH&&/Chrome\/(\d+)/.exec(PH.userAgent),LH="webkitFontSmoothing"in TH.documentElement.style,qH=!DH&&/Apple Computer/.test(PH.vendor),FH=qH&&(/Mobile\/\w+/.test(PH.userAgent)||PH.maxTouchPoints>2),VH={mac:FH||/Mac/.test(PH.platform),windows:/Win/.test(PH.platform),linux:/Linux|X11/.test(PH.platform),ie:DH,ie_version:NH?TH.documentMode||6:IH?+IH[1]:RH?+RH[1]:0,gecko:zH,gecko_version:zH?+(/Firefox\/(\d+)/.exec(PH.userAgent)||[0,0])[1]:0,chrome:!!BH,chrome_version:BH?+BH[1]:0,ios:FH,android:/Android\b/.test(PH.userAgent),webkit:LH,safari:qH,webkit_version:LH?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:null!=TH.documentElement.style.tabSize?"tab-size":"-moz-tab-size"},HH=function(e){function t(e){var n;return Ro(this,t),(n=_o(this,t)).text=e,n}return Ao(t,_H),Io(t,[{key:"length",get:function(){return this.text.length}},{key:"createDOM",value:function(e){this.setDOM(e||document.createTextNode(this.text))}},{key:"sync",value:function(e,t){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(t&&t.node==this.dom&&(t.written=!0),this.dom.nodeValue=this.text)}},{key:"reuseDOM",value:function(e){3==e.nodeType&&this.createDOM(e)}},{key:"merge",value:function(e,n,r){return!(8&this.flags||r&&(!(r instanceof t)||this.length-(n-e)+r.length>256||8&r.flags))&&(this.text=this.text.slice(0,e)+(r?r.text:"")+this.text.slice(n),this.markDirty(),!0)}},{key:"split",value:function(e){var n=new t(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),n.flags|=8&this.flags,n}},{key:"localPosFromDOM",value:function(e,t){return e==this.dom?t:t?this.text.length:0}},{key:"domAtPos",value:function(e){return new CH(this.dom,e)}},{key:"domBoundsAround",value:function(e,t,n){return{from:n,to:n+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}},{key:"coordsAt",value:function(e,t){return function(e,t,n){var r=e.nodeValue.length;t>r&&(t=r);var o=t,i=t,a=0;0==t&&n<0||t==r&&n>=0?VH.chrome||VH.gecko||(t?(o--,a=1):i<r&&(i++,a=-1)):n<0?o--:i<r&&i++;var s=xH(e,o,i).getClientRects();if(!s.length)return null;var c=s[(a?a<0:n>=0)?0:s.length-1];VH.safari&&!a&&0==c.width&&(c=Array.prototype.find.call(s,(function(e){return e.width}))||c);return a?vH(c,a<0):c||null}(this.dom,e,t)}}])}(),WH=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;Ro(this,t),(n=_o(this,t)).mark=e,n.children=r,n.length=o;var i,a=bo(r);try{for(a.s();!(i=a.n()).done;){i.value.setParent(n)}}catch(e){a.e(e)}finally{a.f()}return n}return Ao(t,_H),Io(t,[{key:"setAttrs",value:function(e){if(jH(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(var t in this.mark.attrs)e.setAttribute(t,this.mark.attrs[t]);return e}},{key:"canReuseDOM",value:function(e){return go(Mo(t.prototype),"canReuseDOM",this).call(this,e)&&!(8&(this.flags|e.flags))}},{key:"reuseDOM",value:function(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}},{key:"sync",value:function(e,n){this.dom?4&this.flags&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),go(Mo(t.prototype),"sync",this).call(this,e,n)}},{key:"merge",value:function(e,n,r,o,i,a){return(!r||!(!(r instanceof t&&r.mark.eq(this.mark))||e&&i<=0||n<this.length&&a<=0))&&(EH(this,e,n,r?r.children.slice():[],i-1,a-1),this.markDirty(),!0)}},{key:"split",value:function(e){var n,r=[],o=0,i=-1,a=0,s=bo(this.children);try{for(s.s();!(n=s.n()).done;){var c=n.value,u=o+c.length;u>e&&r.push(o<e?c.split(e-o):c),i<0&&o>=e&&(i=a),o=u,a++}}catch(e){s.e(e)}finally{s.f()}var l=this.length-e;return this.length=e,i>-1&&(this.children.length=i,this.markDirty()),new t(this.mark,r,l)}},{key:"domAtPos",value:function(e){return KH(this,e)}},{key:"coordsAt",value:function(e,t){return QH(this,e,t)}}])}();var UH=function(e){function t(e,n,r){var o;return Ro(this,t),(o=_o(this,t)).widget=e,o.length=n,o.side=r,o.prevWidget=null,o}return Ao(t,_H),Io(t,[{key:"split",value:function(e){var n=t.create(this.widget,this.length-e,this.side);return this.length-=e,n}},{key:"sync",value:function(e){this.dom&&this.widget.updateDOM(this.dom,e)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}},{key:"getSide",value:function(){return this.side}},{key:"merge",value:function(e,n,r,o,i,a){return!(r&&(!(r instanceof t&&this.widget.compare(r.widget))||e>0&&i<=0||n<this.length&&a<=0))&&(this.length=e+(r?r.length:0)+(this.length-n),!0)}},{key:"become",value:function(e){return e instanceof t&&e.side==this.side&&this.widget.constructor==e.widget.constructor&&(this.widget.compare(e.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,!0)}},{key:"ignoreMutation",value:function(){return!0}},{key:"ignoreEvent",value:function(e){return this.widget.ignoreEvent(e)}},{key:"overrideDOMText",get:function(){if(0==this.length)return oF.empty;for(var e=this;e.parent;)e=e.parent;var t=e.view,n=t&&t.state.doc,r=this.posAtStart;return n?n.slice(r,r+this.length):oF.empty}},{key:"domAtPos",value:function(e){return(this.length?0==e:this.side>0)?CH.before(this.dom):CH.after(this.dom,e==this.length)}},{key:"domBoundsAround",value:function(){return null}},{key:"coordsAt",value:function(e,t){var n=this.widget.coordsAt(this.dom,e,t);if(n)return n;var r=this.dom.getClientRects(),o=null;if(!r.length)return null;for(var i=this.side?this.side<0:e>0,a=i?r.length-1:0;o=r[a],!(e>0?0==a:a==r.length-1||o.top<o.bottom);a+=i?-1:1);return vH(o,!i)}},{key:"isEditable",get:function(){return!1}},{key:"isWidget",get:function(){return!0}},{key:"isHidden",get:function(){return this.widget.isHidden}},{key:"destroy",value:function(){go(Mo(t.prototype),"destroy",this).call(this),this.dom&&this.widget.destroy(this.dom)}}],[{key:"create",value:function(e,n,r){return new t(e,n,r)}}])}(),JH=function(e){function t(e){var n;return Ro(this,t),(n=_o(this,t)).side=e,n}return Ao(t,_H),Io(t,[{key:"length",get:function(){return 0}},{key:"merge",value:function(){return!1}},{key:"become",value:function(e){return e instanceof t&&e.side==this.side}},{key:"split",value:function(){return new t(this.side)}},{key:"sync",value:function(){if(!this.dom){var e=document.createElement("img");e.className="cm-widgetBuffer",e.setAttribute("aria-hidden","true"),this.setDOM(e)}}},{key:"getSide",value:function(){return this.side}},{key:"domAtPos",value:function(e){return this.side>0?CH.before(this.dom):CH.after(this.dom)}},{key:"localPosFromDOM",value:function(){return 0}},{key:"domBoundsAround",value:function(){return null}},{key:"coordsAt",value:function(e){return this.dom.getBoundingClientRect()}},{key:"overrideDOMText",get:function(){return oF.empty}},{key:"isHidden",get:function(){return!0}}])}();function KH(e,t){for(var n=e.dom,r=e.children,o=0,i=0;o<r.length;o++){var a=r[o],s=i+a.length;if(!(s==i&&a.getSide()<=0)){if(t>i&&t<s&&a.dom.parentNode==n)return a.domAtPos(t-i);if(t<=i)break;i=s}}for(var c=o;c>0;c--){var u=r[c-1];if(u.dom.parentNode==n)return u.domAtPos(u.length)}for(var l=o;l<r.length;l++){var f=r[l];if(f.dom.parentNode==n)return f.domAtPos(0)}return new CH(n,0)}function GH(e,t,n){var r,o=e.children;n>0&&t instanceof WH&&o.length&&(r=o[o.length-1])instanceof WH&&r.mark.eq(t.mark)?GH(r,t.children[0],n-1):(o.push(t),t.setParent(e)),e.length+=t.length}function QH(e,t,n){var r=null,o=-1,i=null,a=-1;!function e(t,s){for(var c=0,u=0;c<t.children.length&&u<=s;c++){var l=t.children[c],f=u+l.length;f>=s&&(l.children.length?e(l,s-u):(!i||i.isHidden&&n>0)&&(f>s||u==f&&l.getSide()>0)?(i=l,a=s-u):(u<s||u==f&&l.getSide()<0&&!l.isHidden)&&(r=l,o=s-u)),u=f}}(e,t);var s=(n<0?r:i)||r||i;return s?s.coordsAt(Math.max(0,s==r?o:a),n):function(e){var t=e.dom.lastChild;if(!t)return e.dom.getBoundingClientRect();var n=uH(t);return n[n.length-1]||null}(e)}function YH(e,t){for(var n in e)"class"==n&&t.class?t.class+=" "+e.class:"style"==n&&t.style?t.style+=";"+e.style:t[n]=e[n];return t}HH.prototype.children=UH.prototype.children=JH.prototype.children=$H;var XH=Object.create(null);function ZH(e,t,n){if(e==t)return!0;e||(e=XH),t||(t=XH);var r=Object.keys(e),o=Object.keys(t);if(r.length-(n&&r.indexOf(n)>-1?1:0)!=o.length-(n&&o.indexOf(n)>-1?1:0))return!1;for(var i=0,a=r;i<a.length;i++){var s=a[i];if(s!=n&&(-1==o.indexOf(s)||e[s]!==t[s]))return!1}return!0}function eW(e,t,n){var r=!1;if(t)for(var o in t)n&&o in n||(r=!0,"style"==o?e.style.cssText="":e.removeAttribute(o));if(n)for(var i in n)t&&t[i]==n[i]||(r=!0,"style"==i?e.style.cssText=n[i]:e.setAttribute(i,n[i]));return r}function tW(e){for(var t=Object.create(null),n=0;n<e.attributes.length;n++){var r=e.attributes[n];t[r.name]=r.value}return t}var nW=function(e){function t(){var e;return Ro(this,t),(e=_o(this,t,arguments)).children=[],e.length=0,e.prevAttrs=void 0,e.attrs=null,e.breakAfter=0,e}return Ao(t,_H),Io(t,[{key:"merge",value:function(e,n,r,o,i,a){if(r){if(!(r instanceof t))return!1;this.dom||r.transferDOM(this)}return o&&this.setDeco(r?r.attrs:null),EH(this,e,n,r?r.children.slice():[],i,a),!0}},{key:"split",value:function(e){var n=new t;if(n.breakAfter=this.breakAfter,0==this.length)return n;var r=this.childPos(e),o=r.i,i=r.off;i&&(n.append(this.children[o].split(i),0),this.children[o].merge(i,this.children[o].length,null,!1,0,0),o++);for(var a=o;a<this.children.length;a++)n.append(this.children[a],0);for(;o>0&&0==this.children[o-1].length;)this.children[--o].destroy();return this.children.length=o,this.markDirty(),this.length=e,n}},{key:"transferDOM",value:function(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}},{key:"setDeco",value:function(e){ZH(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}},{key:"append",value:function(e,t){GH(this,e,t)}},{key:"addLineDeco",value:function(e){var t=e.spec.attributes,n=e.spec.class;t&&(this.attrs=YH(t,this.attrs||{})),n&&(this.attrs=YH({class:n},this.attrs||{}))}},{key:"domAtPos",value:function(e){return KH(this,e)}},{key:"reuseDOM",value:function(e){"DIV"==e.nodeName&&(this.setDOM(e),this.flags|=6)}},{key:"sync",value:function(e,n){var r;this.dom?4&this.flags&&(jH(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(eW(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),go(Mo(t.prototype),"sync",this).call(this,e,n);for(var o=this.dom.lastChild;o&&_H.get(o)instanceof WH;)o=o.lastChild;if(!(o&&this.length&&("BR"==o.nodeName||0!=(null===(r=_H.get(o))||void 0===r?void 0:r.isEditable)||VH.ios&&this.children.some((function(e){return e instanceof HH}))))){var i=document.createElement("BR");i.cmIgnore=!0,this.dom.appendChild(i)}}},{key:"measureTextSize",value:function(){if(0==this.children.length||this.length>20)return null;var e,t,n=0,r=bo(this.children);try{for(r.s();!(t=r.n()).done;){var o=t.value;if(!(o instanceof HH)||/[^ -~]/.test(o.text))return null;var i=uH(o.dom);if(1!=i.length)return null;n+=i[0].width,e=i[0].height}}catch(e){r.e(e)}finally{r.f()}return n?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:n/this.length,textHeight:e}:null}},{key:"coordsAt",value:function(e,t){var n=QH(this,e,t);if(!this.children.length&&n&&this.parent){var r=this.parent.view.viewState.heightOracle,o=n.bottom-n.top;if(Math.abs(o-r.lineHeight)<2&&r.textHeight<o){var i=(o-r.textHeight)/2;return{top:n.top+i,bottom:n.bottom-i,left:n.left,right:n.left}}}return n}},{key:"become",value:function(e){return!1}},{key:"covers",value:function(){return!0}}],[{key:"find",value:function(e,n){for(var r=0,o=0;r<e.children.length;r++){var i=e.children[r],a=o+i.length;if(a>=n){if(i instanceof t)return i;if(a>n)break}o=a+i.breakAfter}return null}}])}(),rW=function(e){function t(e,n,r){var o;return Ro(this,t),(o=_o(this,t)).widget=e,o.length=n,o.deco=r,o.breakAfter=0,o.prevWidget=null,o}return Ao(t,_H),Io(t,[{key:"merge",value:function(e,n,r,o,i,a){return!(r&&(!(r instanceof t&&this.widget.compare(r.widget))||e>0&&i<=0||n<this.length&&a<=0))&&(this.length=e+(r?r.length:0)+(this.length-n),!0)}},{key:"domAtPos",value:function(e){return 0==e?CH.before(this.dom):CH.after(this.dom,e==this.length)}},{key:"split",value:function(e){var n=this.length-e;this.length=e;var r=new t(this.widget,n,this.deco);return r.breakAfter=this.breakAfter,r}},{key:"children",get:function(){return $H}},{key:"sync",value:function(e){this.dom&&this.widget.updateDOM(this.dom,e)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}},{key:"overrideDOMText",get:function(){return this.parent?this.parent.view.state.doc.slice(this.posAtStart,this.posAtEnd):oF.empty}},{key:"domBoundsAround",value:function(){return null}},{key:"become",value:function(e){return e instanceof t&&e.widget.constructor==this.widget.constructor&&(e.widget.compare(this.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,this.deco=e.deco,this.breakAfter=e.breakAfter,!0)}},{key:"ignoreMutation",value:function(){return!0}},{key:"ignoreEvent",value:function(e){return this.widget.ignoreEvent(e)}},{key:"isEditable",get:function(){return!1}},{key:"isWidget",get:function(){return!0}},{key:"coordsAt",value:function(e,t){return this.widget.coordsAt(this.dom,e,t)}},{key:"destroy",value:function(){go(Mo(t.prototype),"destroy",this).call(this),this.dom&&this.widget.destroy(this.dom)}},{key:"covers",value:function(e){var t=this.deco,n=t.startSide,r=t.endSide;return n!=r&&(e<0?n<0:r>0)}}])}(),oW=function(){return Io((function e(){Ro(this,e)}),[{key:"eq",value:function(e){return!1}},{key:"updateDOM",value:function(e,t){return!1}},{key:"compare",value:function(e){return this==e||this.constructor==e.constructor&&this.eq(e)}},{key:"estimatedHeight",get:function(){return-1}},{key:"lineBreaks",get:function(){return 0}},{key:"ignoreEvent",value:function(e){return!0}},{key:"coordsAt",value:function(e,t,n){return null}},{key:"isHidden",get:function(){return!1}},{key:"editable",get:function(){return!1}},{key:"destroy",value:function(e){}}])}(),iW=function(e){return e[e.Text=0]="Text",e[e.WidgetBefore=1]="WidgetBefore",e[e.WidgetAfter=2]="WidgetAfter",e[e.WidgetRange=3]="WidgetRange",e}(iW||(iW={})),aW=function(e){function t(e,n,r,o){var i;return Ro(this,t),(i=_o(this,t)).startSide=e,i.endSide=n,i.widget=r,i.spec=o,i}return Ao(t,AV),Io(t,[{key:"heightRelevant",get:function(){return!1}},{key:"hasHeight",value:function(){return!!this.widget&&this.widget.estimatedHeight>-1}}],[{key:"mark",value:function(e){return new sW(e)}},{key:"widget",value:function(e){var t=Math.max(-1e4,Math.min(1e4,e.side||0)),n=!!e.block;return t+=n&&!e.inlineOrder?t>0?3e8:-4e8:t>0?1e8:-1e8,new uW(e,t,t,n,e.widget||null,!1)}},{key:"replace",value:function(e){var t,n,r=!!e.block;if(e.isBlockGap)t=-5e8,n=4e8;else{var o=lW(e,r);t=(o.start?r?-3e8:-1:5e8)-1,n=1+(o.end?r?2e8:1:-6e8)}return new uW(e,t,n,r,e.widget||null,!0)}},{key:"line",value:function(e){return new cW(e)}},{key:"set",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return RV.of(e,t)}}])}();aW.none=RV.empty;var sW=function(e){function t(e){var n;Ro(this,t);var r=lW(e);return(n=_o(this,t,[r.start?-1:5e8,r.end?1:-6e8,null,e])).tagName=e.tagName||"span",n.class=e.class||"",n.attrs=e.attributes||null,n}return Ao(t,aW),Io(t,[{key:"eq",value:function(e){var n,r;return this==e||e instanceof t&&this.tagName==e.tagName&&(this.class||(null===(n=this.attrs)||void 0===n?void 0:n.class))==(e.class||(null===(r=e.attrs)||void 0===r?void 0:r.class))&&ZH(this.attrs,e.attrs,"class")}},{key:"range",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;if(e>=n)throw new RangeError("Mark decorations may not be empty");return go(Mo(t.prototype),"range",this).call(this,e,n)}}])}();sW.prototype.point=!1;var cW=function(e){function t(e){return Ro(this,t),_o(this,t,[-2e8,-2e8,null,e])}return Ao(t,aW),Io(t,[{key:"eq",value:function(e){return e instanceof t&&this.spec.class==e.spec.class&&ZH(this.spec.attributes,e.spec.attributes)}},{key:"range",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;if(n!=e)throw new RangeError("Line decoration ranges must be zero-length");return go(Mo(t.prototype),"range",this).call(this,e,n)}}])}();cW.prototype.mapMode=OF.TrackBefore,cW.prototype.point=!0;var uW=function(e){function t(e,n,r,o,i,a){var s;return Ro(this,t),(s=_o(this,t,[n,r,i,e])).block=o,s.isReplace=a,s.mapMode=o?n<=0?OF.TrackBefore:OF.TrackAfter:OF.TrackDel,s}return Ao(t,aW),Io(t,[{key:"type",get:function(){return this.startSide!=this.endSide?iW.WidgetRange:this.startSide<=0?iW.WidgetBefore:iW.WidgetAfter}},{key:"heightRelevant",get:function(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}},{key:"eq",value:function(e){return e instanceof t&&(n=this.widget,r=e.widget,n==r||!!(n&&r&&n.compare(r)))&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide;var n,r}},{key:"range",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;if(this.isReplace&&(e>n||e==n&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&n!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return go(Mo(t.prototype),"range",this).call(this,e,n)}}])}();function lW(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.inclusiveStart,r=e.inclusiveEnd;return null==n&&(n=e.inclusive),null==r&&(r=e.inclusive),{start:null!=n?n:t,end:null!=r?r:t}}function fW(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=n.length-1;o>=0&&n[o]+r>=e?n[o]=Math.max(n[o],t):n.push(e,t)}uW.prototype.point=!0;var dW=function(){function e(t,n,r,o){Ro(this,e),this.doc=t,this.pos=n,this.end=r,this.disallowBlockEffectsFor=o,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=t.iter(),this.skip=n}return Io(e,[{key:"posCovered",value:function(){if(0==this.content.length)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;var e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof rW&&e.deco.endSide<0)}},{key:"getLine",value:function(){return this.curLine||(this.content.push(this.curLine=new nW),this.atCursorPos=!0),this.curLine}},{key:"flushBuffer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.bufferMarks;this.pendingBuffer&&(this.curLine.append(hW(new JH(-1),e),e.length),this.pendingBuffer=0)}},{key:"addBlockWidget",value:function(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}},{key:"finish",value:function(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,this.posCovered()||e&&this.content.length&&this.content[this.content.length-1]instanceof rW||this.getLine()}},{key:"buildText",value:function(e,t,n){for(;e>0;){if(this.textOff==this.text.length){var r=this.cursor.next(this.skip),o=r.value,i=r.lineBreak,a=r.done;if(this.skip=0,a)throw new Error("Ran out of text content when drawing inline views");if(i){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}this.text=o,this.textOff=0}var s=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(t.slice(t.length-n)),this.getLine().append(hW(new HH(this.text.slice(this.textOff,this.textOff+s)),t),n),this.atCursorPos=!0,this.textOff+=s,e-=s,n=0}}},{key:"span",value:function(e,t,n,r){this.buildText(t-e,n,r),this.pos=t,this.openStart<0&&(this.openStart=r)}},{key:"point",value:function(e,t,n,r,o,i){if(this.disallowBlockEffectsFor[i]&&n instanceof uW){if(n.block)throw new RangeError("Block decorations may not be specified via plugins");if(t>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}var a=t-e;if(n instanceof uW)if(n.block)n.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new rW(n.widget||vW.block,a,n));else{var s=UH.create(n.widget||vW.inline,a,a?0:n.startSide),c=this.atCursorPos&&!s.isEditable&&o<=r.length&&(e<t||n.startSide>0),u=!s.isEditable&&(e<t||o>r.length||n.startSide<=0),l=this.getLine();2!=this.pendingBuffer||c||s.isEditable||(this.pendingBuffer=0),this.flushBuffer(r),c&&(l.append(hW(new JH(1),r),o),o=r.length+Math.max(0,o-r.length)),l.append(hW(s,r),o),this.atCursorPos=u,this.pendingBuffer=u?e<t||o>r.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=r.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(n);a&&(this.textOff+a<=this.text.length?this.textOff+=a:(this.skip+=a-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=t),this.openStart<0&&(this.openStart=o)}}],[{key:"build",value:function(t,n,r,o,i){var a=new e(t,n,r,i);return a.openEnd=RV.spans(o,n,r,a),a.openStart<0&&(a.openStart=a.openEnd),a.finish(a.openEnd),a}}])}();function hW(e,t){var n,r=bo(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;e=new WH(o,[e],e.length)}}catch(e){r.e(e)}finally{r.f()}return e}var vW=function(e){function t(e){var n;return Ro(this,t),(n=_o(this,t)).tag=e,n}return Ao(t,oW),Io(t,[{key:"eq",value:function(e){return e.tag==this.tag}},{key:"toDOM",value:function(){return document.createElement(this.tag)}},{key:"updateDOM",value:function(e){return e.nodeName.toLowerCase()==this.tag}},{key:"isHidden",get:function(){return!0}}])}();vW.inline=new vW("span"),vW.block=new vW("div");var pW=function(e){return e[e.LTR=0]="LTR",e[e.RTL=1]="RTL",e}(pW||(pW={})),mW=pW.LTR,gW=pW.RTL;function yW(e){for(var t=[],n=0;n<e.length;n++)t.push(1<<+e[n]);return t}for(var bW=yW("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),wW=yW("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),xW=Object.create(null),kW=[],jW=0,SW=["()","[]","{}"];jW<SW.length;jW++){var CW=SW[jW],$W=CW.charCodeAt(0),_W=CW.charCodeAt(1);xW[$W]=_W,xW[_W]=-$W}function OW(e){return e<=247?bW[e]:1424<=e&&e<=1524?2:1536<=e&&e<=1785?wW[e-1536]:1774<=e&&e<=2220?4:8192<=e&&e<=8204?256:64336<=e&&e<=65023?4:1}var MW=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/,AW=function(){return Io((function e(t,n,r){Ro(this,e),this.from=t,this.to=n,this.level=r}),[{key:"dir",get:function(){return this.level%2?gW:mW}},{key:"side",value:function(e,t){return this.dir==t==e?this.to:this.from}},{key:"forward",value:function(e,t){return e==(this.dir==t)}}],[{key:"find",value:function(e,t,n,r){for(var o=-1,i=0;i<e.length;i++){var a=e[i];if(a.from<=t&&a.to>=t){if(a.level==n)return i;(o<0||(0!=r?r<0?a.from<t:a.to>t:e[o].level>a.level))&&(o=i)}}if(o<0)throw new RangeError("Index out of range");return o}}])}();function EW(e,t){if(e.length!=t.length)return!1;for(var n=0;n<e.length;n++){var r=e[n],o=t[n];if(r.from!=o.from||r.to!=o.to||r.direction!=o.direction||!EW(r.inner,o.inner))return!1}return!0}var PW=[];function TW(e,t,n,r,o,i,a){var s=r%2?2:1;if(r%2==o%2)for(var c=t,u=0;c<n;){var l=!0,f=!1;if(u==i.length||c<i[u].from){var d=PW[c];d!=s&&(l=!1,f=16==d)}var h=l||1!=s?null:[],v=l?r:r+1,p=c;e:for(;;)if(u<i.length&&p==i[u].from){if(f)break e;var m=i[u];if(!l)for(var g=m.to,y=u+1;;){if(g==n)break e;if(!(y<i.length&&i[y].from==g)){if(PW[g]==s)break e;break}g=i[y++].to}if(u++,h)h.push(m);else m.from>c&&a.push(new AW(c,m.from,v)),RW(e,m.direction==mW!=!(v%2)?r+1:r,o,m.inner,m.from,m.to,a),c=m.to;p=m.to}else{if(p==n||(l?PW[p]!=s:PW[p]==s))break;p++}h?TW(e,c,p,r+1,o,h,a):c<p&&a.push(new AW(c,p,v)),c=p}else for(var b=n,w=i.length;b>t;){var x=!0,k=!1;if(!w||b>i[w-1].to){var j=PW[b-1];j!=s&&(x=!1,k=16==j)}var S=x||1!=s?null:[],C=x?r:r+1,$=b;e:for(;;)if(w&&$==i[w-1].to){if(k)break e;var _=i[--w];if(!x)for(var O=_.from,M=w;;){if(O==t)break e;if(!M||i[M-1].to!=O){if(PW[O-1]==s)break e;break}O=i[--M].from}if(S)S.push(_);else _.to<b&&a.push(new AW(_.to,b,C)),RW(e,_.direction==mW!=!(C%2)?r+1:r,o,_.inner,_.from,_.to,a),b=_.from;$=_.from}else{if($==t||(x?PW[$-1]!=s:PW[$-1]==s))break;$--}S?TW(e,$,b,r+1,o,S,a):$<b&&a.push(new AW($,b,C)),b=$}}function RW(e,t,n,r,o,i,a){var s=t%2?2:1;!function(e,t,n,r,o){for(var i=0;i<=r.length;i++){for(var a=i?r[i-1].to:t,s=i<r.length?r[i].from:n,c=i?256:o,u=a,l=c,f=c;u<s;u++){var d=OW(e.charCodeAt(u));512==d?d=l:8==d&&4==f&&(d=16),PW[u]=4==d?2:d,7&d&&(f=d),l=d}for(var h=a,v=c,p=c;h<s;h++){var m=PW[h];if(128==m)h<s-1&&v==PW[h+1]&&24&v?m=PW[h]=v:PW[h]=256;else if(64==m){for(var g=h+1;g<s&&64==PW[g];)g++;for(var y=h&&8==v||g<n&&8==PW[g]?1==p?1:8:256,b=h;b<g;b++)PW[b]=y;h=g-1}else 8==m&&1==p&&(PW[h]=1);v=m,7&m&&(p=m)}}}(e,o,i,r,s),function(e,t,n,r,o){for(var i=1==o?2:1,a=0,s=0,c=0;a<=r.length;a++)for(var u,l,f,d=a?r[a-1].to:t,h=a<r.length?r[a].from:n,v=d;v<h;v++)if(l=xW[u=e.charCodeAt(v)])if(l<0){for(var p=s-3;p>=0;p-=3)if(kW[p+1]==-l){var m=kW[p+2],g=2&m?o:4&m?1&m?i:o:0;g&&(PW[v]=PW[kW[p]]=g),s=p;break}}else{if(189==kW.length)break;kW[s++]=v,kW[s++]=u,kW[s++]=c}else if(2==(f=PW[v])||1==f){var y=f==o;c=y?0:1;for(var b=s-3;b>=0;b-=3){var w=kW[b+2];if(2&w)break;if(y)kW[b+2]|=2;else{if(4&w)break;kW[b+2]|=4}}}}(e,o,i,r,s),function(e,t,n,r){for(var o=0,i=r;o<=n.length;o++)for(var a=o?n[o-1].to:e,s=o<n.length?n[o].from:t,c=a;c<s;){var u=PW[c];if(256==u){for(var l=c+1;;)if(l==s){if(o==n.length)break;l=n[o++].to,s=o<n.length?n[o].from:t}else{if(256!=PW[l])break;l++}for(var f=1==i,d=f==(1==(l<t?PW[l]:r))?f?1:2:r,h=l,v=o,p=v?n[v-1].to:e;h>c;)h==p&&(h=n[--v].from,p=v?n[v-1].to:e),PW[--h]=d;c=l}else i=u,c++}}(o,i,r,s),TW(e,o,i,t,n,r,a)}function NW(e){return[new AW(0,e,0)]}var IW="";function DW(e,t,n,r,o){var i,a=r.head-e.from,s=AW.find(t,a,null!==(i=r.bidiLevel)&&void 0!==i?i:-1,r.assoc),c=t[s],u=c.side(o,n);if(a==u){var l=s+=o?1:-1;if(l<0||l>=t.length)return null;a=(c=t[s=l]).side(!o,n),u=c.side(o,n)}var f=bF(e.text,a,c.forward(o,n));(f<c.from||f>c.to)&&(f=u),IW=e.text.slice(Math.min(a,f),Math.max(a,f));var d=s==(o?t.length-1:0)?null:t[s+(o?1:-1)];return d&&f==u&&d.level+(o?0:1)<c.level?zF.cursor(d.side(!o,n)+e.from,d.forward(o,n)?1:-1,d.level):zF.cursor(f+e.from,c.forward(o,n)?-1:1,c.level)}function zW(e,t,n){for(var r=t;r<n;r++){var o=OW(e.charCodeAt(r));if(1==o)return mW;if(2==o||4==o)return gW}return mW}var BW=qF.define(),LW=qF.define(),qW=qF.define(),FW=qF.define(),VW=qF.define(),HW=qF.define(),WW=qF.define(),UW=qF.define({combine:function(e){return e.some((function(e){return e}))}}),JW=qF.define({combine:function(e){return e.some((function(e){return e}))}}),KW=qF.define(),GW=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"nearest",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"nearest",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:5,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:5,a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];Ro(this,e),this.range=t,this.y=n,this.x=r,this.yMargin=o,this.xMargin=i,this.isSnapshot=a}return Io(e,[{key:"map",value:function(t){return t.empty?this:new e(this.range.map(t),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}},{key:"clip",value:function(t){return this.range.to<=t.doc.length?this:new e(zF.cursor(t.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}])}(),QW=mV.define({map:function(e,t){return e.map(t)}});function YW(e,t,n){var r=e.facet(FW);r.length?r[0](t):window.onerror?window.onerror(String(t),n,void 0,void 0,t):n?console.error(n+":",t):console.error(t)}var XW=qF.define({combine:function(e){return!e.length||e[0]}}),ZW=0,eU=qF.define(),tU=function(){function e(t,n,r,o,i){Ro(this,e),this.id=t,this.create=n,this.domEventHandlers=r,this.domEventObservers=o,this.extension=i(this)}return Io(e,null,[{key:"define",value:function(t,n){var r=n||{},o=r.eventHandlers,i=r.eventObservers,a=r.provide,s=r.decorations;return new e(ZW++,t,o,i,(function(e){var t=[eU.of(e)];return s&&t.push(iU.of((function(t){var n=t.plugin(e);return n?s(n):aW.none}))),a&&t.push(a(e)),t}))}},{key:"fromClass",value:function(t,n){return e.define((function(e){return new t(e)}),n)}}])}(),nU=function(){return Io((function e(t){Ro(this,e),this.spec=t,this.mustUpdate=null,this.value=null}),[{key:"update",value:function(e){if(this.value){if(this.mustUpdate){var t=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(t)}catch(e){if(YW(t.state,e,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch(e){}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(t){YW(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}},{key:"destroy",value:function(e){var t;if(null===(t=this.value)||void 0===t?void 0:t.destroy)try{this.value.destroy()}catch(t){YW(e.state,t,"CodeMirror plugin crashed")}}},{key:"deactivate",value:function(){this.spec=this.value=null}}])}(),rU=qF.define(),oU=qF.define(),iU=qF.define(),aU=qF.define(),sU=qF.define(),cU=qF.define();function uU(e,t){var n=e.state.facet(cU);if(!n.length)return n;var r=n.map((function(t){return t instanceof Function?t(e):t})),o=[];return RV.spans(r,t.from,t.to,{point:function(){},span:function(e,n,r,i){for(var a=e-t.from,s=n-t.from,c=o,u=r.length-1;u>=0;u--,i--){var l=r[u].spec.bidiIsolate,f=void 0;if(null==l&&(l=zW(t.text,a,s)),i>0&&c.length&&(f=c[c.length-1]).to==a&&f.direction==l)f.to=s,c=f.inner;else{var d={from:a,to:s,direction:l,inner:[]};c.push(d),c=d.inner}}}}),o}var lU=qF.define();function fU(e){var t,n=0,r=0,o=0,i=0,a=bo(e.state.facet(lU));try{for(a.s();!(t=a.n()).done;){var s=(0,t.value)(e);s&&(null!=s.left&&(n=Math.max(n,s.left)),null!=s.right&&(r=Math.max(r,s.right)),null!=s.top&&(o=Math.max(o,s.top)),null!=s.bottom&&(i=Math.max(i,s.bottom)))}}catch(e){a.e(e)}finally{a.f()}return{left:n,right:r,top:o,bottom:i}}var dU=qF.define(),hU=function(){function e(t,n,r,o){Ro(this,e),this.fromA=t,this.toA=n,this.fromB=r,this.toB=o}return Io(e,[{key:"join",value:function(t){return new e(Math.min(this.fromA,t.fromA),Math.max(this.toA,t.toA),Math.min(this.fromB,t.fromB),Math.max(this.toB,t.toB))}},{key:"addToSet",value:function(e){for(var t=e.length,n=this;t>0;t--){var r=e[t-1];if(!(r.fromA>n.toA)){if(r.toA<n.fromA)break;n=n.join(r),e.splice(t-1,1)}}return e.splice(t,0,n),e}}],[{key:"extendWithRanges",value:function(t,n){if(0==n.length)return t;for(var r=[],o=0,i=0,a=0,s=0;;o++){for(var c=o==t.length?null:t[o],u=a-s,l=c?c.fromB:1e9;i<n.length&&n[i]<l;){var f=n[i],d=n[i+1],h=Math.max(s,f),v=Math.min(l,d);if(h<=v&&new e(h+u,v+u,h,v).addToSet(r),d>l)break;i+=2}if(!c)return r;new e(c.fromA,c.toA,c.fromB,c.toB).addToSet(r),a=c.toA,s=c.toB}}}])}(),vU=function(){function e(t,n,r){Ro(this,e),this.view=t,this.state=n,this.transactions=r,this.flags=0,this.startState=t.state,this.changes=AF.empty(this.startState.doc.length);var o,i=bo(r);try{for(i.s();!(o=i.n()).done;){var a=o.value;this.changes=this.changes.compose(a.changes)}}catch(e){i.e(e)}finally{i.f()}var s=[];this.changes.iterChangedRanges((function(e,t,n,r){return s.push(new hU(e,t,n,r))})),this.changedRanges=s}return Io(e,[{key:"viewportChanged",get:function(){return(4&this.flags)>0}},{key:"heightChanged",get:function(){return(2&this.flags)>0}},{key:"geometryChanged",get:function(){return this.docChanged||(10&this.flags)>0}},{key:"focusChanged",get:function(){return(1&this.flags)>0}},{key:"docChanged",get:function(){return!this.changes.empty}},{key:"selectionSet",get:function(){return this.transactions.some((function(e){return e.selection}))}},{key:"empty",get:function(){return 0==this.flags&&0==this.transactions.length}}],[{key:"create",value:function(t,n,r){return new e(t,n,r)}}])}(),pU=function(e){function t(e){var n;return Ro(this,t),(n=_o(this,t)).view=e,n.decorations=[],n.dynamicDecorationMap=[!1],n.domChanged=null,n.hasComposition=null,n.markedForComposition=new Set,n.compositionBarrier=aW.none,n.minWidth=0,n.minWidthFrom=0,n.minWidthTo=0,n.impreciseAnchor=null,n.impreciseHead=null,n.forceSelection=!1,n.lastUpdate=Date.now(),n.setDOM(e.contentDOM),n.children=[new nW],n.children[0].setParent(n),n.updateDeco(),n.updateInner([new hU(0,0,0,e.state.doc.length)],0,null),n}return Ao(t,_H),Io(t,[{key:"length",get:function(){return this.view.state.doc.length}},{key:"update",value:function(e){var t,n=this,r=e.changedRanges;this.minWidth>0&&r.length&&(r.every((function(e){var t=e.fromA;return e.toA<n.minWidthFrom||t>n.minWidthTo}))?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0);var o=-1;this.view.inputState.composing>=0&&((null===(t=this.domChanged)||void 0===t?void 0:t.newSel)?o=this.domChanged.newSel.head:function(e,t){var n=!1;t&&e.iterChangedRanges((function(e,r){e<t.to&&r>t.from&&(n=!0)}));return n}(e.changes,this.hasComposition)||e.selectionSet||(o=e.state.selection.main.head));var i=o>-1?function(e,t,n){var r=yU(e,n);if(!r)return null;var o=r.node,i=r.from,a=r.to,s=o.nodeValue;if(/[\n\r]/.test(s))return null;if(e.state.doc.sliceString(r.from,r.to)!=s)return null;for(var c=t.invertedDesc,u=new hU(c.mapPos(i),c.mapPos(a),i,a),l=[],f=o.parentNode;;f=f.parentNode){var d=_H.get(f);if(d instanceof WH)l.push({node:f,deco:d.mark});else{if(d instanceof nW||"DIV"==f.nodeName&&f.parentNode==e.contentDOM)return{range:u,text:o,marks:l,line:f};if(f==e.contentDOM)return null;l.push({node:f,deco:new sW({inclusive:!0,attributes:tW(f),tagName:f.tagName.toLowerCase()})})}}}(this.view,e.changes,o):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();var a=this.hasComposition,s=a.from,c=a.to;r=new hU(s,c,e.changes.mapPos(s,-1),e.changes.mapPos(c,1)).addToSet(r.slice())}this.hasComposition=i?{from:i.range.fromB,to:i.range.toB}:null,(VH.ie||VH.chrome)&&!i&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);var u,l,f,d,h=this.decorations,v=this.updateDeco(),p=(u=h,l=v,f=e.changes,d=new wU,RV.compare(u,l,f,d),d.changes);return r=hU.extendWithRanges(r,p),!!(7&this.flags||0!=r.length)&&(this.updateInner(r,e.startState.doc.length,i),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}},{key:"updateInner",value:function(e,t,n){var r=this;this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,t,n);var o=this.view.observer;o.ignore((function(){r.dom.style.height=r.view.viewState.contentHeight/r.view.scaleY+"px",r.dom.style.flexBasis=r.minWidth?r.minWidth+"px":"";var e=VH.chrome||VH.ios?{node:o.selectionRange.focusNode,written:!1}:void 0;r.sync(r.view,e),r.flags&=-8,e&&(e.written||o.selectionRange.focusNode!=e.node)&&(r.forceSelection=!0),r.dom.style.height=""})),this.markedForComposition.forEach((function(e){return e.flags&=-9}));var i=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length){var a,s=bo(this.children);try{for(s.s();!(a=s.n()).done;){var c=a.value;c instanceof rW&&c.widget instanceof gU&&i.push(c.dom)}}catch(e){s.e(e)}finally{s.f()}}o.updateGaps(i)}},{key:"updateChildren",value:function(e,t,n){for(var r=n?n.range.addToSet(e.slice()):e,o=this.childCursor(t),i=r.length-1;;i--){var a=i>=0?r[i]:null;if(!a)break;var s=a.fromA,c=a.toA,u=a.fromB,l=a.toB,f=void 0,d=void 0,h=void 0,v=void 0;if(n&&n.range.fromB<l&&n.range.toB>u){var p=dW.build(this.view.state.doc,u,n.range.fromB,this.decorations,this.dynamicDecorationMap),m=dW.build(this.view.state.doc,n.range.toB,l,this.decorations,this.dynamicDecorationMap);d=p.breakAtStart,h=p.openStart,v=m.openEnd;var g=this.compositionView(n);m.breakAtStart?g.breakAfter=1:m.content.length&&g.merge(g.length,g.length,m.content[0],!1,m.openStart,0)&&(g.breakAfter=m.content[0].breakAfter,m.content.shift()),p.content.length&&g.merge(0,0,p.content[p.content.length-1],!0,0,p.openEnd)&&p.content.pop(),f=p.content.concat(g).concat(m.content)}else{var y=dW.build(this.view.state.doc,u,l,this.decorations,this.dynamicDecorationMap);f=y.content,d=y.breakAtStart,h=y.openStart,v=y.openEnd}var b=o.findPos(c,1),w=b.i,x=b.off,k=o.findPos(s,-1);AH(this,k.i,k.off,w,x,f,d,h,v)}n&&this.fixCompositionDOM(n)}},{key:"compositionView",value:function(e){var t=new HH(e.text.nodeValue);t.flags|=8;var n,r=bo(e.marks);try{for(r.s();!(n=r.n()).done;){var o=n.value.deco;t=new WH(o,[t],t.length)}}catch(e){r.e(e)}finally{r.f()}var i=new nW;return i.append(t,0),i}},{key:"fixCompositionDOM",value:function(e){var t=this,n=function(e,n){n.flags|=8|(n.children.some((function(e){return 7&e.flags}))?1:0),t.markedForComposition.add(n);var r=_H.get(e);r&&r!=n&&(r.dom=null),n.setDOM(e)},r=this.childPos(e.range.fromB,1),o=this.children[r.i];n(e.line,o);for(var i=e.marks.length-1;i>=-1;i--)r=o.childPos(r.off,1),o=o.children[r.i],n(i>=0?e.marks[i].node:e.text,o)}},{key:"updateSelection",value:function(){var e=this,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];!(arguments.length>0&&void 0!==arguments[0]&&arguments[0])&&this.view.observer.selectionRange.focusNode||this.view.observer.readSelectionRange();var n=this.view.root.activeElement,r=n==this.dom,o=!r&&cH(this.dom,this.view.observer.selectionRange)&&!(n&&this.dom.contains(n));if(r||t||o){var i=this.forceSelection;this.forceSelection=!1;var a,s=this.view.state.selection.main,c=this.moveToLine(this.domAtPos(s.anchor)),u=s.empty?c:this.moveToLine(this.domAtPos(s.head));if(VH.gecko&&s.empty&&!this.hasComposition&&(1==(a=c).node.nodeType&&a.node.firstChild&&(0==a.offset||"false"==a.node.childNodes[a.offset-1].contentEditable)&&(a.offset==a.node.childNodes.length||"false"==a.node.childNodes[a.offset].contentEditable))){var l=document.createTextNode("");this.view.observer.ignore((function(){return c.node.insertBefore(l,c.node.childNodes[c.offset]||null)})),c=u=new CH(l,0),i=!0}var f=this.view.observer.selectionRange;!i&&f.focusNode&&(lH(c.node,c.offset,f.anchorNode,f.anchorOffset)&&lH(u.node,u.offset,f.focusNode,f.focusOffset)||this.suppressWidgetCursorChange(f,s))||(this.view.observer.ignore((function(){VH.android&&VH.chrome&&e.dom.contains(f.focusNode)&&function(e,t){for(var n=e;n&&n!=t;n=n.assignedSlot||n.parentNode)if(1==n.nodeType&&"false"==n.contentEditable)return!0;return!1}(f.focusNode,e.dom)&&(e.dom.blur(),e.dom.focus({preventScroll:!0}));var t=aH(e.view.root);if(t)if(s.empty){if(VH.gecko){var r=function(e,t){return 1!=e.nodeType?0:(t&&"false"==e.childNodes[t-1].contentEditable?1:0)|(t<e.childNodes.length&&"false"==e.childNodes[t].contentEditable?2:0)}(c.node,c.offset);if(r&&3!=r){var i=bU(c.node,c.offset,1==r?1:-1);i&&(c=new CH(i.node,i.offset))}}t.collapse(c.node,c.offset),null!=s.bidiLevel&&void 0!==t.caretBidiLevel&&(t.caretBidiLevel=s.bidiLevel)}else if(t.extend){t.collapse(c.node,c.offset);try{t.extend(u.node,u.offset)}catch(e){}}else{var a=document.createRange();if(s.anchor>s.head){var l=[u,c];c=l[0],u=l[1]}a.setEnd(u.node,u.offset),a.setStart(c.node,c.offset),t.removeAllRanges(),t.addRange(a)}else;o&&e.view.root.activeElement==e.dom&&(e.dom.blur(),n&&n.focus())})),this.view.observer.setSelectionRange(c,u)),this.impreciseAnchor=c.precise?null:new CH(f.anchorNode,f.anchorOffset),this.impreciseHead=u.precise?null:new CH(f.focusNode,f.focusOffset)}}},{key:"suppressWidgetCursorChange",value:function(e,t){return this.hasComposition&&t.empty&&!this.compositionBarrier.size&&lH(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==t.head}},{key:"enforceCursorAssoc",value:function(){if(!this.hasComposition){var e=this.view,t=e.state.selection.main,n=aH(e.root),r=e.observer.selectionRange,o=r.anchorNode,i=r.anchorOffset;if(n&&t.empty&&t.assoc&&n.modify){var a=nW.find(this,t.head);if(a){var s=a.posAtStart;if(t.head!=s&&t.head!=s+a.length){var c=this.coordsAt(t.head,-1),u=this.coordsAt(t.head,1);if(c&&u&&!(c.bottom>u.top)){var l=this.domAtPos(t.head+t.assoc);n.collapse(l.node,l.offset),n.modify("move",t.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();var f=e.observer.selectionRange;e.docView.posFromDOM(f.anchorNode,f.anchorOffset)!=t.from&&n.collapse(o,i)}}}}}}},{key:"moveToLine",value:function(e){var t,n=this.dom;if(e.node!=n)return e;for(var r=e.offset;!t&&r<n.childNodes.length;r++){var o=_H.get(n.childNodes[r]);o instanceof nW&&(t=o.domAtPos(0))}for(var i=e.offset-1;!t&&i>=0;i--){var a=_H.get(n.childNodes[i]);a instanceof nW&&(t=a.domAtPos(a.length))}return t?new CH(t.node,t.offset,!0):e}},{key:"nearest",value:function(e){for(var t=e;t;){var n=_H.get(t);if(n&&n.rootView==this)return n;t=t.parentNode}return null}},{key:"posFromDOM",value:function(e,t){var n=this.nearest(e);if(!n)throw new RangeError("Trying to find position for a DOM position outside of the document");return n.localPosFromDOM(e,t)+n.posAtStart}},{key:"domAtPos",value:function(e){for(var t=this.childCursor().findPos(e,-1),n=t.i,r=t.off;n<this.children.length-1;){var o=this.children[n];if(r<o.length||o instanceof nW)break;n++,r=0}return this.children[n].domAtPos(r)}},{key:"coordsAt",value:function(e,t){for(var n=null,r=0,o=this.length,i=this.children.length-1;i>=0;i--){var a=this.children[i],s=o-a.breakAfter,c=s-a.length;if(s<e)break;c<=e&&(c<e||a.covers(-1))&&(s>e||a.covers(1))&&(!n||a instanceof nW&&!(n instanceof nW&&t>=0))&&(n=a,r=c),o=c}return n?n.coordsAt(e-r,t):null}},{key:"coordsForChar",value:function(e){var t=this.childPos(e,1),n=t.i,r=t.off,o=this.children[n];if(!(o instanceof nW))return null;for(;o.children.length;){for(var i=o.childPos(r,1),a=i.i,s=i.off;;a++){if(a==o.children.length)return null;if((o=o.children[a]).length)break}r=s}if(!(o instanceof HH))return null;var c=bF(o.text,r);if(c==r)return null;for(var u=xH(o.dom,r,c).getClientRects(),l=0;l<u.length;l++){var f=u[l];if(l==u.length-1||f.top<f.bottom&&f.left<f.right)return f}return null}},{key:"measureVisibleLineHeights",value:function(e){for(var t=[],n=e.from,r=e.to,o=this.view.contentDOM.clientWidth,i=o>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,a=-1,s=this.view.textDirection==pW.LTR,c=0,u=0;u<this.children.length;u++){var l=this.children[u],f=c+l.length;if(f>r)break;if(c>=n){var d=l.dom.getBoundingClientRect();if(t.push(d.height),i){var h=l.dom.lastChild,v=h?uH(h):[];if(v.length){var p=v[v.length-1],m=s?p.right-d.left:d.right-p.left;m>a&&(a=m,this.minWidth=o,this.minWidthFrom=c,this.minWidthTo=f)}}}c=f+l.breakAfter}return t}},{key:"textDirectionAt",value:function(e){var t=this.childPos(e,1).i;return"rtl"==getComputedStyle(this.children[t].dom).direction?pW.RTL:pW.LTR}},{key:"measureTextSize",value:function(){var e,t=this,n=bo(this.children);try{for(n.s();!(e=n.n()).done;){var r=e.value;if(r instanceof nW){var o=r.measureTextSize();if(o)return o}}}catch(e){n.e(e)}finally{n.f()}var i,a,s,c=document.createElement("div");return c.className="cm-line",c.style.width="99999px",c.style.position="absolute",c.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore((function(){t.dom.appendChild(c);var e=uH(c.firstChild)[0];i=c.getBoundingClientRect().height,a=e?e.width/27:7,s=e?e.height:i,c.remove()})),{lineHeight:i,charWidth:a,textHeight:s}}},{key:"childCursor",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.length,t=this.children.length;return t&&(e-=this.children[--t].length),new MH(this.children,e,t)}},{key:"computeBlockGapDeco",value:function(){for(var e=[],t=this.view.viewState,n=0,r=0;;r++){var o=r==t.viewports.length?null:t.viewports[r],i=o?o.from-1:this.length;if(i>n){var a=(t.lineBlockAt(i).bottom-t.lineBlockAt(n).top)/this.view.scaleY;e.push(aW.replace({widget:new gU(a),block:!0,inclusive:!0,isBlockGap:!0}).range(n,i))}if(!o)break;n=o.to+1}return aW.set(e)}},{key:"updateDeco",value:function(){var e=this,t=1,n=this.view.state.facet(iU).map((function(n){return(e.dynamicDecorationMap[t++]="function"==typeof n)?n(e.view):n})),r=!1,o=this.view.state.facet(aU).map((function(t,n){var o="function"==typeof t;return o&&(r=!0),o?t(e.view):t}));for(o.length&&(this.dynamicDecorationMap[t++]=r,n.push(RV.join(o))),this.decorations=[this.compositionBarrier].concat(Bo(n),[this.computeBlockGapDeco(),this.view.viewState.lineGapDeco]);t<this.decorations.length;)this.dynamicDecorationMap[t++]=!1;return this.decorations}},{key:"maybeCreateCompositionBarrier",value:function(){var e=this.view.state.selection.main,t=e.head;if(!e.empty)return!1;var n,r=null,o=bo(this.decorations);try{for(o.s();!(n=o.n()).done;){if(n.value.between(t,t,(function(e,n,o){o.point?r=!1:o.endSide<0&&e<t&&n==t&&(r=!0)})),!1===r)break}}catch(e){o.e(e)}finally{o.f()}return this.compositionBarrier=r?aW.set(mU.range(t)):aW.none,!!r}},{key:"clearCompositionBarrier",value:function(){this.compositionBarrier=aW.none}},{key:"scrollIntoView",value:function(e){if(e.isSnapshot){var t=this.view.viewState.lineBlockAt(e.range.head);return this.view.scrollDOM.scrollTop=t.top-e.yMargin,void(this.view.scrollDOM.scrollLeft=e.xMargin)}var n,r=bo(this.view.state.facet(KW));try{for(r.s();!(n=r.n()).done;){var o=n.value;try{if(o(this.view,e.range,e))return!0}catch(e){YW(this.view.state,e,"scroll handler")}}}catch(e){r.e(e)}finally{r.f()}var i,a=e.range,s=this.coordsAt(a.head,a.empty?a.assoc:a.head>a.anchor?-1:1);if(s){!a.empty&&(i=this.coordsAt(a.anchor,a.anchor>a.head?-1:1))&&(s={left:Math.min(s.left,i.left),top:Math.min(s.top,i.top),right:Math.max(s.right,i.right),bottom:Math.max(s.bottom,i.bottom)});var c=fU(this.view),u={left:s.left-c.left,top:s.top-c.top,right:s.right+c.right,bottom:s.bottom+c.bottom},l=this.view.scrollDOM,f=l.offsetWidth,d=l.offsetHeight;!function(e,t,n,r,o,i,a,s){for(var c=e.ownerDocument,u=c.defaultView||window,l=e,f=!1;l&&!f;)if(1==l.nodeType){var d=void 0,h=l==c.body,v=1,p=1;if(h)d=pH(u);else{if(/^(fixed|sticky)$/.test(getComputedStyle(l).position)&&(f=!0),l.scrollHeight<=l.clientHeight&&l.scrollWidth<=l.clientWidth){l=l.assignedSlot||l.parentNode;continue}var m=l.getBoundingClientRect(),g=mH(l,m);v=g.scaleX,p=g.scaleY,d={left:m.left,right:m.left+l.clientWidth*v,top:m.top,bottom:m.top+l.clientHeight*p}}var y=0,b=0;if("nearest"==o)t.top<d.top?(b=-(d.top-t.top+a),n>0&&t.bottom>d.bottom+b&&(b=t.bottom-d.bottom+b+a)):t.bottom>d.bottom&&(b=t.bottom-d.bottom+a,n<0&&t.top-b<d.top&&(b=-(d.top+b-t.top+a)));else{var w=t.bottom-t.top,x=d.bottom-d.top;b=("center"==o&&w<=x?t.top+w/2-x/2:"start"==o||"center"==o&&n<0?t.top-a:t.bottom-x+a)-d.top}if("nearest"==r?t.left<d.left?(y=-(d.left-t.left+i),n>0&&t.right>d.right+y&&(y=t.right-d.right+y+i)):t.right>d.right&&(y=t.right-d.right+i,n<0&&t.left<d.left+y&&(y=-(d.left+y-t.left+i))):y=("center"==r?t.left+(t.right-t.left)/2-(d.right-d.left)/2:"start"==r==s?t.left-i:t.right-(d.right-d.left)+i)-d.left,y||b)if(h)u.scrollBy(y,b);else{var k=0,j=0;if(b){var S=l.scrollTop;l.scrollTop+=b/p,j=(l.scrollTop-S)*p}if(y){var C=l.scrollLeft;l.scrollLeft+=y/v,k=(l.scrollLeft-C)*v}t={left:t.left-k,top:t.top-j,right:t.right-k,bottom:t.bottom-j},k&&Math.abs(k-y)<1&&(r="nearest"),j&&Math.abs(j-b)<1&&(o="nearest")}if(h)break;l=l.assignedSlot||l.parentNode}else{if(11!=l.nodeType)break;l=l.host}}(this.view.scrollDOM,u,a.head<a.anchor?-1:1,e.x,e.y,Math.max(Math.min(e.xMargin,f),-f),Math.max(Math.min(e.yMargin,d),-d),this.view.textDirection==pW.LTR)}}}])}(),mU=aW.widget({side:-1,widget:vW.inline});var gU=function(e){function t(e){var n;return Ro(this,t),(n=_o(this,t)).height=e,n}return Ao(t,oW),Io(t,[{key:"toDOM",value:function(){var e=document.createElement("div");return e.className="cm-gap",this.updateDOM(e),e}},{key:"eq",value:function(e){return e.height==this.height}},{key:"updateDOM",value:function(e){return e.style.height=this.height+"px",!0}},{key:"editable",get:function(){return!0}},{key:"estimatedHeight",get:function(){return this.height}},{key:"ignoreEvent",value:function(){return!1}}])}();function yU(e,t){var n=e.observer.selectionRange,r=n.focusNode&&bU(n.focusNode,n.focusOffset,0);if(!r)return null;var o=t-r.offset;return{from:o,to:o+r.node.nodeValue.length,node:r.node}}function bU(e,t,n){if(n<=0)for(var r=e,o=t;;){if(3==r.nodeType)return{node:r,offset:o};if(!(1==r.nodeType&&o>0))break;o=hH(r=r.childNodes[o-1])}if(n>=0)for(var i=e,a=t;;){if(3==i.nodeType)return{node:i,offset:a};if(!(1==i.nodeType&&a<i.childNodes.length&&n>=0))break;i=i.childNodes[a],a=0}return null}var wU=function(){return Io((function e(){Ro(this,e),this.changes=[]}),[{key:"compareRange",value:function(e,t){fW(e,t,this.changes)}},{key:"comparePoint",value:function(e,t){fW(e,t,this.changes)}}])}();function xU(e,t){return t.left>e?t.left-e:Math.max(0,e-t.right)}function kU(e,t){return t.top>e?t.top-e:Math.max(0,e-t.bottom)}function jU(e,t){return e.top<t.bottom-1&&e.bottom>t.top+1}function SU(e,t){return t<e.top?{top:t,left:e.left,right:e.right,bottom:e.bottom}:e}function CU(e,t){return t>e.bottom?{top:e.top,left:e.left,right:e.right,bottom:t}:e}function $U(e,t,n){for(var r,o,i,a,s,c,u,l,f=!1,d=e.firstChild;d;d=d.nextSibling)for(var h=uH(d),v=0;v<h.length;v++){var p=h[v];o&&jU(o,p)&&(p=SU(CU(p,o.bottom),o.top));var m=xU(t,p),g=kU(n,p);if(0==m&&0==g)return 3==d.nodeType?_U(d,t,n):$U(d,t,n);if(!r||a>g||a==g&&i>m){r=d,o=p,i=m,a=g;var y=g?n<p.top?-1:1:m?t<p.left?-1:1:0;f=!y||(y>0?v<h.length-1:v>0)}0==m?n>p.bottom&&(!u||u.bottom<p.bottom)?(s=d,u=p):n<p.top&&(!l||l.top>p.top)&&(c=d,l=p):u&&jU(u,p)?u=CU(u,p.bottom):l&&jU(l,p)&&(l=SU(l,p.top))}if(u&&u.bottom>=n?(r=s,o=u):l&&l.top<=n&&(r=c,o=l),!r)return{node:e,offset:0};var b=Math.max(o.left,Math.min(o.right,t));return 3==r.nodeType?_U(r,b,n):f&&"false"!=r.contentEditable?$U(r,b,n):{node:e,offset:Array.prototype.indexOf.call(e.childNodes,r)+(t>=(o.left+o.right)/2?1:0)}}function _U(e,t,n){for(var r=e.nodeValue.length,o=-1,i=1e9,a=0,s=0;s<r;s++)for(var c=xH(e,s,s+1).getClientRects(),u=0;u<c.length;u++){var l=c[u];if(l.top!=l.bottom){a||(a=t-l.left);var f=(l.top>n?l.top-n:n-l.bottom)-1;if(l.left-1<=t&&l.right+1>=t&&f<i){var d=t>=(l.left+l.right)/2,h=d;if(VH.chrome||VH.gecko)xH(e,s).getBoundingClientRect().left==l.right&&(h=!d);if(f<=0)return{node:e,offset:s+(h?1:0)};o=s+(h?1:0),i=f}}}return{node:e,offset:o>-1?o:a>0?e.nodeValue.length:0}}function OU(e,t,n){var r,o,i,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1,s=e.contentDOM.getBoundingClientRect(),c=s.top+e.viewState.paddingTop,u=e.viewState.docHeight,l=t.x,f=t.y,d=f-c;if(d<0)return 0;if(d>u)return e.state.doc.length;for(var h=e.viewState.heightOracle.textHeight/2,v=!1;(i=e.elementAtHeight(d)).type!=iW.Text;)for(;!((d=a>0?i.bottom+h:i.top-h)>=0&&d<=u);){if(v)return n?null:0;v=!0,a=-a}f=c+d;var p=i.from;if(p<e.viewport.from)return 0==e.viewport.from?0:n?null:MU(e,s,i,l,f);if(p>e.viewport.to)return e.viewport.to==e.state.doc.length?e.state.doc.length:n?null:MU(e,s,i,l,f);var m=e.dom.ownerDocument,g=e.root.elementFromPoint?e.root:m,y=g.elementFromPoint(l,f);y&&!e.contentDOM.contains(y)&&(y=null),y||(l=Math.max(s.left+1,Math.min(s.right-1,l)),(y=g.elementFromPoint(l,f))&&!e.contentDOM.contains(y)&&(y=null));var b,w=-1;if(y&&0!=(null===(r=e.docView.nearest(y))||void 0===r?void 0:r.isEditable))if(m.caretPositionFromPoint){var x=m.caretPositionFromPoint(l,f);x&&(b=x.offsetNode,w=x.offset)}else if(m.caretRangeFromPoint){var k=m.caretRangeFromPoint(l,f);k&&(b=k.startContainer,w=k.startOffset,(!e.contentDOM.contains(b)||VH.safari&&function(e,t,n){var r;if(3!=e.nodeType||t!=(r=e.nodeValue.length))return!1;for(var o=e.nextSibling;o;o=o.nextSibling)if(1!=o.nodeType||"BR"!=o.nodeName)return!1;return xH(e,r-1,r).getBoundingClientRect().left>n}(b,w,l)||VH.chrome&&function(e,t,n){if(0!=t)return!1;for(var r=e;;){var o=r.parentNode;if(!o||1!=o.nodeType||o.firstChild!=r)return!1;if(o.classList.contains("cm-line"))break;r=o}var i=1==e.nodeType?e.getBoundingClientRect():xH(e,0,Math.max(e.nodeValue.length,1)).getBoundingClientRect();return n-i.left>5}(b,w,l))&&(b=void 0))}if(!b||!e.docView.dom.contains(b)){var j=nW.find(e.docView,p);if(!j)return d>i.top+i.height/2?i.to:i.from;var S=$U(j.dom,l,f);b=S.node,w=S.offset}var C=e.docView.nearest(b);if(!C)return null;if(C.isWidget&&1==(null===(o=C.dom)||void 0===o?void 0:o.nodeType)){var $=C.dom.getBoundingClientRect();return t.y<$.top||t.y<=$.bottom&&t.x<=($.left+$.right)/2?C.posAtStart:C.posAtEnd}return C.localPosFromDOM(b,w)+C.posAtStart}function MU(e,t,n,r,o){var i=Math.round((r-t.left)*e.defaultCharacterWidth);if(e.lineWrapping&&n.height>1.5*e.defaultLineHeight){var a=e.viewState.heightOracle.textHeight;i+=Math.floor((o-n.top-.5*(e.defaultLineHeight-a))/a)*e.viewState.heightOracle.lineLength}var s=e.state.sliceDoc(n.from,n.to);return n.from+JV(s,i,e.state.tabSize)}function AU(e,t){var n=e.lineBlockAt(t);if(Array.isArray(n.type)){var r,o=bo(n.type);try{for(o.s();!(r=o.n()).done;){var i=r.value;if(i.to>t||i.to==t&&(i.to==n.to||i.type==iW.Text))return i}}catch(e){o.e(e)}finally{o.f()}}return n}function EU(e,t,n,r){for(var o=e.state.doc.lineAt(t.head),i=e.bidiSpans(o),a=e.textDirectionAt(o.from),s=t,c=null;;){var u=DW(o,i,a,s,n),l=IW;if(!u){if(o.number==(n?e.state.doc.lines:1))return s;l="\n",o=e.state.doc.line(o.number+(n?1:-1)),i=e.bidiSpans(o),u=e.visualLineSide(o,!n)}if(c){if(!c(l))return s}else{if(!r)return u;c=r(l)}s=u}}function PU(e,t,n){for(var r,o=function(){var r,o=0,i=bo(e);try{for(i.s();!(r=i.n()).done;){r.value.between(t-1,t+1,(function(e,r,i){if(t>e&&t<r){var a=o||n||(t-e<r-t?-1:1);t=a<0?e:r,o=a}}))}}catch(e){i.e(e)}finally{i.f()}if(!o)return{v:t}};;)if(r=o())return r.v}function TU(e,t,n){var r=PU(e.state.facet(sU).map((function(t){return t(e)})),n.from,t.head>n.from?-1:1);return r==n.from?n:zF.cursor(r,r<n.from?1:-1)}var RU=function(){return Io((function e(t){Ro(this,e),this.view=t,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastEscPress=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=t.hasFocus,VH.safari&&t.contentDOM.addEventListener("input",(function(){return null})),VH.gecko&&function(e){sJ.has(e)||(sJ.add(e),e.addEventListener("copy",(function(){})),e.addEventListener("cut",(function(){})))}(t.contentDOM.ownerDocument)}),[{key:"setSelectionOrigin",value:function(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}},{key:"handleEvent",value:function(e){(function(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(var n,r=t.target;r!=e.contentDOM;r=r.parentNode)if(!r||11==r.nodeType||(n=_H.get(r))&&n.ignoreEvent(t))return!1;return!0})(this.view,e)&&!this.ignoreDuringComposition(e)&&("keydown"==e.type&&this.keydown(e)||this.runHandlers(e.type,e))}},{key:"runHandlers",value:function(e,t){var n=this.handlers[e];if(n){var r,o=bo(n.observers);try{for(o.s();!(r=o.n()).done;){(0,r.value)(this.view,t)}}catch(e){o.e(e)}finally{o.f()}var i,a=bo(n.handlers);try{for(a.s();!(i=a.n()).done;){var s=i.value;if(t.defaultPrevented)break;if(s(this.view,t)){t.preventDefault();break}}}catch(e){a.e(e)}finally{a.f()}}}},{key:"ensureHandlers",value:function(e){var t=IU(e),n=this.handlers,r=this.view.contentDOM;for(var o in t)if("scroll"!=o){var i=!t[o].handlers.length,a=n[o];a&&i!=!a.handlers.length&&(r.removeEventListener(o,this.handleEvent),a=null),a||r.addEventListener(o,this.handleEvent,{passive:i})}for(var s in n)"scroll"==s||t[s]||r.removeEventListener(s,this.handleEvent);this.handlers=t}},{key:"keydown",value:function(e){var t,n=this;return this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),9==e.keyCode&&Date.now()<this.lastEscPress+2e3||(27!=e.keyCode&&BU.indexOf(e.keyCode)<0&&(this.view.inputState.lastEscPress=0),!VH.android||!VH.chrome||e.synthetic||13!=e.keyCode&&8!=e.keyCode?!VH.ios||e.synthetic||e.altKey||e.metaKey||!((t=DU.find((function(t){return t.keyCode==e.keyCode})))&&!e.ctrlKey||zU.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(229!=e.keyCode&&this.view.observer.forceFlush(),!1):(this.pendingIOSKey=t||e,setTimeout((function(){return n.flushIOSKey()}),250),!0):(this.view.observer.delayAndroidKey(e.key,e.keyCode),!0))}},{key:"flushIOSKey",value:function(e){var t=this.pendingIOSKey;return!!t&&(!("Enter"==t.key&&e&&e.from<e.to&&/^\S+$/.test(e.insert.toString()))&&(this.pendingIOSKey=void 0,kH(this.view.contentDOM,t.key,t.keyCode,t instanceof KeyboardEvent?t:void 0)))}},{key:"ignoreDuringComposition",value:function(e){return!!/^key/.test(e.type)&&(this.composing>0||!!(VH.safari&&!VH.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100)&&(this.compositionPendingKey=!1,!0))}},{key:"startMouseSelection",value:function(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}},{key:"update",value:function(e){this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}},{key:"destroy",value:function(){this.mouseSelection&&this.mouseSelection.destroy()}}])}();function NU(e,t){return function(n,r){try{return t.call(e,r,n)}catch(e){YW(n.state,e)}}}function IU(e){var t=Object.create(null);function n(e){return t[e]||(t[e]={observers:[],handlers:[]})}var r,o=bo(e);try{for(o.s();!(r=o.n()).done;){var i=r.value,a=i.spec;if(a&&a.domEventHandlers)for(var s in a.domEventHandlers){var c=a.domEventHandlers[s];c&&n(s).handlers.push(NU(i.value,c))}if(a&&a.domEventObservers)for(var u in a.domEventObservers){var l=a.domEventObservers[u];l&&n(u).observers.push(NU(i.value,l))}}}catch(e){o.e(e)}finally{o.f()}for(var f in FU)n(f).handlers.push(FU[f]);for(var d in VU)n(d).observers.push(VU[d]);return t}var DU=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],zU="dthko",BU=[16,17,18,20,91,92,224,225];function LU(e){return.7*Math.max(0,e)+8}var qU=function(){return Io((function e(t,n,r,o){Ro(this,e),this.view=t,this.startEvent=n,this.style=r,this.mustSelect=o,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=n,this.scrollParent=function(e){for(var t=e.ownerDocument,n=e.parentNode;n&&n!=t.body;)if(1==n.nodeType){if(n.scrollHeight>n.clientHeight||n.scrollWidth>n.clientWidth)return n;n=n.assignedSlot||n.parentNode}else{if(11!=n.nodeType)break;n=n.host}return null}(t.contentDOM),this.atoms=t.state.facet(sU).map((function(e){return e(t)}));var i=t.contentDOM.ownerDocument;i.addEventListener("mousemove",this.move=this.move.bind(this)),i.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=n.shiftKey,this.multiple=t.state.facet(OV.allowMultipleSelections)&&function(e,t){var n=e.state.facet(BW);return n.length?n[0](t):VH.mac?t.metaKey:t.ctrlKey}(t,n),this.dragging=!(!function(e,t){var n=e.state.selection.main;if(n.empty)return!1;var r=aH(e.root);if(!r||0==r.rangeCount)return!0;for(var o=r.getRangeAt(0).getClientRects(),i=0;i<o.length;i++){var a=o[i];if(a.left<=t.clientX&&a.right>=t.clientX&&a.top<=t.clientY&&a.bottom>=t.clientY)return!0}return!1}(t,n)||1!=tJ(n))&&null}),[{key:"start",value:function(e){!1===this.dragging&&this.select(e)}},{key:"move",value:function(e){var t;if(0==e.buttons)return this.destroy();if(!(this.dragging||null==this.dragging&&(n=this.startEvent,r=e,Math.max(Math.abs(n.clientX-r.clientX),Math.abs(n.clientY-r.clientY))<10))){var n,r;this.select(this.lastEvent=e);var o=0,i=0,a=(null===(t=this.scrollParent)||void 0===t?void 0:t.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},s=fU(this.view);e.clientX-s.left<=a.left+6?o=-LU(a.left-e.clientX):e.clientX+s.right>=a.right-6&&(o=LU(e.clientX-a.right)),e.clientY-s.top<=a.top+6?i=-LU(a.top-e.clientY):e.clientY+s.bottom>=a.bottom-6&&(i=LU(e.clientY-a.bottom)),this.setScrollSpeed(o,i)}}},{key:"up",value:function(e){null==this.dragging&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}},{key:"destroy",value:function(){this.setScrollSpeed(0,0);var e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}},{key:"setScrollSpeed",value:function(e,t){var n=this;this.scrollSpeed={x:e,y:t},e||t?this.scrolling<0&&(this.scrolling=setInterval((function(){return n.scroll()}),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}},{key:"scroll",value:function(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),!1===this.dragging&&this.select(this.lastEvent)}},{key:"skipAtoms",value:function(e){for(var t=null,n=0;n<e.ranges.length;n++){var r=e.ranges[n],o=null;if(r.empty){var i=PU(this.atoms,r.from,0);i!=r.from&&(o=zF.cursor(i,-1))}else{var a=PU(this.atoms,r.from,-1),s=PU(this.atoms,r.to,1);a==r.from&&s==r.to||(o=zF.range(r.from==r.anchor?a:s,r.from==r.head?a:s))}o&&(t||(t=e.ranges.slice()),t[n]=o)}return t?zF.create(t,e.mainIndex):e}},{key:"select",value:function(e){var t=this.view,n=this.skipAtoms(this.style.get(e,this.extend,this.multiple));!this.mustSelect&&n.eq(t.state.selection,!1===this.dragging)||this.view.dispatch({selection:n,userEvent:"select.pointer"}),this.mustSelect=!1}},{key:"update",value:function(e){var t=this;this.style.update(e)&&setTimeout((function(){return t.select(t.lastEvent)}),20)}}])}();var FU=Object.create(null),VU=Object.create(null),HU=VH.ie&&VH.ie_version<15||VH.ios&&VH.webkit_version<604;function WU(e,t){var n,r=e.state,o=1,i=r.toText(t),a=i.lines==r.selection.ranges.length,s=null!=rJ&&r.selection.ranges.every((function(e){return e.empty}))&&rJ==i.toString();if(s){var c=-1;n=r.changeByRange((function(e){var n=r.doc.lineAt(e.from);if(n.from==c)return{range:e};c=n.from;var s=r.toText((a?i.line(o++).text:t)+r.lineBreak);return{changes:{from:n.from,insert:s},range:zF.cursor(e.from+s.length)}}))}else n=a?r.changeByRange((function(e){var t=i.line(o++);return{changes:{from:e.from,to:e.to,insert:t.text},range:zF.cursor(e.from+t.length)}})):r.replaceSelection(i);e.dispatch(n,{userEvent:"input.paste",scrollIntoView:!0})}function UU(e,t,n,r){if(1==r)return zF.cursor(t,n);if(2==r)return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=e.charCategorizer(t),o=e.doc.lineAt(t),i=t-o.from;if(0==o.length)return zF.cursor(t);0==i?n=1:i==o.length&&(n=-1);var a=i,s=i;n<0?a=bF(o.text,i,!1):s=bF(o.text,i);for(var c=r(o.text.slice(a,s));a>0;){var u=bF(o.text,a,!1);if(r(o.text.slice(u,a))!=c)break;a=u}for(;s<o.length;){var l=bF(o.text,s);if(r(o.text.slice(s,l))!=c)break;s=l}return zF.range(a+o.from,s+o.from)}(e.state,t,n);var o=nW.find(e.docView,t),i=e.state.doc.lineAt(o?o.posAtEnd:t),a=o?o.posAtStart:i.from,s=o?o.posAtEnd:i.to;return s<e.state.doc.length&&s==i.to&&s++,zF.range(a,s)}VU.scroll=function(e){e.inputState.lastScrollTop=e.scrollDOM.scrollTop,e.inputState.lastScrollLeft=e.scrollDOM.scrollLeft},FU.keydown=function(e,t){return e.inputState.setSelectionOrigin("select"),27==t.keyCode&&(e.inputState.lastEscPress=Date.now()),!1},VU.touchstart=function(e,t){e.inputState.lastTouchTime=Date.now(),e.inputState.setSelectionOrigin("select.pointer")},VU.touchmove=function(e){e.inputState.setSelectionOrigin("select.pointer")},FU.mousedown=function(e,t){if(e.observer.flush(),e.inputState.lastTouchTime>Date.now()-2e3)return!1;var n,r=null,o=bo(e.state.facet(qW));try{for(o.s();!(n=o.n()).done;){if(r=(0,n.value)(e,t))break}}catch(e){o.e(e)}finally{o.f()}if(r||0!=t.button||(r=function(e,t){var n=QU(e,t),r=tJ(t),o=e.state.selection;return{update:function(e){e.docChanged&&(n.pos=e.changes.mapPos(n.pos),o=o.map(e.changes))},get:function(t,i,a){var s,c=QU(e,t),u=UU(e,c.pos,c.bias,r);if(n.pos!=c.pos&&!i){var l=UU(e,n.pos,n.bias,r),f=Math.min(l.from,u.from),d=Math.max(l.to,u.to);u=f<u.from?zF.range(f,d):zF.range(d,f)}return i?o.replaceRange(o.main.extend(u.from,u.to)):a&&1==r&&o.ranges.length>1&&(s=function(e,t){for(var n=0;n<e.ranges.length;n++){var r=e.ranges[n],o=r.from,i=r.to;if(o<=t&&i>=t)return zF.create(e.ranges.slice(0,n).concat(e.ranges.slice(n+1)),e.mainIndex==n?0:e.mainIndex-(e.mainIndex>n?1:0))}return null}(o,c.pos))?s:a?o.addRange(u):zF.create([u])}}}(e,t)),r){var i=!e.hasFocus;e.inputState.startMouseSelection(new qU(e,t,r,i)),i&&e.observer.ignore((function(){return wH(e.contentDOM)}));var a=e.inputState.mouseSelection;if(a)return a.start(t),!1===a.dragging}return!1};var JU=function(e,t){return e>=t.top&&e<=t.bottom},KU=function(e,t,n){return JU(t,n)&&e>=n.left&&e<=n.right};function GU(e,t,n,r){var o=nW.find(e.docView,t);if(!o)return 1;var i=t-o.posAtStart;if(0==i)return 1;if(i==o.length)return-1;var a=o.coordsAt(i,-1);if(a&&KU(n,r,a))return-1;var s=o.coordsAt(i,1);return s&&KU(n,r,s)?1:a&&JU(r,a)?-1:1}function QU(e,t){var n=e.posAtCoords({x:t.clientX,y:t.clientY},!1);return{pos:n,bias:GU(e,n,t.clientX,t.clientY)}}var YU=VH.ie&&VH.ie_version<=11,XU=null,ZU=0,eJ=0;function tJ(e){if(!YU)return e.detail;var t=XU,n=eJ;return XU=e,eJ=Date.now(),ZU=!t||n>Date.now()-400&&Math.abs(t.clientX-e.clientX)<2&&Math.abs(t.clientY-e.clientY)<2?(ZU+1)%3:1}function nJ(e,t,n,r){if(n){var o=e.posAtCoords({x:t.clientX,y:t.clientY},!1),i=e.inputState.draggedContent,a=r&&i&&function(e,t){var n=e.state.facet(LW);return n.length?n[0](t):VH.mac?!t.altKey:!t.ctrlKey}(e,t)?{from:i.from,to:i.to}:null,s={from:o,insert:n},c=e.state.changes(a?[a,s]:s);e.focus(),e.dispatch({changes:c,selection:{anchor:c.mapPos(o,-1),head:c.mapPos(o,1)},userEvent:a?"move.drop":"input.drop"}),e.inputState.draggedContent=null}}FU.dragstart=function(e,t){var n=e.state.selection.main;if(t.target.draggable){var r=e.docView.nearest(t.target);if(r&&r.isWidget){var o=r.posAtStart,i=o+r.length;(o>=n.to||i<=n.from)&&(n=zF.range(o,i))}}var a=e.inputState;return a.mouseSelection&&(a.mouseSelection.dragging=!0),a.draggedContent=n,t.dataTransfer&&(t.dataTransfer.setData("Text",e.state.sliceDoc(n.from,n.to)),t.dataTransfer.effectAllowed="copyMove"),!1},FU.dragend=function(e){return e.inputState.draggedContent=null,!1},FU.drop=function(e,t){if(!t.dataTransfer)return!1;if(e.state.readOnly)return!0;var n=t.dataTransfer.files;if(n&&n.length){for(var r=Array(n.length),o=0,i=function(){++o==n.length&&nJ(e,t,r.filter((function(e){return null!=e})).join(e.state.lineBreak),!1)},a=function(e){var t=new FileReader;t.onerror=i,t.onload=function(){/[\x00-\x08\x0e-\x1f]{2}/.test(t.result)||(r[e]=t.result),i()},t.readAsText(n[e])},s=0;s<n.length;s++)a(s);return!0}var c=t.dataTransfer.getData("Text");return!!c&&(nJ(e,t,c,!0),!0)},FU.paste=function(e,t){if(e.state.readOnly)return!0;e.observer.flush();var n=HU?null:t.clipboardData;return n?(WU(e,n.getData("text/plain")||n.getData("text/uri-list")),!0):(function(e){var t=e.dom.parentNode;if(t){var n=t.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout((function(){e.focus(),n.remove(),WU(e,n.value)}),50)}}(e),!1)};var rJ=null;FU.copy=FU.cut=function(e,t){var n=function(e){var t,n=[],r=[],o=!1,i=bo(e.selection.ranges);try{for(i.s();!(t=i.n()).done;){var a=t.value;a.empty||(n.push(e.sliceDoc(a.from,a.to)),r.push(a))}}catch(e){i.e(e)}finally{i.f()}if(!n.length){var s,c=-1,u=bo(e.selection.ranges);try{for(u.s();!(s=u.n()).done;){var l=s.value.from,f=e.doc.lineAt(l);f.number>c&&(n.push(f.text),r.push({from:f.from,to:Math.min(e.doc.length,f.to+1)})),c=f.number}}catch(e){u.e(e)}finally{u.f()}o=!0}return{text:n.join(e.lineBreak),ranges:r,linewise:o}}(e.state),r=n.text,o=n.ranges,i=n.linewise;if(!r&&!i)return!1;rJ=i?r:null,"cut"!=t.type||e.state.readOnly||e.dispatch({changes:o,scrollIntoView:!0,userEvent:"delete.cut"});var a=HU?null:t.clipboardData;return a?(a.clearData(),a.setData("text/plain",r),!0):(function(e,t){var n=e.dom.parentNode;if(n){var r=n.appendChild(document.createElement("textarea"));r.style.cssText="position: fixed; left: -10000px; top: 10px",r.value=t,r.focus(),r.selectionEnd=t.length,r.selectionStart=0,setTimeout((function(){r.remove(),e.focus()}),50)}}(e,r),!1)};var oJ=hV.define();function iJ(e,t){var n,r=[],o=bo(e.facet(WW));try{for(o.s();!(n=o.n()).done;){var i=(0,n.value)(e,t);i&&r.push(i)}}catch(e){o.e(e)}finally{o.f()}return r?e.update({effects:r,annotations:oJ.of(!0)}):null}function aJ(e){setTimeout((function(){var t=e.hasFocus;if(t!=e.inputState.notifiedFocused){var n=iJ(e.state,t);n?e.dispatch(n):e.update([])}}),10)}VU.focus=function(e){e.inputState.lastFocusTime=Date.now(),e.scrollDOM.scrollTop||!e.inputState.lastScrollTop&&!e.inputState.lastScrollLeft||(e.scrollDOM.scrollTop=e.inputState.lastScrollTop,e.scrollDOM.scrollLeft=e.inputState.lastScrollLeft),aJ(e)},VU.blur=function(e){e.observer.clearSelectionRange(),aJ(e)},VU.compositionstart=VU.compositionupdate=function(e){null==e.inputState.compositionFirstChange&&(e.inputState.compositionFirstChange=!0),e.inputState.composing<0&&(e.inputState.composing=0,e.docView.maybeCreateCompositionBarrier()&&(e.update([]),e.docView.clearCompositionBarrier()))},VU.compositionend=function(e){e.inputState.composing=-1,e.inputState.compositionEndedAt=Date.now(),e.inputState.compositionPendingKey=!0,e.inputState.compositionPendingChange=e.observer.pendingRecords().length>0,e.inputState.compositionFirstChange=null,VH.chrome&&VH.android?e.observer.flushSoon():e.inputState.compositionPendingChange?Promise.resolve().then((function(){return e.observer.flush()})):setTimeout((function(){e.inputState.composing<0&&e.docView.hasComposition&&e.update([])}),50)},VU.contextmenu=function(e){e.inputState.lastContextMenu=Date.now()},FU.beforeinput=function(e,t){var n,r;if(VH.chrome&&VH.android&&(r=DU.find((function(e){return e.inputType==t.inputType})))&&(e.observer.delayAndroidKey(r.key,r.keyCode),"Backspace"==r.key||"Delete"==r.key)){var o=(null===(n=window.visualViewport)||void 0===n?void 0:n.height)||0;setTimeout((function(){var t;((null===(t=window.visualViewport)||void 0===t?void 0:t.height)||0)>o+10&&e.hasFocus&&(e.contentDOM.blur(),e.focus())}),100)}return VH.ios&&"deleteContentForward"==t.inputType&&e.observer.flushSoon(),!1};var sJ=new Set;var cJ=["pre-wrap","normal","pre-line","break-spaces"],uJ=function(){return Io((function e(t){Ro(this,e),this.lineWrapping=t,this.doc=oF.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}),[{key:"heightForGap",value:function(e,t){var n=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(n+=Math.max(0,Math.ceil((t-e-n*this.lineLength*.5)/this.lineLength))),this.lineHeight*n}},{key:"heightForLine",value:function(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}},{key:"setDoc",value:function(e){return this.doc=e,this}},{key:"mustRefreshForWrapping",value:function(e){return cJ.indexOf(e)>-1!=this.lineWrapping}},{key:"mustRefreshForHeights",value:function(e){for(var t=!1,n=0;n<e.length;n++){var r=e[n];r<0?n++:this.heightSamples[Math.floor(10*r)]||(t=!0,this.heightSamples[Math.floor(10*r)]=!0)}return t}},{key:"refresh",value:function(e,t,n,r,o,i){var a=cJ.indexOf(e)>-1,s=Math.round(t)!=Math.round(this.lineHeight)||this.lineWrapping!=a;if(this.lineWrapping=a,this.lineHeight=t,this.charWidth=n,this.textHeight=r,this.lineLength=o,s){this.heightSamples={};for(var c=0;c<i.length;c++){var u=i[c];u<0?c++:this.heightSamples[Math.floor(10*u)]=!0}}return s}}])}(),lJ=function(){return Io((function e(t,n){Ro(this,e),this.from=t,this.heights=n,this.index=0}),[{key:"more",get:function(){return this.index<this.heights.length}}])}(),fJ=function(){function e(t,n,r,o,i){Ro(this,e),this.from=t,this.length=n,this.top=r,this.height=o,this._content=i}return Io(e,[{key:"type",get:function(){return"number"==typeof this._content?iW.Text:Array.isArray(this._content)?this._content:this._content.type}},{key:"to",get:function(){return this.from+this.length}},{key:"bottom",get:function(){return this.top+this.height}},{key:"widget",get:function(){return this._content instanceof uW?this._content.widget:null}},{key:"widgetLineBreaks",get:function(){return"number"==typeof this._content?this._content:0}},{key:"join",value:function(t){var n=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(t._content)?t._content:[t]);return new e(this.from,this.length+t.length,this.top,this.height+t.height,n)}}])}(),dJ=function(e){return e[e.ByPos=0]="ByPos",e[e.ByHeight=1]="ByHeight",e[e.ByPosNoHeight=2]="ByPosNoHeight",e}(dJ||(dJ={})),hJ=.001,vJ=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;Ro(this,e),this.length=t,this.height=n,this.flags=r}return Io(e,[{key:"outdated",get:function(){return(2&this.flags)>0},set:function(e){this.flags=(e?2:0)|-3&this.flags}},{key:"setHeight",value:function(e,t){this.height!=t&&(Math.abs(this.height-t)>hJ&&(e.heightChanged=!0),this.height=t)}},{key:"replace",value:function(t,n,r){return e.of(r)}},{key:"decomposeLeft",value:function(e,t){t.push(this)}},{key:"decomposeRight",value:function(e,t){t.push(this)}},{key:"applyChanges",value:function(e,t,n,r){for(var o=this,i=n.doc,a=r.length-1;a>=0;a--){var s=r[a],c=s.fromA,u=s.toA,l=s.fromB,f=s.toB,d=o.lineAt(c,dJ.ByPosNoHeight,n.setDoc(t),0,0),h=d.to>=u?d:o.lineAt(u,dJ.ByPosNoHeight,n,0,0);for(f+=h.to-u,u=h.to;a>0&&d.from<=r[a-1].toA;)c=r[a-1].fromA,l=r[a-1].fromB,a--,c<d.from&&(d=o.lineAt(c,dJ.ByPosNoHeight,n,0,0));l+=d.from-c,c=d.from;var v=wJ.build(n.setDoc(i),e,l,f);o=o.replace(c,u,v)}return o.updateHeight(n,0)}}],[{key:"empty",value:function(){return new mJ(0,0)}},{key:"of",value:function(t){if(1==t.length)return t[0];for(var n=0,r=t.length,o=0,i=0;;)if(n==r)if(o>2*i){var a=t[n-1];a.break?t.splice(--n,1,a.left,null,a.right):t.splice(--n,1,a.left,a.right),r+=1+a.break,o-=a.size}else{if(!(i>2*o))break;var s=t[r];s.break?t.splice(r,1,s.left,null,s.right):t.splice(r,1,s.left,s.right),r+=2+s.break,i-=s.size}else if(o<i){var c=t[n++];c&&(o+=c.size)}else{var u=t[--r];u&&(i+=u.size)}var l=0;return null==t[n-1]?(l=1,n--):null==t[n]&&(l=1,r++),new yJ(e.of(t.slice(0,n)),l,e.of(t.slice(r)))}}])}();vJ.prototype.size=1;var pJ=function(e){function t(e,n,r){var o;return Ro(this,t),(o=_o(this,t,[e,n])).deco=r,o}return Ao(t,vJ),Io(t,[{key:"blockAt",value:function(e,t,n,r){return new fJ(r,this.length,n,this.height,this.deco||0)}},{key:"lineAt",value:function(e,t,n,r,o){return this.blockAt(0,n,r,o)}},{key:"forEachLine",value:function(e,t,n,r,o,i){e<=o+this.length&&t>=o&&i(this.blockAt(0,n,r,o))}},{key:"updateHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>3?arguments[3]:void 0;return n&&n.from<=t&&n.more&&this.setHeight(e,n.heights[n.index++]),this.outdated=!1,this}},{key:"toString",value:function(){return"block(".concat(this.length,")")}}])}(),mJ=function(e){function t(e,n){var r;return Ro(this,t),(r=_o(this,t,[e,n,null])).collapsed=0,r.widgetHeight=0,r.breaks=0,r}return Ao(t,pJ),Io(t,[{key:"blockAt",value:function(e,t,n,r){return new fJ(r,this.length,n,this.height,this.breaks)}},{key:"replace",value:function(e,n,r){var o=r[0];return 1==r.length&&(o instanceof t||o instanceof gJ&&4&o.flags)&&Math.abs(this.length-o.length)<10?(o instanceof gJ?o=new t(o.length,this.height):o.height=this.height,this.outdated||(o.outdated=!1),o):vJ.of(r)}},{key:"updateHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0;return r&&r.from<=t&&r.more?this.setHeight(e,r.heights[r.index++]):(n||this.outdated)&&this.setHeight(e,Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}},{key:"toString",value:function(){return"line(".concat(this.length).concat(this.collapsed?-this.collapsed:"").concat(this.widgetHeight?":"+this.widgetHeight:"",")")}}])}(),gJ=function(e){function t(e){return Ro(this,t),_o(this,t,[e,0])}return Ao(t,vJ),Io(t,[{key:"heightMetrics",value:function(e,t){var n,r=e.doc.lineAt(t).number,o=e.doc.lineAt(t+this.length).number,i=o-r+1,a=0;if(e.lineWrapping){var s=Math.min(this.height,e.lineHeight*i);n=s/i,this.length>i+1&&(a=(this.height-s)/(this.length-i-1))}else n=this.height/i;return{firstLine:r,lastLine:o,perLine:n,perChar:a}}},{key:"blockAt",value:function(e,t,n,r){var o=this.heightMetrics(t,r),i=o.firstLine,a=o.lastLine,s=o.perLine,c=o.perChar;if(t.lineWrapping){var u=r+Math.round(Math.max(0,Math.min(1,(e-n)/this.height))*this.length),l=t.doc.lineAt(u),f=s+l.length*c,d=Math.max(n,e-f/2);return new fJ(l.from,l.length,d,f,0)}var h=Math.max(0,Math.min(a-i,Math.floor((e-n)/s))),v=t.doc.line(i+h),p=v.from,m=v.length;return new fJ(p,m,n+s*h,s,0)}},{key:"lineAt",value:function(e,t,n,r,o){if(t==dJ.ByHeight)return this.blockAt(e,n,r,o);if(t==dJ.ByPosNoHeight){var i=n.doc.lineAt(e),a=i.from,s=i.to;return new fJ(a,s-a,0,0,0)}var c=this.heightMetrics(n,o),u=c.firstLine,l=c.perLine,f=c.perChar,d=n.doc.lineAt(e),h=l+d.length*f,v=d.number-u,p=r+l*v+f*(d.from-o-v);return new fJ(d.from,d.length,Math.max(r,Math.min(p,r+this.height-h)),h,0)}},{key:"forEachLine",value:function(e,t,n,r,o,i){e=Math.max(e,o),t=Math.min(t,o+this.length);for(var a=this.heightMetrics(n,o),s=a.firstLine,c=a.perLine,u=a.perChar,l=e,f=r;l<=t;){var d=n.doc.lineAt(l);if(l==e){var h=d.number-s;f+=c*h+u*(e-o-h)}var v=c+u*d.length;i(new fJ(d.from,d.length,f,v,0)),f+=v,l=d.to+1}}},{key:"replace",value:function(e,n,r){var o=this.length-n;if(o>0){var i=r[r.length-1];i instanceof t?r[r.length-1]=new t(i.length+o):r.push(null,new t(o-1))}if(e>0){var a=r[0];a instanceof t?r[0]=new t(e+a.length):r.unshift(new t(e-1),null)}return vJ.of(r)}},{key:"decomposeLeft",value:function(e,n){n.push(new t(e-1),null)}},{key:"decomposeRight",value:function(e,n){n.push(null,new t(this.length-e-1))}},{key:"updateHeight",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3?arguments[3]:void 0,i=n+this.length;if(o&&o.from<=n+this.length&&o.more){var a=[],s=Math.max(n,o.from),c=-1;for(o.from>n&&a.push(new t(o.from-n-1).updateHeight(e,n));s<=i&&o.more;){var u=e.doc.lineAt(s).length;a.length&&a.push(null);var l=o.heights[o.index++];-1==c?c=l:Math.abs(l-c)>=hJ&&(c=-2);var f=new mJ(u,l);f.outdated=!1,a.push(f),s+=u+1}s<=i&&a.push(null,new t(i-s).updateHeight(e,s));var d=vJ.of(a);return(c<0||Math.abs(d.height-this.height)>=hJ||Math.abs(c-this.heightMetrics(e,n).perLine)>=hJ)&&(e.heightChanged=!0),d}return(r||this.outdated)&&(this.setHeight(e,e.heightForGap(n,n+this.length)),this.outdated=!1),this}},{key:"toString",value:function(){return"gap(".concat(this.length,")")}}])}(),yJ=function(e){function t(e,n,r){var o;return Ro(this,t),(o=_o(this,t,[e.length+n+r.length,e.height+r.height,n|(e.outdated||r.outdated?2:0)])).left=e,o.right=r,o.size=e.size+r.size,o}return Ao(t,vJ),Io(t,[{key:"break",get:function(){return 1&this.flags}},{key:"blockAt",value:function(e,t,n,r){var o=n+this.left.height;return e<o?this.left.blockAt(e,t,n,r):this.right.blockAt(e,t,o,r+this.left.length+this.break)}},{key:"lineAt",value:function(e,t,n,r,o){var i=r+this.left.height,a=o+this.left.length+this.break,s=t==dJ.ByHeight?e<i:e<a,c=s?this.left.lineAt(e,t,n,r,o):this.right.lineAt(e,t,n,i,a);if(this.break||(s?c.to<a:c.from>a))return c;var u=t==dJ.ByPosNoHeight?dJ.ByPosNoHeight:dJ.ByPos;return s?c.join(this.right.lineAt(a,u,n,i,a)):this.left.lineAt(a,u,n,r,o).join(c)}},{key:"forEachLine",value:function(e,t,n,r,o,i){var a=r+this.left.height,s=o+this.left.length+this.break;if(this.break)e<s&&this.left.forEachLine(e,t,n,r,o,i),t>=s&&this.right.forEachLine(e,t,n,a,s,i);else{var c=this.lineAt(s,dJ.ByPos,n,r,o);e<c.from&&this.left.forEachLine(e,c.from-1,n,r,o,i),c.to>=e&&c.from<=t&&i(c),t>c.to&&this.right.forEachLine(c.to+1,t,n,a,s,i)}}},{key:"replace",value:function(e,t,n){var r=this.left.length+this.break;if(t<r)return this.balanced(this.left.replace(e,t,n),this.right);if(e>this.left.length)return this.balanced(this.left,this.right.replace(e-r,t-r,n));var o=[];e>0&&this.decomposeLeft(e,o);var i,a=o.length,s=bo(n);try{for(s.s();!(i=s.n()).done;){var c=i.value;o.push(c)}}catch(e){s.e(e)}finally{s.f()}if(e>0&&bJ(o,a-1),t<this.length){var u=o.length;this.decomposeRight(t,o),bJ(o,u)}return vJ.of(o)}},{key:"decomposeLeft",value:function(e,t){var n=this.left.length;if(e<=n)return this.left.decomposeLeft(e,t);t.push(this.left),this.break&&e>=++n&&t.push(null),e>n&&this.right.decomposeLeft(e-n,t)}},{key:"decomposeRight",value:function(e,t){var n=this.left.length,r=n+this.break;if(e>=r)return this.right.decomposeRight(e-r,t);e<n&&this.left.decomposeRight(e,t),this.break&&e<r&&t.push(null),t.push(this.right)}},{key:"balanced",value:function(e,t){return e.size>2*t.size||t.size>2*e.size?vJ.of(this.break?[e,null,t]:[e,t]):(this.left=e,this.right=t,this.height=e.height+t.height,this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}},{key:"updateHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,o=this.left,i=this.right,a=t+o.length+this.break,s=null;return r&&r.from<=t+o.length&&r.more?s=o=o.updateHeight(e,t,n,r):o.updateHeight(e,t,n),r&&r.from<=a+i.length&&r.more?s=i=i.updateHeight(e,a,n,r):i.updateHeight(e,a,n),s?this.balanced(o,i):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}},{key:"toString",value:function(){return this.left+(this.break?" ":"-")+this.right}}])}();function bJ(e,t){var n,r;null==e[t]&&(n=e[t-1])instanceof gJ&&(r=e[t+1])instanceof gJ&&e.splice(t-1,3,new gJ(n.length+1+r.length))}var wJ=function(){function e(t,n){Ro(this,e),this.pos=t,this.oracle=n,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=t}return Io(e,[{key:"isCovered",get:function(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}},{key:"span",value:function(e,t){if(this.lineStart>-1){var n=Math.min(t,this.lineEnd),r=this.nodes[this.nodes.length-1];r instanceof mJ?r.length+=n-this.pos:(n>this.pos||!this.isCovered)&&this.nodes.push(new mJ(n-this.pos,-1)),this.writtenTo=n,t>n&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}},{key:"point",value:function(e,t,n){if(e<t||n.heightRelevant){var r=n.widget?n.widget.estimatedHeight:0,o=n.widget?n.widget.lineBreaks:0;r<0&&(r=this.oracle.lineHeight);var i=t-e;n.block?this.addBlock(new pJ(i,r,n)):(i||o||r>=5)&&this.addLineDeco(r,o,i)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}},{key:"enterLine",value:function(){if(!(this.lineStart>-1)){var e=this.oracle.doc.lineAt(this.pos),t=e.from,n=e.to;this.lineStart=t,this.lineEnd=n,this.writtenTo<t&&((this.writtenTo<t-1||null==this.nodes[this.nodes.length-1])&&this.nodes.push(this.blankContent(this.writtenTo,t-1)),this.nodes.push(null)),this.pos>t&&this.nodes.push(new mJ(this.pos-t,-1)),this.writtenTo=this.pos}}},{key:"blankContent",value:function(e,t){var n=new gJ(t-e);return this.oracle.doc.lineAt(e).to==t&&(n.flags|=4),n}},{key:"ensureLine",value:function(){this.enterLine();var e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof mJ)return e;var t=new mJ(0,-1);return this.nodes.push(t),t}},{key:"addBlock",value:function(e){this.enterLine();var t=e.deco;t&&t.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,t&&t.endSide>0&&(this.covering=e)}},{key:"addLineDeco",value:function(e,t,n){var r=this.ensureLine();r.length+=n,r.collapsed+=n,r.widgetHeight=Math.max(r.widgetHeight,e),r.breaks+=t,this.writtenTo=this.pos=this.pos+n}},{key:"finish",value:function(e){var t=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||t instanceof mJ||this.isCovered?(this.writtenTo<this.pos||null==t)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos)):this.nodes.push(new mJ(0,-1));var n,r=e,o=bo(this.nodes);try{for(o.s();!(n=o.n()).done;){var i=n.value;i instanceof mJ&&i.updateHeight(this.oracle,r),r+=i?i.length:1}}catch(e){o.e(e)}finally{o.f()}return this.nodes}}],[{key:"build",value:function(t,n,r,o){var i=new e(r,t);return RV.spans(n,r,o,i,0),i.finish(r)}}])}();var xJ=function(){return Io((function e(){Ro(this,e),this.changes=[]}),[{key:"compareRange",value:function(){}},{key:"comparePoint",value:function(e,t,n,r){(e<t||n&&n.heightRelevant||r&&r.heightRelevant)&&fW(e,t,this.changes,5)}}])}();function kJ(e,t){for(var n=e.getBoundingClientRect(),r=e.ownerDocument,o=r.defaultView||window,i=Math.max(0,n.left),a=Math.min(o.innerWidth,n.right),s=Math.max(0,n.top),c=Math.min(o.innerHeight,n.bottom),u=e.parentNode;u&&u!=r.body;)if(1==u.nodeType){var l=u,f=window.getComputedStyle(l);if((l.scrollHeight>l.clientHeight||l.scrollWidth>l.clientWidth)&&"visible"!=f.overflow){var d=l.getBoundingClientRect();i=Math.max(i,d.left),a=Math.min(a,d.right),s=Math.max(s,d.top),c=u==e.parentNode?d.bottom:Math.min(c,d.bottom)}u="absolute"==f.position||"fixed"==f.position?l.offsetParent:l.parentNode}else{if(11!=u.nodeType)break;u=u.host}return{left:i-n.left,right:Math.max(i,a)-n.left,top:s-(n.top+t),bottom:Math.max(s,c)-(n.top+t)}}function jJ(e,t){var n=e.getBoundingClientRect();return{left:0,right:n.right-n.left,top:t,bottom:n.bottom-(n.top+t)}}var SJ=function(){return Io((function e(t,n,r){Ro(this,e),this.from=t,this.to=n,this.size=r}),[{key:"draw",value:function(e,t){return aW.replace({widget:new CJ(this.size*(t?e.scaleY:e.scaleX),t)}).range(this.from,this.to)}}],[{key:"same",value:function(e,t){if(e.length!=t.length)return!1;for(var n=0;n<e.length;n++){var r=e[n],o=t[n];if(r.from!=o.from||r.to!=o.to||r.size!=o.size)return!1}return!0}}])}(),CJ=function(e){function t(e,n){var r;return Ro(this,t),(r=_o(this,t)).size=e,r.vertical=n,r}return Ao(t,oW),Io(t,[{key:"eq",value:function(e){return e.size==this.size&&e.vertical==this.vertical}},{key:"toDOM",value:function(){var e=document.createElement("div");return this.vertical?e.style.height=this.size+"px":(e.style.width=this.size+"px",e.style.height="2px",e.style.display="inline-block"),e}},{key:"estimatedHeight",get:function(){return this.vertical?this.size:-1}}])}(),$J=function(){return Io((function e(t){var n=this;Ro(this,e),this.state=t,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scrollTop=0,this.scrolledToBottom=!0,this.scaleX=1,this.scaleY=1,this.scrollAnchorPos=0,this.scrollAnchorHeight=-1,this.scaler=EJ,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=pW.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;var r=t.facet(oU).some((function(e){return"function"!=typeof e&&"cm-lineWrapping"==e.class}));this.heightOracle=new uJ(r),this.stateDeco=t.facet(iU).filter((function(e){return"function"!=typeof e})),this.heightMap=vJ.empty().applyChanges(this.stateDeco,oF.empty,this.heightOracle.setDoc(t.doc),[new hU(0,0,0,t.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=aW.set(this.lineGaps.map((function(e){return e.draw(n,!1)}))),this.computeVisibleRanges()}),[{key:"updateForViewport",value:function(){for(var e=this,t=[this.viewport],n=this.state.selection.main,r=function(){var r=o?n.head:n.anchor;if(!t.some((function(e){var t=e.from,n=e.to;return r>=t&&r<=n}))){var i=e.lineBlockAt(r),a=i.from,s=i.to;t.push(new _J(a,s))}},o=0;o<=1;o++)r();this.viewports=t.sort((function(e,t){return e.from-t.from})),this.scaler=this.heightMap.height<=7e6?EJ:new PJ(this.heightOracle,this.heightMap,this.viewports)}},{key:"updateViewportLines",value:function(){var e=this;this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,(function(t){e.viewportLines.push(1==e.scaler.scale?t:TJ(t,e.scaler))}))}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.state=e.state;var n=this.stateDeco;this.stateDeco=this.state.facet(iU).filter((function(e){return"function"!=typeof e}));var r,o,i,a,s=e.changedRanges,c=hU.extendWithRanges(s,(r=n,o=this.stateDeco,i=e?e.changes:AF.empty(this.state.doc.length),a=new xJ,RV.compare(r,o,i,a,0),a.changes)),u=this.heightMap.height,l=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),c),this.heightMap.height!=u&&(e.flags|=2),l?(this.scrollAnchorPos=e.changes.mapPos(l.from,-1),this.scrollAnchorHeight=l.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);var f=c.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.head<f.from||t.range.head>f.to)||!this.viewportIsAppropriate(f))&&(f=this.getViewport(0,t));var d=!e.changes.empty||2&e.flags||f.from!=this.viewport.from||f.to!=this.viewport.to;this.viewport=f,this.updateForViewport(),d&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(JW)&&(this.mustEnforceCursorAssoc=!0)}},{key:"measure",value:function(e){var t=e.contentDOM,n=window.getComputedStyle(t),r=this.heightOracle,o=n.whiteSpace;this.defaultTextDirection="rtl"==n.direction?pW.RTL:pW.LTR;var i=this.heightOracle.mustRefreshForWrapping(o),a=t.getBoundingClientRect(),s=i||this.mustMeasureContent||this.contentDOMHeight!=a.height;this.contentDOMHeight=a.height,this.mustMeasureContent=!1;var c=0,u=0;if(a.width&&a.height){var l=mH(t,a),f=l.scaleX,d=l.scaleY;(f>.005&&Math.abs(this.scaleX-f)>.005||d>.005&&Math.abs(this.scaleY-d)>.005)&&(this.scaleX=f,this.scaleY=d,c|=8,i=s=!0)}var h=(parseInt(n.paddingTop)||0)*this.scaleY,v=(parseInt(n.paddingBottom)||0)*this.scaleY;this.paddingTop==h&&this.paddingBottom==v||(this.paddingTop=h,this.paddingBottom=v,c|=10),this.editorWidth!=e.scrollDOM.clientWidth&&(r.lineWrapping&&(s=!0),this.editorWidth=e.scrollDOM.clientWidth,c|=8);var p=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=p&&(this.scrollAnchorHeight=-1,this.scrollTop=p),this.scrolledToBottom=SH(e.scrollDOM);var m=(this.printing?jJ:kJ)(t,this.paddingTop),g=m.top-this.pixelViewport.top,y=m.bottom-this.pixelViewport.bottom;this.pixelViewport=m;var b=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(b!=this.inView&&(this.inView=b,b&&(s=!0)),!this.inView&&!this.scrollTarget)return 0;var w=a.width;if(this.contentDOMWidth==w&&this.editorHeight==e.scrollDOM.clientHeight||(this.contentDOMWidth=a.width,this.editorHeight=e.scrollDOM.clientHeight,c|=8),s){var x=e.docView.measureVisibleLineHeights(this.viewport);if(r.mustRefreshForHeights(x)&&(i=!0),i||r.lineWrapping&&Math.abs(w-this.contentDOMWidth)>r.charWidth){var k=e.docView.measureTextSize(),j=k.lineHeight,S=k.charWidth,C=k.textHeight;(i=j>0&&r.refresh(o,j,S,C,w/S,x))&&(e.docView.minWidth=0,c|=8)}g>0&&y>0?u=Math.max(g,y):g<0&&y<0&&(u=Math.min(g,y)),r.heightChanged=!1;var $,_=bo(this.viewports);try{for(_.s();!($=_.n()).done;){var O=$.value,M=O.from==this.viewport.from?x:e.docView.measureVisibleLineHeights(O);this.heightMap=(i?vJ.empty().applyChanges(this.stateDeco,oF.empty,this.heightOracle,[new hU(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(r,0,i,new lJ(O.from,M))}}catch(e){_.e(e)}finally{_.f()}r.heightChanged&&(c|=2)}var A=!this.viewportIsAppropriate(this.viewport,u)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return A&&(this.viewport=this.getViewport(u,this.scrollTarget)),this.updateForViewport(),(2&c||A)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(i?[]:this.lineGaps,e)),c|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),c}},{key:"visibleTop",get:function(){return this.scaler.fromDOM(this.pixelViewport.top)}},{key:"visibleBottom",get:function(){return this.scaler.fromDOM(this.pixelViewport.bottom)}},{key:"getViewport",value:function(e,t){var n=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),r=this.heightMap,o=this.heightOracle,i=this.visibleTop,a=this.visibleBottom,s=new _J(r.lineAt(i-1e3*n,dJ.ByHeight,o,0,0).from,r.lineAt(a+1e3*(1-n),dJ.ByHeight,o,0,0).to);if(t){var c=t.range.head;if(c<s.from||c>s.to){var u,l=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),f=r.lineAt(c,dJ.ByPos,o,0,0);u="center"==t.y?(f.top+f.bottom)/2-l/2:"start"==t.y||"nearest"==t.y&&c<s.from?f.top:f.bottom-l,s=new _J(r.lineAt(u-500,dJ.ByHeight,o,0,0).from,r.lineAt(u+l+500,dJ.ByHeight,o,0,0).to)}}return s}},{key:"mapViewport",value:function(e,t){var n=t.mapPos(e.from,-1),r=t.mapPos(e.to,1);return new _J(this.heightMap.lineAt(n,dJ.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(r,dJ.ByPos,this.heightOracle,0,0).to)}},{key:"viewportIsAppropriate",value:function(e){var t=e.from,n=e.to,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!this.inView)return!0;var o=this.heightMap.lineAt(t,dJ.ByPos,this.heightOracle,0,0).top,i=this.heightMap.lineAt(n,dJ.ByPos,this.heightOracle,0,0).bottom,a=this.visibleTop,s=this.visibleBottom;return(0==t||o<=a-Math.max(10,Math.min(-r,250)))&&(n==this.state.doc.length||i>=s+Math.max(10,Math.min(r,250)))&&o>a-2e3&&i<s+2e3}},{key:"mapLineGaps",value:function(e,t){if(!e.length||t.empty)return e;var n,r=[],o=bo(e);try{for(o.s();!(n=o.n()).done;){var i=n.value;t.touchesRange(i.from,i.to)||r.push(new SJ(t.mapPos(i.from),t.mapPos(i.to),i.size))}}catch(e){o.e(e)}finally{o.f()}return r}},{key:"ensureLineGaps",value:function(e,t){var n=this,r=this.heightOracle.lineWrapping,o=r?1e4:2e3,i=o>>1,a=o<<1;if(this.defaultTextDirection!=pW.LTR&&!r)return[];var s,c=[],u=function o(a,s,u,l){if(!(s-a<i)){var f=n.state.selection.main,d=[f.from];f.empty||d.push(f.to);for(var h=0,v=d;h<v.length;h++){var p=v[h];if(p>a&&p<s)return o(a,p-10,u,l),void o(p+10,s,u,l)}var m=function(e,t){var n,r=bo(e);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(t(o))return o}}catch(e){r.e(e)}finally{r.f()}return}(e,(function(e){return e.from>=u.from&&e.to<=u.to&&Math.abs(e.from-a)<i&&Math.abs(e.to-s)<i&&!d.some((function(t){return e.from<t&&e.to>t}))}));if(!m){if(s<u.to&&t&&r&&t.visibleRanges.some((function(e){return e.from<=s&&e.to>=s}))){var g=t.moveToLineBoundary(zF.cursor(s),!1,!0).head;g>a&&(s=g)}m=new SJ(a,s,n.gapSize(u,a,s,l))}c.push(m)}},l=bo(this.viewportLines);try{for(l.s();!(s=l.n()).done;){var f=s.value;if(!(f.length<a)){var d=OJ(f.from,f.to,this.stateDeco);if(!(d.total<a)){var h=this.scrollTarget?this.scrollTarget.range.head:null,v=void 0,p=void 0;if(r){var m=o/this.heightOracle.lineLength*this.heightOracle.lineHeight,g=void 0,y=void 0;if(null!=h){var b=AJ(d,h),w=((this.visibleBottom-this.visibleTop)/2+m)/f.height;g=b-w,y=b+w}else g=(this.visibleTop-f.top-m)/f.height,y=(this.visibleBottom-f.top+m)/f.height;v=MJ(d,g),p=MJ(d,y)}else{var x=d.total*this.heightOracle.charWidth,k=o*this.heightOracle.charWidth,j=void 0,S=void 0;if(null!=h){var C=AJ(d,h),$=((this.pixelViewport.right-this.pixelViewport.left)/2+k)/x;j=C-$,S=C+$}else j=(this.pixelViewport.left-k)/x,S=(this.pixelViewport.right+k)/x;v=MJ(d,j),p=MJ(d,S)}v>f.from&&u(f.from,v,f,d),p<f.to&&u(p,f.to,f,d)}}}}catch(e){l.e(e)}finally{l.f()}return c}},{key:"gapSize",value:function(e,t,n,r){var o=AJ(r,n)-AJ(r,t);return this.heightOracle.lineWrapping?e.height*o:r.total*this.heightOracle.charWidth*o}},{key:"updateLineGaps",value:function(e){var t=this;SJ.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=aW.set(e.map((function(e){return e.draw(t,t.heightOracle.lineWrapping)}))))}},{key:"computeVisibleRanges",value:function(){var e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));var t=[];RV.spans(e,this.viewport.from,this.viewport.to,{span:function(e,n){t.push({from:e,to:n})},point:function(){}},20);var n=t.length!=this.visibleRanges.length||this.visibleRanges.some((function(e,n){return e.from!=t[n].from||e.to!=t[n].to}));return this.visibleRanges=t,n?4:0}},{key:"lineBlockAt",value:function(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find((function(t){return t.from<=e&&t.to>=e}))||TJ(this.heightMap.lineAt(e,dJ.ByPos,this.heightOracle,0,0),this.scaler)}},{key:"lineBlockAtHeight",value:function(e){return TJ(this.heightMap.lineAt(this.scaler.fromDOM(e),dJ.ByHeight,this.heightOracle,0,0),this.scaler)}},{key:"scrollAnchorAt",value:function(e){var t=this.lineBlockAtHeight(e+8);return t.from>=this.viewport.from||this.viewportLines[0].top-e>200?t:this.viewportLines[0]}},{key:"elementAtHeight",value:function(e){return TJ(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}},{key:"docHeight",get:function(){return this.scaler.toDOM(this.heightMap.height)}},{key:"contentHeight",get:function(){return this.docHeight+this.paddingTop+this.paddingBottom}}])}(),_J=Io((function e(t,n){Ro(this,e),this.from=t,this.to=n}));function OJ(e,t,n){var r=[],o=e,i=0;return RV.spans(n,e,t,{span:function(){},point:function(e,t){e>o&&(r.push({from:o,to:e}),i+=e-o),o=t}},20),o<t&&(r.push({from:o,to:t}),i+=t-o),{total:i,ranges:r}}function MJ(e,t){var n=e.total,r=e.ranges;if(t<=0)return r[0].from;if(t>=1)return r[r.length-1].to;for(var o=Math.floor(n*t),i=0;;i++){var a=r[i],s=a.from,c=a.to-s;if(o<=c)return s+o;o-=c}}function AJ(e,t){var n,r=0,o=bo(e.ranges);try{for(o.s();!(n=o.n()).done;){var i=n.value,a=i.from,s=i.to;if(t<=s){r+=t-a;break}r+=s-a}}catch(e){o.e(e)}finally{o.f()}return r/e.total}var EJ={toDOM:function(e){return e},fromDOM:function(e){return e},scale:1},PJ=function(){return Io((function e(t,n,r){Ro(this,e);var o=0,i=0,a=0;this.viewports=r.map((function(e){var r=e.from,i=e.to,a=n.lineAt(r,dJ.ByPos,t,0,0).top,s=n.lineAt(i,dJ.ByPos,t,0,0).bottom;return o+=s-a,{from:r,to:i,top:a,bottom:s,domTop:0,domBottom:0}})),this.scale=(7e6-o)/(n.height-o);var s,c=bo(this.viewports);try{for(c.s();!(s=c.n()).done;){var u=s.value;u.domTop=a+(u.top-i)*this.scale,a=u.domBottom=u.domTop+(u.bottom-u.top),i=u.bottom}}catch(e){c.e(e)}finally{c.f()}}),[{key:"toDOM",value:function(e){for(var t=0,n=0,r=0;;t++){var o=t<this.viewports.length?this.viewports[t]:null;if(!o||e<o.top)return r+(e-n)*this.scale;if(e<=o.bottom)return o.domTop+(e-o.top);n=o.bottom,r=o.domBottom}}},{key:"fromDOM",value:function(e){for(var t=0,n=0,r=0;;t++){var o=t<this.viewports.length?this.viewports[t]:null;if(!o||e<o.domTop)return n+(e-r)/this.scale;if(e<=o.domBottom)return o.top+(e-o.domTop);n=o.bottom,r=o.domBottom}}}])}();function TJ(e,t){if(1==t.scale)return e;var n=t.toDOM(e.top),r=t.toDOM(e.bottom);return new fJ(e.from,e.length,n,r-n,Array.isArray(e._content)?e._content.map((function(e){return TJ(e,t)})):e._content)}var RJ=qF.define({combine:function(e){return e.join(" ")}}),NJ=qF.define({combine:function(e){return e.indexOf(!0)>-1}}),IJ=YV.newName(),DJ=YV.newName(),zJ=YV.newName(),BJ={"&light":"."+DJ,"&dark":"."+zJ};function LJ(e,t,n){return new YV(t,{finish:function(t){return/&/.test(t)?t.replace(/&\w*/,(function(t){if("&"==t)return e;if(!n||!n[t])throw new RangeError("Unsupported selector: ".concat(t));return n[t]})):e+" "+t}})}var qJ=LJ("."+IJ,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:'url(\'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>\')',backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},BJ),FJ="",VJ=function(){return Io((function e(t,n){Ro(this,e),this.points=t,this.text="",this.lineSeparator=n.facet(OV.lineSeparator)}),[{key:"append",value:function(e){this.text+=e}},{key:"lineBreak",value:function(){this.text+=FJ}},{key:"readRange",value:function(e,t){if(!e)return this;for(var n=e.parentNode,r=e;;){this.findPointBefore(n,r);var o=this.text.length;this.readNode(r);var i=r.nextSibling;if(i==t)break;var a=_H.get(r),s=_H.get(i);(a&&s?a.breakAfter:(a?a.breakAfter:WJ(r))||WJ(i)&&("BR"!=r.nodeName||r.cmIgnore)&&this.text.length>o)&&this.lineBreak(),r=i}return this.findPointBefore(n,t),this}},{key:"readTextNode",value:function(e){var t,n=e.nodeValue,r=bo(this.points);try{for(r.s();!(t=r.n()).done;){var o=t.value;o.node==e&&(o.pos=this.text.length+Math.min(o.offset,n.length))}}catch(e){r.e(e)}finally{r.f()}for(var i=0,a=this.lineSeparator?null:/\r\n?|\n/g;;){var s=-1,c=1,u=void 0;if(this.lineSeparator?(s=n.indexOf(this.lineSeparator,i),c=this.lineSeparator.length):(u=a.exec(n))&&(s=u.index,c=u[0].length),this.append(n.slice(i,s<0?n.length:s)),s<0)break;if(this.lineBreak(),c>1){var l,f=bo(this.points);try{for(f.s();!(l=f.n()).done;){var d=l.value;d.node==e&&d.pos>this.text.length&&(d.pos-=c-1)}}catch(e){f.e(e)}finally{f.f()}}i=s+c}}},{key:"readNode",value:function(e){if(!e.cmIgnore){var t=_H.get(e),n=t&&t.overrideDOMText;if(null!=n){this.findPointInside(e,n.length);for(var r=n.iter();!r.next().done;)r.lineBreak?this.lineBreak():this.append(r.value)}else 3==e.nodeType?this.readTextNode(e):"BR"==e.nodeName?e.nextSibling&&this.lineBreak():1==e.nodeType&&this.readRange(e.firstChild,null)}}},{key:"findPointBefore",value:function(e,t){var n,r=bo(this.points);try{for(r.s();!(n=r.n()).done;){var o=n.value;o.node==e&&e.childNodes[o.offset]==t&&(o.pos=this.text.length)}}catch(e){r.e(e)}finally{r.f()}}},{key:"findPointInside",value:function(e,t){var n,r=bo(this.points);try{for(r.s();!(n=r.n()).done;){var o=n.value;(3==e.nodeType?o.node==e:e.contains(o.node))&&(o.pos=this.text.length+(HJ(e,o.node,o.offset)?t:0))}}catch(e){r.e(e)}finally{r.f()}}}])}();function HJ(e,t,n){for(;;){if(!t||n<hH(t))return!1;if(t==e)return!0;n=fH(t)+1,t=t.parentNode}}function WJ(e){return 1==e.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(e.nodeName)}var UJ=Io((function e(t,n){Ro(this,e),this.node=t,this.offset=n,this.pos=-1})),JJ=Io((function e(t,n,r,o){Ro(this,e),this.typeOver=o,this.bounds=null,this.text="";var i=t.docView,a=i.impreciseHead,s=i.impreciseAnchor;if(t.state.readOnly&&n>-1)this.newSel=null;else if(n>-1&&(this.bounds=t.docView.domBoundsAround(n,r,0))){var c=a||s?[]:function(e){var t=[];if(e.root.activeElement!=e.contentDOM)return t;var n=e.observer.selectionRange,r=n.anchorNode,o=n.anchorOffset,i=n.focusNode,a=n.focusOffset;r&&(t.push(new UJ(r,o)),i==r&&a==o||t.push(new UJ(i,a)));return t}(t),u=new VJ(c,t.state);u.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=u.text,this.newSel=function(e,t){if(0==e.length)return null;var n=e[0].pos,r=2==e.length?e[1].pos:n;return n>-1&&r>-1?zF.single(n+t,r+t):null}(c,this.bounds.from)}else{var l=t.observer.selectionRange,f=a&&a.node==l.focusNode&&a.offset==l.focusOffset||!sH(t.contentDOM,l.focusNode)?t.state.selection.main.head:t.docView.posFromDOM(l.focusNode,l.focusOffset),d=s&&s.node==l.anchorNode&&s.offset==l.anchorOffset||!sH(t.contentDOM,l.anchorNode)?t.state.selection.main.anchor:t.docView.posFromDOM(l.anchorNode,l.anchorOffset),h=t.viewport;if((VH.ios||VH.chrome)&&t.state.selection.main.empty&&f!=d&&(h.from>0||h.to<t.state.doc.length)){var v=Math.min(f,d),p=Math.max(f,d),m=h.from-v,g=h.to-p;0!=m&&1!=m&&0!=v||0!=g&&-1!=g&&p!=t.state.doc.length||(f=0,d=t.state.doc.length)}this.newSel=zF.single(d,f)}}));function KJ(e,t){var n,r=t.newSel,o=e.state.selection.main,i=e.inputState.lastKeyTime>Date.now()-100?e.inputState.lastKeyCode:-1;if(t.bounds){var a=t.bounds,s=a.from,c=a.to,u=o.from,l=null;(8===i||VH.android&&t.text.length<c-s)&&(u=o.to,l="end");var f=function(e,t,n,r){var o=Math.min(e.length,t.length),i=0;for(;i<o&&e.charCodeAt(i)==t.charCodeAt(i);)i++;if(i==o&&e.length==t.length)return null;var a=e.length,s=t.length;for(;a>0&&s>0&&e.charCodeAt(a-1)==t.charCodeAt(s-1);)a--,s--;if("end"==r){n-=a+Math.max(0,i-Math.min(a,s))-i}if(a<i&&e.length<t.length){s=(i-=n<=i&&n>=a?i-n:0)+(s-a),a=i}else if(s<i){a=(i-=n<=i&&n>=s?i-n:0)+(a-s),s=i}return{from:i,toA:a,toB:s}}(e.state.doc.sliceString(s,c,FJ),t.text,u-s,l);f&&(VH.chrome&&13==i&&f.toB==f.from+2&&t.text.slice(f.from,f.toB)==FJ+FJ&&f.toB--,n={from:s+f.from,to:s+f.toA,insert:oF.of(t.text.slice(f.from,f.toB).split(FJ))})}else r&&(!e.hasFocus&&e.state.facet(XW)||r.main.eq(o))&&(r=null);if(!n&&!r)return!1;if(!n&&t.typeOver&&!o.empty&&r&&r.main.empty?n={from:o.from,to:o.to,insert:e.state.doc.slice(o.from,o.to)}:n&&n.from>=o.from&&n.to<=o.to&&(n.from!=o.from||n.to!=o.to)&&o.to-o.from-(n.to-n.from)<=4?n={from:o.from,to:o.to,insert:e.state.doc.slice(o.from,n.from).append(n.insert).append(e.state.doc.slice(n.to,o.to))}:(VH.mac||VH.android)&&n&&n.from==n.to&&n.from==o.head-1&&/^\. ?$/.test(n.insert.toString())&&"off"==e.contentDOM.getAttribute("autocorrect")?(r&&2==n.insert.length&&(r=zF.single(r.main.anchor-1,r.main.head-1)),n={from:o.from,to:o.to,insert:oF.of([" "])}):VH.chrome&&n&&n.from==n.to&&n.from==o.head&&"\n "==n.insert.toString()&&e.lineWrapping&&(r&&(r=zF.single(r.main.anchor-1,r.main.head-1)),n={from:o.from,to:o.to,insert:oF.of([" "])}),n){if(VH.ios&&e.inputState.flushIOSKey(n))return!0;if(VH.android&&(n.to==o.to&&(n.from==o.from||n.from==o.from-1&&" "==e.state.sliceDoc(n.from,o.from))&&1==n.insert.length&&2==n.insert.lines&&kH(e.contentDOM,"Enter",13)||(n.from==o.from-1&&n.to==o.to&&0==n.insert.length||8==i&&n.insert.length<n.to-n.from&&n.to>o.head)&&kH(e.contentDOM,"Backspace",8)||n.from==o.from&&n.to==o.to+1&&0==n.insert.length&&kH(e.contentDOM,"Delete",46)))return!0;var d,h=n.insert.toString();e.inputState.composing>=0&&e.inputState.composing++;var v=function(){return d||(d=function(e,t,n){var r,o=e.state,i=o.selection.main;if(t.from>=i.from&&t.to<=i.to&&t.to-t.from>=(i.to-i.from)/3&&(!n||n.main.empty&&n.main.from==t.from+t.insert.length)&&e.inputState.composing<0){var a=i.from<t.from?o.sliceDoc(i.from,t.from):"",s=i.to>t.to?o.sliceDoc(t.to,i.to):"";r=o.replaceSelection(e.state.toText(a+t.insert.sliceString(0,void 0,e.state.lineBreak)+s))}else{var c=o.changes(t),u=n&&n.main.to<=c.newLength?n.main:void 0;if(o.selection.ranges.length>1&&e.inputState.composing>=0&&t.to<=i.to&&t.to>=i.to-10){var l,f=e.state.sliceDoc(t.from,t.to),d=n&&yU(e,n.main.head);if(d){var h=t.insert.length-(t.to-t.from);l={from:d.from,to:d.to-h}}else l=e.state.doc.lineAt(i.head);var v=i.to-t.to,p=i.to-i.from;r=o.changeByRange((function(n){if(n.from==i.from&&n.to==i.to)return{changes:c,range:u||n.map(c)};var r=n.to-v,a=r-f.length;if(n.to-n.from!=p||e.state.sliceDoc(a,r)!=f||n.to>=l.from&&n.from<=l.to)return{range:n};var s=o.changes({from:a,to:r,insert:t.insert}),d=n.to-i.to;return{changes:s,range:u?zF.range(Math.max(0,u.anchor+d),Math.max(0,u.head+d)):n.map(s)}}))}else r={changes:c,selection:u&&o.selection.replaceRange(u)}}var m="input.type";(e.composing||e.inputState.compositionPendingChange&&e.inputState.compositionEndedAt>Date.now()-50)&&(e.inputState.compositionPendingChange=!1,m+=".compose",e.inputState.compositionFirstChange&&(m+=".start",e.inputState.compositionFirstChange=!1));return o.update(r,{userEvent:m,scrollIntoView:!0})}(e,n,r))};return e.state.facet(HW).some((function(t){return t(e,n.from,n.to,h,v)}))||e.dispatch(v()),!0}if(r&&!r.main.eq(o)){var p=!1,m="select";return e.inputState.lastSelectionTime>Date.now()-50&&("select"==e.inputState.lastSelectionOrigin&&(p=!0),m=e.inputState.lastSelectionOrigin),e.dispatch({selection:r,scrollIntoView:p,userEvent:m}),!0}return!1}var GJ={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},QJ=VH.ie&&VH.ie_version<=11,YJ=function(){return Io((function e(t){var n=this;Ro(this,e),this.view=t,this.active=!1,this.selectionRange=new yH,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=t.contentDOM,this.observer=new MutationObserver((function(e){var r,o=bo(e);try{for(o.s();!(r=o.n()).done;){var i=r.value;n.queue.push(i)}}catch(e){o.e(e)}finally{o.f()}(VH.ie&&VH.ie_version<=11||VH.ios&&t.composing)&&e.some((function(e){return"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length}))?n.flushSoon():n.flush()})),QJ&&(this.onCharData=function(e){n.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),n.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),"function"==typeof ResizeObserver&&(this.resizeScroll=new ResizeObserver((function(){var e;(null===(e=n.view.docView)||void 0===e?void 0:e.lastUpdate)<Date.now()-75&&n.onResize()})),this.resizeScroll.observe(t.scrollDOM)),this.addWindowListeners(this.win=t.win),this.start(),"function"==typeof IntersectionObserver&&(this.intersection=new IntersectionObserver((function(e){n.parentCheck<0&&(n.parentCheck=setTimeout(n.listenForScroll.bind(n),1e3)),e.length>0&&e[e.length-1].intersectionRatio>0!=n.intersecting&&(n.intersecting=!n.intersecting,n.intersecting!=n.view.inView&&n.onScrollChanged(document.createEvent("Event")))}),{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver((function(e){e.length>0&&e[e.length-1].intersectionRatio>0&&n.onScrollChanged(document.createEvent("Event"))}),{})),this.listenForScroll(),this.readSelectionRange()}),[{key:"onScrollChanged",value:function(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}},{key:"onScroll",value:function(e){this.intersecting&&this.flush(!1),this.onScrollChanged(e)}},{key:"onResize",value:function(){var e=this;this.resizeTimeout<0&&(this.resizeTimeout=setTimeout((function(){e.resizeTimeout=-1,e.view.requestMeasure()}),50))}},{key:"onPrint",value:function(e){var t=this;("change"!=e.type||e.matches)&&(this.view.viewState.printing=!0,this.view.measure(),setTimeout((function(){t.view.viewState.printing=!1,t.view.requestMeasure()}),500))}},{key:"updateGaps",value:function(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((function(t,n){return t!=e[n]})))){this.gapIntersection.disconnect();var t,n=bo(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;this.gapIntersection.observe(r)}}catch(e){n.e(e)}finally{n.f()}this.gaps=e}}},{key:"onSelectionChange",value:function(e){var t=this.selectionChanged;if(this.readSelectionRange()&&!this.delayedAndroidKey){var n=this.view,r=this.selectionRange;if(n.state.facet(XW)?n.root.activeElement==this.dom:cH(n.dom,r)){var o=r.anchorNode&&n.docView.nearest(r.anchorNode);o&&o.ignoreEvent(e)?t||(this.selectionChanged=!1):(VH.ie&&VH.ie_version<=11||VH.android&&VH.chrome)&&!n.state.selection.main.empty&&r.focusNode&&lH(r.focusNode,r.focusOffset,r.anchorNode,r.anchorOffset)?this.flushSoon():this.flush(!1)}}}},{key:"readSelectionRange",value:function(){var e=this.view,t=VH.safari&&11==e.root.nodeType&&function(e){for(var t=e.activeElement;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}(this.dom.ownerDocument)==this.dom&&function(e){var t=null;function n(e){e.preventDefault(),e.stopImmediatePropagation(),t=e.getTargetRanges()[0]}if(e.contentDOM.addEventListener("beforeinput",n,!0),e.dom.ownerDocument.execCommand("indent"),e.contentDOM.removeEventListener("beforeinput",n,!0),!t)return null;var r=t.startContainer,o=t.startOffset,i=t.endContainer,a=t.endOffset,s=e.docView.domAtPos(e.state.selection.main.anchor);if(lH(s.node,s.offset,i,a)){var c=[i,a,r,o];r=c[0],o=c[1],i=c[2],a=c[3]}return{anchorNode:r,anchorOffset:o,focusNode:i,focusOffset:a}}(this.view)||aH(e.root);if(!t||this.selectionRange.eq(t))return!1;var n=cH(this.dom,t);return n&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime<Date.now()-300&&function(e,t){var n=t.focusNode,r=t.focusOffset;if(!n||t.anchorNode!=n||t.anchorOffset!=r)return!1;for(r=Math.min(r,hH(n));;)if(r){if(1!=n.nodeType)return!1;var o=n.childNodes[r-1];"false"==o.contentEditable?r--:r=hH(n=o)}else{if(n==e)return!0;r=fH(n),n=n.parentNode}}(this.dom,t)?(this.view.inputState.lastFocusTime=0,e.docView.updateSelection(),!1):(this.selectionRange.setRange(t),n&&(this.selectionChanged=!0),!0)}},{key:"setSelectionRange",value:function(e,t){this.selectionRange.set(e.node,e.offset,t.node,t.offset),this.selectionChanged=!1}},{key:"clearSelectionRange",value:function(){this.selectionRange.set(null,0,null,0)}},{key:"listenForScroll",value:function(){this.parentCheck=-1;for(var e=0,t=null,n=this.dom;n;)if(1==n.nodeType)!t&&e<this.scrollTargets.length&&this.scrollTargets[e]==n?e++:t||(t=this.scrollTargets.slice(0,e)),t&&t.push(n),n=n.assignedSlot||n.parentNode;else{if(11!=n.nodeType)break;n=n.host}if(e<this.scrollTargets.length&&!t&&(t=this.scrollTargets.slice(0,e)),t){var r,o=bo(this.scrollTargets);try{for(o.s();!(r=o.n()).done;){r.value.removeEventListener("scroll",this.onScroll)}}catch(e){o.e(e)}finally{o.f()}var i,a=bo(this.scrollTargets=t);try{for(a.s();!(i=a.n()).done;){i.value.addEventListener("scroll",this.onScroll)}}catch(e){a.e(e)}finally{a.f()}}}},{key:"ignore",value:function(e){if(!this.active)return e();try{return this.stop(),e()}finally{this.start(),this.clear()}}},{key:"start",value:function(){this.active||(this.observer.observe(this.dom,GJ),QJ&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}},{key:"stop",value:function(){this.active&&(this.active=!1,this.observer.disconnect(),QJ&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}},{key:"clear",value:function(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}},{key:"delayAndroidKey",value:function(e,t){var n,r=this;if(!this.delayedAndroidKey){this.flushingAndroidKey=this.view.win.requestAnimationFrame((function(){var e=r.delayedAndroidKey;e&&(r.clearDelayedAndroidKey(),r.view.inputState.lastKeyCode=e.keyCode,r.view.inputState.lastKeyTime=Date.now(),!r.flush()&&e.force&&kH(r.dom,e.key,e.keyCode))}))}this.delayedAndroidKey&&"Enter"!=e||(this.delayedAndroidKey={key:e,keyCode:t,force:this.lastChange<Date.now()-50||!!(null===(n=this.delayedAndroidKey)||void 0===n?void 0:n.force)})}},{key:"clearDelayedAndroidKey",value:function(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}},{key:"flushSoon",value:function(){var e=this;this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame((function(){e.delayedFlush=-1,e.flush()})))}},{key:"forceFlush",value:function(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}},{key:"pendingRecords",value:function(){var e,t=bo(this.observer.takeRecords());try{for(t.s();!(e=t.n()).done;){var n=e.value;this.queue.push(n)}}catch(e){t.e(e)}finally{t.f()}return this.queue}},{key:"processRecords",value:function(){var e=this.pendingRecords();e.length&&(this.queue=[]);var t,n=-1,r=-1,o=!1,i=bo(e);try{for(i.s();!(t=i.n()).done;){var a=t.value,s=this.readMutation(a);s&&(s.typeOver&&(o=!0),-1==n?(n=s.from,r=s.to):(n=Math.min(s.from,n),r=Math.max(s.to,r)))}}catch(e){i.e(e)}finally{i.f()}return{from:n,to:r,typeOver:o}}},{key:"readChange",value:function(){var e=this.processRecords(),t=e.from,n=e.to,r=e.typeOver,o=this.selectionChanged&&cH(this.dom,this.selectionRange);if(t<0&&!o)return null;t>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;var i=new JJ(this.view,t,n,r);return this.view.docView.domChanged={newSel:i.newSel?i.newSel.main:null},i}},{key:"flush",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();var t=this.readChange();if(!t)return this.view.requestMeasure(),!1;var n=this.view.state,r=KJ(this.view,t);return this.view.state==n&&this.view.update([]),r}},{key:"readMutation",value:function(e){var t=this.view.docView.nearest(e.target);if(!t||t.ignoreMutation(e))return null;if(t.markDirty("attributes"==e.type),"attributes"==e.type&&(t.flags|=4),"childList"==e.type){var n=XJ(t,e.previousSibling||e.target.previousSibling,-1),r=XJ(t,e.nextSibling||e.target.nextSibling,1);return{from:n?t.posAfter(n):t.posAtStart,to:r?t.posBefore(r):t.posAtEnd,typeOver:!1}}return"characterData"==e.type?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}},{key:"setWindow",value:function(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}},{key:"addWindowListeners",value:function(e){e.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener("change",this.onPrint):e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}},{key:"removeWindowListeners",value:function(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener("change",this.onPrint):e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}},{key:"destroy",value:function(){var e,t,n;this.stop(),null===(e=this.intersection)||void 0===e||e.disconnect(),null===(t=this.gapIntersection)||void 0===t||t.disconnect(),null===(n=this.resizeScroll)||void 0===n||n.disconnect();var r,o=bo(this.scrollTargets);try{for(o.s();!(r=o.n()).done;){r.value.removeEventListener("scroll",this.onScroll)}}catch(e){o.e(e)}finally{o.f()}this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}])}();function XJ(e,t,n){for(;t;){var r=_H.get(t);if(r&&r.parent==e)return r;var o=t.parentNode;t=o!=e.dom?o:n>0?t.nextSibling:t.previousSibling}return null}var ZJ=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Ro(this,e),this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),n.parent&&n.parent.appendChild(this.dom);var r=n.dispatch;this.dispatchTransactions=n.dispatchTransactions||r&&function(e){return e.forEach((function(e){return r(e,t)}))}||function(e){return t.update(e)},this.dispatch=this.dispatch.bind(this),this._root=n.root||function(e){for(;e;){if(e&&(9==e.nodeType||11==e.nodeType&&e.host))return e;e=e.assignedSlot||e.parentNode}return null}(n.parent)||document,this.viewState=new $J(n.state||OV.create(n)),n.scrollTo&&n.scrollTo.is(QW)&&(this.viewState.scrollTarget=n.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(eU).map((function(e){return new nU(e)}));var o,i=bo(this.plugins);try{for(i.s();!(o=i.n()).done;){o.value.update(this)}}catch(e){i.e(e)}finally{i.f()}this.observer=new YJ(this),this.inputState=new RU(this),this.inputState.ensureHandlers(this.plugins),this.docView=new pU(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure()}return Io(e,[{key:"state",get:function(){return this.viewState.state}},{key:"viewport",get:function(){return this.viewState.viewport}},{key:"visibleRanges",get:function(){return this.viewState.visibleRanges}},{key:"inView",get:function(){return this.viewState.inView}},{key:"composing",get:function(){return this.inputState.composing>0}},{key:"compositionStarted",get:function(){return this.inputState.composing>=0}},{key:"root",get:function(){return this._root}},{key:"win",get:function(){return this.dom.ownerDocument.defaultView||window}},{key:"dispatch",value:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=1==n.length&&n[0]instanceof gV?n:1==n.length&&Array.isArray(n[0])?n[0]:[(e=this.state).update.apply(e,n)];this.dispatchTransactions(o,this)}},{key:"update",value:function(e){var t=this;if(0!=this.updateState)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");var n,r,o=!1,i=!1,a=this.state,s=bo(e);try{for(s.s();!(r=s.n()).done;){var c=r.value;if(c.startState!=a)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");a=c.state}}catch(e){s.e(e)}finally{s.f()}if(this.destroyed)this.viewState.state=a;else{var u=this.hasFocus,l=0,f=null;e.some((function(e){return e.annotation(oJ)}))?(this.inputState.notifiedFocused=u,l=1):u!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=u,(f=iJ(a,u))||(l=1));var d=this.observer.delayedAndroidKey,h=null;if(d?(this.observer.clearDelayedAndroidKey(),((h=this.observer.readChange())&&!this.state.doc.eq(a.doc)||!this.state.selection.eq(a.selection))&&(h=null)):this.observer.clear(),a.facet(OV.phrases)!=this.state.facet(OV.phrases))return this.setState(a);n=vU.create(this,a,e),n.flags|=l;var v=this.viewState.scrollTarget;try{this.updateState=2;var p,m=bo(e);try{for(m.s();!(p=m.n()).done;){var g=p.value;if(v&&(v=v.map(g.changes)),g.scrollIntoView){var y=g.state.selection.main;v=new GW(y.empty?y:zF.cursor(y.head,y.head>y.anchor?-1:1))}var b,w=bo(g.effects);try{for(w.s();!(b=w.n()).done;){var x=b.value;x.is(QW)&&(v=x.value.clip(this.state))}}catch(e){w.e(e)}finally{w.f()}}}catch(e){m.e(e)}finally{m.f()}this.viewState.update(n,v),this.bidiCache=nK.update(this.bidiCache,n.changes),n.empty||(this.updatePlugins(n),this.inputState.update(n)),o=this.docView.update(n),this.state.facet(dU)!=this.styleModules&&this.mountStyles(),i=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(o,e.some((function(e){return e.isUserEvent("select.pointer")})))}finally{this.updateState=0}if(n.startState.facet(RJ)!=n.state.facet(RJ)&&(this.viewState.mustMeasureContent=!0),(o||i||v||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),o&&this.docViewUpdate(),!n.empty){var k,j=bo(this.state.facet(VW));try{for(j.s();!(k=j.n()).done;){var S=k.value;try{S(n)}catch(x){YW(this.state,x,"update listener")}}}catch(e){j.e(e)}finally{j.f()}}(f||h)&&Promise.resolve().then((function(){f&&t.state==f.startState&&t.dispatch(f),h&&!KJ(t,h)&&d.force&&kH(t.contentDOM,d.key,d.keyCode)}))}}},{key:"setState",value:function(e){if(0!=this.updateState)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed)this.viewState.state=e;else{this.updateState=2;var t=this.hasFocus;try{var n,r=bo(this.plugins);try{for(r.s();!(n=r.n()).done;){n.value.destroy(this)}}catch(e){r.e(e)}finally{r.f()}this.viewState=new $J(e),this.plugins=e.facet(eU).map((function(e){return new nU(e)})),this.pluginMap.clear();var o,i=bo(this.plugins);try{for(i.s();!(o=i.n()).done;){o.value.update(this)}}catch(e){i.e(e)}finally{i.f()}this.docView.destroy(),this.docView=new pU(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}}},{key:"updatePlugins",value:function(e){var t=e.startState.facet(eU),n=e.state.facet(eU);if(t!=n){var r,o=[],i=bo(n);try{for(i.s();!(r=i.n()).done;){var a=r.value,s=t.indexOf(a);if(s<0)o.push(new nU(a));else{var c=this.plugins[s];c.mustUpdate=e,o.push(c)}}}catch(e){i.e(e)}finally{i.f()}var u,l=bo(this.plugins);try{for(l.s();!(u=l.n()).done;){var f=u.value;f.mustUpdate!=e&&f.destroy(this)}}catch(e){l.e(e)}finally{l.f()}this.plugins=o,this.pluginMap.clear()}else{var d,h=bo(this.plugins);try{for(h.s();!(d=h.n()).done;){d.value.mustUpdate=e}}catch(e){h.e(e)}finally{h.f()}}for(var v=0;v<this.plugins.length;v++)this.plugins[v].update(this);t!=n&&this.inputState.ensureHandlers(this.plugins)}},{key:"docViewUpdate",value:function(){var e,t=bo(this.plugins);try{for(t.s();!(e=t.n()).done;){var n=e.value.value;if(n&&n.docViewUpdate)try{n.docViewUpdate(this)}catch(e){YW(this.state,e,"doc view update listener")}}}catch(e){t.e(e)}finally{t.f()}}},{key:"measure",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!this.destroyed){if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey)return this.measureScheduled=-1,void this.requestMeasure();this.measureScheduled=0,t&&this.observer.forceFlush();var n=null,r=this.scrollDOM,o=r.scrollTop*this.scaleY,i=this.viewState,a=i.scrollAnchorPos,s=i.scrollAnchorHeight;Math.abs(o-this.viewState.scrollTop)>1&&(s=-1),this.viewState.scrollAnchorHeight=-1;try{for(var c=0;;c++){if(s<0)if(SH(r))a=-1,s=this.viewState.heightMap.height;else{var u=this.viewState.scrollAnchorAt(o);a=u.from,s=u.top}this.updateState=1;var l=this.viewState.measure(this);if(!l&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(c>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}var f=[];if(!(4&l)){var d=[f,this.measureRequests];this.measureRequests=d[0],f=d[1]}var h=f.map((function(t){try{return t.read(e)}catch(t){return YW(e.state,t),tK}})),v=vU.create(this,this.state,[]),p=!1;v.flags|=l,n?n.flags|=l:n=v,this.updateState=2,v.empty||(this.updatePlugins(v),this.inputState.update(v),this.updateAttrs(),(p=this.docView.update(v))&&this.docViewUpdate());for(var m=0;m<f.length;m++)if(h[m]!=tK)try{var g=f[m];g.write&&g.write(h[m],this)}catch(e){YW(this.state,e)}if(p&&this.docView.updateSelection(!0),!v.viewportChanged&&0==this.measureRequests.length){if(this.viewState.editorHeight){if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,s=-1;continue}var y=(a<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(a).top)-s;if(y>1||y<-1){o+=y,r.scrollTop=o/this.scaleY,s=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(n&&!n.empty){var b,w=bo(this.state.facet(VW));try{for(w.s();!(b=w.n()).done;){(0,b.value)(n)}}catch(e){w.e(e)}finally{w.f()}}}}},{key:"themeClasses",get:function(){return IJ+" "+(this.state.facet(NJ)?zJ:DJ)+" "+this.state.facet(RJ)}},{key:"updateAttrs",value:function(){var e=this,t=rK(this,rU,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),n={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(XW)?"true":"false",class:"cm-content",style:"".concat(VH.tabSize,": ").concat(this.state.tabSize),role:"textbox","aria-multiline":"true"};this.state.readOnly&&(n["aria-readonly"]="true"),rK(this,oU,n);var r=this.observer.ignore((function(){var r=eW(e.contentDOM,e.contentAttrs,n),o=eW(e.dom,e.editorAttrs,t);return r||o}));return this.editorAttrs=t,this.contentAttrs=n,r}},{key:"showAnnouncements",value:function(t){var n,r=!0,o=bo(t);try{for(o.s();!(n=o.n()).done;){var i,a=bo(n.value.effects);try{for(a.s();!(i=a.n()).done;){var s=i.value;if(s.is(e.announce))r&&(this.announceDOM.textContent=""),r=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=s.value}}catch(e){a.e(e)}finally{a.f()}}}catch(e){o.e(e)}finally{o.f()}}},{key:"mountStyles",value:function(){this.styleModules=this.state.facet(dU);var t=this.state.facet(e.cspNonce);YV.mount(this.root,this.styleModules.concat(qJ).reverse(),t?{nonce:t}:void 0)}},{key:"readMeasured",value:function(){if(2==this.updateState)throw new Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}},{key:"requestMeasure",value:function(e){var t=this;if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame((function(){return t.measure()}))),e){if(this.measureRequests.indexOf(e)>-1)return;if(null!=e.key)for(var n=0;n<this.measureRequests.length;n++)if(this.measureRequests[n].key===e.key)return void(this.measureRequests[n]=e);this.measureRequests.push(e)}}},{key:"plugin",value:function(e){var t=this.pluginMap.get(e);return(void 0===t||t&&t.spec!=e)&&this.pluginMap.set(e,t=this.plugins.find((function(t){return t.spec==e}))||null),t&&t.update(this).value}},{key:"documentTop",get:function(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}},{key:"documentPadding",get:function(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}},{key:"scaleX",get:function(){return this.viewState.scaleX}},{key:"scaleY",get:function(){return this.viewState.scaleY}},{key:"elementAtHeight",value:function(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}},{key:"lineBlockAtHeight",value:function(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}},{key:"viewportLineBlocks",get:function(){return this.viewState.viewportLines}},{key:"lineBlockAt",value:function(e){return this.viewState.lineBlockAt(e)}},{key:"contentHeight",get:function(){return this.viewState.contentHeight}},{key:"moveByChar",value:function(e,t,n){return TU(this,e,EU(this,e,t,n))}},{key:"moveByGroup",value:function(e,t){var n=this;return TU(this,e,EU(this,e,t,(function(t){return function(e,t,n){var r=e.state.charCategorizer(t),o=r(n);return function(e){var t=r(e);return o==CV.Space&&(o=t),o==t}}(n,e.head,t)})))}},{key:"visualLineSide",value:function(e,t){var n=this.bidiSpans(e),r=this.textDirectionAt(e.from),o=n[t?n.length-1:0];return zF.cursor(o.side(t,r)+e.from,o.forward(!t,r)?1:-1)}},{key:"moveToLineBoundary",value:function(e,t){return function(e,t,n,r){var o=AU(e,t.head),i=r&&o.type==iW.Text&&(e.lineWrapping||o.widgetLineBreaks)?e.coordsAtPos(t.assoc<0&&t.head>o.from?t.head-1:t.head):null;if(i){var a=e.dom.getBoundingClientRect(),s=e.textDirectionAt(o.from),c=e.posAtCoords({x:n==(s==pW.LTR)?a.right-1:a.left+1,y:(i.top+i.bottom)/2});if(null!=c)return zF.cursor(c,n?-1:1)}return zF.cursor(n?o.to:o.from,n?-1:1)}(this,e,t,!(arguments.length>2&&void 0!==arguments[2])||arguments[2])}},{key:"moveVertically",value:function(e,t,n){return TU(this,e,function(e,t,n,r){var o=t.head,i=n?1:-1;if(o==(n?e.state.doc.length:0))return zF.cursor(o,t.assoc);var a,s=t.goalColumn,c=e.contentDOM.getBoundingClientRect(),u=e.coordsAtPos(o,t.assoc||-1),l=e.documentTop;if(u)null==s&&(s=u.left-c.left),a=i<0?u.top:u.bottom;else{var f=e.viewState.lineBlockAt(o);null==s&&(s=Math.min(c.right-c.left,e.defaultCharacterWidth*(o-f.from))),a=(i<0?f.top:f.bottom)+l}for(var d=c.left+s,h=null!=r?r:e.viewState.heightOracle.textHeight>>1,v=0;;v+=10){var p=a+(h+v)*i,m=OU(e,{x:d,y:p},!1,i);if(p<c.top||p>c.bottom||(i<0?m<o:m>o)){var g=e.docView.coordsForChar(m),y=!g||p<g.top?-1:1;return zF.cursor(m,y,void 0,s)}}}(this,e,t,n))}},{key:"domAtPos",value:function(e){return this.docView.domAtPos(e)}},{key:"posAtDOM",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.docView.posFromDOM(e,t)}},{key:"posAtCoords",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this.readMeasured(),OU(this,e,t)}},{key:"coordsAtPos",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.readMeasured();var n=this.docView.coordsAt(e,t);if(!n||n.left==n.right)return n;var r=this.state.doc.lineAt(e),o=this.bidiSpans(r);return vH(n,o[AW.find(o,e-r.from,-1,t)].dir==pW.LTR==t>0)}},{key:"coordsForChar",value:function(e){return this.readMeasured(),this.docView.coordsForChar(e)}},{key:"defaultCharacterWidth",get:function(){return this.viewState.heightOracle.charWidth}},{key:"defaultLineHeight",get:function(){return this.viewState.heightOracle.lineHeight}},{key:"textDirection",get:function(){return this.viewState.defaultTextDirection}},{key:"textDirectionAt",value:function(e){return!this.state.facet(UW)||e<this.viewport.from||e>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}},{key:"lineWrapping",get:function(){return this.viewState.heightOracle.lineWrapping}},{key:"bidiSpans",value:function(e){if(e.length>eK)return NW(e.length);var t,n,r=this.textDirectionAt(e.from),o=bo(this.bidiCache);try{for(o.s();!(n=o.n()).done;){var i=n.value;if(i.from==e.from&&i.dir==r&&(i.fresh||EW(i.isolates,t=uU(this,e))))return i.order}}catch(e){o.e(e)}finally{o.f()}t||(t=uU(this,e));var a=function(e,t,n){if(!e)return[new AW(0,0,t==gW?1:0)];if(t==mW&&!n.length&&!MW.test(e))return NW(e.length);if(n.length)for(;e.length>PW.length;)PW[PW.length]=256;var r=[],o=t==mW?0:1;return RW(e,o,o,n,0,e.length,r),r}(e.text,r,t);return this.bidiCache.push(new nK(e.from,e.to,r,t,!0,a)),a}},{key:"hasFocus",get:function(){var e;return(this.dom.ownerDocument.hasFocus()||VH.safari&&(null===(e=this.inputState)||void 0===e?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}},{key:"focus",value:function(){var e=this;this.observer.ignore((function(){wH(e.contentDOM),e.docView.updateSelection()}))}},{key:"setRoot",value:function(e){this._root!=e&&(this._root=e,this.observer.setWindow((9==e.nodeType?e:e.ownerDocument).defaultView||window),this.mountStyles())}},{key:"destroy",value:function(){var e,t=bo(this.plugins);try{for(t.s();!(e=t.n()).done;){e.value.destroy(this)}}catch(e){t.e(e)}finally{t.f()}this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}},{key:"scrollSnapshot",value:function(){var e=this.scrollDOM,t=e.scrollTop,n=e.scrollLeft,r=this.viewState.scrollAnchorAt(t);return QW.of(new GW(zF.cursor(r.from),"start","start",r.top-t,n,!0))}}],[{key:"scrollIntoView",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return QW.of(new GW("number"==typeof e?zF.cursor(e):e,t.y,t.x,t.yMargin,t.xMargin))}},{key:"domEventHandlers",value:function(e){return tU.define((function(){return{}}),{eventHandlers:e})}},{key:"domEventObservers",value:function(e){return tU.define((function(){return{}}),{eventObservers:e})}},{key:"theme",value:function(e,t){var n=YV.newName(),r=[RJ.of(n),dU.of(LJ(".".concat(n),e))];return t&&t.dark&&r.push(NJ.of(!0)),r}},{key:"baseTheme",value:function(e){return ZF.lowest(dU.of(LJ("."+IJ,e,BJ)))}},{key:"findFromDOM",value:function(e){var t,n=e.querySelector(".cm-content"),r=n&&_H.get(n)||_H.get(e);return(null===(t=null==r?void 0:r.rootView)||void 0===t?void 0:t.view)||null}}])}();ZJ.styleModule=dU,ZJ.inputHandler=HW,ZJ.scrollHandler=KW,ZJ.focusChangeEffect=WW,ZJ.perLineTextDirection=UW,ZJ.exceptionSink=FW,ZJ.updateListener=VW,ZJ.editable=XW,ZJ.mouseSelectionStyle=qW,ZJ.dragMovesSelection=LW,ZJ.clickAddsSelectionRange=BW,ZJ.decorations=iU,ZJ.outerDecorations=aU,ZJ.atomicRanges=sU,ZJ.bidiIsolatedRanges=cU,ZJ.scrollMargins=lU,ZJ.darkTheme=NJ,ZJ.cspNonce=qF.define({combine:function(e){return e.length?e[0]:""}}),ZJ.contentAttributes=oU,ZJ.editorAttributes=rU,ZJ.lineWrapping=ZJ.contentAttributes.of({class:"cm-lineWrapping"}),ZJ.announce=mV.define();var eK=4096,tK={},nK=function(){function e(t,n,r,o,i,a){Ro(this,e),this.from=t,this.to=n,this.dir=r,this.isolates=o,this.fresh=i,this.order=a}return Io(e,null,[{key:"update",value:function(t,n){if(n.empty&&!t.some((function(e){return e.fresh})))return t;for(var r=[],o=t.length?t[t.length-1].dir:pW.LTR,i=Math.max(0,t.length-10);i<t.length;i++){var a=t[i];a.dir!=o||n.touchesRange(a.from,a.to)||r.push(new e(n.mapPos(a.from,1),n.mapPos(a.to,-1),a.dir,a.isolates,!1,a.order))}return r}}])}();function rK(e,t,n){for(var r=e.state.facet(t),o=r.length-1;o>=0;o--){var i=r[o],a="function"==typeof i?i(e):i;a&&YH(a,n)}return n}var oK=VH.mac?"mac":VH.windows?"win":VH.linux?"linux":"key";function iK(e,t,n){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),!1!==n&&t.shiftKey&&(e="Shift-"+e),e}var aK=ZF.default(ZJ.domEventHandlers({keydown:function(e,t){return dK(uK(t.state),e,t,"editor")}})),sK=qF.define({enables:aK}),cK=new WeakMap;function uK(e){var t=e.facet(sK),n=cK.get(t);return n||cK.set(t,n=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:oK,r=Object.create(null),o=Object.create(null),i=function(e,t){var n=o[e];if(null==n)o[e]=t;else if(n!=t)throw new Error("Key binding "+e+" is used both as a regular binding and as a multi-stroke prefix")},a=function(e,t,o,a,s){for(var c,u,l=r[e]||(r[e]=Object.create(null)),f=t.split(/ (?!$)/).map((function(e){return function(e,t){var n,r,o,i,a=e.split(/-(?!$)/),s=a[a.length-1];"Space"==s&&(s=" ");for(var c=0;c<a.length-1;++c){var u=a[c];if(/^(cmd|meta|m)$/i.test(u))i=!0;else if(/^a(lt)?$/i.test(u))n=!0;else if(/^(c|ctrl|control)$/i.test(u))r=!0;else if(/^s(hift)?$/i.test(u))o=!0;else{if(!/^mod$/i.test(u))throw new Error("Unrecognized modifier name: "+u);"mac"==t?i=!0:r=!0}}return n&&(s="Alt-"+s),r&&(s="Ctrl-"+s),i&&(s="Meta-"+s),o&&(s="Shift-"+s),s}(e,n)})),d=function(){var t=f.slice(0,h).join(" ");i(t,!0),l[t]||(l[t]={preventDefault:!0,stopPropagation:!1,run:[function(n){var r=lK={view:n,prefix:t,scope:e};return setTimeout((function(){lK==r&&(lK=null)}),fK),!0}]})},h=1;h<f.length;h++)d();var v=f.join(" ");i(v,!1);var p=l[v]||(l[v]={preventDefault:!1,stopPropagation:!1,run:(null===(u=null===(c=l._any)||void 0===c?void 0:c.run)||void 0===u?void 0:u.slice())||[]});o&&p.run.push(o),a&&(p.preventDefault=!0),s&&(p.stopPropagation=!0)},s=bo(e);try{for(s.s();!(t=s.n()).done;){var c=t.value,u=c.scope?c.scope.split(" "):["editor"];if(c.any){var l,f=bo(u);try{for(f.s();!(l=f.n()).done;){var d=l.value,h=r[d]||(r[d]=Object.create(null));for(var v in h._any||(h._any={preventDefault:!1,stopPropagation:!1,run:[]}),h)h[v].run.push(c.any)}}catch(e){f.e(e)}finally{f.f()}}var p=c[n]||c.key;if(p){var m,g=bo(u);try{for(g.s();!(m=g.n()).done;){var y=m.value;a(y,p,c.run,c.preventDefault,c.stopPropagation),c.shift&&a(y,"Shift-"+p,c.shift,c.preventDefault,c.stopPropagation)}}catch(e){g.e(e)}finally{g.f()}}}}catch(e){s.e(e)}finally{s.f()}return r}(t.reduce((function(e,t){return e.concat(t)}),[]))),n}var lK=null,fK=4e3;function dK(e,t,n,r){var o=function(e){var t=!(nH&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||rH&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?tH:eH)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}(t),i=$F(SF(o,0))==o.length&&" "!=o,a="",s=!1,c=!1,u=!1;lK&&lK.view==n&&lK.scope==r&&(a=lK.prefix+" ",BU.indexOf(t.keyCode)<0&&(c=!0,lK=null));var l,f,d=new Set,h=function(e){if(e){var r,o=bo(e.run);try{for(o.s();!(r=o.n()).done;){var i=r.value;if(!d.has(i)&&(d.add(i),i(n,t)))return e.stopPropagation&&(u=!0),!0}}catch(e){o.e(e)}finally{o.f()}e.preventDefault&&(e.stopPropagation&&(u=!0),c=!0)}return!1},v=e[r];return v&&(h(v[a+iK(o,t,!i)])?s=!0:i&&(t.altKey||t.metaKey||t.ctrlKey)&&!(VH.windows&&t.ctrlKey&&t.altKey)&&(l=eH[t.keyCode])&&l!=o?(h(v[a+iK(l,t,!0)])||t.shiftKey&&(f=tH[t.keyCode])!=o&&f!=l&&h(v[a+iK(f,t,!1)]))&&(s=!0):i&&t.shiftKey&&h(v[a+iK(o,t,!0)])&&(s=!0),!s&&h(v._any)&&(s=!0)),c&&(s=!0),s&&u&&t.stopPropagation(),s}var hK=function(){function e(t,n,r,o,i){Ro(this,e),this.className=t,this.left=n,this.top=r,this.width=o,this.height=i}return Io(e,[{key:"draw",value:function(){var e=document.createElement("div");return e.className=this.className,this.adjust(e),e}},{key:"update",value:function(e,t){return t.className==this.className&&(this.adjust(e),!0)}},{key:"adjust",value:function(e){e.style.left=this.left+"px",e.style.top=this.top+"px",null!=this.width&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}},{key:"eq",value:function(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}}],[{key:"forRange",value:function(t,n,r){if(r.empty){var o=t.coordsAtPos(r.head,r.assoc||1);if(!o)return[];var i=vK(t);return[new e(n,o.left-i.left,o.top-i.top,null,o.bottom-o.top)]}return mK(t,n,r)}}])}();function vK(e){var t=e.scrollDOM.getBoundingClientRect();return{left:(e.textDirection==pW.LTR?t.left:t.right-e.scrollDOM.clientWidth*e.scaleX)-e.scrollDOM.scrollLeft*e.scaleX,top:t.top-e.scrollDOM.scrollTop*e.scaleY}}function pK(e,t,n){var r=zF.cursor(t);return{from:Math.max(n.from,e.moveToLineBoundary(r,!1,!0).from),to:Math.min(n.to,e.moveToLineBoundary(r,!0,!0).from),type:iW.Text}}function mK(e,t,n){if(n.to<=e.viewport.from||n.from>=e.viewport.to)return[];var r=Math.max(n.from,e.viewport.from),o=Math.min(n.to,e.viewport.to),i=e.textDirection==pW.LTR,a=e.contentDOM,s=a.getBoundingClientRect(),c=vK(e),u=a.querySelector(".cm-line"),l=u&&window.getComputedStyle(u),f=s.left+(l?parseInt(l.paddingLeft)+Math.min(0,parseInt(l.textIndent)):0),d=s.right-(l?parseInt(l.paddingRight):0),h=AU(e,r),v=AU(e,o),p=h.type==iW.Text?h:null,m=v.type==iW.Text?v:null;if(p&&(e.lineWrapping||h.widgetLineBreaks)&&(p=pK(e,r,p)),m&&(e.lineWrapping||v.widgetLineBreaks)&&(m=pK(e,o,m)),p&&m&&p.from==m.from)return x(k(n.from,n.to,p));var g=p?k(n.from,null,p):j(h,!1),y=m?k(null,n.to,m):j(v,!0),b=[];return(p||h).to<(m||v).from-(p&&m?1:0)||h.widgetLineBreaks>1&&g.bottom+e.defaultLineHeight/2<y.top?b.push(w(f,g.bottom,d,y.top)):g.bottom<y.top&&e.elementAtHeight((g.bottom+y.top)/2).type==iW.Text&&(g.bottom=y.top=(g.bottom+y.top)/2),x(g).concat(b).concat(x(y));function w(e,n,r,o){return new hK(t,e-c.left,n-c.top-.01,r-e,o-n+.01)}function x(e){for(var t=e.top,n=e.bottom,r=e.horizontal,o=[],i=0;i<r.length;i+=2)o.push(w(r[i],t,r[i+1],n));return o}function k(t,n,r){var o=1e9,a=-1e9,s=[];function c(t,n,c,u,l){var h=e.coordsAtPos(t,t==r.to?-2:2),v=e.coordsAtPos(c,c==r.from?2:-2);h&&v&&(o=Math.min(h.top,v.top,o),a=Math.max(h.bottom,v.bottom,a),l==pW.LTR?s.push(i&&n?f:h.left,i&&u?d:v.right):s.push(!i&&u?f:v.left,!i&&n?d:h.right))}var u,l=null!=t?t:r.from,h=null!=n?n:r.to,v=bo(e.visibleRanges);try{for(v.s();!(u=v.n()).done;){var p=u.value;if(p.to>l&&p.from<h)for(var m=Math.max(p.from,l),g=Math.min(p.to,h);;){var y,b=e.state.doc.lineAt(m),w=bo(e.bidiSpans(b));try{for(w.s();!(y=w.n()).done;){var x=y.value,k=x.from+b.from,j=x.to+b.from;if(k>=g)break;j>m&&c(Math.max(k,m),null==t&&k<=l,Math.min(j,g),null==n&&j>=h,x.dir)}}catch(e){w.e(e)}finally{w.f()}if((m=b.to+1)>=g)break}}}catch(e){v.e(e)}finally{v.f()}return 0==s.length&&c(l,null==t,h,null==n,e.textDirection),{top:o,bottom:a,horizontal:s}}function j(e,t){var n=s.top+(t?e.top:e.bottom);return{top:n,bottom:n,horizontal:[]}}}var gK=function(){return Io((function e(t,n){Ro(this,e),this.view=t,this.layer=n,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=t.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),n.above&&this.dom.classList.add("cm-layer-above"),n.class&&this.dom.classList.add(n.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(t.state),t.requestMeasure(this.measureReq),n.mount&&n.mount(this.dom,t)}),[{key:"update",value:function(e){e.startState.facet(yK)!=e.state.facet(yK)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}},{key:"docViewUpdate",value:function(e){!1!==this.layer.updateOnDocViewUpdate&&e.requestMeasure(this.measureReq)}},{key:"setOrder",value:function(e){for(var t=0,n=e.facet(yK);t<n.length&&n[t]!=this.layer;)t++;this.dom.style.zIndex=String((this.layer.above?150:-1)-t)}},{key:"measure",value:function(){return this.layer.markers(this.view)}},{key:"scale",value:function(){var e=this.view,t=e.scaleX,n=e.scaleY;t==this.scaleX&&n==this.scaleY||(this.scaleX=t,this.scaleY=n,this.dom.style.transform="scale(".concat(1/t,", ").concat(1/n,")"))}},{key:"draw",value:function(e){var t=this;if(e.length!=this.drawn.length||e.some((function(e,n){return r=e,o=t.drawn[n],!(r.constructor==o.constructor&&r.eq(o));var r,o}))){var n,r=this.dom.firstChild,o=0,i=bo(e);try{for(i.s();!(n=i.n()).done;){var a=n.value;a.update&&r&&a.constructor&&this.drawn[o].constructor&&a.update(r,this.drawn[o])?(r=r.nextSibling,o++):this.dom.insertBefore(a.draw(),r)}}catch(e){i.e(e)}finally{i.f()}for(;r;){var s=r.nextSibling;r.remove(),r=s}this.drawn=e}}},{key:"destroy",value:function(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}])}(),yK=qF.define();function bK(e){return[tU.define((function(t){return new gK(t,e)})),yK.of(e)]}var wK=!VH.ios,xK=qF.define({combine:function(e){return MV(e,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:function(e,t){return Math.min(e,t)},drawRangeCursor:function(e,t){return e||t}})}});function kK(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[xK.of(e),SK,$K,OK,JW.of(!0)]}function jK(e){return e.startState.facet(xK)!=e.state.facet(xK)}var SK=bK({above:!0,markers:function(e){var t,n=e.state,r=n.facet(xK),o=[],i=bo(n.selection.ranges);try{for(i.s();!(t=i.n()).done;){var a=t.value,s=a==n.selection.main;if(a.empty?!s||wK:r.drawRangeCursor){var c,u=s?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",l=a.empty?a:zF.cursor(a.head,a.head>a.anchor?-1:1),f=bo(hK.forRange(e,u,l));try{for(f.s();!(c=f.n()).done;){var d=c.value;o.push(d)}}catch(e){f.e(e)}finally{f.f()}}}}catch(e){i.e(e)}finally{i.f()}return o},update:function(e,t){e.transactions.some((function(e){return e.selection}))&&(t.style.animationName="cm-blink"==t.style.animationName?"cm-blink2":"cm-blink");var n=jK(e);return n&&CK(e.state,t),e.docChanged||e.selectionSet||n},mount:function(e,t){CK(t.state,e)},class:"cm-cursorLayer"});function CK(e,t){t.style.animationDuration=e.facet(xK).cursorBlinkRate+"ms"}var $K=bK({above:!1,markers:function(e){return e.state.selection.ranges.map((function(t){return t.empty?[]:hK.forRange(e,"cm-selectionBackground",t)})).reduce((function(e,t){return e.concat(t)}))},update:function(e,t){return e.docChanged||e.selectionSet||e.viewportChanged||jK(e)},class:"cm-selectionLayer"}),_K={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};wK&&(_K[".cm-line"].caretColor="transparent !important",_K[".cm-content"]={caretColor:"transparent !important"});var OK=ZF.highest(ZJ.theme(_K)),MK=mV.define({map:function(e,t){return null==e?null:t.mapPos(e)}}),AK=JF.define({create:function(){return null},update:function(e,t){return null!=e&&(e=t.changes.mapPos(e)),t.effects.reduce((function(e,t){return t.is(MK)?t.value:e}),e)}}),EK=tU.fromClass(function(){return Io((function e(t){Ro(this,e),this.view=t,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}),[{key:"update",value:function(e){var t,n=e.state.field(AK);null==n?null!=this.cursor&&(null===(t=this.cursor)||void 0===t||t.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(e.startState.field(AK)!=n||e.docChanged||e.geometryChanged)&&this.view.requestMeasure(this.measureReq))}},{key:"readPos",value:function(){var e=this.view,t=e.state.field(AK),n=null!=t&&e.coordsAtPos(t);if(!n)return null;var r=e.scrollDOM.getBoundingClientRect();return{left:n.left-r.left+e.scrollDOM.scrollLeft*e.scaleX,top:n.top-r.top+e.scrollDOM.scrollTop*e.scaleY,height:n.bottom-n.top}}},{key:"drawCursor",value:function(e){if(this.cursor){var t=this.view,n=t.scaleX,r=t.scaleY;e?(this.cursor.style.left=e.left/n+"px",this.cursor.style.top=e.top/r+"px",this.cursor.style.height=e.height/r+"px"):this.cursor.style.left="-100000px"}}},{key:"destroy",value:function(){this.cursor&&this.cursor.remove()}},{key:"setDropPos",value:function(e){this.view.state.field(AK)!=e&&this.view.dispatch({effects:MK.of(e)})}}])}(),{eventObservers:{dragover:function(e){this.setDropPos(this.view.posAtCoords({x:e.clientX,y:e.clientY}))},dragleave:function(e){e.target!=this.view.contentDOM&&this.view.contentDOM.contains(e.relatedTarget)||this.setDropPos(null)},dragend:function(){this.setDropPos(null)},drop:function(){this.setDropPos(null)}}});function PK(e,t,n,r,o){t.lastIndex=0;for(var i,a=e.iterRange(n,r),s=n;!a.next().done;s+=a.value.length)if(!a.lineBreak)for(;i=t.exec(a.value);)o(s+i.index,i)}var TK=function(){return Io((function e(t){Ro(this,e);var n=t.regexp,r=t.decoration,o=t.decorate,i=t.boundary,a=t.maxLength,s=void 0===a?1e3:a;if(!n.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=n,o)this.addMatch=function(e,t,n,r){return o(r,n,n+e[0].length,e,t)};else if("function"==typeof r)this.addMatch=function(e,t,n,o){var i=r(e,t,n);i&&o(n,n+e[0].length,i)};else{if(!r)throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.addMatch=function(e,t,n,o){return o(n,n+e[0].length,r)}}this.boundary=i,this.maxLength=s}),[{key:"createDeco",value:function(e){var t,n=this,r=new NV,o=r.add.bind(r),i=bo(function(e,t){var n=e.visibleRanges;if(1==n.length&&n[0].from==e.viewport.from&&n[0].to==e.viewport.to)return n;var r,o=[],i=bo(n);try{for(i.s();!(r=i.n()).done;){var a=r.value,s=a.from,c=a.to;s=Math.max(e.state.doc.lineAt(s).from,s-t),c=Math.min(e.state.doc.lineAt(c).to,c+t),o.length&&o[o.length-1].to>=s?o[o.length-1].to=c:o.push({from:s,to:c})}}catch(e){i.e(e)}finally{i.f()}return o}(e,this.maxLength));try{for(i.s();!(t=i.n()).done;){var a=t.value,s=a.from,c=a.to;PK(e.state.doc,this.regexp,s,c,(function(t,r){return n.addMatch(r,e,t,o)}))}}catch(e){i.e(e)}finally{i.f()}return r.finish()}},{key:"updateDeco",value:function(e,t){var n=1e9,r=-1;return e.docChanged&&e.changes.iterChanges((function(t,o,i,a){a>e.view.viewport.from&&i<e.view.viewport.to&&(n=Math.min(i,n),r=Math.max(a,r))})),e.viewportChanged||r-n>1e3?this.createDeco(e.view):r>-1?this.updateRange(e.view,t.map(e.changes),n,r):t}},{key:"updateRange",value:function(e,t,n,r){var o,i=this,a=bo(e.visibleRanges);try{var s=function(){var a=o.value,s=Math.max(a.from,n),c=Math.min(a.to,r);if(c>s){var u=e.state.doc.lineAt(s),l=u.to<c?e.state.doc.lineAt(c):u,f=Math.max(a.from,u.from),d=Math.min(a.to,l.to);if(i.boundary){for(;s>u.from;s--)if(i.boundary.test(u.text[s-1-u.from])){f=s;break}for(;c<l.to;c++)if(i.boundary.test(l.text[c-l.from])){d=c;break}}var h,v=[],p=function(e,t,n){return v.push(n.range(e,t))};if(u==l)for(i.regexp.lastIndex=f-u.from;(h=i.regexp.exec(u.text))&&h.index<d-u.from;)i.addMatch(h,e,h.index+u.from,p);else PK(e.state.doc,i.regexp,f,d,(function(t,n){return i.addMatch(n,e,t,p)}));t=t.update({filterFrom:f,filterTo:d,filter:function(e,t){return e<f||t>d},add:v})}};for(a.s();!(o=a.n()).done;)s()}catch(e){a.e(e)}finally{a.f()}return t}}])}(),RK=null!=/x/.unicode?"gu":"g",NK=new RegExp("[\0-\b\n--­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\ufeff￹-￼]",RK),IK={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"},DK=null;var zK=qF.define({combine:function(e){var t=MV(e,{render:null,specialChars:NK,addSpecialChars:null});return(t.replaceTabs=!function(){var e;if(null==DK&&"undefined"!=typeof document&&document.body){var t=document.body.style;DK=null!=(null!==(e=t.tabSize)&&void 0!==e?e:t.MozTabSize)}return DK||!1}())&&(t.specialChars=new RegExp("\t|"+t.specialChars.source,RK)),t.addSpecialChars&&(t.specialChars=new RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,RK)),t}});function BK(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[zK.of(e),LK||(LK=tU.fromClass(function(){return Io((function e(t){Ro(this,e),this.view=t,this.decorations=aW.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(t.state.facet(zK)),this.decorations=this.decorator.createDeco(t)}),[{key:"makeDecorator",value:function(e){var t=this;return new TK({regexp:e.specialChars,decoration:function(n,r,o){var i=r.state.doc,a=SF(n[0],0);if(9==a){var s=i.lineAt(o),c=r.state.tabSize,u=UV(s.text,c,o-s.from);return aW.replace({widget:new FK((c-u%c)*t.view.defaultCharacterWidth/t.view.scaleX)})}return t.decorationCache[a]||(t.decorationCache[a]=aW.replace({widget:new qK(e,a)}))},boundary:e.replaceTabs?void 0:/[^]/})}},{key:"update",value:function(e){var t=e.state.facet(zK);e.startState.facet(zK)!=t?(this.decorator=this.makeDecorator(t),this.decorations=this.decorator.createDeco(e.view)):this.decorations=this.decorator.updateDeco(e,this.decorations)}}])}(),{decorations:function(e){return e.decorations}}))]}var LK=null;var qK=function(e){function t(e,n){var r;return Ro(this,t),(r=_o(this,t)).options=e,r.code=n,r}return Ao(t,oW),Io(t,[{key:"eq",value:function(e){return e.code==this.code}},{key:"toDOM",value:function(e){var t=function(e){return e>=32?"•":10==e?"␤":String.fromCharCode(9216+e)}(this.code),n=e.state.phrase("Control character")+" "+(IK[this.code]||"0x"+this.code.toString(16)),r=this.options.render&&this.options.render(this.code,n,t);if(r)return r;var o=document.createElement("span");return o.textContent=t,o.title=n,o.setAttribute("aria-label",n),o.className="cm-specialChar",o}},{key:"ignoreEvent",value:function(){return!1}}])}(),FK=function(e){function t(e){var n;return Ro(this,t),(n=_o(this,t)).width=e,n}return Ao(t,oW),Io(t,[{key:"eq",value:function(e){return e.width==this.width}},{key:"toDOM",value:function(){var e=document.createElement("span");return e.textContent="\t",e.className="cm-tab",e.style.width=this.width+"px",e}},{key:"ignoreEvent",value:function(){return!1}}])}();var VK=aW.line({class:"cm-activeLine"}),HK=tU.fromClass(function(){return Io((function e(t){Ro(this,e),this.decorations=this.getDeco(t)}),[{key:"update",value:function(e){(e.docChanged||e.selectionSet)&&(this.decorations=this.getDeco(e.view))}},{key:"getDeco",value:function(e){var t,n=-1,r=[],o=bo(e.state.selection.ranges);try{for(o.s();!(t=o.n()).done;){var i=t.value,a=e.lineBlockAt(i.head);a.from>n&&(r.push(VK.range(a.from)),n=a.from)}}catch(e){o.e(e)}finally{o.f()}return aW.set(r)}}])}(),{decorations:function(e){return e.decorations}}),WK=2e3;function UK(e,t){var n=e.posAtCoords({x:t.clientX,y:t.clientY},!1),r=e.state.doc.lineAt(n),o=n-r.from,i=o>WK?-1:o==r.length?function(e,t){var n=e.coordsAtPos(e.viewport.from);return n?Math.round(Math.abs((n.left-t)/e.defaultCharacterWidth)):-1}(e,t.clientX):UV(r.text,e.state.tabSize,n-r.from);return{line:r.number,col:i,off:o}}function JK(e,t){var n=UK(e,t),r=e.state.selection;return n?{update:function(e){if(e.docChanged){var t=e.changes.mapPos(e.startState.doc.line(n.line).from),o=e.state.doc.lineAt(t);n={line:o.number,col:n.col,off:Math.min(n.off,o.length)},r=r.map(e.changes)}},get:function(t,o,i){var a=UK(e,t);if(!a)return r;var s=function(e,t,n){var r=Math.min(t.line,n.line),o=Math.max(t.line,n.line),i=[];if(t.off>WK||n.off>WK||t.col<0||n.col<0)for(var a=Math.min(t.off,n.off),s=Math.max(t.off,n.off),c=r;c<=o;c++){var u=e.doc.line(c);u.length<=s&&i.push(zF.range(u.from+a,u.to+s))}else for(var l=Math.min(t.col,n.col),f=Math.max(t.col,n.col),d=r;d<=o;d++){var h=e.doc.line(d),v=JV(h.text,l,e.tabSize,!0);if(v<0)i.push(zF.cursor(h.to));else{var p=JV(h.text,f,e.tabSize);i.push(zF.range(h.from+v,h.from+p))}}return i}(e.state,n,a);return s.length?i?zF.create(s.concat(r.ranges)):zF.create(s):r}}:null}function KK(e){var t=(null==e?void 0:e.eventFilter)||function(e){return e.altKey&&0==e.button};return ZJ.mouseSelectionStyle.of((function(e,n){return t(n)?JK(e,n):null}))}var GK={Alt:[18,function(e){return!!e.altKey}],Control:[17,function(e){return!!e.ctrlKey}],Shift:[16,function(e){return!!e.shiftKey}],Meta:[91,function(e){return!!e.metaKey}]},QK={style:"cursor: crosshair"};function YK(){var e=jo(GK[(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).key||"Alt"],2),t=e[0],n=e[1],r=tU.fromClass(function(){return Io((function e(t){Ro(this,e),this.view=t,this.isDown=!1}),[{key:"set",value:function(e){this.isDown!=e&&(this.isDown=e,this.view.update([]))}}])}(),{eventObservers:{keydown:function(e){this.set(e.keyCode==t||n(e))},keyup:function(e){e.keyCode!=t&&n(e)||this.set(!1)},mousemove:function(e){this.set(n(e))}}});return[r,ZJ.contentAttributes.of((function(e){var t;return(null===(t=e.plugin(r))||void 0===t?void 0:t.isDown)?QK:null}))]}var XK="-10000px",ZK=function(){return Io((function e(t,n,r,o){Ro(this,e),this.facet=n,this.createTooltipView=r,this.removeTooltipView=o,this.input=t.state.facet(n),this.tooltips=this.input.filter((function(e){return e}));var i=null;this.tooltipViews=this.tooltips.map((function(e){return i=r(e,i)}))}),[{key:"update",value:function(e,t){var n,r=e.state.facet(this.facet),o=r.filter((function(e){return e}));if(r===this.input){var i,a=bo(this.tooltipViews);try{for(a.s();!(i=a.n()).done;){var s=i.value;s.update&&s.update(e)}}catch(e){a.e(e)}finally{a.f()}return!1}for(var c=[],u=t?[]:null,l=0;l<o.length;l++){var f=o[l],d=-1;if(f){for(var h=0;h<this.tooltips.length;h++){var v=this.tooltips[h];v&&v.create==f.create&&(d=h)}if(d<0)c[l]=this.createTooltipView(f,l?c[l-1]:null),u&&(u[l]=!!f.above);else{var p=c[l]=this.tooltipViews[d];u&&(u[l]=t[d]),p.update&&p.update(e)}}}var m,g=bo(this.tooltipViews);try{for(g.s();!(m=g.n()).done;){var y=m.value;c.indexOf(y)<0&&(this.removeTooltipView(y),null===(n=y.destroy)||void 0===n||n.call(y))}}catch(e){g.e(e)}finally{g.f()}return t&&(u.forEach((function(e,n){return t[n]=e})),t.length=u.length),this.input=r,this.tooltips=o,this.tooltipViews=c,!0}}])}();function eG(e){var t=e.win;return{top:0,left:0,bottom:t.innerHeight,right:t.innerWidth}}var tG=qF.define({combine:function(e){var t,n,r;return{position:VH.ios?"absolute":(null===(t=e.find((function(e){return e.position})))||void 0===t?void 0:t.position)||"fixed",parent:(null===(n=e.find((function(e){return e.parent})))||void 0===n?void 0:n.parent)||null,tooltipSpace:(null===(r=e.find((function(e){return e.tooltipSpace})))||void 0===r?void 0:r.tooltipSpace)||eG}}}),nG=new WeakMap,rG=tU.fromClass(function(){return Io((function e(t){var n=this;Ro(this,e),this.view=t,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;var r=t.state.facet(tG);this.position=r.position,this.parent=r.parent,this.classes=t.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver="function"==typeof ResizeObserver?new ResizeObserver((function(){return n.measureSoon()})):null,this.manager=new ZK(t,aG,(function(e,t){return n.createTooltip(e,t)}),(function(e){n.resizeObserver&&n.resizeObserver.unobserve(e.dom),e.dom.remove()})),this.above=this.manager.tooltips.map((function(e){return!!e.above})),this.intersectionObserver="function"==typeof IntersectionObserver?new IntersectionObserver((function(e){Date.now()>n.lastTransaction-50&&e.length>0&&e[e.length-1].intersectionRatio<1&&n.measureSoon()}),{threshold:[1]}):null,this.observeIntersection(),t.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}),[{key:"createContainer",value:function(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}},{key:"observeIntersection",value:function(){if(this.intersectionObserver){this.intersectionObserver.disconnect();var e,t=bo(this.manager.tooltipViews);try{for(t.s();!(e=t.n()).done;){var n=e.value;this.intersectionObserver.observe(n.dom)}}catch(e){t.e(e)}finally{t.f()}}}},{key:"measureSoon",value:function(){var e=this;this.measureTimeout<0&&(this.measureTimeout=setTimeout((function(){e.measureTimeout=-1,e.maybeMeasure()}),50))}},{key:"update",value:function(e){e.transactions.length&&(this.lastTransaction=Date.now());var t=this.manager.update(e,this.above);t&&this.observeIntersection();var n=t||e.geometryChanged,r=e.state.facet(tG);if(r.position!=this.position&&!this.madeAbsolute){this.position=r.position;var o,i=bo(this.manager.tooltipViews);try{for(i.s();!(o=i.n()).done;){o.value.dom.style.position=this.position}}catch(e){i.e(e)}finally{i.f()}n=!0}if(r.parent!=this.parent){this.parent&&this.container.remove(),this.parent=r.parent,this.createContainer();var a,s=bo(this.manager.tooltipViews);try{for(s.s();!(a=s.n()).done;){var c=a.value;this.container.appendChild(c.dom)}}catch(e){s.e(e)}finally{s.f()}n=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);n&&this.maybeMeasure()}},{key:"createTooltip",value:function(e,t){var n=e.create(this.view),r=t?t.dom:null;if(n.dom.classList.add("cm-tooltip"),e.arrow&&!n.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){var o=document.createElement("div");o.className="cm-tooltip-arrow",n.dom.insertBefore(o,r)}return n.dom.style.position=this.position,n.dom.style.top=XK,n.dom.style.left="0px",this.container.insertBefore(n.dom,r),n.mount&&n.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(n.dom),n}},{key:"destroy",value:function(){var e,t,n;this.view.win.removeEventListener("resize",this.measureSoon);var r,o=bo(this.manager.tooltipViews);try{for(o.s();!(r=o.n()).done;){var i=r.value;i.dom.remove(),null===(e=i.destroy)||void 0===e||e.call(i)}}catch(e){o.e(e)}finally{o.f()}this.parent&&this.container.remove(),null===(t=this.resizeObserver)||void 0===t||t.disconnect(),null===(n=this.intersectionObserver)||void 0===n||n.disconnect(),clearTimeout(this.measureTimeout)}},{key:"readMeasure",value:function(){var e=this,t=this.view.dom.getBoundingClientRect(),n=1,r=1,o=!1;if("fixed"==this.position&&this.manager.tooltipViews.length){var i=this.manager.tooltipViews[0].dom;if(VH.gecko)o=i.offsetParent!=this.container.ownerDocument.body;else if(i.style.top==XK&&"0px"==i.style.left){var a=i.getBoundingClientRect();o=Math.abs(a.top+1e4)>1||Math.abs(a.left)>1}}if(o||"absolute"==this.position)if(this.parent){var s=this.parent.getBoundingClientRect();s.width&&s.height&&(n=s.width/this.parent.offsetWidth,r=s.height/this.parent.offsetHeight)}else{var c=this.view.viewState;n=c.scaleX,r=c.scaleY}return{editor:t,parent:this.parent?this.container.getBoundingClientRect():t,pos:this.manager.tooltips.map((function(t,n){var r=e.manager.tooltipViews[n];return r.getCoords?r.getCoords(t.pos):e.view.coordsAtPos(t.pos)})),size:this.manager.tooltipViews.map((function(e){return e.dom.getBoundingClientRect()})),space:this.view.state.facet(tG).tooltipSpace(this.view),scaleX:n,scaleY:r,makeAbsolute:o}}},{key:"writeMeasure",value:function(e){var t;if(e.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";var n,r=bo(this.manager.tooltipViews);try{for(r.s();!(n=r.n()).done;){n.value.dom.style.position="absolute"}}catch(e){r.e(e)}finally{r.f()}}for(var o=e.editor,i=e.space,a=e.scaleX,s=e.scaleY,c=[],u=0;u<this.manager.tooltips.length;u++){var l=this.manager.tooltips[u],f=this.manager.tooltipViews[u],d=f.dom,h=e.pos[u],v=e.size[u];if(!h||h.bottom<=Math.max(o.top,i.top)||h.top>=Math.min(o.bottom,i.bottom)||h.right<Math.max(o.left,i.left)-.1||h.left>Math.min(o.right,i.right)+.1)d.style.top=XK;else{var p=l.arrow?f.dom.querySelector(".cm-tooltip-arrow"):null,m=p?7:0,g=v.right-v.left,y=null!==(t=nG.get(f))&&void 0!==t?t:v.bottom-v.top,b=f.offset||iG,w=this.view.textDirection==pW.LTR,x=v.width>i.right-i.left?w?i.left:i.right-v.width:w?Math.min(h.left-(p?14:0)+b.x,i.right-g):Math.max(i.left,h.left-g+(p?14:0)-b.x),k=this.above[u];!l.strictSide&&(k?h.top-(v.bottom-v.top)-b.y<i.top:h.bottom+(v.bottom-v.top)+b.y>i.bottom)&&k==i.bottom-h.bottom>h.top-i.top&&(k=this.above[u]=!k);var j=(k?h.top-i.top:i.bottom-h.bottom)-m;if(j<y&&!1!==f.resize){if(j<this.view.defaultLineHeight){d.style.top=XK;continue}nG.set(f,y),d.style.height=(y=j)/s+"px"}else d.style.height&&(d.style.height="");var S=k?h.top-y-m-b.y:h.bottom+m+b.y,C=x+g;if(!0!==f.overlap){var $,_=bo(c);try{for(_.s();!($=_.n()).done;){var O=$.value;O.left<C&&O.right>x&&O.top<S+y&&O.bottom>S&&(S=k?O.top-y-2-m:O.bottom+m+2)}}catch(e){_.e(e)}finally{_.f()}}if("absolute"==this.position?(d.style.top=(S-e.parent.top)/s+"px",d.style.left=(x-e.parent.left)/a+"px"):(d.style.top=S/s+"px",d.style.left=x/a+"px"),p){var M=h.left+(w?b.x:-b.x)-(x+14-7);p.style.left=M/a+"px"}!0!==f.overlap&&c.push({left:x,top:S,right:C,bottom:S+y}),d.classList.toggle("cm-tooltip-above",k),d.classList.toggle("cm-tooltip-below",!k),f.positioned&&f.positioned(e.space)}}}},{key:"maybeMeasure",value:function(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView))){var e,t=bo(this.manager.tooltipViews);try{for(t.s();!(e=t.n()).done;){e.value.dom.style.top=XK}}catch(e){t.e(e)}finally{t.f()}}}}])}(),{eventObservers:{scroll:function(){this.maybeMeasure()}}}),oG=ZJ.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"".concat(7,"px"),width:"".concat(14,"px"),position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"".concat(7,"px solid transparent"),borderRight:"".concat(7,"px solid transparent")},".cm-tooltip-above &":{bottom:"-".concat(7,"px"),"&:before":{borderTop:"".concat(7,"px solid #bbb")},"&:after":{borderTop:"".concat(7,"px solid #f5f5f5"),bottom:"1px"}},".cm-tooltip-below &":{top:"-".concat(7,"px"),"&:before":{borderBottom:"".concat(7,"px solid #bbb")},"&:after":{borderBottom:"".concat(7,"px solid #f5f5f5"),top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),iG={x:0,y:0},aG=qF.define({enables:[rG,oG]}),sG=qF.define({combine:function(e){return e.reduce((function(e,t){return e.concat(t)}),[])}}),cG=function(){function e(t){var n=this;Ro(this,e),this.view=t,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new ZK(t,sG,(function(e,t){return n.createHostedView(e,t)}),(function(e){return e.dom.remove()}))}return Io(e,[{key:"createHostedView",value:function(e,t){var n=e.create(this.view);return n.dom.classList.add("cm-tooltip-section"),this.dom.insertBefore(n.dom,t?t.dom.nextSibling:this.dom.firstChild),this.mounted&&n.mount&&n.mount(this.view),n}},{key:"mount",value:function(e){var t,n=bo(this.manager.tooltipViews);try{for(n.s();!(t=n.n()).done;){var r=t.value;r.mount&&r.mount(e)}}catch(e){n.e(e)}finally{n.f()}this.mounted=!0}},{key:"positioned",value:function(e){var t,n=bo(this.manager.tooltipViews);try{for(n.s();!(t=n.n()).done;){var r=t.value;r.positioned&&r.positioned(e)}}catch(e){n.e(e)}finally{n.f()}}},{key:"update",value:function(e){this.manager.update(e)}},{key:"destroy",value:function(){var e,t,n=bo(this.manager.tooltipViews);try{for(n.s();!(t=n.n()).done;){var r=t.value;null===(e=r.destroy)||void 0===e||e.call(r)}}catch(e){n.e(e)}finally{n.f()}}},{key:"passProp",value:function(e){var t,n=void 0,r=bo(this.manager.tooltipViews);try{for(r.s();!(t=r.n()).done;){var o=t.value[e];if(void 0!==o)if(void 0===n)n=o;else if(n!==o)return}}catch(e){r.e(e)}finally{r.f()}return n}},{key:"offset",get:function(){return this.passProp("offset")}},{key:"getCoords",get:function(){return this.passProp("getCoords")}},{key:"overlap",get:function(){return this.passProp("overlap")}},{key:"resize",get:function(){return this.passProp("resize")}}],[{key:"create",value:function(t){return new e(t)}}])}(),uG=aG.compute([sG],(function(e){var t=e.facet(sG);return 0===t.length?null:{pos:Math.min.apply(Math,Bo(t.map((function(e){return e.pos})))),end:Math.max.apply(Math,Bo(t.map((function(e){var t;return null!==(t=e.end)&&void 0!==t?t:e.pos})))),create:cG.create,above:t[0].above,arrow:t.some((function(e){return e.arrow}))}})),lG=function(){return Io((function e(t,n,r,o,i){Ro(this,e),this.view=t,this.source=n,this.field=r,this.setHover=o,this.hoverTime=i,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:t.dom,time:0},this.checkHover=this.checkHover.bind(this),t.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),t.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}),[{key:"update",value:function(){var e=this;this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout((function(){return e.startHover()}),20))}},{key:"active",get:function(){return this.view.state.field(this.field)}},{key:"checkHover",value:function(){if(this.hoverTimeout=-1,!this.active.length){var e=Date.now()-this.lastMove.time;e<this.hoverTime?this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime-e):this.startHover()}}},{key:"startHover",value:function(){var e=this;clearTimeout(this.restartTimeout);var t=this.view,n=this.lastMove,r=t.docView.nearest(n.target);if(r){var o,i=1;if(r instanceof UH)o=r.posAtStart;else{if(null==(o=t.posAtCoords(n)))return;var a=t.coordsAtPos(o);if(!a||n.y<a.top||n.y>a.bottom||n.x<a.left-t.defaultCharacterWidth||n.x>a.right+t.defaultCharacterWidth)return;var s=t.bidiSpans(t.state.doc.lineAt(o)).find((function(e){return e.from<=o&&e.to>=o})),c=s&&s.dir==pW.RTL?-1:1;i=n.x<a.left?-c:c}var u=this.source(t,o,i);if(null==u?void 0:u.then){var l=this.pending={pos:o};u.then((function(n){e.pending==l&&(e.pending=null,!n||Array.isArray(n)&&!n.length||t.dispatch({effects:e.setHover.of(Array.isArray(n)?n:[n])}))}),(function(e){return YW(t.state,e,"hover tooltip")}))}else!u||Array.isArray(u)&&!u.length||t.dispatch({effects:this.setHover.of(Array.isArray(u)?u:[u])})}}},{key:"tooltip",get:function(){var e=this.view.plugin(rG),t=e?e.manager.tooltips.findIndex((function(e){return e.create==cG.create})):-1;return t>-1?e.manager.tooltipViews[t]:null}},{key:"mousemove",value:function(e){var t,n;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));var r=this.active,o=this.tooltip;if(r.length&&o&&!function(e,t){var n=e.getBoundingClientRect();return t.clientX>=n.left-fG&&t.clientX<=n.right+fG&&t.clientY>=n.top-fG&&t.clientY<=n.bottom+fG}(o.dom,e)||this.pending){var i=(r[0]||this.pending).pos,a=null!==(n=null===(t=r[0])||void 0===t?void 0:t.end)&&void 0!==n?n:i;(i==a?this.view.posAtCoords(this.lastMove)==i:function(e,t,n,r,o,i){var a=e.scrollDOM.getBoundingClientRect(),s=e.documentTop+e.documentPadding.top+e.contentHeight;if(a.left>r||a.right<r||a.top>o||Math.min(a.bottom,s)<o)return!1;var c=e.posAtCoords({x:r,y:o},!1);return c>=t&&c<=n}(this.view,i,a,e.clientX,e.clientY))||(this.view.dispatch({effects:this.setHover.of([])}),this.pending=null)}}},{key:"mouseleave",value:function(e){if(clearTimeout(this.hoverTimeout),this.hoverTimeout=-1,this.active.length){var t=this.tooltip;t&&t.dom.contains(e.relatedTarget)?this.watchTooltipLeave(t.dom):this.view.dispatch({effects:this.setHover.of([])})}}},{key:"watchTooltipLeave",value:function(e){var t=this;e.addEventListener("mouseleave",(function n(r){e.removeEventListener("mouseleave",n),t.active.length&&!t.view.dom.contains(r.relatedTarget)&&t.view.dispatch({effects:t.setHover.of([])})}))}},{key:"destroy",value:function(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}])}(),fG=4;function dG(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=mV.define(),r=JF.define({create:function(){return[]},update:function(e,r){if(e.length&&(t.hideOnChange&&(r.docChanged||r.selection)?e=[]:t.hideOn&&(e=e.filter((function(e){return!t.hideOn(r,e)}))),r.docChanged)){var o,i=[],a=bo(e);try{for(a.s();!(o=a.n()).done;){var s=o.value,c=r.changes.mapPos(s.pos,-1,OF.TrackDel);if(null!=c){var u=Object.assign(Object.create(null),s);u.pos=c,null!=u.end&&(u.end=r.changes.mapPos(u.end)),i.push(u)}}}catch(e){a.e(e)}finally{a.f()}e=i}var l,f=bo(r.effects);try{for(f.s();!(l=f.n()).done;){var d=l.value;d.is(n)&&(e=d.value),d.is(vG)&&(e=[])}}catch(e){f.e(e)}finally{f.f()}return e},provide:function(e){return sG.from(e)}});return[r,tU.define((function(o){return new lG(o,e,r,n,t.hoverTime||300)})),uG]}function hG(e,t){var n=e.plugin(rG);if(!n)return null;var r=n.manager.tooltips.indexOf(t);return r<0?null:n.manager.tooltipViews[r]}var vG=mV.define(),pG=qF.define({combine:function(e){var t,n,r,o=bo(e);try{for(o.s();!(r=o.n()).done;){var i=r.value;t=t||i.topContainer,n=n||i.bottomContainer}}catch(e){o.e(e)}finally{o.f()}return{topContainer:t,bottomContainer:n}}});function mG(e,t){var n=e.plugin(gG),r=n?n.specs.indexOf(t):-1;return r>-1?n.panels[r]:null}var gG=tU.fromClass(function(){return Io((function e(t){Ro(this,e),this.input=t.state.facet(wG),this.specs=this.input.filter((function(e){return e})),this.panels=this.specs.map((function(e){return e(t)}));var n=t.state.facet(pG);this.top=new yG(t,!0,n.topContainer),this.bottom=new yG(t,!1,n.bottomContainer),this.top.sync(this.panels.filter((function(e){return e.top}))),this.bottom.sync(this.panels.filter((function(e){return!e.top})));var r,o=bo(this.panels);try{for(o.s();!(r=o.n()).done;){var i=r.value;i.dom.classList.add("cm-panel"),i.mount&&i.mount()}}catch(e){o.e(e)}finally{o.f()}}),[{key:"update",value:function(e){var t=e.state.facet(pG);this.top.container!=t.topContainer&&(this.top.sync([]),this.top=new yG(e.view,!0,t.topContainer)),this.bottom.container!=t.bottomContainer&&(this.bottom.sync([]),this.bottom=new yG(e.view,!1,t.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();var n=e.state.facet(wG);if(n!=this.input){var r,o=n.filter((function(e){return e})),i=[],a=[],s=[],c=[],u=bo(o);try{for(u.s();!(r=u.n()).done;){var l=r.value,f=this.specs.indexOf(l),d=void 0;f<0?(d=l(e.view),c.push(d)):(d=this.panels[f]).update&&d.update(e),i.push(d),(d.top?a:s).push(d)}}catch(e){u.e(e)}finally{u.f()}this.specs=o,this.panels=i,this.top.sync(a),this.bottom.sync(s);for(var h=0,v=c;h<v.length;h++){var p=v[h];p.dom.classList.add("cm-panel"),p.mount&&p.mount()}}else{var m,g=bo(this.panels);try{for(g.s();!(m=g.n()).done;){var y=m.value;y.update&&y.update(e)}}catch(e){g.e(e)}finally{g.f()}}}},{key:"destroy",value:function(){this.top.sync([]),this.bottom.sync([])}}])}(),{provide:function(e){return ZJ.scrollMargins.of((function(t){var n=t.plugin(e);return n&&{top:n.top.scrollMargin(),bottom:n.bottom.scrollMargin()}}))}}),yG=function(){return Io((function e(t,n,r){Ro(this,e),this.view=t,this.top=n,this.container=r,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}),[{key:"sync",value:function(e){var t,n=bo(this.panels);try{for(n.s();!(t=n.n()).done;){var r=t.value;r.destroy&&e.indexOf(r)<0&&r.destroy()}}catch(e){n.e(e)}finally{n.f()}this.panels=e,this.syncDOM()}},{key:"syncDOM",value:function(){if(0!=this.panels.length){if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";var e=this.container||this.view.dom;e.insertBefore(this.dom,this.top?e.firstChild:null)}var t,n=this.dom.firstChild,r=bo(this.panels);try{for(r.s();!(t=r.n()).done;){var o=t.value;if(o.dom.parentNode==this.dom){for(;n!=o.dom;)n=bG(n);n=n.nextSibling}else this.dom.insertBefore(o.dom,n)}}catch(e){r.e(e)}finally{r.f()}for(;n;)n=bG(n)}else this.dom&&(this.dom.remove(),this.dom=void 0)}},{key:"scrollMargin",value:function(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}},{key:"syncClasses",value:function(){if(this.container&&this.classes!=this.view.themeClasses){var e,t=bo(this.classes.split(" "));try{for(t.s();!(e=t.n()).done;){var n=e.value;n&&this.container.classList.remove(n)}}catch(e){t.e(e)}finally{t.f()}var r,o=bo((this.classes=this.view.themeClasses).split(" "));try{for(o.s();!(r=o.n()).done;){var i=r.value;i&&this.container.classList.add(i)}}catch(e){o.e(e)}finally{o.f()}}}}])}();function bG(e){var t=e.nextSibling;return e.remove(),t}var wG=qF.define({enables:gG}),xG=function(e){function t(){return Ro(this,t),_o(this,t,arguments)}return Ao(t,AV),Io(t,[{key:"compare",value:function(e){return this==e||this.constructor==e.constructor&&this.eq(e)}},{key:"eq",value:function(e){return!1}},{key:"destroy",value:function(e){}}])}();xG.prototype.elementClass="",xG.prototype.toDOM=void 0,xG.prototype.mapMode=OF.TrackBefore,xG.prototype.startSide=xG.prototype.endSide=-1,xG.prototype.point=!0;var kG=qF.define(),jG={class:"",renderEmptyElements:!1,elementStyle:"",markers:function(){return RV.empty},lineMarker:function(){return null},widgetMarker:function(){return null},lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},SG=qF.define();function CG(e){return[_G(),SG.of(Object.assign(Object.assign({},jG),e))]}var $G=qF.define({combine:function(e){return e.some((function(e){return e}))}});function _G(e){var t=[OG];return e&&!1===e.fixed&&t.push($G.of(!0)),t}var OG=tU.fromClass(function(){return Io((function e(t){Ro(this,e),this.view=t,this.prevViewport=t.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=t.state.facet(SG).map((function(e){return new PG(t,e)}));var n,r=bo(this.gutters);try{for(r.s();!(n=r.n()).done;){var o=n.value;this.dom.appendChild(o.dom)}}catch(e){r.e(e)}finally{r.f()}this.fixed=!t.state.facet($G),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),t.scrollDOM.insertBefore(this.dom,t.contentDOM)}),[{key:"update",value:function(e){if(this.updateGutters(e)){var t=this.prevViewport,n=e.view.viewport,r=Math.min(t.to,n.to)-Math.max(t.from,n.from);this.syncGutters(r<.8*(n.to-n.from))}e.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px"),this.view.state.facet($G)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=e.view.viewport}},{key:"syncGutters",value:function(e){var t=this,n=this.dom.nextSibling;e&&this.dom.remove();var r,o=RV.iter(this.view.state.facet(kG),this.view.viewport.from),i=[],a=this.gutters.map((function(e){return new EG(e,t.view.viewport,-t.view.documentPadding.top)})),s=bo(this.view.viewportLineBlocks);try{for(s.s();!(r=s.n()).done;){var c=r.value;if(i.length&&(i=[]),Array.isArray(c.type)){var u,l=!0,f=bo(c.type);try{for(f.s();!(u=f.n()).done;){var d=u.value;if(d.type==iW.Text&&l){AG(o,i,d.from);var h,v=bo(a);try{for(v.s();!(h=v.n()).done;){h.value.line(this.view,d,i)}}catch(e){v.e(e)}finally{v.f()}l=!1}else if(d.widget){var p,m=bo(a);try{for(m.s();!(p=m.n()).done;){p.value.widget(this.view,d)}}catch(e){m.e(e)}finally{m.f()}}}}catch(e){f.e(e)}finally{f.f()}}else if(c.type==iW.Text){AG(o,i,c.from);var g,y=bo(a);try{for(y.s();!(g=y.n()).done;){g.value.line(this.view,c,i)}}catch(e){y.e(e)}finally{y.f()}}else if(c.widget){var b,w=bo(a);try{for(w.s();!(b=w.n()).done;){b.value.widget(this.view,c)}}catch(e){w.e(e)}finally{w.f()}}}}catch(e){s.e(e)}finally{s.f()}var x,k=bo(a);try{for(k.s();!(x=k.n()).done;){x.value.finish()}}catch(e){k.e(e)}finally{k.f()}e&&this.view.scrollDOM.insertBefore(this.dom,n)}},{key:"updateGutters",value:function(e){var t=e.startState.facet(SG),n=e.state.facet(SG),r=e.docChanged||e.heightChanged||e.viewportChanged||!RV.eq(e.startState.facet(kG),e.state.facet(kG),e.view.viewport.from,e.view.viewport.to);if(t==n){var o,i=bo(this.gutters);try{for(i.s();!(o=i.n()).done;){o.value.update(e)&&(r=!0)}}catch(e){i.e(e)}finally{i.f()}}else{r=!0;var a,s=[],c=bo(n);try{for(c.s();!(a=c.n()).done;){var u=a.value,l=t.indexOf(u);l<0?s.push(new PG(this.view,u)):(this.gutters[l].update(e),s.push(this.gutters[l]))}}catch(e){c.e(e)}finally{c.f()}var f,d=bo(this.gutters);try{for(d.s();!(f=d.n()).done;){var h=f.value;h.dom.remove(),s.indexOf(h)<0&&h.destroy()}}catch(e){d.e(e)}finally{d.f()}for(var v=0,p=s;v<p.length;v++){var m=p[v];this.dom.appendChild(m.dom)}this.gutters=s}return r}},{key:"destroy",value:function(){var e,t=bo(this.gutters);try{for(t.s();!(e=t.n()).done;){e.value.destroy()}}catch(e){t.e(e)}finally{t.f()}this.dom.remove()}}])}(),{provide:function(e){return ZJ.scrollMargins.of((function(t){var n=t.plugin(e);return n&&0!=n.gutters.length&&n.fixed?t.textDirection==pW.LTR?{left:n.dom.offsetWidth*t.scaleX}:{right:n.dom.offsetWidth*t.scaleX}:null}))}});function MG(e){return Array.isArray(e)?e:[e]}function AG(e,t,n){for(;e.value&&e.from<=n;)e.from==n&&t.push(e.value),e.next()}var EG=function(){return Io((function e(t,n,r){Ro(this,e),this.gutter=t,this.height=r,this.i=0,this.cursor=RV.iter(t.markers,n.from)}),[{key:"addElement",value:function(e,t,n){var r=this.gutter,o=(t.top-this.height)/e.scaleY,i=t.height/e.scaleY;if(this.i==r.elements.length){var a=new TG(e,i,o,n);r.elements.push(a),r.dom.appendChild(a.dom)}else r.elements[this.i].update(e,i,o,n);this.height=t.bottom,this.i++}},{key:"line",value:function(e,t,n){var r=[];AG(this.cursor,r,t.from),n.length&&(r=r.concat(n));var o=this.gutter.config.lineMarker(e,t,r);o&&r.unshift(o);var i=this.gutter;(0!=r.length||i.config.renderEmptyElements)&&this.addElement(e,t,r)}},{key:"widget",value:function(e,t){var n=this.gutter.config.widgetMarker(e,t.widget,t);n&&this.addElement(e,t,[n])}},{key:"finish",value:function(){for(var e=this.gutter;e.elements.length>this.i;){var t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}}])}(),PG=function(){return Io((function e(t,n){var r=this;Ro(this,e),this.view=t,this.config=n,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");var o=function(e){r.dom.addEventListener(e,(function(o){var i,a=o.target;if(a!=r.dom&&r.dom.contains(a)){for(;a.parentNode!=r.dom;)a=a.parentNode;var s=a.getBoundingClientRect();i=(s.top+s.bottom)/2}else i=o.clientY;var c=t.lineBlockAtHeight(i-t.documentTop);n.domEventHandlers[e](t,c,o)&&o.preventDefault()}))};for(var i in n.domEventHandlers)o(i);this.markers=MG(n.markers(t)),n.initialSpacer&&(this.spacer=new TG(t,0,0,[n.initialSpacer(t)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}),[{key:"update",value:function(e){var t=this.markers;if(this.markers=MG(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){var n=this.config.updateSpacer(this.spacer.markers[0],e);n!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[n])}var r=e.view.viewport;return!RV.eq(this.markers,t,r.from,r.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(e)}},{key:"destroy",value:function(){var e,t=bo(this.elements);try{for(t.s();!(e=t.n()).done;){e.value.destroy()}}catch(e){t.e(e)}finally{t.f()}}}])}(),TG=function(){return Io((function e(t,n,r,o){Ro(this,e),this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(t,n,r,o)}),[{key:"update",value:function(e,t,n,r){this.height!=t&&(this.height=t,this.dom.style.height=t+"px"),this.above!=n&&(this.dom.style.marginTop=(this.above=n)?n+"px":""),function(e,t){if(e.length!=t.length)return!1;for(var n=0;n<e.length;n++)if(!e[n].compare(t[n]))return!1;return!0}(this.markers,r)||this.setMarkers(e,r)}},{key:"setMarkers",value:function(e,t){for(var n="cm-gutterElement",r=this.dom.firstChild,o=0,i=0;;){var a=i,s=o<t.length?t[o++]:null,c=!1;if(s){var u=s.elementClass;u&&(n+=" "+u);for(var l=i;l<this.markers.length;l++)if(this.markers[l].compare(s)){a=l,c=!0;break}}else a=this.markers.length;for(;i<a;){var f=this.markers[i++];if(f.toDOM){f.destroy(r);var d=r.nextSibling;r.remove(),r=d}}if(!s)break;s.toDOM&&(c?r=r.nextSibling:this.dom.insertBefore(s.toDOM(e),r)),c&&i++}this.dom.className=n,this.markers=t}},{key:"destroy",value:function(){this.setMarkers(null,[])}}])}();var RG=qF.define(),NG=qF.define({combine:function(e){return MV(e,{formatNumber:String,domEventHandlers:{}},{domEventHandlers:function(e,t){var n=Object.assign({},e),r=function(){var e=n[o],r=t[o];n[o]=e?function(t,n,o){return e(t,n,o)||r(t,n,o)}:r};for(var o in t)r();return n}})}}),IG=function(e){function t(e){var n;return Ro(this,t),(n=_o(this,t)).number=e,n}return Ao(t,xG),Io(t,[{key:"eq",value:function(e){return this.number==e.number}},{key:"toDOM",value:function(){return document.createTextNode(this.number)}}])}();function DG(e,t){return e.state.facet(NG).formatNumber(t,e.state)}var zG=SG.compute([NG],(function(e){return{class:"cm-lineNumbers",renderEmptyElements:!1,markers:function(e){return e.state.facet(RG)},lineMarker:function(e,t,n){return n.some((function(e){return e.toDOM}))?null:new IG(DG(e,e.state.doc.lineAt(t.from).number))},widgetMarker:function(){return null},lineMarkerChange:function(e){return e.startState.facet(NG)!=e.state.facet(NG)},initialSpacer:function(e){return new IG(DG(e,LG(e.state.doc.lines)))},updateSpacer:function(e,t){var n=DG(t.view,LG(t.view.state.doc.lines));return n==e.number?e:new IG(n)},domEventHandlers:e.facet(NG).domEventHandlers}}));function BG(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[NG.of(e),_G(),zG]}function LG(e){for(var t=9;t<e;)t=10*t+9;return t}var qG=new(function(e){function t(){var e;return Ro(this,t),(e=_o(this,t,arguments)).elementClass="cm-activeLineGutter",e}return Ao(t,xG),Io(t)}()),FG=kG.compute(["selection"],(function(e){var t,n=[],r=-1,o=bo(e.selection.ranges);try{for(o.s();!(t=o.n()).done;){var i=t.value,a=e.doc.lineAt(i.head).from;a>r&&(r=a,n.push(qG.range(a)))}}catch(e){o.e(e)}finally{o.f()}return RV.of(n)}));var VG=0,HG=Io((function e(t,n){Ro(this,e),this.from=t,this.to=n})),WG=function(){return Io((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Ro(this,e),this.id=VG++,this.perNode=!!t.perNode,this.deserialize=t.deserialize||function(){throw new Error("This node type doesn't define a deserialize function")}}),[{key:"add",value:function(e){var t=this;if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof e&&(e=KG.match(e)),function(n){var r=e(n);return void 0===r?null:[t,r]}}}])}();WG.closedBy=new WG({deserialize:function(e){return e.split(" ")}}),WG.openedBy=new WG({deserialize:function(e){return e.split(" ")}}),WG.group=new WG({deserialize:function(e){return e.split(" ")}}),WG.contextHash=new WG({perNode:!0}),WG.lookAhead=new WG({perNode:!0}),WG.mounted=new WG({perNode:!0});var UG=function(){return Io((function e(t,n,r){Ro(this,e),this.tree=t,this.overlay=n,this.parser=r}),null,[{key:"get",value:function(e){return e&&e.props&&e.props[WG.mounted.id]}}])}(),JG=Object.create(null),KG=function(){function e(t,n,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;Ro(this,e),this.name=t,this.props=n,this.id=r,this.flags=o}return Io(e,[{key:"prop",value:function(e){return this.props[e.id]}},{key:"isTop",get:function(){return(1&this.flags)>0}},{key:"isSkipped",get:function(){return(2&this.flags)>0}},{key:"isError",get:function(){return(4&this.flags)>0}},{key:"isAnonymous",get:function(){return(8&this.flags)>0}},{key:"is",value:function(e){if("string"==typeof e){if(this.name==e)return!0;var t=this.prop(WG.group);return!!t&&t.indexOf(e)>-1}return this.id==e}}],[{key:"define",value:function(t){var n=t.props&&t.props.length?Object.create(null):JG,r=(t.top?1:0)|(t.skipped?2:0)|(t.error?4:0)|(null==t.name?8:0),o=new e(t.name||"",n,t.id,r);if(t.props){var i,a=bo(t.props);try{for(a.s();!(i=a.n()).done;){var s=i.value;if(Array.isArray(s)||(s=s(o)),s){if(s[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");n[s[0].id]=s[1]}}}catch(e){a.e(e)}finally{a.f()}}return o}},{key:"match",value:function(e){var t=Object.create(null);for(var n in e){var r,o=bo(n.split(" "));try{for(o.s();!(r=o.n()).done;){var i=r.value;t[i]=e[n]}}catch(e){o.e(e)}finally{o.f()}}return function(e){for(var n=e.prop(WG.group),r=-1;r<(n?n.length:0);r++){var o=t[r<0?e.name:n[r]];if(o)return o}}}}])}();KG.none=new KG("",Object.create(null),0,8);var GG,QG=function(){function e(t){Ro(this,e),this.types=t;for(var n=0;n<t.length;n++)if(t[n].id!=n)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}return Io(e,[{key:"extend",value:function(){for(var t=[],n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];var i,a=bo(this.types);try{for(a.s();!(i=a.n()).done;){var s,c=i.value,u=null,l=bo(r);try{for(l.s();!(s=l.n()).done;){var f=(0,s.value)(c);f&&(u||(u=Object.assign({},c.props)),u[f[0].id]=f[1])}}catch(e){l.e(e)}finally{l.f()}t.push(u?new KG(c.name,u,c.id,c.flags):c)}}catch(e){a.e(e)}finally{a.f()}return new e(t)}}])}(),YG=new WeakMap,XG=new WeakMap;!function(e){e[e.ExcludeBuffers=1]="ExcludeBuffers",e[e.IncludeAnonymous=2]="IncludeAnonymous",e[e.IgnoreMounts=4]="IgnoreMounts",e[e.IgnoreOverlays=8]="IgnoreOverlays"}(GG||(GG={}));var ZG=function(){function e(t,n,r,o,i){if(Ro(this,e),this.type=t,this.children=n,this.positions=r,this.length=o,this.props=null,i&&i.length){this.props=Object.create(null);var a,s=bo(i);try{for(s.s();!(a=s.n()).done;){var c=jo(a.value,2),u=c[0],l=c[1];this.props["number"==typeof u?u:u.id]=l}}catch(e){s.e(e)}finally{s.f()}}}return Io(e,[{key:"toString",value:function(){var e=UG.get(this);if(e&&!e.overlay)return e.tree.toString();var t,n="",r=bo(this.children);try{for(r.s();!(t=r.n()).done;){var o=t.value.toString();o&&(n&&(n+=","),n+=o)}}catch(e){r.e(e)}finally{r.f()}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(n.length?"("+n+")":""):n}},{key:"cursor",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new dQ(this.topNode,e)}},{key:"cursorAt",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=YG.get(this)||this.topNode,r=new dQ(n);return r.moveTo(e,t),YG.set(this,r._tree),r}},{key:"topNode",get:function(){return new iQ(this,0,0,null)}},{key:"resolve",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=rQ(YG.get(this)||this.topNode,e,t,!1);return YG.set(this,n),n}},{key:"resolveInner",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=rQ(XG.get(this)||this.topNode,e,t,!0);return XG.set(this,n),n}},{key:"resolveStack",value:function(e){return function(e,t,n){for(var r=e.resolveInner(t,n),o=null,i=r instanceof iQ?r:r.context.parent;i;i=i.parent)if(i.index<0){var a=i.parent;(o||(o=[r])).push(a.resolve(t,n)),i=a}else{var s=UG.get(i.tree);if(s&&s.overlay&&s.overlay[0].from<=t&&s.overlay[s.overlay.length-1].to>=t){var c=new iQ(s.tree,s.overlay[0].from+i.from,-1,i);(o||(o=[r])).push(rQ(c,t,n,!1))}}return o?lQ(o):r}(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)}},{key:"iterate",value:function(e){for(var t=e.enter,n=e.leave,r=e.from,o=void 0===r?0:r,i=e.to,a=void 0===i?this.length:i,s=e.mode||0,c=(s&GG.IncludeAnonymous)>0,u=this.cursor(s|GG.IncludeAnonymous);;){var l=!1;if(u.from<=a&&u.to>=o&&(!c&&u.type.isAnonymous||!1!==t(u))){if(u.firstChild())continue;l=!0}for(;l&&n&&(c||!u.type.isAnonymous)&&n(u),!u.nextSibling();){if(!u.parent())return;l=!0}}}},{key:"prop",value:function(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}},{key:"propValues",get:function(){var e=[];if(this.props)for(var t in this.props)e.push([+t,this.props[t]]);return e}},{key:"balance",value:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.children.length<=8?this:gQ(KG.none,this.children,this.positions,0,this.children.length,0,this.length,(function(n,r,o){return new e(t.type,n,r,o,t.propValues)}),n.makeTree||function(t,n,r){return new e(KG.none,t,n,r)})}}],[{key:"build",value:function(e){return vQ(e)}}])}();ZG.empty=new ZG(KG.none,[],[],0);var eQ=function(){function e(t,n){Ro(this,e),this.buffer=t,this.index=n}return Io(e,[{key:"id",get:function(){return this.buffer[this.index-4]}},{key:"start",get:function(){return this.buffer[this.index-3]}},{key:"end",get:function(){return this.buffer[this.index-2]}},{key:"size",get:function(){return this.buffer[this.index-1]}},{key:"pos",get:function(){return this.index}},{key:"next",value:function(){this.index-=4}},{key:"fork",value:function(){return new e(this.buffer,this.index)}}])}(),tQ=function(){function e(t,n,r){Ro(this,e),this.buffer=t,this.length=n,this.set=r}return Io(e,[{key:"type",get:function(){return KG.none}},{key:"toString",value:function(){for(var e=[],t=0;t<this.buffer.length;)e.push(this.childString(t)),t=this.buffer[t+3];return e.join(",")}},{key:"childString",value:function(e){var t=this.buffer[e],n=this.buffer[e+3],r=this.set.types[t],o=r.name;if(/\W/.test(o)&&!r.isError&&(o=JSON.stringify(o)),n==(e+=4))return o;for(var i=[];e<n;)i.push(this.childString(e)),e=this.buffer[e+3];return o+"("+i.join(",")+")"}},{key:"findChild",value:function(e,t,n,r,o){for(var i=this.buffer,a=-1,s=e;s!=t&&!(nQ(o,r,i[s+1],i[s+2])&&(a=s,n>0));s=i[s+3]);return a}},{key:"slice",value:function(t,n,r){for(var o=this.buffer,i=new Uint16Array(n-t),a=0,s=t,c=0;s<n;){i[c++]=o[s++],i[c++]=o[s++]-r;var u=i[c++]=o[s++]-r;i[c++]=o[s++]-t,a=Math.max(a,u)}return new e(i,a,this.set)}}])}();function nQ(e,t,n,r){switch(e){case-2:return n<t;case-1:return r>=t&&n<t;case 0:return n<t&&r>t;case 1:return n<=t&&r>t;case 2:return r>t;case 4:return!0}}function rQ(e,t,n,r){for(var o;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to<t);){var i=!r&&e instanceof iQ&&e.index<0?null:e.parent;if(!i)return e;e=i}var a=r?0:GG.IgnoreOverlays;if(r)for(var s=e,c=s.parent;c;c=(s=c).parent)s instanceof iQ&&s.index<0&&(null===(o=c.enter(t,n,a))||void 0===o?void 0:o.from)!=s.from&&(e=c);for(;;){var u=e.enter(t,n,a);if(!u)return e;e=u}}var oQ=function(){return Io((function e(){Ro(this,e)}),[{key:"cursor",value:function(){return new dQ(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)}},{key:"getChild",value:function(e){var t=aQ(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null);return t.length?t[0]:null}},{key:"getChildren",value:function(e){return aQ(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null)}},{key:"resolve",value:function(e){return rQ(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!1)}},{key:"resolveInner",value:function(e){return rQ(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!0)}},{key:"matchContext",value:function(e){return sQ(this,e)}},{key:"enterUnfinishedNodesBefore",value:function(e){for(var t=this.childBefore(e),n=this;t;){var r=t.lastChild;if(!r||r.to!=t.to)break;r.type.isError&&r.from==r.to?(n=t,t=r.prevSibling):t=r}return n}},{key:"node",get:function(){return this}},{key:"next",get:function(){return this.parent}}])}(),iQ=function(e){function t(e,n,r,o){var i;return Ro(this,t),(i=_o(this,t))._tree=e,i.from=n,i.index=r,i._parent=o,i}return Ao(t,oQ),Io(t,[{key:"type",get:function(){return this._tree.type}},{key:"name",get:function(){return this._tree.type.name}},{key:"to",get:function(){return this.from+this._tree.length}},{key:"nextChild",value:function(e,n,r,o){for(var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=this;;){for(var s=a._tree,c=s.children,u=s.positions,l=n>0?c.length:-1;e!=l;e+=n){var f=c[e],d=u[e]+a.from;if(nQ(o,r,d,d+f.length))if(f instanceof tQ){if(i&GG.ExcludeBuffers)continue;var h=f.findChild(0,f.buffer.length,n,r-d,o);if(h>-1)return new uQ(new cQ(a,f,e,d),null,h)}else if(i&GG.IncludeAnonymous||!f.type.isAnonymous||hQ(f)){var v=void 0;if(!(i&GG.IgnoreMounts)&&(v=UG.get(f))&&!v.overlay)return new t(v.tree,d,e,a);var p=new t(f,d,e,a);return i&GG.IncludeAnonymous||!p.type.isAnonymous?p:p.nextChild(n<0?f.children.length-1:0,n,r,o)}}if(i&GG.IncludeAnonymous||!a.type.isAnonymous)return null;if(e=a.index>=0?a.index+n:n<0?-1:a._parent._tree.children.length,!(a=a._parent))return null}}},{key:"firstChild",get:function(){return this.nextChild(0,1,0,4)}},{key:"lastChild",get:function(){return this.nextChild(this._tree.children.length-1,-1,0,4)}},{key:"childAfter",value:function(e){return this.nextChild(0,1,e,2)}},{key:"childBefore",value:function(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}},{key:"enter",value:function(e,n){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!(o&GG.IgnoreOverlays)&&(r=UG.get(this._tree))&&r.overlay){var i,a=e-this.from,s=bo(r.overlay);try{for(s.s();!(i=s.n()).done;){var c=i.value,u=c.from,l=c.to;if((n>0?u<=a:u<a)&&(n<0?l>=a:l>a))return new t(r.tree,r.overlay[0].from+this.from,-1,this)}}catch(e){s.e(e)}finally{s.f()}}return this.nextChild(0,1,e,n,o)}},{key:"nextSignificantParent",value:function(){for(var e=this;e.type.isAnonymous&&e._parent;)e=e._parent;return e}},{key:"parent",get:function(){return this._parent?this._parent.nextSignificantParent():null}},{key:"nextSibling",get:function(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}},{key:"prevSibling",get:function(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}},{key:"tree",get:function(){return this._tree}},{key:"toTree",value:function(){return this._tree}},{key:"toString",value:function(){return this._tree.toString()}}])}();function aQ(e,t,n,r){var o=e.cursor(),i=[];if(!o.firstChild())return i;if(null!=n)for(;!o.type.is(n);)if(!o.nextSibling())return i;for(;;){if(null!=r&&o.type.is(r))return i;if(o.type.is(t)&&i.push(o.node),!o.nextSibling())return null==r?i:[]}}function sQ(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length-1,r=e.parent;n>=0;r=r.parent){if(!r)return!1;if(!r.type.isAnonymous){if(t[n]&&t[n]!=r.name)return!1;n--}}return!0}var cQ=Io((function e(t,n,r,o){Ro(this,e),this.parent=t,this.buffer=n,this.index=r,this.start=o})),uQ=function(e){function t(e,n,r){var o;return Ro(this,t),(o=_o(this,t)).context=e,o._parent=n,o.index=r,o.type=e.buffer.set.types[e.buffer.buffer[r]],o}return Ao(t,oQ),Io(t,[{key:"name",get:function(){return this.type.name}},{key:"from",get:function(){return this.context.start+this.context.buffer.buffer[this.index+1]}},{key:"to",get:function(){return this.context.start+this.context.buffer.buffer[this.index+2]}},{key:"child",value:function(e,n,r){var o=this.context.buffer,i=o.findChild(this.index+4,o.buffer[this.index+3],e,n-this.context.start,r);return i<0?null:new t(this.context,this,i)}},{key:"firstChild",get:function(){return this.child(1,0,4)}},{key:"lastChild",get:function(){return this.child(-1,0,4)}},{key:"childAfter",value:function(e){return this.child(1,e,2)}},{key:"childBefore",value:function(e){return this.child(-1,e,-2)}},{key:"enter",value:function(e,n){if((arguments.length>2&&void 0!==arguments[2]?arguments[2]:0)&GG.ExcludeBuffers)return null;var r=this.context.buffer,o=r.findChild(this.index+4,r.buffer[this.index+3],n>0?1:-1,e-this.context.start,n);return o<0?null:new t(this.context,this,o)}},{key:"parent",get:function(){return this._parent||this.context.parent.nextSignificantParent()}},{key:"externalSibling",value:function(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}},{key:"nextSibling",get:function(){var e=this.context.buffer,n=e.buffer[this.index+3];return n<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new t(this.context,this._parent,n):this.externalSibling(1)}},{key:"prevSibling",get:function(){var e=this.context.buffer,n=this._parent?this._parent.index+4:0;return this.index==n?this.externalSibling(-1):new t(this.context,this._parent,e.findChild(n,this.index,-1,0,4))}},{key:"tree",get:function(){return null}},{key:"toTree",value:function(){var e=[],t=[],n=this.context.buffer,r=this.index+4,o=n.buffer[this.index+3];if(o>r){var i=n.buffer[this.index+1];e.push(n.slice(r,o,i)),t.push(0)}return new ZG(this.type,e,t,this.to-this.from)}},{key:"toString",value:function(){return this.context.buffer.childString(this.index)}}])}();function lQ(e){if(!e.length)return null;for(var t=0,n=e[0],r=1;r<e.length;r++){var o=e[r];(o.from>n.from||o.to<n.to)&&(n=o,t=r)}var i=n instanceof iQ&&n.index<0?null:n.parent,a=e.slice();return i?a[t]=i:a.splice(t,1),new fQ(a,n)}var fQ=function(){return Io((function e(t,n){Ro(this,e),this.heads=t,this.node=n}),[{key:"next",get:function(){return lQ(this.heads)}}])}();var dQ=function(){return Io((function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(Ro(this,e),this.mode=n,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,t instanceof iQ)this.yieldNode(t);else{this._tree=t.context.parent,this.buffer=t.context;for(var r=t._parent;r;r=r._parent)this.stack.unshift(r.index);this.bufferNode=t,this.yieldBuf(t.index)}}),[{key:"name",get:function(){return this.type.name}},{key:"yieldNode",value:function(e){return!!e&&(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0)}},{key:"yieldBuf",value:function(e,t){this.index=e;var n=this.buffer,r=n.start,o=n.buffer;return this.type=t||o.set.types[o.buffer[e]],this.from=r+o.buffer[e+1],this.to=r+o.buffer[e+2],!0}},{key:"yield",value:function(e){return!!e&&(e instanceof iQ?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)))}},{key:"toString",value:function(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}},{key:"enterChild",value:function(e,t,n){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,n,this.mode));var r=this.buffer.buffer,o=r.findChild(this.index+4,r.buffer[this.index+3],e,t-this.buffer.start,n);return!(o<0)&&(this.stack.push(this.index),this.yieldBuf(o))}},{key:"firstChild",value:function(){return this.enterChild(1,0,4)}},{key:"lastChild",value:function(){return this.enterChild(-1,0,4)}},{key:"childAfter",value:function(e){return this.enterChild(1,e,2)}},{key:"childBefore",value:function(e){return this.enterChild(-1,e,-2)}},{key:"enter",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.mode;return this.buffer?!(n&GG.ExcludeBuffers)&&this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,n))}},{key:"parent",value:function(){if(!this.buffer)return this.yieldNode(this.mode&GG.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());var e=this.mode&GG.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}},{key:"sibling",value:function(e){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode));var t=this.buffer.buffer,n=this.stack.length-1;if(e<0){var r=n<0?0:this.stack[n]+4;if(this.index!=r)return this.yieldBuf(t.findChild(r,this.index,-1,0,4))}else{var o=t.buffer[this.index+3];if(o<(n<0?t.buffer.length:t.buffer[this.stack[n]+3]))return this.yieldBuf(o)}return n<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode))}},{key:"nextSibling",value:function(){return this.sibling(1)}},{key:"prevSibling",value:function(){return this.sibling(-1)}},{key:"atLastNode",value:function(e){var t,n,r=this.buffer;if(r){if(e>0){if(this.index<r.buffer.buffer.length)return!1}else for(var o=0;o<this.index;o++)if(r.buffer.buffer[o+3]<this.index)return!1;t=r.index,n=r.parent}else{var i=this._tree;t=i.index,n=i._parent}for(;n;t=(a=n).index,n=a._parent,a){var a;if(t>-1)for(var s=t+e,c=e<0?-1:n._tree.children.length;s!=c;s+=e){var u=n._tree.children[s];if(this.mode&GG.IncludeAnonymous||u instanceof tQ||!u.type.isAnonymous||hQ(u))return!1}}return!0}},{key:"move",value:function(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}},{key:"next",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.move(1,e)}},{key:"prev",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.move(-1,e)}},{key:"moveTo",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,t););return this}},{key:"node",get:function(){if(!this.buffer)return this._tree;var e=this.bufferNode,t=null,n=0;if(e&&e.context==this.buffer)e:for(var r=this.index,o=this.stack.length;o>=0;){for(var i=e;i;i=i._parent)if(i.index==r){if(r==this.index)return i;t=i,n=o+1;break e}r=this.stack[--o]}for(var a=n;a<this.stack.length;a++)t=new uQ(this.buffer,t,this.stack[a]);return this.bufferNode=new uQ(this.buffer,t,this.index)}},{key:"tree",get:function(){return this.buffer?null:this._tree._tree}},{key:"iterate",value:function(e,t){for(var n=0;;){var r=!1;if(this.type.isAnonymous||!1!==e(this)){if(this.firstChild()){n++;continue}this.type.isAnonymous||(r=!0)}for(;r&&t&&t(this),r=this.type.isAnonymous,!this.nextSibling();){if(!n)return;this.parent(),n--,r=!0}}}},{key:"matchContext",value:function(e){if(!this.buffer)return sQ(this.node,e);for(var t=this.buffer.buffer,n=t.set.types,r=e.length-1,o=this.stack.length-1;r>=0;o--){if(o<0)return sQ(this.node,e,r);var i=n[t.buffer[this.stack[o]]];if(!i.isAnonymous){if(e[r]&&e[r]!=i.name)return!1;r--}}return!0}}])}();function hQ(e){return e.children.some((function(e){return e instanceof tQ||!e.type.isAnonymous||hQ(e)}))}function vQ(e){var t,n=e.buffer,r=e.nodeSet,o=e.maxBufferLength,i=void 0===o?1024:o,a=e.reused,s=void 0===a?[]:a,c=e.minRepeatType,u=void 0===c?r.types.length:c,l=Array.isArray(n)?new eQ(n,n.length):n,f=r.types,d=0,h=0;function v(e,t,n,o,a,c){for(var b=l.id,w=l.start,x=l.end,k=l.size,j=h;k<0;){if(l.next(),-1==k){var S=s[b];return n.push(S),void o.push(w-e)}if(-3==k)return void(d=b);if(-4==k)return void(h=b);throw new RangeError("Unrecognized record size: ".concat(k))}var C,$,_=f[b],O=w-e;if(x-w<=i&&($=function(e,t){var n=l.fork(),r=0,o=0,a=0,s=n.end-i,c={size:0,start:0,skip:0};e:for(var f=n.pos-e;n.pos>f;){var d=n.size;if(n.id==t&&d>=0)c.size=r,c.start=o,c.skip=a,a+=4,r+=4,n.next();else{var h=n.pos-d;if(d<0||h<f||n.start<s)break;var v=n.id>=u?4:0,p=n.start;for(n.next();n.pos>h;){if(n.size<0){if(-3!=n.size)break e;v+=4}else n.id>=u&&(v+=4);n.next()}o=p,r+=d,a+=v}}(t<0||r==e)&&(c.size=r,c.start=o,c.skip=a);return c.size>4?c:void 0}(l.pos-t,a))){for(var M=new Uint16Array($.size-$.skip),A=l.pos-$.size,E=M.length;l.pos>A;)E=y($.start,M,E);C=new tQ(M,x-$.start,r),O=$.start-e}else{var P=l.pos-k;l.next();for(var T=[],R=[],N=b>=u?b:-1,I=0,D=x;l.pos>P;)N>=0&&l.id==N&&l.size>=0?(l.end<=D-i&&(m(T,R,w,I,l.end,D,N,j),I=T.length,D=l.end),l.next()):c>2500?p(w,P,T,R):v(w,P,T,R,N,c+1);if(N>=0&&I>0&&I<T.length&&m(T,R,w,I,w,D,N,j),T.reverse(),R.reverse(),N>-1&&I>0){var z=function(e){return function(t,n,r){var o,i,a=0,s=t.length-1;if(s>=0&&(o=t[s])instanceof ZG){if(!s&&o.type==e&&o.length==r)return o;(i=o.prop(WG.lookAhead))&&(a=n[s]+o.length+i)}return g(e,t,n,r,a)}}(_);C=gQ(_,T,R,0,T.length,0,x-w,z,z)}else C=g(_,T,R,x-w,j-x)}n.push(C),o.push(O)}function p(e,t,n,o){for(var a=[],s=0,c=-1;l.pos>t;){var u=l.id,f=l.start,d=l.end;if(l.size>4)l.next();else{if(c>-1&&f<c)break;c<0&&(c=d-i),a.push(u,f,d),s++,l.next()}}if(s){for(var h=new Uint16Array(4*s),v=a[a.length-2],p=a.length-3,m=0;p>=0;p-=3)h[m++]=a[p],h[m++]=a[p+1]-v,h[m++]=a[p+2]-v,h[m++]=m;n.push(new tQ(h,a[2]-v,r)),o.push(v-e)}}function m(e,t,n,o,i,a,s,c){for(var u=[],l=[];e.length>o;)u.push(e.pop()),l.push(t.pop()+n-i);e.push(g(r.types[s],u,l,a-i,c-a)),t.push(i-n)}function g(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=arguments.length>5?arguments[5]:void 0;if(d){var a=[WG.contextHash,d];i=i?[a].concat(i):[a]}if(o>25){var s=[WG.lookAhead,o];i=i?[s].concat(i):[s]}return new ZG(e,t,n,r,i)}function y(e,t,n){var r=l.id,o=l.start,i=l.end,a=l.size;if(l.next(),a>=0&&r<u){var s=n;if(a>4)for(var c=l.pos-(a-4);l.pos>c;)n=y(e,t,n);t[--n]=s,t[--n]=i-e,t[--n]=o-e,t[--n]=r}else-3==a?d=r:-4==a&&(h=r);return n}for(var b=[],w=[];l.pos>0;)v(e.start||0,e.bufferStart||0,b,w,-1,0);var x=null!==(t=e.length)&&void 0!==t?t:b.length?w[0]+b[0].length:0;return new ZG(f[e.topID],b.reverse(),w.reverse(),x)}var pQ=new WeakMap;function mQ(e,t){if(!e.isAnonymous||t instanceof tQ||t.type!=e)return 1;var n=pQ.get(t);if(null==n){n=1;var r,o=bo(t.children);try{for(o.s();!(r=o.n()).done;){var i=r.value;if(i.type!=e||!(i instanceof ZG)){n=1;break}n+=mQ(e,i)}}catch(e){o.e(e)}finally{o.f()}pQ.set(t,n)}return n}function gQ(e,t,n,r,o,i,a,s,c){for(var u=0,l=r;l<o;l++)u+=mQ(e,t[l]);var f=Math.ceil(1.5*u/8),d=[],h=[];return function t(n,r,o,a,s){for(var u=o;u<a;){var l=u,v=r[u],p=mQ(e,n[u]);for(u++;u<a;u++){var m=mQ(e,n[u]);if(p+m>=f)break;p+=m}if(u==l+1){if(p>f){var g=n[l];t(g.children,g.positions,0,g.children.length,r[l]+s);continue}d.push(n[l])}else{var y=r[u-1]+n[u-1].length-v;d.push(gQ(e,n,r,l,u,v,y,null,c))}h.push(v+s-i)}}(t,n,r,o,0),(s||c)(d,h,a)}var yQ=function(){function e(t,n,r,o){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];Ro(this,e),this.from=t,this.to=n,this.tree=r,this.offset=o,this.open=(i?1:0)|(a?2:0)}return Io(e,[{key:"openStart",get:function(){return(1&this.open)>0}},{key:"openEnd",get:function(){return(2&this.open)>0}}],[{key:"addTree",value:function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=[new e(0,t.length,t,0,!1,o)],a=bo(r);try{for(a.s();!(n=a.n()).done;){var s=n.value;s.to>t.length&&i.push(s)}}catch(e){a.e(e)}finally{a.f()}return i}},{key:"applyChanges",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:128;if(!n.length)return t;for(var o=[],i=1,a=t.length?t[0]:null,s=0,c=0,u=0;;s++){var l=s<n.length?n[s]:null,f=l?l.fromA:1e9;if(f-c>=r)for(;a&&a.from<f;){var d=a;if(c>=d.from||f<=d.to||u){var h=Math.max(d.from,c)-u,v=Math.min(d.to,f)-u;d=h>=v?null:new e(h,v,d.tree,d.offset+u,s>0,!!l)}if(d&&o.push(d),a.to>f)break;a=i<t.length?t[i++]:null}if(!l)break;c=l.toA,u=l.toA-l.toB}return o}}])}(),bQ=function(){return Io((function e(){Ro(this,e)}),[{key:"startParse",value:function(e,t,n){return"string"==typeof e&&(e=new wQ(e)),n=n?n.length?n.map((function(e){return new HG(e.from,e.to)})):[new HG(0,0)]:[new HG(0,e.length)],this.createParse(e,t||[],n)}},{key:"parse",value:function(e,t,n){for(var r=this.startParse(e,t,n);;){var o=r.advance();if(o)return o}}}])}(),wQ=function(){return Io((function e(t){Ro(this,e),this.string=t}),[{key:"length",get:function(){return this.string.length}},{key:"chunk",value:function(e){return this.string.slice(e)}},{key:"lineChunks",get:function(){return!1}},{key:"read",value:function(e,t){return this.string.slice(e,t)}}])}();new WG({perNode:!0});var xQ=0,kQ=function(){function e(t,n,r){Ro(this,e),this.set=t,this.base=n,this.modified=r,this.id=xQ++}return Io(e,null,[{key:"define",value:function(t){if(null==t?void 0:t.base)throw new Error("Can not derive from a modified tag");var n=new e([],null,[]);if(n.set.push(n),t){var r,o=bo(t.set);try{for(o.s();!(r=o.n()).done;){var i=r.value;n.set.push(i)}}catch(e){o.e(e)}finally{o.f()}}return n}},{key:"defineModifier",value:function(){var e=new SQ;return function(t){return t.modified.indexOf(e)>-1?t:SQ.get(t.base||t,t.modified.concat(e).sort((function(e,t){return e.id-t.id})))}}}])}(),jQ=0,SQ=function(){function e(){Ro(this,e),this.instances=[],this.id=jQ++}return Io(e,null,[{key:"get",value:function(t,n){if(!n.length)return t;var r=n[0].instances.find((function(e){return e.base==t&&(r=n,o=e.modified,r.length==o.length&&r.every((function(e,t){return e==o[t]})));var r,o}));if(r)return r;var o,i=[],a=new kQ(i,t,n),s=bo(n);try{for(s.s();!(o=s.n()).done;){o.value.instances.push(a)}}catch(e){s.e(e)}finally{s.f()}var c,u=function(e){for(var t=[[]],n=0;n<e.length;n++)for(var r=0,o=t.length;r<o;r++)t.push(t[r].concat(e[n]));return t.sort((function(e,t){return t.length-e.length}))}(n),l=bo(t.set);try{for(l.s();!(c=l.n()).done;){var f=c.value;if(!f.modified.length){var d,h=bo(u);try{for(h.s();!(d=h.n()).done;){var v=d.value;i.push(e.get(f,v))}}catch(e){h.e(e)}finally{h.f()}}}}catch(e){l.e(e)}finally{l.f()}return a}}])}();function CQ(e){var t=Object.create(null);for(var n in e){var r=e[n];Array.isArray(r)||(r=[r]);var o,i=bo(n.split(" "));try{for(i.s();!(o=i.n()).done;){var a=o.value;if(a){for(var s=[],c=2,u=a,l=0;;){if("..."==u&&l>0&&l+3==a.length){c=1;break}var f=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(u);if(!f)throw new RangeError("Invalid path: "+a);if(s.push("*"==f[0]?"":'"'==f[0][0]?JSON.parse(f[0]):f[0]),(l+=f[0].length)==a.length)break;var d=a[l++];if(l==a.length&&"!"==d){c=0;break}if("/"!=d)throw new RangeError("Invalid path: "+a);u=a.slice(l)}var h=s.length-1,v=s[h];if(!v)throw new RangeError("Invalid path: "+a);var p=new _Q(r,c,h>0?s.slice(0,h):null);t[v]=p.sort(t[v])}}}catch(e){i.e(e)}finally{i.f()}}return $Q.add(t)}var $Q=new WG,_Q=function(){return Io((function e(t,n,r,o){Ro(this,e),this.tags=t,this.mode=n,this.context=r,this.next=o}),[{key:"opaque",get:function(){return 0==this.mode}},{key:"inherit",get:function(){return 1==this.mode}},{key:"sort",value:function(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}},{key:"depth",get:function(){return this.context?this.context.length:0}}])}();function OQ(e,t){var n,r=Object.create(null),o=bo(e);try{for(o.s();!(n=o.n()).done;){var i=n.value;if(Array.isArray(i.tag)){var a,s=bo(i.tag);try{for(s.s();!(a=s.n()).done;){var c=a.value;r[c.id]=i.class}}catch(e){s.e(e)}finally{s.f()}}else r[i.tag.id]=i.class}}catch(e){o.e(e)}finally{o.f()}var u=t||{},l=u.scope,f=u.all,d=void 0===f?null:f;return{style:function(e){var t,n=d,o=bo(e);try{for(o.s();!(t=o.n()).done;){var i,a=bo(t.value.set);try{for(a.s();!(i=a.n()).done;){var s=i.value,c=r[s.id];if(c){n=n?n+" "+c:c;break}}}catch(e){a.e(e)}finally{a.f()}}}catch(e){o.e(e)}finally{o.f()}return n},scope:l}}function MQ(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:e.length,i=new AQ(r,Array.isArray(t)?t:[t],n);i.highlightRange(e.cursor(),r,o,"",i.highlighters),i.flush(o)}_Q.empty=new _Q([],2,null);var AQ=function(){return Io((function e(t,n,r){Ro(this,e),this.at=t,this.highlighters=n,this.span=r,this.class=""}),[{key:"startSpan",value:function(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}},{key:"flush",value:function(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}},{key:"highlightRange",value:function(e,t,n,r,o){var i=e.type,a=e.from,s=e.to;if(!(a>=n||s<=t)){i.isTop&&(o=this.highlighters.filter((function(e){return!e.scope||e.scope(i)})));var c=r,u=function(e){var t=e.type.prop($Q);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}(e)||_Q.empty,l=function(e,t){var n,r=null,o=bo(e);try{for(o.s();!(n=o.n()).done;){var i=n.value.style(t);i&&(r=r?r+" "+i:i)}}catch(e){o.e(e)}finally{o.f()}return r}(o,u.tags);if(l&&(c&&(c+=" "),c+=l,1==u.mode&&(r+=(r?" ":"")+l)),this.startSpan(Math.max(t,a),c),!u.opaque){var f=e.tree&&e.tree.prop(WG.mounted);if(f&&f.overlay){for(var d=e.node.enter(f.overlay[0].from+a,1),h=this.highlighters.filter((function(e){return!e.scope||e.scope(f.tree.type)})),v=e.firstChild(),p=0,m=a;;p++){var g=p<f.overlay.length?f.overlay[p]:null,y=g?g.from+a:s,b=Math.max(t,m),w=Math.min(n,y);if(b<w&&v)for(;e.from<w&&(this.highlightRange(e,b,w,r,o),this.startSpan(Math.min(w,e.to),c),!(e.to>=y)&&e.nextSibling()););if(!g||y>n)break;(m=g.to+a)>t&&(this.highlightRange(d.cursor(),Math.max(t,g.from+a),Math.min(n,m),"",h),this.startSpan(Math.min(n,m),c))}v&&e.parent()}else if(e.firstChild()){f&&(r="");do{if(!(e.to<=t)){if(e.from>=n)break;this.highlightRange(e,t,n,r,o),this.startSpan(Math.min(n,e.to),c)}}while(e.nextSibling());e.parent()}}}}}])}();var EQ,PQ=kQ.define,TQ=PQ(),RQ=PQ(),NQ=PQ(RQ),IQ=PQ(RQ),DQ=PQ(),zQ=PQ(DQ),BQ=PQ(DQ),LQ=PQ(),qQ=PQ(LQ),FQ=PQ(),VQ=PQ(),HQ=PQ(),WQ=PQ(HQ),UQ=PQ(),JQ={comment:TQ,lineComment:PQ(TQ),blockComment:PQ(TQ),docComment:PQ(TQ),name:RQ,variableName:PQ(RQ),typeName:NQ,tagName:PQ(NQ),propertyName:IQ,attributeName:PQ(IQ),className:PQ(RQ),labelName:PQ(RQ),namespace:PQ(RQ),macroName:PQ(RQ),literal:DQ,string:zQ,docString:PQ(zQ),character:PQ(zQ),attributeValue:PQ(zQ),number:BQ,integer:PQ(BQ),float:PQ(BQ),bool:PQ(DQ),regexp:PQ(DQ),escape:PQ(DQ),color:PQ(DQ),url:PQ(DQ),keyword:FQ,self:PQ(FQ),null:PQ(FQ),atom:PQ(FQ),unit:PQ(FQ),modifier:PQ(FQ),operatorKeyword:PQ(FQ),controlKeyword:PQ(FQ),definitionKeyword:PQ(FQ),moduleKeyword:PQ(FQ),operator:VQ,derefOperator:PQ(VQ),arithmeticOperator:PQ(VQ),logicOperator:PQ(VQ),bitwiseOperator:PQ(VQ),compareOperator:PQ(VQ),updateOperator:PQ(VQ),definitionOperator:PQ(VQ),typeOperator:PQ(VQ),controlOperator:PQ(VQ),punctuation:HQ,separator:PQ(HQ),bracket:WQ,angleBracket:PQ(WQ),squareBracket:PQ(WQ),paren:PQ(WQ),brace:PQ(WQ),content:LQ,heading:qQ,heading1:PQ(qQ),heading2:PQ(qQ),heading3:PQ(qQ),heading4:PQ(qQ),heading5:PQ(qQ),heading6:PQ(qQ),contentSeparator:PQ(LQ),list:PQ(LQ),quote:PQ(LQ),emphasis:PQ(LQ),strong:PQ(LQ),link:PQ(LQ),monospace:PQ(LQ),strikethrough:PQ(LQ),inserted:PQ(),deleted:PQ(),changed:PQ(),invalid:PQ(),meta:UQ,documentMeta:PQ(UQ),annotation:PQ(UQ),processingInstruction:PQ(UQ),definition:kQ.defineModifier(),constant:kQ.defineModifier(),function:kQ.defineModifier(),standard:kQ.defineModifier(),local:kQ.defineModifier(),special:kQ.defineModifier()};OQ([{tag:JQ.link,class:"tok-link"},{tag:JQ.heading,class:"tok-heading"},{tag:JQ.emphasis,class:"tok-emphasis"},{tag:JQ.strong,class:"tok-strong"},{tag:JQ.keyword,class:"tok-keyword"},{tag:JQ.atom,class:"tok-atom"},{tag:JQ.bool,class:"tok-bool"},{tag:JQ.url,class:"tok-url"},{tag:JQ.labelName,class:"tok-labelName"},{tag:JQ.inserted,class:"tok-inserted"},{tag:JQ.deleted,class:"tok-deleted"},{tag:JQ.literal,class:"tok-literal"},{tag:JQ.string,class:"tok-string"},{tag:JQ.number,class:"tok-number"},{tag:[JQ.regexp,JQ.escape,JQ.special(JQ.string)],class:"tok-string2"},{tag:JQ.variableName,class:"tok-variableName"},{tag:JQ.local(JQ.variableName),class:"tok-variableName tok-local"},{tag:JQ.definition(JQ.variableName),class:"tok-variableName tok-definition"},{tag:JQ.special(JQ.variableName),class:"tok-variableName2"},{tag:JQ.definition(JQ.propertyName),class:"tok-propertyName tok-definition"},{tag:JQ.typeName,class:"tok-typeName"},{tag:JQ.namespace,class:"tok-namespace"},{tag:JQ.className,class:"tok-className"},{tag:JQ.macroName,class:"tok-macroName"},{tag:JQ.propertyName,class:"tok-propertyName"},{tag:JQ.operator,class:"tok-operator"},{tag:JQ.comment,class:"tok-comment"},{tag:JQ.meta,class:"tok-meta"},{tag:JQ.invalid,class:"tok-invalid"},{tag:JQ.punctuation,class:"tok-punctuation"}]);var KQ=new WG;var GQ=new WG,QQ=function(){return Io((function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";Ro(this,e),this.data=t,this.name=o,OV.prototype.hasOwnProperty("tree")||Object.defineProperty(OV.prototype,"tree",{get:function(){return ZQ(this)}}),this.parser=n,this.extension=[cY.of(this),OV.languageData.of((function(e,t,n){var r=YQ(e,t,n),o=r.type.prop(KQ);if(!o)return[];var i=e.facet(o),a=r.type.prop(GQ);if(a){var s,c=r.resolve(t-r.from,n),u=bo(a);try{for(u.s();!(s=u.n()).done;){var l=s.value;if(l.test(c,e)){var f=e.facet(l.facet);return"replace"==l.type?f:f.concat(i)}}}catch(e){u.e(e)}finally{u.f()}}return i}))].concat(r)}),[{key:"isActiveAt",value:function(e,t){return YQ(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1).type.prop(KQ)==this.data}},{key:"findRegions",value:function(e){var t=this,n=e.facet(cY);if((null==n?void 0:n.data)==this.data)return[{from:0,to:e.doc.length}];if(!n||!n.allowsNesting)return[];var r=[];return function e(n,o){if(n.prop(KQ)!=t.data){var i=n.prop(WG.mounted);if(i){if(i.tree.prop(KQ)==t.data){if(i.overlay){var a,s=bo(i.overlay);try{for(s.s();!(a=s.n()).done;){var c=a.value;r.push({from:c.from+o,to:c.to+o})}}catch(e){s.e(e)}finally{s.f()}}else r.push({from:o,to:o+n.length});return}if(i.overlay){var u=r.length;if(e(i.tree,i.overlay[0].from+o),r.length>u)return}}for(var l=0;l<n.children.length;l++){var f=n.children[l];f instanceof ZG&&e(f,n.positions[l]+o)}}else r.push({from:o,to:o+n.length})}(ZQ(e),0),r}},{key:"allowsNesting",get:function(){return!0}}])}();function YQ(e,t,n){var r=e.facet(cY),o=ZQ(e).topNode;if(!r||r.allowsNesting)for(var i=o;i;i=i.enter(t,n,GG.ExcludeBuffers))i.type.isTop&&(o=i);return o}QQ.setState=mV.define();var XQ=function(e){function t(e,n,r){var o;return Ro(this,t),(o=_o(this,t,[e,n,[],r])).parser=n,o}return Ao(t,QQ),Io(t,[{key:"configure",value:function(e,n){return new t(this.data,this.parser.configure(e),n||this.name)}},{key:"allowsNesting",get:function(){return this.parser.hasWrappers()}}],[{key:"define",value:function(e){var n,r=(n=e.languageData,qF.define({combine:n?function(e){return e.concat(n)}:void 0}));return new t(r,e.parser.configure({props:[KQ.add((function(e){return e.isTop?r:void 0}))]}),e.name)}}])}();function ZQ(e){var t=e.field(QQ.state,!1);return t?t.tree:ZG.empty}var eY=function(){return Io((function e(t){Ro(this,e),this.doc=t,this.cursorPos=0,this.string="",this.cursor=t.iter()}),[{key:"length",get:function(){return this.doc.length}},{key:"syncTo",value:function(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}},{key:"chunk",value:function(e){return this.syncTo(e),this.string}},{key:"lineChunks",get:function(){return!0}},{key:"read",value:function(e,t){var n=this.cursorPos-this.string.length;return e<n||t>=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-n,t-n)}}])}(),tY=null,nY=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0,s=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0;Ro(this,e),this.parser=t,this.state=n,this.fragments=r,this.tree=o,this.treeLen=i,this.viewport=a,this.skipped=s,this.scheduleOn=c,this.parse=null,this.tempSkipped=[]}return Io(e,[{key:"startParse",value:function(){return this.parser.startParse(new eY(this.state.doc),this.fragments)}},{key:"work",value:function(e,t){var n=this;return null!=t&&t>=this.state.doc.length&&(t=void 0),this.tree!=ZG.empty&&this.isDone(null!=t?t:this.state.doc.length)?(this.takeTree(),!0):this.withContext((function(){var r;if("number"==typeof e){var o=Date.now()+e;e=function(){return Date.now()>o}}for(n.parse||(n.parse=n.startParse()),null!=t&&(null==n.parse.stoppedAt||n.parse.stoppedAt>t)&&t<n.state.doc.length&&n.parse.stopAt(t);;){var i=n.parse.advance();if(i){if(n.fragments=n.withoutTempSkipped(yQ.addTree(i,n.fragments,null!=n.parse.stoppedAt)),n.treeLen=null!==(r=n.parse.stoppedAt)&&void 0!==r?r:n.state.doc.length,n.tree=i,n.parse=null,!(n.treeLen<(null!=t?t:n.state.doc.length)))return!0;n.parse=n.startParse()}if(e())return!1}}))}},{key:"takeTree",value:function(){var e,t,n=this;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext((function(){for(;!(t=n.parse.advance()););})),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(yQ.addTree(this.tree,this.fragments,!0)),this.parse=null)}},{key:"withContext",value:function(e){var t=tY;tY=this;try{return e()}finally{tY=t}}},{key:"withoutTempSkipped",value:function(e){for(var t;t=this.tempSkipped.pop();)e=rY(e,t.from,t.to);return e}},{key:"changes",value:function(t,n){var r=this.fragments,o=this.tree,i=this.treeLen,a=this.viewport,s=this.skipped;if(this.takeTree(),!t.empty){var c=[];if(t.iterChangedRanges((function(e,t,n,r){return c.push({fromA:e,toA:t,fromB:n,toB:r})})),r=yQ.applyChanges(r,c),o=ZG.empty,i=0,a={from:t.mapPos(a.from,-1),to:t.mapPos(a.to,1)},this.skipped.length){s=[];var u,l=bo(this.skipped);try{for(l.s();!(u=l.n()).done;){var f=u.value,d=t.mapPos(f.from,1),h=t.mapPos(f.to,-1);d<h&&s.push({from:d,to:h})}}catch(e){l.e(e)}finally{l.f()}}}return new e(this.parser,n,r,o,i,a,s,this.scheduleOn)}},{key:"updateViewport",value:function(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;for(var t=this.skipped.length,n=0;n<this.skipped.length;n++){var r=this.skipped[n],o=r.from,i=r.to;o<e.to&&i>e.from&&(this.fragments=rY(this.fragments,o,i),this.skipped.splice(n--,1))}return!(this.skipped.length>=t)&&(this.reset(),!0)}},{key:"reset",value:function(){this.parse&&(this.takeTree(),this.parse=null)}},{key:"skipUntilInView",value:function(e,t){this.skipped.push({from:e,to:t})}},{key:"isDone",value:function(e){e=Math.min(e,this.state.doc.length);var t=this.fragments;return this.treeLen>=e&&t.length&&0==t[0].from&&t[0].to>=e}}],[{key:"create",value:function(t,n,r){return new e(t,n,[],ZG.empty,0,r,[],null)}},{key:"getSkippingParser",value:function(e){return new(function(t){function n(){return Ro(this,n),_o(this,n,arguments)}return Ao(n,bQ),Io(n,[{key:"createParse",value:function(t,n,r){var o=r[0].from,i=r[r.length-1].to;return{parsedPos:o,advance:function(){var t=tY;if(t){var n,a=bo(r);try{for(a.s();!(n=a.n()).done;){var s=n.value;t.tempSkipped.push(s)}}catch(e){a.e(e)}finally{a.f()}e&&(t.scheduleOn=t.scheduleOn?Promise.all([t.scheduleOn,e]):e)}return this.parsedPos=i,new ZG(KG.none,[],[],i-o)},stoppedAt:null,stopAt:function(){}}}}])}())}},{key:"get",value:function(){return tY}}])}();function rY(e,t,n){return yQ.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}var oY=function(){function e(t){Ro(this,e),this.context=t,this.tree=t.tree}return Io(e,[{key:"apply",value:function(t){if(!t.docChanged&&this.tree==this.context.tree)return this;var n=this.context.changes(t.changes,t.state),r=this.context.treeLen==t.startState.doc.length?void 0:Math.max(t.changes.mapPos(this.context.treeLen),n.viewport.to);return n.work(20,r)||n.takeTree(),new e(n)}}],[{key:"init",value:function(t){var n=Math.min(3e3,t.doc.length),r=nY.create(t.facet(cY).parser,t,{from:0,to:n});return r.work(20,n)||r.takeTree(),new e(r)}}])}();QQ.state=JF.define({create:oY.init,update:function(e,t){var n,r=bo(t.effects);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.is(QQ.setState))return o.value}}catch(e){r.e(e)}finally{r.f()}return t.startState.facet(cY)!=t.state.facet(cY)?oY.init(t.state):e.apply(t)}});var iY=function(e){var t=setTimeout((function(){return e()}),500);return function(){return clearTimeout(t)}};"undefined"!=typeof requestIdleCallback&&(iY=function(e){var t=-1,n=setTimeout((function(){t=requestIdleCallback(e,{timeout:400})}),100);return function(){return t<0?clearTimeout(n):cancelIdleCallback(t)}});var aY="undefined"!=typeof navigator&&(null===(EQ=navigator.scheduling)||void 0===EQ?void 0:EQ.isInputPending)?function(){return navigator.scheduling.isInputPending()}:null,sY=tU.fromClass(function(){return Io((function e(t){Ro(this,e),this.view=t,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}),[{key:"update",value:function(e){var t=this.view.state.field(QQ.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}},{key:"scheduleWork",value:function(){if(!this.working){var e=this.view.state,t=e.field(QQ.state);t.tree==t.context.tree&&t.context.isDone(e.doc.length)||(this.working=iY(this.work))}}},{key:"work",value:function(e){this.working=null;var t=Date.now();if(this.chunkEnd<t&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=t+3e4,this.chunkBudget=3e3),!(this.chunkBudget<=0)){var n=this.view,r=n.state,o=n.viewport.to,i=r.field(QQ.state);if(i.tree!=i.context.tree||!i.context.isDone(o+1e5)){var a=Date.now()+Math.min(this.chunkBudget,100,e&&!aY?Math.max(25,e.timeRemaining()-5):1e9),s=i.context.treeLen<o&&r.doc.length>o+1e3,c=i.context.work((function(){return aY&&aY()||Date.now()>a}),o+(s?0:1e5));this.chunkBudget-=Date.now()-t,(c||this.chunkBudget<=0)&&(i.context.takeTree(),this.view.dispatch({effects:QQ.setState.of(new oY(i.context))})),this.chunkBudget>0&&(!c||s)&&this.scheduleWork(),this.checkAsyncSchedule(i.context)}}}},{key:"checkAsyncSchedule",value:function(e){var t=this;e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then((function(){return t.scheduleWork()})).catch((function(e){return YW(t.view.state,e)})).then((function(){return t.workScheduled--})),e.scheduleOn=null)}},{key:"destroy",value:function(){this.working&&this.working()}},{key:"isWorking",value:function(){return!!(this.working||this.workScheduled>0)}}])}(),{eventHandlers:{focus:function(){this.scheduleWork()}}}),cY=qF.define({combine:function(e){return e.length?e[0]:null},enables:function(e){return[QQ.state,sY,ZJ.contentAttributes.compute([e],(function(t){var n=t.facet(e);return n&&n.name?{"data-language":n.name}:{}}))]}}),uY=Io((function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];Ro(this,e),this.language=t,this.support=n,this.extension=[t,n]})),lY=qF.define(),fY=qF.define({combine:function(e){if(!e.length)return"  ";var t=e[0];if(!t||/\S/.test(t)||Array.from(t).some((function(e){return e!=t[0]})))throw new Error("Invalid indent unit: "+JSON.stringify(e[0]));return t}});function dY(e){var t=e.facet(fY);return 9==t.charCodeAt(0)?e.tabSize*t.length:t.length}function hY(e,t){var n="",r=e.tabSize,o=e.facet(fY)[0];if("\t"==o){for(;t>=r;)n+="\t",t-=r;o=" "}for(var i=0;i<t;i++)n+=o;return n}function vY(e,t){e instanceof OV&&(e=new pY(e));var n,r=bo(e.state.facet(lY));try{for(r.s();!(n=r.n()).done;){var o=(0,n.value)(e,t);if(void 0!==o)return o}}catch(e){r.e(e)}finally{r.f()}var i=ZQ(e.state);return i.length>=t?function(e,t,n){var r=t.resolveStack(n),o=r.node.enterUnfinishedNodesBefore(n);if(o!=r.node){for(var i=[],a=o;a!=r.node;a=a.parent)i.push(a);for(var s=i.length-1;s>=0;s--)r={node:i[s],next:r}}return gY(r,e,n)}(e,i,t):null}var pY=function(){return Io((function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ro(this,e),this.state=t,this.options=n,this.unit=dY(t)}),[{key:"lineAt",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this.state.doc.lineAt(e),r=this.options,o=r.simulateBreak,i=r.simulateDoubleBreak;return null!=o&&o>=n.from&&o<=n.to?i&&o==e?{text:"",from:e}:(t<0?o<e:o<=e)?{text:n.text.slice(o-n.from),from:o}:{text:n.text.slice(0,o-n.from),from:n.from}:n}},{key:"textAfterPos",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";var n=this.lineAt(e,t),r=n.text,o=n.from;return r.slice(e-o,Math.min(r.length,e+100-o))}},{key:"column",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this.lineAt(e,t),r=n.text,o=n.from,i=this.countColumn(r,e-o),a=this.options.overrideIndentation?this.options.overrideIndentation(o):-1;return a>-1&&(i+=a-this.countColumn(r,r.search(/\S|$/))),i}},{key:"countColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length;return UV(e,this.state.tabSize,t)}},{key:"lineIndent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this.lineAt(e,t),r=n.text,o=n.from,i=this.options.overrideIndentation;if(i){var a=i(o);if(a>-1)return a}return this.countColumn(r,r.search(/\S|$/))}},{key:"simulatedBreak",get:function(){return this.options.simulateBreak||null}}])}(),mY=new WG;function gY(e,t,n){for(var r=e;r;r=r.next){var o=yY(r.node);if(o)return o(wY.create(t,n,r))}return 0}function yY(e){var t=e.type.prop(mY);if(t)return t;var n,r=e.firstChild;if(r&&(n=r.type.prop(WG.closedBy))){var o=e.lastChild,i=o&&n.indexOf(o.name)>-1;return function(e){return function(e,t,n,r,o){var i=e.textAfter,a=i.match(/^\s*/)[0].length,s=r&&i.slice(a,a+r.length)==r||o==e.pos+a,c=t?function(e){var t=e.node,n=t.childAfter(t.from),r=t.lastChild;if(!n)return null;for(var o=e.options.simulateBreak,i=e.state.doc.lineAt(n.from),a=null==o||o<=i.from?i.to:Math.min(i.to,o),s=n.to;;){var c=t.childAfter(s);if(!c||c==r)return null;if(!c.type.isSkipped)return c.from<a?n:null;s=c.to}}(e):null;return c?s?e.column(c.from):e.column(c.to):e.baseIndent+(s?0:e.unit*n)}(e,!0,1,void 0,i&&!function(e){return e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak}(e)?o.from:void 0)}}return null==e.parent?bY:null}function bY(){return 0}var wY=function(e){function t(e,n,r){var o;return Ro(this,t),(o=_o(this,t,[e.state,e.options])).base=e,o.pos=n,o.context=r,o}return Ao(t,pY),Io(t,[{key:"node",get:function(){return this.context.node}},{key:"textAfter",get:function(){return this.textAfterPos(this.pos)}},{key:"baseIndent",get:function(){return this.baseIndentFor(this.node)}},{key:"baseIndentFor",value:function(e){for(var t=this.state.doc.lineAt(e.from);;){for(var n=e.resolve(t.from);n.parent&&n.parent.from==n.from;)n=n.parent;if(xY(n,e))break;t=this.state.doc.lineAt(n.from)}return this.lineIndent(t.from)}},{key:"continue",value:function(){return gY(this.context.next,this.base,this.pos)}}],[{key:"create",value:function(e,n,r){return new t(e,n,r)}}])}();function xY(e,t){for(var n=t;n;n=n.parent)if(e==n)return!0;return!1}function kY(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.except,n=e.units,r=void 0===n?1:n;return function(e){var n=t&&t.test(e.textAfter);return e.baseIndent+(n?0:r*e.unit)}}var jY=200;var SY=qF.define(),CY=new WG;function $Y(e,t,n){var r,o=bo(e.facet(SY));try{for(o.s();!(r=o.n()).done;){var i=(0,r.value)(e,t,n);if(i)return i}}catch(e){o.e(e)}finally{o.f()}return function(e,t,n){var r=ZQ(e);if(r.length<n)return null;for(var o,i,a=null,s=r.resolveStack(n,1);s;s=s.next){var c=s.node;if(!(c.to<=n||c.from>n)){if(a&&c.from<t)break;var u=c.type.prop(CY);if(u&&(c.to<r.length-50||r.length==e.doc.length||(i=void 0,!(i=(o=c).lastChild)||i.to!=o.to||!i.type.isError))){var l=u(c,e);l&&l.from<=n&&l.from>=t&&l.to>n&&(a=l)}}}return a}(e,t,n)}function _Y(e,t){var n=t.mapPos(e.from,1),r=t.mapPos(e.to,-1);return n>=r?void 0:{from:n,to:r}}var OY=mV.define({map:_Y}),MY=mV.define({map:_Y});function AY(e){var t,n=[],r=bo(e.state.selection.ranges);try{var o=function(){var r=t.value.head;if(n.some((function(e){return e.from<=r&&e.to>=r})))return 1;n.push(e.lineBlockAt(r))};for(r.s();!(t=r.n()).done;)o()}catch(e){r.e(e)}finally{r.f()}return n}var EY=JF.define({create:function(){return aW.none},update:function(e,t){e=e.map(t.changes);var n,r=bo(t.effects);try{var o=function(){var r=n.value;if(r.is(OY)&&!function(e,t,n){var r=!1;return e.between(t,t,(function(e,o){e==t&&o==n&&(r=!0)})),r}(e,r.value.from,r.value.to)){var o=t.state.facet(DY).preparePlaceholder,i=o?aW.replace({widget:new qY(o(t.state,r.value))}):LY;e=e.update({add:[i.range(r.value.from,r.value.to)]})}else r.is(MY)&&(e=e.update({filter:function(e,t){return r.value.from!=e||r.value.to!=t},filterFrom:r.value.from,filterTo:r.value.to}))};for(r.s();!(n=r.n()).done;)o()}catch(e){r.e(e)}finally{r.f()}if(t.selection){var i=!1,a=t.selection.main.head;e.between(a,a,(function(e,t){e<a&&t>a&&(i=!0)})),i&&(e=e.update({filterFrom:a,filterTo:a,filter:function(e,t){return t<=a||e>=a}}))}return e},provide:function(e){return ZJ.decorations.from(e)},toJSON:function(e,t){var n=[];return e.between(0,t.doc.length,(function(e,t){n.push(e,t)})),n},fromJSON:function(e){if(!Array.isArray(e)||e.length%2)throw new RangeError("Invalid JSON for fold state");for(var t=[],n=0;n<e.length;){var r=e[n++],o=e[n++];if("number"!=typeof r||"number"!=typeof o)throw new RangeError("Invalid JSON for fold state");t.push(LY.range(r,o))}return aW.set(t,!0)}});function PY(e,t,n){var r,o=null;return null===(r=e.field(EY,!1))||void 0===r||r.between(t,n,(function(e,t){(!o||o.from>e)&&(o={from:e,to:t})})),o}function TY(e,t){return e.field(EY,!1)?t:t.concat(mV.appendConfig.of(zY()))}function RY(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=e.state.doc.lineAt(t.from).number,o=e.state.doc.lineAt(t.to).number;return ZJ.announce.of("".concat(e.state.phrase(n?"Folded lines":"Unfolded lines")," ").concat(r," ").concat(e.state.phrase("to")," ").concat(o,"."))}var NY=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:function(e){var t,n=bo(AY(e));try{for(n.s();!(t=n.n()).done;){var r=t.value,o=$Y(e.state,r.from,r.to);if(o)return e.dispatch({effects:TY(e.state,[OY.of(o),RY(e,o)])}),!0}}catch(e){n.e(e)}finally{n.f()}return!1}},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:function(e){if(!e.state.field(EY,!1))return!1;var t,n=[],r=bo(AY(e));try{for(r.s();!(t=r.n()).done;){var o=t.value,i=PY(e.state,o.from,o.to);i&&n.push(MY.of(i),RY(e,i,!1))}}catch(e){r.e(e)}finally{r.f()}return n.length&&e.dispatch({effects:n}),n.length>0}},{key:"Ctrl-Alt-[",run:function(e){for(var t=e.state,n=[],r=0;r<t.doc.length;){var o=e.lineBlockAt(r),i=$Y(t,o.from,o.to);i&&n.push(OY.of(i)),r=(i?e.lineBlockAt(i.to):o).to+1}return n.length&&e.dispatch({effects:TY(e.state,n)}),!!n.length}},{key:"Ctrl-Alt-]",run:function(e){var t=e.state.field(EY,!1);if(!t||!t.size)return!1;var n=[];return t.between(0,e.state.doc.length,(function(e,t){n.push(MY.of({from:e,to:t}))})),e.dispatch({effects:n}),!0}}],IY={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},DY=qF.define({combine:function(e){return MV(e,IY)}});function zY(e){var t=[EY,WY];return e&&t.push(DY.of(e)),t}function BY(e,t){var n=e.state,r=n.facet(DY),o=function(t){var n=e.lineBlockAt(e.posAtDOM(t.target)),r=PY(e.state,n.from,n.to);r&&e.dispatch({effects:MY.of(r)}),t.preventDefault()};if(r.placeholderDOM)return r.placeholderDOM(e,o,t);var i=document.createElement("span");return i.textContent=r.placeholderText,i.setAttribute("aria-label",n.phrase("folded code")),i.title=n.phrase("unfold"),i.className="cm-foldPlaceholder",i.onclick=o,i}var LY=aW.replace({widget:new(function(e){function t(){return Ro(this,t),_o(this,t,arguments)}return Ao(t,oW),Io(t,[{key:"toDOM",value:function(e){return BY(e,null)}}])}())}),qY=function(e){function t(e){var n;return Ro(this,t),(n=_o(this,t)).value=e,n}return Ao(t,oW),Io(t,[{key:"eq",value:function(e){return this.value==e.value}},{key:"toDOM",value:function(e){return BY(e,this.value)}}])}(),FY={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:function(){return!1}},VY=function(e){function t(e,n){var r;return Ro(this,t),(r=_o(this,t)).config=e,r.open=n,r}return Ao(t,xG),Io(t,[{key:"eq",value:function(e){return this.config==e.config&&this.open==e.open}},{key:"toDOM",value:function(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);var t=document.createElement("span");return t.textContent=this.open?this.config.openText:this.config.closedText,t.title=e.state.phrase(this.open?"Fold line":"Unfold line"),t}}])}();function HY(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.assign(Object.assign({},FY),e),n=new VY(t,!0),r=new VY(t,!1),o=tU.fromClass(function(){return Io((function e(t){Ro(this,e),this.from=t.viewport.from,this.markers=this.buildMarkers(t)}),[{key:"update",value:function(e){(e.docChanged||e.viewportChanged||e.startState.facet(cY)!=e.state.facet(cY)||e.startState.field(EY,!1)!=e.state.field(EY,!1)||ZQ(e.startState)!=ZQ(e.state)||t.foldingChanged(e))&&(this.markers=this.buildMarkers(e.view))}},{key:"buildMarkers",value:function(e){var t,o=new NV,i=bo(e.viewportLineBlocks);try{for(i.s();!(t=i.n()).done;){var a=t.value,s=PY(e.state,a.from,a.to)?r:$Y(e.state,a.from,a.to)?n:null;s&&o.add(a.from,a.from,s)}}catch(e){i.e(e)}finally{i.f()}return o.finish()}}])}()),i=t.domEventHandlers;return[o,CG({class:"cm-foldGutter",markers:function(e){var t;return(null===(t=e.plugin(o))||void 0===t?void 0:t.markers)||RV.empty},initialSpacer:function(){return new VY(t,!1)},domEventHandlers:Object.assign(Object.assign({},i),{click:function(e,t,n){if(i.click&&i.click(e,t,n))return!0;var r=PY(e.state,t.from,t.to);if(r)return e.dispatch({effects:MY.of(r)}),!0;var o=$Y(e.state,t.from,t.to);return!!o&&(e.dispatch({effects:OY.of(o)}),!0)}})}),zY()]}var WY=ZJ.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}}),UY=function(){function e(t,n){var r;function o(e){var t=YV.newName();return(r||(r=Object.create(null)))["."+t]=e,t}Ro(this,e),this.specs=t;var i="string"==typeof n.all?n.all:n.all?o(n.all):void 0,a=n.scope;this.scope=a instanceof QQ?function(e){return e.prop(KQ)==a.data}:a?function(e){return e==a}:void 0,this.style=OQ(t.map((function(e){return{tag:e.tag,class:e.class||o(Object.assign({},e,{tag:null}))}})),{all:i}).style,this.module=r?new YV(r):null,this.themeType=n.themeType}return Io(e,null,[{key:"define",value:function(t,n){return new e(t,n||{})}}])}(),JY=qF.define(),KY=qF.define({combine:function(e){return e.length?[e[0]]:null}});function GY(e){var t=e.facet(JY);return t.length?t:e.facet(KY)}function QY(e,t){var n,r=[XY];return e instanceof UY&&(e.module&&r.push(ZJ.styleModule.of(e.module)),n=e.themeType),(null==t?void 0:t.fallback)?r.push(KY.of(e)):n?r.push(JY.computeN([ZJ.darkTheme],(function(t){return t.facet(ZJ.darkTheme)==("dark"==n)?[e]:[]}))):r.push(JY.of(e)),r}var YY=function(){return Io((function e(t){Ro(this,e),this.markCache=Object.create(null),this.tree=ZQ(t.state),this.decorations=this.buildDeco(t,GY(t.state)),this.decoratedTo=t.viewport.to}),[{key:"update",value:function(e){var t=ZQ(e.state),n=GY(e.state),r=n!=GY(e.startState),o=e.view.viewport,i=e.changes.mapPos(this.decoratedTo,1);t.length<o.to&&!r&&t.type==this.tree.type&&i>=o.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=i):(t!=this.tree||e.viewportChanged||r)&&(this.tree=t,this.decorations=this.buildDeco(e.view,n),this.decoratedTo=o.to)}},{key:"buildDeco",value:function(e,t){var n=this;if(!t||!this.tree.length)return aW.none;var r,o=new NV,i=bo(e.visibleRanges);try{for(i.s();!(r=i.n()).done;){var a=r.value,s=a.from,c=a.to;MQ(this.tree,t,(function(e,t,r){o.add(e,t,n.markCache[r]||(n.markCache[r]=aW.mark({class:r})))}),s,c)}}catch(e){i.e(e)}finally{i.f()}return o.finish()}}])}(),XY=ZF.high(tU.fromClass(YY,{decorations:function(e){return e.decorations}})),ZY=UY.define([{tag:JQ.meta,color:"#404740"},{tag:JQ.link,textDecoration:"underline"},{tag:JQ.heading,textDecoration:"underline",fontWeight:"bold"},{tag:JQ.emphasis,fontStyle:"italic"},{tag:JQ.strong,fontWeight:"bold"},{tag:JQ.strikethrough,textDecoration:"line-through"},{tag:JQ.keyword,color:"#708"},{tag:[JQ.atom,JQ.bool,JQ.url,JQ.contentSeparator,JQ.labelName],color:"#219"},{tag:[JQ.literal,JQ.inserted],color:"#164"},{tag:[JQ.string,JQ.deleted],color:"#a11"},{tag:[JQ.regexp,JQ.escape,JQ.special(JQ.string)],color:"#e40"},{tag:JQ.definition(JQ.variableName),color:"#00f"},{tag:JQ.local(JQ.variableName),color:"#30a"},{tag:[JQ.typeName,JQ.namespace],color:"#085"},{tag:JQ.className,color:"#167"},{tag:[JQ.special(JQ.variableName),JQ.macroName],color:"#256"},{tag:JQ.definition(JQ.propertyName),color:"#00c"},{tag:JQ.comment,color:"#940"},{tag:JQ.invalid,color:"#f00"}]),eX=ZJ.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),tX=1e4,nX="()[]{}",rX=qF.define({combine:function(e){return MV(e,{afterCursor:!0,brackets:nX,maxScanDistance:tX,renderMatch:aX})}}),oX=aW.mark({class:"cm-matchingBracket"}),iX=aW.mark({class:"cm-nonmatchingBracket"});function aX(e){var t=[],n=e.matched?oX:iX;return t.push(n.range(e.start.from,e.start.to)),e.end&&t.push(n.range(e.end.from,e.end.to)),t}var sX=JF.define({create:function(){return aW.none},update:function(e,t){if(!t.docChanged&&!t.selection)return e;var n,r=[],o=t.state.facet(rX),i=bo(t.state.selection.ranges);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(a.empty){var s=hX(t.state,a.head,-1,o)||a.head>0&&hX(t.state,a.head-1,1,o)||o.afterCursor&&(hX(t.state,a.head,1,o)||a.head<t.state.doc.length&&hX(t.state,a.head+1,-1,o));s&&(r=r.concat(o.renderMatch(s,t.state)))}}}catch(e){i.e(e)}finally{i.f()}return aW.set(r,!0)},provide:function(e){return ZJ.decorations.from(e)}}),cX=[sX,eX];function uX(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[rX.of(e),cX]}var lX=new WG;function fX(e,t,n){var r=e.prop(t<0?WG.openedBy:WG.closedBy);if(r)return r;if(1==e.name.length){var o=n.indexOf(e.name);if(o>-1&&o%2==(t<0?1:0))return[n[o+t]]}return null}function dX(e){var t=e.type.prop(lX);return t?t(e.node):e}function hX(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=r.maxScanDistance||tX,i=r.brackets||nX,a=ZQ(e),s=a.resolveInner(t,n),c=s;c;c=c.parent){var u=fX(c.type,n,i);if(u&&c.from<c.to){var l=dX(c);if(l&&(n>0?t>=l.from&&t<l.to:t>l.from&&t<=l.to))return vX(e,t,n,c,l,u,i)}}return function(e,t,n,r,o,i,a){var s=n<0?e.sliceDoc(t-1,t):e.sliceDoc(t,t+1),c=a.indexOf(s);if(c<0||c%2==0!=n>0)return null;for(var u={from:n<0?t-1:t,to:n>0?t+1:t},l=e.doc.iterRange(t,n>0?e.doc.length:0),f=0,d=0;!l.next().done&&d<=i;){var h=l.value;n<0&&(d+=h.length);for(var v=t+d*n,p=n>0?0:h.length-1,m=n>0?h.length:-1;p!=m;p+=n){var g=a.indexOf(h[p]);if(!(g<0||r.resolveInner(v+p,1).type!=o))if(g%2==0==n>0)f++;else{if(1==f)return{start:u,end:{from:v+p,to:v+p+1},matched:g>>1==c>>1};f--}}n>0&&(d+=h.length)}return l.done?{start:u,matched:!1}:null}(e,t,n,a,s.type,o,i)}function vX(e,t,n,r,o,i,a){var s=r.parent,c={from:o.from,to:o.to},u=0,l=null==s?void 0:s.cursor();if(l&&(n<0?l.childBefore(r.from):l.childAfter(r.to)))do{if(n<0?l.to<=r.from:l.from>=r.to){if(0==u&&i.indexOf(l.type.name)>-1&&l.from<l.to){var f=dX(l);return{start:c,end:f?{from:f.from,to:f.to}:void 0,matched:!0}}if(fX(l.type,n,a))u++;else if(fX(l.type,-n,a)){if(0==u){var d=dX(l);return{start:c,end:d&&d.from<d.to?{from:d.from,to:d.to}:void 0,matched:!1}}u--}}}while(n<0?l.prevSibling():l.nextSibling());return{start:c,matched:!1}}for(var pX=Object.create(null),mX=[KG.none],gX=[],yX=Object.create(null),bX=Object.create(null),wX=0,xX=[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]];wX<xX.length;wX++){var kX=jo(xX[wX],2),jX=kX[0],SX=kX[1];bX[jX]=$X(pX,SX)}function CX(e,t){gX.indexOf(e)>-1||(gX.push(e),console.warn(t))}function $X(e,t){var n,r=[],o=bo(t.split(" "));try{for(o.s();!(n=o.n()).done;){var i,a=n.value,s=[],c=bo(a.split("."));try{for(c.s();!(i=c.n()).done;){var u=i.value,l=e[u]||JQ[u];l?"function"==typeof l?s.length?s=s.map(l):CX(u,"Modifier ".concat(u," used at start of tag")):s.length?CX(u,"Tag ".concat(u," used as modifier")):s=Array.isArray(l)?l:[l]:CX(u,"Unknown highlighting tag ".concat(u))}}catch(e){c.e(e)}finally{c.f()}var f,d=bo(s);try{for(d.s();!(f=d.n()).done;){var h=f.value;r.push(h)}}catch(e){d.e(e)}finally{d.f()}}}catch(e){o.e(e)}finally{o.f()}if(!r.length)return 0;var v=t.replace(/ /g,"_"),p=v+" "+r.map((function(e){return e.id})),m=yX[p];if(m)return m.id;var g=yX[p]=KG.define({id:mX.length,name:v,props:[CQ(Do({},v,r))]});return mX.push(g),g.id}pW.RTL,pW.LTR;function _X(e,t){return function(n){var r=n.state,o=n.dispatch;if(r.readOnly)return!1;var i=e(t,r);return!!i&&(o(r.update(i)),!0)}}var OX=_X(RX,0),MX=_X(TX,0),AX=_X((function(e,t){return TX(e,t,function(e){var t,n=[],r=bo(e.selection.ranges);try{for(r.s();!(t=r.n()).done;){var o=t.value,i=e.doc.lineAt(o.from),a=o.to<=i.to?i:e.doc.lineAt(o.to),s=n.length-1;s>=0&&n[s].to>i.from?n[s].to=a.to:n.push({from:i.from+/^\s*/.exec(i.text)[0].length,to:a.to})}}catch(e){r.e(e)}finally{r.f()}return n}(t))}),0);function EX(e,t){var n=e.languageDataAt("commentTokens",t);return n.length?n[0]:{}}var PX=50;function TX(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.selection.ranges,r=n.map((function(e){return EX(t,e.from).block}));if(!r.every((function(e){return e})))return null;var o=n.map((function(e,n){return function(e,t,n,r){var o,i,a=t.open,s=t.close,c=e.sliceDoc(n-PX,n),u=e.sliceDoc(r,r+PX),l=/\s*$/.exec(c)[0].length,f=/^\s*/.exec(u)[0].length,d=c.length-l;if(c.slice(d-a.length,d)==a&&u.slice(f,f+s.length)==s)return{open:{pos:n-l,margin:l&&1},close:{pos:r+f,margin:f&&1}};r-n<=2*PX?o=i=e.sliceDoc(n,r):(o=e.sliceDoc(n,n+PX),i=e.sliceDoc(r-PX,r));var h=/^\s*/.exec(o)[0].length,v=/\s*$/.exec(i)[0].length,p=i.length-v-s.length;return o.slice(h,h+a.length)==a&&i.slice(p,p+s.length)==s?{open:{pos:n+h+a.length,margin:/\s/.test(o.charAt(h+a.length))?1:0},close:{pos:r-v-s.length,margin:/\s/.test(i.charAt(p-1))?1:0}}:null}(t,r[n],e.from,e.to)}));if(2!=e&&!o.every((function(e){return e})))return{changes:t.changes(n.map((function(e,t){return o[t]?[]:[{from:e.from,insert:r[t].open+" "},{from:e.to,insert:" "+r[t].close}]})))};if(1!=e&&o.some((function(e){return e}))){for(var i,a=[],s=0;s<o.length;s++)if(i=o[s]){var c=r[s],u=i,l=u.open,f=u.close;a.push({from:l.pos-c.open.length,to:l.pos+l.margin},{from:f.pos-f.margin,to:f.pos+c.close.length})}return{changes:a}}return null}function RX(e,t){var n,r=[],o=-1,i=bo(arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.selection.ranges);try{for(i.s();!(n=i.n()).done;){var a=n.value,s=a.from,c=a.to,u=r.length,l=1e9,f=EX(t,s).line;if(f){for(var d=s;d<=c;){var h=t.doc.lineAt(d);if(h.from>o&&(s==c||c>h.from)){o=h.from;var v=/^\s*/.exec(h.text)[0].length,p=v==h.length,m=h.text.slice(v,v+f.length)==f?v:-1;v<h.text.length&&v<l&&(l=v),r.push({line:h,comment:m,token:f,indent:v,empty:p,single:!1})}d=h.to+1}if(l<1e9)for(var g=u;g<r.length;g++)r[g].indent<r[g].line.text.length&&(r[g].indent=l);r.length==u+1&&(r[u].single=!0)}}}catch(e){i.e(e)}finally{i.f()}if(2!=e&&r.some((function(e){return e.comment<0&&(!e.empty||e.single)}))){var y,b=[],w=bo(r);try{for(w.s();!(y=w.n()).done;){var x=y.value,k=x.line,j=x.token,S=x.indent,C=x.empty;!x.single&&C||b.push({from:k.from+S,insert:j+" "})}}catch(e){w.e(e)}finally{w.f()}var $=t.changes(b);return{changes:$,selection:t.selection.map($,1)}}if(1!=e&&r.some((function(e){return e.comment>=0}))){var _,O=[],M=bo(r);try{for(M.s();!(_=M.n()).done;){var A=_.value,E=A.line,P=A.comment,T=A.token;if(P>=0){var R=E.from+P,N=R+T.length;" "==E.text[N-E.from]&&N++,O.push({from:R,to:N})}}}catch(e){M.e(e)}finally{M.f()}return{changes:O}}return null}var NX=hV.define(),IX=hV.define(),DX=qF.define(),zX=qF.define({combine:function(e){return MV(e,{minDepth:100,newGroupDelay:500,joinToEvent:function(e,t){return t}},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:function(e,t){return function(n,r){return e(n,r)||t(n,r)}}})}}),BX=JF.define({create:function(){return iZ.empty},update:function(e,t){var n=t.state.facet(zX),r=t.annotation(NX);if(r){var o=GX.fromTransaction(t,r.selection),i=r.side,a=0==i?e.undone:e.done;return a=o?QX(a,a.length,n.minDepth,o):eZ(a,t.startState.selection),new iZ(0==i?r.rest:a,0==i?a:r.rest)}var s=t.annotation(IX);if("full"!=s&&"before"!=s||(e=e.isolate()),!1===t.annotation(gV.addToHistory))return t.changes.empty?e:e.addMapping(t.changes.desc);var c=GX.fromTransaction(t),u=t.annotation(gV.time),l=t.annotation(gV.userEvent);return c?e=e.addChanges(c,u,l,n,t):t.selection&&(e=e.addSelection(t.startState.selection,u,l,n.newGroupDelay)),"full"!=s&&"after"!=s||(e=e.isolate()),e},toJSON:function(e){return{done:e.done.map((function(e){return e.toJSON()})),undone:e.undone.map((function(e){return e.toJSON()}))}},fromJSON:function(e){return new iZ(e.done.map(GX.fromJSON),e.undone.map(GX.fromJSON))}});function LX(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[BX,zX.of(e),ZJ.domEventHandlers({beforeinput:function(e,t){var n="historyUndo"==e.inputType?FX:"historyRedo"==e.inputType?VX:null;return!!n&&(e.preventDefault(),n(t))}})]}function qX(e,t){return function(n){var r=n.state,o=n.dispatch;if(!t&&r.readOnly)return!1;var i=r.field(BX,!1);if(!i)return!1;var a=i.pop(e,r,t);return!!a&&(o(a),!0)}}var FX=qX(0,!1),VX=qX(1,!1),HX=qX(0,!0),WX=qX(1,!0);function UX(e){return function(t){var n=t.field(BX,!1);if(!n)return 0;var r=0==e?n.done:n.undone;return r.length-(r.length&&!r[0].changes?1:0)}}var JX=UX(0),KX=UX(1),GX=function(){function e(t,n,r,o,i){Ro(this,e),this.changes=t,this.effects=n,this.mapped=r,this.startSelection=o,this.selectionsAfter=i}return Io(e,[{key:"setSelAfter",value:function(t){return new e(this.changes,this.effects,this.mapped,this.startSelection,t)}},{key:"toJSON",value:function(){var e,t,n;return{changes:null===(e=this.changes)||void 0===e?void 0:e.toJSON(),mapped:null===(t=this.mapped)||void 0===t?void 0:t.toJSON(),startSelection:null===(n=this.startSelection)||void 0===n?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map((function(e){return e.toJSON()}))}}}],[{key:"fromJSON",value:function(t){return new e(t.changes&&AF.fromJSON(t.changes),[],t.mapped&&MF.fromJSON(t.mapped),t.startSelection&&zF.fromJSON(t.startSelection),t.selectionsAfter.map(zF.fromJSON))}},{key:"fromTransaction",value:function(t,n){var r,o=XX,i=bo(t.startState.facet(DX));try{for(i.s();!(r=i.n()).done;){var a=(0,r.value)(t);a.length&&(o=o.concat(a))}}catch(e){i.e(e)}finally{i.f()}return!o.length&&t.changes.empty?null:new e(t.changes.invert(t.startState.doc),o,void 0,n||t.startState.selection,XX)}},{key:"selection",value:function(t){return new e(void 0,XX,void 0,void 0,t)}}])}();function QX(e,t,n,r){var o=t+1>n+20?t-n-1:0,i=e.slice(o,t);return i.push(r),i}function YX(e,t){return e.length?t.length?e.concat(t):e:t}var XX=[],ZX=200;function eZ(e,t){if(e.length){var n=e[e.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-ZX));return r.length&&r[r.length-1].eq(t)?e:(r.push(t),QX(e,e.length-1,1e9,n.setSelAfter(r)))}return[GX.selection([t])]}function tZ(e){var t=e[e.length-1],n=e.slice();return n[e.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),n}function nZ(e,t){if(!e.length)return e;for(var n=e.length,r=XX;n;){var o=rZ(e[n-1],t,r);if(o.changes&&!o.changes.empty||o.effects.length){var i=e.slice(0,n);return i[n-1]=o,i}t=o.mapped,n--,r=o.selectionsAfter}return r.length?[GX.selection(r)]:XX}function rZ(e,t,n){var r=YX(e.selectionsAfter.length?e.selectionsAfter.map((function(e){return e.map(t)})):XX,n);if(!e.changes)return GX.selection(r);var o=e.changes.map(t),i=t.mapDesc(e.changes,!0),a=e.mapped?e.mapped.composeDesc(i):i;return new GX(o,mV.mapEffects(e.effects,t),a,e.startSelection.map(i),r)}var oZ=/^(input\.type|delete)($|\.)/,iZ=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;Ro(this,e),this.done=t,this.undone=n,this.prevTime=r,this.prevUserEvent=o}return Io(e,[{key:"isolate",value:function(){return this.prevTime?new e(this.done,this.undone):this}},{key:"addChanges",value:function(t,n,r,o,i){var a=this.done,s=a[a.length-1];return a=s&&s.changes&&!s.changes.empty&&t.changes&&(!r||oZ.test(r))&&(!s.selectionsAfter.length&&n-this.prevTime<o.newGroupDelay&&o.joinToEvent(i,function(e,t){var n=[],r=!1;return e.iterChangedRanges((function(e,t){return n.push(e,t)})),t.iterChangedRanges((function(e,t,o,i){for(var a=0;a<n.length;){var s=n[a++],c=n[a++];i>=s&&o<=c&&(r=!0)}})),r}(s.changes,t.changes))||"input.type.compose"==r)?QX(a,a.length-1,o.minDepth,new GX(t.changes.compose(s.changes),YX(t.effects,s.effects),s.mapped,s.startSelection,XX)):QX(a,a.length,o.minDepth,t),new e(a,XX,n,r)}},{key:"addSelection",value:function(t,n,r,o){var i,a,s=this.done.length?this.done[this.done.length-1].selectionsAfter:XX;return s.length>0&&n-this.prevTime<o&&r==this.prevUserEvent&&r&&/^select($|\.)/.test(r)&&(i=s[s.length-1],a=t,i.ranges.length==a.ranges.length&&0===i.ranges.filter((function(e,t){return e.empty!=a.ranges[t].empty})).length)?this:new e(eZ(this.done,t),this.undone,n,r)}},{key:"addMapping",value:function(t){return new e(nZ(this.done,t),nZ(this.undone,t),this.prevTime,this.prevUserEvent)}},{key:"pop",value:function(e,t,n){var r=0==e?this.done:this.undone;if(0==r.length)return null;var o=r[r.length-1],i=o.selectionsAfter[0]||t.selection;if(n&&o.selectionsAfter.length)return t.update({selection:o.selectionsAfter[o.selectionsAfter.length-1],annotations:NX.of({side:e,rest:tZ(r),selection:i}),userEvent:0==e?"select.undo":"select.redo",scrollIntoView:!0});if(o.changes){var a=1==r.length?XX:r.slice(0,r.length-1);return o.mapped&&(a=nZ(a,o.mapped)),t.update({changes:o.changes,selection:o.startSelection,effects:o.effects,annotations:NX.of({side:e,rest:a,selection:i}),filter:!1,userEvent:0==e?"undo":"redo",scrollIntoView:!0})}return null}}])}();iZ.empty=new iZ(XX,XX);var aZ=[{key:"Mod-z",run:FX,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:VX,preventDefault:!0},{linux:"Ctrl-Shift-z",run:VX,preventDefault:!0},{key:"Mod-u",run:HX,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:WX,preventDefault:!0}];function sZ(e,t){return zF.create(e.ranges.map(t),e.mainIndex)}function cZ(e,t){return e.update({selection:t,scrollIntoView:!0,userEvent:"select"})}function uZ(e,t){var n=e.state,r=e.dispatch,o=sZ(n.selection,t);return!o.eq(n.selection,!0)&&(r(cZ(n,o)),!0)}function lZ(e,t){return zF.cursor(t?e.to:e.from)}function fZ(e,t){return uZ(e,(function(n){return n.empty?e.moveByChar(n,t):lZ(n,t)}))}function dZ(e){return e.textDirectionAt(e.state.selection.main.head)==pW.LTR}var hZ=function(e){return fZ(e,!dZ(e))},vZ=function(e){return fZ(e,dZ(e))};function pZ(e,t){return uZ(e,(function(n){return n.empty?e.moveByGroup(n,t):lZ(n,t)}))}function mZ(e,t,n){if(t.type.prop(n))return!0;var r=t.to-t.from;return r&&(r>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}function gZ(e,t,n){for(var r=ZQ(e).resolveInner(t.head),o=n?WG.closedBy:WG.openedBy,i=t.head;;){var a=n?r.childAfter(i):r.childBefore(i);if(!a)break;mZ(e,a,o)?r=a:i=n?a.to:a.from}var s,c;return c=r.type.prop(o)&&(s=n?hX(e,r.from,1):hX(e,r.to,-1))&&s.matched?n?s.end.to:s.end.from:n?r.to:r.from,zF.cursor(c,n?-1:1)}function yZ(e,t){return uZ(e,(function(n){if(!n.empty)return lZ(n,t);var r=e.moveVertically(n,t);return r.head!=n.head?r:e.moveToLineBoundary(n,t)}))}var bZ=function(e){return yZ(e,!1)},wZ=function(e){return yZ(e,!0)};function xZ(e){var t,n=e.scrollDOM.clientHeight<e.scrollDOM.scrollHeight-2,r=0,o=0;if(n){var i,a=bo(e.state.facet(ZJ.scrollMargins));try{for(a.s();!(i=a.n()).done;){var s=(0,i.value)(e);(null==s?void 0:s.top)&&(r=Math.max(null==s?void 0:s.top,r)),(null==s?void 0:s.bottom)&&(o=Math.max(null==s?void 0:s.bottom,o))}}catch(e){a.e(e)}finally{a.f()}t=e.scrollDOM.clientHeight-r-o}else t=(e.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:r,marginBottom:o,selfScroll:n,height:Math.max(e.defaultLineHeight,t-5)}}function kZ(e,t){var n,r=xZ(e),o=e.state,i=sZ(o.selection,(function(n){return n.empty?e.moveVertically(n,t,r.height):lZ(n,t)}));if(i.eq(o.selection))return!1;if(r.selfScroll){var a=e.coordsAtPos(o.selection.main.head),s=e.scrollDOM.getBoundingClientRect(),c=s.top+r.marginTop,u=s.bottom-r.marginBottom;a&&a.top>c&&a.bottom<u&&(n=ZJ.scrollIntoView(i.main.head,{y:"start",yMargin:a.top-c}))}return e.dispatch(cZ(o,i),{effects:n}),!0}var jZ=function(e){return kZ(e,!1)},SZ=function(e){return kZ(e,!0)};function CZ(e,t,n){var r=e.lineBlockAt(t.head),o=e.moveToLineBoundary(t,n);if(o.head==t.head&&o.head!=(n?r.to:r.from)&&(o=e.moveToLineBoundary(t,n,!1)),!n&&o.head==r.from&&r.length){var i=/^\s*/.exec(e.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;i&&t.head!=r.from+i&&(o=zF.cursor(r.from+i))}return o}function $Z(e,t){var n=sZ(e.state.selection,(function(e){var n=t(e);return zF.range(e.anchor,n.head,n.goalColumn,n.bidiLevel||void 0)}));return!n.eq(e.state.selection)&&(e.dispatch(cZ(e.state,n)),!0)}function _Z(e,t){return $Z(e,(function(n){return e.moveByChar(n,t)}))}var OZ=function(e){return _Z(e,!dZ(e))},MZ=function(e){return _Z(e,dZ(e))};function AZ(e,t){return $Z(e,(function(n){return e.moveByGroup(n,t)}))}function EZ(e,t){return $Z(e,(function(n){return e.moveVertically(n,t)}))}var PZ=function(e){return EZ(e,!1)},TZ=function(e){return EZ(e,!0)};function RZ(e,t){return $Z(e,(function(n){return e.moveVertically(n,t,xZ(e).height)}))}var NZ=function(e){return RZ(e,!1)},IZ=function(e){return RZ(e,!0)},DZ=function(e){var t=e.state;return(0,e.dispatch)(cZ(t,{anchor:0})),!0},zZ=function(e){var t=e.state;return(0,e.dispatch)(cZ(t,{anchor:t.doc.length})),!0},BZ=function(e){var t=e.state;return(0,e.dispatch)(cZ(t,{anchor:t.selection.main.anchor,head:0})),!0},LZ=function(e){var t=e.state;return(0,e.dispatch)(cZ(t,{anchor:t.selection.main.anchor,head:t.doc.length})),!0};function qZ(e,t){if(e.state.readOnly)return!1;var n="delete.selection",r=e.state,o=r.changeByRange((function(r){var o=r.from,i=r.to;if(o==i){var a=t(r);a<o?(n="delete.backward",a=FZ(e,a,!1)):a>o&&(n="delete.forward",a=FZ(e,a,!0)),o=Math.min(o,a),i=Math.max(i,a)}else o=FZ(e,o,!1),i=FZ(e,i,!0);return o==i?{range:r}:{changes:{from:o,to:i},range:zF.cursor(o,o<r.head?-1:1)}}));return!o.changes.empty&&(e.dispatch(r.update(o,{scrollIntoView:!0,userEvent:n,effects:"delete.selection"==n?ZJ.announce.of(r.phrase("Selection deleted")):void 0})),!0)}function FZ(e,t,n){if(e instanceof ZJ){var r,o=bo(e.state.facet(ZJ.atomicRanges).map((function(t){return t(e)})));try{for(o.s();!(r=o.n()).done;){r.value.between(t,t,(function(e,r){e<t&&r>t&&(t=n?r:e)}))}}catch(e){o.e(e)}finally{o.f()}}return t}var VZ=function(e,t){return qZ(e,(function(n){var r,o,i=n.from,a=e.state,s=a.doc.lineAt(i);if(!t&&i>s.from&&i<s.from+200&&!/[^ \t]/.test(r=s.text.slice(0,i-s.from))){if("\t"==r[r.length-1])return i-1;for(var c=UV(r,a.tabSize)%dY(a)||dY(a),u=0;u<c&&" "==r[r.length-1-u];u++)i--;o=i}else(o=bF(s.text,i-s.from,t,t)+s.from)==i&&s.number!=(t?a.doc.lines:1)?o+=t?1:-1:!t&&/[\ufe00-\ufe0f]/.test(s.text.slice(o-s.from,i-s.from))&&(o=bF(s.text,o-s.from,!1,!1)+s.from);return o}))},HZ=function(e){return VZ(e,!1)},WZ=function(e){return VZ(e,!0)},UZ=function(e,t){return qZ(e,(function(n){for(var r=n.head,o=e.state,i=o.doc.lineAt(r),a=o.charCategorizer(r),s=null;;){if(r==(t?i.to:i.from)){r==n.head&&i.number!=(t?o.doc.lines:1)&&(r+=t?1:-1);break}var c=bF(i.text,r-i.from,t)+i.from,u=i.text.slice(Math.min(r,c)-i.from,Math.max(r,c)-i.from),l=a(u);if(null!=s&&l!=s)break;" "==u&&r==n.head||(s=l),r=c}return r}))},JZ=function(e){return UZ(e,!1)};function KZ(e){var t,n=[],r=-1,o=bo(e.selection.ranges);try{for(o.s();!(t=o.n()).done;){var i=t.value,a=e.doc.lineAt(i.from),s=e.doc.lineAt(i.to);if(i.empty||i.to!=s.from||(s=e.doc.lineAt(i.to-1)),r>=a.number){var c=n[n.length-1];c.to=s.to,c.ranges.push(i)}else n.push({from:a.from,to:s.to,ranges:[i]});r=s.number+1}}catch(e){o.e(e)}finally{o.f()}return n}function GZ(e,t,n){if(e.readOnly)return!1;var r,o=[],i=[],a=bo(KZ(e));try{for(a.s();!(r=a.n()).done;){var s=r.value;if(n?s.to!=e.doc.length:0!=s.from){var c=e.doc.lineAt(n?s.to+1:s.from-1),u=c.length+1;if(n){o.push({from:s.to,to:c.to},{from:s.from,insert:c.text+e.lineBreak});var l,f=bo(s.ranges);try{for(f.s();!(l=f.n()).done;){var d=l.value;i.push(zF.range(Math.min(e.doc.length,d.anchor+u),Math.min(e.doc.length,d.head+u)))}}catch(e){f.e(e)}finally{f.f()}}else{o.push({from:c.from,to:s.from},{from:s.to,insert:e.lineBreak+c.text});var h,v=bo(s.ranges);try{for(v.s();!(h=v.n()).done;){var p=h.value;i.push(zF.range(p.anchor-u,p.head-u))}}catch(e){v.e(e)}finally{v.f()}}}}}catch(e){a.e(e)}finally{a.f()}return!!o.length&&(t(e.update({changes:o,scrollIntoView:!0,selection:zF.create(i,e.selection.mainIndex),userEvent:"move.line"})),!0)}function QZ(e,t,n){if(e.readOnly)return!1;var r,o=[],i=bo(KZ(e));try{for(i.s();!(r=i.n()).done;){var a=r.value;n?o.push({from:a.from,insert:e.doc.slice(a.from,a.to)+e.lineBreak}):o.push({from:a.to,insert:e.lineBreak+e.doc.slice(a.from,a.to)})}}catch(e){i.e(e)}finally{i.f()}return t(e.update({changes:o,scrollIntoView:!0,userEvent:"input.copyline"})),!0}var YZ=ZZ(!1),XZ=ZZ(!0);function ZZ(e){return function(t){var n=t.state,r=t.dispatch;if(n.readOnly)return!1;var o=n.changeByRange((function(t){var r=t.from,o=t.to,i=n.doc.lineAt(r),a=!e&&r==o&&function(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};var n,r=ZQ(e).resolveInner(t),o=r.childBefore(t),i=r.childAfter(t);return o&&i&&o.to<=t&&i.from>=t&&(n=o.type.prop(WG.closedBy))&&n.indexOf(i.name)>-1&&e.doc.lineAt(o.to).from==e.doc.lineAt(i.from).from&&!/\S/.test(e.sliceDoc(o.to,i.from))?{from:o.to,to:i.from}:null}(n,r);e&&(r=o=(o<=i.to?i:n.doc.lineAt(o)).to);var s=new pY(n,{simulateBreak:r,simulateDoubleBreak:!!a}),c=vY(s,r);for(null==c&&(c=UV(/^\s*/.exec(n.doc.lineAt(r).text)[0],n.tabSize));o<i.to&&/\s/.test(i.text[o-i.from]);)o++;a?(r=a.from,o=a.to):r>i.from&&r<i.from+100&&!/\S/.test(i.text.slice(0,r))&&(r=i.from);var u=["",hY(n,c)];return a&&u.push(hY(n,s.lineIndent(i.from,-1))),{changes:{from:r,to:o,insert:oF.of(u)},range:zF.cursor(r+1+u[1].length)}}));return r(n.update(o,{scrollIntoView:!0,userEvent:"input"})),!0}}function e0(e,t){var n=-1;return e.changeByRange((function(r){for(var o=[],i=r.from;i<=r.to;){var a=e.doc.lineAt(i);a.number>n&&(r.empty||r.to>a.from)&&(t(a,o,r),n=a.number),i=a.to+1}var s=e.changes(o);return{changes:o,range:zF.range(s.mapPos(r.anchor,1),s.mapPos(r.head,1))}}))}var t0=function(e){var t=e.state,n=e.dispatch;return!t.readOnly&&(n(t.update(e0(t,(function(e,n){n.push({from:e.from,insert:t.facet(fY)})})),{userEvent:"input.indent"})),!0)},n0=function(e){var t=e.state,n=e.dispatch;return!t.readOnly&&(n(t.update(e0(t,(function(e,n){var r=/^\s*/.exec(e.text)[0];if(r){for(var o=UV(r,t.tabSize),i=0,a=hY(t,Math.max(0,o-dY(t)));i<r.length&&i<a.length&&r.charCodeAt(i)==a.charCodeAt(i);)i++;n.push({from:e.from+i,to:e.from+r.length,insert:a.slice(i)})}})),{userEvent:"delete.dedent"})),!0)},r0=[{key:"Ctrl-b",run:hZ,shift:OZ,preventDefault:!0},{key:"Ctrl-f",run:vZ,shift:MZ},{key:"Ctrl-p",run:bZ,shift:PZ},{key:"Ctrl-n",run:wZ,shift:TZ},{key:"Ctrl-a",run:function(e){return uZ(e,(function(t){return zF.cursor(e.lineBlockAt(t.head).from,1)}))},shift:function(e){return $Z(e,(function(t){return zF.cursor(e.lineBlockAt(t.head).from)}))}},{key:"Ctrl-e",run:function(e){return uZ(e,(function(t){return zF.cursor(e.lineBlockAt(t.head).to,-1)}))},shift:function(e){return $Z(e,(function(t){return zF.cursor(e.lineBlockAt(t.head).to)}))}},{key:"Ctrl-d",run:WZ},{key:"Ctrl-h",run:HZ},{key:"Ctrl-k",run:function(e){return qZ(e,(function(t){var n=e.lineBlockAt(t.head).to;return t.head<n?n:Math.min(e.state.doc.length,t.head+1)}))}},{key:"Ctrl-Alt-h",run:JZ},{key:"Ctrl-o",run:function(e){var t=e.state,n=e.dispatch;if(t.readOnly)return!1;var r=t.changeByRange((function(e){return{changes:{from:e.from,to:e.to,insert:oF.of(["",""])},range:zF.cursor(e.from)}}));return n(t.update(r,{scrollIntoView:!0,userEvent:"input"})),!0}},{key:"Ctrl-t",run:function(e){var t=e.state,n=e.dispatch;if(t.readOnly)return!1;var r=t.changeByRange((function(e){if(!e.empty||0==e.from||e.from==t.doc.length)return{range:e};var n=e.from,r=t.doc.lineAt(n),o=n==r.from?n-1:bF(r.text,n-r.from,!1)+r.from,i=n==r.to?n+1:bF(r.text,n-r.from,!0)+r.from;return{changes:{from:o,to:i,insert:t.doc.slice(n,i).append(t.doc.slice(o,n))},range:zF.cursor(i)}}));return!r.changes.empty&&(n(t.update(r,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Ctrl-v",run:SZ}],o0=[{key:"ArrowLeft",run:hZ,shift:OZ,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:function(e){return pZ(e,!dZ(e))},shift:function(e){return AZ(e,!dZ(e))},preventDefault:!0},{mac:"Cmd-ArrowLeft",run:function(e){return uZ(e,(function(t){return CZ(e,t,!dZ(e))}))},shift:function(e){return $Z(e,(function(t){return CZ(e,t,!dZ(e))}))},preventDefault:!0},{key:"ArrowRight",run:vZ,shift:MZ,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:function(e){return pZ(e,dZ(e))},shift:function(e){return AZ(e,dZ(e))},preventDefault:!0},{mac:"Cmd-ArrowRight",run:function(e){return uZ(e,(function(t){return CZ(e,t,dZ(e))}))},shift:function(e){return $Z(e,(function(t){return CZ(e,t,dZ(e))}))},preventDefault:!0},{key:"ArrowUp",run:bZ,shift:PZ,preventDefault:!0},{mac:"Cmd-ArrowUp",run:DZ,shift:BZ},{mac:"Ctrl-ArrowUp",run:jZ,shift:NZ},{key:"ArrowDown",run:wZ,shift:TZ,preventDefault:!0},{mac:"Cmd-ArrowDown",run:zZ,shift:LZ},{mac:"Ctrl-ArrowDown",run:SZ,shift:IZ},{key:"PageUp",run:jZ,shift:NZ},{key:"PageDown",run:SZ,shift:IZ},{key:"Home",run:function(e){return uZ(e,(function(t){return CZ(e,t,!1)}))},shift:function(e){return $Z(e,(function(t){return CZ(e,t,!1)}))},preventDefault:!0},{key:"Mod-Home",run:DZ,shift:BZ},{key:"End",run:function(e){return uZ(e,(function(t){return CZ(e,t,!0)}))},shift:function(e){return $Z(e,(function(t){return CZ(e,t,!0)}))},preventDefault:!0},{key:"Mod-End",run:zZ,shift:LZ},{key:"Enter",run:YZ},{key:"Mod-a",run:function(e){var t=e.state;return(0,e.dispatch)(t.update({selection:{anchor:0,head:t.doc.length},userEvent:"select"})),!0}},{key:"Backspace",run:HZ,shift:HZ},{key:"Delete",run:WZ},{key:"Mod-Backspace",mac:"Alt-Backspace",run:JZ},{key:"Mod-Delete",mac:"Alt-Delete",run:function(e){return UZ(e,!0)}},{mac:"Mod-Backspace",run:function(e){return qZ(e,(function(t){var n=e.moveToLineBoundary(t,!1).head;return t.head>n?n:Math.max(0,t.head-1)}))}},{mac:"Mod-Delete",run:function(e){return qZ(e,(function(t){var n=e.moveToLineBoundary(t,!0).head;return t.head<n?n:Math.min(e.state.doc.length,t.head+1)}))}}].concat(r0.map((function(e){return{mac:e.key,run:e.run,shift:e.shift}}))),i0=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:function(e){return uZ(e,(function(t){return gZ(e.state,t,!dZ(e))}))},shift:function(e){return $Z(e,(function(t){return gZ(e.state,t,!dZ(e))}))}},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:function(e){return uZ(e,(function(t){return gZ(e.state,t,dZ(e))}))},shift:function(e){return $Z(e,(function(t){return gZ(e.state,t,dZ(e))}))}},{key:"Alt-ArrowUp",run:function(e){return GZ(e.state,e.dispatch,!1)}},{key:"Shift-Alt-ArrowUp",run:function(e){return QZ(e.state,e.dispatch,!1)}},{key:"Alt-ArrowDown",run:function(e){return GZ(e.state,e.dispatch,!0)}},{key:"Shift-Alt-ArrowDown",run:function(e){return QZ(e.state,e.dispatch,!0)}},{key:"Escape",run:function(e){var t=e.state,n=e.dispatch,r=t.selection,o=null;return r.ranges.length>1?o=zF.create([r.main]):r.main.empty||(o=zF.create([zF.cursor(r.main.head)])),!!o&&(n(cZ(t,o)),!0)}},{key:"Mod-Enter",run:XZ},{key:"Alt-l",mac:"Ctrl-l",run:function(e){var t=e.state,n=e.dispatch,r=KZ(t).map((function(e){var n=e.from,r=e.to;return zF.range(n,Math.min(r+1,t.doc.length))}));return n(t.update({selection:zF.create(r),userEvent:"select"})),!0}},{key:"Mod-i",run:function(e){var t=e.state,n=e.dispatch,r=sZ(t.selection,(function(e){for(var n,r=ZQ(t).resolveStack(e.from,1);r;r=r.next){var o=r.node;if((o.from<e.from&&o.to>=e.to||o.to>e.to&&o.from<=e.from)&&(null===(n=o.parent)||void 0===n?void 0:n.parent))return zF.range(o.to,o.from)}return e}));return n(cZ(t,r)),!0},preventDefault:!0},{key:"Mod-[",run:n0},{key:"Mod-]",run:t0},{key:"Mod-Alt-\\",run:function(e){var t=e.state,n=e.dispatch;if(t.readOnly)return!1;var r=Object.create(null),o=new pY(t,{overrideIndentation:function(e){var t=r[e];return null==t?-1:t}}),i=e0(t,(function(e,n,i){var a=vY(o,e.from);if(null!=a){/\S/.test(e.text)||(a=0);var s=/^\s*/.exec(e.text)[0],c=hY(t,a);(s!=c||i.from<e.from+s.length)&&(r[e.from]=a,n.push({from:e.from,to:e.from+s.length,insert:c}))}}));return i.changes.empty||n(t.update(i,{userEvent:"indent"})),!0}},{key:"Shift-Mod-k",run:function(e){if(e.state.readOnly)return!1;var t=e.state,n=t.changes(KZ(t).map((function(e){var n=e.from,r=e.to;return n>0?n--:r<t.doc.length&&r++,{from:n,to:r}}))),r=sZ(t.selection,(function(t){return e.moveVertically(t,!0)})).map(n);return e.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:"delete.line"}),!0}},{key:"Shift-Mod-\\",run:function(e){return function(e,t,n){var r=!1,o=sZ(e.selection,(function(t){var o=hX(e,t.head,-1)||hX(e,t.head,1)||t.head>0&&hX(e,t.head-1,1)||t.head<e.doc.length&&hX(e,t.head+1,-1);if(!o||!o.end)return t;r=!0;var i=o.start.from==t.head?o.end.to:o.end.from;return n?zF.range(t.anchor,i):zF.cursor(i)}));return!!r&&(t(cZ(e,o)),!0)}(e.state,e.dispatch,!1)}},{key:"Mod-/",run:function(e){var t=e.state,n=t.doc.lineAt(t.selection.main.from),r=EX(e.state,n.from);return r.line?OX(e):!!r.block&&AX(e)}},{key:"Alt-A",run:MX}].concat(o0),a0={key:"Tab",run:t0,shift:n0};function s0(){var e=arguments[0];"string"==typeof e&&(e=document.createElement(e));var t=1,n=arguments[1];if(n&&"object"==Vo(n)&&null==n.nodeType&&!Array.isArray(n)){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var o=n[r];"string"==typeof o?e.setAttribute(r,o):null!=o&&(e[r]=o)}t++}for(;t<arguments.length;t++)c0(e,arguments[t]);return e}function c0(e,t){if("string"==typeof t)e.appendChild(document.createTextNode(t));else if(null==t);else if(null!=t.nodeType)e.appendChild(t);else{if(!Array.isArray(t))throw new RangeError("Unsupported child node: "+t);for(var n=0;n<t.length;n++)c0(e,t[n])}}var u0=Io((function e(t,n,r){Ro(this,e),this.from=t,this.to=n,this.diagnostic=r})),l0=function(){function e(t,n,r){Ro(this,e),this.diagnostics=t,this.panel=n,this.selected=r}return Io(e,null,[{key:"init",value:function(t,n,r){var o=t,i=r.facet(S0).markerFilter;i&&(o=i(o,r));var a=aW.set(o.map((function(e){return e.from==e.to||e.from==e.to-1&&r.doc.lineAt(e.from).to==e.from?aW.widget({widget:new _0(e),diagnostic:e}).range(e.from):aW.mark({attributes:{class:"cm-lintRange cm-lintRange-"+e.severity+(e.markClass?" "+e.markClass:"")},diagnostic:e,inclusive:!0}).range(e.from,e.to)})),!0);return new e(a,n,f0(a))}}])}();function f0(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=null;return e.between(n,1e9,(function(e,n,o){var i=o.spec;if(!t||i.diagnostic==t)return r=new u0(e,n,i.diagnostic),!1})),r}function d0(e,t){var n=e.startState.doc.lineAt(t.pos);return!(!e.effects.some((function(e){return e.is(v0)}))&&!e.changes.touchesRange(n.from,n.to))}function h0(e,t){return e.field(g0,!1)?t:t.concat(mV.appendConfig.of(q0))}var v0=mV.define(),p0=mV.define(),m0=mV.define(),g0=JF.define({create:function(){return new l0(aW.none,null,null)},update:function(e,t){if(t.docChanged){var n=e.diagnostics.map(t.changes),r=null;if(e.selected){var o=t.changes.mapPos(e.selected.from,1);r=f0(n,e.selected.diagnostic,o)||f0(n,null,o)}e=new l0(n,e.panel,r)}var i,a=bo(t.effects);try{for(a.s();!(i=a.n()).done;){var s=i.value;s.is(v0)?e=l0.init(s.value,e.panel,t.state):s.is(p0)?e=new l0(e.diagnostics,s.value?M0.open:null,e.selected):s.is(m0)&&(e=new l0(e.diagnostics,e.panel,s.value))}}catch(e){a.e(e)}finally{a.f()}return e},provide:function(e){return[wG.from(e,(function(e){return e.panel})),ZJ.decorations.from(e,(function(e){return e.diagnostics}))]}}),y0=aW.mark({class:"cm-lintRange cm-lintRange-active",inclusive:!0});function b0(e,t,n){var r=e.state.field(g0).diagnostics,o=[],i=2e8,a=0;r.between(t-(n<0?1:0),t+(n>0?1:0),(function(e,r,s){var c=s.spec;t>=e&&t<=r&&(e==r||(t>e||n>0)&&(t<r||n<0))&&(o.push(c.diagnostic),i=Math.min(e,i),a=Math.max(r,a))}));var s=e.state.facet(S0).tooltipFilter;return s&&(o=s(o,e.state)),o.length?{pos:i,end:a,above:e.state.doc.lineAt(i).to<a,create:function(){return{dom:w0(e,o)}}}:null}function w0(e,t){return s0("ul",{class:"cm-tooltip-lint"},t.map((function(t){return $0(e,t,!1)})))}var x0=function(e){var t=e.state.field(g0,!1);return!(!t||!t.panel)&&(e.dispatch({effects:p0.of(!1)}),!0)},k0=[{key:"Mod-Shift-m",run:function(e){var t=e.state.field(g0,!1);t&&t.panel||e.dispatch({effects:h0(e.state,[p0.of(!0)])});var n=mG(e,M0.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0},preventDefault:!0},{key:"F8",run:function(e){var t=e.state.field(g0,!1);if(!t)return!1;var n=e.state.selection.main,r=t.diagnostics.iter(n.to+1);return!(!r.value&&(!(r=t.diagnostics.iter(0)).value||r.from==n.from&&r.to==n.to))&&(e.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0}),!0)}}],j0=tU.fromClass(function(){return Io((function e(t){Ro(this,e),this.view=t,this.timeout=-1,this.set=!0;var n=t.state.facet(S0).delay;this.lintTime=Date.now()+n,this.run=this.run.bind(this),this.timeout=setTimeout(this.run,n)}),[{key:"run",value:function(){var e=this,t=Date.now();if(t<this.lintTime-10)this.timeout=setTimeout(this.run,this.lintTime-t);else{this.set=!1;var n=this.view.state,r=n.facet(S0).sources;r.length&&Promise.all(r.map((function(t){return Promise.resolve(t(e.view))}))).then((function(t){var r=t.reduce((function(e,t){return e.concat(t)}));e.view.state.doc==n.doc&&e.view.dispatch(function(e,t){return{effects:h0(e,[v0.of(t)])}}(e.view.state,r))}),(function(t){YW(e.view.state,t)}))}}},{key:"update",value:function(e){var t=e.state.facet(S0);(e.docChanged||t!=e.startState.facet(S0)||t.needsRefresh&&t.needsRefresh(e))&&(this.lintTime=Date.now()+t.delay,this.set||(this.set=!0,this.timeout=setTimeout(this.run,t.delay)))}},{key:"force",value:function(){this.set&&(this.lintTime=Date.now(),this.run())}},{key:"destroy",value:function(){clearTimeout(this.timeout)}}])}()),S0=qF.define({combine:function(e){return Object.assign({sources:e.map((function(e){return e.source})).filter((function(e){return null!=e}))},MV(e.map((function(e){return e.config})),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null},{needsRefresh:function(e,t){return e?t?function(n){return e(n)||t(n)}:e:t}}))}});function C0(e){var t=[];if(e){var n,r=bo(e);try{e:for(r.s();!(n=r.n()).done;){for(var o=n.value.name,i=function(){var e=o[a];if(/[a-zA-Z]/.test(e)&&!t.some((function(t){return t.toLowerCase()==e.toLowerCase()})))return t.push(e),1},a=0;a<o.length;a++)if(i())continue e;t.push("")}}catch(e){r.e(e)}finally{r.f()}}return t}function $0(e,t,n){var r,o=n?C0(t.actions):[];return s0("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},s0("span",{class:"cm-diagnosticText"},t.renderMessage?t.renderMessage():t.message),null===(r=t.actions)||void 0===r?void 0:r.map((function(n,r){var i=!1,a=function(r){if(r.preventDefault(),!i){i=!0;var o=f0(e.state.field(g0).diagnostics,t);o&&n.apply(e,o.from,o.to)}},s=n.name,c=o[r]?s.indexOf(o[r]):-1,u=c<0?s:[s.slice(0,c),s0("u",s.slice(c,c+1)),s.slice(c+1)];return s0("button",{type:"button",class:"cm-diagnosticAction",onclick:a,onmousedown:a,"aria-label":" Action: ".concat(s).concat(c<0?"":' (access key "'.concat(o[r],')"'),".")},u)})),t.source&&s0("div",{class:"cm-diagnosticSource"},t.source))}var _0=function(e){function t(e){var n;return Ro(this,t),(n=_o(this,t)).diagnostic=e,n}return Ao(t,oW),Io(t,[{key:"eq",value:function(e){return e.diagnostic==this.diagnostic}},{key:"toDOM",value:function(){return s0("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}])}(),O0=Io((function e(t,n){Ro(this,e),this.diagnostic=n,this.id="item_"+Math.floor(4294967295*Math.random()).toString(16),this.dom=$0(t,n,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")})),M0=function(){function e(t){var n=this;Ro(this,e),this.view=t,this.items=[];this.list=s0("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:function(e){if(27==e.keyCode)x0(n.view),n.view.focus();else if(38==e.keyCode||33==e.keyCode)n.moveSelection((n.selectedIndex-1+n.items.length)%n.items.length);else if(40==e.keyCode||34==e.keyCode)n.moveSelection((n.selectedIndex+1)%n.items.length);else if(36==e.keyCode)n.moveSelection(0);else if(35==e.keyCode)n.moveSelection(n.items.length-1);else if(13==e.keyCode)n.view.focus();else{if(!(e.keyCode>=65&&e.keyCode<=90&&n.selectedIndex>=0))return;for(var r=n.items[n.selectedIndex].diagnostic,o=C0(r.actions),i=0;i<o.length;i++)if(o[i].toUpperCase().charCodeAt(0)==e.keyCode){var a=f0(n.view.state.field(g0).diagnostics,r);a&&r.actions[i].apply(t,a.from,a.to)}}e.preventDefault()},onclick:function(e){for(var t=0;t<n.items.length;t++)n.items[t].dom.contains(e.target)&&n.moveSelection(t)}}),this.dom=s0("div",{class:"cm-panel-lint"},this.list,s0("button",{type:"button",name:"close","aria-label":this.view.state.phrase("close"),onclick:function(){return x0(n.view)}},"×")),this.update()}return Io(e,[{key:"selectedIndex",get:function(){var e=this.view.state.field(g0).selected;if(!e)return-1;for(var t=0;t<this.items.length;t++)if(this.items[t].diagnostic==e.diagnostic)return t;return-1}},{key:"update",value:function(){var e=this,t=this.view.state.field(g0),n=t.diagnostics,r=t.selected,o=0,i=!1,a=null;for(n.between(0,this.view.state.doc.length,(function(t,n,s){for(var c,u=s.spec,l=-1,f=o;f<e.items.length;f++)if(e.items[f].diagnostic==u.diagnostic){l=f;break}l<0?(c=new O0(e.view,u.diagnostic),e.items.splice(o,0,c),i=!0):(c=e.items[l],l>o&&(e.items.splice(o,l-o),i=!0)),r&&c.diagnostic==r.diagnostic?c.dom.hasAttribute("aria-selected")||(c.dom.setAttribute("aria-selected","true"),a=c):c.dom.hasAttribute("aria-selected")&&c.dom.removeAttribute("aria-selected"),o++}));o<this.items.length&&!(1==this.items.length&&this.items[0].diagnostic.from<0);)i=!0,this.items.pop();0==this.items.length&&(this.items.push(new O0(this.view,{from:-1,to:-1,severity:"info",message:this.view.state.phrase("No diagnostics")})),i=!0),a?(this.list.setAttribute("aria-activedescendant",a.id),this.view.requestMeasure({key:this,read:function(){return{sel:a.dom.getBoundingClientRect(),panel:e.list.getBoundingClientRect()}},write:function(t){var n=t.sel,r=t.panel,o=r.height/e.list.offsetHeight;n.top<r.top?e.list.scrollTop-=(r.top-n.top)/o:n.bottom>r.bottom&&(e.list.scrollTop+=(n.bottom-r.bottom)/o)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),i&&this.sync()}},{key:"sync",value:function(){var e=this.list.firstChild;function t(){var t=e;e=t.nextSibling,t.remove()}var n,r=bo(this.items);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.dom.parentNode==this.list){for(;e!=o.dom;)t();e=o.dom.nextSibling}else this.list.insertBefore(o.dom,e)}}catch(e){r.e(e)}finally{r.f()}for(;e;)t()}},{key:"moveSelection",value:function(e){if(!(this.selectedIndex<0)){var t=f0(this.view.state.field(g0).diagnostics,this.items[e].diagnostic);t&&this.view.dispatch({selection:{anchor:t.from,head:t.to},scrollIntoView:!0,effects:m0.of(t)})}}}],[{key:"open",value:function(t){return new e(t)}}])}();function A0(e){return'url(\'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" '.concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:'viewBox="0 0 40 40"',">").concat(encodeURIComponent(e),"</svg>')")}function E0(e){return A0('<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="'.concat(e,'" fill="none" stroke-width=".7"/>'),'width="6" height="3"')}var P0=ZJ.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:E0("#d11")},".cm-lintRange-warning":{backgroundImage:E0("orange")},".cm-lintRange-info":{backgroundImage:E0("#999")},".cm-lintRange-hint":{backgroundImage:E0("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}});function T0(e){return"error"==e?4:"warning"==e?3:"info"==e?2:1}var R0=function(e){function t(e){var n;return Ro(this,t),(n=_o(this,t)).diagnostics=e,n.severity=e.reduce((function(e,t){return T0(e)<T0(t.severity)?t.severity:e}),"hint"),n}return Ao(t,xG),Io(t,[{key:"toDOM",value:function(e){var t=document.createElement("div");t.className="cm-lint-marker cm-lint-marker-"+this.severity;var n=this.diagnostics,r=e.state.facet(F0).tooltipFilter;return r&&(n=r(n,e.state)),n.length&&(t.onmouseover=function(){return function(e,t,n){function r(){var r=e.elementAtHeight(t.getBoundingClientRect().top+5-e.documentTop);e.coordsAtPos(r.from)&&e.dispatch({effects:z0.of({pos:r.from,above:!1,create:function(){return{dom:w0(e,n),getCoords:function(){return t.getBoundingClientRect()}}}})}),t.onmouseout=t.onmousemove=null,function(e,t){var n=function n(r){var o=t.getBoundingClientRect();if(!(r.clientX>o.left-10&&r.clientX<o.right+10&&r.clientY>o.top-10&&r.clientY<o.bottom+10)){for(var i=r.target;i;i=i.parentNode)if(1==i.nodeType&&i.classList.contains("cm-tooltip-lint"))return;window.removeEventListener("mousemove",n),e.state.field(B0)&&e.dispatch({effects:z0.of(null)})}};window.addEventListener("mousemove",n)}(e,t)}var o=e.state.facet(F0),i=o.hoverTime,a=setTimeout(r,i);t.onmouseout=function(){clearTimeout(a),t.onmouseout=t.onmousemove=null},t.onmousemove=function(){clearTimeout(a),a=setTimeout(r,i)}}(e,t,n)}),t}}])}();function N0(e,t){var n,r=Object.create(null),o=bo(t);try{for(o.s();!(n=o.n()).done;){var i=n.value,a=e.lineAt(i.from);(r[a.from]||(r[a.from]=[])).push(i)}}catch(e){o.e(e)}finally{o.f()}var s=[];for(var c in r)s.push(new R0(r[c]).range(+c));return RV.of(s,!0)}var I0=CG({class:"cm-gutter-lint",markers:function(e){return e.state.field(D0)}}),D0=JF.define({create:function(){return RV.empty},update:function(e,t){e=e.map(t.changes);var n,r=t.state.facet(F0).markerFilter,o=bo(t.effects);try{for(o.s();!(n=o.n()).done;){var i=n.value;if(i.is(v0)){var a=i.value;r&&(a=r(a||[],t.state)),e=N0(t.state.doc,a.slice(0))}}}catch(e){o.e(e)}finally{o.f()}return e}}),z0=mV.define(),B0=JF.define({create:function(){return null},update:function(e,t){return e&&t.docChanged&&(e=d0(t,e)?null:Object.assign(Object.assign({},e),{pos:t.changes.mapPos(e.pos)})),t.effects.reduce((function(e,t){return t.is(z0)?t.value:e}),e)},provide:function(e){return aG.from(e)}}),L0=ZJ.baseTheme({".cm-gutter-lint":{width:"1.4em","& .cm-gutterElement":{padding:".2em"}},".cm-lint-marker":{width:"1em",height:"1em"},".cm-lint-marker-info":{content:A0('<path fill="#aaf" stroke="#77e" stroke-width="6" stroke-linejoin="round" d="M5 5L35 5L35 35L5 35Z"/>')},".cm-lint-marker-warning":{content:A0('<path fill="#fe8" stroke="#fd7" stroke-width="6" stroke-linejoin="round" d="M20 6L37 35L3 35Z"/>')},".cm-lint-marker-error":{content:A0('<circle cx="20" cy="20" r="15" fill="#f87" stroke="#f43" stroke-width="6"/>')}}),q0=[g0,ZJ.decorations.compute([g0],(function(e){var t=e.field(g0),n=t.selected,r=t.panel;return n&&r&&n.from!=n.to?aW.set([y0.range(n.from,n.to)]):aW.none})),dG(b0,{hideOn:d0}),P0],F0=qF.define({combine:function(e){return MV(e,{hoverTime:300,markerFilter:null,tooltipFilter:null})}});function V0(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[F0.of(e),D0,I0,L0,B0]}var H0=function(){function e(t,n,r,o,i,a,s,c,u){var l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:0,f=arguments.length>10?arguments[10]:void 0;Ro(this,e),this.p=t,this.stack=n,this.state=r,this.reducePos=o,this.pos=i,this.score=a,this.buffer=s,this.bufferBase=c,this.curContext=u,this.lookAhead=l,this.parent=f}return Io(e,[{key:"toString",value:function(){return"[".concat(this.stack.filter((function(e,t){return t%3==0})).concat(this.state),"]@").concat(this.pos).concat(this.score?"!"+this.score:"")}},{key:"context",get:function(){return this.curContext?this.curContext.context:null}},{key:"pushState",value:function(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}},{key:"reduce",value:function(e){var t,n=e>>19,r=65535&e,o=this.p.parser,i=o.dynamicPrecedence(r);if(i&&(this.score+=i),0==n)return this.pushState(o.getGoto(this.state,r,!0),this.reducePos),r<o.minRepeatTerm&&this.storeNode(r,this.reducePos,this.reducePos,4,!0),void this.reduceContext(r,this.reducePos);var a=this.stack.length-3*(n-1)-(262144&e?6:0),s=a?this.stack[a-2]:this.p.ranges[0].from,c=this.reducePos-s;c>=2e3&&!(null===(t=this.p.parser.nodeSet.types[r])||void 0===t?void 0:t.isAnonymous)&&(s==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=c):this.p.lastBigReductionSize<c&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=s,this.p.lastBigReductionSize=c));var u=a?this.stack[a-1]:0,l=this.bufferBase+this.buffer.length-u;if(r<o.minRepeatTerm||131072&e){var f=o.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(r,s,f,l+4,!0)}if(262144&e)this.state=this.stack[a];else{var d=this.stack[a-3];this.state=o.getGoto(d,r,!0)}for(;this.stack.length>a;)this.stack.pop();this.reduceContext(r,s)}},{key:"storeNode",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:4,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(0==e&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){var i=this,a=this.buffer.length;if(0==a&&i.parent&&(a=i.bufferBase-i.parent.bufferBase,i=i.parent),a>0&&0==i.buffer[a-4]&&i.buffer[a-1]>-1){if(t==n)return;if(i.buffer[a-2]>=t)return void(i.buffer[a-2]=n)}}if(o&&this.pos!=n){var s=this.buffer.length;if(s>0&&0!=this.buffer[s-4])for(;s>0&&this.buffer[s-2]>n;)this.buffer[s]=this.buffer[s-4],this.buffer[s+1]=this.buffer[s-3],this.buffer[s+2]=this.buffer[s-2],this.buffer[s+3]=this.buffer[s-1],s-=4,r>4&&(r-=4);this.buffer[s]=e,this.buffer[s+1]=t,this.buffer[s+2]=n,this.buffer[s+3]=r}else this.buffer.push(e,t,n,r)}},{key:"shift",value:function(e,t,n,r){if(131072&e)this.pushState(65535&e,this.pos);else if(0==(262144&e)){var o=e,i=this.p.parser;(r>this.pos||t<=i.maxNode)&&(this.pos=r,i.stateFlag(o,1)||(this.reducePos=r)),this.pushState(o,n),this.shiftContext(t,n),t<=i.maxNode&&this.buffer.push(t,n,r,4)}else this.pos=r,this.shiftContext(t,n),t<=this.p.parser.maxNode&&this.buffer.push(t,n,r,4)}},{key:"apply",value:function(e,t,n,r){65536&e?this.reduce(e):this.shift(e,t,n,r)}},{key:"useNode",value:function(e,t){var n=this.p.reused.length-1;(n<0||this.p.reused[n]!=e)&&(this.p.reused.push(e),n++);var r=this.pos;this.reducePos=this.pos=r+e.length,this.pushState(t,r),this.buffer.push(n,r,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}},{key:"split",value:function(){for(var t=this,n=t.buffer.length;n>0&&t.buffer[n-2]>t.reducePos;)n-=4;for(var r=t.buffer.slice(n),o=t.bufferBase+n;t&&o==t.bufferBase;)t=t.parent;return new e(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,r,o,this.curContext,this.lookAhead,t)}},{key:"recoverByDelete",value:function(e,t){var n=e<=this.p.parser.maxNode;n&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,n?8:4),this.pos=this.reducePos=t,this.score-=190}},{key:"canShift",value:function(e){for(var t=new U0(this);;){var n=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(0==n)return!1;if(0==(65536&n))return!0;t.reduce(n)}}},{key:"recoverByInsert",value:function(e){if(this.stack.length>=300)return[];var t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){for(var n,r=[],o=0;o<t.length;o+=2)(n=t[o+1])!=this.state&&this.p.parser.hasAction(n,e)&&r.push(t[o],n);if(this.stack.length<120)for(var i=function(){var e=t[a+1];r.some((function(t,n){return 1&n&&t==e}))||r.push(t[a],e)},a=0;r.length<8&&a<t.length;a+=2)i();t=r}for(var s=[],c=0;c<t.length&&s.length<4;c+=2){var u=t[c+1];if(u!=this.state){var l=this.split();l.pushState(u,this.pos),l.storeNode(0,l.pos,l.pos,4,!0),l.shiftContext(t[c],this.pos),l.reducePos=this.pos,l.score-=200,s.push(l)}}return s}},{key:"forceReduce",value:function(){var e=this.p.parser,t=e.stateSlot(this.state,5);if(0==(65536&t))return!1;if(!e.validAction(this.state,t)){var n=t>>19,r=65535&t,o=this.stack.length-3*n;if(o<0||e.getGoto(this.stack[o],r,!1)<0){var i=this.findForcedReduction();if(null==i)return!1;t=i}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}},{key:"findForcedReduction",value:function(){var e=this,t=this.p.parser,n=[];return function r(o,i){if(!n.includes(o))return n.push(o),t.allActions(o,(function(n){if(393216&n);else if(65536&n){var o=(n>>19)-i;if(o>1){var a=65535&n,s=e.stack.length-3*o;if(s>=0&&t.getGoto(e.stack[s],a,!1)>=0)return o<<19|65536|a}}else{var c=r(n,i+1);if(null!=c)return c}}))}(this.state,0)}},{key:"forceAll",value:function(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}},{key:"deadEnd",get:function(){if(3!=this.stack.length)return!1;var e=this.p.parser;return 65535==e.data[e.stateSlot(this.state,1)]&&!e.stateSlot(this.state,4)}},{key:"restart",value:function(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}},{key:"sameState",value:function(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(var t=0;t<this.stack.length;t+=3)if(this.stack[t]!=e.stack[t])return!1;return!0}},{key:"parser",get:function(){return this.p.parser}},{key:"dialectEnabled",value:function(e){return this.p.parser.dialect.flags[e]}},{key:"shiftContext",value:function(e,t){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,e,this,this.p.stream.reset(t)))}},{key:"reduceContext",value:function(e,t){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,e,this,this.p.stream.reset(t)))}},{key:"emitContext",value:function(){var e=this.buffer.length-1;(e<0||-3!=this.buffer[e])&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}},{key:"emitLookAhead",value:function(){var e=this.buffer.length-1;(e<0||-4!=this.buffer[e])&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}},{key:"updateContext",value:function(e){if(e!=this.curContext.context){var t=new W0(this.curContext.tracker,e);t.hash!=this.curContext.hash&&this.emitContext(),this.curContext=t}}},{key:"setLookAhead",value:function(e){e>this.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}},{key:"close",value:function(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}],[{key:"start",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=t.parser.context;return new e(t,[],n,r,r,0,[],0,o?new W0(o,o.start):null,0,null)}}])}(),W0=Io((function e(t,n){Ro(this,e),this.tracker=t,this.context=n,this.hash=t.strict?t.hash(n):0})),U0=function(){return Io((function e(t){Ro(this,e),this.start=t,this.state=t.state,this.stack=t.stack,this.base=this.stack.length}),[{key:"reduce",value:function(e){var t=65535&e,n=e>>19;0==n?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=3*(n-1);var r=this.start.p.parser.getGoto(this.stack[this.base-3],t,!0);this.state=r}}])}(),J0=function(){function e(t,n,r){Ro(this,e),this.stack=t,this.pos=n,this.index=r,this.buffer=t.buffer,0==this.index&&this.maybeNext()}return Io(e,[{key:"maybeNext",value:function(){var e=this.stack.parent;null!=e&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}},{key:"id",get:function(){return this.buffer[this.index-4]}},{key:"start",get:function(){return this.buffer[this.index-3]}},{key:"end",get:function(){return this.buffer[this.index-2]}},{key:"size",get:function(){return this.buffer[this.index-1]}},{key:"next",value:function(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}},{key:"fork",value:function(){return new e(this.stack,this.pos,this.index)}}],[{key:"create",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.bufferBase+t.buffer.length;return new e(t,n,n-t.bufferBase)}}])}();function K0(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Uint16Array;if("string"!=typeof e)return e;for(var n=null,r=0,o=0;r<e.length;){for(var i=0;;){var a=e.charCodeAt(r++),s=!1;if(126==a){i=65535;break}a>=92&&a--,a>=34&&a--;var c=a-32;if(c>=46&&(c-=46,s=!0),i+=c,s)break;i*=46}n?n[o++]=i:n=new t(i)}return n}var G0=Io((function e(){Ro(this,e),this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0})),Q0=new G0,Y0=function(){return Io((function e(t,n){Ro(this,e),this.input=t,this.ranges=n,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=Q0,this.rangeIndex=0,this.pos=this.chunkPos=n[0].from,this.range=n[0],this.end=n[n.length-1].to,this.readNext()}),[{key:"resolveOffset",value:function(e,t){for(var n=this.range,r=this.rangeIndex,o=this.pos+e;o<n.from;){if(!r)return null;var i=this.ranges[--r];o-=n.from-i.to,n=i}for(;t<0?o>n.to:o>=n.to;){if(r==this.ranges.length-1)return null;var a=this.ranges[++r];o+=a.from-n.to,n=a}return o}},{key:"clipPos",value:function(e){if(e>=this.range.from&&e<this.range.to)return e;var t,n=bo(this.ranges);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.to>e)return Math.max(e,r.from)}}catch(e){n.e(e)}finally{n.f()}return this.end}},{key:"peek",value:function(e){var t,n,r=this.chunkOff+e;if(r>=0&&r<this.chunk.length)t=this.pos+e,n=this.chunk.charCodeAt(r);else{var o=this.resolveOffset(e,1);if(null==o)return-1;if((t=o)>=this.chunk2Pos&&t<this.chunk2Pos+this.chunk2.length)n=this.chunk2.charCodeAt(t-this.chunk2Pos);else{for(var i=this.rangeIndex,a=this.range;a.to<=t;)a=this.ranges[++i];this.chunk2=this.input.chunk(this.chunk2Pos=t),t+this.chunk2.length>a.to&&(this.chunk2=this.chunk2.slice(0,a.to-t)),n=this.chunk2.charCodeAt(0)}}return t>=this.token.lookAhead&&(this.token.lookAhead=t+1),n}},{key:"acceptToken",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=t?this.resolveOffset(t,-1):this.pos;if(null==n||n<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=e,this.token.end=n}},{key:"getChunk",value:function(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){var e=this.chunk,t=this.chunkPos;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=e,this.chunk2Pos=t,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;var n=this.input.chunk(this.pos),r=this.pos+n.length;this.chunk=r>this.range.to?n.slice(0,this.range.to-this.pos):n,this.chunkPos=this.pos,this.chunkOff=0}}},{key:"readNext",value:function(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}},{key:"advance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}},{key:"setDone",value:function(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}},{key:"reset",value:function(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=Q0,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;e>=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e<this.chunkPos+this.chunk.length?this.chunkOff=e-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}},{key:"read",value:function(e,t){if(e>=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);var n,r="",o=bo(this.ranges);try{for(o.s();!(n=o.n()).done;){var i=n.value;if(i.from>=t)break;i.to>e&&(r+=this.input.read(Math.max(i.from,e),Math.min(i.to,t)))}}catch(e){o.e(e)}finally{o.f()}return r}}])}(),X0=function(){return Io((function e(t,n){Ro(this,e),this.data=t,this.id=n}),[{key:"token",value:function(e,t){var n=t.p.parser;!function(e,t,n,r,o,i){var a=0,s=1<<r,c=n.p.parser.dialect;e:for(;0!=(s&e[a]);){for(var u=e[a+1],l=a+3;l<u;l+=2)if((e[l+1]&s)>0){var f=e[l];if(c.allows(f)&&(-1==t.token.value||t.token.value==f||e1(f,t.token.value,o,i))){t.acceptToken(f);break}}var d=t.next,h=0,v=e[a+2];if(!(t.next<0&&v>h&&65535==e[u+3*v-3])){for(;h<v;){var p=h+v>>1,m=u+p+(p<<1),g=e[m],y=e[m+1]||65536;if(d<g)v=p;else{if(!(d>=y)){a=e[m+2],t.advance();continue e}h=p+1}}break}a=e[u+3*v-1]}}(this.data,e,t,this.id,n.data,n.tokenPrecTable)}}])}();function Z0(e,t,n){for(var r,o=t;65535!=(r=e[o]);o++)if(r==n)return o-t;return-1}function e1(e,t,n,r){var o=Z0(n,r,t);return o<0||Z0(n,r,e)<o}X0.prototype.contextual=X0.prototype.fallback=X0.prototype.extend=!1,X0.prototype.fallback=X0.prototype.extend=!1;var t1="undefined"!=typeof process&&process.env&&/\bparse\b/.test(process.env.LOG),n1=null;function r1(e,t,n){var r=e.cursor(GG.IncludeAnonymous);for(r.moveTo(t);;)if(!(n<0?r.childBefore(t):r.childAfter(t)))for(;;){if((n<0?r.to<t:r.from>t)&&!r.type.isError)return n<0?Math.max(0,Math.min(r.to-1,t-25)):Math.min(e.length,Math.max(r.from+1,t+25));if(n<0?r.prevSibling():r.nextSibling())break;if(!r.parent())return n<0?0:e.length}}var o1=function(){return Io((function e(t,n){Ro(this,e),this.fragments=t,this.nodeSet=n,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}),[{key:"nextFragment",value:function(){var e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?r1(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?r1(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}},{key:"nodeAt",value:function(e){if(e<this.nextStart)return null;for(;this.fragment&&this.safeTo<=e;)this.nextFragment();if(!this.fragment)return null;for(;;){var t=this.trees.length-1;if(t<0)return this.nextFragment(),null;var n=this.trees[t],r=this.index[t];if(r!=n.children.length){var o=n.children[r],i=this.start[t]+n.positions[r];if(i>e)return this.nextStart=i,null;if(o instanceof ZG){if(i==e){if(i<this.safeFrom)return null;var a=i+o.length;if(a<=this.safeTo){var s=o.prop(WG.lookAhead);if(!s||a+s<this.fragment.to)return o}}this.index[t]++,i+o.length>=Math.max(this.safeFrom,e)&&(this.trees.push(o),this.start.push(i),this.index.push(0))}else this.index[t]++,this.nextStart=i+o.length}else this.trees.pop(),this.start.pop(),this.index.pop()}}}])}(),i1=function(){return Io((function e(t,n){Ro(this,e),this.stream=n,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map((function(e){return new G0}))}),[{key:"getActions",value:function(e){for(var t=0,n=null,r=e.p.parser,o=r.tokenizers,i=r.stateSlot(e.state,3),a=e.curContext?e.curContext.hash:0,s=0,c=0;c<o.length;c++)if(0!=(1<<c&i)){var u=o[c],l=this.tokens[c];if((!n||u.fallback)&&((u.contextual||l.start!=e.pos||l.mask!=i||l.context!=a)&&(this.updateCachedToken(l,u,e),l.mask=i,l.context=a),l.lookAhead>l.end+25&&(s=Math.max(l.lookAhead,s)),0!=l.value)){var f=t;if(l.extended>-1&&(t=this.addActions(e,l.extended,l.end,t)),t=this.addActions(e,l.value,l.end,t),!u.extend&&(n=l,t>f))break}}for(;this.actions.length>t;)this.actions.pop();return s&&e.setLookAhead(s),n||e.pos!=this.stream.end||((n=new G0).value=e.p.parser.eofTerm,n.start=n.end=e.pos,t=this.addActions(e,n.value,n.end,t)),this.mainToken=n,this.actions}},{key:"getMainToken",value:function(e){if(this.mainToken)return this.mainToken;var t=new G0,n=e.pos,r=e.p;return t.start=n,t.end=Math.min(n+1,r.stream.end),t.value=n==r.stream.end?r.parser.eofTerm:0,t}},{key:"updateCachedToken",value:function(e,t,n){var r=this.stream.clipPos(n.pos);if(t.token(this.stream.reset(r,e),n),e.value>-1){for(var o=n.p.parser,i=0;i<o.specialized.length;i++)if(o.specialized[i]==e.value){var a=o.specializers[i](this.stream.read(e.start,e.end),n);if(a>=0&&n.p.parser.dialect.allows(a>>1)){0==(1&a)?e.value=a>>1:e.extended=a>>1;break}}}else e.value=0,e.end=this.stream.clipPos(r+1)}},{key:"putAction",value:function(e,t,n,r){for(var o=0;o<r;o+=3)if(this.actions[o]==e)return r;return this.actions[r++]=e,this.actions[r++]=t,this.actions[r++]=n,r}},{key:"addActions",value:function(e,t,n,r){for(var o=e.state,i=e.p.parser,a=i.data,s=0;s<2;s++)for(var c=i.stateSlot(o,s?2:1);;c+=3){if(65535==a[c]){if(1!=a[c+1]){0==r&&2==a[c+1]&&(r=this.putAction(l1(a,c+2),t,n,r));break}c=l1(a,c+2)}a[c]==t&&(r=this.putAction(l1(a,c+1),t,n,r))}return r}}])}(),a1=function(){return Io((function e(t,n,r,o){Ro(this,e),this.parser=t,this.input=n,this.ranges=o,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new Y0(n,o),this.tokens=new i1(t,this.stream),this.topTerm=t.top[1];var i=o[0].from;this.stacks=[H0.start(this,t.top[0],i)],this.fragments=r.length&&this.stream.end-i>4*t.bufferLength?new o1(r,t.nodeSet):null}),[{key:"parsedPos",get:function(){return this.minStackPos}},{key:"advance",value:function(){var e,t,n=this.stacks,r=this.minStackPos,o=this.stacks=[];if(this.bigReductionCount>300&&1==n.length){for(var i=jo(n,1)[0];i.forceReduce()&&i.stack.length&&i.stack[i.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(var a=0;a<n.length;a++)for(var s=n[a];;){if(this.tokens.mainToken=null,s.pos>r)o.push(s);else{if(this.advanceStack(s,o,n))continue;e||(e=[],t=[]),e.push(s);var c=this.tokens.getMainToken(s);t.push(c.value,c.end)}break}if(!o.length){var u=e&&function(e){var t,n=null,r=bo(e);try{for(r.s();!(t=r.n()).done;){var o=t.value,i=o.p.stoppedAt;(o.pos==o.p.stream.end||null!=i&&o.pos>i)&&o.p.parser.stateFlag(o.state,2)&&(!n||n.score<o.score)&&(n=o)}}catch(e){r.e(e)}finally{r.f()}return n}(e);if(u)return t1&&console.log("Finish with "+this.stackID(u)),this.stackToTree(u);if(this.parser.strict)throw t1&&e&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+r);this.recovering||(this.recovering=5)}if(this.recovering&&e){var l=null!=this.stoppedAt&&e[0].pos>this.stoppedAt?e[0]:this.runRecovery(e,t,o);if(l)return t1&&console.log("Force-finish "+this.stackID(l)),this.stackToTree(l.forceAll())}if(this.recovering){var f=1==this.recovering?1:3*this.recovering;if(o.length>f)for(o.sort((function(e,t){return t.score-e.score}));o.length>f;)o.pop();o.some((function(e){return e.reducePos>r}))&&this.recovering--}else if(o.length>1){e:for(var d=0;d<o.length-1;d++)for(var h=o[d],v=d+1;v<o.length;v++){var p=o[v];if(h.sameState(p)||h.buffer.length>500&&p.buffer.length>500){if(!((h.score-p.score||h.buffer.length-p.buffer.length)>0)){o.splice(d--,1);continue e}o.splice(v--,1)}}o.length>12&&o.splice(12,o.length-12)}this.minStackPos=o[0].pos;for(var m=1;m<o.length;m++)o[m].pos<this.minStackPos&&(this.minStackPos=o[m].pos);return null}},{key:"stopAt",value:function(e){if(null!=this.stoppedAt&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}},{key:"advanceStack",value:function(e,t,n){var r=e.pos,o=this.parser,i=t1?this.stackID(e)+" -> ":"";if(null!=this.stoppedAt&&r>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments)for(var a=e.curContext&&e.curContext.tracker.strict,s=a?e.curContext.hash:0,c=this.fragments.nodeAt(r);c;){var u=this.parser.nodeSet.types[c.type.id]==c.type?o.getGoto(e.state,c.type.id):-1;if(u>-1&&c.length&&(!a||(c.prop(WG.contextHash)||0)==s))return e.useNode(c,u),t1&&console.log(i+this.stackID(e)+" (via reuse of ".concat(o.getName(c.type.id),")")),!0;if(!(c instanceof ZG)||0==c.children.length||c.positions[0]>0)break;var l=c.children[0];if(!(l instanceof ZG&&0==c.positions[0]))break;c=l}var f=o.stateSlot(e.state,4);if(f>0)return e.reduce(f),t1&&console.log(i+this.stackID(e)+" (via always-reduce ".concat(o.getName(65535&f),")")),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););for(var d=this.tokens.getActions(e),h=0;h<d.length;){var v=d[h++],p=d[h++],m=d[h++],g=h==d.length||!n,y=g?e:e.split(),b=this.tokens.mainToken;if(y.apply(v,p,b?b.start:y.pos,m),t1&&console.log(i+this.stackID(y)+" (via ".concat(0==(65536&v)?"shift":"reduce of ".concat(o.getName(65535&v))," for ").concat(o.getName(p)," @ ").concat(r).concat(y==e?"":", split",")")),g)return!0;y.pos>r?t.push(y):n.push(y)}return!1}},{key:"advanceFully",value:function(e,t){for(var n=e.pos;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>n)return s1(e,t),!0}}},{key:"runRecovery",value:function(e,t,n){for(var r=null,o=!1,i=0;i<e.length;i++){var a=e[i],s=t[i<<1],c=t[1+(i<<1)],u=t1?this.stackID(a)+" -> ":"";if(a.deadEnd){if(o)continue;if(o=!0,a.restart(),t1&&console.log(u+this.stackID(a)+" (restarted)"),this.advanceFully(a,n))continue}for(var l=a.split(),f=u,d=0;l.forceReduce()&&d<10;d++){if(t1&&console.log(f+this.stackID(l)+" (via force-reduce)"),this.advanceFully(l,n))break;t1&&(f=this.stackID(l)+" -> ")}var h,v=bo(a.recoverByInsert(s));try{for(v.s();!(h=v.n()).done;){var p=h.value;t1&&console.log(u+this.stackID(p)+" (via recover-insert)"),this.advanceFully(p,n)}}catch(e){v.e(e)}finally{v.f()}this.stream.end>a.pos?(c==a.pos&&(c++,s=0),a.recoverByDelete(s,c),t1&&console.log(u+this.stackID(a)+" (via recover-delete ".concat(this.parser.getName(s),")")),s1(a,n)):(!r||r.score<a.score)&&(r=a)}return r}},{key:"stackToTree",value:function(e){return e.close(),ZG.build({buffer:J0.create(e),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:e.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}},{key:"stackID",value:function(e){var t=(n1||(n1=new WeakMap)).get(e);return t||n1.set(e,t=String.fromCodePoint(this.nextStackID++)),t+e}}])}();function s1(e,t){for(var n=0;n<t.length;n++){var r=t[n];if(r.pos==e.pos&&r.sameState(e))return void(t[n].score<e.score&&(t[n]=e))}t.push(e)}var c1=function(){return Io((function e(t,n,r){Ro(this,e),this.source=t,this.flags=n,this.disabled=r}),[{key:"allows",value:function(e){return!this.disabled||0==this.disabled[e]}}])}(),u1=function(e){function t(e){var n,r;if(Ro(this,t),(r=_o(this,t)).wrappers=[],14!=e.version)throw new RangeError("Parser version (".concat(e.version,") doesn't match runtime version (",14,")"));var o=e.nodeNames.split(" ");r.minRepeatTerm=o.length;for(var i=0;i<e.repeatNodeCount;i++)o.push("");for(var a=Object.keys(e.topRules).map((function(t){return e.topRules[t][1]})),s=[],c=0;c<o.length;c++)s.push([]);function u(e,t,n){s[e].push([t,t.deserialize(String(n))])}if(e.nodeProps){var l,f=bo(e.nodeProps);try{for(f.s();!(l=f.n()).done;){var d=l.value,h=d[0];"string"==typeof h&&(h=WG[h]);for(var v=1;v<d.length;){var p=d[v++];if(p>=0)u(p,h,d[v++]);else{for(var m=d[v+-p],g=-p;g>0;g--)u(d[v++],h,m);v++}}}}catch(e){f.e(e)}finally{f.f()}}r.nodeSet=new QG(o.map((function(t,n){return KG.define({name:n>=r.minRepeatTerm?void 0:t,id:n,props:s[n],top:a.indexOf(n)>-1,error:0==n,skipped:e.skippedNodes&&e.skippedNodes.indexOf(n)>-1})}))),e.propSources&&(r.nodeSet=(n=r.nodeSet).extend.apply(n,Bo(e.propSources))),r.strict=!1,r.bufferLength=1024;var y=K0(e.tokenData);r.context=e.context,r.specializerSpecs=e.specialized||[],r.specialized=new Uint16Array(r.specializerSpecs.length);for(var b=0;b<r.specializerSpecs.length;b++)r.specialized[b]=r.specializerSpecs[b].term;return r.specializers=r.specializerSpecs.map(f1),r.states=K0(e.states,Uint32Array),r.data=K0(e.stateData),r.goto=K0(e.goto),r.maxTerm=e.maxTerm,r.tokenizers=e.tokenizers.map((function(e){return"number"==typeof e?new X0(y,e):e})),r.topRules=e.topRules,r.dialects=e.dialects||{},r.dynamicPrecedences=e.dynamicPrecedences||null,r.tokenPrecTable=e.tokenPrec,r.termNames=e.termNames||null,r.maxNode=r.nodeSet.types.length-1,r.dialect=r.parseDialect(),r.top=r.topRules[Object.keys(r.topRules)[0]],r}return Ao(t,bQ),Io(t,[{key:"createParse",value:function(e,t,n){var r,o=new a1(this,e,t,n),i=bo(this.wrappers);try{for(i.s();!(r=i.n()).done;){o=(0,r.value)(o,e,t,n)}}catch(e){i.e(e)}finally{i.f()}return o}},{key:"getGoto",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.goto;if(t>=r[0])return-1;for(var o=r[t+1];;){var i=r[o++],a=1&i,s=r[o++];if(a&&n)return s;for(var c=o+(i>>1);o<c;o++)if(r[o]==e)return s;if(a)return-1}}},{key:"hasAction",value:function(e,t){for(var n=this.data,r=0;r<2;r++)for(var o,i=this.stateSlot(e,r?2:1);;i+=3){if(65535==(o=n[i])){if(1!=n[i+1]){if(2==n[i+1])return l1(n,i+2);break}o=n[i=l1(n,i+2)]}if(o==t||0==o)return l1(n,i+1)}return 0}},{key:"stateSlot",value:function(e,t){return this.states[6*e+t]}},{key:"stateFlag",value:function(e,t){return(this.stateSlot(e,0)&t)>0}},{key:"validAction",value:function(e,t){return!!this.allActions(e,(function(e){return e==t||null}))}},{key:"allActions",value:function(e,t){for(var n=this.stateSlot(e,4),r=n?t(n):void 0,o=this.stateSlot(e,1);null==r;o+=3){if(65535==this.data[o]){if(1!=this.data[o+1])break;o=l1(this.data,o+2)}r=t(l1(this.data,o+1))}return r}},{key:"nextStates",value:function(e){for(var t=this,n=[],r=function(e){if(65535==t.data[e]){if(1!=t.data[e+1])return o=e,1;e=l1(t.data,e+2)}if(0==(1&t.data[e+2])){var r=t.data[e+1];n.some((function(e,t){return 1&t&&e==r}))||n.push(t.data[e],r)}o=e},o=this.stateSlot(e,1);!r(o);o+=3);return n}},{key:"configure",value:function(e){var n,r=Object.assign(Object.create(t.prototype),this);if(e.props&&(r.nodeSet=(n=this.nodeSet).extend.apply(n,Bo(e.props))),e.top){var o=this.topRules[e.top];if(!o)throw new RangeError("Invalid top rule name ".concat(e.top));r.top=o}return e.tokenizers&&(r.tokenizers=this.tokenizers.map((function(t){var n=e.tokenizers.find((function(e){return e.from==t}));return n?n.to:t}))),e.specializers&&(r.specializers=this.specializers.slice(),r.specializerSpecs=this.specializerSpecs.map((function(t,n){var o=e.specializers.find((function(e){return e.from==t.external}));if(!o)return t;var i=Object.assign(Object.assign({},t),{external:o.to});return r.specializers[n]=f1(i),i}))),e.contextTracker&&(r.context=e.contextTracker),e.dialect&&(r.dialect=this.parseDialect(e.dialect)),null!=e.strict&&(r.strict=e.strict),e.wrap&&(r.wrappers=r.wrappers.concat(e.wrap)),null!=e.bufferLength&&(r.bufferLength=e.bufferLength),r}},{key:"hasWrappers",value:function(){return this.wrappers.length>0}},{key:"getName",value:function(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}},{key:"eofTerm",get:function(){return this.maxNode+1}},{key:"topNode",get:function(){return this.nodeSet.types[this.top[1]]}},{key:"dynamicPrecedence",value:function(e){var t=this.dynamicPrecedences;return null==t?0:t[e]||0}},{key:"parseDialect",value:function(e){var t=Object.keys(this.dialects),n=t.map((function(){return!1}));if(e){var r,o=bo(e.split(" "));try{for(o.s();!(r=o.n()).done;){var i=r.value,a=t.indexOf(i);a>=0&&(n[a]=!0)}}catch(e){o.e(e)}finally{o.f()}}for(var s=null,c=0;c<t.length;c++)if(!n[c])for(var u,l=this.dialects[t[c]];65535!=(u=this.data[l++]);)(s||(s=new Uint8Array(this.maxTerm+1)))[u]=1;return new c1(e,n,s)}}],[{key:"deserialize",value:function(e){return new t(e)}}])}();function l1(e,t){return e[t]|e[t+1]<<16}function f1(e){if(e.external){var t=e.extend?1:0;return function(n,r){return e.external(n,r)<<1|t}}return e.get}var d1=CQ({String:JQ.string,Number:JQ.number,"True False":JQ.bool,PropertyName:JQ.propertyName,Null:JQ.null,",":JQ.separator,"[ ]":JQ.squareBracket,"{ }":JQ.brace}),h1=u1.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:[d1],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oc~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Oe~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zOh~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yOg~~'OO]~~'TO[~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0}),v1=XQ.define({name:"json",parser:h1.configure({props:[mY.add({Object:kY({except:/^\s*\}/}),Array:kY({except:/^\s*\]/})}),CY.add({"Object Array":function(e){var t=e.firstChild,n=e.lastChild;return t&&t.to<n.from?{from:t.to,to:n.type.isError?e.to:n.from}:null}})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});var p1="function"==typeof String.prototype.normalize?function(e){return e.normalize("NFKD")}:function(e){return e},m1=function(){return Io((function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length,i=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0;Ro(this,e),this.test=a,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=t.iterRange(r,o),this.bufferStart=r,this.normalize=i?function(e){return i(p1(e))}:p1,this.query=this.normalize(n)}),[{key:"peek",value:function(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return SF(this.buffer,this.bufferPos)}},{key:"next",value:function(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}},{key:"nextOverlapping",value:function(){for(;;){var e=this.peek();if(e<0)return this.done=!0,this;var t=CF(e),n=this.bufferStart+this.bufferPos;this.bufferPos+=$F(e);for(var r=this.normalize(t),o=0,i=n;;o++){var a=r.charCodeAt(o),s=this.match(a,i,this.bufferPos+this.bufferStart);if(o==r.length-1){if(s)return this.value=s,this;break}i==n&&o<t.length&&t.charCodeAt(o)==a&&i++}}}},{key:"match",value:function(e,t,n){for(var r=null,o=0;o<this.matches.length;o+=2){var i=this.matches[o],a=!1;this.query.charCodeAt(i)==e&&(i==this.query.length-1?r={from:this.matches[o+1],to:n}:(this.matches[o]++,a=!0)),a||(this.matches.splice(o,2),o-=2)}return this.query.charCodeAt(0)==e&&(1==this.query.length?r={from:t,to:n}:this.matches.push(1,t)),r&&this.test&&!this.test(r.from,r.to,this.buffer,this.bufferStart)&&(r=null),r}}])}();"undefined"!=typeof Symbol&&(m1.prototype[Symbol.iterator]=function(){return this});var g1={from:-1,to:-1,match:/.*/.exec("")},y1="gm"+(null==/x/.unicode?"":"u"),b1=function(){return Io((function e(t,n,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:t.length;if(Ro(this,e),this.text=t,this.to=i,this.curLine="",this.done=!1,this.value=g1,/\\[sWDnr]|\n|\r|\[\^/.test(n))return new k1(t,n,r,o,i);this.re=new RegExp(n,y1+((null==r?void 0:r.ignoreCase)?"i":"")),this.test=null==r?void 0:r.test,this.iter=t.iter();var a=t.lineAt(o);this.curLineStart=a.from,this.matchPos=j1(t,o),this.getLine(this.curLineStart)}),[{key:"getLine",value:function(e){this.iter.next(e),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}},{key:"nextLine",value:function(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}},{key:"next",value:function(){for(var e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;var t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){var n=this.curLineStart+t.index,r=n+t[0].length;if(this.matchPos=j1(this.text,r+(n==r?1:0)),n==this.curLineStart+this.curLine.length&&this.nextLine(),(n<r||n>this.value.to)&&(!this.test||this.test(n,r,t)))return this.value={from:n,to:r,match:t},this;e=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length<this.to))return this.done=!0,this;this.nextLine(),e=0}}}}])}(),w1=new WeakMap,x1=function(){function e(t,n){Ro(this,e),this.from=t,this.text=n}return Io(e,[{key:"to",get:function(){return this.from+this.text.length}}],[{key:"get",value:function(t,n,r){var o=w1.get(t);if(!o||o.from>=r||o.to<=n){var i=new e(n,t.sliceString(n,r));return w1.set(t,i),i}if(o.from==n&&o.to==r)return o;var a=o.text,s=o.from;return s>n&&(a=t.sliceString(n,s)+a,s=n),o.to<r&&(a+=t.sliceString(o.to,r)),w1.set(t,new e(s,a)),new e(n,a.slice(n-s,r-s))}}])}(),k1=function(){return Io((function e(t,n,r,o,i){Ro(this,e),this.text=t,this.to=i,this.done=!1,this.value=g1,this.matchPos=j1(t,o),this.re=new RegExp(n,y1+((null==r?void 0:r.ignoreCase)?"i":"")),this.test=null==r?void 0:r.test,this.flat=x1.get(t,o,this.chunkEnd(o+5e3))}),[{key:"chunkEnd",value:function(e){return e>=this.to?this.to:this.text.lineAt(e).to}},{key:"next",value:function(){for(;;){var e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){var n=this.flat.from+t.index,r=n+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(n,r,t)))return this.value={from:n,to:r,match:t},this.matchPos=j1(this.text,r+(n==r?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=x1.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}])}();function j1(e,t){if(t>=e.length)return t;for(var n,r=e.lineAt(t);t<r.to&&(n=r.text.charCodeAt(t-r.from))>=56320&&n<57344;)t++;return t}function S1(e){var t=s0("input",{class:"cm-textfield",name:"line",value:String(e.state.doc.lineAt(e.state.selection.main.head).number)});function n(){var n=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(t.value);if(n){var r=e.state,o=r.doc.lineAt(r.selection.main.head),i=jo(n,5),a=i[1],s=i[2],c=i[3],u=i[4],l=c?+c.slice(1):0,f=s?+s:o.number;if(s&&u){var d=f/100;a&&(d=d*("-"==a?-1:1)+o.number/r.doc.lines),f=Math.round(r.doc.lines*d)}else s&&a&&(f=f*("-"==a?-1:1)+o.number);var h=r.doc.line(Math.max(1,Math.min(r.doc.lines,f))),v=zF.cursor(h.from+Math.max(0,Math.min(l,h.length)));e.dispatch({effects:[C1.of(!1),ZJ.scrollIntoView(v.from,{y:"center"})],selection:v}),e.focus()}}return{dom:s0("form",{class:"cm-gotoLine",onkeydown:function(t){27==t.keyCode?(t.preventDefault(),e.dispatch({effects:C1.of(!1)}),e.focus()):13==t.keyCode&&(t.preventDefault(),n())},onsubmit:function(e){e.preventDefault(),n()}},s0("label",e.state.phrase("Go to line"),": ",t)," ",s0("button",{class:"cm-button",type:"submit"},e.state.phrase("go")))}}"undefined"!=typeof Symbol&&(b1.prototype[Symbol.iterator]=k1.prototype[Symbol.iterator]=function(){return this});var C1=mV.define(),$1=JF.define({create:function(){return!0},update:function(e,t){var n,r=bo(t.effects);try{for(r.s();!(n=r.n()).done;){var o=n.value;o.is(C1)&&(e=o.value)}}catch(e){r.e(e)}finally{r.f()}return e},provide:function(e){return wG.from(e,(function(e){return e?S1:null}))}}),_1=ZJ.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),O1={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},M1=qF.define({combine:function(e){return MV(e,O1,{highlightWordAroundCursor:function(e,t){return e||t},minSelectionLength:Math.min,maxMatches:Math.min})}});var A1=aW.mark({class:"cm-selectionMatch"}),E1=aW.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function P1(e,t,n,r){return!(0!=n&&e(t.sliceDoc(n-1,n))==CV.Word||r!=t.doc.length&&e(t.sliceDoc(r,r+1))==CV.Word)}var T1=tU.fromClass(function(){return Io((function e(t){Ro(this,e),this.decorations=this.getDeco(t)}),[{key:"update",value:function(e){(e.selectionSet||e.docChanged||e.viewportChanged)&&(this.decorations=this.getDeco(e.view))}},{key:"getDeco",value:function(e){var t=e.state.facet(M1),n=e.state,r=n.selection;if(r.ranges.length>1)return aW.none;var o,i=r.main,a=null;if(i.empty){if(!t.highlightWordAroundCursor)return aW.none;var s=n.wordAt(i.head);if(!s)return aW.none;a=n.charCategorizer(i.head),o=n.sliceDoc(s.from,s.to)}else{var c=i.to-i.from;if(c<t.minSelectionLength||c>200)return aW.none;if(t.wholeWords){if(o=n.sliceDoc(i.from,i.to),!P1(a=n.charCategorizer(i.head),n,i.from,i.to)||!function(e,t,n,r){return e(t.sliceDoc(n,n+1))==CV.Word&&e(t.sliceDoc(r-1,r))==CV.Word}(a,n,i.from,i.to))return aW.none}else if(!(o=n.sliceDoc(i.from,i.to)))return aW.none}var u,l=[],f=bo(e.visibleRanges);try{for(f.s();!(u=f.n()).done;)for(var d=u.value,h=new m1(n.doc,o,d.from,d.to);!h.next().done;){var v=h.value,p=v.from,m=v.to;if((!a||P1(a,n,p,m))&&(i.empty&&p<=i.from&&m>=i.to?l.push(E1.range(p,m)):(p>=i.to||m<=i.from)&&l.push(A1.range(p,m)),l.length>t.maxMatches))return aW.none}}catch(e){f.e(e)}finally{f.f()}return aW.set(l)}}])}(),{decorations:function(e){return e.decorations}}),R1=ZJ.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}});var N1=qF.define({combine:function(e){return MV(e,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:function(e){return new f2(e)},scrollToMatch:function(e){return ZJ.scrollIntoView(e)}})}});function I1(e){return e?[N1.of(e),g2]:g2}var D1=function(){return Io((function e(t){Ro(this,e),this.search=t.search,this.caseSensitive=!!t.caseSensitive,this.literal=!!t.literal,this.regexp=!!t.regexp,this.replace=t.replace||"",this.valid=!!this.search&&(!this.regexp||function(e){try{return new RegExp(e,y1),!0}catch(e){return!1}}(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!t.wholeWord}),[{key:"unquote",value:function(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(function(e,t){return"n"==t?"\n":"r"==t?"\r":"t"==t?"\t":"\\"}))}},{key:"eq",value:function(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}},{key:"create",value:function(){return this.regexp?new H1(this):new L1(this)}},{key:"getCursor",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=e.doc?e:OV.create({doc:e});return null==n&&(n=r.doc.length),this.regexp?q1(this,r,t,n):B1(this,r,t,n)}}])}(),z1=Io((function e(t){Ro(this,e),this.spec=t}));function B1(e,t,n,r){return new m1(t.doc,e.unquoted,n,r,e.caseSensitive?void 0:function(e){return e.toLowerCase()},e.wholeWord?function(e,t){return function(n,r,o,i){return(i>n||i+o.length<r)&&(i=Math.max(0,n-2),o=e.sliceString(i,Math.min(e.length,r+2))),!(t(F1(o,n-i))==CV.Word&&t(V1(o,n-i))==CV.Word||t(V1(o,r-i))==CV.Word&&t(F1(o,r-i))==CV.Word)}}(t.doc,t.charCategorizer(t.selection.main.head)):void 0)}var L1=function(e){function t(e){return Ro(this,t),_o(this,t,[e])}return Ao(t,z1),Io(t,[{key:"nextMatch",value:function(e,t,n){var r=B1(this.spec,e,n,e.doc.length).nextOverlapping();return r.done&&(r=B1(this.spec,e,0,t).nextOverlapping()),r.done?null:r.value}},{key:"prevMatchInRange",value:function(e,t,n){for(var r=n;;){for(var o=Math.max(t,r-1e4-this.spec.unquoted.length),i=B1(this.spec,e,o,r),a=null;!i.nextOverlapping().done;)a=i.value;if(a)return a;if(o==t)return null;r-=1e4}}},{key:"prevMatch",value:function(e,t,n){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,n,e.doc.length)}},{key:"getReplacement",value:function(e){return this.spec.unquote(this.spec.replace)}},{key:"matchAll",value:function(e,t){for(var n=B1(this.spec,e,0,e.doc.length),r=[];!n.next().done;){if(r.length>=t)return null;r.push(n.value)}return r}},{key:"highlight",value:function(e,t,n,r){for(var o=B1(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,e.doc.length));!o.next().done;)r(o.value.from,o.value.to)}}])}();function q1(e,t,n,r){return new b1(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:e.wholeWord?(o=t.charCategorizer(t.selection.main.head),function(e,t,n){return!n[0].length||(o(F1(n.input,n.index))!=CV.Word||o(V1(n.input,n.index))!=CV.Word)&&(o(V1(n.input,n.index+n[0].length))!=CV.Word||o(F1(n.input,n.index+n[0].length))!=CV.Word)}):void 0},n,r);var o}function F1(e,t){return e.slice(bF(e,t,!1),t)}function V1(e,t){return e.slice(t,bF(e,t))}var H1=function(e){function t(){return Ro(this,t),_o(this,t,arguments)}return Ao(t,z1),Io(t,[{key:"nextMatch",value:function(e,t,n){var r=q1(this.spec,e,n,e.doc.length).next();return r.done&&(r=q1(this.spec,e,0,t).next()),r.done?null:r.value}},{key:"prevMatchInRange",value:function(e,t,n){for(var r=1;;r++){for(var o=Math.max(t,n-1e4*r),i=q1(this.spec,e,o,n),a=null;!i.next().done;)a=i.value;if(a&&(o==t||a.from>o+10))return a;if(o==t)return null}}},{key:"prevMatch",value:function(e,t,n){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,n,e.doc.length)}},{key:"getReplacement",value:function(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g,(function(t,n){return"$"==n?"$":"&"==n?e.match[0]:"0"!=n&&+n<e.match.length?e.match[n]:t}))}},{key:"matchAll",value:function(e,t){for(var n=q1(this.spec,e,0,e.doc.length),r=[];!n.next().done;){if(r.length>=t)return null;r.push(n.value)}return r}},{key:"highlight",value:function(e,t,n,r){for(var o=q1(this.spec,e,Math.max(0,t-250),Math.min(n+250,e.doc.length));!o.next().done;)r(o.value.from,o.value.to)}}])}(),W1=mV.define(),U1=mV.define(),J1=JF.define({create:function(e){return new K1(i2(e).create(),null)},update:function(e,t){var n,r=bo(t.effects);try{for(r.s();!(n=r.n()).done;){var o=n.value;o.is(W1)?e=new K1(o.value.create(),e.panel):o.is(U1)&&(e=new K1(e.query,o.value?o2:null))}}catch(e){r.e(e)}finally{r.f()}return e},provide:function(e){return wG.from(e,(function(e){return e.panel}))}}),K1=Io((function e(t,n){Ro(this,e),this.query=t,this.panel=n})),G1=aW.mark({class:"cm-searchMatch"}),Q1=aW.mark({class:"cm-searchMatch cm-searchMatch-selected"}),Y1=tU.fromClass(function(){return Io((function e(t){Ro(this,e),this.view=t,this.decorations=this.highlight(t.state.field(J1))}),[{key:"update",value:function(e){var t=e.state.field(J1);(t!=e.startState.field(J1)||e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.highlight(t))}},{key:"highlight",value:function(e){var t=e.query;if(!e.panel||!t.spec.valid)return aW.none;for(var n=this.view,r=new NV,o=0,i=n.visibleRanges,a=i.length;o<a;o++){for(var s=i[o],c=s.from,u=s.to;o<a-1&&u>i[o+1].from-500;)u=i[++o].to;t.highlight(n.state,c,u,(function(e,t){var o=n.state.selection.ranges.some((function(n){return n.from==e&&n.to==t}));r.add(e,t,o?Q1:G1)}))}return r.finish()}}])}(),{decorations:function(e){return e.decorations}});function X1(e){return function(t){var n=t.state.field(J1,!1);return n&&n.query.spec.valid?e(t,n):c2(t)}}var Z1=X1((function(e,t){var n=t.query,r=e.state.selection.main.to,o=n.nextMatch(e.state,r,r);if(!o)return!1;var i=zF.single(o.from,o.to),a=e.state.facet(N1);return e.dispatch({selection:i,effects:[p2(e,o),a.scrollToMatch(i.main,e)],userEvent:"select.search"}),s2(e),!0})),e2=X1((function(e,t){var n=t.query,r=e.state,o=r.selection.main.from,i=n.prevMatch(r,o,o);if(!i)return!1;var a=zF.single(i.from,i.to),s=e.state.facet(N1);return e.dispatch({selection:a,effects:[p2(e,i),s.scrollToMatch(a.main,e)],userEvent:"select.search"}),s2(e),!0})),t2=X1((function(e,t){var n=t.query.matchAll(e.state,1e3);return!(!n||!n.length)&&(e.dispatch({selection:zF.create(n.map((function(e){return zF.range(e.from,e.to)}))),userEvent:"select.search.matches"}),!0)})),n2=X1((function(e,t){var n=t.query,r=e.state,o=r.selection.main,i=o.from,a=o.to;if(r.readOnly)return!1;var s=n.nextMatch(r,i,i);if(!s)return!1;var c,u,l=[],f=[];if(s.from==i&&s.to==a&&(u=r.toText(n.getReplacement(s)),l.push({from:s.from,to:s.to,insert:u}),s=n.nextMatch(r,s.from,s.to),f.push(ZJ.announce.of(r.phrase("replaced match on line $",r.doc.lineAt(i).number)+"."))),s){var d=0==l.length||l[0].from>=s.to?0:s.to-s.from-u.length;c=zF.single(s.from-d,s.to-d),f.push(p2(e,s)),f.push(r.facet(N1).scrollToMatch(c.main,e))}return e.dispatch({changes:l,selection:c,effects:f,userEvent:"input.replace"}),!0})),r2=X1((function(e,t){var n=t.query;if(e.state.readOnly)return!1;var r=n.matchAll(e.state,1e9).map((function(e){return{from:e.from,to:e.to,insert:n.getReplacement(e)}}));if(!r.length)return!1;var o=e.state.phrase("replaced $ matches",r.length)+".";return e.dispatch({changes:r,effects:ZJ.announce.of(o),userEvent:"input.replace.all"}),!0}));function o2(e){return e.state.facet(N1).createPanel(e)}function i2(e,t){var n,r,o,i,a,s=e.selection.main,c=s.empty||s.to>s.from+100?"":e.sliceDoc(s.from,s.to);if(t&&!c)return t;var u=e.facet(N1);return new D1({search:(null!==(n=null==t?void 0:t.literal)&&void 0!==n?n:u.literal)?c:c.replace(/\n/g,"\\n"),caseSensitive:null!==(r=null==t?void 0:t.caseSensitive)&&void 0!==r?r:u.caseSensitive,literal:null!==(o=null==t?void 0:t.literal)&&void 0!==o?o:u.literal,regexp:null!==(i=null==t?void 0:t.regexp)&&void 0!==i?i:u.regexp,wholeWord:null!==(a=null==t?void 0:t.wholeWord)&&void 0!==a?a:u.wholeWord})}function a2(e){var t=mG(e,o2);return t&&t.dom.querySelector("[main-field]")}function s2(e){var t=a2(e);t&&t==e.root.activeElement&&t.select()}var c2=function(e){var t=e.state.field(J1,!1);if(t&&t.panel){var n=a2(e);if(n&&n!=e.root.activeElement){var r=i2(e.state,t.query.spec);r.valid&&e.dispatch({effects:W1.of(r)}),n.focus(),n.select()}}else e.dispatch({effects:[U1.of(!0),t?W1.of(i2(e.state,t.query.spec)):mV.appendConfig.of(g2)]});return!0},u2=function(e){var t=e.state.field(J1,!1);if(!t||!t.panel)return!1;var n=mG(e,o2);return n&&n.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:U1.of(!1)}),!0},l2=[{key:"Mod-f",run:c2,scope:"editor search-panel"},{key:"F3",run:Z1,shift:e2,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:Z1,shift:e2,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:u2,scope:"editor search-panel"},{key:"Mod-Shift-l",run:function(e){var t=e.state,n=e.dispatch,r=t.selection;if(r.ranges.length>1||r.main.empty)return!1;for(var o=r.main,i=o.from,a=o.to,s=[],c=0,u=new m1(t.doc,t.sliceDoc(i,a));!u.next().done;){if(s.length>1e3)return!1;u.value.from==i&&(c=s.length),s.push(zF.range(u.value.from,u.value.to))}return n(t.update({selection:zF.create(s,c),userEvent:"select.search.matches"})),!0}},{key:"Mod-Alt-g",run:function(e){var t=mG(e,S1);if(!t){var n=[C1.of(!0)];null==e.state.field($1,!1)&&n.push(mV.appendConfig.of([$1,_1])),e.dispatch({effects:n}),t=mG(e,S1)}return t&&t.dom.querySelector("input").select(),!0}},{key:"Mod-d",run:function(e){var t=e.state,n=e.dispatch,r=t.selection.ranges;if(r.some((function(e){return e.from===e.to})))return function(e){var t=e.state,n=e.dispatch,r=t.selection,o=zF.create(r.ranges.map((function(e){return t.wordAt(e.head)||zF.cursor(e.head)})),r.mainIndex);return!o.eq(r)&&(n(t.update({selection:o})),!0)}({state:t,dispatch:n});var o=t.sliceDoc(r[0].from,r[0].to);if(t.selection.ranges.some((function(e){return t.sliceDoc(e.from,e.to)!=o})))return!1;var i=function(e,t){for(var n,r=e.selection,o=r.main,i=r.ranges,a=e.wordAt(o.head),s=a&&a.from==o.from&&a.to==o.to,c=function(n,r){if(r.next(),!r.done){if(n&&i.some((function(e){return e.from==r.value.from})))return u=n,l=r,0;if(s){var o=e.wordAt(r.value.from);if(!o||o.from!=r.value.from||o.to!=r.value.to)return u=n,l=r,0}return{v:r.value}}if(n)return{v:null};r=new m1(e.doc,t,0,Math.max(0,i[i.length-1].from-1)),u=n=!0,l=r},u=!1,l=new m1(e.doc,t,i[i.length-1].to);;)if(0!==(n=c(u,l))&&n)return n.v}(t,o);return!!i&&(n(t.update({selection:t.selection.addRange(zF.range(i.from,i.to),!1),effects:ZJ.scrollIntoView(i.to)})),!0)},preventDefault:!0}],f2=function(){return Io((function e(t){var n=this;Ro(this,e),this.view=t;var r=this.query=t.state.field(J1).query.spec;function o(e,t,n){return s0("button",{class:"cm-button",name:e,onclick:t,type:"button"},n)}this.commit=this.commit.bind(this),this.searchField=s0("input",{value:r.search,placeholder:d2(t,"Find"),"aria-label":d2(t,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=s0("input",{value:r.replace,placeholder:d2(t,"Replace"),"aria-label":d2(t,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=s0("input",{type:"checkbox",name:"case",form:"",checked:r.caseSensitive,onchange:this.commit}),this.reField=s0("input",{type:"checkbox",name:"re",form:"",checked:r.regexp,onchange:this.commit}),this.wordField=s0("input",{type:"checkbox",name:"word",form:"",checked:r.wholeWord,onchange:this.commit}),this.dom=s0("div",{onkeydown:function(e){return n.keydown(e)},class:"cm-search"},[this.searchField,o("next",(function(){return Z1(t)}),[d2(t,"next")]),o("prev",(function(){return e2(t)}),[d2(t,"previous")]),o("select",(function(){return t2(t)}),[d2(t,"all")]),s0("label",null,[this.caseField,d2(t,"match case")]),s0("label",null,[this.reField,d2(t,"regexp")]),s0("label",null,[this.wordField,d2(t,"by word")])].concat(Bo(t.state.readOnly?[]:[s0("br"),this.replaceField,o("replace",(function(){return n2(t)}),[d2(t,"replace")]),o("replaceAll",(function(){return r2(t)}),[d2(t,"replace all")])]),[s0("button",{name:"close",onclick:function(){return u2(t)},"aria-label":d2(t,"close"),type:"button"},["×"])]))}),[{key:"commit",value:function(){var e=new D1({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:W1.of(e)}))}},{key:"keydown",value:function(e){!function(e,t,n){return dK(uK(e.state),t,e,n)}(this.view,e,"search-panel")?13==e.keyCode&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?e2:Z1)(this.view)):13==e.keyCode&&e.target==this.replaceField&&(e.preventDefault(),n2(this.view)):e.preventDefault()}},{key:"update",value:function(e){var t,n=bo(e.transactions);try{for(n.s();!(t=n.n()).done;){var r,o=bo(t.value.effects);try{for(o.s();!(r=o.n()).done;){var i=r.value;i.is(W1)&&!i.value.eq(this.query)&&this.setQuery(i.value)}}catch(e){o.e(e)}finally{o.f()}}}catch(e){n.e(e)}finally{n.f()}}},{key:"setQuery",value:function(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}},{key:"mount",value:function(){this.searchField.select()}},{key:"pos",get:function(){return 80}},{key:"top",get:function(){return this.view.state.facet(N1).top}}])}();function d2(e,t){return e.state.phrase(t)}var h2=30,v2=/[\s\.,:;?!]/;function p2(e,t){var n=t.from,r=t.to,o=e.state.doc.lineAt(n),i=e.state.doc.lineAt(r).to,a=Math.max(o.from,n-h2),s=Math.min(i,r+h2),c=e.state.sliceDoc(a,s);if(a!=o.from)for(var u=0;u<h2;u++)if(!v2.test(c[u+1])&&v2.test(c[u])){c=c.slice(u);break}if(s!=i)for(var l=c.length-1;l>c.length-h2;l--)if(!v2.test(c[l-1])&&v2.test(c[l])){c=c.slice(0,l);break}return ZJ.announce.of("".concat(e.state.phrase("current match"),". ").concat(c," ").concat(e.state.phrase("on line")," ").concat(o.number,"."))}var m2=ZJ.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),g2=[J1,ZF.low(Y1),m2],y2=function(){return Io((function e(t,n,r){Ro(this,e),this.state=t,this.pos=n,this.explicit=r,this.abortListeners=[]}),[{key:"tokenBefore",value:function(e){for(var t=ZQ(this.state).resolveInner(this.pos,-1);t&&e.indexOf(t.name)<0;)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}},{key:"matchBefore",value:function(e){var t=this.state.doc.lineAt(this.pos),n=Math.max(t.from,this.pos-250),r=t.text.slice(n-t.from,this.pos-t.from),o=r.search(j2(e,!1));return o<0?null:{from:n+o,to:this.pos,text:r.slice(o)}}},{key:"aborted",get:function(){return null==this.abortListeners}},{key:"addEventListener",value:function(e,t){"abort"==e&&this.abortListeners&&this.abortListeners.push(t)}}])}();function b2(e){var t=Object.keys(e).join(""),n=/\w/.test(t);return n&&(t=t.replace(/\w/g,"")),"[".concat(n?"\\w":"").concat(t.replace(/[^\w\s]/g,"\\$&"),"]")}function w2(e){var t=e.map((function(e){return"string"==typeof e?{label:e}:e})),n=t.every((function(e){return/^\w+$/.test(e.label)}))?[/\w*$/,/\w+$/]:function(e){var t,n=Object.create(null),r=Object.create(null),o=bo(e);try{for(o.s();!(t=o.n()).done;){var i=t.value.label;n[i[0]]=!0;for(var a=1;a<i.length;a++)r[i[a]]=!0}}catch(e){o.e(e)}finally{o.f()}var s=b2(n)+b2(r)+"*$";return[new RegExp("^"+s),new RegExp(s)]}(t),r=jo(n,2),o=r[0],i=r[1];return function(e){var n=e.matchBefore(i);return n||e.explicit?{from:n?n.from:e.pos,options:t,validFor:o}:null}}var x2=Io((function e(t,n,r,o){Ro(this,e),this.completion=t,this.source=n,this.match=r,this.score=o}));function k2(e){return e.selection.main.from}function j2(e,t){var n,r=e.source,o=t&&"^"!=r[0],i="$"!=r[r.length-1];return o||i?new RegExp("".concat(o?"^":"","(?:").concat(r,")").concat(i?"$":""),null!==(n=e.flags)&&void 0!==n?n:e.ignoreCase?"i":""):e}var S2=hV.define();var C2=new WeakMap;function $2(e){if(!Array.isArray(e))return e;var t=C2.get(e);return t||C2.set(e,t=w2(e)),t}var _2=mV.define(),O2=mV.define(),M2=function(){return Io((function e(t){Ro(this,e),this.pattern=t,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(var n=0;n<t.length;){var r=SF(t,n),o=$F(r);this.chars.push(r);var i=t.slice(n,n+o),a=i.toUpperCase();this.folded.push(SF(a==i?i.toLowerCase():a,0)),n+=o}this.astral=t.length!=this.chars.length}),[{key:"ret",value:function(e,t){return this.score=e,this.matched=t,this}},{key:"match",value:function(e){if(0==this.pattern.length)return this.ret(-100,[]);if(e.length<this.pattern.length)return null;var t=this.chars,n=this.folded,r=this.any,o=this.precise,i=this.byWord;if(1==t.length){var a=SF(e,0),s=$F(a),c=s==e.length?0:-100;if(a==t[0]);else{if(a!=n[0])return null;c+=-200}return this.ret(c,[0,s])}var u=e.indexOf(this.pattern);if(0==u)return this.ret(e.length==this.pattern.length?0:-100,[0,this.pattern.length]);var l=t.length,f=0;if(u<0){for(var d=0,h=Math.min(e.length,200);d<h&&f<l;){var v=SF(e,d);v!=t[f]&&v!=n[f]||(r[f++]=d),d+=$F(v)}if(f<l)return null}for(var p=0,m=0,g=!1,y=0,b=-1,w=-1,x=/[a-z]/.test(e),k=!0,j=0,S=Math.min(e.length,200),C=0;j<S&&m<l;){var $=SF(e,j);u<0&&(p<l&&$==t[p]&&(o[p++]=j),y<l&&($==t[y]||$==n[y]?(0==y&&(b=j),w=j+1,y++):y=0));var _=void 0,O=$<255?$>=48&&$<=57||$>=97&&$<=122?2:$>=65&&$<=90?1:0:(_=CF($))!=_.toLowerCase()?1:_!=_.toUpperCase()?2:0;(!j||1==O&&x||0==C&&0!=O)&&(t[m]==$||n[m]==$&&(g=!0)?i[m++]=j:i.length&&(k=!1)),C=O,j+=$F($)}return m==l&&0==i[0]&&k?this.result((g?-200:0)-100,i,e):y==l&&0==b?this.ret(-200-e.length+(w==e.length?0:-100),[0,w]):u>-1?this.ret(-700-e.length,[u,u+this.pattern.length]):y==l?this.ret(-900-e.length,[b,w]):m==l?this.result((g?-200:0)-100-700+(k?0:-1100),i,e):2==t.length?null:this.result((r[0]?-700:0)-200-1100,r,e)}},{key:"result",value:function(e,t,n){var r,o=[],i=0,a=bo(t);try{for(a.s();!(r=a.n()).done;){var s=r.value,c=s+(this.astral?$F(SF(n,s)):1);i&&o[i-1]==s?o[i-1]=c:(o[i++]=s,o[i++]=c)}}catch(e){a.e(e)}finally{a.f()}return this.ret(e-n.length,o)}}])}(),A2=function(){return Io((function e(t){Ro(this,e),this.pattern=t,this.matched=[],this.score=0,this.folded=t.toLowerCase()}),[{key:"match",value:function(e){if(e.length<this.pattern.length)return null;var t=e.slice(0,this.pattern.length),n=t==this.pattern?0:t.toLowerCase()==this.folded?-200:null;return null==n?null:(this.matched=[0,t.length],this.score=n+(e.length==this.pattern.length?0:-100),this)}}])}(),E2=qF.define({combine:function(e){return MV(e,{activateOnTyping:!0,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:function(){return""},optionClass:function(){return""},aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:T2,filterStrict:!1,compareCompletions:function(e,t){return e.label.localeCompare(t.label)},interactionDelay:75,updateSyncTime:100},{defaultKeymap:function(e,t){return e&&t},closeOnBlur:function(e,t){return e&&t},icons:function(e,t){return e&&t},tooltipClass:function(e,t){return function(n){return P2(e(n),t(n))}},optionClass:function(e,t){return function(n){return P2(e(n),t(n))}},addToOptions:function(e,t){return e.concat(t)},filterStrict:function(e,t){return e||t}})}});function P2(e,t){return e?t?e+" "+t:e:t}function T2(e,t,n,r,o,i){var a,s,c=e.textDirection==pW.RTL,u=c,l=!1,f="top",d=t.left-o.left,h=o.right-t.right,v=r.right-r.left,p=r.bottom-r.top;if(u&&d<Math.min(v,h)?u=!1:!u&&h<Math.min(v,d)&&(u=!0),v<=(u?d:h))a=Math.max(o.top,Math.min(n.top,o.bottom-p))-t.top,s=Math.min(400,u?d:h);else{l=!0,s=Math.min(400,(c?t.right:o.right-t.left)-30);var m=o.bottom-t.bottom;m>=p||m>t.top?a=n.bottom-t.top:(f="bottom",a=t.bottom-n.top)}var g=(t.bottom-t.top)/i.offsetHeight,y=(t.right-t.left)/i.offsetWidth;return{style:"".concat(f,": ").concat(a/g,"px; max-width: ").concat(s/y,"px"),class:"cm-completionInfo-"+(l?c?"left-narrow":"right-narrow":u?"left":"right")}}function R2(e,t,n){if(e<=n)return{from:0,to:e};if(t<0&&(t=0),t<=e>>1){var r=Math.floor(t/n);return{from:r*n,to:(r+1)*n}}var o=Math.floor((e-t)/n);return{from:e-(o+1)*n,to:e-o*n}}var N2=function(){return Io((function e(t,n,r){var o=this;Ro(this,e),this.view=t,this.stateField=n,this.applyCompletion=r,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:function(){return o.measureInfo()},write:function(e){return o.placeInfo(e)},key:this},this.space=null,this.currentClass="";var i=t.state.field(n),a=i.open,s=a.options,c=a.selected,u=t.state.facet(E2);this.optionContent=function(e){var t=e.addToOptions.slice();return e.icons&&t.push({render:function(e){var t,n=document.createElement("div");return n.classList.add("cm-completionIcon"),e.type&&(t=n.classList).add.apply(t,Bo(e.type.split(/\s+/g).map((function(e){return"cm-completionIcon-"+e})))),n.setAttribute("aria-hidden","true"),n},position:20}),t.push({render:function(e,t,n,r){var o=document.createElement("span");o.className="cm-completionLabel";for(var i=e.displayLabel||e.label,a=0,s=0;s<r.length;){var c=r[s++],u=r[s++];c>a&&o.appendChild(document.createTextNode(i.slice(a,c)));var l=o.appendChild(document.createElement("span"));l.appendChild(document.createTextNode(i.slice(c,u))),l.className="cm-completionMatchedText",a=u}return a<i.length&&o.appendChild(document.createTextNode(i.slice(a))),o},position:50},{render:function(e){if(!e.detail)return null;var t=document.createElement("span");return t.className="cm-completionDetail",t.textContent=e.detail,t},position:80}),t.sort((function(e,t){return e.position-t.position})).map((function(e){return e.render}))}(u),this.optionClass=u.optionClass,this.tooltipClass=u.tooltipClass,this.range=R2(s.length,c,u.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(t.state),this.dom.addEventListener("mousedown",(function(e){for(var r,i=t.state.field(n).open.options,a=e.target;a&&a!=o.dom;a=a.parentNode)if("LI"==a.nodeName&&(r=/-(\d+)$/.exec(a.id))&&+r[1]<i.length)return o.applyCompletion(t,i[+r[1]]),void e.preventDefault()})),this.dom.addEventListener("focusout",(function(e){var n=t.state.field(o.stateField,!1);n&&n.tooltip&&t.state.facet(E2).closeOnBlur&&e.relatedTarget!=t.contentDOM&&t.dispatch({effects:O2.of(null)})})),this.showOptions(s,i.id)}),[{key:"mount",value:function(){this.updateSel()}},{key:"showOptions",value:function(e,t){var n=this;this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,t,this.range)),this.list.addEventListener("scroll",(function(){n.info&&n.view.requestMeasure(n.placeInfoReq)}))}},{key:"update",value:function(e){var t,n=e.state.field(this.stateField),r=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),n!=r){var o=n.open,i=o.options,a=o.selected,s=o.disabled;r.open&&r.open.options==i||(this.range=R2(i.length,a,e.state.facet(E2).maxRenderedOptions),this.showOptions(i,n.id)),this.updateSel(),s!=(null===(t=r.open)||void 0===t?void 0:t.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!s)}}},{key:"updateTooltipClass",value:function(e){var t=this.tooltipClass(e);if(t!=this.currentClass){var n,r=bo(this.currentClass.split(" "));try{for(r.s();!(n=r.n()).done;){var o=n.value;o&&this.dom.classList.remove(o)}}catch(e){r.e(e)}finally{r.f()}var i,a=bo(t.split(" "));try{for(a.s();!(i=a.n()).done;){var s=i.value;s&&this.dom.classList.add(s)}}catch(e){a.e(e)}finally{a.f()}this.currentClass=t}}},{key:"positioned",value:function(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}},{key:"updateSel",value:function(){var e=this,t=this.view.state.field(this.stateField),n=t.open;if((n.selected>-1&&n.selected<this.range.from||n.selected>=this.range.to)&&(this.range=R2(n.options.length,n.selected,this.view.state.facet(E2).maxRenderedOptions),this.showOptions(n.options,t.id)),this.updateSelectedOption(n.selected)){this.destroyInfo();var r=n.options[n.selected].completion,o=r.info;if(!o)return;var i="string"==typeof o?document.createTextNode(o):o(r);if(!i)return;"then"in i?i.then((function(n){n&&e.view.state.field(e.stateField,!1)==t&&e.addInfoPane(n,r)})).catch((function(t){return YW(e.view.state,t,"completion info")})):this.addInfoPane(i,r)}}},{key:"addInfoPane",value:function(e,t){this.destroyInfo();var n=this.info=document.createElement("div");if(n.className="cm-tooltip cm-completionInfo",null!=e.nodeType)n.appendChild(e),this.infoDestroy=null;else{var r=e.dom,o=e.destroy;n.appendChild(r),this.infoDestroy=o||null}this.dom.appendChild(n),this.view.requestMeasure(this.placeInfoReq)}},{key:"updateSelectedOption",value:function(e){for(var t=null,n=this.list.firstChild,r=this.range.from;n;n=n.nextSibling,r++)"LI"==n.nodeName&&n.id?r==e?n.hasAttribute("aria-selected")||(n.setAttribute("aria-selected","true"),t=n):n.hasAttribute("aria-selected")&&n.removeAttribute("aria-selected"):r--;return t&&function(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=n.height/e.offsetHeight;r.top<n.top?e.scrollTop-=(n.top-r.top)/o:r.bottom>n.bottom&&(e.scrollTop+=(r.bottom-n.bottom)/o)}(this.list,t),t}},{key:"measureInfo",value:function(){var e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;var t=this.dom.getBoundingClientRect(),n=this.info.getBoundingClientRect(),r=e.getBoundingClientRect(),o=this.space;if(!o){var i=this.dom.ownerDocument.defaultView||window;o={left:0,top:0,right:i.innerWidth,bottom:i.innerHeight}}return r.top>Math.min(o.bottom,t.bottom)-10||r.bottom<Math.max(o.top,t.top)+10?null:this.view.state.facet(E2).positionInfo(this.view,t,r,n,o,this.dom)}},{key:"placeInfo",value:function(e){this.info&&(e?(e.style&&(this.info.style.cssText=e.style),this.info.className="cm-tooltip cm-completionInfo "+(e.class||"")):this.info.style.cssText="top: -1e6px")}},{key:"createListBox",value:function(e,t,n){var r=document.createElement("ul");r.id=t,r.setAttribute("role","listbox"),r.setAttribute("aria-expanded","true"),r.setAttribute("aria-label",this.view.state.phrase("Completions"));for(var o=null,i=n.from;i<n.to;i++){var a=e[i],s=a.completion,c=a.match,u=s.section;if(u){var l="string"==typeof u?u:u.name;if(l!=o&&(i>n.from||0==n.from))if(o=l,"string"!=typeof u&&u.header)r.appendChild(u.header(u));else r.appendChild(document.createElement("completion-section")).textContent=l}var f=r.appendChild(document.createElement("li"));f.id=t+"-"+i,f.setAttribute("role","option");var d=this.optionClass(s);d&&(f.className=d);var h,v=bo(this.optionContent);try{for(v.s();!(h=v.n()).done;){var p=(0,h.value)(s,this.view.state,this.view,c);p&&f.appendChild(p)}}catch(e){v.e(e)}finally{v.f()}}return n.from&&r.classList.add("cm-completionListIncompleteTop"),n.to<e.length&&r.classList.add("cm-completionListIncompleteBottom"),r}},{key:"destroyInfo",value:function(){this.info&&(this.infoDestroy&&this.infoDestroy(),this.info.remove(),this.info=null)}},{key:"destroy",value:function(){this.destroyInfo()}}])}();function I2(e,t){return function(n){return new N2(n,e,t)}}function D2(e){return 100*(e.boost||0)+(e.apply?10:0)+(e.info?5:0)+(e.type?1:0)}var z2=function(){function e(t,n,r,o,i,a){Ro(this,e),this.options=t,this.attrs=n,this.tooltip=r,this.timestamp=o,this.selected=i,this.disabled=a}return Io(e,[{key:"setSelected",value:function(t,n){return t==this.selected||t>=this.options.length?this:new e(this.options,q2(n,t),this.tooltip,this.timestamp,t,this.disabled)}},{key:"map",value:function(t){return new e(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:t.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}],[{key:"build",value:function(t,n,r,o,i){var a=function(e,t){var n,r=[],o=null,i=function(e){r.push(e);var t=e.completion.section;if(t){o||(o=[]);var n="string"==typeof t?t:t.name;o.some((function(e){return e.name==n}))||o.push("string"==typeof t?{name:n}:t)}},a=t.facet(E2),s=bo(e);try{for(s.s();!(n=s.n()).done;){var c=n.value;if(c.hasResult()){var u=c.result.getMatch;if(!1===c.result.filter){var l,f=bo(c.result.options);try{for(f.s();!(l=f.n()).done;){var d=l.value;i(new x2(d,c.source,u?u(d):[],1e9-r.length))}}catch(e){f.e(e)}finally{f.f()}}else{var h,v=t.sliceDoc(c.from,c.to),p=void 0,m=a.filterStrict?new A2(v):new M2(v),g=bo(c.result.options);try{for(g.s();!(h=g.n()).done;){var y=h.value;if(p=m.match(y.label)){var b=y.displayLabel?u?u(y,p.matched):[]:p.matched;i(new x2(y,c.source,b,p.score+(y.boost||0)))}}}catch(e){g.e(e)}finally{g.f()}}}}}catch(e){s.e(e)}finally{s.f()}if(o){var w,x=Object.create(null),k=0,j=bo(o.sort((function(e,t){var n,r;return(null!==(n=e.rank)&&void 0!==n?n:1e9)-(null!==(r=t.rank)&&void 0!==r?r:1e9)||(e.name<t.name?-1:1)})));try{for(j.s();!(w=j.n()).done;){var S=w.value;k-=1e5,x[S.name]=k}}catch(e){j.e(e)}finally{j.f()}var C,$=bo(r);try{for($.s();!(C=$.n()).done;){var _=C.value,O=_.completion.section;O&&(_.score+=x["string"==typeof O?O:O.name])}}catch(e){$.e(e)}finally{$.f()}}var M,A=[],E=null,P=a.compareCompletions,T=bo(r.sort((function(e,t){return t.score-e.score||P(e.completion,t.completion)})));try{for(T.s();!(M=T.n()).done;){var R=M.value,N=R.completion;!E||E.label!=N.label||E.detail!=N.detail||null!=E.type&&null!=N.type&&E.type!=N.type||E.apply!=N.apply||E.boost!=N.boost?A.push(R):D2(R.completion)>D2(E)&&(A[A.length-1]=R),E=R.completion}}catch(e){T.e(e)}finally{T.f()}return A}(t,n);if(!a.length)return o&&t.some((function(e){return 1==e.state}))?new e(o.options,o.attrs,o.tooltip,o.timestamp,o.selected,!0):null;var s=n.facet(E2).selectOnOpen?0:-1;if(o&&o.selected!=s&&-1!=o.selected)for(var c=o.options[o.selected].completion,u=0;u<a.length;u++)if(a[u].completion==c){s=u;break}return new e(a,q2(r,s),{pos:t.reduce((function(e,t){return t.hasResult()?Math.min(e,t.from):e}),1e8),create:Q2,above:i.aboveCursor},o?o.timestamp:Date.now(),s,!1)}}])}(),B2=function(){function e(t,n,r){Ro(this,e),this.active=t,this.id=n,this.open=r}return Io(e,[{key:"update",value:function(t){var n=this,r=t.state,o=r.facet(E2),i=(o.override||r.languageDataAt("autocomplete",k2(r)).map($2)).map((function(e){return(n.active.find((function(t){return t.source==e}))||new H2(e,n.active.some((function(e){return 0!=e.state}))?1:0)).update(t,o)}));i.length==this.active.length&&i.every((function(e,t){return e==n.active[t]}))&&(i=this.active);var a=this.open;a&&t.docChanged&&(a=a.map(t.changes)),t.selection||i.some((function(e){return e.hasResult()&&t.changes.touchesRange(e.from,e.to)}))||!function(e,t){if(e==t)return!0;for(var n=0,r=0;;){for(;n<e.length&&!e[n].hasResult;)n++;for(;r<t.length&&!t[r].hasResult;)r++;var o=n==e.length,i=r==t.length;if(o||i)return o==i;if(e[n++].result!=t[r++].result)return!1}}(i,this.active)?a=z2.build(i,r,this.id,a,o):a&&a.disabled&&!i.some((function(e){return 1==e.state}))&&(a=null),!a&&i.every((function(e){return 1!=e.state}))&&i.some((function(e){return e.hasResult()}))&&(i=i.map((function(e){return e.hasResult()?new H2(e.source,0):e})));var s,c=bo(t.effects);try{for(c.s();!(s=c.n()).done;){var u=s.value;u.is(J2)&&(a=a&&a.setSelected(u.value,this.id))}}catch(e){c.e(e)}finally{c.f()}return i==this.active&&a==this.open?this:new e(i,this.id,a)}},{key:"tooltip",get:function(){return this.open?this.open.tooltip:null}},{key:"attrs",get:function(){return this.open?this.open.attrs:L2}}],[{key:"start",value:function(){return new e(F2,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}}])}();var L2={"aria-autocomplete":"list"};function q2(e,t){var n={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":e};return t>-1&&(n["aria-activedescendant"]=e+"-"+t),n}var F2=[];function V2(e){return e.isUserEvent("input.type")?"input":e.isUserEvent("delete.backward")?"delete":null}var H2=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;Ro(this,e),this.source=t,this.state=n,this.explicitPos=r}return Io(e,[{key:"hasResult",value:function(){return!1}},{key:"update",value:function(t,n){var r=V2(t),o=this;r?o=o.handleUserEvent(t,r,n):t.docChanged?o=o.handleChange(t):t.selection&&0!=o.state&&(o=new e(o.source,0));var i,a=bo(t.effects);try{for(a.s();!(i=a.n()).done;){var s=i.value;if(s.is(_2))o=new e(o.source,1,s.value?k2(t.state):-1);else if(s.is(O2))o=new e(o.source,0);else if(s.is(U2)){var c,u=bo(s.value);try{for(u.s();!(c=u.n()).done;){var l=c.value;l.source==o.source&&(o=l)}}catch(e){u.e(e)}finally{u.f()}}}}catch(e){a.e(e)}finally{a.f()}return o}},{key:"handleUserEvent",value:function(t,n,r){return"delete"!=n&&r.activateOnTyping?new e(this.source,1):this.map(t.changes)}},{key:"handleChange",value:function(t){return t.changes.touchesRange(k2(t.startState))?new e(this.source,0):this.map(t.changes)}},{key:"map",value:function(t){return t.empty||this.explicitPos<0?this:new e(this.source,this.state,t.mapPos(this.explicitPos))}}])}(),W2=function(e){function t(e,n,r,o,i){var a;return Ro(this,t),(a=_o(this,t,[e,2,n])).result=r,a.from=o,a.to=i,a}return Ao(t,H2),Io(t,[{key:"hasResult",value:function(){return!0}},{key:"handleUserEvent",value:function(e,n,r){var o,i=this.result;i.map&&!e.changes.empty&&(i=i.map(i,e.changes));var a=e.changes.mapPos(this.from),s=e.changes.mapPos(this.to,1),c=k2(e.state);if((this.explicitPos<0?c<=a:c<this.from)||c>s||!i||"delete"==n&&k2(e.startState)==this.from)return new H2(this.source,"input"==n&&r.activateOnTyping?1:0);var u=this.explicitPos<0?-1:e.changes.mapPos(this.explicitPos);return function(e,t,n,r){if(!e)return!1;var o=t.sliceDoc(n,r);return"function"==typeof e?e(o,n,r,t):j2(e,!0).test(o)}(i.validFor,e.state,a,s)?new t(this.source,u,i,a,s):i.update&&(i=i.update(i,a,s,new y2(e.state,c,u>=0)))?new t(this.source,u,i,i.from,null!==(o=i.to)&&void 0!==o?o:k2(e.state)):new H2(this.source,1,u)}},{key:"handleChange",value:function(e){return e.changes.touchesRange(this.from,this.to)?new H2(this.source,0):this.map(e.changes)}},{key:"map",value:function(e){return e.empty?this:(this.result.map?this.result.map(this.result,e):this.result)?new t(this.source,this.explicitPos<0?-1:e.mapPos(this.explicitPos),this.result,e.mapPos(this.from),e.mapPos(this.to,1)):new H2(this.source,0)}}])}();var U2=mV.define({map:function(e,t){return e.map((function(e){return e.map(t)}))}}),J2=mV.define(),K2=JF.define({create:function(){return B2.start()},update:function(e,t){return e.update(t)},provide:function(e){return[aG.from(e,(function(e){return e.tooltip})),ZJ.contentAttributes.from(e,(function(e){return e.attrs}))]}});function G2(e,t){var n=t.completion.apply||t.completion.label,r=e.state.field(K2).active.find((function(e){return e.source==t.source}));return r instanceof W2&&("string"==typeof n?e.dispatch(Object.assign(Object.assign({},function(e,t,n,r){var o=e.selection.main,i=n-o.from,a=r-o.from;return Object.assign(Object.assign({},e.changeByRange((function(s){return s!=o&&n!=r&&e.sliceDoc(s.from+i,s.from+a)!=e.sliceDoc(n,r)?{range:s}:{changes:{from:s.from+i,to:r==o.from?s.to:s.from+a,insert:t},range:zF.cursor(s.from+i+t.length)}}))),{scrollIntoView:!0,userEvent:"input.complete"})}(e.state,n,r.from,r.to)),{annotations:S2.of(t.completion)})):n(e,t.completion,r.from,r.to),!0)}var Q2=I2(K2,G2);function Y2(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"option";return function(n){var r=n.state.field(K2,!1);if(!r||!r.open||r.open.disabled||Date.now()-r.open.timestamp<n.state.facet(E2).interactionDelay)return!1;var o,i=1;"page"==t&&(o=hG(n,r.open.tooltip))&&(i=Math.max(2,Math.floor(o.dom.offsetHeight/o.dom.querySelector("li").offsetHeight)-1));var a=r.open.options.length,s=r.open.selected>-1?r.open.selected+i*(e?1:-1):e?0:a-1;return s<0?s="page"==t?0:a-1:s>=a&&(s="page"==t?a-1:0),n.dispatch({effects:J2.of(s)}),!0}}var X2=Io((function e(t,n){Ro(this,e),this.active=t,this.context=n,this.time=Date.now(),this.updates=[],this.done=void 0})),Z2=tU.fromClass(function(){return Io((function e(t){Ro(this,e),this.view=t,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;var n,r=bo(t.state.field(K2).active);try{for(r.s();!(n=r.n()).done;){var o=n.value;1==o.state&&this.startQuery(o)}}catch(e){r.e(e)}finally{r.f()}}),[{key:"update",value:function(e){var t=this,n=e.state.field(K2);if(e.selectionSet||e.docChanged||e.startState.field(K2)!=n){for(var r=e.transactions.some((function(e){return(e.selection||e.docChanged)&&!V2(e)})),o=0;o<this.running.length;o++){var i=this.running[o];if(r||i.updates.length+e.transactions.length>50&&Date.now()-i.time>1e3){var a,s=bo(i.context.abortListeners);try{for(s.s();!(a=s.n()).done;){var c=a.value;try{c()}catch(e){YW(this.view.state,e)}}}catch(e){s.e(e)}finally{s.f()}i.context.abortListeners=null,this.running.splice(o--,1)}else{var u;(u=i.updates).push.apply(u,Bo(e.transactions))}}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),e.transactions.some((function(e){return e.effects.some((function(e){return e.is(_2)}))}))&&(this.pendingStart=!0);var l=this.pendingStart?50:e.state.facet(E2).activateOnTypingDelay;if(this.debounceUpdate=n.active.some((function(e){return 1==e.state&&!t.running.some((function(t){return t.active.source==e.source}))}))?setTimeout((function(){return t.startUpdate()}),l):-1,0!=this.composing){var f,d=bo(e.transactions);try{for(d.s();!(f=d.n()).done;){var h=f.value;"input"==V2(h)?this.composing=2:2==this.composing&&h.selection&&(this.composing=3)}}catch(e){d.e(e)}finally{d.f()}}}}},{key:"startUpdate",value:function(){var e=this;this.debounceUpdate=-1,this.pendingStart=!1;var t,n=bo(this.view.state.field(K2).active);try{var r=function(){var n=t.value;1!=n.state||e.running.some((function(e){return e.active.source==n.source}))||e.startQuery(n)};for(n.s();!(t=n.n()).done;)r()}catch(e){n.e(e)}finally{n.f()}}},{key:"startQuery",value:function(e){var t=this,n=this.view.state,r=k2(n),o=new y2(n,r,e.explicitPos==r),i=new X2(e,o);this.running.push(i),Promise.resolve(e.source(o)).then((function(e){i.context.aborted||(i.done=e||null,t.scheduleAccept())}),(function(e){t.view.dispatch({effects:O2.of(null)}),YW(t.view.state,e)}))}},{key:"scheduleAccept",value:function(){var e=this;this.running.every((function(e){return void 0!==e.done}))?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout((function(){return e.accept()}),this.view.state.facet(E2).updateSyncTime))}},{key:"accept",value:function(){var e,t=this;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;for(var n=[],r=this.view.state.facet(E2),o=function(o){var a=t.running[o];if(void 0===a.done)return i=o,0;if(t.running.splice(o--,1),a.done){var s,c=new W2(a.active.source,a.active.explicitPos,a.done,a.done.from,null!==(e=a.done.to)&&void 0!==e?e:k2(a.updates.length?a.updates[0].startState:t.view.state)),u=bo(a.updates);try{for(u.s();!(s=u.n()).done;){var l=s.value;c=c.update(l,r)}}catch(e){u.e(e)}finally{u.f()}if(c.hasResult())return n.push(c),i=o,0}var f=t.view.state.field(K2).active.find((function(e){return e.source==a.active.source}));if(f&&1==f.state)if(null==a.done){var d,h=new H2(a.active.source,0),v=bo(a.updates);try{for(v.s();!(d=v.n()).done;){var p=d.value;h=h.update(p,r)}}catch(e){v.e(e)}finally{v.f()}1!=h.state&&n.push(h)}else t.startQuery(f);i=o},i=0;i<this.running.length;i++)o(i);n.length&&this.view.dispatch({effects:U2.of(n)})}}])}(),{eventHandlers:{blur:function(e){var t=this,n=this.view.state.field(K2,!1);if(n&&n.tooltip&&this.view.state.facet(E2).closeOnBlur){var r=n.open&&hG(this.view,n.open.tooltip);r&&r.dom.contains(e.relatedTarget)||setTimeout((function(){return t.view.dispatch({effects:O2.of(null)})}),10)}},compositionstart:function(){this.composing=1},compositionend:function(){var e=this;3==this.composing&&setTimeout((function(){return e.view.dispatch({effects:_2.of(!1)})}),20),this.composing=0}}}),e3="object"==("undefined"==typeof navigator?"undefined":Vo(navigator))&&/Win/.test(navigator.platform),t3=ZF.highest(ZJ.domEventHandlers({keydown:function(e,t){var n=t.state.field(K2,!1);if(!n||!n.open||n.open.disabled||n.open.selected<0||e.key.length>1||e.ctrlKey&&(!e3||!e.altKey)||e.metaKey)return!1;var r=n.open.options[n.open.selected],o=n.active.find((function(e){return e.source==r.source})),i=r.completion.commitCharacters||o.result.commitCharacters;return i&&i.indexOf(e.key)>-1&&G2(t,r),!1}})),n3=ZJ.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"".concat(400,"px"),boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"".concat(30,"px")},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"".concat(30,"px")},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}}),r3={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},o3=mV.define({map:function(e,t){var n=t.mapPos(e,-1,OF.TrackAfter);return null==n?void 0:n}}),i3=new(function(e){function t(){return Ro(this,t),_o(this,t,arguments)}return Ao(t,AV),Io(t)}());i3.startSide=1,i3.endSide=-1;var a3=JF.define({create:function(){return RV.empty},update:function(e,t){if(e=e.map(t.changes),t.selection){var n=t.state.doc.lineAt(t.selection.main.head);e=e.update({filter:function(e){return e>=n.from&&e<=n.to}})}var r,o=bo(t.effects);try{for(o.s();!(r=o.n()).done;){var i=r.value;i.is(o3)&&(e=e.update({add:[i3.range(i.value,i.value+1)]}))}}catch(e){o.e(e)}finally{o.f()}return e}});var s3="()[]{}<>";function c3(e){for(var t=0;t<s3.length;t+=2)if(s3.charCodeAt(t)==e)return s3.charAt(t+1);return CF(e<128?e:e+1)}function u3(e,t){return e.languageDataAt("closeBrackets",t)[0]||r3}var l3="object"==("undefined"==typeof navigator?"undefined":Vo(navigator))&&/Android\b/.test(navigator.userAgent),f3=ZJ.inputHandler.of((function(e,t,n,r){if((l3?e.composing:e.compositionStarted)||e.state.readOnly)return!1;var o=e.state.selection.main;if(r.length>2||2==r.length&&1==$F(SF(r,0))||t!=o.from||n!=o.to)return!1;var i=function(e,t){var n,r=u3(e,e.selection.main.head),o=r.brackets||r3.brackets,i=bo(o);try{for(i.s();!(n=i.n()).done;){var a=n.value,s=c3(SF(a,0));if(t==a)return s==a?g3(e,a,o.indexOf(a+a+a)>-1,r):p3(e,a,s,r.before||r3.before);if(t==s&&h3(e,e.selection.main.from))return m3(e,a,s)}}catch(e){i.e(e)}finally{i.f()}return null}(e.state,r);return!!i&&(e.dispatch(i),!0)})),d3=[{key:"Backspace",run:function(e){var t=e.state,n=e.dispatch;if(t.readOnly)return!1;var r=u3(t,t.selection.main.head).brackets||r3.brackets,o=null,i=t.changeByRange((function(e){if(e.empty){var n,i=function(e,t){var n=e.sliceString(t-2,t);return $F(SF(n,0))==n.length?n:n.slice(1)}(t.doc,e.head),a=bo(r);try{for(a.s();!(n=a.n()).done;){var s=n.value;if(s==i&&v3(t.doc,e.head)==c3(SF(s,0)))return{changes:{from:e.head-s.length,to:e.head+s.length},range:zF.cursor(e.head-s.length)}}}catch(e){a.e(e)}finally{a.f()}}return{range:o=e}}));return o||n(t.update(i,{scrollIntoView:!0,userEvent:"delete.backward"})),!o}}];function h3(e,t){var n=!1;return e.field(a3).between(0,e.doc.length,(function(e){e==t&&(n=!0)})),n}function v3(e,t){var n=e.sliceString(t,t+2);return n.slice(0,$F(SF(n,0)))}function p3(e,t,n,r){var o=null,i=e.changeByRange((function(i){if(!i.empty)return{changes:[{insert:t,from:i.from},{insert:n,from:i.to}],effects:o3.of(i.to+t.length),range:zF.range(i.anchor+t.length,i.head+t.length)};var a=v3(e.doc,i.head);return!a||/\s/.test(a)||r.indexOf(a)>-1?{changes:{insert:t+n,from:i.head},effects:o3.of(i.head+t.length),range:zF.cursor(i.head+t.length)}:{range:o=i}}));return o?null:e.update(i,{scrollIntoView:!0,userEvent:"input.type"})}function m3(e,t,n){var r=null,o=e.changeByRange((function(t){return t.empty&&v3(e.doc,t.head)==n?{changes:{from:t.head,to:t.head+n.length,insert:n},range:zF.cursor(t.head+n.length)}:r={range:t}}));return r?null:e.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function g3(e,t,n,r){var o=r.stringPrefixes||r3.stringPrefixes,i=null,a=e.changeByRange((function(r){if(!r.empty)return{changes:[{insert:t,from:r.from},{insert:t,from:r.to}],effects:o3.of(r.to+t.length),range:zF.range(r.anchor+t.length,r.head+t.length)};var a,s=r.head,c=v3(e.doc,s);if(c==t){if(y3(e,s))return{changes:{insert:t+t,from:s},effects:o3.of(s+t.length),range:zF.cursor(s+t.length)};if(h3(e,s)){var u=n&&e.sliceDoc(s,s+3*t.length)==t+t+t?t+t+t:t;return{changes:{from:s,to:s+u.length,insert:u},range:zF.cursor(s+u.length)}}}else{if(n&&e.sliceDoc(s-2*t.length,s)==t+t&&(a=b3(e,s-2*t.length,o))>-1&&y3(e,a))return{changes:{insert:t+t+t+t,from:s},effects:o3.of(s+t.length),range:zF.cursor(s+t.length)};if(e.charCategorizer(s)(c)!=CV.Word&&b3(e,s,o)>-1&&!function(e,t,n,r){for(var o=ZQ(e).resolveInner(t,-1),i=r.reduce((function(e,t){return Math.max(e,t.length)}),0),a=0;a<5;a++){var s=e.sliceDoc(o.from,Math.min(o.to,o.from+n.length+i)),c=s.indexOf(n);if(!c||c>-1&&r.indexOf(s.slice(0,c))>-1){for(var u=o.firstChild;u&&u.from==o.from&&u.to-u.from>n.length+c;){if(e.sliceDoc(u.to-n.length,u.to)==n)return!1;u=u.firstChild}return!0}var l=o.to==t&&o.parent;if(!l)break;o=l}return!1}(e,s,t,o))return{changes:{insert:t+t,from:s},effects:o3.of(s+t.length),range:zF.cursor(s+t.length)}}return{range:i=r}}));return i?null:e.update(a,{scrollIntoView:!0,userEvent:"input.type"})}function y3(e,t){var n=ZQ(e).resolveInner(t+1);return n.parent&&n.from==t}function b3(e,t,n){var r=e.charCategorizer(t);if(r(e.sliceDoc(t-1,t))!=CV.Word)return t;var o,i=bo(n);try{for(i.s();!(o=i.n()).done;){var a=o.value,s=t-a.length;if(e.sliceDoc(s,t)==a&&r(e.sliceDoc(s-1,s))!=CV.Word)return s}}catch(e){i.e(e)}finally{i.f()}return-1}function w3(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[t3,K2,E2.of(e),Z2,k3,n3]}var x3=[{key:"Ctrl-Space",run:function(e){return!!e.state.field(K2,!1)&&(e.dispatch({effects:_2.of(!0)}),!0)}},{key:"Escape",run:function(e){var t=e.state.field(K2,!1);return!(!t||!t.active.some((function(e){return 0!=e.state})))&&(e.dispatch({effects:O2.of(null)}),!0)}},{key:"ArrowDown",run:Y2(!0)},{key:"ArrowUp",run:Y2(!1)},{key:"PageDown",run:Y2(!0,"page")},{key:"PageUp",run:Y2(!1,"page")},{key:"Enter",run:function(e){var t=e.state.field(K2,!1);return!(e.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestamp<e.state.facet(E2).interactionDelay)&&G2(e,t.open.options[t.open.selected])}}],k3=ZF.highest(sK.computeN([E2],(function(e){return e.facet(E2).defaultKeymap?[x3]:[]})));function j3(e){pi(e,"svelte-hhcn0f",'.jse-status-bar.svelte-hhcn0f.svelte-hhcn0f{background:var(--jse-panel-background, #ebebeb);color:var(--jse-panel-color-readonly, #b2b2b2);font-family:var(--jse-font-family-mono, consolas, menlo, monaco, "Ubuntu Mono", "source-code-pro", monospace);font-size:var(--jse-font-size-mono, 14px);margin:0;border-top:var(--jse-panel-border, var(--jse-main-border, 1px solid #d7d7d7));border-left:var(--jse-main-border, 1px solid #d7d7d7);border-right:var(--jse-main-border, 1px solid #d7d7d7);display:flex;gap:var(--jse-padding, 10px)}.jse-status-bar.svelte-hhcn0f.svelte-hhcn0f:last-child{border-bottom:var(--jse-main-border, 1px solid #d7d7d7)}.jse-status-bar.svelte-hhcn0f .jse-status-bar-info.svelte-hhcn0f{padding:2px}')}function S3(e){var t,n,r;return{c:function(){t=ki("div"),n=Si("Line: "),r=Si(e[0]),Ai(t,"class","jse-status-bar-info svelte-hhcn0f")},m:function(e,o){bi(e,t,o),vi(t,n),vi(t,r)},p:function(e,t){1&t&&Ri(r,e[0])},d:function(e){e&&wi(t)}}}function C3(e){var t,n,r;return{c:function(){t=ki("div"),n=Si("Column: "),r=Si(e[1]),Ai(t,"class","jse-status-bar-info svelte-hhcn0f")},m:function(e,o){bi(e,t,o),vi(t,n),vi(t,r)},p:function(e,t){2&t&&Ri(r,e[1])},d:function(e){e&&wi(t)}}}function $3(e){var t,n,r,o;return{c:function(){t=ki("div"),n=Si("Selection: "),r=Si(e[2]),o=Si(" characters"),Ai(t,"class","jse-status-bar-info svelte-hhcn0f")},m:function(e,i){bi(e,t,i),vi(t,n),vi(t,r),vi(t,o)},p:function(e,t){4&t&&Ri(r,e[2])},d:function(e){e&&wi(t)}}}function _3(e){var t,n,r,o=void 0!==e[0]&&S3(e),i=void 0!==e[1]&&C3(e),a=void 0!==e[2]&&e[2]>0&&$3(e);return{c:function(){t=ki("div"),o&&o.c(),n=Ci(),i&&i.c(),r=Ci(),a&&a.c(),Ai(t,"class","jse-status-bar svelte-hhcn0f")},m:function(e,s){bi(e,t,s),o&&o.m(t,null),vi(t,n),i&&i.m(t,null),vi(t,r),a&&a.m(t,null)},p:function(e,s){var c=jo(s,1)[0];void 0!==e[0]?o?o.p(e,c):((o=S3(e)).c(),o.m(t,n)):o&&(o.d(1),o=null),void 0!==e[1]?i?i.p(e,c):((i=C3(e)).c(),i.m(t,r)):i&&(i.d(1),i=null),void 0!==e[2]&&e[2]>0?a?a.p(e,c):((a=$3(e)).c(),a.m(t,null)):a&&(a.d(1),a=null)},i:Ho,o:Ho,d:function(e){e&&wi(t),o&&o.d(),i&&i.d(),a&&a.d()}}}function O3(e,t,n){var r,o,i,a,s,c=t.editorState;return e.$$set=function(e){"editorState"in e&&n(3,c=e.editorState)},e.$$.update=function(){var t,u,l;8&e.$$.dirty&&n(4,r=null===(t=c)||void 0===t||null===(t=t.selection)||void 0===t||null===(t=t.main)||void 0===t?void 0:t.head);24&e.$$.dirty&&n(5,o=void 0!==r?null===(u=c)||void 0===u||null===(u=u.doc)||void 0===u?void 0:u.lineAt(r):void 0);(32&e.$$.dirty&&n(0,i=void 0!==o?o.number:void 0),48&e.$$.dirty&&n(1,a=void 0!==o&&void 0!==r?r-o.from+1:void 0),8&e.$$.dirty)&&n(2,s=null===(l=c)||void 0===l||null===(l=l.selection)||void 0===l||null===(l=l.ranges)||void 0===l?void 0:l.reduce((function(e,t){return e+t.to-t.from}),0))},[i,a,s,c,r,o]}var M3=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,O3,_3,Yo,{editorState:3},j3),n}return Ao(t,Na),Io(t)}(),A3=UY.define([{tag:JQ.propertyName,color:"var(--internal-key-color)"},{tag:JQ.number,color:"var(--internal-value-color-number)"},{tag:JQ.bool,color:"var(--internal-value-color-boolean)"},{tag:JQ.string,color:"var(--internal-value-color-string)"},{tag:JQ.keyword,color:"var(--internal-value-color-null)"}]),E3=QY(A3),P3=A3.style;function T3(e){var t=e.selection.main.head;return e.doc.lineAt(t)}function R3(e,t){var n=0;e:for(var r=0;r<e.length;r++)switch(e[r]){case" ":n+=1;continue e;case"\t":n+=t-n%t;continue e;case"\r":continue e;default:break e}return n}A3.style=function(e){return P3(e||[])};var N3=qF.define({combine:function(e){return MV(e,{highlightActiveBlock:!0,hideFirstIndent:!1,markerType:"fullScope",thickness:1})}}),I3=function(){return Io((function e(t,n,r,o){Ro(this,e),this.lines=t,this.state=n,this.map=new Map,this.unitWidth=r,this.markerType=o;var i,a=bo(this.lines);try{for(a.s();!(i=a.n()).done;){var s=i.value;this.add(s)}}catch(e){a.e(e)}finally{a.f()}this.state.facet(N3).highlightActiveBlock&&this.findAndSetActiveLines()}),[{key:"has",value:function(e){return this.map.has("number"==typeof e?e:e.number)}},{key:"get",value:function(e){var t=this.map.get("number"==typeof e?e:e.number);if(!t)throw new Error("Line not found in indentation map");return t}},{key:"set",value:function(e,t,n){var r=!e.text.trim().length,o={line:e,col:t,level:n,empty:r};return this.map.set(o.line.number,o),o}},{key:"add",value:function(e){if(this.has(e))return this.get(e);if(!e.length||!e.text.trim().length){if(1===e.number)return this.set(e,0,0);if(e.number===this.state.doc.lines){var t=this.closestNonEmpty(e,-1);return this.set(e,0,t.level)}var n=this.closestNonEmpty(e,-1),r=this.closestNonEmpty(e,1);return n.level>=r.level&&"codeOnly"!==this.markerType?this.set(e,0,n.level):n.empty&&0===n.level&&0!==r.level?this.set(e,0,0):r.level>n.level?this.set(e,0,n.level+1):this.set(e,0,r.level)}var o=R3(e.text,this.state.tabSize),i=Math.floor(o/this.unitWidth);return this.set(e,o,i)}},{key:"closestNonEmpty",value:function(e,t){for(var n=e.number+t;-1===t?n>=1:n<=this.state.doc.lines;){if(this.has(n)){var r=this.get(n);if(!r.empty)return r}var o=this.state.doc.line(n);if(o.text.trim().length){var i=R3(o.text,this.state.tabSize),a=Math.floor(i/this.unitWidth);return this.set(o,i,a)}n+=t}var s=this.state.doc.line(-1===t?1:this.state.doc.lines);return this.set(s,0,0)}},{key:"findAndSetActiveLines",value:function(){var e=T3(this.state);if(this.has(e)){var t=this.get(e);if(this.has(t.line.number+1)){var n=this.get(t.line.number+1);n.level>t.level&&(t=n)}if(this.has(t.line.number-1)){var r=this.get(t.line.number-1);r.level>t.level&&(t=r)}if(0!==t.level){var o,i;for(t.active=t.level,o=t.line.number;o>1;o--)if(this.has(o-1)){var a=this.get(o-1);if(a.level<t.level)break;a.active=t.level}for(i=t.line.number;i<this.state.doc.lines;i++)if(this.has(i+1)){var s=this.get(i+1);if(s.level<t.level)break;s.active=t.level}}}}}])}();function D3(e){var t={light:"#F0F1F2",dark:"#2B3245",activeLight:"#E4E5E6",activeDark:"#3C445C"},n=t;return e&&(n=Object.assign(Object.assign({},t),e)),ZJ.baseTheme({"&light":{"--indent-marker-bg-color":n.light,"--indent-marker-active-bg-color":n.activeLight},"&dark":{"--indent-marker-bg-color":n.dark,"--indent-marker-active-bg-color":n.activeDark},".cm-line":{position:"relative"},".cm-indent-markers::before":{content:'""',position:"absolute",top:0,left:"2px",right:0,bottom:0,background:"var(--indent-markers)",pointerEvents:"none",zIndex:"-1"}})}function z3(e,t,n,r,o){var i="repeating-linear-gradient(to right, var(".concat(e,") 0 ").concat(t,"px, transparent ").concat(t,"px ").concat(n,"ch)");return"".concat(i," ").concat(r*n,".5ch/calc(").concat(n*o,"ch - 1px) no-repeat")}function B3(e,t,n,r){var o=e.level,i=e.active;if(n&&0===o)return[];var a=n?1:0,s=[];if(void 0!==i){var c=i-a-1;c>0&&s.push(z3("--indent-marker-bg-color",r,t,a,c)),s.push(z3("--indent-marker-active-bg-color",r,t,i-1,1)),i!==o&&s.push(z3("--indent-marker-bg-color",r,t,i,o-i))}else s.push(z3("--indent-marker-bg-color",r,t,a,o-a));return s.join(",")}var L3=function(){return Io((function e(t){Ro(this,e),this.view=t,this.unitWidth=dY(t.state),this.currentLineNumber=T3(t.state).number,this.generate(t.state)}),[{key:"update",value:function(e){var t=dY(e.state),n=t!==this.unitWidth;n&&(this.unitWidth=t);var r=T3(e.state).number,o=r!==this.currentLineNumber;this.currentLineNumber=r;var i=e.state.facet(N3).highlightActiveBlock&&o;(e.docChanged||e.viewportChanged||n||i)&&this.generate(e.state)}},{key:"generate",value:function(e){var t,n=new NV,r=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.state,r=new Set,o=bo(e.visibleRanges);try{for(o.s();!(t=o.n()).done;)for(var i=t.value,a=i.from,s=i.to,c=a;c<=s;){var u=n.doc.lineAt(c);r.has(u)||r.add(u),c=u.to+1}}catch(e){o.e(e)}finally{o.f()}return r}(this.view,e),o=e.facet(N3),i=o.hideFirstIndent,a=o.markerType,s=o.thickness,c=new I3(r,e,this.unitWidth,a),u=bo(r);try{for(u.s();!(t=u.n()).done;){var l=t.value,f=c.get(l.number);if(null==f?void 0:f.level){var d=B3(f,this.unitWidth,i,s);n.add(l.from,l.from,aW.line({class:"cm-indent-markers",attributes:{style:"--indent-markers: ".concat(d)}}))}}}catch(e){u.e(e)}finally{u.f()}this.decorations=n.finish()}}])}();function q3(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[N3.of(e),D3(e.colors),tU.fromClass(L3,{decorations:function(e){return e.decorations}})]}var F3=function(){return Io((function e(t){Ro(this,e),this.view=t,this.indentUnit=dY(t.state),this.initialPaddingLeft=null,this.isChrome=null===window||void 0===window?void 0:window.navigator.userAgent.includes("Chrome"),this.generate(t.state)}),[{key:"update",value:function(e){var t=dY(e.state);(t!==this.indentUnit||e.docChanged||e.viewportChanged)&&(this.indentUnit=t,this.generate(e.state))}},{key:"generate",value:function(e){var t=this,n=new NV;this.initialPaddingLeft?this.addStyleToBuilder(n,e,this.initialPaddingLeft):this.view.requestMeasure({read:function(e){var r=e.contentDOM.querySelector(".cm-line");r&&(t.initialPaddingLeft=window.getComputedStyle(r).getPropertyValue("padding-left"),t.addStyleToBuilder(n,e.state,t.initialPaddingLeft)),t.decorations=n.finish()}}),this.decorations=n.finish()}},{key:"addStyleToBuilder",value:function(e,t,n){var r,o=bo(this.getVisibleLines(t));try{for(o.s();!(r=o.n()).done;){var i=r.value,a=this.numColumns(i.text,t.tabSize),s=a.numColumns,c=a.containsTab,u="calc(".concat(s+this.indentUnit,"ch + ").concat(n,")"),l=this.isChrome?"calc(-".concat(s+this.indentUnit,"ch - ").concat(c?1:0,"px)"):"-".concat(s+this.indentUnit,"ch");e.add(i.from,i.from,aW.line({attributes:{style:"padding-left: ".concat(u,"; text-indent: ").concat(l,";")}}))}}catch(e){o.e(e)}finally{o.f()}}},{key:"getVisibleLines",value:function(e){var t,n=new Set,r=null,o=bo(this.view.visibleRanges);try{for(o.s();!(t=o.n()).done;)for(var i=t.value,a=i.from,s=i.to,c=a;c<=s;){var u=e.doc.lineAt(c);r!==u&&(n.add(u),r=u),c=u.to+1}}catch(e){o.e(e)}finally{o.f()}return n}},{key:"numColumns",value:function(e,t){var n=0,r=!1;e:for(var o=0;o<e.length;o++)switch(e[o]){case" ":n+=1;continue e;case"\t":n+=t-n%t,r=!0;continue e;case"\r":continue e;default:break e}return{numColumns:n,containsTab:r}}}])}(),V3=[tU.fromClass(F3,{decorations:function(e){return e.decorations}})];function H3(e){pi(e,"svelte-a0poeb",'.jse-text-mode.svelte-a0poeb.svelte-a0poeb{--internal-key-color:var(--jse-key-color, #1a1a1a);--internal-value-color-number:var(--jse-value-color-number, #ee422e);--internal-value-color-boolean:var(--jse-value-color-boolean, #ff8c00);--internal-value-color-string:var(--jse-value-color-string, #008000);--internal-value-color-null:var(--jse-value-color-null, #004ed0);flex:1;box-sizing:border-box;display:flex;flex-direction:column;background:var(--jse-background-color, #fff)}.jse-text-mode.no-main-menu.svelte-a0poeb.svelte-a0poeb{border-top:var(--jse-main-border, 1px solid #d7d7d7)}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb{flex:1;display:flex;position:relative;flex-direction:column;overflow:hidden;min-width:0;min-height:0;border-left:var(--jse-main-border, 1px solid #d7d7d7);border-right:var(--jse-main-border, 1px solid #d7d7d7)}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb:last-child{border-bottom:var(--jse-main-border, 1px solid #d7d7d7)}.jse-text-mode.svelte-a0poeb .jse-contents.jse-hidden.svelte-a0poeb{visibility:hidden;position:absolute;top:0;left:0}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor{flex:1;overflow:hidden}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-scroller{font-family:var(--jse-font-family-mono, consolas, menlo, monaco, "Ubuntu Mono", "source-code-pro", monospace);font-size:var(--jse-font-size-mono, 14px);line-height:var(--jse-line-height, calc(1em + 4px));color:var(--jse-delimiter-color, rgba(0, 0, 0, 0.38))}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-gutters{background:var(--jse-panel-background, #ebebeb);color:var(--jse-panel-color-readonly, #b2b2b2);border-right:var(--jse-panel-border, var(--jse-main-border, 1px solid #d7d7d7))}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-activeLine,.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-activeLineGutter{background:var(--jse-active-line-background-color, rgba(0, 0, 0, 0.06))}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-selectionBackground{background:var(--jse-selection-background-color, #d3d3d3)}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-searchMatch{background-color:var(--jse-search-match-color, #ffe665);outline:var(--jse-search-match-outline, 1px solid #ffd700)}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-searchMatch.cm-searchMatch-selected{background-color:var(--jse-search-match-active-color, #ffd700);outline:var(--jse-search-match-active-outline, 1px solid #e1be00)}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-selectionMatch{background-color:var(--jse-search-match-background-color, rgba(153, 255, 119, 0.5019607843))}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-foldPlaceholder{background:var(--jse-tag-background, rgba(0, 0, 0, 0.2));color:var(--jse-tag-color, var(--jse-text-color-inverse, #fff));border:none;padding:0 var(--jse-padding, 10px)}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-tooltip{font-size:var(--jse-font-size, 16px);font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);color:var(--jse-tooltip-color, var(--jse-text-color, #4d4d4d));background:var(--jse-tooltip-background, var(--jse-modal-background, #f5f5f5));border:var(--jse-tooltip-border, var(--jse-main-border, 1px solid #d7d7d7))}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-diagnosticAction{background:var(--jse-tooltip-action-button-color, var(--jse-text-color-inverse, #fff));background:var(--jse-tooltip-action-button-background, #4d4d4d)}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-panels{border-bottom:var(--jse-panel-border, var(--jse-main-border, 1px solid #d7d7d7))}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-search{background:var(--jse-panel-background, #ebebeb);color:var(--jse-panel-color, var(--jse-text-color, #4d4d4d));font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px)}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-search input{font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size-text-mode-search, 80%);color:var(--jse-input-color, var(--jse-text-color, #4d4d4d));border:var(--jse-input-border, 1px solid #d8dbdf);background:var(--jse-input-background, var(--jse-background-color, #fff));margin-right:2px}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-search button{font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size-text-mode-search, 80%);color:var(--jse-panel-button-color, inherit);background:var(--jse-panel-button-background, transparent);border:none;cursor:pointer;text-transform:capitalize;padding:calc(0.5 * var(--jse-padding, 10px)) var(--jse-padding, 10px);margin:0}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-search button:hover{color:var(--panel-button-color-highlight, var(--jse-text-color, #4d4d4d));background:var(--jse-panel-button-background-highlight, #e0e0e0)}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-search label{font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size-text-mode-search, 80%);padding-left:var(--jse-padding, 10px)}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-search label input{margin-right:2px}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-search button[name="close"]{width:32px;height:32px;font-size:24px;line-height:24px;padding:0;right:0;top:-4px}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-cursor-primary{border-color:var(--jse-text-color, #4d4d4d)}.jse-text-mode.svelte-a0poeb .jse-contents .jse-loading-space.svelte-a0poeb{flex:1}.jse-text-mode.svelte-a0poeb .jse-contents .jse-loading.svelte-a0poeb{flex:2;text-align:center;color:var(--jse-panel-color-readonly, #b2b2b2);box-sizing:border-box;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px)}.jse-text-mode.svelte-a0poeb .jse-contents.jse-preview.svelte-a0poeb{flex:1;font-family:var(--jse-font-family-mono, consolas, menlo, monaco, "Ubuntu Mono", "source-code-pro", monospace);font-size:var(--jse-font-size-mono, 14px);color:var(--jse-panel-color-readonly, #b2b2b2);overflow:auto;white-space:pre-wrap;word-break:break-word;padding:2px}')}function W3(e){var t=e.slice(),n=0===t[11].length;return t[100]=n,t}function U3(e){var t,n;return t=new rF({props:{readOnly:e[1],onFormat:e[17],onCompact:e[18],onSort:e[19],onTransform:e[20],onToggleSearch:e[21],onUndo:e[22],onRedo:e[23],canFormat:!e[100],canCompact:!e[100],canSort:!e[100],canTransform:!e[100],canUndo:e[12],canRedo:e[13],onRenderMenu:e[4]}}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},p:function(e,n){var r={};2&n[0]&&(r.readOnly=e[1]),2048&n[0]&&(r.canFormat=!e[100]),2048&n[0]&&(r.canCompact=!e[100]),2048&n[0]&&(r.canSort=!e[100]),2048&n[0]&&(r.canTransform=!e[100]),4096&n[0]&&(r.canUndo=e[12]),8192&n[0]&&(r.canRedo=e[13]),16&n[0]&&(r.onRenderMenu=e[4]),t.$set(r)},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}function J3(e){var t;return{c:function(){(t=ki("div")).innerHTML='<div class="jse-loading-space svelte-a0poeb"></div> <div class="jse-loading svelte-a0poeb">loading...</div>',Ai(t,"class","jse-contents svelte-a0poeb")},m:function(e,n){bi(e,t,n)},p:Ho,i:Ho,o:Ho,d:function(e){e&&wi(t)}}}function K3(e){var t,n,r,o,i,a=e[99]&&G3(e),s=!e[99]&&Q3(e);return{c:function(){t=ki("div"),n=Ci(),a&&a.c(),r=Ci(),s&&s.c(),o=$i(),Ai(t,"class","jse-contents svelte-a0poeb"),zi(t,"jse-hidden",e[99])},m:function(c,u){bi(c,t,u),e[53](t),bi(c,n,u),a&&a.m(c,u),bi(c,r,u),s&&s.m(c,u),bi(c,o,u),i=!0},p:function(e,n){(!i||268438016&n[0])&&zi(t,"jse-hidden",e[99]),e[99]?a?(a.p(e,n),2560&n[0]&&wa(a,1)):((a=G3(e)).c(),wa(a,1),a.m(r.parentNode,r)):a&&(ya(),xa(a,1,1,(function(){a=null})),ba()),e[99]?s&&(ya(),xa(s,1,1,(function(){s=null})),ba()):s?(s.p(e,n),2560&n[0]&&wa(s,1)):((s=Q3(e)).c(),wa(s,1),s.m(o.parentNode,o))},i:function(e){i||(wa(a),wa(s),i=!0)},o:function(e){xa(a),xa(s),i=!1},d:function(i){i&&(wi(t),wi(n),wi(r),wi(o)),e[53](null),a&&a.d(i),s&&s.d(i)}}}function G3(e){var t,n,r,o,i,a=nM(e[11]||"",ls)+"";return t=new GN({props:{icon:BP,type:"error",message:"The JSON document is larger than ".concat(eF(vs,1024),", ")+"and may crash your browser when loading it in text mode. Actual size: ".concat(eF(e[11].length,1024),"."),actions:[{text:"Open anyway",title:"Open the document in text mode. This may freeze or crash your browser.",onClick:e[24]},{text:"Open in tree mode",title:"Open the document in tree mode. Tree mode can handle large documents.",onClick:e[25]},{text:"Cancel",title:"Cancel opening this large document.",onClick:e[26]}],onClose:e[5]}}),{c:function(){Ea(t.$$.fragment),n=Ci(),r=ki("div"),o=Si(a),Ai(r,"class","jse-contents jse-preview svelte-a0poeb")},m:function(e,a){Pa(t,e,a),bi(e,n,a),bi(e,r,a),vi(r,o),i=!0},p:function(e,n){var r={};2048&n[0]&&(r.message="The JSON document is larger than ".concat(eF(vs,1024),", ")+"and may crash your browser when loading it in text mode. Actual size: ".concat(eF(e[11].length,1024),".")),t.$set(r),(!i||2048&n[0])&&a!==(a=nM(e[11]||"",ls)+"")&&Ri(o,a)},i:function(e){i||(wa(t.$$.fragment,e),i=!0)},o:function(e){xa(t.$$.fragment,e),i=!1},d:function(e){e&&(wi(n),wi(r)),Ta(t,e)}}}function Q3(e){var t,n,r,o,i,a=!e[14]&&e[0]&&iO(e[11]),s=e[3]&&Y3(e),c=e[14]&&X3(e),u=a&&Z3(e);return o=new aI({props:{validationErrors:e[10],selectError:e[27]}}),{c:function(){s&&s.c(),t=Ci(),c&&c.c(),n=Ci(),u&&u.c(),r=Ci(),Ea(o.$$.fragment)},m:function(e,a){s&&s.m(e,a),bi(e,t,a),c&&c.m(e,a),bi(e,n,a),u&&u.m(e,a),bi(e,r,a),Pa(o,e,a),i=!0},p:function(e,i){e[3]?s?(s.p(e,i),8&i[0]&&wa(s,1)):((s=Y3(e)).c(),wa(s,1),s.m(t.parentNode,t)):s&&(ya(),xa(s,1,1,(function(){s=null})),ba()),e[14]?c?(c.p(e,i),16384&i[0]&&wa(c,1)):((c=X3(e)).c(),wa(c,1),c.m(n.parentNode,n)):c&&(ya(),xa(c,1,1,(function(){c=null})),ba()),18433&i[0]&&(a=!e[14]&&e[0]&&iO(e[11])),a?u?(u.p(e,i),18433&i[0]&&wa(u,1)):((u=Z3(e)).c(),wa(u,1),u.m(r.parentNode,r)):u&&(ya(),xa(u,1,1,(function(){u=null})),ba());var l={};1024&i[0]&&(l.validationErrors=e[10]),o.$set(l)},i:function(e){i||(wa(s),wa(c),wa(u),wa(o.$$.fragment,e),i=!0)},o:function(e){xa(s),xa(c),xa(u),xa(o.$$.fragment,e),i=!1},d:function(e){e&&(wi(t),wi(n),wi(r)),s&&s.d(e),c&&c.d(e),u&&u.d(e),Ta(o,e)}}}function Y3(e){var t,n;return t=new M3({props:{editorState:e[8]}}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},p:function(e,n){var r={};256&n[0]&&(r.editorState=e[8]),t.$set(r)},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}function X3(e){var t,n;return t=new GN({props:{type:"error",icon:BP,message:e[14].message,actions:e[15],onClick:e[29],onClose:e[5]}}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},p:function(e,n){var r={};16384&n[0]&&(r.message=e[14].message),32768&n[0]&&(r.actions=e[15]),t.$set(r)},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}function Z3(e){var t,n;return t=new GN({props:{type:"success",message:"Do you want to format the JSON?",actions:[{icon:Bz,text:"Format",title:"Format JSON: add proper indentation and new lines (Ctrl+I)",onClick:e[17]},{icon:RP,text:"No thanks",title:"Close this message",onClick:e[54]}],onClose:e[5]}}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},p:function(e,n){var r={};1&n[0]&&(r.actions=[{icon:Bz,text:"Format",title:"Format JSON: add proper indentation and new lines (Ctrl+I)",onClick:e[17]},{icon:RP,text:"No thanks",title:"Close this message",onClick:e[54]}]),t.$set(r)},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}function e4(e){var t,n,r,o,i,a=e[2]&&U3(W3(e)),s=[K3,J3],c=[];function u(e,t){return 0===t?function(e){var t=e.slice(),n=t[28](t[11],t[9]);return t[99]=n,t}(e):e}return r=function(e,t){return e[16]?1:0}(e),o=c[r]=s[r](u(e,r)),{c:function(){t=ki("div"),a&&a.c(),n=Ci(),o.c(),Ai(t,"class","jse-text-mode svelte-a0poeb"),zi(t,"no-main-menu",!e[2])},m:function(o,s){bi(o,t,s),a&&a.m(t,null),vi(t,n),c[r].m(t,null),e[55](t),i=!0},p:function(e,s){e[2]?a?(a.p(W3(e),s),4&s[0]&&wa(a,1)):((a=U3(W3(e))).c(),wa(a,1),a.m(t,n)):a&&(ya(),xa(a,1,1,(function(){a=null})),ba()),o.p(u(e,r),s),(!i||4&s[0])&&zi(t,"no-main-menu",!e[2])},i:function(e){i||(wa(a),wa(o),i=!0)},o:function(e){xa(a),xa(o),i=!1},d:function(n){n&&wi(t),a&&a.d(),c[r].d(),e[55](null)}}}function t4(e){return{from:e.from||0,to:e.to||0,message:e.message||"",actions:e.actions,severity:e.severity}}function n4(e,t,n){var r,o,i,a,s,c,u=t.readOnly,l=t.mainMenuBar,f=t.statusBar,d=t.askToFormat,h=t.externalContent,v=t.externalSelection,p=t.indentation,m=t.tabSize,g=t.escapeUnicodeCharacters,y=t.parser,b=t.validator,w=t.validationParser,x=t.onChange,k=t.onChangeMode,j=t.onSelect,S=t.onError,C=t.onFocus,$=t.onBlur,_=t.onRenderMenu,O=t.onSortModal,M=t.onTransformModal,A=Ia("jsoneditor:TextMode"),E={key:"Mod-i",run:Q,shift:Y,preventDefault:!0},P="undefined"==typeof window;A("isSSR:",P);var T=!1,R=[],N=new tV,I=new tV,D=new tV,z=new tV,B=new tV,L=h,q=X_(L,p,y),F=g;Ki(ko(wo().mark((function e(){return wo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!P){e.next=2;break}return e.abrupt("return");case 2:try{s=re({target:i,initialText:we(q,T)?"":r.escapeValue(q),readOnly:u,indentation:p})}catch(e){console.error(e)}case 3:case"end":return e.stop()}}),e)})))),Gi((function(){s&&(A("Destroy CodeMirror editor"),s.destroy())}));var V=!1,H=!1,W=P$(),U=P$();function J(){s&&(A("focus"),s.focus())}var K=!1;function G(e,t){A("handlePatch",e,t);var n=y.parse(q),r=rc(n,e),o=vc(n,e);return ce({text:y.stringify(r,null,p)},t,!1),{json:r,previousJson:n,undo:o,redo:e}}function Q(){if(A("format"),u)return!1;try{var e=y.parse(q);return ce({text:y.stringify(e,null,p)},!0,!1),!0}catch(e){S(e)}return!1}function Y(){if(A("compact"),u)return!1;try{var e=y.parse(q);return ce({text:y.stringify(e)},!0,!1),!0}catch(e){S(e)}return!1}function X(){if(A("repair"),!u)try{ce({text:Hu(q)},!0,!1),n(52,xe=Cs),n(14,ke=null)}catch(e){S(e)}}function Z(e){var t=e.id,n=e.rootPath,r=e.onTransform,o=e.onClose;try{var i=y.parse(q);K=!0,M({id:t||U,json:i,rootPath:n||[],onTransform:function(e){r?r({operations:e,json:i,transformedJson:rc(i,e)}):(A("onTransform",e),G(e,!0))},onClose:function(){K=!1,J(),o&&o()}})}catch(e){S(e)}}function ee(e,t){A("setSelection",{anchor:e,head:t}),s&&s.dispatch(s.state.update({selection:{anchor:e,head:t},scrollIntoView:!0}))}function te(e,t){if(1===t.state.selection.ranges.length){var n=t.state.selection.ranges[0],r=q.slice(n.from,n.to);if("{"===r||"["===r){var o=bc.parse(q),i=Object.keys(o.pointers).find((function(e){var t;return(null===(t=o.pointers[e].value)||void 0===t?void 0:t.pos)===n.from})),a=o.pointers[i];if(i&&a&&a.value&&a.valueEnd)A("pointer found, selecting inner contents of path:",i,a),ee(a.value.pos+1,a.valueEnd.pos-1)}}}function ne(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return[S0.of({source:e,config:t}),j0,q0]}(je,{delay:300})}function re(e){var t=e.target,r=e.initialText,o=e.readOnly,i=e.indentation;A("Create CodeMirror editor",{readOnly:o,indentation:i});var a,u,l=OV.create({doc:r,selection:ie(v,r)?ue(v):void 0,extensions:[sK.of([a0,E]),N.of(ne()),V0(),BG(),FG,BK(),LX(),HY(),kK(),[AK,EK],OV.allowMultipleSelections.of(!0),OV.transactionFilter.of((function(e){if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;var t=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!t.length)return e;var n=e.newDoc,r=e.newSelection.main.head,o=n.lineAt(r);if(r>o.from+jY)return e;var i=n.sliceString(o.from,r);if(!t.some((function(e){return e.test(i)})))return e;var a,s=e.state,c=-1,u=[],l=bo(s.selection.ranges);try{for(l.s();!(a=l.n()).done;){var f=a.value.head,d=s.doc.lineAt(f);if(d.from!=c){c=d.from;var h=vY(s,d.from);if(null!=h){var v=/^\s*/.exec(d.text)[0],p=hY(s,h);v!=p&&u.push({from:d.from,to:d.from+v.length,insert:p})}}}}catch(e){l.e(e)}finally{l.f()}return u.length?[e,{changes:u,sequential:!0}]:e})),QY(ZY,{fallback:!0}),uX(),[f3,a3],w3(),KK(),YK(),HK,(u=[R1,T1],a&&u.push(M1.of(a)),u),sK.of([].concat(d3,Bo(i0),l2,aZ,NY,x3,k0)),E3,q3({hideFirstIndent:!0}),ZJ.domEventHandlers({dblclick:te}),ZJ.updateListener.of((function(e){n(8,c=e.state),e.docChanged?me():e.selectionSet&&be()})),new uY(v1),I1({top:!0}),ZJ.lineWrapping,I.of(OV.readOnly.of(o)),z.of(OV.tabSize.of(m)),D.of(ve(i)),B.of(ZJ.theme({},{dark:oe()}))]});return s=new ZJ({state:l,parent:t})}function oe(){return!!i&&getComputedStyle(i).getPropertyValue("--jse-theme").includes("dark")}function ie(e,t){return!!wA(e)&&e.ranges.every((function(e){return e.anchor<t.length&&e.head<t.length}))}function ae(e){var t=e.path,n=e.message,o=e.severity,i=function(e,t){try{var n=bc.parse(e),r=Zs(t),o=n.pointers[r];if(o)return{path:t,line:o.key?o.key.line:o.value?o.value.line:0,column:o.key?o.key.column:o.value?o.value.column:0,from:o.key?o.key.pos:o.value?o.value.pos:0,to:o.keyEnd?o.keyEnd.pos:o.valueEnd?o.valueEnd.pos:0}}catch(e){console.error(e)}return{path:t,line:0,column:0,from:0,to:0}}(r.escapeValue(q),t);return{path:t,line:i.line,column:i.column,from:i.from,to:i.to,message:n,severity:o,actions:[]}}function se(e,t){var n=e.line,r=e.column,o=e.position,i=e.message;return{path:[],line:n,column:r,from:o,to:o,severity:Xa.error,message:i,actions:t&&!u?[{name:"Auto repair",apply:function(){return X()}}]:null}}function ce(e,t,o){var i=X_(e,p,y),a=!Ax(e,L),c=L;A("setCodeMirrorContent",{isChanged:a,emitChange:t,forceUpdate:o}),s&&(a||o)&&(L=e,n(11,q=i),we(q,T)||s.dispatch({changes:{from:0,to:s.state.doc.length,insert:r.escapeValue(q)}}),pe(),a&&t&&ye(L,c))}function ue(e){return wA(e)?zF.fromJSON(e):void 0}function le(){return(le=ko(wo().mark((function e(){return wo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return A("refresh"),e.next=3,de();case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function fe(){if(s){var e=s?r.unescapeValue(s.state.doc.toString()):"",t=e!==q;if(A("onChangeCodeMirrorValue",{isChanged:t}),t){var o=L;n(11,q=e),L={text:q},pe(),ye(L,o),sa().then(be)}}}function de(){return he.apply(this,arguments)}function he(){return(he=ko(wo().mark((function e(){var t;return wo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,sa();case 2:s&&(t=oe(),A("updateTheme",{dark:t}),s.dispatch({effects:[B.reconfigure(ZJ.theme({},{dark:t}))]}));case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ve(e){var t=fY.of("number"==typeof e?" ".repeat(e):e);return"\t"===e?[t]:[t,V3]}function pe(){n(12,V=JX(s.state)>0),n(13,H=KX(s.state)>0),A({canUndo:V,canRedo:H})}Gi((function(){ge()})),qN({onMount:Ki,onDestroy:Gi,getWindow:function(){return CO(a)},hasFocus:function(){return K&&document.hasFocus()||$O(a)},onFocus:C,onBlur:function(){ge(),$()}});var me=Wy(fe,300);function ge(){me.flush()}function ye(e,t){x&&x(e,t,{contentErrors:Se(),patchResult:null})}function be(){j(To({type:Qa.text},c.selection.toJSON()))}function we(e,t){return!!e&&e.length>vs&&!t}var xe=Cs,ke=null;function je(){if(we(q,T))return[];var e=Se();return kI(e)?[t4(se(e.parseError,e.isRepairable))]:jI(e)?e.validationErrors.map(ae).map(t4):[]}function Se(){A("validate:start"),ge();var e=Ce(r.escapeValue(q),b,y,w);return kI(e)?(n(52,xe=e.isRepairable?$s:"invalid"),n(14,ke=e.parseError),n(10,R=[])):(n(52,xe=Cs),n(14,ke=null),n(10,R=(null==e?void 0:e.validationErrors)||[])),A("validate:end"),e}var Ce=FB(BN);function $e(){ke&&function(e){A("select parse error",e);var t=se(e,!1);ee(null!=t.from?t.from:0,null!=t.to?t.to:0),J()}(ke)}var _e={icon:mP,text:"Show me",title:"Move to the parse error location",onClick:$e};return e.$$set=function(e){"readOnly"in e&&n(1,u=e.readOnly),"mainMenuBar"in e&&n(2,l=e.mainMenuBar),"statusBar"in e&&n(3,f=e.statusBar),"askToFormat"in e&&n(0,d=e.askToFormat),"externalContent"in e&&n(30,h=e.externalContent),"externalSelection"in e&&n(31,v=e.externalSelection),"indentation"in e&&n(32,p=e.indentation),"tabSize"in e&&n(33,m=e.tabSize),"escapeUnicodeCharacters"in e&&n(34,g=e.escapeUnicodeCharacters),"parser"in e&&n(35,y=e.parser),"validator"in e&&n(36,b=e.validator),"validationParser"in e&&n(37,w=e.validationParser),"onChange"in e&&n(38,x=e.onChange),"onChangeMode"in e&&n(39,k=e.onChangeMode),"onSelect"in e&&n(40,j=e.onSelect),"onError"in e&&n(41,S=e.onError),"onFocus"in e&&n(42,C=e.onFocus),"onBlur"in e&&n(43,$=e.onBlur),"onRenderMenu"in e&&n(4,_=e.onRenderMenu),"onSortModal"in e&&n(44,O=e.onSortModal),"onTransformModal"in e&&n(45,M=e.onTransformModal)},e.$$.update=function(){8&e.$$.dirty[1]&&(r=sO({escapeControlCharacters:!1,escapeUnicodeCharacters:g})),1073741824&e.$$.dirty[0]&&ce(h,!1,!1),1&e.$$.dirty[1]&&function(e){if(wA(e)){var t=ue(e);!s||!t||c&&c.selection.eq(t)||(A("applyExternalSelection",t),s.dispatch({selection:t}))}}(v),32&e.$$.dirty[1]&&function(e){A("updateLinter",e),s&&s.dispatch({effects:N.reconfigure(ne())})}(b),2&e.$$.dirty[1]&&function(e){s&&(A("updateIndentation",e),s.dispatch({effects:D.reconfigure(ve(e))}))}(p),4&e.$$.dirty[1]&&function(e){s&&(A("updateTabSize",e),s.dispatch({effects:z.reconfigure(OV.tabSize.of(e))}))}(m),2&e.$$.dirty[0]&&function(e){s&&(A("updateReadOnly",e),s.dispatch({effects:[I.reconfigure(OV.readOnly.of(e))]}))}(u),1048584&e.$$.dirty[1]&&F!==g&&(n(51,F=g),A("forceUpdateText",{escapeUnicodeCharacters:g}),s&&s.dispatch({changes:{from:0,to:s.state.doc.length,insert:r.escapeValue(q)}})),2&e.$$.dirty[0]|2097152&e.$$.dirty[1]&&n(15,o=xe!==$s||u?[_e]:[{icon:pP,text:"Auto repair",title:"Automatically repair JSON",onClick:X},_e])},[d,u,l,f,_,J,i,a,c,T,R,q,V,H,ke,o,P,Q,Y,function(){var e;if(!u)try{var t=y.parse(q);K=!0,O({id:W,json:t,rootPath:[],onSort:(e=ko(wo().mark((function e(t){var n;return wo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.operations,A("onSort",n),G(n,!0);case 3:case"end":return e.stop()}}),e)}))),function(t){return e.apply(this,arguments)}),onClose:function(){K=!1,J()}})}catch(e){S(e)}},function(){u||Z({rootPath:[]})},function(){s&&(i&&i.querySelector(".cm-search")?u2(s):c2(s))},function(){u||s&&(FX(s),J())},function(){u||s&&(VX(s),J())},function(){n(9,T=!0),ce(h,!0,!0)},function(){k(Ga.tree)},function(){fe()},function(e){A("select validation error",e);var t=ae(e),n=t.from,r=t.to;null!==n&&null!==r&&(ee(n,r),J())},we,$e,h,v,p,m,g,y,b,w,x,k,j,S,C,$,O,M,function(e){return G(e,!1)},G,Z,function(){return le.apply(this,arguments)},Se,F,xe,function(e){ta[e?"unshift":"push"]((function(){n(6,i=e)}))},function(){return n(0,d=!1)},function(e){ta[e?"unshift":"push"]((function(){n(7,a=e)}))}]}var r4=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,n4,e4,Xo,{readOnly:1,mainMenuBar:2,statusBar:3,askToFormat:0,externalContent:30,externalSelection:31,indentation:32,tabSize:33,escapeUnicodeCharacters:34,parser:35,validator:36,validationParser:37,onChange:38,onChangeMode:39,onSelect:40,onError:41,onFocus:42,onBlur:43,onRenderMenu:4,onSortModal:44,onTransformModal:45,focus:5,patch:46,handlePatch:47,openTransformModal:48,refresh:49,validate:50},H3,[-1,-1,-1,-1]),n}return Ao(t,Na),Io(t,[{key:"focus",get:function(){return this.$$.ctx[5]}},{key:"patch",get:function(){return this.$$.ctx[46]}},{key:"handlePatch",get:function(){return this.$$.ctx[47]}},{key:"openTransformModal",get:function(){return this.$$.ctx[48]}},{key:"refresh",get:function(){return this.$$.ctx[49]}},{key:"validate",get:function(){return this.$$.ctx[50]}}])}();function o4(e){var t,n;return t=new HI({props:{items:e[0]}}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},p:function(e,n){var r={};1&jo(n,1)[0]&&(r.items=e[0]),t.$set(r)},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}function i4(e,t,n){var r,o,i=t.containsValidArray,a=t.readOnly,s=t.showSearch,c=void 0!==s&&s,u=t.historyState,l=t.onSort,f=t.onTransform,d=t.onContextMenu,h=t.onUndo,v=t.onRedo,p=t.onRenderMenu;function m(){n(1,c=!c)}return e.$$set=function(e){"containsValidArray"in e&&n(2,i=e.containsValidArray),"readOnly"in e&&n(3,a=e.readOnly),"showSearch"in e&&n(1,c=e.showSearch),"historyState"in e&&n(4,u=e.historyState),"onSort"in e&&n(5,l=e.onSort),"onTransform"in e&&n(6,f=e.onTransform),"onContextMenu"in e&&n(7,d=e.onContextMenu),"onUndo"in e&&n(8,h=e.onUndo),"onRedo"in e&&n(9,v=e.onRedo),"onRenderMenu"in e&&n(10,p=e.onRenderMenu)},e.$$.update=function(){1020&e.$$.dirty&&n(11,r=a?[{type:"space"}]:[{type:"button",icon:CP,title:"Sort",className:"jse-sort",onClick:l,disabled:a||!i},{type:"button",icon:hP,title:"Transform contents (filter, sort, project)",className:"jse-transform",onClick:f,disabled:a||!i},{type:"button",icon:OP,title:"Search (Ctrl+F)",className:"jse-search",onClick:m,disabled:!i},{type:"button",icon:jP,title:xs,className:"jse-contextmenu",onClick:d},{type:"separator"},{type:"button",icon:bP,title:"Undo (Ctrl+Z)",className:"jse-undo",onClick:h,disabled:!u.canUndo},{type:"button",icon:yP,title:"Redo (Ctrl+Shift+Z)",className:"jse-redo",onClick:v,disabled:!u.canRedo},{type:"space"}]),3072&e.$$.dirty&&n(0,o=p(r))},[o,c,i,a,u,l,f,d,h,v,p,r]}var a4=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,i4,o4,Xo,{containsValidArray:2,readOnly:3,showSearch:1,historyState:4,onSort:5,onTransform:6,onContextMenu:7,onUndo:8,onRedo:9,onRenderMenu:10}),n}return Ao(t,Na),Io(t)}();function s4(e,t,n){var r=e.slice();return r[9]=t[n],r}function c4(e){var t,n,r=e[9].component,o=l4(e);return{c:function(){o.c(),t=$i()},m:function(e,r){o.m(e,r),bi(e,t,r),n=!0},p:function(e,n){1&n&&Xo(r,r=e[9].component)?(ya(),xa(o,1,1,Ho),ba(),(o=l4(e)).c(),wa(o,1),o.m(t.parentNode,t)):o.p(e,n)},i:function(e){n||(wa(o),n=!0)},o:function(e){xa(o),n=!1},d:function(e){e&&wi(t),o.d(e)}}}function u4(e){var t,n=e[9].action,r=f4(e);return{c:function(){r.c(),t=$i()},m:function(e,n){r.m(e,n),bi(e,t,n)},p:function(e,o){1&o&&Xo(n,n=e[9].action)?(r.d(1),(r=f4(e)).c(),r.m(t.parentNode,t)):r.p(e,o)},i:Ho,o:Ho,d:function(e){e&&wi(t),r.d(e)}}}function l4(e){var t,n,r,o=[e[9].props],i=e[9].component;function a(e,t){for(var n={},r=0;r<o.length;r+=1)n=Uo(n,o[r]);return void 0!==t&&1&t&&(n=Uo(n,Oa(o,[Ma(e[9].props)]))),{props:n}}return i&&(t=Li(i,a(e))),{c:function(){t&&Ea(t.$$.fragment),n=$i()},m:function(e,o){t&&Pa(t,e,o),bi(e,n,o),r=!0},p:function(e,r){if(1&r&&i!==(i=e[9].component)){if(t){ya();var s=t;xa(s.$$.fragment,1,0,(function(){Ta(s,1)})),ba()}i?(Ea((t=Li(i,a(e,r))).$$.fragment),wa(t.$$.fragment,1),Pa(t,n.parentNode,n)):t=null}else if(i){var c=1&r?Oa(o,[Ma(e[9].props)]):{};t.$set(c)}},i:function(e){r||(t&&wa(t.$$.fragment,e),r=!0)},o:function(e){t&&xa(t.$$.fragment,e),r=!1},d:function(e){e&&wi(n),t&&Ta(t,e)}}}function f4(e){var t,n,r,o;return{c:function(){Ai(t=ki("div"),"role","button"),Ai(t,"tabindex","-1"),Ai(t,"class","jse-value"),Ai(t,"data-type","selectable-value")},m:function(i,a){bi(i,t,a),r||(o=si(n=e[12].call(null,t,e[9].props)),r=!0)},p:function(t,r){e=t,n&&Qo(n.update)&&1&r&&n.update.call(null,e[9].props)},d:function(e){e&&wi(t),r=!1,o()}}}function d4(e){var t,n,r,o,i,a=[u4,c4],s=[];function c(e,n){return 1&n&&(t=null),null==t&&(t=!!_I(e[9])),t?0:1}function u(e,t){return 0===t?function(e){var t=e.slice(),n=t[9].action;return t[12]=n,t}(e):e}return n=c(e,-1),r=s[n]=a[n](u(e,n)),{c:function(){r.c(),o=$i()},m:function(e,t){s[n].m(e,t),bi(e,o,t),i=!0},p:function(e,t){var i=n;(n=c(e,t))===i?s[n].p(u(e,n),t):(ya(),xa(s[i],1,1,(function(){s[i]=null})),ba(),(r=s[n])?r.p(u(e,n),t):(r=s[n]=a[n](u(e,n))).c(),wa(r,1),r.m(o.parentNode,o))},i:function(e){i||(wa(r),i=!0)},o:function(e){xa(r),i=!1},d:function(e){e&&wi(o),s[n].d(e)}}}function h4(e){for(var t,n,r=Sa(e[0]),o=[],i=0;i<r.length;i+=1)o[i]=d4(s4(e,r,i));var a=function(e){return xa(o[e],1,1,(function(){o[e]=null}))};return{c:function(){for(var e=0;e<o.length;e+=1)o[e].c();t=$i()},m:function(e,r){for(var i=0;i<o.length;i+=1)o[i]&&o[i].m(e,r);bi(e,t,r),n=!0},p:function(e,n){var i=jo(n,1)[0];if(1&i){var s;for(r=Sa(e[0]),s=0;s<r.length;s+=1){var c=s4(e,r,s);o[s]?(o[s].p(c,i),wa(o[s],1)):(o[s]=d4(c),o[s].c(),wa(o[s],1),o[s].m(t.parentNode,t))}for(ya(),s=r.length;s<o.length;s+=1)a(s);ba()}},i:function(e){if(!n){for(var t=0;t<r.length;t+=1)wa(o[t]);n=!0}},o:function(e){o=o.filter(Boolean);for(var t=0;t<o.length;t+=1)xa(o[t]);n=!1},d:function(e){e&&wi(t),xi(o,e)}}}function v4(e,t,n){var r,o,i=t.path,a=t.value,s=t.context,c=t.enforceString,u=t.selection,l=t.searchResultItems;function f(e,t){return s.onPatch(function(e,t){return e.flatMap((function(e){if(Ds(e)){var n=Xs(e.path);if(n.length>0){for(var r=[e],o=Xw(n);o.length>0&&!Ys(t,o);)r.unshift({op:"add",path:Zs(o),value:{}}),o=Xw(o);return r}}return e}))}(e,s.getJson()),t)}return e.$$set=function(e){"path"in e&&n(1,i=e.path),"value"in e&&n(2,a=e.value),"context"in e&&n(3,s=e.context),"enforceString"in e&&n(4,c=e.enforceString),"selection"in e&&n(5,u=e.selection),"searchResultItems"in e&&n(6,l=e.searchResultItems)},e.$$.update=function(){40&e.$$.dirty&&n(7,r=!s.readOnly&&mA(u)&&LA(u)),254&e.$$.dirty&&n(0,o=s.onRenderValue({path:i,value:a,readOnly:s.readOnly,enforceString:c,isEditing:r,parser:s.parser,normalization:s.normalization,selection:u,searchResultItems:l,onPatch:f,onPasteJson:s.onPasteJson,onSelect:s.onSelect,onFind:s.onFind,findNextInside:s.findNextInside,focus:s.focus}))},[o,i,a,s,c,u,l,r]}var p4=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,v4,h4,Xo,{path:1,value:2,context:3,enforceString:4,selection:5,searchResultItems:6}),n}return Ao(t,Na),Io(t)}();function m4(e){pi(e,"svelte-1dhomzn",'.jse-inline-value.svelte-1dhomzn{font-family:var(--jse-font-family-mono, consolas, menlo, monaco, "Ubuntu Mono", "source-code-pro", monospace);font-size:var(--jse-font-size-mono, 14px);line-height:var(--jse-line-height, calc(1em + 4px));border:none;padding:0 calc(0.5 * var(--jse-padding, 10px));background:transparent;color:inherit;cursor:pointer}.jse-inline-value.svelte-1dhomzn:hover{background:var(--jse-hover-background-color, rgba(0, 0, 0, 0.06))}.jse-inline-value.jse-selected.svelte-1dhomzn{background:var(--jse-selection-background-color, #d3d3d3)}.jse-inline-value.jse-highlight.svelte-1dhomzn{background-color:var(--jse-search-match-color, #ffe665);outline:var(--jse-search-match-outline, 1px solid #ffd700)}.jse-inline-value.jse-highlight.jse-active.svelte-1dhomzn{background-color:var(--jse-search-match-active-color, #ffd700);outline:var(--jse-search-match-active-outline, 1px solid #e1be00)}')}function g4(e){var t,n,r,o,i,a=nM(null!==(t=e[2].stringify(e[1]))&&void 0!==t?t:"",50)+"";return{c:function(){n=ki("button"),r=Si(a),Ai(n,"type","button"),Ai(n,"class","jse-inline-value svelte-1dhomzn"),zi(n,"jse-selected",e[3]),zi(n,"jse-highlight",e[4]),zi(n,"jse-active",e[5])},m:function(t,a){bi(t,n,a),vi(n,r),o||(i=_i(n,"dblclick",e[7]),o=!0)},p:function(e,t){var o,i=jo(t,1)[0];6&i&&a!==(a=nM(null!==(o=e[2].stringify(e[1]))&&void 0!==o?o:"",50)+"")&&Ri(r,a),8&i&&zi(n,"jse-selected",e[3]),16&i&&zi(n,"jse-highlight",e[4]),32&i&&zi(n,"jse-active",e[5])},i:Ho,o:Ho,d:function(e){e&&wi(n),o=!1,i()}}}function y4(e,t,n){var r=t.path,o=t.value,i=t.parser,a=t.isSelected,s=t.containsSearchResult,c=t.containsActiveSearchResult,u=t.onEdit;return e.$$set=function(e){"path"in e&&n(0,r=e.path),"value"in e&&n(1,o=e.value),"parser"in e&&n(2,i=e.parser),"isSelected"in e&&n(3,a=e.isSelected),"containsSearchResult"in e&&n(4,s=e.containsSearchResult),"containsActiveSearchResult"in e&&n(5,c=e.containsActiveSearchResult),"onEdit"in e&&n(6,u=e.onEdit)},[r,o,i,a,s,c,u,function(){return u(r)}]}var b4=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,y4,g4,Xo,{path:0,value:1,parser:2,isSelected:3,containsSearchResult:4,containsActiveSearchResult:5,onEdit:6},m4),n}return Ao(t,Na),Io(t)}();function w4(e){pi(e,"svelte-2v0aqj",".jse-column-header.svelte-2v0aqj.svelte-2v0aqj{background:none;border:none;font-family:inherit;font-size:inherit;color:inherit;display:flex;gap:var(--jse-padding, 10px);padding:calc(0.5 * var(--jse-padding, 10px)) var(--jse-padding, 10px) calc(0.5 * var(--jse-padding, 10px)) calc(0.5 * var(--jse-padding, 10px));width:100%}.jse-column-header.svelte-2v0aqj.svelte-2v0aqj:hover{background:var(--jse-table-header-background-highlight, #e8e8e8)}.jse-column-header.svelte-2v0aqj.svelte-2v0aqj:not(.jse-column-header.jse-readonly){cursor:pointer}.jse-column-header.svelte-2v0aqj span.jse-column-sort-icon.svelte-2v0aqj{height:1em}")}function x4(e){var t,n,r,o;return n=new SM({props:{data:e[1]===es.asc?kP:fP}}),{c:function(){t=ki("span"),Ea(n.$$.fragment),Ai(t,"class","jse-column-sort-icon svelte-2v0aqj"),Ai(t,"title",r="Currently sorted in ".concat(e[2]," order"))},m:function(e,r){bi(e,t,r),Pa(n,t,null),o=!0},p:function(e,i){var a={};2&i&&(a.data=e[1]===es.asc?kP:fP),n.$set(a),(!o||4&i&&r!==(r="Currently sorted in ".concat(e[2]," order")))&&Ai(t,"title",r)},i:function(e){o||(wa(n.$$.fragment,e),o=!0)},o:function(e){xa(n.$$.fragment,e),o=!1},d:function(e){e&&wi(t),Ta(n)}}}function k4(e){var t,n,r,o,i,a,s,c,u=nM(e[3],50)+"",l=void 0!==e[1]&&x4(e);return{c:function(){t=ki("button"),n=ki("span"),r=Si(u),o=Ci(),l&&l.c(),Ai(n,"class","jse-column-name"),Ai(t,"type","button"),Ai(t,"class","jse-column-header svelte-2v0aqj"),Ai(t,"title",i=e[0]?e[3]:e[3]+" (Click to sort the data by this column)"),zi(t,"jse-readonly",e[0])},m:function(i,u){bi(i,t,u),vi(t,n),vi(n,r),vi(t,o),l&&l.m(t,null),a=!0,s||(c=_i(t,"click",e[4]),s=!0)},p:function(e,n){var o=jo(n,1)[0];(!a||8&o)&&u!==(u=nM(e[3],50)+"")&&Ri(r,u),void 0!==e[1]?l?(l.p(e,o),2&o&&wa(l,1)):((l=x4(e)).c(),wa(l,1),l.m(t,null)):l&&(ya(),xa(l,1,1,(function(){l=null})),ba()),(!a||9&o&&i!==(i=e[0]?e[3]:e[3]+" (Click to sort the data by this column)"))&&Ai(t,"title",i),(!a||1&o)&&zi(t,"jse-readonly",e[0])},i:function(e){a||(wa(l),a=!0)},o:function(e){xa(l),a=!1},d:function(e){e&&wi(t),l&&l.d(),s=!1,c()}}}function j4(e,t,n){var r,o,i,a=t.path,s=t.sortedColumn,c=t.readOnly,u=t.onSort;return e.$$set=function(e){"path"in e&&n(5,a=e.path),"sortedColumn"in e&&n(6,s=e.sortedColumn),"readOnly"in e&&n(0,c=e.readOnly),"onSort"in e&&n(7,u=e.onSort)},e.$$.update=function(){var t;(32&e.$$.dirty&&n(3,r=Mx(a)?"values":KO(a)),96&e.$$.dirty)&&n(1,o=s&&Ax(a,null===(t=s)||void 0===t?void 0:t.path)?s.sortDirection:void 0);2&e.$$.dirty&&n(2,i=o?As[o]:void 0)},[c,o,i,r,function(){c||u({path:a,sortDirection:o===es.asc?es.desc:es.asc})},a,s,u]}var S4,C4,$4=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,j4,k4,Xo,{path:5,sortedColumn:6,readOnly:0,onSort:7},w4),n}return Ao(t,Na),Io(t)}();function _4(e,t){return S4||(C4=new WeakMap,S4=new ResizeObserver((function(e){var t,n=bo(e);try{for(n.s();!(t=n.n()).done;){var r=t.value,o=C4.get(r.target);o&&o(r.target)}}catch(e){n.e(e)}finally{n.f()}}))),C4.set(e,t),S4.observe(e),{destroy:function(){C4.delete(e),S4.unobserve(e)}}}function O4(e){pi(e,"svelte-fxr3ye",'.jse-table-mode-welcome.svelte-fxr3ye.svelte-fxr3ye{flex:1;display:flex;flex-direction:column;overflow:auto;align-items:center;border-left:var(--jse-main-border, 1px solid #d7d7d7);border-right:var(--jse-main-border, 1px solid #d7d7d7)}.jse-table-mode-welcome.svelte-fxr3ye.svelte-fxr3ye:last-child{border-bottom:var(--jse-main-border, 1px solid #d7d7d7)}.jse-table-mode-welcome.svelte-fxr3ye .jse-space.jse-before.svelte-fxr3ye{flex:1}.jse-table-mode-welcome.svelte-fxr3ye .jse-nested-arrays.svelte-fxr3ye{display:flex;flex-direction:column;gap:var(--jse-padding, 10px);max-width:300px;margin:2em var(--jse-padding, 10px);font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px)}.jse-table-mode-welcome.svelte-fxr3ye .jse-nested-arrays .jse-nested-arrays-info.svelte-fxr3ye{color:var(--jse-panel-color-readonly, #b2b2b2)}.jse-table-mode-welcome.svelte-fxr3ye .jse-nested-arrays button.jse-nested-array-action.svelte-fxr3ye{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);padding:5px;margin:0;background:var(--jse-button-primary-background, var(--jse-theme-color, #3883fa));color:var(--jse-button-primary-color, #fff);padding:var(--jse-padding, 10px) calc(2 * var(--jse-padding, 10px));border-radius:3px;text-align:left}.jse-table-mode-welcome.svelte-fxr3ye .jse-nested-arrays button.jse-nested-array-action.svelte-fxr3ye:hover{background:var(--jse-button-primary-background-highlight, var(--jse-theme-color-highlight, #5f9dff))}.jse-table-mode-welcome.svelte-fxr3ye .jse-nested-arrays button.jse-nested-array-action.svelte-fxr3ye:disabled{background:var(--jse-button-primary-background-disabled, #9d9d9d)}.jse-table-mode-welcome.svelte-fxr3ye .jse-nested-arrays button.jse-nested-array-action .jse-nested-array-count.svelte-fxr3ye{opacity:0.5;white-space:nowrap}.jse-table-mode-welcome.svelte-fxr3ye .jse-space.jse-after.svelte-fxr3ye{flex:2}')}function M4(e,t,n){var r=e.slice();r[16]=t[n];var o=r[9](r[16]);return r[17]=o,r}function A4(e){var t,n;return{c:function(){t=Si(e[7]),n=Si(" cannot be opened in table mode.")},m:function(e,r){bi(e,t,r),bi(e,n,r)},p:function(e,n){128&n&&Ri(t,e[7])},d:function(e){e&&(wi(t),wi(n))}}}function E4(e){var t;return{c:function(){t=Si("An object cannot be opened in table mode. You can open a nested array instead, or open the\n        document in tree mode.")},m:function(e,n){bi(e,t,n)},p:Ho,d:function(e){e&&wi(t)}}}function P4(e){var t;return{c:function(){t=Si("You can open the document in tree mode instead.")},m:function(e,n){bi(e,t,n)},d:function(e){e&&wi(t)}}}function T4(e){var t,n,r;return{c:function(){t=Si("You can open the document in tree mode instead, or paste a JSON Array using "),(n=ki("b")).textContent="Ctrl+V",r=Si(".")},m:function(e,o){bi(e,t,o),bi(e,n,o),bi(e,r,o)},d:function(e){e&&(wi(t),wi(n),wi(r))}}}function R4(e){var t,n,r,o,i,a,s,c,u,l,f,d,h,v=KO(e[16])+"",p=e[17]+"",m=1!==e[17]?"items":"item";function g(){return e[13](e[16])}return{c:function(){t=ki("button"),n=Si(e[8]),r=Si(' "'),o=Si(v),i=Si('"\n        '),a=ki("span"),s=Si("("),c=Si(p),u=Ci(),l=Si(m),f=Si(")"),Ai(a,"class","jse-nested-array-count svelte-fxr3ye"),Ai(t,"type","button"),Ai(t,"class","jse-nested-array-action svelte-fxr3ye")},m:function(e,v){bi(e,t,v),vi(t,n),vi(t,r),vi(t,o),vi(t,i),vi(t,a),vi(a,s),vi(a,c),vi(a,u),vi(a,l),vi(a,f),d||(h=_i(t,"click",g),d=!0)},p:function(t,r){e=t,256&r&&Ri(n,e[8]),16&r&&v!==(v=KO(e[16])+"")&&Ri(o,v),16&r&&p!==(p=e[17]+"")&&Ri(c,p),16&r&&m!==(m=1!==e[17]?"items":"item")&&Ri(l,m)},d:function(e){e&&wi(t),d=!1,h()}}}function N4(e){var t,n,r,o,i,a,s,c,u,l,f,d,h,v,p,m,g,y;function b(e,t){return e[6]?E4:A4}var w=b(e),x=w(e);function k(e,t){return e[5]&&!e[0]?T4:P4}for(var j=k(e),S=j(e),C=Sa(e[4]),$=[],_=0;_<C.length;_+=1)$[_]=R4(M4(e,C,_));return{c:function(){t=ki("div"),n=ki("div"),r=Ci(),o=ki("div"),i=ki("div"),a=Si(e[7]),s=Ci(),c=ki("div"),x.c(),u=Ci(),S.c(),l=Ci();for(var g=0;g<$.length;g+=1)$[g].c();f=Ci(),d=ki("button"),h=Si(e[8]),v=Si(" in tree mode"),p=Ci(),m=ki("div"),Ai(n,"class","jse-space jse-before svelte-fxr3ye"),Ai(i,"class","jse-nested-arrays-title"),Ai(c,"class","jse-nested-arrays-info svelte-fxr3ye"),Ai(d,"type","button"),Ai(d,"class","jse-nested-array-action svelte-fxr3ye"),Ai(o,"class","jse-nested-arrays svelte-fxr3ye"),Ai(m,"class","jse-space jse-after svelte-fxr3ye"),Ai(t,"class","jse-table-mode-welcome svelte-fxr3ye"),Ai(t,"role","none")},m:function(b,w){bi(b,t,w),vi(t,n),vi(t,r),vi(t,o),vi(o,i),vi(i,a),vi(o,s),vi(o,c),x.m(c,null),vi(c,u),S.m(c,null),vi(o,l);for(var k=0;k<$.length;k+=1)$[k]&&$[k].m(o,null);vi(o,f),vi(o,d),vi(d,h),vi(d,v),vi(t,p),vi(t,m),g||(y=[_i(d,"click",e[14]),_i(t,"click",e[15])],g=!0)},p:function(e,t){var n=jo(t,1)[0];if(128&n&&Ri(a,e[7]),w===(w=b(e))&&x?x.p(e,n):(x.d(1),(x=w(e))&&(x.c(),x.m(c,u))),j!==(j=k(e))&&(S.d(1),(S=j(e))&&(S.c(),S.m(c,null))),786&n){var r;for(C=Sa(e[4]),r=0;r<C.length;r+=1){var i=M4(e,C,r);$[r]?$[r].p(i,n):($[r]=R4(i),$[r].c(),$[r].m(o,f))}for(;r<$.length;r+=1)$[r].d(1);$.length=C.length}256&n&&Ri(h,e[8])},i:Ho,o:Ho,d:function(e){e&&wi(t),x.d(),S.d(),xi($,e),g=!1,Go(y)}}}function I4(e,t,n){var r,o,i,a,s,c=t.text,u=t.json,l=t.readOnly,f=t.parser,d=t.openJSONEditorModal,h=t.onChangeMode,v=t.onClick;return e.$$set=function(e){"text"in e&&n(10,c=e.text),"json"in e&&n(11,u=e.json),"readOnly"in e&&n(0,l=e.readOnly),"parser"in e&&n(12,f=e.parser),"openJSONEditorModal"in e&&n(1,d=e.openJSONEditorModal),"onChangeMode"in e&&n(2,h=e.onChangeMode),"onClick"in e&&n(3,v=e.onClick)},e.$$.update=function(){1&e.$$.dirty&&n(8,r=l?"View":"Edit"),2048&e.$$.dirty&&n(4,s=u?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=[];return function e(r,o){Rs(r)&&o.length<t&&Object.keys(r).forEach((function(t){e(r[t],o.concat(t))})),Ts(r)&&n.push(o)}(e,[]),n}(u).slice(0,99).filter((function(e){return e.length>0})):[]),16&e.$$.dirty&&n(6,o=!Mx(s)),3072&e.$$.dirty&&n(5,i=void 0===u&&(""===c||void 0===c)),6240&e.$$.dirty&&n(7,a=o?"Object with nested arrays":i?"An empty document":Rs(u)?"An object":Ts(u)?"An empty array":"A ".concat(el(u,f)))},[l,d,h,v,s,i,o,a,r,function(e){return Ws(u,e).length},c,u,f,function(e){return d(e)},function(){return h(Ga.tree)},function(){return v()}]}var D4=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,I4,N4,Xo,{text:10,json:11,readOnly:0,parser:12,openJSONEditorModal:1,onChangeMode:2,onClick:3},O4),n}return Ao(t,Na),Io(t)}();function z4(e){pi(e,"svelte-1nml1r3",".jse-column-header.svelte-1nml1r3{background:none;border:none;font-family:inherit;font-size:inherit;color:inherit;display:flex;gap:var(--jse-padding, 10px);padding:calc(0.5 * var(--jse-padding, 10px)) var(--jse-padding, 10px) calc(0.5 * var(--jse-padding, 10px)) calc(0.5 * var(--jse-padding, 10px));width:100%}.jse-column-header.svelte-1nml1r3:hover{background:var(--jse-table-header-background-highlight, #e8e8e8)}.jse-column-header.svelte-1nml1r3:not(.jse-column-header.jse-readonly){cursor:pointer}")}function B4(e){var t,n,r,o,i,a;return n=new SM({props:{data:NP}}),{c:function(){t=ki("button"),Ea(n.$$.fragment),Ai(t,"type","button"),Ai(t,"class","jse-column-header svelte-1nml1r3"),Ai(t,"title",r="The Columns are created by sampling ".concat(e[1]," items out of ").concat(e[0],". ")+"If you're missing a column, click here to sample all of the items instead of a subset. This is slower.")},m:function(r,s){bi(r,t,s),Pa(n,t,null),o=!0,i||(a=_i(t,"click",e[3]),i=!0)},p:function(e,n){var i=jo(n,1)[0];(!o||3&i&&r!==(r="The Columns are created by sampling ".concat(e[1]," items out of ").concat(e[0],". ")+"If you're missing a column, click here to sample all of the items instead of a subset. This is slower."))&&Ai(t,"title",r)},i:function(e){o||(wa(n.$$.fragment,e),o=!0)},o:function(e){xa(n.$$.fragment,e),o=!1},d:function(e){e&&wi(t),Ta(n),i=!1,a()}}}function L4(e,t,n){var r=t.count,o=t.maxSampleCount,i=t.onRefresh;return e.$$set=function(e){"count"in e&&n(0,r=e.count),"maxSampleCount"in e&&n(1,o=e.maxSampleCount),"onRefresh"in e&&n(2,i=e.onRefresh)},[r,o,i,function(){return i()}]}var q4=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,L4,B4,Xo,{count:0,maxSampleCount:1,onRefresh:2},z4),n}return Ao(t,Na),Io(t)}();function F4(e){pi(e,"svelte-12ygzbc",'.jse-table-mode.svelte-12ygzbc.svelte-12ygzbc{flex:1;display:flex;flex-direction:column;position:relative;background:var(--jse-background-color, #fff);min-width:0;min-height:0;font-family:var(--jse-font-family-mono, consolas, menlo, monaco, "Ubuntu Mono", "source-code-pro", monospace);font-size:var(--jse-font-size-mono, 14px);color:var(--jse-text-color, #4d4d4d);line-height:var(--jse-line-height, calc(1em + 4px))}.jse-table-mode.no-main-menu.svelte-12ygzbc.svelte-12ygzbc{border-top:var(--jse-main-border, 1px solid #d7d7d7)}.jse-table-mode.svelte-12ygzbc .jse-search-box-container.svelte-12ygzbc{position:relative;height:0;top:calc(var(--jse-line-height, calc(1em + 4px)) + 2 * var(--jse-padding, 10px));margin-right:calc(var(--jse-padding, 10px) + 20px);margin-left:var(--jse-padding, 10px);text-align:right;z-index:3}.jse-table-mode.svelte-12ygzbc .jse-hidden-input-label.svelte-12ygzbc{position:fixed;right:0;top:0;width:0;height:0}.jse-table-mode.svelte-12ygzbc .jse-hidden-input-label .jse-hidden-input.svelte-12ygzbc{width:0;height:0;padding:0;border:0;outline:none}.jse-table-mode.svelte-12ygzbc .jse-contents.svelte-12ygzbc{flex:1;align-items:flex-start;flex-direction:column;display:flex;overflow:auto;overflow-anchor:none;scrollbar-gutter:stable;border-left:var(--jse-main-border, 1px solid #d7d7d7);border-right:var(--jse-main-border, 1px solid #d7d7d7)}.jse-table-mode.svelte-12ygzbc .jse-contents.svelte-12ygzbc:last-child{border-bottom:var(--jse-main-border, 1px solid #d7d7d7)}.jse-table-mode.svelte-12ygzbc .jse-contents table.jse-table-main.svelte-12ygzbc{border-collapse:collapse;border-spacing:0}.jse-table-mode.svelte-12ygzbc .jse-contents table.jse-table-main .jse-table-invisible-start-section td.svelte-12ygzbc,.jse-table-mode.svelte-12ygzbc .jse-contents table.jse-table-main .jse-table-invisible-end-section td.svelte-12ygzbc{margin:0;padding:0}.jse-table-mode.svelte-12ygzbc .jse-contents table.jse-table-main .jse-table-invisible-end-section td.svelte-12ygzbc{padding-bottom:var(--jse-padding, 10px)}.jse-table-mode.svelte-12ygzbc .jse-contents table.jse-table-main .jse-table-row.svelte-12ygzbc:hover{background-color:var(--jse-table-row-odd-background, rgba(0, 0, 0, 0.05))}.jse-table-mode.svelte-12ygzbc .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.svelte-12ygzbc{padding:0 var(--jse-padding, 10px) 0 0;vertical-align:top;white-space:nowrap;height:var(--jse-line-height, calc(1em + 4px))}.jse-table-mode.svelte-12ygzbc .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-header.svelte-12ygzbc,.jse-table-mode.svelte-12ygzbc .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-gutter.svelte-12ygzbc{font-weight:normal;text-align:left;color:var(--jse-text-readonly, #8d8d8d);background:var(--jse-table-header-background, #f5f5f5)}.jse-table-mode.svelte-12ygzbc .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-header.svelte-12ygzbc{padding:0;position:sticky;top:0}.jse-table-mode.svelte-12ygzbc .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-header .jse-table-root-error.svelte-12ygzbc{padding:calc(0.5 * var(--jse-padding, 10px)) var(--jse-padding, 10px) calc(0.5 * var(--jse-padding, 10px)) calc(0.5 * var(--jse-padding, 10px))}.jse-table-mode.svelte-12ygzbc .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-gutter.svelte-12ygzbc{padding:0 var(--jse-padding, 10px) 0 calc(0.5 * var(--jse-padding, 10px))}.jse-table-mode.svelte-12ygzbc .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-selected-value.svelte-12ygzbc>.jse-value{background:var(--jse-selection-background-color, #d3d3d3)}.jse-table-mode.svelte-12ygzbc .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.svelte-12ygzbc div.jse-value{overflow-wrap:normal;white-space:nowrap;vertical-align:top;display:inline-block}.jse-table-mode.svelte-12ygzbc .jse-contents table.jse-table-main .jse-table-row .jse-table-cell .jse-context-menu-anchor.svelte-12ygzbc{display:inline-flex;position:relative;vertical-align:top}.jse-table-mode.svelte-12ygzbc .jse-contents.jse-contents-loading.svelte-12ygzbc{align-items:unset}.jse-table-mode.svelte-12ygzbc .jse-contents.jse-contents-loading .jse-loading-space.svelte-12ygzbc{flex:1}.jse-table-mode.svelte-12ygzbc .jse-contents.jse-contents-loading .jse-loading.svelte-12ygzbc{flex:2;text-align:center;color:var(--jse-panel-color-readonly, #b2b2b2);box-sizing:border-box;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px)}')}function V4(e,t,n){var r,o,i,a=e.slice();a[132]=t[n],a[138]=n;var s=a[27].startIndex+a[138];a[133]=s;var c=a[26].rows[a[133]];a[134]=c;var u=XB([String(a[133])],null===(r=a[134])||void 0===r?void 0:r.row);a[135]=u;var l=null!==(o=a[20])&&void 0!==o&&o.itemsMap?RD(null===(i=a[20])||void 0===i?void 0:i.itemsMap,ec(a[133])):void 0;return a[136]=l,a}function H4(e,t,n){var r,o=e.slice();o[139]=t[n],o[146]=n;var i=[String(o[133])].concat(o[139]);o[140]=i;var a=Zs(o[140]);o[141]=a;var s=Ws(o[132],o[139]);o[142]=s;var c=mA(o[12].selection)&&PA(o[12].selection.path,o[140]);o[143]=c;var u=null===(r=o[134])||void 0===r?void 0:r.columns[o[146]];o[144]=u;var l=XB(o[140],o[144]);return o[135]=l,o}function W4(e,t,n){var r=e.slice();return r[139]=t[n],r}function U4(e){var t,n=e.slice(),r=XB([],null===(t=n[26])||void 0===t?void 0:t.root);return n[135]=r,n}function J4(e){var t,n,r;function o(t){e[79](t)}var i={containsValidArray:e[22],readOnly:e[0],historyState:e[24],onSort:e[47],onTransform:e[48],onUndo:e[49],onRedo:e[50],onContextMenu:e[39],onRenderMenu:e[5]};return void 0!==e[9]&&(i.showSearch=e[9]),t=new a4({props:i}),ta.push((function(){return Aa(t,"showSearch",o)})),{c:function(){Ea(t.$$.fragment)},m:function(e,n){Pa(t,e,n),r=!0},p:function(e,r){var o={};4194304&r[0]&&(o.containsValidArray=e[22]),1&r[0]&&(o.readOnly=e[0]),16777216&r[0]&&(o.historyState=e[24]),32&r[0]&&(o.onRenderMenu=e[5]),!n&&512&r[0]&&(n=!0,o.showSearch=e[9],ua((function(){return n=!1}))),t.$set(o)},i:function(e){r||(wa(t.$$.fragment,e),r=!0)},o:function(e){xa(t.$$.fragment,e),r=!1},d:function(e){Ta(t,e)}}}function K4(e){var t;return{c:function(){(t=ki("div")).innerHTML='<div class="jse-loading-space svelte-12ygzbc"></div> <div class="jse-loading svelte-12ygzbc">loading...</div>',Ai(t,"class","jse-contents jse-contents-loading svelte-12ygzbc")},m:function(e,n){bi(e,t,n)},p:Ho,i:Ho,o:Ho,d:function(e){e&&wi(t)}}}function G4(e){var t,n,r,o,i,a,s,c,u,l=[X4,Y4,Q4],f=[];function d(e,t){return e[22]?0:e[18]&&void 0!==e[17]&&""!==e[17]?1:2}return o=d(e),i=f[o]=l[o](e),{c:function(){t=ki("label"),n=ki("input"),r=Ci(),i.c(),a=$i(),Ai(n,"type","text"),n.readOnly=!0,Ai(n,"tabindex","-1"),Ai(n,"class","jse-hidden-input svelte-12ygzbc"),Ai(t,"class","jse-hidden-input-label svelte-12ygzbc")},m:function(i,l){bi(i,t,l),vi(t,n),e[80](n),bi(i,r,l),f[o].m(i,l),bi(i,a,l),s=!0,c||(u=_i(n,"paste",e[44]),c=!0)},p:function(e,t){var n=o;(o=d(e))===n?f[o].p(e,t):(ya(),xa(f[n],1,1,(function(){f[n]=null})),ba(),(i=f[o])?i.p(e,t):(i=f[o]=l[o](e)).c(),wa(i,1),i.m(a.parentNode,a))},i:function(e){s||(wa(i),s=!0)},o:function(e){xa(i),s=!1},d:function(n){n&&(wi(t),wi(r),wi(a)),e[80](null),f[o].d(n),c=!1,u()}}}function Q4(e){var t,n;return t=new D4({props:{text:e[17],json:e[8],readOnly:e[0],parser:e[2],openJSONEditorModal:e[46],onChangeMode:e[4],onClick:e[84]}}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},p:function(e,n){var r={};131072&n[0]&&(r.text=e[17]),256&n[0]&&(r.json=e[8]),1&n[0]&&(r.readOnly=e[0]),4&n[0]&&(r.parser=e[2]),16&n[0]&&(r.onChangeMode=e[4]),t.$set(r)},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}function Y4(e){var t,n,r,o;return t=new GN({props:{type:"error",message:"The loaded JSON document is invalid and could not be repaired automatically.",actions:e[0]?[]:[{icon:vP,text:"Repair manually",title:'Open the document in "code" mode and repair it manually',onClick:e[42]}]}}),r=new kL({props:{text:e[17],json:e[8],indentation:e[3],parser:e[2]}}),{c:function(){Ea(t.$$.fragment),n=Ci(),Ea(r.$$.fragment)},m:function(e,i){Pa(t,e,i),bi(e,n,i),Pa(r,e,i),o=!0},p:function(e,n){var o={};1&n[0]&&(o.actions=e[0]?[]:[{icon:vP,text:"Repair manually",title:'Open the document in "code" mode and repair it manually',onClick:e[42]}]),t.$set(o);var i={};131072&n[0]&&(i.text=e[17]),256&n[0]&&(i.json=e[8]),8&n[0]&&(i.indentation=e[3]),4&n[0]&&(i.parser=e[2]),r.$set(i)},i:function(e){o||(wa(t.$$.fragment,e),wa(r.$$.fragment,e),o=!0)},o:function(e){xa(t.$$.fragment,e),xa(r.$$.fragment,e),o=!1},d:function(e){e&&wi(n),Ta(t,e),Ta(r,e)}}}function X4(e){var t,n,r,o,i,a,s,c,u,l,f,d,h,v,p,m,g,y,b,w,x,k,j,S,C,$,_,O=!Mx(null===(t=e[26])||void 0===t?void 0:t.root);r=new BB({props:{json:e[8],documentState:e[12],parser:e[2],showSearch:e[9],showReplace:e[21],readOnly:e[0],columns:e[11],onSearch:e[30],onFocus:e[31],onPatch:e[34],onClose:e[32]}});for(var M=O&&Z4(U4(e)),A=Sa(e[11]),E=[],P=0;P<A.length;P+=1)E[P]=t6(W4(e,A,P));for(var T=function(e){return xa(E[e],1,1,(function(){E[e]=null}))},R=e[28]&&n6(e),N=Sa(e[27].visibleItems),I=[],D=0;D<N.length;D+=1)I[D]=f6(V4(e,N,D));var z=function(e){return xa(I[e],1,1,(function(){I[e]=null}))},B=e[19]&&d6(e),L=e[23]&&h6(e);return S=new aI({props:{validationErrors:e[13],selectError:e[45]}}),{c:function(){n=ki("div"),Ea(r.$$.fragment),o=Ci(),i=ki("div"),a=ki("table"),s=ki("tbody"),c=ki("tr"),u=ki("th"),M&&M.c(),l=Ci();for(var t=0;t<E.length;t+=1)E[t].c();f=Ci(),R&&R.c(),d=Ci(),h=ki("tr"),v=ki("td"),m=Ci();for(var C=0;C<I.length;C+=1)I[C].c();g=Ci(),y=ki("tr"),b=ki("td"),x=Ci(),B&&B.c(),k=Ci(),L&&L.c(),j=Ci(),Ea(S.$$.fragment),Ai(n,"class","jse-search-box-container svelte-12ygzbc"),Ai(u,"class","jse-table-cell jse-table-cell-header svelte-12ygzbc"),Ai(c,"class","jse-table-row jse-table-row-header svelte-12ygzbc"),Ai(v,"colspan",p=e[11].length),Ai(v,"class","svelte-12ygzbc"),Ii(v,"height",e[27].startHeight+"px"),Ai(h,"class","jse-table-invisible-start-section"),Ai(b,"colspan",w=e[11].length),Ai(b,"class","svelte-12ygzbc"),Ii(b,"height",e[27].endHeight+"px"),Ai(y,"class","jse-table-invisible-end-section"),Ai(a,"class","jse-table-main svelte-12ygzbc"),Ai(i,"class","jse-contents svelte-12ygzbc")},m:function(t,p){bi(t,n,p),Pa(r,n,null),bi(t,o,p),bi(t,i,p),vi(i,a),vi(a,s),vi(s,c),vi(c,u),M&&M.m(u,null),vi(c,l);for(var w=0;w<E.length;w+=1)E[w]&&E[w].m(c,null);vi(c,f),R&&R.m(c,null),vi(s,d),vi(s,h),vi(h,v),vi(s,m);for(var O=0;O<I.length;O+=1)I[O]&&I[O].m(s,null);vi(s,g),vi(s,y),vi(y,b),e[83](i),bi(t,x,p),B&&B.m(t,p),bi(t,k,p),L&&L.m(t,p),bi(t,j,p),Pa(S,t,p),C=!0,$||(_=[si(_4.call(null,i,e[51])),_i(i,"scroll",e[35])],$=!0)},p:function(e,t){var n,o={};if(256&t[0]&&(o.json=e[8]),4096&t[0]&&(o.documentState=e[12]),4&t[0]&&(o.parser=e[2]),512&t[0]&&(o.showSearch=e[9]),2097152&t[0]&&(o.showReplace=e[21]),1&t[0]&&(o.readOnly=e[0]),2048&t[0]&&(o.columns=e[11]),r.$set(o),67108864&t[0]&&(O=!Mx(null===(n=e[26])||void 0===n?void 0:n.root)),O?M?(M.p(U4(e),t),67108864&t[0]&&wa(M,1)):((M=Z4(U4(e))).c(),wa(M,1),M.m(u,null)):M&&(ya(),xa(M,1,1,(function(){M=null})),ba()),6145&t[0]|4&t[1]){var i;for(A=Sa(e[11]),i=0;i<A.length;i+=1){var a=W4(e,A,i);E[i]?(E[i].p(a,t),wa(E[i],1)):(E[i]=t6(a),E[i].c(),wa(E[i],1),E[i].m(c,f))}for(ya(),i=A.length;i<E.length;i+=1)T(i);ba()}if(e[28]?R?(R.p(e,t),268435456&t[0]&&wa(R,1)):((R=n6(e)).c(),wa(R,1),R.m(c,null)):R&&(ya(),xa(R,1,1,(function(){R=null})),ba()),(!C||2048&t[0]&&p!==(p=e[11].length))&&Ai(v,"colspan",p),134217728&t[0]&&Ii(v,"height",e[27].startHeight+"px"),504371205&t[0]|2129984&t[1]){var l;for(N=Sa(e[27].visibleItems),l=0;l<N.length;l+=1){var d=V4(e,N,l);I[l]?(I[l].p(d,t),wa(I[l],1)):(I[l]=f6(d),I[l].c(),wa(I[l],1),I[l].m(s,g))}for(ya(),l=N.length;l<I.length;l+=1)z(l);ba()}(!C||2048&t[0]&&w!==(w=e[11].length))&&Ai(b,"colspan",w),134217728&t[0]&&Ii(b,"height",e[27].endHeight+"px"),e[19]?B?(B.p(e,t),524288&t[0]&&wa(B,1)):((B=d6(e)).c(),wa(B,1),B.m(k.parentNode,k)):B&&(ya(),xa(B,1,1,(function(){B=null})),ba()),e[23]?L?(L.p(e,t),8388608&t[0]&&wa(L,1)):((L=h6(e)).c(),wa(L,1),L.m(j.parentNode,j)):L&&(ya(),xa(L,1,1,(function(){L=null})),ba());var h={};8192&t[0]&&(h.validationErrors=e[13]),S.$set(h)},i:function(e){if(!C){wa(r.$$.fragment,e),wa(M);for(var t=0;t<A.length;t+=1)wa(E[t]);wa(R);for(var n=0;n<N.length;n+=1)wa(I[n]);wa(B),wa(L),wa(S.$$.fragment,e),C=!0}},o:function(e){xa(r.$$.fragment,e),xa(M),E=E.filter(Boolean);for(var t=0;t<E.length;t+=1)xa(E[t]);xa(R),I=I.filter(Boolean);for(var n=0;n<I.length;n+=1)xa(I[n]);xa(B),xa(L),xa(S.$$.fragment,e),C=!1},d:function(t){t&&(wi(n),wi(o),wi(i),wi(x),wi(k),wi(j)),Ta(r),M&&M.d(),xi(E,t),R&&R.d(),xi(I,t),e[83](null),B&&B.d(t),L&&L.d(t),Ta(S,t),$=!1,Go(_)}}}function Z4(e){var t,n,r=e[135]&&e6(e);return{c:function(){r&&r.c(),t=$i()},m:function(e,o){r&&r.m(e,o),bi(e,t,o),n=!0},p:function(e,n){e[135]?r?(r.p(e,n),67108864&n[0]&&wa(r,1)):((r=e6(e)).c(),wa(r,1),r.m(t.parentNode,t)):r&&(ya(),xa(r,1,1,(function(){r=null})),ba())},i:function(e){n||(wa(r),n=!0)},o:function(e){xa(r),n=!1},d:function(e){e&&wi(t),r&&r.d(e)}}}function e6(e){var t,n,r;return n=new zD({props:{validationError:e[135],onExpand:Zq}}),{c:function(){t=ki("div"),Ea(n.$$.fragment),Ai(t,"class","jse-table-root-error svelte-12ygzbc")},m:function(e,o){bi(e,t,o),Pa(n,t,null),r=!0},p:function(e,t){var r={};67108864&t[0]&&(r.validationError=e[135]),n.$set(r)},i:function(e){r||(wa(n.$$.fragment,e),r=!0)},o:function(e){xa(n.$$.fragment,e),r=!1},d:function(e){e&&wi(t),Ta(n)}}}function t6(e){var t,n,r;return n=new $4({props:{path:e[139],sortedColumn:e[12].sortedColumn,readOnly:e[0],onSort:e[33]}}),{c:function(){t=ki("th"),Ea(n.$$.fragment),Ai(t,"class","jse-table-cell jse-table-cell-header svelte-12ygzbc")},m:function(e,o){bi(e,t,o),Pa(n,t,null),r=!0},p:function(e,t){var r={};2048&t[0]&&(r.path=e[139]),4096&t[0]&&(r.sortedColumn=e[12].sortedColumn),1&t[0]&&(r.readOnly=e[0]),n.$set(r)},i:function(e){r||(wa(n.$$.fragment,e),r=!0)},o:function(e){xa(n.$$.fragment,e),r=!1},d:function(e){e&&wi(t),Ta(n)}}}function n6(e){var t,n,r;return n=new q4({props:{count:Array.isArray(e[8])?e[8].length:0,maxSampleCount:e[10],onRefresh:e[81]}}),{c:function(){t=ki("th"),Ea(n.$$.fragment),Ai(t,"class","jse-table-cell jse-table-cell-header svelte-12ygzbc")},m:function(e,o){bi(e,t,o),Pa(n,t,null),r=!0},p:function(e,t){var r={};256&t[0]&&(r.count=Array.isArray(e[8])?e[8].length:0),1024&t[0]&&(r.maxSampleCount=e[10]),1024&t[0]&&(r.onRefresh=e[81]),n.$set(r)},i:function(e){r||(wa(n.$$.fragment,e),r=!0)},o:function(e){xa(n.$$.fragment,e),r=!1},d:function(e){e&&wi(t),Ta(n)}}}function r6(e){var t,n;return t=new zD({props:{validationError:e[135],onExpand:Zq}}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},p:function(e,n){var r={};201326592&n[0]&&(r.validationError=e[135]),t.$set(r)},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}function o6(e){var t,n,r,o,i,a,s,c=e[133]+"",u=e[135]&&r6(e);function l(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e)[82].apply(t,[e[133]].concat(r))}return{c:function(){t=ki("th"),n=Si(c),r=Ci(),u&&u.c(),Ai(t,"class","jse-table-cell jse-table-cell-gutter svelte-12ygzbc")},m:function(e,c){bi(e,t,c),vi(t,n),vi(t,r),u&&u.m(t,null),i=!0,a||(s=si(o=_4.call(null,t,l)),a=!0)},p:function(r,a){e=r,(!i||134217728&a[0])&&c!==(c=e[133]+"")&&Ri(n,c),e[135]?u?(u.p(e,a),201326592&a[0]&&wa(u,1)):((u=r6(e)).c(),wa(u,1),u.m(t,null)):u&&(ya(),xa(u,1,1,(function(){u=null})),ba()),o&&Qo(o.update)&&134217728&a[0]&&o.update.call(null,l)},i:function(e){i||(wa(u),i=!0)},o:function(e){xa(u),i=!1},d:function(e){e&&wi(t),u&&u.d(),a=!1,s()}}}function i6(e){var t,n;return t=new p4({props:{path:e[140],value:void 0!==e[142]?e[142]:"",enforceString:iA(e[142],e[12].enforceStringMap,e[141],e[25].parser),selection:e[143]?e[12].selection:null,searchResultItems:e[147],context:e[25]}}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},p:function(e,n){var r={};134219776&n[0]&&(r.path=e[140]),134219776&n[0]&&(r.value=void 0!==e[142]?e[142]:""),167778304&n[0]&&(r.enforceString=iA(e[142],e[12].enforceStringMap,e[141],e[25].parser)),134223872&n[0]&&(r.selection=e[143]?e[12].selection:null),135268352&n[0]&&(r.searchResultItems=e[147]),33554432&n[0]&&(r.context=e[25]),t.$set(r)},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}function a6(e){var t,n;return t=new b4({props:{path:e[140],value:e[142],parser:e[2],isSelected:e[143],containsSearchResult:!Mx(e[147]),containsActiveSearchResult:e[148],onEdit:e[46]}}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},p:function(e,n){var r={};134219776&n[0]&&(r.path=e[140]),134219776&n[0]&&(r.value=e[142]),4&n[0]&&(r.parser=e[2]),134223872&n[0]&&(r.isSelected=e[143]),135268352&n[0]&&(r.containsSearchResult=!Mx(e[147])),135268352&n[0]&&(r.containsActiveSearchResult=e[148]),t.$set(r)},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}function s6(e){var t,n,r,o;return n=new dD({props:{selected:!0,onContextMenu:e[37]}}),{c:function(){t=ki("div"),Ea(n.$$.fragment),r=Ci(),Ai(t,"class","jse-context-menu-anchor svelte-12ygzbc")},m:function(e,i){bi(e,t,i),Pa(n,t,null),bi(e,r,i),o=!0},p:Ho,i:function(e){o||(wa(n.$$.fragment,e),o=!0)},o:function(e){xa(n.$$.fragment,e),o=!1},d:function(e){e&&(wi(t),wi(r)),Ta(n)}}}function c6(e){var t,n;return t=new zD({props:{validationError:e[135],onExpand:Zq}}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},p:function(e,n){var r={};201328640&n[0]&&(r.validationError=e[135]),t.$set(r)},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}function u6(e){var t,n,r,o,i,a,s,c,u=!e[0]&&e[143]&&!LA(e[12].selection),l=[a6,i6],f=[];function d(e,t){return 134219776&t[0]&&(n=null),null==n&&(n=!!Qu(e[142])),n?0:1}function h(e,t){return 0===t?function(e){var t=e.slice(),n=t[136]?RD(t[136],t[141]):void 0;t[147]=n;var r=!!t[147]&&Object.values(t[147]).some((function(e){return e.some((function(e){return e.active}))}));return t[148]=r,t}(e):function(e){var t,n,r=e.slice(),o=null!==(t=r[20])&&void 0!==t&&t.itemsMap?_E(null===(n=r[20])||void 0===n?void 0:n.itemsMap,r[141]):void 0;return r[147]=o,r}(e)}r=d(e,[-1,-1,-1,-1,-1]),o=f[r]=l[r](h(e,r));var v=u&&s6(e),p=e[135]&&c6(e);return{c:function(){t=ki("td"),o.c(),i=$i(),v&&v.c(),a=$i(),p&&p.c(),Ai(t,"class","jse-table-cell svelte-12ygzbc"),Ai(t,"data-path",s=MO(e[140])),zi(t,"jse-selected-value",e[143])},m:function(e,n){bi(e,t,n),f[r].m(t,null),vi(t,i),v&&v.m(t,null),vi(t,a),p&&p.m(t,null),c=!0},p:function(e,n){var m=r;(r=d(e,n))===m?f[r].p(h(e,r),n):(ya(),xa(f[m],1,1,(function(){f[m]=null})),ba(),(o=f[r])?o.p(h(e,r),n):(o=f[r]=l[r](h(e,r))).c(),wa(o,1),o.m(t,i)),134223873&n[0]&&(u=!e[0]&&e[143]&&!LA(e[12].selection)),u?v?(v.p(e,n),134223873&n[0]&&wa(v,1)):((v=s6(e)).c(),wa(v,1),v.m(t,a)):v&&(ya(),xa(v,1,1,(function(){v=null})),ba()),e[135]?p?(p.p(e,n),201328640&n[0]&&wa(p,1)):((p=c6(e)).c(),wa(p,1),p.m(t,null)):p&&(ya(),xa(p,1,1,(function(){p=null})),ba()),(!c||134219776&n[0]&&s!==(s=MO(e[140])))&&Ai(t,"data-path",s),(!c||134223872&n[0])&&zi(t,"jse-selected-value",e[143])},i:function(e){c||(wa(o),wa(v),wa(p),c=!0)},o:function(e){xa(o),xa(v),xa(p),c=!1},d:function(e){e&&wi(t),f[r].d(),v&&v.d(),p&&p.d()}}}function l6(e){var t;return{c:function(){Ai(t=ki("td"),"class","jse-table-cell svelte-12ygzbc")},m:function(e,n){bi(e,t,n)},d:function(e){e&&wi(t)}}}function f6(e){for(var t,n,r,o,i=e[133],a=o6(e),s=Sa(e[11]),c=[],u=0;u<s.length;u+=1)c[u]=u6(H4(e,s,u));var l=function(e){return xa(c[e],1,1,(function(){c[e]=null}))},f=e[28]&&l6();return{c:function(){t=ki("tr"),a.c(),n=Ci();for(var e=0;e<c.length;e+=1)c[e].c();r=Ci(),f&&f.c(),Ai(t,"class","jse-table-row svelte-12ygzbc")},m:function(e,i){bi(e,t,i),a.m(t,null),vi(t,n);for(var s=0;s<c.length;s+=1)c[s]&&c[s].m(t,null);vi(t,r),f&&f.m(t,null),o=!0},p:function(e,o){if(134217728&o[0]&&Xo(i,i=e[133])?(ya(),xa(a,1,1,Ho),ba(),(a=o6(e)).c(),wa(a,1),a.m(t,n)):a.p(e,o),235935749&o[0]|32832&o[1]){var u;for(s=Sa(e[11]),u=0;u<s.length;u+=1){var d=H4(e,s,u);c[u]?(c[u].p(d,o),wa(c[u],1)):(c[u]=u6(d),c[u].c(),wa(c[u],1),c[u].m(t,r))}for(ya(),u=s.length;u<c.length;u+=1)l(u);ba()}e[28]?f||((f=l6()).c(),f.m(t,null)):f&&(f.d(1),f=null)},i:function(e){if(!o){wa(a);for(var t=0;t<s.length;t+=1)wa(c[t]);o=!0}},o:function(e){xa(a),c=c.filter(Boolean);for(var t=0;t<c.length;t+=1)xa(c[t]);o=!1},d:function(e){e&&wi(t),a.d(e),xi(c,e),f&&f.d()}}}function d6(e){var t,n;return t=new GN({props:{type:"info",message:"You pasted a JSON ".concat(Array.isArray(e[19].contents)?"array":"object"," as text"),actions:[{icon:pP,text:"Paste as JSON instead",title:"Paste the text as JSON instead of a single value",onMouseDown:e[40]},{text:"Leave as is",title:"Keep the pasted content as a single value",onClick:e[41]}]}}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},p:function(e,n){var r={};524288&n[0]&&(r.message="You pasted a JSON ".concat(Array.isArray(e[19].contents)?"array":"object"," as text")),t.$set(r)},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}function h6(e){var t,n;return t=new GN({props:{type:"success",message:"The loaded JSON document was invalid but is successfully repaired.",actions:e[0]?[]:[{icon:zP,text:"Ok",title:"Accept the repaired document",onClick:e[7]},{icon:vP,text:"Repair manually instead",title:"Leave the document unchanged and repair it manually instead",onClick:e[42]}],onClose:e[6]}}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},p:function(e,n){var r={};1&n[0]&&(r.actions=e[0]?[]:[{icon:zP,text:"Ok",title:"Accept the repaired document",onClick:e[7]},{icon:vP,text:"Repair manually instead",title:"Leave the document unchanged and repair it manually instead",onClick:e[42]}]),t.$set(r)},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}function v6(e){var t,n,r,o,i,a,s,c=e[1]&&J4(e),u=[G4,K4],l=[];return r=function(e,t){return e[29]?1:0}(e),o=l[r]=u[r](e),{c:function(){t=ki("div"),c&&c.c(),n=Ci(),o.c(),Ai(t,"role","table"),Ai(t,"class","jse-table-mode svelte-12ygzbc"),zi(t,"no-main-menu",!e[1])},m:function(o,u){bi(o,t,u),c&&c.m(t,null),vi(t,n),l[r].m(t,null),e[85](t),i=!0,a||(s=[_i(t,"mousedown",e[36]),_i(t,"keydown",e[43]),_i(t,"contextmenu",e[38])],a=!0)},p:function(e,r){e[1]?c?(c.p(e,r),2&r[0]&&wa(c,1)):((c=J4(e)).c(),wa(c,1),c.m(t,n)):c&&(ya(),xa(c,1,1,(function(){c=null})),ba()),o.p(e,r),(!i||2&r[0])&&zi(t,"no-main-menu",!e[1])},i:function(e){i||(wa(c),wa(o),i=!0)},o:function(e){xa(c),xa(o),i=!1},d:function(n){n&&wi(t),c&&c.d(),l[r].d(),e[85](null),a=!1,Go(s)}}}var p6=18;function m6(e,t,n){var r,o,i,a=Ia("jsoneditor:TableMode"),s=Xi("simple-modal").open,c=Xi("absolute-popup"),u=c.openAbsolutePopup,l=c.closeAbsolutePopup,f=PN(),d=P$(),h=P$(),v="undefined"==typeof window;a("isSSR:",v);var p,m,g,y,b,w,x=t.readOnly,k=t.externalContent,j=t.externalSelection,S=t.mainMenuBar,C=t.escapeControlCharacters,$=t.escapeUnicodeCharacters,_=t.flattenColumns,O=t.parser,M=t.parseMemoizeOne,A=t.validator,E=t.validationParser,P=t.indentation,T=t.onChange,R=t.onChangeMode,N=t.onSelect,I=t.onRenderValue,D=t.onRenderMenu,z=t.onRenderContextMenu,B=t.onFocus,L=t.onBlur,q=t.onSortModal,F=t.onTransformModal,V=t.onJSONEditorModal;qN({onMount:Ki,onDestroy:Gi,getWindow:function(){return CO(m)},hasFocus:function(){return Z&&document.hasFocus()||$O(m)},onFocus:function(){!0,B&&B()},onBlur:function(){!1,L&&L()}});var H,W,U=void 0,J=!1,K=!1;function G(){return(G=ko(wo().mark((function e(t){return wo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n(12,ie=To(To({},ie),{},{selection:null})),e.next=3,Se(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Q,Y=1e4,X=[],Z=!1,ee={},te=600,ne=0;function re(e){a("updateSelection",e);var t="function"==typeof e?e(ie.selection)||null:e;Ax(t,ie.selection)||(n(12,ie=To(To({},ie),{},{selection:t})),N(t))}function oe(e){ie.selection&&void 0!==e&&(Ys(e,GA(ie.selection))&&Ys(e,KA(ie.selection))||(a("clearing selection: path does not exist anymore",ie.selection),n(12,ie=To(To({},ie),{},{selection:null}))))}var ie=qM(),ae=!1;var se,ce=NN({onChange:function(e){n(24,ue=e)}}),ue=ce.getState();function le(e){var t=b,r=K_(e)?e.text!==w:!Ax(t,e.json);if(a("update external content",{isChanged:r}),r){var o=b,i=ie,s=w,c=ae;if(K_(e))try{n(8,b=M(e.text)),n(17,w=e.text),n(23,ae=!1),n(18,U=void 0)}catch(t){try{n(8,b=M(Hu(e.text))),n(17,w=e.text),n(23,ae=!0),n(18,U=void 0)}catch(r){n(8,b=void 0),n(17,w=e.text),n(23,ae=!1),n(18,U=""!==w?W_(w,t.message||String(t)):void 0)}}else n(8,b=e.json),n(17,w=void 0),n(23,ae=!1),n(18,U=void 0);oe(b),ie.sortedColumn&&n(12,ie=To(To({},ie),{},{sortedColumn:null})),fe({previousJson:o,previousState:i,previousText:s,previousTextIsRepaired:c})}}function fe(e){var t=e.previousJson,n=e.previousState,r=e.previousText,o=e.previousTextIsRepaired;void 0===t&&void 0===r||(void 0!==b?void 0!==t?ce.add({undo:{patch:[{op:"replace",path:"",value:t}],state:TA(n),json:void 0,text:r,textIsRepaired:o},redo:{patch:[{op:"replace",path:"",value:b}],state:TA(ie),json:void 0,text:w,textIsRepaired:ae}}):ce.add({undo:{patch:void 0,json:void 0,text:r,state:TA(n),textIsRepaired:o},redo:{patch:void 0,json:b,state:TA(ie),text:w,textIsRepaired:ae}}):void 0!==t&&ce.add({undo:{patch:void 0,json:t,state:TA(n),text:r,textIsRepaired:o},redo:{patch:void 0,json:void 0,text:w,textIsRepaired:ae,state:TA(ie)}}))}var de=[],he=FB(zN);function ve(e,t,r,o){IN((function(){var i;try{i=he(e,t,r,o)}catch(e){i=[{path:[],message:"Failed to validate: "+e.message,severity:Xa.warning}]}Ax(i,de)||(a("validationErrors changed:",i),n(13,de=i))}),(function(e){return a("validationErrors updated in ".concat(e," ms"))}))}function pe(){return a("validate"),U?{parseError:U,isRepairable:!1}:(ve(b,A,O,E),Mx(de)?null:{validationErrors:de})}function me(e,t){if(a("patch",e,t),void 0===b)throw new Error("Cannot apply patch: no JSON");var r=b,o=ie,i=ae,s=vE(b,e),c=KM(b,ie,e).json,u=eL(ie,e,X),l="function"==typeof t?t(c,u):void 0;n(8,b=l&&void 0!==l.json?l.json:c);var f=l&&void 0!==l.state?l.state:u;return n(12,ie=f),n(17,w=void 0),n(23,ae=!1),n(19,H=void 0),n(18,U=void 0),ce.add({undo:{patch:s,json:void 0,text:void 0,state:TA(o),textIsRepaired:i},redo:{patch:e,json:void 0,state:TA(f),text:void 0,textIsRepaired:ae}}),{json:b,previousJson:r,undo:s,redo:e}}function ge(e,t){a("handlePatch",e,t);var n={json:b,text:w},r=me(e,t);return ye(n,r),r}function ye(e,t){if((void 0!==e.json||void 0!==(null==e?void 0:e.text))&&T)if(void 0!==w)T({text:w,json:void 0},e,{contentErrors:pe(),patchResult:t});else if(void 0!==b){T({text:void 0,json:b},e,{contentErrors:pe(),patchResult:t})}}function be(e){a("handleFind",e)}function we(e){a("pasted json as text",e),n(19,H=e)}function xe(e){var t=parseInt(e[0],10),n=[String(t+1)].concat(Bo(e.slice(1)));return Ys(b,n)?NA(n,!1):NA(e,!1)}function ke(){a("focus"),y&&(y.focus(),y.select())}function je(){ie.selection||re(!Ts(b)||Mx(b)||Mx(X)?null:NA(["0"].concat(Bo(X[0])),!1))}function Se(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=J?Ms:0,r=KB(e,X,ee,p6),o=r-ne+n+p6,i=_e(e);if(a("scrollTo",{path:e,top:r,scrollTop:ne,elem:i}),!g)return Promise.resolve();var s=g.getBoundingClientRect();if(i&&!t){var c=i.getBoundingClientRect();if(c.bottom>s.top&&c.top<s.bottom)return Promise.resolve()}var u=-Math.max(n+36,s.height/4);return new Promise(i?function(t){f(i,{container:g,offset:u,duration:300,callback:function(){Ce(e),t()}})}:function(t){var n;f(o,{container:g,offset:u,duration:300,callback:(n=ko(wo().mark((function n(){return wo().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,sa();case 2:Ce(e),t();case 4:case"end":return n.stop()}}),n)}))),function(){return n.apply(this,arguments)})})})}function Ce(e){var t=_e(e);if(t&&g){var r=g.getBoundingClientRect(),o=t.getBoundingClientRect();if(o.right>r.right){var i=o.right-r.right;n(15,g.scrollLeft+=i,g)}if(o.left<r.left){var a=r.left-o.left;n(15,g.scrollLeft-=a,g)}}}function $e(e){!function(e){if(g){var t=GB(e,X).rowIndex,r=KB(e,X,ee,p6),o=r+(ee[t]||p6),i=g.getBoundingClientRect(),a=ne,s=ne+i.height-18;if(o>s){var c=o-s;n(15,g.scrollTop+=c,g)}if(r<a){var u=a-r;n(15,g.scrollTop-=u,g)}}}(e),Ce(e)}function _e(e){var t=X.find((function(t){return PA(e.slice(1),t)})),n=t?e.slice(0,1).concat(t):e;return g?g.querySelector('td[data-path="'.concat(MO(n),'"]')):null}function Oe(e){var t=e.anchor,n=e.left,r=e.top,o=e.width,i=e.height,a=e.offsetTop,s=e.offsetLeft,c=e.showTip,f=function(e){var t=e.json,n=e.documentState,r=e.readOnly,o=e.parser,i=e.onEditValue,a=e.onEditRow,s=e.onToggleEnforceString,c=e.onCut,u=e.onCopy,l=e.onPaste,f=e.onRemove,d=e.onDuplicateRow,h=e.onInsertBeforeRow,v=e.onInsertAfterRow,p=e.onRemoveRow,m=n.selection,g=void 0!==t,y=!!m,b=void 0!==t&&m?Ws(t,KA(m)):void 0,w=g&&(gA(m)||pA(m)||mA(m)),x=!r&&g&&null!=m&&AA(m),k=x&&!Qu(b),j=!r&&w,S=null!=m&&void 0!==b&&iA(b,n.enforceStringMap,Zs(KA(m)),o);return[{type:"separator"},{type:"row",items:[{type:"column",items:[{type:"label",text:"Table cell:"},{type:"dropdown-button",main:{type:"button",onClick:function(){return i()},icon:gP,text:"Edit",title:"Edit the value (Double-click on the value)",disabled:!x},width:"11em",items:[{type:"button",icon:gP,text:"Edit",title:"Edit the value (Double-click on the value)",onClick:function(){return i()},disabled:!x},{type:"button",icon:S?aP:dP,text:"Enforce string",title:"Enforce keeping the value as string when it contains a numeric value",onClick:function(){return s()},disabled:!k}]},{type:"dropdown-button",main:{type:"button",onClick:function(){return c(!0)},icon:rP,text:"Cut",title:"Cut selected contents, formatted with indentation (Ctrl+X)",disabled:!j},width:"10em",items:[{type:"button",icon:rP,text:"Cut formatted",title:"Cut selected contents, formatted with indentation (Ctrl+X)",onClick:function(){return c(!0)},disabled:r||!w},{type:"button",icon:rP,text:"Cut compacted",title:"Cut selected contents, without indentation (Ctrl+Shift+X)",onClick:function(){return c(!1)},disabled:r||!w}]},{type:"dropdown-button",main:{type:"button",onClick:function(){return u(!0)},icon:AP,text:"Copy",title:"Copy selected contents, formatted with indentation (Ctrl+C)",disabled:!w},width:"12em",items:[{type:"button",icon:AP,text:"Copy formatted",title:"Copy selected contents, formatted with indentation (Ctrl+C)",onClick:function(){return u(!1)},disabled:!w},{type:"button",icon:AP,text:"Copy compacted",title:"Copy selected contents, without indentation (Ctrl+Shift+C)",onClick:function(){return u(!1)},disabled:!w}]},{type:"button",onClick:function(){return l()},icon:tP,text:"Paste",title:"Paste clipboard contents (Ctrl+V)",disabled:r||!y},{type:"button",onClick:function(){return f()},icon:XE,text:"Remove",title:"Remove selected contents (Delete)",disabled:r||!w}]},{type:"column",items:[{type:"label",text:"Table row:"},{type:"button",onClick:function(){return a()},icon:gP,text:"Edit row",title:"Edit the current row",disabled:r||!y||!g},{type:"button",onClick:function(){return d()},icon:DP,text:"Duplicate row",title:"Duplicate the current row",disabled:r||!y||!g},{type:"button",onClick:function(){return h()},icon:EP,text:"Insert before",title:"Insert a row before the current row",disabled:r||!y||!g},{type:"button",onClick:function(){return v()},icon:EP,text:"Insert after",title:"Insert a row after the current row",disabled:r||!y||!g},{type:"button",onClick:function(){return p()},icon:XE,text:"Remove row",title:"Remove current row",disabled:r||!y||!g}]}]}]}({json:b,documentState:ie,readOnly:x,parser:O,onEditValue:Ae,onEditRow:Ee,onToggleEnforceString:Pe,onCut:Ne,onCopy:De,onPaste:Re,onRemove:Be,onDuplicateRow:Le,onInsertBeforeRow:qe,onInsertAfterRow:Fe,onRemoveRow:Ve}),d=z(f);if(!1!==d){var h={left:n,top:r,offsetTop:a,offsetLeft:s,width:o,height:i,anchor:t,closeOnOuterClick:!0,onClose:function(){Z=!1,ke()}};Z=!0;var v=u(mq,{tip:c?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0,items:d,onRequestClose:function(){l(v),ke()}},h)}}function Me(e){if(!LA(ie.selection)){if(e&&(e.stopPropagation(),e.preventDefault()),e&&"contextmenu"===e.type&&e.target!==y)Oe({left:e.clientX,top:e.clientY,width:Os,height:_s,showTip:!1});else{var t,n=null===(t=g)||void 0===t?void 0:t.querySelector(".jse-table-cell.jse-selected-value");if(n)Oe({anchor:n,offsetTop:2,width:Os,height:_s,showTip:!1});else{var r,o=null===(r=g)||void 0===r?void 0:r.getBoundingClientRect();o&&Oe({top:o.top+2,left:o.left+2,width:Os,height:_s,showTip:!1})}}return!1}}function Ae(){if(!x&&ie.selection){var e=KA(ie.selection);Qu(Ws(b,e))?Ke(e):re(NA(e,!0))}}function Ee(){!x&&ie.selection&&Ke(KA(ie.selection).slice(0,1))}function Pe(){if(!x&&mA(ie.selection)){var e=ie.selection.path,t=Zs(e),n=Ws(b,e),r=!iA(n,ie.enforceStringMap,t,O),o=r?String(n):rl(String(n),O);a("handleToggleEnforceString",{enforceString:r,value:n,updatedValue:o}),ge([{op:"replace",path:t,value:o}],(function(e,n){return{state:JM(n,t,r)}}))}}function Te(){return(Te=ko(wo().mark((function e(){var t,n,r,o,i;return wo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a("apply pasted json",H),H){e.next=3;break}return e.abrupt("return");case 3:r=(n=H).path,o=n.contents,PO(i=(null===(t=g)||void 0===t?void 0:t.querySelector(".jse-editable-div"))||null)&&i.cancel(),ge([{op:"replace",path:Zs(r),value:o}]),setTimeout(ke);case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Re(){s(vI,{},To(To({},ms),{},{styleWindow:{width:"450px"}}),{onClose:function(){return ke()}})}function Ne(e){return Ie.apply(this,arguments)}function Ie(){return(Ie=ko(wo().mark((function e(t){return wo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,nL({json:b,documentState:ie,indentation:t?P:void 0,readOnly:x,parser:O,onPatch:ge});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function De(){return ze.apply(this,arguments)}function ze(){return ze=ko(wo().mark((function e(){var t,n=arguments;return wo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=!(n.length>0&&void 0!==n[0])||n[0],void 0!==b){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,oL({json:b,documentState:ie,indentation:t?P:void 0,parser:O});case 5:case"end":return e.stop()}}),e)}))),ze.apply(this,arguments)}function Be(){sL({json:b,text:w,documentState:ie,keepSelection:!0,readOnly:x,onChange:T,onPatch:ge})}function Le(){cL({json:b,documentState:ie,columns:X,readOnly:x,onPatch:ge})}function qe(){uL({json:b,documentState:ie,columns:X,readOnly:x,onPatch:ge})}function Fe(){lL({json:b,documentState:ie,columns:X,readOnly:x,onPatch:ge})}function Ve(){fL({json:b,documentState:ie,columns:X,readOnly:x,onPatch:ge})}function He(){return(He=ko(wo().mark((function e(t){return wo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,hL({char:t,selectInside:!1,refJsonEditor:m,json:b,selection:ie.selection,readOnly:x,parser:O,onPatch:ge,onReplaceJson:We,onSelect:re});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function We(e,t){var r=ie,o=b,i=w,a={json:b,text:w},s=ae,c=WM(b,ie,[],fA),u="function"==typeof t?t(e,c):void 0;n(8,b=u&&void 0!==u.json?u.json:e),n(12,ie=u&&void 0!==u.state?u.state:c),n(17,w=void 0),n(23,ae=!1),n(18,U=void 0),oe(b),fe({previousJson:o,previousState:r,previousText:i,previousTextIsRepaired:s});ye(a,null)}function Ue(e,t){a("handleChangeText");var r=ie,o=b,i=w,s={json:b,text:w},c=ae;try{n(8,b=M(e)),n(12,ie=WM(b,ie,[],fA)),n(17,w=void 0),n(23,ae=!1),n(18,U=void 0)}catch(t){try{n(8,b=M(Hu(e))),n(12,ie=WM(b,ie,[],fA)),n(17,w=e),n(23,ae=!0),n(18,U=void 0)}catch(r){n(8,b=void 0),n(12,ie=qM({json:b,expand:fA})),n(17,w=e),n(23,ae=!1),n(18,U=""!==w?W_(w,t.message||String(t)):void 0)}}if("function"==typeof t){var u=t(b,ie);n(8,b=u&&u.json?u.json:b),n(12,ie=u&&u.state?u.state:ie)}oe(b),fe({previousJson:o,previousState:r,previousText:i,previousTextIsRepaired:c});ye(s,null)}function Je(e){if(void 0!==b){var t=e.id,n=e.onTransform,r=e.onClose,o=e.rootPath||[];Z=!0,F({id:t||h,json:b,rootPath:o||[],onTransform:function(e){n?n({operations:e,json:b,transformedJson:rc(b,e)}):(a("onTransform",o,e),ge(e))},onClose:function(){Z=!1,ke(),r&&r()}})}}function Ke(e){a("openJSONEditorModal",{path:e}),Z=!0,V({content:{json:Ws(b,e)},path:e,onPatch:se.onPatch,onClose:function(){Z=!1,ke()}})}function Ge(e,t){s(tD,{text:e,onParse:function(e){return F_(e,(function(e){return L_(e,O)}))},onRepair:V_,onApply:t},To(To({},ms),{},{styleWindow:{width:"600px",height:"500px"},styleContent:{padding:0,height:"100%"}}),{onClose:function(){return ke()}})}function Qe(e){a("openFind",{findAndReplace:e}),n(9,J=!1),n(21,K=!1),sa().then((function(){n(9,J=!0),n(21,K=e)}))}function Ye(){if(!x&&ce.getState().canUndo){var e=ce.undo();if(e){var t={json:b,text:w};n(8,b=e.undo.patch?rc(b,e.undo.patch):e.undo.json),n(12,ie=e.undo.state),n(17,w=e.undo.text),n(23,ae=e.undo.textIsRepaired),n(18,U=void 0),a("undo",{item:e,json:b}),ye(t,e.undo.patch&&e.redo.patch?{json:b,previousJson:t.json,redo:e.undo.patch,undo:e.redo.patch}:null),ke(),ie.selection&&Se(KA(ie.selection),!1)}}}function Xe(){if(!x&&ce.getState().canRedo){var e=ce.redo();if(e){var t={json:b,text:w};n(8,b=e.redo.patch?rc(b,e.redo.patch):e.redo.json),n(12,ie=e.redo.state),n(17,w=e.redo.text),n(23,ae=e.redo.textIsRepaired),n(18,U=void 0),a("redo",{item:e,json:b}),ye(t,e.undo.patch&&e.redo.patch?{json:b,previousJson:t.json,redo:e.redo.patch,undo:e.undo.patch}:null),ke(),ie.selection&&Se(KA(ie.selection),!1)}}}function Ze(e,t){n(76,ee[t]=e.getBoundingClientRect().height,ee)}return e.$$set=function(e){"readOnly"in e&&n(0,x=e.readOnly),"externalContent"in e&&n(53,k=e.externalContent),"externalSelection"in e&&n(54,j=e.externalSelection),"mainMenuBar"in e&&n(1,S=e.mainMenuBar),"escapeControlCharacters"in e&&n(55,C=e.escapeControlCharacters),"escapeUnicodeCharacters"in e&&n(56,$=e.escapeUnicodeCharacters),"flattenColumns"in e&&n(57,_=e.flattenColumns),"parser"in e&&n(2,O=e.parser),"parseMemoizeOne"in e&&n(58,M=e.parseMemoizeOne),"validator"in e&&n(59,A=e.validator),"validationParser"in e&&n(60,E=e.validationParser),"indentation"in e&&n(3,P=e.indentation),"onChange"in e&&n(61,T=e.onChange),"onChangeMode"in e&&n(4,R=e.onChangeMode),"onSelect"in e&&n(62,N=e.onSelect),"onRenderValue"in e&&n(63,I=e.onRenderValue),"onRenderMenu"in e&&n(5,D=e.onRenderMenu),"onRenderContextMenu"in e&&n(64,z=e.onRenderContextMenu),"onFocus"in e&&n(65,B=e.onFocus),"onBlur"in e&&n(66,L=e.onBlur),"onSortModal"in e&&n(67,q=e.onSortModal),"onTransformModal"in e&&n(68,F=e.onTransformModal),"onJSONEditorModal"in e&&n(69,V=e.onJSONEditorModal)},e.$$.update=function(){50331648&e.$$.dirty[1]&&n(75,p=sO({escapeControlCharacters:C,escapeUnicodeCharacters:$})),512&e.$$.dirty[0]&&function(e){if(g){var t=e?Ms:-100;g.scrollTo({top:n(15,g.scrollTop+=t,g),left:g.scrollLeft})}}(J),4194304&e.$$.dirty[1]&&le(k),8388608&e.$$.dirty[1]&&function(e){Ax(ie.selection,e)||(a("applyExternalSelection",e),(bA(e)||null===e)&&re(e))}(j),3328&e.$$.dirty[0]|67108864&e.$$.dirty[1]&&n(11,X=Ts(b)?function(e,t){var n,r=new Set(t.map(Zs)),o=new Set(e.map(Zs)),i=bo(r);try{for(i.s();!(n=i.n()).done;){var a=n.value;o.has(a)||r.delete(a)}}catch(e){i.e(e)}finally{i.f()}var s,c=bo(o);try{for(c.s();!(s=c.n()).done;){var u=s.value;r.has(u)||r.add(u)}}catch(e){c.e(e)}finally{c.f()}return Bo(r).map(Xs)}(HB(b,_,Y),X):[]),2304&e.$$.dirty[0]&&n(22,Q=!(!b||Mx(X))),1280&e.$$.dirty[0]&&n(28,r=Array.isArray(b)&&b.length>Y),768&e.$$.dirty[0]|114688&e.$$.dirty[2]&&n(27,o=JB(ne,te,b,ee,p6,J?Ms:0)),256&e.$$.dirty[0]&&g&&g.scrollTo({top:g.scrollTop,left:g.scrollLeft}),4357&e.$$.dirty[0]|8194&e.$$.dirty[2]&&n(25,se={readOnly:x,parser:O,normalization:p,getJson:function(){return b},getDocumentState:function(){return ie},findElement:_e,findNextInside:xe,focus:ke,onPatch:ge,onSelect:re,onFind:be,onPasteJson:we,onRenderValue:I}),260&e.$$.dirty[0]|805306368&e.$$.dirty[1]&&ve(b,A,O,E),10240&e.$$.dirty[0]&&n(26,i=YB(de,X))},[x,S,O,P,R,D,ke,function(){if(ae&&void 0!==b){var e=ie,t=b,r=w,o={json:b,text:w},i=ae;n(17,w=void 0),n(23,ae=!1),oe(b),fe({previousJson:t,previousState:e,previousText:r,previousTextIsRepaired:i});ye(o,null)}return{json:b,text:w}},b,J,Y,X,ie,de,m,g,y,w,U,H,W,K,Q,ae,ue,se,i,o,r,v,function(e){n(20,W=e)},function(e){return G.apply(this,arguments)},function(){n(9,J=!1),n(21,K=!1),ke()},function(e){if(!x){a("onSortByHeader",e);var t=e.sortDirection===es.desc?-1:1;ge(Zz(b,[],e.path,t),(function(t,n){return{state:To(To({},n),{},{sortedColumn:e})}}))}},ge,function(e){n(78,ne=e.target.scrollTop)},function(e){var t=e.target,n=AO(t);if(n){if(LA(ie.selection)&&UA(b,ie.selection,n))return;re(NA(n,!1)),e.preventDefault()}t.isContentEditable||setTimeout(ke)},Oe,Me,function(e){Oe({anchor:_O(e.target,"BUTTON"),offsetTop:0,width:Os,height:_s,showTip:!0})},function(){return Te.apply(this,arguments)},function(){a("clear pasted json"),n(19,H=void 0),ke()},function(){R(Ga.text)},function(e){var t=TO(e);if(a("keydown",{combo:t,key:e.key}),"Ctrl+X"===t&&(e.preventDefault(),Ne(!0)),"Ctrl+Shift+X"===t&&(e.preventDefault(),Ne(!1)),"Ctrl+C"===t&&(e.preventDefault(),De(!0)),"Ctrl+Shift+C"===t&&(e.preventDefault(),De(!1)),"Ctrl+D"===t&&e.preventDefault(),"Delete"!==t&&"Backspace"!==t||(e.preventDefault(),Be()),"Insert"===t&&e.preventDefault(),"Ctrl+A"===t&&e.preventDefault(),"Ctrl+Q"===t&&Me(e),"ArrowLeft"===t&&(e.preventDefault(),je(),ie.selection)){var n=function(e,t){var n=GB(KA(t),e),r=n.rowIndex,o=n.columnIndex;return o>0?NA(QB({rowIndex:r,columnIndex:o-1},e),!1):t}(X,ie.selection);re(n),$e(KA(n))}if("ArrowRight"===t&&(e.preventDefault(),je(),ie.selection)){var r=function(e,t){var n=GB(KA(t),e),r=n.rowIndex,o=n.columnIndex;return o<e.length-1?NA(QB({rowIndex:r,columnIndex:o+1},e),!1):t}(X,ie.selection);re(r),$e(KA(r))}if("ArrowUp"===t&&(e.preventDefault(),je(),ie.selection)){var o=function(e,t){var n=GB(KA(t),e),r=n.rowIndex,o=n.columnIndex;return r>0?NA(QB({rowIndex:r-1,columnIndex:o},e),!1):t}(X,ie.selection);re(o),$e(KA(o))}if("ArrowDown"===t&&(e.preventDefault(),je(),ie.selection)){var i=function(e,t,n){var r=GB(KA(n),t),o=r.rowIndex,i=r.columnIndex;return o<e.length-1?NA(QB({rowIndex:o+1,columnIndex:i},t),!1):n}(b,X,ie.selection);re(i),$e(KA(i))}if("Enter"===t&&ie.selection&&mA(ie.selection)){e.preventDefault();var s=ie.selection.path;Qu(Ws(b,s))?Ke(s):x||re(To(To({},ie.selection),{},{edit:!0}))}if(1===t.replace(/^Shift\+/,"").length&&ie.selection)return e.preventDefault(),void function(e){He.apply(this,arguments)}(e.key);if("Ctrl+Enter"===t&&mA(ie.selection)){var c=Ws(b,ie.selection.path);nl(c)&&window.open(String(c),"_blank")}"Escape"===t&&ie.selection&&(e.preventDefault(),re(null)),"Ctrl+F"===t&&(e.preventDefault(),Qe(!1)),"Ctrl+H"===t&&(e.preventDefault(),Qe(!0)),"Ctrl+Z"===t&&(e.preventDefault(),Ye()),"Ctrl+Shift+Z"===t&&(e.preventDefault(),Xe())},function(e){var t;e.preventDefault();var n=null===(t=e.clipboardData)||void 0===t?void 0:t.getData("text/plain");void 0!==n&&aL({clipboardText:n,json:b,selection:ie.selection,readOnly:x,parser:O,onPatch:ge,onChangeText:Ue,openRepairModal:Ge})},function(e){a("select validation error",e),re(NA(e.path,!1)),Se(e.path)},Ke,function(){!function(e){x||void 0===b||(Z=!0,q({id:d,json:b,rootPath:e,onSort:function(t){var n=t.operations,r=t.itemPath,o=t.direction;a("onSort",n,e,r,o),ge(n,(function(e,t){return{state:To(To({},t),{},{sortedColumn:{path:r,sortDirection:-1===o?es.desc:es.asc}})}}))},onClose:function(){Z=!1,ke()}}))}([])},function(){Je({rootPath:[]})},Ye,Xe,function(e){n(77,te=e.getBoundingClientRect().height)},Ze,k,j,C,$,_,M,A,E,T,N,I,z,B,L,q,F,V,pe,me,Se,_e,Je,p,ee,te,ne,function(e){n(9,J=e)},function(e){ta[e?"unshift":"push"]((function(){n(16,y=e)}))},function(){return n(10,Y=1/0)},function(e,t){return Ze(t,e)},function(e){ta[e?"unshift":"push"]((function(){n(15,g=e)}))},function(){ke()},function(e){ta[e?"unshift":"push"]((function(){n(14,m=e)}))}]}var g6=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,m6,v6,Xo,{readOnly:0,externalContent:53,externalSelection:54,mainMenuBar:1,escapeControlCharacters:55,escapeUnicodeCharacters:56,flattenColumns:57,parser:2,parseMemoizeOne:58,validator:59,validationParser:60,indentation:3,onChange:61,onChangeMode:4,onSelect:62,onRenderValue:63,onRenderMenu:5,onRenderContextMenu:64,onFocus:65,onBlur:66,onSortModal:67,onTransformModal:68,onJSONEditorModal:69,validate:70,patch:71,focus:6,acceptAutoRepair:7,scrollTo:72,findElement:73,openTransformModal:74},F4,[-1,-1,-1,-1,-1]),n}return Ao(t,Na),Io(t,[{key:"validate",get:function(){return this.$$.ctx[70]}},{key:"patch",get:function(){return this.$$.ctx[71]}},{key:"focus",get:function(){return this.$$.ctx[6]}},{key:"acceptAutoRepair",get:function(){return this.$$.ctx[7]}},{key:"scrollTo",get:function(){return this.$$.ctx[72]}},{key:"findElement",get:function(){return this.$$.ctx[73]}},{key:"openTransformModal",get:function(){return this.$$.ctx[74]}}])}();function y6(e){var t,n,r={externalContent:e[0],externalSelection:e[1],readOnly:e[2],indentation:e[3],mainMenuBar:e[6],navigationBar:e[7],escapeControlCharacters:e[10],escapeUnicodeCharacters:e[11],parser:e[13],parseMemoizeOne:e[14],validator:e[15],validationParser:e[16],pathParser:e[17],onError:e[23],onChange:e[18],onChangeMode:e[19],onSelect:e[20],onRenderValue:e[21],onClassName:e[22],onFocus:e[24],onBlur:e[25],onRenderMenu:e[32],onRenderContextMenu:e[33],onSortModal:e[26],onTransformModal:e[27],onJSONEditorModal:e[28]};return t=new Eq({props:r}),e[49](t),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},p:function(e,n){var r={};1&n[0]&&(r.externalContent=e[0]),2&n[0]&&(r.externalSelection=e[1]),4&n[0]&&(r.readOnly=e[2]),8&n[0]&&(r.indentation=e[3]),64&n[0]&&(r.mainMenuBar=e[6]),128&n[0]&&(r.navigationBar=e[7]),1024&n[0]&&(r.escapeControlCharacters=e[10]),2048&n[0]&&(r.escapeUnicodeCharacters=e[11]),8192&n[0]&&(r.parser=e[13]),16384&n[0]&&(r.parseMemoizeOne=e[14]),32768&n[0]&&(r.validator=e[15]),65536&n[0]&&(r.validationParser=e[16]),131072&n[0]&&(r.pathParser=e[17]),8388608&n[0]&&(r.onError=e[23]),262144&n[0]&&(r.onChange=e[18]),524288&n[0]&&(r.onChangeMode=e[19]),1048576&n[0]&&(r.onSelect=e[20]),2097152&n[0]&&(r.onRenderValue=e[21]),4194304&n[0]&&(r.onClassName=e[22]),16777216&n[0]&&(r.onFocus=e[24]),33554432&n[0]&&(r.onBlur=e[25]),2&n[1]&&(r.onRenderMenu=e[32]),4&n[1]&&(r.onRenderContextMenu=e[33]),67108864&n[0]&&(r.onSortModal=e[26]),134217728&n[0]&&(r.onTransformModal=e[27]),268435456&n[0]&&(r.onJSONEditorModal=e[28]),t.$set(r)},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(n){e[49](null),Ta(t,n)}}}function b6(e){var t,n,r={externalContent:e[0],externalSelection:e[1],readOnly:e[2],mainMenuBar:e[6],escapeControlCharacters:e[10],escapeUnicodeCharacters:e[11],flattenColumns:e[12],parser:e[13],parseMemoizeOne:e[14],validator:e[15],validationParser:e[16],indentation:e[3],onChange:e[18],onChangeMode:e[19],onSelect:e[20],onRenderValue:e[21],onFocus:e[24],onBlur:e[25],onRenderMenu:e[32],onRenderContextMenu:e[33],onSortModal:e[26],onTransformModal:e[27],onJSONEditorModal:e[28]};return t=new g6({props:r}),e[48](t),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},p:function(e,n){var r={};1&n[0]&&(r.externalContent=e[0]),2&n[0]&&(r.externalSelection=e[1]),4&n[0]&&(r.readOnly=e[2]),64&n[0]&&(r.mainMenuBar=e[6]),1024&n[0]&&(r.escapeControlCharacters=e[10]),2048&n[0]&&(r.escapeUnicodeCharacters=e[11]),4096&n[0]&&(r.flattenColumns=e[12]),8192&n[0]&&(r.parser=e[13]),16384&n[0]&&(r.parseMemoizeOne=e[14]),32768&n[0]&&(r.validator=e[15]),65536&n[0]&&(r.validationParser=e[16]),8&n[0]&&(r.indentation=e[3]),262144&n[0]&&(r.onChange=e[18]),524288&n[0]&&(r.onChangeMode=e[19]),1048576&n[0]&&(r.onSelect=e[20]),2097152&n[0]&&(r.onRenderValue=e[21]),16777216&n[0]&&(r.onFocus=e[24]),33554432&n[0]&&(r.onBlur=e[25]),2&n[1]&&(r.onRenderMenu=e[32]),4&n[1]&&(r.onRenderContextMenu=e[33]),67108864&n[0]&&(r.onSortModal=e[26]),134217728&n[0]&&(r.onTransformModal=e[27]),268435456&n[0]&&(r.onJSONEditorModal=e[28]),t.$set(r)},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(n){e[48](null),Ta(t,n)}}}function w6(e){var t,n,r={externalContent:e[0],externalSelection:e[1],readOnly:e[2],indentation:e[3],tabSize:e[4],mainMenuBar:e[6],statusBar:e[8],askToFormat:e[9],escapeUnicodeCharacters:e[11],parser:e[13],validator:e[15],validationParser:e[16],onChange:e[18],onSelect:e[20],onChangeMode:e[19],onError:e[23],onFocus:e[24],onBlur:e[25],onRenderMenu:e[32],onSortModal:e[26],onTransformModal:e[27]};return t=new r4({props:r}),e[47](t),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},p:function(e,n){var r={};1&n[0]&&(r.externalContent=e[0]),2&n[0]&&(r.externalSelection=e[1]),4&n[0]&&(r.readOnly=e[2]),8&n[0]&&(r.indentation=e[3]),16&n[0]&&(r.tabSize=e[4]),64&n[0]&&(r.mainMenuBar=e[6]),256&n[0]&&(r.statusBar=e[8]),512&n[0]&&(r.askToFormat=e[9]),2048&n[0]&&(r.escapeUnicodeCharacters=e[11]),8192&n[0]&&(r.parser=e[13]),32768&n[0]&&(r.validator=e[15]),65536&n[0]&&(r.validationParser=e[16]),262144&n[0]&&(r.onChange=e[18]),1048576&n[0]&&(r.onSelect=e[20]),524288&n[0]&&(r.onChangeMode=e[19]),8388608&n[0]&&(r.onError=e[23]),16777216&n[0]&&(r.onFocus=e[24]),33554432&n[0]&&(r.onBlur=e[25]),2&n[1]&&(r.onRenderMenu=e[32]),67108864&n[0]&&(r.onSortModal=e[26]),134217728&n[0]&&(r.onTransformModal=e[27]),t.$set(r)},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(n){e[47](null),Ta(t,n)}}}function x6(e){var t,n,r,o,i,a=[w6,b6,y6],s=[];function c(e,n){return 32&n[0]&&(t=null),null==t&&(t=!(e[5]!==Ga.text&&"code"!==String(e[5]))),t?0:e[5]===Ga.table?1:2}return n=c(e,[-1,-1]),r=s[n]=a[n](e),{c:function(){r.c(),o=$i()},m:function(e,t){s[n].m(e,t),bi(e,o,t),i=!0},p:function(e,t){var i=n;(n=c(e,t))===i?s[n].p(e,t):(ya(),xa(s[i],1,1,(function(){s[i]=null})),ba(),(r=s[n])?r.p(e,t):(r=s[n]=a[n](e)).c(),wa(r,1),r.m(o.parentNode,o))},i:function(e){i||(wa(r),i=!0)},o:function(e){xa(r),i=!1},d:function(e){e&&wi(o),s[n].d(e)}}}function k6(e,t,n){var r,o,i,a,s,c,u=t.content,l=t.selection,f=t.readOnly,d=t.indentation,h=t.tabSize,v=t.mode,p=t.mainMenuBar,m=t.navigationBar,g=t.statusBar,y=t.askToFormat,b=t.escapeControlCharacters,w=t.escapeUnicodeCharacters,x=t.flattenColumns,k=t.parser,j=t.parseMemoizeOne,S=t.validator,C=t.validationParser,$=t.pathParser,_=t.insideModal,O=t.onChange,M=t.onChangeMode,A=t.onSelect,E=t.onRenderValue,P=t.onClassName,T=t.onRenderMenu,R=t.onRenderContextMenu,N=t.onError,I=t.onFocus,D=t.onBlur,z=t.onSortModal,B=t.onTransformModal,L=t.onJSONEditorModal,q={type:"separator"};function F(){return(F=ko(wo().mark((function e(){return wo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!i){e.next=3;break}return e.next=3,i.refresh();case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return e.$$set=function(e){"content"in e&&n(0,u=e.content),"selection"in e&&n(1,l=e.selection),"readOnly"in e&&n(2,f=e.readOnly),"indentation"in e&&n(3,d=e.indentation),"tabSize"in e&&n(4,h=e.tabSize),"mode"in e&&n(5,v=e.mode),"mainMenuBar"in e&&n(6,p=e.mainMenuBar),"navigationBar"in e&&n(7,m=e.navigationBar),"statusBar"in e&&n(8,g=e.statusBar),"askToFormat"in e&&n(9,y=e.askToFormat),"escapeControlCharacters"in e&&n(10,b=e.escapeControlCharacters),"escapeUnicodeCharacters"in e&&n(11,w=e.escapeUnicodeCharacters),"flattenColumns"in e&&n(12,x=e.flattenColumns),"parser"in e&&n(13,k=e.parser),"parseMemoizeOne"in e&&n(14,j=e.parseMemoizeOne),"validator"in e&&n(15,S=e.validator),"validationParser"in e&&n(16,C=e.validationParser),"pathParser"in e&&n(17,$=e.pathParser),"insideModal"in e&&n(34,_=e.insideModal),"onChange"in e&&n(18,O=e.onChange),"onChangeMode"in e&&n(19,M=e.onChangeMode),"onSelect"in e&&n(20,A=e.onSelect),"onRenderValue"in e&&n(21,E=e.onRenderValue),"onClassName"in e&&n(22,P=e.onClassName),"onRenderMenu"in e&&n(35,T=e.onRenderMenu),"onRenderContextMenu"in e&&n(36,R=e.onRenderContextMenu),"onError"in e&&n(23,N=e.onError),"onFocus"in e&&n(24,I=e.onFocus),"onBlur"in e&&n(25,D=e.onBlur),"onSortModal"in e&&n(26,z=e.onSortModal),"onTransformModal"in e&&n(27,B=e.onTransformModal),"onJSONEditorModal"in e&&n(28,L=e.onJSONEditorModal)},e.$$.update=function(){524320&e.$$.dirty[0]&&n(46,a=[{type:"button",text:"text",title:"Switch to text mode (current mode: ".concat(v,")"),className:"jse-group-button jse-first"+(v===Ga.text||"code"===v?" jse-selected":""),onClick:function(){return M(Ga.text)}},{type:"button",text:"tree",title:"Switch to tree mode (current mode: ".concat(v,")"),className:"jse-group-button "+(v===Ga.tree?" jse-selected":""),onClick:function(){return M(Ga.tree)}},{type:"button",text:"table",title:"Switch to table mode (current mode: ".concat(v,")"),className:"jse-group-button jse-last"+(v===Ga.table?" jse-selected":""),onClick:function(){return M(Ga.table)}}]),36&e.$$.dirty[0]|32792&e.$$.dirty[1]&&n(32,s=function(e){var t=pI(e[0])?a.concat(e):a.concat(q,e),n=xg(t);return T(t,{mode:v,modal:_,readOnly:f})||n}),38&e.$$.dirty[0]|40&e.$$.dirty[1]&&n(33,c=function(e){var t,n=xg(e);return null!==(t=R(e,{mode:v,modal:_,readOnly:f,selection:l}))&&void 0!==t?t:!f&&n})},[u,l,f,d,h,v,p,m,g,y,b,w,x,k,j,S,C,$,O,M,A,E,P,N,I,D,z,B,L,r,o,i,s,c,_,T,R,function(e){if(r)return r.patch(e);if(o)return o.patch(e);if(i)return i.patch(e);throw new Error('Method patch is not available in mode "'.concat(v,'"'))},function(e){if(r)return r.expand(e);throw new Error('Method expand is not available in mode "'.concat(v,'"'))},function(e){if(i)i.openTransformModal(e);else if(r)r.openTransformModal(e);else{if(!o)throw new Error('Method transform is not available in mode "'.concat(v,'"'));o.openTransformModal(e)}},function(){if(i)return i.validate();if(r)return r.validate();if(o)return o.validate();throw new Error('Method validate is not available in mode "'.concat(v,'"'))},function(){return r?r.acceptAutoRepair():u},function(e){if(r)return r.scrollTo(e);if(o)return o.scrollTo(e);throw new Error('Method scrollTo is not available in mode "'.concat(v,'"'))},function(e){if(r)return r.findElement(e);if(o)return o.findElement(e);throw new Error('Method findElement is not available in mode "'.concat(v,'"'))},function(){i?i.focus():r?r.focus():o&&o.focus()},function(){return F.apply(this,arguments)},a,function(e){ta[e?"unshift":"push"]((function(){n(31,i=e)}))},function(e){ta[e?"unshift":"push"]((function(){n(30,o=e)}))},function(e){ta[e?"unshift":"push"]((function(){n(29,r=e)}))}]}var j6=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,k6,x6,Yo,{content:0,selection:1,readOnly:2,indentation:3,tabSize:4,mode:5,mainMenuBar:6,navigationBar:7,statusBar:8,askToFormat:9,escapeControlCharacters:10,escapeUnicodeCharacters:11,flattenColumns:12,parser:13,parseMemoizeOne:14,validator:15,validationParser:16,pathParser:17,insideModal:34,onChange:18,onChangeMode:19,onSelect:20,onRenderValue:21,onClassName:22,onRenderMenu:35,onRenderContextMenu:36,onError:23,onFocus:24,onBlur:25,onSortModal:26,onTransformModal:27,onJSONEditorModal:28,patch:37,expand:38,transform:39,validate:40,acceptAutoRepair:41,scrollTo:42,findElement:43,focus:44,refresh:45},null,[-1,-1]),n}return Ao(t,Na),Io(t,[{key:"patch",get:function(){return this.$$.ctx[37]}},{key:"expand",get:function(){return this.$$.ctx[38]}},{key:"transform",get:function(){return this.$$.ctx[39]}},{key:"validate",get:function(){return this.$$.ctx[40]}},{key:"acceptAutoRepair",get:function(){return this.$$.ctx[41]}},{key:"scrollTo",get:function(){return this.$$.ctx[42]}},{key:"findElement",get:function(){return this.$$.ctx[43]}},{key:"focus",get:function(){return this.$$.ctx[44]}},{key:"refresh",get:function(){return this.$$.ctx[45]}}])}();function S6(e){pi(e,"svelte-1m281k0",'.jse-modal.svelte-1m281k0.svelte-1m281k0{flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);line-height:normal;background:var(--jse-modal-background, #f5f5f5);color:var(--jse-text-color, #4d4d4d)}.jse-modal.svelte-1m281k0 .svelte-select{--border:var(--jse-svelte-select-border, 1px solid #d8dbdf);--item-is-active-bg:var(--jse-item-is-active-bg, #3883fa);--border-radius:var(--jse-svelte-select-border-radius, 3px);--background:var(--jse-svelte-select-background, #fff);--padding:var(--jse-svelte-select-padding, 0 10px);--multi-select-padding:var(--jse-svelte-select-multi-select-padding, 0 10px);--font-size:var(--jse-svelte-select-font-size, var(--jse-font-size, 16px));--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px}.jse-modal.svelte-1m281k0 .jse-modal-contents.svelte-1m281k0{flex:1;display:flex;flex-direction:column;padding:20px;overflow:auto;min-width:0;min-height:0}.jse-modal.svelte-1m281k0 .jse-modal-contents .jse-actions.svelte-1m281k0{display:flex;flex-direction:row;justify-content:flex-end;padding-top:var(--jse-padding, 10px)}.jse-modal.svelte-1m281k0 .jse-modal-contents .jse-actions button.jse-primary.svelte-1m281k0{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);padding:5px;margin:0;background:var(--jse-button-primary-background, var(--jse-theme-color, #3883fa));color:var(--jse-button-primary-color, #fff);padding:var(--jse-padding, 10px) calc(2 * var(--jse-padding, 10px));border-radius:3px}.jse-modal.svelte-1m281k0 .jse-modal-contents .jse-actions button.jse-primary.svelte-1m281k0:hover{background:var(--jse-button-primary-background-highlight, var(--jse-theme-color-highlight, #5f9dff))}.jse-modal.svelte-1m281k0 .jse-modal-contents .jse-actions button.jse-primary.svelte-1m281k0:disabled{background:var(--jse-button-primary-background-disabled, #9d9d9d)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-overlay-background, rgba(0, 0, 0, 0.3))}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0;overflow:auto}.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;max-height:500px;display:flex}.bg.jse-modal-bg .jse-modal-window:has(div.fullscreen){margin:var(--jse-padding, 10px);padding:0;width:calc(100vw - 2 * var(--jse-padding, 10px));height:calc(100vh - 2 * var(--jse-padding, 10px));max-width:none;max-height:none}.bg.jse-modal-bg .jse-modal-container{flex:1;display:flex;flex-direction:column;padding:0;max-height:none}.jse-modal.jse-jsoneditor-modal.svelte-1m281k0 .jse-modal-contents.svelte-1m281k0{padding-top:0}.jse-modal.jse-jsoneditor-modal.svelte-1m281k0 .jse-modal-contents .jse-label.svelte-1m281k0{font-weight:bold;display:block;box-sizing:border-box}.jse-modal.jse-jsoneditor-modal.svelte-1m281k0 .jse-modal-contents .jse-label .jse-label-inner.svelte-1m281k0{margin-top:calc(2 * var(--jse-padding, 10px));margin-bottom:calc(0.5 * var(--jse-padding, 10px));box-sizing:border-box}.jse-modal.jse-jsoneditor-modal.svelte-1m281k0 .jse-modal-contents .jse-label .jse-label-inner button.svelte-1m281k0{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);padding:5px;margin:0;font-weight:bold;padding:0}.jse-modal.jse-jsoneditor-modal.svelte-1m281k0 .jse-modal-contents .jse-modal-inline-editor.svelte-1m281k0{flex:1;min-height:150px;min-width:0;display:flex;--jse-theme-color:var(--jse-modal-editor-theme-color, var(--jse-modal-theme-color, #707070));--jse-theme-color-highlight:var(--jse-modal-editor-theme-color-highlight, var(--jse-modal-theme-color-highlight, #646464))}.jse-modal.jse-jsoneditor-modal.svelte-1m281k0 .jse-actions.svelte-1m281k0{gap:var(--jse-padding, 10px);align-items:center}.jse-modal.jse-jsoneditor-modal.svelte-1m281k0 .jse-actions .jse-error.svelte-1m281k0{flex:1;color:var(--jse-error-color, #ee5341)}.jse-modal.jse-jsoneditor-modal.svelte-1m281k0 .jse-actions button.jse-secondary.svelte-1m281k0{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);padding:5px;margin:0;background:var(--jse-button-secondary-background, #d3d3d3);color:var(--jse-button-secondary-color, var(--jse-text-color, #4d4d4d));padding:var(--jse-padding, 10px) calc(2 * var(--jse-padding, 10px));border-radius:3px}.jse-modal.jse-jsoneditor-modal.svelte-1m281k0 .jse-actions button.jse-secondary.svelte-1m281k0:hover{background:var(--jse-button-secondary-background-highlight, #e1e1e1)}.jse-modal.jse-jsoneditor-modal.svelte-1m281k0 .jse-actions button.jse-secondary.svelte-1m281k0:disabled{background:var(--jse-button-secondary-background-disabled, #9d9d9d)}.jse-modal.jse-jsoneditor-modal.svelte-1m281k0 input.svelte-1m281k0{border:var(--jse-input-border, 1px solid #d8dbdf);outline:none;box-sizing:border-box;padding:calc(0.5 * var(--jse-padding, 10px));font-family:var(--jse-font-family-mono, consolas, menlo, monaco, "Ubuntu Mono", "source-code-pro", monospace);font-size:var(--jse-font-size-mono, 14px);color:inherit;background:var(--jse-input-background, var(--jse-background-color, #fff))}.jse-modal.jse-jsoneditor-modal.svelte-1m281k0 input.svelte-1m281k0:focus{border:var(--jse-input-border-focus, 1px solid var(--jse-input-border-focus, var(--jse-theme-color, #3883fa)))}.jse-modal.jse-jsoneditor-modal.svelte-1m281k0 input.svelte-1m281k0:read-only{background:var(--jse-input-background-readonly, transparent)}')}function C6(e){var t,n;return{c:function(){t=ki("div"),n=Si(e[23]),Ai(t,"class","jse-error svelte-1m281k0")},m:function(e,r){bi(e,t,r),vi(t,n)},p:function(e,t){8388608&t[0]&&Ri(n,e[23])},d:function(e){e&&wi(t)}}}function $6(e){var t,n,r,o,i,a;return n=new SM({props:{data:iP}}),{c:function(){t=ki("button"),Ea(n.$$.fragment),r=Si(" Back"),Ai(t,"type","button"),Ai(t,"class","jse-secondary svelte-1m281k0")},m:function(s,c){bi(s,t,c),Pa(n,t,null),vi(t,r),o=!0,i||(a=_i(t,"click",e[28]),i=!0)},p:Ho,i:function(e){o||(wa(n.$$.fragment,e),o=!0)},o:function(e){xa(n.$$.fragment,e),o=!1},d:function(e){e&&wi(t),Ta(n),i=!1,a()}}}function _6(e){var t,n,r;return{c:function(){(t=ki("button")).textContent="Close",Ai(t,"type","button"),Ai(t,"class","jse-primary svelte-1m281k0")},m:function(o,i){bi(o,t,i),n||(r=[_i(t,"click",e[28]),si(A6.call(null,t))],n=!0)},p:Ho,d:function(e){e&&wi(t),n=!1,Go(r)}}}function O6(e){var t,n,r;return{c:function(){(t=ki("button")).textContent="Apply",Ai(t,"type","button"),Ai(t,"class","jse-primary svelte-1m281k0")},m:function(o,i){bi(o,t,i),n||(r=[_i(t,"click",e[27]),si(A6.call(null,t))],n=!0)},p:Ho,d:function(e){e&&wi(t),n=!1,Go(r)}}}function M6(e){var t,n,r,o,i,a,s,c,u,l,f,d,h,v,p,m,g,y,b,w;function x(t){e[39](t)}var k={title:"Edit nested content "+(e[20].length>1?" (".concat(e[20].length,")"):""),fullScreenButton:!0,onClose:e[28]};void 0!==e[22]&&(k.fullscreen=e[22]),n=new SN({props:k}),ta.push((function(){return Aa(n,"fullscreen",x)}));var j={mode:e[24].mode,content:e[24].content,selection:e[24].selection,readOnly:e[0],indentation:e[1],tabSize:e[2],statusBar:e[5],askToFormat:e[6],mainMenuBar:e[3],navigationBar:e[4],escapeControlCharacters:e[7],escapeUnicodeCharacters:e[8],flattenColumns:e[9],parser:e[10],parseMemoizeOne:e[25],validator:e[11],validationParser:e[12],pathParser:e[13],insideModal:!0,onError:e[33],onChange:e[30],onChangeMode:e[32],onSelect:e[31],onRenderValue:e[14],onClassName:e[15],onFocus:Zq,onBlur:Zq,onRenderMenu:e[16],onRenderContextMenu:e[17],onSortModal:e[18],onTransformModal:e[19],onJSONEditorModal:e[34]};h=new j6({props:j}),e[40](h);var S=e[23]&&C6(e),C=e[20].length>1&&$6(e);function $(e,t){return e[0]?_6:O6}var _=$(e),O=_(e);return{c:function(){t=ki("div"),Ea(n.$$.fragment),o=Ci(),i=ki("div"),(a=ki("div")).innerHTML='<div class="jse-label-inner svelte-1m281k0">Path</div>',s=Ci(),c=ki("input"),u=Ci(),(l=ki("div")).innerHTML='<div class="jse-label-inner svelte-1m281k0">Contents</div>',f=Ci(),d=ki("div"),Ea(h.$$.fragment),v=Ci(),p=ki("div"),S&&S.c(),m=Ci(),C&&C.c(),g=Ci(),O.c(),Ai(a,"class","jse-label svelte-1m281k0"),Ai(c,"class","jse-path svelte-1m281k0"),Ai(c,"type","text"),c.readOnly=!0,Ai(c,"title","Selected path"),c.value=e[26],Ai(l,"class","jse-label svelte-1m281k0"),Ai(d,"class","jse-modal-inline-editor svelte-1m281k0"),Ai(p,"class","jse-actions svelte-1m281k0"),Ai(i,"class","jse-modal-contents svelte-1m281k0"),Ai(t,"class","jse-modal jse-jsoneditor-modal svelte-1m281k0"),zi(t,"fullscreen",e[22])},m:function(r,x){bi(r,t,x),Pa(n,t,null),vi(t,o),vi(t,i),vi(i,a),vi(i,s),vi(i,c),vi(i,u),vi(i,l),vi(i,f),vi(i,d),Pa(h,d,null),vi(i,v),vi(i,p),S&&S.m(p,null),vi(p,m),C&&C.m(p,null),vi(p,g),O.m(p,null),y=!0,b||(w=si(lI.call(null,t,e[29])),b=!0)},p:function(e,o){var i={};1048576&o[0]&&(i.title="Edit nested content "+(e[20].length>1?" (".concat(e[20].length,")"):"")),!r&&4194304&o[0]&&(r=!0,i.fullscreen=e[22],ua((function(){return r=!1}))),n.$set(i),(!y||67108864&o[0]&&c.value!==e[26])&&(c.value=e[26]);var a={};16777216&o[0]&&(a.mode=e[24].mode),16777216&o[0]&&(a.content=e[24].content),16777216&o[0]&&(a.selection=e[24].selection),1&o[0]&&(a.readOnly=e[0]),2&o[0]&&(a.indentation=e[1]),4&o[0]&&(a.tabSize=e[2]),32&o[0]&&(a.statusBar=e[5]),64&o[0]&&(a.askToFormat=e[6]),8&o[0]&&(a.mainMenuBar=e[3]),16&o[0]&&(a.navigationBar=e[4]),128&o[0]&&(a.escapeControlCharacters=e[7]),256&o[0]&&(a.escapeUnicodeCharacters=e[8]),512&o[0]&&(a.flattenColumns=e[9]),1024&o[0]&&(a.parser=e[10]),33554432&o[0]&&(a.parseMemoizeOne=e[25]),2048&o[0]&&(a.validator=e[11]),4096&o[0]&&(a.validationParser=e[12]),8192&o[0]&&(a.pathParser=e[13]),16384&o[0]&&(a.onRenderValue=e[14]),32768&o[0]&&(a.onClassName=e[15]),65536&o[0]&&(a.onRenderMenu=e[16]),131072&o[0]&&(a.onRenderContextMenu=e[17]),262144&o[0]&&(a.onSortModal=e[18]),524288&o[0]&&(a.onTransformModal=e[19]),h.$set(a),e[23]?S?S.p(e,o):((S=C6(e)).c(),S.m(p,m)):S&&(S.d(1),S=null),e[20].length>1?C?(C.p(e,o),1048576&o[0]&&wa(C,1)):((C=$6(e)).c(),wa(C,1),C.m(p,g)):C&&(ya(),xa(C,1,1,(function(){C=null})),ba()),_===(_=$(e))&&O?O.p(e,o):(O.d(1),(O=_(e))&&(O.c(),O.m(p,null))),(!y||4194304&o[0])&&zi(t,"fullscreen",e[22])},i:function(e){y||(wa(n.$$.fragment,e),wa(h.$$.fragment,e),wa(C),y=!0)},o:function(e){xa(n.$$.fragment,e),xa(h.$$.fragment,e),xa(C),y=!1},d:function(r){r&&wi(t),Ta(n),e[40](null),Ta(h),S&&S.d(),C&&C.d(),O.d(),b=!1,w()}}}function A6(e){e.focus()}function E6(e,t,n){var r,o,i,a,s,c,u=Ia("jsoneditor:JSONEditorModal"),l=t.content,f=t.path,d=t.onPatch,h=t.readOnly,v=t.indentation,p=t.tabSize,m=t.mainMenuBar,g=t.navigationBar,y=t.statusBar,b=t.askToFormat,w=t.escapeControlCharacters,x=t.escapeUnicodeCharacters,k=t.flattenColumns,j=t.parser,S=t.validator,C=t.validationParser,$=t.pathParser,_=t.onRenderValue,O=t.onClassName,M=t.onRenderMenu,A=t.onRenderContextMenu,E=t.onSortModal,P=t.onTransformModal,T=Xi("simple-modal").close,R={mode:D(l),content:l,selection:null,relativePath:f},N=[R],I=void 0;function D(e){return G_(e)&&Ts(e.json)?Ga.table:Ga.tree}function z(){var e,t=(null===(e=mb(N))||void 0===e?void 0:e.selection)||null;bA(t)&&s.scrollTo(KA(t))}function B(){u("handleClose"),N.length>1?(n(20,N=Xw(N)),sa().then(z),n(23,I=void 0)):T()}return e.$$set=function(e){"content"in e&&n(35,l=e.content),"path"in e&&n(36,f=e.path),"onPatch"in e&&n(37,d=e.onPatch),"readOnly"in e&&n(0,h=e.readOnly),"indentation"in e&&n(1,v=e.indentation),"tabSize"in e&&n(2,p=e.tabSize),"mainMenuBar"in e&&n(3,m=e.mainMenuBar),"navigationBar"in e&&n(4,g=e.navigationBar),"statusBar"in e&&n(5,y=e.statusBar),"askToFormat"in e&&n(6,b=e.askToFormat),"escapeControlCharacters"in e&&n(7,w=e.escapeControlCharacters),"escapeUnicodeCharacters"in e&&n(8,x=e.escapeUnicodeCharacters),"flattenColumns"in e&&n(9,k=e.flattenColumns),"parser"in e&&n(10,j=e.parser),"validator"in e&&n(11,S=e.validator),"validationParser"in e&&n(12,C=e.validationParser),"pathParser"in e&&n(13,$=e.pathParser),"onRenderValue"in e&&n(14,_=e.onRenderValue),"onClassName"in e&&n(15,O=e.onClassName),"onRenderMenu"in e&&n(16,M=e.onRenderMenu),"onRenderContextMenu"in e&&n(17,A=e.onRenderContextMenu),"onSortModal"in e&&n(18,E=e.onSortModal),"onTransformModal"in e&&n(19,P=e.onTransformModal)},e.$$.update=function(){1048576&e.$$.dirty[0]&&n(24,r=mb(N)||R),1048576&e.$$.dirty[0]&&n(38,o=N.flatMap((function(e){return e.relativePath}))),128&e.$$.dirty[1]&&n(26,i=Mx(o)?"(document root)":KO(o)),1024&e.$$.dirty[0]&&n(25,a=FB(j.parse))},[h,v,p,m,g,y,b,w,x,k,j,S,C,$,_,O,M,A,E,P,N,s,c,I,r,a,i,function(){if(u("handleApply"),!h)try{n(23,I=void 0);var e=r.relativePath,t=r.content,o=[{op:"replace",path:Zs(e),value:Y_(t,j).json}];if(N.length>1){var i={json:rc(Y_(N[N.length-2].content,j).json,o)},a=To(To({},N[N.length-2]||R),{},{content:i});n(20,N=[].concat(Bo(N.slice(0,N.length-2)),[a])),sa().then(z)}else d(o),T()}catch(e){n(23,I=String(e))}},B,function(){c?n(22,c=!1):B()},function(e){u("handleChange",e);var t=To(To({},r),{},{content:e});n(20,N=[].concat(Bo(Xw(N)),[t]))},function(e){u("handleChangeSelection",e);var t=To(To({},r),{},{selection:e});n(20,N=[].concat(Bo(Xw(N)),[t]))},function(e){u("handleChangeMode",e);var t=To(To({},r),{},{mode:e});n(20,N=[].concat(Bo(Xw(N)),[t]))},function(e){n(23,I=e.toString()),console.error(e)},function(e){var t=e.content,r=e.path;u("handleJSONEditorModal",{content:t,path:r});var o={mode:D(t),content:t,selection:null,relativePath:r};n(20,N=[].concat(Bo(N),[o]))},l,f,d,o,function(e){n(22,c=e)},function(e){ta[e?"unshift":"push"]((function(){n(21,s=e)}))}]}var P6=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,E6,M6,Xo,{content:35,path:36,onPatch:37,readOnly:0,indentation:1,tabSize:2,mainMenuBar:3,navigationBar:4,statusBar:5,askToFormat:6,escapeControlCharacters:7,escapeUnicodeCharacters:8,flattenColumns:9,parser:10,validator:11,validationParser:12,pathParser:13,onRenderValue:14,onClassName:15,onRenderMenu:16,onRenderContextMenu:17,onSortModal:18,onTransformModal:19},S6,[-1,-1]),n}return Ao(t,Na),Io(t)}();function T6(e,t,n){var r=Xi("simple-modal");return[r.open,r.close]}var R6=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,T6,null,Xo,{open:0,close:1}),n}return Ao(t,Na),Io(t,[{key:"open",get:function(){return this.$$.ctx[0]}},{key:"close",get:function(){return this.$$.ctx[1]}}])}();function N6(e){pi(e,"svelte-ybuk0j",'.jse-main.svelte-ybuk0j{width:100%;height:100%;min-width:0;min-height:150px;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);line-height:normal;position:relative;display:flex;flex-direction:row}')}function I6(e){var t,n,r={mode:e[1],content:e[0],selection:e[2],readOnly:e[3],indentation:e[4],tabSize:e[5],statusBar:e[8],askToFormat:e[9],mainMenuBar:e[6],navigationBar:e[7],escapeControlCharacters:e[10],escapeUnicodeCharacters:e[11],flattenColumns:e[12],parser:e[13],parseMemoizeOne:e[27],validator:e[14],validationParser:e[15],pathParser:e[16],insideModal:!1,onError:e[21],onChange:e[28],onChangeMode:e[32],onSelect:e[29],onRenderValue:e[17],onClassName:e[18],onFocus:e[30],onBlur:e[31],onRenderMenu:e[19],onRenderContextMenu:e[20],onSortModal:e[34],onTransformModal:e[33],onJSONEditorModal:e[35]};return t=new j6({props:r}),e[62](t),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},p:function(e,n){var r={};2&n[0]&&(r.mode=e[1]),1&n[0]&&(r.content=e[0]),4&n[0]&&(r.selection=e[2]),8&n[0]&&(r.readOnly=e[3]),16&n[0]&&(r.indentation=e[4]),32&n[0]&&(r.tabSize=e[5]),256&n[0]&&(r.statusBar=e[8]),512&n[0]&&(r.askToFormat=e[9]),64&n[0]&&(r.mainMenuBar=e[6]),128&n[0]&&(r.navigationBar=e[7]),1024&n[0]&&(r.escapeControlCharacters=e[10]),2048&n[0]&&(r.escapeUnicodeCharacters=e[11]),4096&n[0]&&(r.flattenColumns=e[12]),8192&n[0]&&(r.parser=e[13]),134217728&n[0]&&(r.parseMemoizeOne=e[27]),16384&n[0]&&(r.validator=e[14]),32768&n[0]&&(r.validationParser=e[15]),65536&n[0]&&(r.pathParser=e[16]),2097152&n[0]&&(r.onError=e[21]),131072&n[0]&&(r.onRenderValue=e[17]),262144&n[0]&&(r.onClassName=e[18]),524288&n[0]&&(r.onRenderMenu=e[19]),1048576&n[0]&&(r.onRenderContextMenu=e[20]),t.$set(r)},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(n){e[62](null),Ta(t,n)}}}function D6(e){var t,n,r,o,i,a=e[22];function s(t){e[61](t)}var c={};void 0!==e[25]&&(c.open=e[25]),t=new R6({props:c}),ta.push((function(){return Aa(t,"open",s)}));var u=I6(e);return{c:function(){Ea(t.$$.fragment),r=Ci(),o=ki("div"),u.c(),Ai(o,"class","jse-main svelte-ybuk0j"),zi(o,"jse-focus",e[23])},m:function(e,n){Pa(t,e,n),bi(e,r,n),bi(e,o,n),u.m(o,null),i=!0},p:function(e,r){var s={};!n&&33554432&r[0]&&(n=!0,s.open=e[25],ua((function(){return n=!1}))),t.$set(s),4194304&r[0]&&Xo(a,a=e[22])?(ya(),xa(u,1,1,Ho),ba(),(u=I6(e)).c(),wa(u,1),u.m(o,null)):u.p(e,r),(!i||8388608&r[0])&&zi(o,"jse-focus",e[23])},i:function(e){i||(wa(t.$$.fragment,e),wa(u),i=!0)},o:function(e){xa(t.$$.fragment,e),xa(u),i=!1},d:function(e){e&&(wi(r),wi(o)),Ta(t,e),u.d(e)}}}function z6(e){var t,n;return t=new ns({props:{closeOnEsc:!1,$$slots:{default:[D6]},$$scope:{ctx:e}}}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},p:function(e,n){var r={};201326591&n[0]|8&n[2]&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}function B6(e){for(var t,n,r,o=[{show:null===(t=e[26])||void 0===t?void 0:t.component},bs,{closeOnEsc:!1}],i={$$slots:{default:[z6]},$$scope:{ctx:e}},a=0;a<o.length;a+=1)i=Uo(i,o[a]);return(n=new ns({props:i})).$on("close",e[36]),{c:function(){Ea(n.$$.fragment)},m:function(e,t){Pa(n,e,t),r=!0},p:function(e,t){var r,i=67108864&t[0]?Oa(o,[{show:null===(r=e[26])||void 0===r?void 0:r.component},o[1],o[2]]):{};201326591&t[0]|8&t[2]&&(i.$$scope={dirty:t,ctx:e}),n.$set(i)},i:function(e){r||(wa(n.$$.fragment,e),r=!0)},o:function(e){xa(n.$$.fragment,e),r=!1},d:function(e){Ta(n,e)}}}function L6(e){var t,n;return t=new JO({props:{$$slots:{default:[B6]},$$scope:{ctx:e}}}),{c:function(){Ea(t.$$.fragment)},m:function(e,r){Pa(t,e,r),n=!0},p:function(e,n){var r={};268435455&n[0]|8&n[2]&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i:function(e){n||(wa(t.$$.fragment,e),n=!0)},o:function(e){xa(t.$$.fragment,e),n=!1},d:function(e){Ta(t,e)}}}function q6(e,t,n){var r,o,i,a=Ia("jsoneditor:JSONEditor"),s=t.content,c=void 0===s?{text:""}:s,u=t.selection,l=void 0===u?null:u,f=t.readOnly,d=void 0!==f&&f,h=t.indentation,v=void 0===h?2:h,p=t.tabSize,m=void 0===p?4:p,g=t.mode,y=void 0===g?Ga.tree:g,b=t.mainMenuBar,w=void 0===b||b,x=t.navigationBar,k=void 0===x||x,j=t.statusBar,S=void 0===j||j,C=t.askToFormat,$=void 0===C||C,_=t.escapeControlCharacters,O=void 0!==_&&_,M=t.escapeUnicodeCharacters,A=void 0!==M&&M,E=t.flattenColumns,P=void 0===E||E,T=t.parser,R=void 0===T?JSON:T,N=t.validator,I=void 0===N?null:N,D=t.validationParser,z=void 0===D?JSON:D,B=t.pathParser,L=void 0===B?{parse:GO,stringify:KO}:B,q=t.queryLanguages,F=void 0===q?[oM]:q,V=t.queryLanguageId,H=void 0===V?F[0].id:V,W=t.onChangeQueryLanguage,U=void 0===W?Zq:W,J=t.onChange,K=void 0===J?null:J,G=t.onSelect,Q=void 0===G?null:G,Y=t.onRenderValue,X=void 0===Y?YE:Y,Z=t.onClassName,ee=void 0===Z?function(){}:Z,te=t.onRenderMenu,ne=void 0===te?Zq:te,re=t.onRenderContextMenu,oe=void 0===re?Zq:re,ie=t.onChangeMode,ae=void 0===ie?Zq:ie,se=t.onError,ce=void 0===se?function(e){console.error(e),alert(e.toString())}:se,ue=t.onFocus,le=void 0===ue?Zq:ue,fe=t.onBlur,de=void 0===fe?Zq:fe,he=Ps(),ve=!1,pe=null,me=R;function ge(){return(ge=ko(wo().mark((function e(t){var r;return wo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a("set"),!(r=U_(t))){e.next=4;break}throw new Error(r);case 4:n(22,he=Ps()),n(0,c=t);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ye(){return(ye=ko(wo().mark((function e(t){var r;return wo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a("update"),!(r=U_(t))){e.next=4;break}throw new Error(r);case 4:return n(0,c=t),e.next=7,sa();case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function be(){return be=ko(wo().mark((function e(t){var r;return wo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!K_(c)){e.next=8;break}e.prev=1,n(0,c={json:R.parse(c.text),text:void 0}),e.next=8;break;case 5:throw e.prev=5,e.t0=e.catch(1),new Error("Cannot apply patch: current document contains invalid JSON");case 8:return r=o.patch(t),e.next=11,sa();case 11:return e.abrupt("return",r);case 12:case"end":return e.stop()}}),e,null,[[1,5]])}))),be.apply(this,arguments)}function we(){return(we=ko(wo().mark((function e(t){return wo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n(2,l=t),e.next=3,sa();case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function xe(){return(xe=ko(wo().mark((function e(t){return wo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o.expand(t),e.next=3,sa();case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ke(){return ke=ko(wo().mark((function e(){var t;return wo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.acceptAutoRepair(),e.next=3,sa();case 3:return e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))),ke.apply(this,arguments)}function je(){return(je=ko(wo().mark((function e(t){return wo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.scrollTo(t);case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Se(){return Ce.apply(this,arguments)}function Ce(){return(Ce=ko(wo().mark((function e(){return wo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o.focus(),e.next=3,sa();case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function $e(){return($e=ko(wo().mark((function e(){return wo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.refresh();case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function _e(){return(_e=ko(wo().mark((function e(t){return wo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.$set(t),e.next=3,sa();case 3:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}function Oe(){return(Oe=ko(wo().mark((function e(){return wo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.$destroy(),e.next=3,sa();case 3:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}function Me(){return(Me=ko(wo().mark((function e(t){return wo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(y!==t){e.next=2;break}return e.abrupt("return");case 2:return n(1,y=t),e.next=5,sa();case 5:return e.next=7,Se();case 7:ae(t);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ae(e){a("handleChangeQueryLanguage",e),n(37,H=e),U(e)}function Ee(e){var t=e.id,n=e.json,o=e.rootPath,a=e.onTransform,s=e.onClose;d||i(Hq,{id:t,json:n,rootPath:o,indentation:v,escapeControlCharacters:O,escapeUnicodeCharacters:A,parser:R,parseMemoizeOne:r,validationParser:z,pathParser:L,queryLanguages:F,queryLanguageId:H,onChangeQueryLanguage:Ae,onRenderValue:X,onRenderMenu:ne,onRenderContextMenu:oe,onClassName:ee,onTransform:a},ys,{onClose:s})}function Pe(e){var t=e.id,n=e.json,r=e.rootPath,o=e.onSort,a=e.onClose;d||i(Xq,{id:t,json:n,rootPath:r,onSort:o},gs,{onClose:a})}return e.$$set=function(e){"content"in e&&n(0,c=e.content),"selection"in e&&n(2,l=e.selection),"readOnly"in e&&n(3,d=e.readOnly),"indentation"in e&&n(4,v=e.indentation),"tabSize"in e&&n(5,m=e.tabSize),"mode"in e&&n(1,y=e.mode),"mainMenuBar"in e&&n(6,w=e.mainMenuBar),"navigationBar"in e&&n(7,k=e.navigationBar),"statusBar"in e&&n(8,S=e.statusBar),"askToFormat"in e&&n(9,$=e.askToFormat),"escapeControlCharacters"in e&&n(10,O=e.escapeControlCharacters),"escapeUnicodeCharacters"in e&&n(11,A=e.escapeUnicodeCharacters),"flattenColumns"in e&&n(12,P=e.flattenColumns),"parser"in e&&n(13,R=e.parser),"validator"in e&&n(14,I=e.validator),"validationParser"in e&&n(15,z=e.validationParser),"pathParser"in e&&n(16,L=e.pathParser),"queryLanguages"in e&&n(38,F=e.queryLanguages),"queryLanguageId"in e&&n(37,H=e.queryLanguageId),"onChangeQueryLanguage"in e&&n(39,U=e.onChangeQueryLanguage),"onChange"in e&&n(40,K=e.onChange),"onSelect"in e&&n(41,Q=e.onSelect),"onRenderValue"in e&&n(17,X=e.onRenderValue),"onClassName"in e&&n(18,ee=e.onClassName),"onRenderMenu"in e&&n(19,ne=e.onRenderMenu),"onRenderContextMenu"in e&&n(20,oe=e.onRenderContextMenu),"onChangeMode"in e&&n(42,ae=e.onChangeMode),"onError"in e&&n(21,ce=e.onError),"onFocus"in e&&n(43,le=e.onFocus),"onBlur"in e&&n(44,de=e.onBlur)},e.$$.update=function(){if(8193&e.$$.dirty[0]|536870912&e.$$.dirty[1]&&!oO(R,me)){if(a("parser changed, recreate editor"),G_(c)){var t=me.stringify(c.json);n(0,c={json:void 0!==t?R.parse(t):void 0})}n(60,me=R),n(22,he=Ps())}if(1&e.$$.dirty[0]){var o=U_(c);o&&console.error("Error: "+o)}8192&e.$$.dirty[0]&&n(27,r=FB(R.parse)),2&e.$$.dirty[0]&&(a("mode changed to",y),"code"===y&&console.warn('Deprecation warning: "code" mode is renamed to "text". Please use mode="text" instead.'))},[c,y,l,d,v,m,w,k,S,$,O,A,P,R,I,z,L,X,ee,ne,oe,ce,he,ve,o,i,pe,r,function(e,t,r){n(0,c=e),K&&K(e,t,r)},function(e){n(2,l=e),Q&&Q(xg(e))},function(){n(23,ve=!0),le&&le()},function(){n(23,ve=!1),de&&de()},function(e){return Me.apply(this,arguments)},Ee,Pe,function(e){var t=e.content,r=e.path,o=e.onPatch,i=e.onClose;a("onJSONEditorModal",{content:t,path:r}),n(26,pe={component:Ja(P6,{content:t,path:r,onPatch:o,readOnly:d,indentation:v,tabSize:m,mainMenuBar:w,navigationBar:k,statusBar:S,askToFormat:$,escapeControlCharacters:O,escapeUnicodeCharacters:A,flattenColumns:P,parser:R,validator:void 0,validationParser:z,pathParser:L,onRenderValue:X,onClassName:ee,onRenderMenu:ne,onRenderContextMenu:oe,onSortModal:Pe,onTransformModal:Ee}),callbacks:{onClose:i}})},function(){var e,t;null===(e=pe)||void 0===e||null===(e=e.callbacks)||void 0===e||null===(t=e.onClose)||void 0===t||t.call(e),n(26,pe=null)},H,F,U,K,Q,ae,le,de,function(){return c},function(e){return ge.apply(this,arguments)},function(e){return ye.apply(this,arguments)},function(e){return be.apply(this,arguments)},function(e){return we.apply(this,arguments)},function(e){return xe.apply(this,arguments)},function(e){o.transform(e)},function(){return o.validate()},function(){return ke.apply(this,arguments)},function(e){return je.apply(this,arguments)},function(e){return o.findElement(e)},Se,function(){return $e.apply(this,arguments)},function(e){return _e.apply(this,arguments)},function(){return Oe.apply(this,arguments)},me,function(e){n(25,i=e)},function(e){ta[e?"unshift":"push"]((function(){n(24,o=e)}))}]}var F6=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,q6,L6,Xo,{content:0,selection:2,readOnly:3,indentation:4,tabSize:5,mode:1,mainMenuBar:6,navigationBar:7,statusBar:8,askToFormat:9,escapeControlCharacters:10,escapeUnicodeCharacters:11,flattenColumns:12,parser:13,validator:14,validationParser:15,pathParser:16,queryLanguages:38,queryLanguageId:37,onChangeQueryLanguage:39,onChange:40,onSelect:41,onRenderValue:17,onClassName:18,onRenderMenu:19,onRenderContextMenu:20,onChangeMode:42,onError:21,onFocus:43,onBlur:44,get:45,set:46,update:47,patch:48,select:49,expand:50,transform:51,validate:52,acceptAutoRepair:53,scrollTo:54,findElement:55,focus:56,refresh:57,updateProps:58,destroy:59},N6,[-1,-1,-1]),n}return Ao(t,Na),Io(t,[{key:"get",get:function(){return this.$$.ctx[45]}},{key:"set",get:function(){return this.$$.ctx[46]}},{key:"update",get:function(){return this.$$.ctx[47]}},{key:"patch",get:function(){return this.$$.ctx[48]}},{key:"select",get:function(){return this.$$.ctx[49]}},{key:"expand",get:function(){return this.$$.ctx[50]}},{key:"transform",get:function(){return this.$$.ctx[51]}},{key:"validate",get:function(){return this.$$.ctx[52]}},{key:"acceptAutoRepair",get:function(){return this.$$.ctx[53]}},{key:"scrollTo",get:function(){return this.$$.ctx[54]}},{key:"findElement",get:function(){return this.$$.ctx[55]}},{key:"focus",get:function(){return this.$$.ctx[56]}},{key:"refresh",get:function(){return this.$$.ctx[57]}},{key:"updateProps",get:function(){return this.$$.ctx[58]}},{key:"destroy",get:function(){return this.$$.ctx[59]}}])}();function V6(e){pi(e,"svelte-9wp3tj",".jse-value.jse-string.svelte-9wp3tj{color:var(--jse-value-color-string, #008000)}.jse-value.jse-object.svelte-9wp3tj,.jse-value.jse-array.svelte-9wp3tj{min-width:16px;color:var(--jse-delimiter-color, rgba(0, 0, 0, 0.38))}.jse-value.jse-number.svelte-9wp3tj{color:var(--jse-value-color-number, #ee422e)}.jse-value.jse-boolean.svelte-9wp3tj{color:var(--jse-value-color-boolean, #ff8c00)}.jse-value.jse-null.svelte-9wp3tj{color:var(--jse-value-color-null, #004ed0)}.jse-value.jse-invalid.svelte-9wp3tj{color:var(--jse-text-color, #4d4d4d)}.jse-value.jse-url.svelte-9wp3tj{color:var(--jse-value-color-url, #008000);text-decoration:underline}.jse-enum-value.svelte-9wp3tj{background:var(--jse-hover-background-color, rgba(0, 0, 0, 0.06));border:none;padding:0;font-family:inherit;font-size:inherit;cursor:pointer;outline:none}.jse-enum-value.jse-selected.svelte-9wp3tj{background:var(--jse-selection-background-color, #d3d3d3);color:inherit}.jse-enum-value.jse-value.svelte-9wp3tj:focus{color:var(--jse-text-color, #4d4d4d)}.jse-json-node.jse-selected .jse-enum-value.svelte-9wp3tj{background:transparent}")}function H6(e,t,n){var r=e.slice();return r[13]=t[n],r}function W6(e){var t,n,r,o=e[13].text+"";return{c:function(){t=ki("option"),n=Si(o),t.__value=r=e[13].value,Ni(t,t.__value)},m:function(e,r){bi(e,t,r),vi(t,n)},p:function(e,i){4&i&&o!==(o=e[13].text+"")&&Ri(n,o),4&i&&r!==(r=e[13].value)&&(t.__value=r,Ni(t,t.__value))},d:function(e){e&&wi(t)}}}function U6(e){for(var t,n,r,o,i=Sa(e[2]),a=[],s=0;s<i.length;s+=1)a[s]=W6(H6(e,i,s));return{c:function(){t=ki("select");for(var r=0;r<a.length;r+=1)a[r].c();Ai(t,"class",n=ai("jse-enum-value ".concat(YA(e[4],e[0])))+" svelte-9wp3tj"),void 0===e[4]&&ca((function(){return e[10].call(t)})),zi(t,"jse-selected",mA(e[1]))},m:function(n,i){bi(n,t,i);for(var s=0;s<a.length;s+=1)a[s]&&a[s].m(t,null);Di(t,e[4],!0),e[11](t),r||(o=[_i(t,"change",e[10]),_i(t,"change",e[5]),_i(t,"mousedown",J6)],r=!0)},p:function(e,r){var o=jo(r,1)[0];if(4&o){var s;for(i=Sa(e[2]),s=0;s<i.length;s+=1){var c=H6(e,i,s);a[s]?a[s].p(c,o):(a[s]=W6(c),a[s].c(),a[s].m(t,null))}for(;s<a.length;s+=1)a[s].d(1);a.length=i.length}17&o&&n!==(n=ai("jse-enum-value ".concat(YA(e[4],e[0])))+" svelte-9wp3tj")&&Ai(t,"class",n),16&o&&Di(t,e[4]),19&o&&zi(t,"jse-selected",mA(e[1]))},i:Ho,o:Ho,d:function(n){n&&wi(t),xi(a,n),e[11](null),r=!1,Go(o)}}}function J6(e){e.stopPropagation()}function K6(e,t,n){var r,o=t.path,i=t.value,a=t.parser,s=t.readOnly,c=t.selection,u=t.onPatch,l=t.options,f=i;return e.$$set=function(e){"path"in e&&n(6,o=e.path),"value"in e&&n(7,i=e.value),"parser"in e&&n(0,a=e.parser),"readOnly"in e&&n(8,s=e.readOnly),"selection"in e&&n(1,c=e.selection),"onPatch"in e&&n(9,u=e.onPatch),"options"in e&&n(2,l=e.options)},e.$$.update=function(){128&e.$$.dirty&&n(4,f=i),2&e.$$.dirty&&function(e){e&&r&&r.focus()}(c)},[a,c,l,r,f,function(e){e.stopPropagation(),s||u([{op:"replace",path:Zs(o),value:f}])},o,i,s,u,function(){var e;e=this.querySelector(":checked"),f=e&&e.__value,n(4,f),n(7,i)},function(e){ta[e?"unshift":"push"]((function(){n(3,r=e),n(2,l)}))}]}var G6=function(e){function t(e){var n;return Ro(this,t),Ra(n=_o(this,t),e,K6,U6,Xo,{path:6,value:7,parser:0,readOnly:8,selection:1,onPatch:9,options:2},V6),n}return Ao(t,Na),Io(t)}();function Q6(e,t,n){var r=Y6(e,t||{},n);return r?function(e){if(Array.isArray(e.enum))return e.enum;var t=e.oneOf||e.anyOf||e.allOf;if(Array.isArray(t)){var n=t.filter((function(e){return e.enum}));if(n.length>0)return n[0].enum}return null}(r):null}function Y6(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e,o=n.slice(1,n.length),i=n[0],a=[r],s=0,c=[r.oneOf,r.anyOf,r.allOf];s<c.length;s++){var u=c[s];Array.isArray(u)&&(a=a.concat(u))}var l,f=bo(a);try{for(f.s();!(l=f.n()).done;){if("$ref"in(r=l.value)&&"string"==typeof r.$ref){var d,h=r.$ref;if(h in t)r=t[h];else{if(!h.startsWith("#/")){if(1===(null===(d=h.match(/#\//g))||void 0===d?void 0:d.length)){var v=jo(h.split("#/"),2),p=v[0],m=v[1];if(p in t){var g=t[p],y={$ref:"#/".concat(m)},b=[];return b.push(i),o.length>0&&b.push.apply(b,Bo(o)),Y6(g,t,b,y)}throw Error("Unable to resolve reference ".concat(h))}throw Error("Unable to resolve reference ".concat(h))}var w=h.substring(2).split("/");r=e;var x,k=bo(w);try{for(k.s();!(x=k.n()).done;){var j=x.value;if(!(j in r))throw Error("Unable to resolve reference ".concat(h));r=r[j]}}catch(e){k.e(e)}finally{k.f()}}}if(void 0===i)return r;if("object"===Vo(r.properties)&&null!==r.properties&&i in r.properties)return Y6(e,t,o,r=r.properties[i]);if("object"===Vo(r.patternProperties)&&null!==r.patternProperties)for(var S in r.patternProperties)if(i.match(S))return Y6(e,t,o,r=r.patternProperties[S]);if("object"===Vo(r.additionalProperties))return Y6(e,t,o,r=r.additionalProperties);if("object"===Vo(r.items)&&null!==r.items)return Y6(e,t,o,r=r.items)}}catch(e){f.e(e)}finally{f.f()}return null}function X6(e,t,n){var r=Q6(t,n,e.path);if(r){var o=e.value,i=e.path,a=e.selection,s=e.parser,c=e.readOnly,u=e.onPatch,l=r.map((function(e){return{value:e,text:e}})),f=r.includes(e.value)?l:[{value:o,text:o}].concat(l);return[{component:G6,props:{value:o,path:i,selection:a,parser:s,readOnly:c,onPatch:u,options:f}}]}return null}var Z6,e8={exports:{}},t8={},n8={},r8={},o8={},i8={},a8={};function s8(){return Z6||(Z6=1,function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.regexpCode=n.getEsmExportName=n.getProperty=n.safeStringify=n.stringify=n.strConcat=n.addCodeArg=n.str=n._=n.nil=n._Code=n.Name=n.IDENTIFIER=n._CodeOrName=void 0;var r=Io((function e(){Ro(this,e)}));n._CodeOrName=r,n.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var o=function(e){function t(e){var r;if(Ro(this,t),r=_o(this,t),!n.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");return r.str=e,r}return Ao(t,e),Io(t,[{key:"toString",value:function(){return this.str}},{key:"emptyStr",value:function(){return!1}},{key:"names",get:function(){return Do({},this.str,1)}}])}(r);n.Name=o;var i=function(e){function t(e){var n;return Ro(this,t),(n=_o(this,t))._items="string"==typeof e?[e]:e,n}return Ao(t,e),Io(t,[{key:"toString",value:function(){return this.str}},{key:"emptyStr",value:function(){if(this._items.length>1)return!1;var e=this._items[0];return""===e||'""'===e}},{key:"str",get:function(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce((function(e,t){return"".concat(e).concat(t)}),"")}},{key:"names",get:function(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce((function(e,t){return t instanceof o&&(e[t.str]=(e[t.str]||0)+1),e}),{})}}])}(r);function a(e){for(var t=[e[0]],n=0,r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];for(;n<o.length;)u(t,o[n]),t.push(e[++n]);return new i(t)}n._Code=i,n.nil=new i(""),n._=a;var s=new i("+");function c(e){for(var t=[f(e[0])],n=0,r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];for(;n<o.length;)t.push(s),u(t,o[n]),t.push(s,f(e[++n]));return function(e){var t=1;for(;t<e.length-1;){if(e[t]===s){var n=l(e[t-1],e[t+1]);if(void 0!==n){e.splice(t-1,3,n);continue}e[t++]="+"}t++}}(t),new i(t)}function u(e,t){var n;t instanceof i?e.push.apply(e,Bo(t._items)):t instanceof o?e.push(t):e.push("number"==typeof(n=t)||"boolean"==typeof n||null===n?n:f(Array.isArray(n)?n.join(","):n))}function l(e,t){if('""'===t)return e;if('""'===e)return t;if("string"==typeof e){if(t instanceof o||'"'!==e[e.length-1])return;return"string"!=typeof t?"".concat(e.slice(0,-1)).concat(t,'"'):'"'===t[0]?e.slice(0,-1)+t.slice(1):void 0}return"string"!=typeof t||'"'!==t[0]||e instanceof o?void 0:'"'.concat(e).concat(t.slice(1))}function f(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}n.str=c,n.addCodeArg=u,n.strConcat=function(t,n){return n.emptyStr()?t:t.emptyStr()?n:c(e||(e=mo(["","",""])),t,n)},n.stringify=function(e){return new i(f(e))},n.safeStringify=f,n.getProperty=function(e){return"string"==typeof e&&n.IDENTIFIER.test(e)?new i(".".concat(e)):a(t||(t=mo(["[","]"])),e)},n.getEsmExportName=function(e){if("string"==typeof e&&n.IDENTIFIER.test(e))return new i("".concat(e));throw new Error("CodeGen: invalid export name: ".concat(e,", use explicit $id name mapping"))},n.regexpCode=function(e){return new i(e.toString())}}(a8)),a8}var c8,u8,l8={};function f8(){return c8||(c8=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;var t,s=s8(),c=function(e){function t(e){var n;return Ro(this,t),(n=_o(this,t,['CodeGen: "code" for '.concat(e," not defined")])).value=e.value,n}return Ao(t,$o(Error)),Io(t)}();!function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"}(t=e.UsedValueState||(e.UsedValueState={})),e.varKinds={const:new s.Name("const"),let:new s.Name("let"),var:new s.Name("var")};var u=function(){return Io((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.prefixes,r=t.parent;Ro(this,e),this._names={},this._prefixes=n,this._parent=r}),[{key:"toName",value:function(e){return e instanceof s.Name?e:this.name(e)}},{key:"name",value:function(e){return new s.Name(this._newName(e))}},{key:"_newName",value:function(e){var t=this._names[e]||this._nameGroup(e);return"".concat(e).concat(t.index++)}},{key:"_nameGroup",value:function(e){var t,n;if((null===(n=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===n?void 0:n.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error('CodeGen: prefix "'.concat(e,'" is not allowed in this scope'));return this._names[e]={prefix:e,index:0}}}])}();e.Scope=u;var l=function(e){function t(e,n){var r;return Ro(this,t),(r=_o(this,t,[n])).prefix=e,r}return Ao(t,e),Io(t,[{key:"setValue",value:function(e,t){var r=t.property,o=t.itemIndex;this.value=e,this.scopePath=(0,s._)(n||(n=mo([".","[","]"])),new s.Name(r),o)}}])}(s.Name);e.ValueScopeName=l;var f=(0,s._)(r||(r=mo(["\n"],["\\n"]))),d=function(n){function r(e){var t;return Ro(this,r),(t=_o(this,r,[e]))._values={},t._scope=e.scope,t.opts=To(To({},e),{},{_n:e.lines?f:s.nil}),t}return Ao(r,n),Io(r,[{key:"get",value:function(){return this._scope}},{key:"name",value:function(e){return new l(e,this._newName(e))}},{key:"value",value:function(e,t){var n;if(void 0===t.ref)throw new Error("CodeGen: ref must be passed in value");var r=this.toName(e),o=r.prefix,i=null!==(n=t.key)&&void 0!==n?n:t.ref,a=this._values[o];if(a){var s=a.get(i);if(s)return s}else a=this._values[o]=new Map;a.set(i,r);var c=this._scope[o]||(this._scope[o]=[]),u=c.length;return c[u]=t.ref,r.setValue(t,{property:o,itemIndex:u}),r}},{key:"getValue",value:function(e,t){var n=this._values[e];if(n)return n.get(t)}},{key:"scopeRefs",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._values;return this._reduceValues(t,(function(t){if(void 0===t.scopePath)throw new Error('CodeGen: name "'.concat(t,'" has no value'));return(0,s._)(o||(o=mo(["","",""])),e,t.scopePath)}))}},{key:"scopeCode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._values,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return this._reduceValues(e,(function(e){if(void 0===e.value)throw new Error('CodeGen: name "'.concat(e,'" has no value'));return e.value.code}),t,n)}},{key:"_reduceValues",value:function(n,r){var o=this,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=arguments.length>3?arguments[3]:void 0,f=s.nil,d=function(){var d=n[h];if(!d)return 1;var v=u[h]=u[h]||new Map;d.forEach((function(n){if(!v.has(n)){v.set(n,t.Started);var u=r(n);if(u){var d=o.opts.es5?e.varKinds.var:e.varKinds.const;f=(0,s._)(i||(i=mo(["",""," "," = ",";",""])),f,d,n,u,o.opts._n)}else{if(!(u=null==l?void 0:l(n)))throw new c(n);f=(0,s._)(a||(a=mo(["","","",""])),f,u,o.opts._n)}v.set(n,t.Completed)}}))};for(var h in n)d();return f}}])}(u);e.ValueScope=d}(l8)),l8}function d8(){return u8||(u8=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;var t=s8(),n=f8(),r=s8();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return r.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return r.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return r.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}});var o=f8();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return o.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return o.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return o.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return o.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};var i=function(){return Io((function e(){Ro(this,e)}),[{key:"optimizeNodes",value:function(){return this}},{key:"optimizeNames",value:function(e,t){return this}}])}(),a=function(e){function r(e,t,n){var o;return Ro(this,r),(o=_o(this,r)).varKind=e,o.name=t,o.rhs=n,o}return Ao(r,e),Io(r,[{key:"render",value:function(e){var t=e.es5,r=e._n,o=t?n.varKinds.var:this.varKind,i=void 0===this.rhs?"":" = ".concat(this.rhs);return"".concat(o," ").concat(this.name).concat(i,";")+r}},{key:"optimizeNames",value:function(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=I(this.rhs,e,t)),this}},{key:"names",get:function(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}])}(i),h=function(e){function n(e,t,r){var o;return Ro(this,n),(o=_o(this,n)).lhs=e,o.rhs=t,o.sideEffects=r,o}return Ao(n,e),Io(n,[{key:"render",value:function(e){var t=e._n;return"".concat(this.lhs," = ").concat(this.rhs,";")+t}},{key:"optimizeNames",value:function(e,n){if(!(this.lhs instanceof t.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=I(this.rhs,e,n),this}},{key:"names",get:function(){return N(this.lhs instanceof t.Name?{}:To({},this.lhs.names),this.rhs)}}])}(i),v=function(e){function t(e,n,r,o){var i;return Ro(this,t),(i=_o(this,t,[e,r,o])).op=n,i}return Ao(t,e),Io(t,[{key:"render",value:function(e){var t=e._n;return"".concat(this.lhs," ").concat(this.op,"= ").concat(this.rhs,";")+t}}])}(h),p=function(e){function t(e){var n;return Ro(this,t),(n=_o(this,t)).label=e,n.names={},n}return Ao(t,e),Io(t,[{key:"render",value:function(e){var t=e._n;return"".concat(this.label,":")+t}}])}(i),m=function(e){function t(e){var n;return Ro(this,t),(n=_o(this,t)).label=e,n.names={},n}return Ao(t,e),Io(t,[{key:"render",value:function(e){var t=e._n,n=this.label?" ".concat(this.label):"";return"break".concat(n,";")+t}}])}(i),g=function(e){function t(e){var n;return Ro(this,t),(n=_o(this,t)).error=e,n}return Ao(t,e),Io(t,[{key:"render",value:function(e){var t=e._n;return"throw ".concat(this.error,";")+t}},{key:"names",get:function(){return this.error.names}}])}(i),y=function(e){function n(e){var t;return Ro(this,n),(t=_o(this,n)).code=e,t}return Ao(n,e),Io(n,[{key:"render",value:function(e){var t=e._n;return"".concat(this.code,";")+t}},{key:"optimizeNodes",value:function(){return"".concat(this.code)?this:void 0}},{key:"optimizeNames",value:function(e,t){return this.code=I(this.code,e,t),this}},{key:"names",get:function(){return this.code instanceof t._CodeOrName?this.code.names:{}}}])}(i),b=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Ro(this,t),(e=_o(this,t)).nodes=n,e}return Ao(t,e),Io(t,[{key:"render",value:function(e){return this.nodes.reduce((function(t,n){return t+n.render(e)}),"")}},{key:"optimizeNodes",value:function(){for(var e=this.nodes,t=e.length;t--;){var n=e[t].optimizeNodes();Array.isArray(n)?e.splice.apply(e,[t,1].concat(Bo(n))):n?e[t]=n:e.splice(t,1)}return e.length>0?this:void 0}},{key:"optimizeNames",value:function(e,t){for(var n=this.nodes,r=n.length;r--;){var o=n[r];o.optimizeNames(e,t)||(D(e,o.names),n.splice(r,1))}return n.length>0?this:void 0}},{key:"names",get:function(){return this.nodes.reduce((function(e,t){return R(e,t.names)}),{})}}])}(i),w=function(e){function t(){return Ro(this,t),_o(this,t,arguments)}return Ao(t,e),Io(t,[{key:"render",value:function(e){return"{"+e._n+go(Mo(t.prototype),"render",this).call(this,e)+"}"+e._n}}])}(b),x=function(e){function t(){return Ro(this,t),_o(this,t,arguments)}return Ao(t,e),Io(t)}(b),k=function(e){function t(){return Ro(this,t),_o(this,t,arguments)}return Ao(t,e),Io(t)}(w);k.kind="else";var j=function(e){function t(e,n){var r;return Ro(this,t),(r=_o(this,t,[n])).condition=e,r}return Ao(t,e),Io(t,[{key:"render",value:function(e){var n="if(".concat(this.condition,")")+go(Mo(t.prototype),"render",this).call(this,e);return this.else&&(n+="else "+this.else.render(e)),n}},{key:"optimizeNodes",value:function(){go(Mo(t.prototype),"optimizeNodes",this).call(this);var e=this.condition;if(!0===e)return this.nodes;var n=this.else;if(n){var r=n.optimizeNodes();n=this.else=Array.isArray(r)?new k(r):r}return n?!1===e?n instanceof t?n:n.nodes:this.nodes.length?this:new t(z(e),n instanceof t?[n]:n.nodes):!1!==e&&this.nodes.length?this:void 0}},{key:"optimizeNames",value:function(e,n){var r;if(this.else=null===(r=this.else)||void 0===r?void 0:r.optimizeNames(e,n),go(Mo(t.prototype),"optimizeNames",this).call(this,e,n)||this.else)return this.condition=I(this.condition,e,n),this}},{key:"names",get:function(){var e=go(Mo(t.prototype),"names",this);return N(e,this.condition),this.else&&R(e,this.else.names),e}}])}(w);j.kind="if";var S=function(e){function t(){return Ro(this,t),_o(this,t,arguments)}return Ao(t,e),Io(t)}(w);S.kind="for";var C=function(e){function t(e){var n;return Ro(this,t),(n=_o(this,t)).iteration=e,n}return Ao(t,e),Io(t,[{key:"render",value:function(e){return"for(".concat(this.iteration,")")+go(Mo(t.prototype),"render",this).call(this,e)}},{key:"optimizeNames",value:function(e,n){if(go(Mo(t.prototype),"optimizeNames",this).call(this,e,n))return this.iteration=I(this.iteration,e,n),this}},{key:"names",get:function(){return R(go(Mo(t.prototype),"names",this),this.iteration.names)}}])}(S),$=function(e){function t(e,n,r,o){var i;return Ro(this,t),(i=_o(this,t)).varKind=e,i.name=n,i.from=r,i.to=o,i}return Ao(t,e),Io(t,[{key:"render",value:function(e){var r=e.es5?n.varKinds.var:this.varKind,o=this.name,i=this.from,a=this.to;return"for(".concat(r," ").concat(o,"=").concat(i,"; ").concat(o,"<").concat(a,"; ").concat(o,"++)")+go(Mo(t.prototype),"render",this).call(this,e)}},{key:"names",get:function(){var e=N(go(Mo(t.prototype),"names",this),this.from);return N(e,this.to)}}])}(S),_=function(e){function t(e,n,r,o){var i;return Ro(this,t),(i=_o(this,t)).loop=e,i.varKind=n,i.name=r,i.iterable=o,i}return Ao(t,e),Io(t,[{key:"render",value:function(e){return"for(".concat(this.varKind," ").concat(this.name," ").concat(this.loop," ").concat(this.iterable,")")+go(Mo(t.prototype),"render",this).call(this,e)}},{key:"optimizeNames",value:function(e,n){if(go(Mo(t.prototype),"optimizeNames",this).call(this,e,n))return this.iterable=I(this.iterable,e,n),this}},{key:"names",get:function(){return R(go(Mo(t.prototype),"names",this),this.iterable.names)}}])}(S),O=function(e){function t(e,n,r){var o;return Ro(this,t),(o=_o(this,t)).name=e,o.args=n,o.async=r,o}return Ao(t,e),Io(t,[{key:"render",value:function(e){var n=this.async?"async ":"";return"".concat(n,"function ").concat(this.name,"(").concat(this.args,")")+go(Mo(t.prototype),"render",this).call(this,e)}}])}(w);O.kind="func";var M=function(e){function t(){return Ro(this,t),_o(this,t,arguments)}return Ao(t,e),Io(t,[{key:"render",value:function(e){return"return "+go(Mo(t.prototype),"render",this).call(this,e)}}])}(b);M.kind="return";var A=function(e){function t(){return Ro(this,t),_o(this,t,arguments)}return Ao(t,e),Io(t,[{key:"render",value:function(e){var n="try"+go(Mo(t.prototype),"render",this).call(this,e);return this.catch&&(n+=this.catch.render(e)),this.finally&&(n+=this.finally.render(e)),n}},{key:"optimizeNodes",value:function(){var e,n;return go(Mo(t.prototype),"optimizeNodes",this).call(this),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(n=this.finally)||void 0===n||n.optimizeNodes(),this}},{key:"optimizeNames",value:function(e,n){var r,o;return go(Mo(t.prototype),"optimizeNames",this).call(this,e,n),null===(r=this.catch)||void 0===r||r.optimizeNames(e,n),null===(o=this.finally)||void 0===o||o.optimizeNames(e,n),this}},{key:"names",get:function(){var e=go(Mo(t.prototype),"names",this);return this.catch&&R(e,this.catch.names),this.finally&&R(e,this.finally.names),e}}])}(w),E=function(e){function t(e){var n;return Ro(this,t),(n=_o(this,t)).error=e,n}return Ao(t,e),Io(t,[{key:"render",value:function(e){return"catch(".concat(this.error,")")+go(Mo(t.prototype),"render",this).call(this,e)}}])}(w);E.kind="catch";var P=function(e){function t(){return Ro(this,t),_o(this,t,arguments)}return Ao(t,e),Io(t,[{key:"render",value:function(e){return"finally"+go(Mo(t.prototype),"render",this).call(this,e)}}])}(w);P.kind="finally";var T=function(){return Io((function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ro(this,e),this._values={},this._blockStarts=[],this._constants={},this.opts=To(To({},r),{},{_n:r.lines?"\n":""}),this._extScope=t,this._scope=new n.Scope({parent:t}),this._nodes=[new x]}),[{key:"toString",value:function(){return this._root.render(this.opts)}},{key:"name",value:function(e){return this._scope.name(e)}},{key:"scopeName",value:function(e){return this._extScope.name(e)}},{key:"scopeValue",value:function(e,t){var n=this._extScope.value(e,t);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}},{key:"getScopeValue",value:function(e,t){return this._extScope.getValue(e,t)}},{key:"scopeRefs",value:function(e){return this._extScope.scopeRefs(e,this._values)}},{key:"scopeCode",value:function(){return this._extScope.scopeCode(this._values)}},{key:"_def",value:function(e,t,n,r){var o=this._scope.toName(t);return void 0!==n&&r&&(this._constants[o.str]=n),this._leafNode(new a(e,o,n)),o}},{key:"const",value:function(e,t,r){return this._def(n.varKinds.const,e,t,r)}},{key:"let",value:function(e,t,r){return this._def(n.varKinds.let,e,t,r)}},{key:"var",value:function(e,t,r){return this._def(n.varKinds.var,e,t,r)}},{key:"assign",value:function(e,t,n){return this._leafNode(new h(e,t,n))}},{key:"add",value:function(t,n){return this._leafNode(new v(t,e.operators.ADD,n))}},{key:"code",value:function(e){return"function"==typeof e?e():e!==t.nil&&this._leafNode(new y(e)),this}},{key:"object",value:function(){for(var e=["{"],n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];for(var i=0,a=r;i<a.length;i++){var s=jo(a[i],2),c=s[0],u=s[1];e.length>1&&e.push(","),e.push(c),(c!==u||this.opts.es5)&&(e.push(":"),(0,t.addCodeArg)(e,u))}return e.push("}"),new t._Code(e)}},{key:"if",value:function(e,t,n){if(this._blockNode(new j(e)),t&&n)this.code(t).else().code(n).endIf();else if(t)this.code(t).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}},{key:"elseIf",value:function(e){return this._elseNode(new j(e))}},{key:"else",value:function(){return this._elseNode(new k)}},{key:"endIf",value:function(){return this._endBlockNode(j,k)}},{key:"_for",value:function(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}},{key:"for",value:function(e,t){return this._for(new C(e),t)}},{key:"forRange",value:function(e,t,r,o){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.opts.es5?n.varKinds.var:n.varKinds.let,a=this._scope.toName(e);return this._for(new $(i,a,t,r),(function(){return o(a)}))}},{key:"forOf",value:function(e,r,o){var i=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n.varKinds.const,u=this._scope.toName(e);if(this.opts.es5){var l=r instanceof t.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,t._)(s||(s=mo(["",".length"])),l),(function(e){i.var(u,(0,t._)(c||(c=mo(["","[","]"])),l,e)),o(u)}))}return this._for(new _("of",a,u,r),(function(){return o(u)}))}},{key:"forIn",value:function(e,r,o){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.opts.es5?n.varKinds.var:n.varKinds.const;if(this.opts.ownProperties)return this.forOf(e,(0,t._)(u||(u=mo(["Object.keys(",")"])),r),o);var a=this._scope.toName(e);return this._for(new _("in",i,a,r),(function(){return o(a)}))}},{key:"endFor",value:function(){return this._endBlockNode(S)}},{key:"label",value:function(e){return this._leafNode(new p(e))}},{key:"break",value:function(e){return this._leafNode(new m(e))}},{key:"return",value:function(e){var t=new M;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(M)}},{key:"try",value:function(e,t,n){if(!t&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');var r=new A;if(this._blockNode(r),this.code(e),t){var o=this.name("e");this._currNode=r.catch=new E(o),t(o)}return n&&(this._currNode=r.finally=new P,this.code(n)),this._endBlockNode(E,P)}},{key:"throw",value:function(e){return this._leafNode(new g(e))}},{key:"block",value:function(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}},{key:"endBlock",value:function(e){var t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");var n=this._nodes.length-t;if(n<0||void 0!==e&&n!==e)throw new Error("CodeGen: wrong number of nodes: ".concat(n," vs ").concat(e," expected"));return this._nodes.length=t,this}},{key:"func",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.nil,r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0;return this._blockNode(new O(e,n,r)),o&&this.code(o).endFunc(),this}},{key:"endFunc",value:function(){return this._endBlockNode(O)}},{key:"optimize",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}},{key:"_leafNode",value:function(e){return this._currNode.nodes.push(e),this}},{key:"_blockNode",value:function(e){this._currNode.nodes.push(e),this._nodes.push(e)}},{key:"_endBlockNode",value:function(e,t){var n=this._currNode;if(n instanceof e||t&&n instanceof t)return this._nodes.pop(),this;throw new Error('CodeGen: not in block "'.concat(t?"".concat(e.kind,"/").concat(t.kind):e.kind,'"'))}},{key:"_elseNode",value:function(e){var t=this._currNode;if(!(t instanceof j))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}},{key:"_root",get:function(){return this._nodes[0]}},{key:"_currNode",get:function(){var e=this._nodes;return e[e.length-1]},set:function(e){var t=this._nodes;t[t.length-1]=e}}])}();function R(e,t){for(var n in t)e[n]=(e[n]||0)+(t[n]||0);return e}function N(e,n){return n instanceof t._CodeOrName?R(e,n.names):e}function I(e,n,r){return e instanceof t.Name?i(e):(o=e)instanceof t._Code&&o._items.some((function(e){return e instanceof t.Name&&1===n[e.str]&&void 0!==r[e.str]}))?new t._Code(e._items.reduce((function(e,n){return n instanceof t.Name&&(n=i(n)),n instanceof t._Code?e.push.apply(e,Bo(n._items)):e.push(n),e}),[])):e;var o;function i(e){var t=r[e.str];return void 0===t||1!==n[e.str]?e:(delete n[e.str],t)}}function D(e,t){for(var n in t)e[n]=(e[n]||0)-(t[n]||0)}function z(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:(0,t._)(l||(l=mo(["!",""])),F(e))}e.CodeGen=T,e.not=z;var B=q(e.operators.AND);e.and=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(B)};var L=q(e.operators.OR);function q(e){return function(n,r){return n===t.nil?r:r===t.nil?n:(0,t._)(f||(f=mo([""," "," ",""])),F(n),e,F(r))}}function F(e){return e instanceof t.Name?e:(0,t._)(d||(d=mo(["(",")"])),e)}e.or=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(L)}}(i8)),i8}var h8={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.checkStrictMode=e.getErrorPath=e.Type=e.useFunc=e.setEvaluated=e.evaluatedPropsToName=e.mergeEvaluated=e.eachItem=e.unescapeJsonPointer=e.escapeJsonPointer=e.escapeFragment=e.unescapeFragment=e.schemaRefOrVal=e.schemaHasRulesButRef=e.schemaHasRules=e.checkUnknownRules=e.alwaysValidSchema=e.toHash=void 0;var t=d8(),n=s8();function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.schema,n=e.opts,r=e.self;if(n.strictSchema&&"boolean"!=typeof t){var o=r.RULES.keywords;for(var i in t)o[i]||d(e,'unknown keyword: "'.concat(i,'"'))}}function o(e,t){if("boolean"==typeof e)return!e;for(var n in e)if(t[n])return!0;return!1}function i(e){return"number"==typeof e?"".concat(e):e.replace(/~/g,"~0").replace(/\//g,"~1")}function a(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function s(e){var n=e.mergeNames,r=e.mergeToName,o=e.mergeValues,i=e.resultToName;return function(e,a,s,c){var u=void 0===s?a:s instanceof t.Name?(a instanceof t.Name?n(e,a,s):r(e,a,s),s):a instanceof t.Name?(r(e,s,a),a):o(a,s);return c!==t.Name||u instanceof t.Name?u:i(e,u)}}function c(e,n){if(!0===n)return e.var("props",!0);var r=e.var("props",(0,t._)(C||(C=mo(["{}"]))));return void 0!==n&&u(e,r,n),r}function u(e,n,r){Object.keys(r).forEach((function(r){return e.assign((0,t._)($||($=mo(["","",""])),n,(0,t.getProperty)(r)),!0)}))}e.toHash=function(e){var t,n={},r=bo(e);try{for(r.s();!(t=r.n()).done;){n[t.value]=!0}}catch(e){r.e(e)}finally{r.f()}return n},e.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(r(e,t),!o(t,e.self.RULES.all))},e.checkUnknownRules=r,e.schemaHasRules=o,e.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(var n in e)if("$ref"!==n&&t.all[n])return!0;return!1},e.schemaRefOrVal=function(e,n,r,o){var i=e.topSchemaRef,a=e.schemaPath;if(!o){if("number"==typeof n||"boolean"==typeof n)return n;if("string"==typeof n)return(0,t._)(h||(h=mo(["",""])),n)}return(0,t._)(v||(v=mo(["","","",""])),i,a,(0,t.getProperty)(r))},e.unescapeFragment=function(e){return a(decodeURIComponent(e))},e.escapeFragment=function(e){return encodeURIComponent(i(e))},e.escapeJsonPointer=i,e.unescapeJsonPointer=a,e.eachItem=function(e,t){if(Array.isArray(e)){var n,r=bo(e);try{for(r.s();!(n=r.n()).done;){t(n.value)}}catch(e){r.e(e)}finally{r.f()}}else t(e)},e.mergeEvaluated={props:s({mergeNames:function(e,n,r){return e.if((0,t._)(p||(p=mo([""," !== true && "," !== undefined"])),r,n),(function(){e.if((0,t._)(m||(m=mo([""," === true"])),n),(function(){return e.assign(r,!0)}),(function(){return e.assign(r,(0,t._)(g||(g=mo([""," || {}"])),r)).code((0,t._)(y||(y=mo(["Object.assign(",", ",")"])),r,n))}))}))},mergeToName:function(e,n,r){return e.if((0,t._)(b||(b=mo([""," !== true"])),r),(function(){!0===n?e.assign(r,!0):(e.assign(r,(0,t._)(w||(w=mo([""," || {}"])),r)),u(e,r,n))}))},mergeValues:function(e,t){return!0===e||To(To({},e),t)},resultToName:c}),items:s({mergeNames:function(e,n,r){return e.if((0,t._)(x||(x=mo([""," !== true && "," !== undefined"])),r,n),(function(){return e.assign(r,(0,t._)(k||(k=mo([""," === true ? true : "," > "," ? "," : ",""])),n,r,n,r,n))}))},mergeToName:function(e,n,r){return e.if((0,t._)(j||(j=mo([""," !== true"])),r),(function(){return e.assign(r,!0===n||(0,t._)(S||(S=mo([""," > "," ? "," : ",""])),r,n,r,n))}))},mergeValues:function(e,t){return!0===e||Math.max(e,t)},resultToName:function(e,t){return e.var("items",t)}})},e.evaluatedPropsToName=c,e.setEvaluated=u;var l,f={};function d(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.opts.strictSchema;if(n){if(t="strict mode: ".concat(t),!0===n)throw new Error(t);e.self.logger.warn(t)}}e.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:f[t.code]||(f[t.code]=new n._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(l=e.Type||(e.Type={})),e.getErrorPath=function(e,n,r){if(e instanceof t.Name){var o=n===l.Num;return r?o?(0,t._)(_||(_=mo(['"[" + ',' + "]"'])),e):(0,t._)(O||(O=mo(['"[\'" + ',' + "\']"'])),e):o?(0,t._)(M||(M=mo(['"/" + ',""])),e):(0,t._)(A||(A=mo(['"/" + ','.replace(/~/g, "~0").replace(/\\//g, "~1")'],['"/" + ','.replace(/~/g, "~0").replace(/\\\\//g, "~1")'])),e)}return r?(0,t.getProperty)(e).toString():"/"+i(e)},e.checkStrictMode=d}(h8);var v8,p8,m8,g8={};function y8(){if(v8)return g8;v8=1,Object.defineProperty(g8,"__esModule",{value:!0});var e=d8(),t={data:new e.Name("data"),valCxt:new e.Name("valCxt"),instancePath:new e.Name("instancePath"),parentData:new e.Name("parentData"),parentDataProperty:new e.Name("parentDataProperty"),rootData:new e.Name("rootData"),dynamicAnchors:new e.Name("dynamicAnchors"),vErrors:new e.Name("vErrors"),errors:new e.Name("errors"),this:new e.Name("this"),self:new e.Name("self"),scope:new e.Name("scope"),json:new e.Name("json"),jsonPos:new e.Name("jsonPos"),jsonLen:new e.Name("jsonLen"),jsonPart:new e.Name("jsonPart")};return g8.default=t,g8}function b8(){return p8||(p8=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;var t=d8(),n=h8,r=y8();function o(e,n){var o=e.const("err",n);e.if((0,t._)(H||(H=mo([""," === null"])),r.default.vErrors),(function(){return e.assign(r.default.vErrors,(0,t._)(W||(W=mo(["[","]"])),o))}),(0,t._)(U||(U=mo(["",".push(",")"])),r.default.vErrors,o)),e.code((0,t._)(J||(J=mo(["","++"])),r.default.errors))}function i(e,n){var r=e.gen,o=e.validateName;e.schemaEnv.$async?r.throw((0,t._)(K||(K=mo(["new ","(",")"])),e.ValidationError,n)):(r.assign((0,t._)(G||(G=mo(["",".errors"])),o),n),r.return(!1))}e.keywordError={message:function(e){var n=e.keyword;return(0,t.str)(E||(E=mo(['must pass "','" keyword validation'])),n)}},e.keyword$DataError={message:function(e){var n=e.keyword,r=e.schemaType;return r?(0,t.str)(P||(P=mo(['"','" keyword must be '," ($data)"])),n,r):(0,t.str)(T||(T=mo(['"','" keyword is invalid ($data)'])),n)}},e.reportError=function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.keywordError,a=arguments.length>2?arguments[2]:void 0,c=arguments.length>3?arguments[3]:void 0,u=n.it,l=u.gen,f=u.compositeRule,d=u.allErrors,h=s(n,r,a);(null!=c?c:f||d)?o(l,h):i(u,(0,t._)(R||(R=mo(["[","]"])),h))},e.reportExtraError=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.keywordError,a=arguments.length>2?arguments[2]:void 0,c=t.it,u=c.gen,l=c.compositeRule,f=c.allErrors;o(u,s(t,n,a)),l||f||i(c,r.default.vErrors)},e.resetErrorsCount=function(e,n){e.assign(r.default.errors,n),e.if((0,t._)(N||(N=mo([""," !== null"])),r.default.vErrors),(function(){return e.if(n,(function(){return e.assign((0,t._)(I||(I=mo(["",".length"])),r.default.vErrors),n)}),(function(){return e.assign(r.default.vErrors,null)}))}))},e.extendErrors=function(e){var n=e.gen,o=e.keyword,i=e.schemaValue,a=e.data,s=e.errsCount,c=e.it;if(void 0===s)throw new Error("ajv implementation error");var u=n.name("err");n.forRange("i",s,r.default.errors,(function(e){n.const(u,(0,t._)(D||(D=mo(["","[","]"])),r.default.vErrors,e)),n.if((0,t._)(z||(z=mo(["",".instancePath === undefined"])),u),(function(){return n.assign((0,t._)(B||(B=mo(["",".instancePath"])),u),(0,t.strConcat)(r.default.instancePath,c.errorPath))})),n.assign((0,t._)(L||(L=mo(["",".schemaPath"])),u),(0,t.str)(q||(q=mo(["","/",""])),c.errSchemaPath,o)),c.opts.verbose&&(n.assign((0,t._)(F||(F=mo(["",".schema"])),u),i),n.assign((0,t._)(V||(V=mo(["",".data"])),u),a))}))};var a={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function s(e,n,o){return!1===e.it.createErrors?(0,t._)(Q||(Q=mo(["{}"]))):function(e,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=e.gen,s=e.it,l=[c(s,o),u(e,o)];return function(e,n,o){var i=n.params,s=n.message,c=e.keyword,u=e.data,l=e.schemaValue,f=e.it,d=f.opts,h=f.propertyName,v=f.topSchemaRef,p=f.schemaPath;o.push([a.keyword,c],[a.params,"function"==typeof i?i(e):i||(0,t._)(ee||(ee=mo(["{}"])))]),d.messages&&o.push([a.message,"function"==typeof s?s(e):s]);d.verbose&&o.push([a.schema,l],[a.parentSchema,(0,t._)(te||(te=mo(["","",""])),v,p)],[r.default.data,u]);h&&o.push([a.propertyName,h])}(e,n,l),i.object.apply(i,l)}(e,n,o)}function c(e,o){var i=e.errorPath,a=o.instancePath,s=a?(0,t.str)(Y||(Y=mo(["","",""])),i,(0,n.getErrorPath)(a,n.Type.Str)):i;return[r.default.instancePath,(0,t.strConcat)(r.default.instancePath,s)]}function u(e,r){var o=e.keyword,i=e.it.errSchemaPath,s=r.schemaPath,c=r.parentSchema?i:(0,t.str)(X||(X=mo(["","/",""])),i,o);return s&&(c=(0,t.str)(Z||(Z=mo(["","",""])),c,(0,n.getErrorPath)(s,n.Type.Str))),[a.schemaPath,c]}}(o8)),o8}var w8={},x8={};Object.defineProperty(x8,"__esModule",{value:!0}),x8.getRules=x8.isJSONType=void 0;var k8=new Set(["string","number","integer","boolean","null","object","array"]);x8.isJSONType=function(e){return"string"==typeof e&&k8.has(e)},x8.getRules=function(){var e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:To(To({},e),{},{integer:!0,boolean:!0,null:!0}),rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}};var j8,S8={};function C8(){if(j8)return S8;function e(e,n){return n.rules.some((function(n){return t(e,n)}))}function t(e,t){var n;return void 0!==e[t.keyword]||(null===(n=t.definition.implements)||void 0===n?void 0:n.some((function(t){return void 0!==e[t]})))}return j8=1,Object.defineProperty(S8,"__esModule",{value:!0}),S8.shouldUseRule=S8.shouldUseGroup=S8.schemaHasRulesForType=void 0,S8.schemaHasRulesForType=function(t,n){var r=t.schema,o=t.self.RULES.types[n];return o&&!0!==o&&e(r,o)},S8.shouldUseGroup=e,S8.shouldUseRule=t,S8}!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.reportTypeError=e.checkDataTypes=e.checkDataType=e.coerceAndCheckDataType=e.getJSONTypes=e.getSchemaTypes=e.DataType=void 0;var t,n=x8,r=C8(),o=b8(),i=d8(),a=h8;function s(e){var t=Array.isArray(e)?e:e?[e]:[];if(t.every(n.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}!function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"}(t=e.DataType||(e.DataType={})),e.getSchemaTypes=function(e){var t=s(e.type);if(t.includes("null")){if(!1===e.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw new Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},e.getJSONTypes=s,e.coerceAndCheckDataType=function(e,n){var o=e.gen,a=e.data,s=e.opts,u=function(e,t){return t?e.filter((function(e){return c.has(e)||"array"===t&&"array"===e})):[]}(n,s.coerceTypes),f=n.length>0&&!(0===u.length&&1===n.length&&(0,r.schemaHasRulesForType)(e,n[0]));if(f){var h=l(n,a,s.strictNumbers,t.Wrong);o.if(h,(function(){u.length?function(e,t,n){var r=e.gen,o=e.data,a=e.opts,s=r.let("dataType",(0,i._)(re||(re=mo(["typeof ",""])),o)),u=r.let("coerced",(0,i._)(oe||(oe=mo(["undefined"]))));"array"===a.coerceTypes&&r.if((0,i._)(ie||(ie=mo([""," == 'object' && Array.isArray(",") && ",".length == 1"])),s,o,o),(function(){return r.assign(o,(0,i._)(ae||(ae=mo(["","[0]"])),o)).assign(s,(0,i._)(se||(se=mo(["typeof ",""])),o)).if(l(t,o,a.strictNumbers),(function(){return r.assign(u,o)}))}));r.if((0,i._)(ce||(ce=mo([""," !== undefined"])),u));var f,h=bo(n);try{for(h.s();!(f=h.n()).done;){var v=f.value;(c.has(v)||"array"===v&&"array"===a.coerceTypes)&&p(v)}}catch(e){h.e(e)}finally{h.f()}function p(e){switch(e){case"string":return void r.elseIf((0,i._)(le||(le=mo(["",' == "number" || ',' == "boolean"'])),s,s)).assign(u,(0,i._)(fe||(fe=mo(['"" + ',""])),o)).elseIf((0,i._)(de||(de=mo([""," === null"])),o)).assign(u,(0,i._)(he||(he=mo(['""']))));case"number":return void r.elseIf((0,i._)(ve||(ve=mo(["",' == "boolean" || '," === null\n              || (",' == "string" && '," && "," == +",")"])),s,o,s,o,o,o)).assign(u,(0,i._)(pe||(pe=mo(["+",""])),o));case"integer":return void r.elseIf((0,i._)(me||(me=mo(["",' === "boolean" || '," === null\n              || (",' === "string" && '," && "," == +"," && !("," % 1))"])),s,o,s,o,o,o,o)).assign(u,(0,i._)(ge||(ge=mo(["+",""])),o));case"boolean":return void r.elseIf((0,i._)(ye||(ye=mo(["",' === "false" || '," === 0 || "," === null"])),o,o,o)).assign(u,!1).elseIf((0,i._)(be||(be=mo(["",' === "true" || '," === 1"])),o,o)).assign(u,!0);case"null":return r.elseIf((0,i._)(we||(we=mo(["",' === "" || '," === 0 || "," === false"])),o,o,o)),void r.assign(u,null);case"array":r.elseIf((0,i._)(xe||(xe=mo(["",' === "string" || ',' === "number"\n              || ',' === "boolean" || '," === null"])),s,s,s,o)).assign(u,(0,i._)(ke||(ke=mo(["[","]"])),o))}}r.else(),d(e),r.endIf(),r.if((0,i._)(ue||(ue=mo([""," !== undefined"])),u),(function(){r.assign(o,u),function(e,t){var n=e.gen,r=e.parentData,o=e.parentDataProperty;n.if((0,i._)(je||(je=mo([""," !== undefined"])),r),(function(){return n.assign((0,i._)(Se||(Se=mo(["","[","]"])),r,o),t)}))}(e,u)}))}(e,n,u):d(e)}))}return f};var c=new Set(["string","number","integer","boolean","null"]);function u(e,n,r){var o,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.Correct,s=a===t.Correct?i.operators.EQ:i.operators.NEQ;switch(e){case"null":return(0,i._)(Ce||(Ce=mo([""," "," null"])),n,s);case"array":o=(0,i._)($e||($e=mo(["Array.isArray(",")"])),n);break;case"object":o=(0,i._)(_e||(_e=mo([""," && typeof ",' == "object" && !Array.isArray(',")"])),n,n,n);break;case"integer":o=c((0,i._)(Oe||(Oe=mo(["!("," % 1) && !isNaN(",")"])),n,n));break;case"number":o=c();break;default:return(0,i._)(Me||(Me=mo(["typeof "," "," ",""])),n,s,e)}return a===t.Correct?o:(0,i.not)(o);function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.nil;return(0,i.and)((0,i._)(Ae||(Ae=mo(["typeof ",' == "number"'])),n),e,r?(0,i._)(Ee||(Ee=mo(["isFinite(",")"])),n):i.nil)}}function l(e,t,n,r){if(1===e.length)return u(e[0],t,n,r);var o,s=(0,a.toHash)(e);if(s.array&&s.object){var c=(0,i._)(Pe||(Pe=mo(["typeof ",' != "object"'])),t);o=s.null?c:(0,i._)(Te||(Te=mo(["!"," || ",""])),t,c),delete s.null,delete s.array,delete s.object}else o=i.nil;for(var l in s.number&&delete s.integer,s)o=(0,i.and)(o,u(l,t,n,r));return o}e.checkDataType=u,e.checkDataTypes=l;var f={message:function(e){var t=e.schema;return"must be ".concat(t)},params:function(e){var t=e.schema,n=e.schemaValue;return"string"==typeof t?(0,i._)(Re||(Re=mo(["{type: ","}"])),t):(0,i._)(Ne||(Ne=mo(["{type: ","}"])),n)}};function d(e){var t=function(e){var t=e.gen,n=e.data,r=e.schema,o=(0,a.schemaRefOrVal)(e,r,"type");return{gen:t,keyword:"type",data:n,schema:r.type,schemaCode:o,schemaValue:o,parentSchema:r,params:{},it:e}}(e);(0,o.reportError)(t,f)}e.reportTypeError=d}(w8);var $8,_8={};var O8,M8,A8={},E8={};function P8(){if(O8)return E8;O8=1,Object.defineProperty(E8,"__esModule",{value:!0}),E8.validateUnion=E8.validateArray=E8.usePattern=E8.callValidateCode=E8.schemaProperties=E8.allSchemaProperties=E8.noPropertyInData=E8.propertyInData=E8.isOwnProperty=E8.hasPropFunc=E8.reportMissingProp=E8.checkMissingProp=E8.checkReportMissingProp=void 0;var e=d8(),t=h8,n=y8(),r=h8;function o(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)(Fe||(Fe=mo(["Object.prototype.hasOwnProperty"])))})}function i(t,n,r){return(0,e._)(Ve||(Ve=mo(["",".call(",", ",")"])),o(t),n,r)}function a(t,n,r,o){var a=(0,e._)(Ue||(Ue=mo(["",""," === undefined"])),n,(0,e.getProperty)(r));return o?(0,e.or)(a,(0,e.not)(i(t,n,r))):a}function s(e){return e?Object.keys(e).filter((function(e){return"__proto__"!==e})):[]}E8.checkReportMissingProp=function(t,n){var r=t.gen,o=t.data,i=t.it;r.if(a(r,o,n,i.opts.ownProperties),(function(){t.setParams({missingProperty:(0,e._)(Le||(Le=mo(["",""])),n)},!0),t.error()}))},E8.checkMissingProp=function(t,n,r){var o=t.gen,i=t.data,s=t.it.opts;return e.or.apply(void 0,Bo(n.map((function(t){return(0,e.and)(a(o,i,t,s.ownProperties),(0,e._)(qe||(qe=mo([""," = ",""])),r,t))}))))},E8.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},E8.hasPropFunc=o,E8.isOwnProperty=i,E8.propertyInData=function(t,n,r,o){var a=(0,e._)(He||(He=mo(["",""," !== undefined"])),n,(0,e.getProperty)(r));return o?(0,e._)(We||(We=mo([""," && ",""])),a,i(t,n,r)):a},E8.noPropertyInData=a,E8.allSchemaProperties=s,E8.schemaProperties=function(e,n){return s(n).filter((function(r){return!(0,t.alwaysValidSchema)(e,n[r])}))},E8.callValidateCode=function(t,r,o,i){var a=t.schemaCode,s=t.data,c=t.it,u=c.gen,l=c.topSchemaRef,f=c.schemaPath,d=c.errorPath,h=t.it,v=i?(0,e._)(Je||(Je=mo(["",", ",", ","",""])),a,s,l,f):s,p=[[n.default.instancePath,(0,e.strConcat)(n.default.instancePath,d)],[n.default.parentData,h.parentData],[n.default.parentDataProperty,h.parentDataProperty],[n.default.rootData,n.default.rootData]];h.opts.dynamicRef&&p.push([n.default.dynamicAnchors,n.default.dynamicAnchors]);var m=(0,e._)(Ke||(Ke=mo(["",", ",""])),v,u.object.apply(u,p));return o!==e.nil?(0,e._)(Ge||(Ge=mo(["",".call(",", ",")"])),r,o,m):(0,e._)(Qe||(Qe=mo(["","(",")"])),r,m)};var c=(0,e._)(Ye||(Ye=mo(["new RegExp"])));return E8.usePattern=function(t,n){var o=t.gen,i=t.it.opts,a=i.unicodeRegExp?"u":"",s=i.code.regExp,u=s(n,a);return o.scopeValue("pattern",{key:u.toString(),ref:u,code:(0,e._)(Xe||(Xe=mo(["","(",", ",")"])),"new RegExp"===s.code?c:(0,r.useFunc)(o,s),n,a)})},E8.validateArray=function(n){var r=n.gen,o=n.data,i=n.keyword,a=n.it,s=r.name("valid");if(a.allErrors){var c=r.let("valid",!0);return u((function(){return r.assign(c,!1)})),c}return r.var(s,!0),u((function(){return r.break()})),s;function u(a){var c=r.const("len",(0,e._)(Ze||(Ze=mo(["",".length"])),o));r.forRange("i",0,c,(function(o){n.subschema({keyword:i,dataProp:o,dataPropType:t.Type.Num},s),r.if((0,e.not)(s),a)}))}},E8.validateUnion=function(n){var r=n.gen,o=n.schema,i=n.keyword,a=n.it;if(!Array.isArray(o))throw new Error("ajv implementation error");if(!o.some((function(e){return(0,t.alwaysValidSchema)(a,e)}))||a.opts.unevaluated){var s=r.let("valid",!1),c=r.name("_valid");r.block((function(){return o.forEach((function(t,o){var a=n.subschema({keyword:i,schemaProp:o,compositeRule:!0},c);r.assign(s,(0,e._)(et||(et=mo([""," || ",""])),s,c)),n.mergeValidEvaluated(a,c)||r.if((0,e.not)(s))}))})),n.result(s,(function(){return n.reset()}),(function(){return n.error(!0)}))}},E8}function T8(){if(M8)return A8;M8=1,Object.defineProperty(A8,"__esModule",{value:!0}),A8.validateKeywordUsage=A8.validSchemaType=A8.funcKeywordCode=A8.macroKeywordCode=void 0;var e=d8(),t=y8(),n=P8(),r=b8();function o(t){var n=t.gen,r=t.data,o=t.it;n.if(o.parentData,(function(){return n.assign(r,(0,e._)(st||(st=mo(["","[","]"])),o.parentData,o.parentDataProperty))}))}function i(t,n,r){if(void 0===r)throw new Error('keyword "'.concat(n,'" failed to compile'));return t.scopeValue("keyword","function"==typeof r?{ref:r}:{ref:r,code:(0,e.stringify)(r)})}return A8.macroKeywordCode=function(t,n){var r=t.gen,o=t.keyword,a=t.schema,s=t.parentSchema,c=t.it,u=n.macro.call(c.self,a,s,c),l=i(r,o,u);!1!==c.opts.validateSchema&&c.self.validateSchema(u,!0);var f=r.name("valid");t.subschema({schema:u,schemaPath:e.nil,errSchemaPath:"".concat(c.errSchemaPath,"/").concat(o),topSchemaRef:l,compositeRule:!0},f),t.pass(f,(function(){return t.error(!0)}))},A8.funcKeywordCode=function(a,s){var c,u=a.gen,l=a.keyword,f=a.schema,d=a.parentSchema,h=a.$data,v=a.it;!function(e,t){var n=e.schemaEnv;if(t.async&&!n.$async)throw new Error("async keyword in sync schema")}(v,s);var p=!h&&s.compile?s.compile.call(v.self,f,d,v):s.validate,m=i(u,l,p),g=u.let("valid");function y(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.async?(0,e._)(it||(it=mo(["await "]))):e.nil,o=v.opts.passContext?t.default.this:t.default.self,i=!("compile"in s&&!h||!1===s.schema);u.assign(g,(0,e._)(at||(at=mo(["","",""])),r,(0,n.callValidateCode)(a,m,o,i)),s.modifying)}function b(t){var n;u.if((0,e.not)(null!==(n=s.valid)&&void 0!==n?n:g),t)}a.block$data(g,(function(){if(!1===s.errors)y(),s.modifying&&o(a),b((function(){return a.error()}));else{var n=s.async?function(){var t=u.let("ruleErrs",null);return u.try((function(){return y((0,e._)(tt||(tt=mo(["await "]))))}),(function(n){return u.assign(g,!1).if((0,e._)(nt||(nt=mo([""," instanceof ",""])),n,v.ValidationError),(function(){return u.assign(t,(0,e._)(rt||(rt=mo(["",".errors"])),n))}),(function(){return u.throw(n)}))})),t}():(i=(0,e._)(ot||(ot=mo(["",".errors"])),m),u.assign(i,null),y(e.nil),i);s.modifying&&o(a),b((function(){return function(n,o){var i=n.gen;i.if((0,e._)(ct||(ct=mo(["Array.isArray(",")"])),o),(function(){i.assign(t.default.vErrors,(0,e._)(ut||(ut=mo([""," === null ? "," : ",".concat(",")"])),t.default.vErrors,o,t.default.vErrors,o)).assign(t.default.errors,(0,e._)(lt||(lt=mo(["",".length"])),t.default.vErrors)),(0,r.extendErrors)(n)}),(function(){return n.error()}))}(a,n)}))}var i})),a.ok(null!==(c=s.valid)&&void 0!==c?c:g)},A8.validSchemaType=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!t.length||t.some((function(t){return"array"===t?Array.isArray(e):"object"===t?e&&"object"==Vo(e)&&!Array.isArray(e):Vo(e)==t||n&&void 0===e}))},A8.validateKeywordUsage=function(e,t,n){var r=e.schema,o=e.opts,i=e.self,a=e.errSchemaPath;if(Array.isArray(t.keyword)?!t.keyword.includes(n):t.keyword!==n)throw new Error("ajv implementation error");var s=t.dependencies;if(null==s?void 0:s.some((function(e){return!Object.prototype.hasOwnProperty.call(r,e)})))throw new Error("parent schema must have dependencies of ".concat(n,": ").concat(s.join(",")));if(t.validateSchema&&!t.validateSchema(r[n])){var c='keyword "'.concat(n,'" value is invalid at path "').concat(a,'": ')+i.errorsText(t.validateSchema.errors);if("log"!==o.validateSchema)throw new Error(c);i.logger.error(c)}},A8}var R8,N8={};var I8={},D8=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==Vo(t)&&"object"==Vo(n)){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!=o--;){var a=i[o];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n},z8={exports:{}},B8=z8.exports=function(e,t,n){"function"==typeof t&&(n=t,t={}),L8(t,"function"==typeof(n=t.cb||n)?n:n.pre||function(){},n.post||function(){},e,"",e)};function L8(e,t,n,r,o,i,a,s,c,u){if(r&&"object"==Vo(r)&&!Array.isArray(r)){for(var l in t(r,o,i,a,s,c,u),r){var f=r[l];if(Array.isArray(f)){if(l in B8.arrayKeywords)for(var d=0;d<f.length;d++)L8(e,t,n,f[d],o+"/"+l+"/"+d,i,o,l,r,d)}else if(l in B8.propsKeywords){if(f&&"object"==Vo(f))for(var h in f)L8(e,t,n,f[h],o+"/"+l+"/"+h.replace(/~/g,"~0").replace(/\//g,"~1"),i,o,l,r,h)}else(l in B8.keywords||e.allKeys&&!(l in B8.skipKeywords))&&L8(e,t,n,f,o+"/"+l,i,o,l,r)}n(r,o,i,a,s,c,u)}}B8.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},B8.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},B8.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},B8.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};var q8=z8.exports;Object.defineProperty(I8,"__esModule",{value:!0}),I8.getSchemaRefs=I8.resolveUrl=I8.normalizeId=I8._getFullPath=I8.getFullPath=I8.inlineRef=void 0;var F8=h8,V8=D8,H8=q8,W8=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);I8.inlineRef=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return"boolean"==typeof e||(!0===t?!J8(e):!!t&&K8(e)<=t)};var U8=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function J8(e){for(var t in e){if(U8.has(t))return!0;var n=e[t];if(Array.isArray(n)&&n.some(J8))return!0;if("object"==Vo(n)&&J8(n))return!0}return!1}function K8(e){var t=0;for(var n in e){if("$ref"===n)return 1/0;if(t++,!W8.has(n)&&("object"==Vo(e[n])&&(0,F8.eachItem)(e[n],(function(e){return t+=K8(e)})),t===1/0))return 1/0}return t}function G8(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";!1!==(arguments.length>2?arguments[2]:void 0)&&(t=X8(t));var n=e.parse(t);return Q8(e,n)}function Q8(e,t){return e.serialize(t).split("#")[0]+"#"}I8.getFullPath=G8,I8._getFullPath=Q8;var Y8=/#\/?$/;function X8(e){return e?e.replace(Y8,""):""}I8.normalizeId=X8,I8.resolveUrl=function(e,t,n){return n=X8(n),e.resolve(t,n)};var Z8,e5=/^[a-z_][-a-z0-9._]*$/i;function t5(){if(Z8)return n8;Z8=1,Object.defineProperty(n8,"__esModule",{value:!0}),n8.getData=n8.KeywordCxt=n8.validateFunctionCode=void 0;var e=function(){if(m8)return r8;m8=1,Object.defineProperty(r8,"__esModule",{value:!0}),r8.boolOrEmptySchema=r8.topBoolOrEmptySchema=void 0;var e=b8(),t=d8(),n=y8(),r={message:"boolean schema is false"};function o(t,n){var o={gen:t.gen,keyword:"false schema",data:t.data,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};(0,e.reportError)(o,r,void 0,n)}return r8.topBoolOrEmptySchema=function(e){var r=e.gen,i=e.schema,a=e.validateName;!1===i?o(e,!1):"object"==Vo(i)&&!0===i.$async?r.return(n.default.data):(r.assign((0,t._)(ne||(ne=mo(["",".errors"])),a),null),r.return(!0))},r8.boolOrEmptySchema=function(e,t){var n=e.gen;!1===e.schema?(n.var(t,!1),o(e)):n.var(t,!0)},r8}(),t=w8,n=C8(),r=w8,o=function(){if($8)return _8;$8=1,Object.defineProperty(_8,"__esModule",{value:!0}),_8.assignDefaults=void 0;var e=d8(),t=h8;function n(n,r,o){var i=n.gen,a=n.compositeRule,s=n.data,c=n.opts;if(void 0!==o){var u=(0,e._)(Ie||(Ie=mo(["","",""])),s,(0,e.getProperty)(r));if(a)(0,t.checkStrictMode)(n,"default is ignored for: ".concat(u));else{var l=(0,e._)(De||(De=mo([""," === undefined"])),u);"empty"===c.useDefaults&&(l=(0,e._)(ze||(ze=mo([""," || "," === null || ",' === ""'])),l,u,u)),i.if(l,(0,e._)(Be||(Be=mo([""," = ",""])),u,(0,e.stringify)(o)))}}}return _8.assignDefaults=function(e,t){var r=e.schema,o=r.properties,i=r.items;if("object"===t&&o)for(var a in o)n(e,a,o[a].default);else"array"===t&&Array.isArray(i)&&i.forEach((function(t,r){return n(e,r,t.default)}))},_8}(),i=T8(),a=function(){if(R8)return N8;R8=1,Object.defineProperty(N8,"__esModule",{value:!0}),N8.extendSubschemaMode=N8.extendSubschemaData=N8.getSubschema=void 0;var e=d8(),t=h8;return N8.getSubschema=function(n,r){var o=r.keyword,i=r.schemaProp,a=r.schema,s=r.schemaPath,c=r.errSchemaPath,u=r.topSchemaRef;if(void 0!==o&&void 0!==a)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==o){var l=n.schema[o];return void 0===i?{schema:l,schemaPath:(0,e._)(ft||(ft=mo(["","",""])),n.schemaPath,(0,e.getProperty)(o)),errSchemaPath:"".concat(n.errSchemaPath,"/").concat(o)}:{schema:l[i],schemaPath:(0,e._)(dt||(dt=mo(["","","",""])),n.schemaPath,(0,e.getProperty)(o),(0,e.getProperty)(i)),errSchemaPath:"".concat(n.errSchemaPath,"/").concat(o,"/").concat((0,t.escapeFragment)(i))}}if(void 0!==a){if(void 0===s||void 0===c||void 0===u)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:a,schemaPath:s,topSchemaRef:u,errSchemaPath:c}}throw new Error('either "keyword" or "schema" must be passed')},N8.extendSubschemaData=function(n,r,o){var i=o.dataProp,a=o.dataPropType,s=o.data,c=o.dataTypes,u=o.propertyName;if(void 0!==s&&void 0!==i)throw new Error('both "data" and "dataProp" passed, only one allowed');var l=r.gen;if(void 0!==i){var f=r.errorPath,d=r.dataPathArr,h=r.opts;v(l.let("data",(0,e._)(ht||(ht=mo(["","",""])),r.data,(0,e.getProperty)(i)),!0)),n.errorPath=(0,e.str)(vt||(vt=mo(["","",""])),f,(0,t.getErrorPath)(i,a,h.jsPropertySyntax)),n.parentDataProperty=(0,e._)(pt||(pt=mo(["",""])),i),n.dataPathArr=[].concat(Bo(d),[n.parentDataProperty])}function v(e){n.data=e,n.dataLevel=r.dataLevel+1,n.dataTypes=[],r.definedProperties=new Set,n.parentData=r.data,n.dataNames=[].concat(Bo(r.dataNames),[e])}void 0!==s&&(v(s instanceof e.Name?s:l.let("data",s,!0)),void 0!==u&&(n.propertyName=u)),c&&(n.dataTypes=c)},N8.extendSubschemaMode=function(e,t){var n=t.jtdDiscriminator,r=t.jtdMetadata,o=t.compositeRule,i=t.createErrors,a=t.allErrors;void 0!==o&&(e.compositeRule=o),void 0!==i&&(e.createErrors=i),void 0!==a&&(e.allErrors=a),e.jtdDiscriminator=n,e.jtdMetadata=r},N8}(),s=d8(),c=y8(),u=I8,l=h8,f=b8();function d(e,t){var n=e.gen,r=e.validateName,o=e.schema,i=e.schemaEnv,a=e.opts;a.code.es5?n.func(r,(0,s._)(mt||(mt=mo(["",", ",""])),c.default.data,c.default.valCxt),i.$async,(function(){n.code((0,s._)(gt||(gt=mo(['"use strict"; ',""])),h(o,a))),function(e,t){e.if(c.default.valCxt,(function(){e.var(c.default.instancePath,(0,s._)(xt||(xt=mo(["",".",""])),c.default.valCxt,c.default.instancePath)),e.var(c.default.parentData,(0,s._)(kt||(kt=mo(["",".",""])),c.default.valCxt,c.default.parentData)),e.var(c.default.parentDataProperty,(0,s._)(jt||(jt=mo(["",".",""])),c.default.valCxt,c.default.parentDataProperty)),e.var(c.default.rootData,(0,s._)(St||(St=mo(["",".",""])),c.default.valCxt,c.default.rootData)),t.dynamicRef&&e.var(c.default.dynamicAnchors,(0,s._)(Ct||(Ct=mo(["",".",""])),c.default.valCxt,c.default.dynamicAnchors))}),(function(){e.var(c.default.instancePath,(0,s._)($t||($t=mo(['""'])))),e.var(c.default.parentData,(0,s._)(_t||(_t=mo(["undefined"])))),e.var(c.default.parentDataProperty,(0,s._)(Ot||(Ot=mo(["undefined"])))),e.var(c.default.rootData,c.default.data),t.dynamicRef&&e.var(c.default.dynamicAnchors,(0,s._)(Mt||(Mt=mo(["{}"]))))}))}(n,a),n.code(t)})):n.func(r,(0,s._)(yt||(yt=mo(["",", ",""])),c.default.data,function(e){return(0,s._)(bt||(bt=mo(["{",'="", ',", ",", ","=","","}={}"])),c.default.instancePath,c.default.parentData,c.default.parentDataProperty,c.default.rootData,c.default.data,e.dynamicRef?(0,s._)(wt||(wt=mo([", ","={}"])),c.default.dynamicAnchors):s.nil)}(a)),i.$async,(function(){return n.code(h(o,a)).code(t)}))}function h(e,t){var n="object"==Vo(e)&&e[t.schemaId];return n&&(t.code.source||t.code.process)?(0,s._)(Dt||(Dt=mo(["/*# sourceURL="," */"])),n):s.nil}function v(t,n){m(t)&&(g(t),p(t))?function(e,t){var n=e.schema,r=e.gen,o=e.opts;o.$comment&&n.$comment&&b(e);(function(e){var t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,u.resolveUrl)(e.opts.uriResolver,e.baseId,t))})(e),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}(e);var i=r.const("_errs",c.default.errors);y(e,i),r.var(t,(0,s._)(zt||(zt=mo([""," === ",""])),i,c.default.errors))}(t,n):(0,e.boolOrEmptySchema)(t,n)}function p(e){var t=e.schema,n=e.self;if("boolean"==typeof t)return!t;for(var r in t)if(n.RULES.all[r])return!0;return!1}function m(e){return"boolean"!=typeof e.schema}function g(e){(0,l.checkUnknownRules)(e),function(e){var t=e.schema,n=e.errSchemaPath,r=e.opts,o=e.self;t.$ref&&r.ignoreKeywordsWithRef&&(0,l.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn('$ref: keywords ignored in schema at path "'.concat(n,'"'))}(e)}function y(e,n){if(e.opts.jtd)return w(e,[],!1,n);var r=(0,t.getSchemaTypes)(e.schema);w(e,r,!(0,t.coerceAndCheckDataType)(e,r),n)}function b(e){var t=e.gen,n=e.schemaEnv,r=e.schema,o=e.errSchemaPath,i=e.opts,a=r.$comment;if(!0===i.$comment)t.code((0,s._)(Bt||(Bt=mo(["",".logger.log(",")"])),c.default.self,a));else if("function"==typeof i.$comment){var u=(0,s.str)(Lt||(Lt=mo(["","/$comment"])),o),l=t.scopeValue("root",{ref:n.root});t.code((0,s._)(qt||(qt=mo(["",".opts.$comment(",", ",", ",".schema)"])),c.default.self,a,u,l))}}function w(e,t,o,i){var a=e.gen,u=e.schema,f=e.data,d=e.allErrors,h=e.opts,v=e.self.RULES;function p(l){(0,n.shouldUseGroup)(u,l)&&(l.type?(a.if((0,r.checkDataType)(l.type,f,h.strictNumbers)),x(e,l),1===t.length&&t[0]===l.type&&o&&(a.else(),(0,r.reportTypeError)(e)),a.endIf()):x(e,l),d||a.if((0,s._)(Kt||(Kt=mo([""," === ",""])),c.default.errors,i||0)))}!u.$ref||!h.ignoreKeywordsWithRef&&(0,l.schemaHasRulesButRef)(u,v)?(h.jtd||function(e,t){if(e.schemaEnv.meta||!e.opts.strictTypes)return;(function(e,t){if(!t.length)return;if(!e.dataTypes.length)return void(e.dataTypes=t);t.forEach((function(t){j(e.dataTypes,t)||S(e,'type "'.concat(t,'" not allowed by context "').concat(e.dataTypes.join(","),'"'))})),function(e,t){var n,r=[],o=bo(e.dataTypes);try{for(o.s();!(n=o.n()).done;){var i=n.value;j(t,i)?r.push(i):t.includes("integer")&&"number"===i&&r.push("integer")}}catch(e){o.e(e)}finally{o.f()}e.dataTypes=r}(e,t)})(e,t),e.opts.allowUnionTypes||function(e,t){t.length>1&&(2!==t.length||!t.includes("null"))&&S(e,"use allowUnionTypes to allow union type keyword")}(e,t);!function(e,t){var r=e.self.RULES.all;for(var o in r){var i=r[o];if("object"==Vo(i)&&(0,n.shouldUseRule)(e.schema,i)){var a=i.definition.type;a.length&&!a.some((function(e){return k(t,e)}))&&S(e,'missing type "'.concat(a.join(","),'" for keyword "').concat(o,'"'))}}}(e,e.dataTypes)}(e,t),a.block((function(){var e,t=bo(v.rules);try{for(t.s();!(e=t.n()).done;){p(e.value)}}catch(e){t.e(e)}finally{t.f()}p(v.post)}))):a.block((function(){return $(e,"$ref",v.all.$ref.definition)}))}function x(e,t){var r=e.gen,i=e.schema;e.opts.useDefaults&&(0,o.assignDefaults)(e,t.type),r.block((function(){var r,o=bo(t.rules);try{for(o.s();!(r=o.n()).done;){var a=r.value;(0,n.shouldUseRule)(i,a)&&$(e,a.keyword,a.definition,t.type)}}catch(e){o.e(e)}finally{o.f()}}))}function k(e,t){return e.includes(t)||"number"===t&&e.includes("integer")}function j(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function S(e,t){var n=e.schemaEnv.baseId+e.errSchemaPath;t+=' at "'.concat(n,'" (strictTypes)'),(0,l.checkStrictMode)(e,t,e.opts.strictTypes)}n8.validateFunctionCode=function(t){m(t)&&(g(t),p(t))?function(e){var t=e.schema,n=e.opts,r=e.gen;d(e,(function(){n.$comment&&t.$comment&&b(e),function(e){var t=e.schema,n=e.opts;void 0!==t.default&&n.useDefaults&&n.strictSchema&&(0,l.checkStrictMode)(e,"default is ignored in the schema root")}(e),r.let(c.default.vErrors,null),r.let(c.default.errors,0),n.unevaluated&&function(e){var t=e.gen,n=e.validateName;e.evaluated=t.const("evaluated",(0,s._)(At||(At=mo(["",".evaluated"])),n)),t.if((0,s._)(Et||(Et=mo(["",".dynamicProps"])),e.evaluated),(function(){return t.assign((0,s._)(Pt||(Pt=mo(["",".props"])),e.evaluated),(0,s._)(Tt||(Tt=mo(["undefined"]))))})),t.if((0,s._)(Rt||(Rt=mo(["",".dynamicItems"])),e.evaluated),(function(){return t.assign((0,s._)(Nt||(Nt=mo(["",".items"])),e.evaluated),(0,s._)(It||(It=mo(["undefined"]))))}))}(e),y(e),function(e){var t=e.gen,n=e.schemaEnv,r=e.validateName,o=e.ValidationError,i=e.opts;n.$async?t.if((0,s._)(Ft||(Ft=mo([""," === 0"])),c.default.errors),(function(){return t.return(c.default.data)}),(function(){return t.throw((0,s._)(Vt||(Vt=mo(["new ","(",")"])),o,c.default.vErrors))})):(t.assign((0,s._)(Ht||(Ht=mo(["",".errors"])),r),c.default.vErrors),i.unevaluated&&function(e){var t=e.gen,n=e.evaluated,r=e.props,o=e.items;r instanceof s.Name&&t.assign((0,s._)(Ut||(Ut=mo(["",".props"])),n),r);o instanceof s.Name&&t.assign((0,s._)(Jt||(Jt=mo(["",".items"])),n),o)}(e),t.return((0,s._)(Wt||(Wt=mo([""," === 0"])),c.default.errors)))}(e)}))}(t):d(t,(function(){return(0,e.topBoolOrEmptySchema)(t)}))};var C=function(){return Io((function e(t,n,r){if(Ro(this,e),(0,i.validateKeywordUsage)(t,n,r),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=r,this.data=t.data,this.schema=t.schema[r],this.$data=n.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,l.schemaRefOrVal)(t,this.schema,r,this.$data),this.schemaType=n.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=n,this.$data)this.schemaCode=t.gen.const("vSchema",M(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,i.validSchemaType)(this.schema,n.schemaType,n.allowUndefined))throw new Error("".concat(r," value must be ").concat(JSON.stringify(n.schemaType)));("code"in n?n.trackErrors:!1!==n.errors)&&(this.errsCount=t.gen.const("_errs",c.default.errors))}),[{key:"result",value:function(e,t,n){this.failResult((0,s.not)(e),t,n)}},{key:"failResult",value:function(e,t,n){this.gen.if(e),n?n():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}},{key:"pass",value:function(e,t){this.failResult((0,s.not)(e),void 0,t)}},{key:"fail",value:function(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}},{key:"fail$data",value:function(e){if(!this.$data)return this.fail(e);var t=this.schemaCode;this.fail((0,s._)(Gt||(Gt=mo([""," !== undefined && (",")"])),t,(0,s.or)(this.invalid$data(),e)))}},{key:"error",value:function(e,t,n){if(t)return this.setParams(t),this._error(e,n),void this.setParams({});this._error(e,n)}},{key:"_error",value:function(e,t){(e?f.reportExtraError:f.reportError)(this,this.def.error,t)}},{key:"$dataError",value:function(){(0,f.reportError)(this,this.def.$dataError||f.keyword$DataError)}},{key:"reset",value:function(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,f.resetErrorsCount)(this.gen,this.errsCount)}},{key:"ok",value:function(e){this.allErrors||this.gen.if(e)}},{key:"setParams",value:function(e,t){t?Object.assign(this.params,e):this.params=e}},{key:"block$data",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.nil;this.gen.block((function(){n.check$data(e,r),t()}))}},{key:"check$data",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.nil,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.nil;if(this.$data){var n=this.gen,r=this.schemaCode,o=this.schemaType,i=this.def;n.if((0,s.or)((0,s._)(Qt||(Qt=mo([""," === undefined"])),r),t)),e!==s.nil&&n.assign(e,!0),(o.length||i.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),e!==s.nil&&n.assign(e,!1)),n.else()}}},{key:"invalid$data",value:function(){var e=this.gen,t=this.schemaCode,n=this.schemaType,o=this.def,i=this.it;return(0,s.or)(function(){if(n.length){if(!(t instanceof s.Name))throw new Error("ajv implementation error");var e=Array.isArray(n)?n:[n];return(0,s._)(Yt||(Yt=mo(["",""])),(0,r.checkDataTypes)(e,t,i.opts.strictNumbers,r.DataType.Wrong))}return s.nil}(),function(){if(o.validateSchema){var n=e.scopeValue("validate$data",{ref:o.validateSchema});return(0,s._)(Xt||(Xt=mo(["!","(",")"])),n,t)}return s.nil}())}},{key:"subschema",value:function(e,t){var n=(0,a.getSubschema)(this.it,e);(0,a.extendSubschemaData)(n,this.it,e),(0,a.extendSubschemaMode)(n,e);var r=To(To(To({},this.it),n),{},{items:void 0,props:void 0});return v(r,t),r}},{key:"mergeEvaluated",value:function(e,t){var n=this.it,r=this.gen;n.opts.unevaluated&&(!0!==n.props&&void 0!==e.props&&(n.props=l.mergeEvaluated.props(r,e.props,n.props,t)),!0!==n.items&&void 0!==e.items&&(n.items=l.mergeEvaluated.items(r,e.items,n.items,t)))}},{key:"mergeValidEvaluated",value:function(e,t){var n=this,r=this.it,o=this.gen;if(r.opts.unevaluated&&(!0!==r.props||!0!==r.items))return o.if(t,(function(){return n.mergeEvaluated(e,s.Name)})),!0}}])}();function $(e,t,n,r){var o=new C(e,n,t);"code"in n?n.code(o,r):o.$data&&n.validate?(0,i.funcKeywordCode)(o,n):"macro"in n?(0,i.macroKeywordCode)(o,n):(n.compile||n.validate)&&(0,i.funcKeywordCode)(o,n)}n8.KeywordCxt=C;var _=/^\/(?:[^~]|~0|~1)*$/,O=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function M(e,t){var n,r,o=t.dataLevel,i=t.dataNames,a=t.dataPathArr;if(""===e)return c.default.rootData;if("/"===e[0]){if(!_.test(e))throw new Error("Invalid JSON-pointer: ".concat(e));n=e,r=c.default.rootData}else{var u=O.exec(e);if(!u)throw new Error("Invalid JSON-pointer: ".concat(e));var f=+u[1];if("#"===(n=u[2])){if(f>=o)throw new Error(m("property/index",f));return a[o-f]}if(f>o)throw new Error(m("data",f));if(r=i[o-f],!n)return r}var d,h=r,v=bo(n.split("/"));try{for(v.s();!(d=v.n()).done;){var p=d.value;p&&(r=(0,s._)(Zt||(Zt=mo(["","",""])),r,(0,s.getProperty)((0,l.unescapeJsonPointer)(p))),h=(0,s._)(en||(en=mo([""," && ",""])),h,r))}}catch(e){v.e(e)}finally{v.f()}return h;function m(e,t){return"Cannot access ".concat(e," ").concat(t," levels up, current level is ").concat(o)}}return n8.getData=M,n8}I8.getSchemaRefs=function(e,t){var n=this;if("boolean"==typeof e)return{};var r=this.opts,o=r.schemaId,i=r.uriResolver,a=X8(e[o]||t),s={"":a},c=G8(i,a,!1),u={},l=new Set;return H8(e,{allKeys:!0},(function(e,t,r,i){if(void 0!==i){var a=c+t,h=s[i];"string"==typeof e[o]&&(h=v.call(n,e[o])),p.call(n,e.$anchor),p.call(n,e.$dynamicAnchor),s[t]=h}function v(t){var n=this.opts.uriResolver.resolve;if(t=X8(h?n(h,t):t),l.has(t))throw d(t);l.add(t);var r=this.refs[t];return"string"==typeof r&&(r=this.refs[r]),"object"==Vo(r)?f(e,r.schema,t):t!==X8(a)&&("#"===t[0]?(f(e,u[t],t),u[t]=e):this.refs[t]=a),t}function p(e){if("string"==typeof e){if(!e5.test(e))throw new Error('invalid anchor "'.concat(e,'"'));v.call(this,"#".concat(e))}}})),u;function f(e,t,n){if(void 0!==t&&!V8(e,t))throw d(n)}function d(e){return new Error('reference "'.concat(e,'" resolves to more than one schema'))}};var n5,r5={};function o5(){if(n5)return r5;n5=1,Object.defineProperty(r5,"__esModule",{value:!0});var e=function(e){function t(e){var n;return Ro(this,t),(n=_o(this,t,["validation failed"])).errors=e,n.ajv=n.validation=!0,n}return Ao(t,$o(Error)),Io(t)}();return r5.default=e,r5}var i5,a5={};function s5(){if(i5)return a5;i5=1,Object.defineProperty(a5,"__esModule",{value:!0});var e=I8,t=function(t){function n(t,r,o,i){var a;return Ro(this,n),(a=_o(this,n,[i||"can't resolve reference ".concat(o," from id ").concat(r)])).missingRef=(0,e.resolveUrl)(t,r,o),a.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(t,a.missingRef)),a}return Ao(n,$o(Error)),Io(n)}();return a5.default=t,a5}var c5={};Object.defineProperty(c5,"__esModule",{value:!0}),c5.resolveSchema=c5.getCompilingSchema=c5.resolveRef=c5.compileSchema=c5.SchemaEnv=void 0;var u5=d8(),l5=o5(),f5=y8(),d5=I8,h5=h8,v5=t5(),p5=Io((function e(t){var n,r;Ro(this,e),this.refs={},this.dynamicAnchors={},"object"==Vo(t.schema)&&(r=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=null!==(n=t.baseId)&&void 0!==n?n:(0,d5.normalizeId)(null==r?void 0:r[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=null==r?void 0:r.$async,this.refs={}}));function m5(e){var t=y5.call(this,e);if(t)return t;var n,r=(0,d5.getFullPath)(this.opts.uriResolver,e.root.baseId),o=this.opts.code,i=o.es5,a=o.lines,s=this.opts.ownProperties,c=new u5.CodeGen(this.scope,{es5:i,lines:a,ownProperties:s});e.$async&&(n=c.scopeValue("Error",{ref:l5.default,code:(0,u5._)(tn||(tn=mo(['require("ajv/dist/runtime/validation_error").default'])))}));var u=c.scopeName("validate");e.validateName=u;var l,f={gen:c,allErrors:this.opts.allErrors,data:f5.default.data,parentData:f5.default.parentData,parentDataProperty:f5.default.parentDataProperty,dataNames:[f5.default.data],dataPathArr:[u5.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:c.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,u5.stringify)(e.schema)}:{ref:e.schema}),validateName:u,ValidationError:n,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:u5.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,u5._)(nn||(nn=mo(['""']))),opts:this.opts,self:this};try{this._compilations.add(e),(0,v5.validateFunctionCode)(f),c.optimize(this.opts.code.optimize);var d=c.toString();l="".concat(c.scopeRefs(f5.default.scope),"return ").concat(d),this.opts.code.process&&(l=this.opts.code.process(l,e));var h=new Function("".concat(f5.default.self),"".concat(f5.default.scope),l)(this,this.scope.get());if(this.scope.value(u,{ref:h}),h.errors=null,h.schema=e.schema,h.schemaEnv=e,e.$async&&(h.$async=!0),!0===this.opts.code.source&&(h.source={validateName:u,validateCode:d,scopeValues:c._values}),this.opts.unevaluated){var v=f.props,p=f.items;h.evaluated={props:v instanceof u5.Name?void 0:v,items:p instanceof u5.Name?void 0:p,dynamicProps:v instanceof u5.Name,dynamicItems:p instanceof u5.Name},h.source&&(h.source.evaluated=(0,u5.stringify)(h.evaluated))}return e.validate=h,e}catch(t){throw delete e.validate,delete e.validateName,l&&this.logger.error("Error compiling schema, function code:",l),t}finally{this._compilations.delete(e)}}function g5(e){return(0,d5.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:m5.call(this,e)}function y5(e){var t,n,r,o=bo(this._compilations);try{for(o.s();!(t=o.n()).done;){var i=t.value;if(r=e,(n=i).schema===r.schema&&n.root===r.root&&n.baseId===r.baseId)return i}}catch(e){o.e(e)}finally{o.f()}}function b5(e,t){for(var n;"string"==typeof(n=this.refs[t]);)t=n;return n||this.schemas[t]||w5.call(this,e,t)}function w5(e,t){var n=this.opts.uriResolver.parse(t),r=(0,d5._getFullPath)(this.opts.uriResolver,n),o=(0,d5.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&r===o)return k5.call(this,n,e);var i=(0,d5.normalizeId)(r),a=this.refs[i]||this.schemas[i];if("string"==typeof a){var s=w5.call(this,e,a);if("object"!==Vo(null==s?void 0:s.schema))return;return k5.call(this,n,s)}if("object"===Vo(null==a?void 0:a.schema)){if(a.validate||m5.call(this,a),i===(0,d5.normalizeId)(t)){var c=a.schema,u=this.opts.schemaId,l=c[u];return l&&(o=(0,d5.resolveUrl)(this.opts.uriResolver,o,l)),new p5({schema:c,schemaId:u,root:e,baseId:o})}return k5.call(this,n,a)}}c5.SchemaEnv=p5,c5.compileSchema=m5,c5.resolveRef=function(e,t,n){var r;n=(0,d5.resolveUrl)(this.opts.uriResolver,t,n);var o=e.refs[n];if(o)return o;var i=b5.call(this,e,n);if(void 0===i){var a=null===(r=e.localRefs)||void 0===r?void 0:r[n],s=this.opts.schemaId;a&&(i=new p5({schema:a,schemaId:s,root:e,baseId:t}))}return void 0!==i?e.refs[n]=g5.call(this,i):void 0},c5.getCompilingSchema=y5,c5.resolveSchema=w5;var x5=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function k5(e,t){var n,r=t.baseId,o=t.schema,i=t.root;if("/"===(null===(n=e.fragment)||void 0===n?void 0:n[0])){var a,s,c=bo(e.fragment.slice(1).split("/"));try{for(c.s();!(a=c.n()).done;){var u=a.value;if("boolean"==typeof o)return;var l=o[(0,h5.unescapeFragment)(u)];if(void 0===l)return;var f="object"===Vo(o=l)&&o[this.opts.schemaId];!x5.has(u)&&f&&(r=(0,d5.resolveUrl)(this.opts.uriResolver,r,f))}}catch(e){c.e(e)}finally{c.f()}if("boolean"!=typeof o&&o.$ref&&!(0,h5.schemaHasRulesButRef)(o,this.RULES)){var d=(0,d5.resolveUrl)(this.opts.uriResolver,r,o.$ref);s=w5.call(this,i,d)}var h=this.opts.schemaId;return(s=s||new p5({schema:o,schemaId:h,root:i,baseId:r})).schema!==s.root.schema?s:void 0}}var j5={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1},S5={},C5={exports:{}};!function(e){function t(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t.length>1){t[0]=t[0].slice(0,-1);for(var r=t.length-1,o=1;o<r;++o)t[o]=t[o].slice(1,-1);return t[r]=t[r].slice(1),t.join("")}return t[0]}function n(e){return"(?:"+e+")"}function r(e){return void 0===e?"undefined":null===e?"null":Object.prototype.toString.call(e).split(" ").pop().split("]").shift().toLowerCase()}function o(e){return e.toUpperCase()}function i(e){return null!=e?e instanceof Array?e:"number"!=typeof e.length||e.split||e.setInterval||e.call?[e]:Array.prototype.slice.call(e):[]}function a(e,t){var n=e;if(t)for(var r in t)n[r]=t[r];return n}function s(e){var r="[A-Za-z]",o="[0-9]",i=t(o,"[A-Fa-f]"),a=n(n("%[EFef]"+i+"%"+i+i+"%"+i+i)+"|"+n("%[89A-Fa-f]"+i+"%"+i+i)+"|"+n("%"+i+i)),s="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",c=t("[\\:\\/\\?\\#\\[\\]\\@]",s),u=e?"[\\uE000-\\uF8FF]":"[]",l=t(r,o,"[\\-\\.\\_\\~]",e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]");n(r+t(r,o,"[\\+\\-\\.]")+"*"),n(n(a+"|"+t(l,s,"[\\:]"))+"*");var f=n(n("25[0-5]")+"|"+n("2[0-4]"+o)+"|"+n("1"+o+o)+"|"+n("0?[1-9]"+o)+"|0?0?"+o),d=n(f+"\\."+f+"\\."+f+"\\."+f),h=n(i+"{1,4}"),v=n(n(h+"\\:"+h)+"|"+d),p=n(n(h+"\\:")+"{6}"+v),m=n("\\:\\:"+n(h+"\\:")+"{5}"+v),g=n(n(h)+"?\\:\\:"+n(h+"\\:")+"{4}"+v),y=n(n(n(h+"\\:")+"{0,1}"+h)+"?\\:\\:"+n(h+"\\:")+"{3}"+v),b=n(n(n(h+"\\:")+"{0,2}"+h)+"?\\:\\:"+n(h+"\\:")+"{2}"+v),w=n(n(n(h+"\\:")+"{0,3}"+h)+"?\\:\\:"+h+"\\:"+v),x=n(n(n(h+"\\:")+"{0,4}"+h)+"?\\:\\:"+v),k=n(n(n(h+"\\:")+"{0,5}"+h)+"?\\:\\:"+h),j=n(n(n(h+"\\:")+"{0,6}"+h)+"?\\:\\:"),S=n([p,m,g,y,b,w,x,k,j].join("|")),C=n(n(l+"|"+a)+"+");n("[vV]"+i+"+\\."+t(l,s,"[\\:]")+"+"),n(n(a+"|"+t(l,s))+"*");var $=n(a+"|"+t(l,s,"[\\:\\@]"));return n(n(a+"|"+t(l,s,"[\\@]"))+"+"),n(n($+"|"+t("[\\/\\?]",u))+"*"),{NOT_SCHEME:new RegExp(t("[^]",r,o,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(t("[^\\%\\:]",l,s),"g"),NOT_HOST:new RegExp(t("[^\\%\\[\\]\\:]",l,s),"g"),NOT_PATH:new RegExp(t("[^\\%\\/\\:\\@]",l,s),"g"),NOT_PATH_NOSCHEME:new RegExp(t("[^\\%\\/\\@]",l,s),"g"),NOT_QUERY:new RegExp(t("[^\\%]",l,s,"[\\:\\@\\/\\?]",u),"g"),NOT_FRAGMENT:new RegExp(t("[^\\%]",l,s,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(t("[^]",l,s),"g"),UNRESERVED:new RegExp(l,"g"),OTHER_CHARS:new RegExp(t("[^\\%]",l,c),"g"),PCT_ENCODED:new RegExp(a,"g"),IPV4ADDRESS:new RegExp("^("+d+")$"),IPV6ADDRESS:new RegExp("^\\[?("+S+")"+n(n("\\%25|\\%(?!"+i+"{2})")+"("+C+")")+"?\\]?$")}}var c=s(!1),u=s(!0),l=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),f=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)},d=2147483647,h=36,v=1,p=26,m=38,g=700,y=72,b=128,w="-",x=/^xn--/,k=/[^\0-\x7E]/,j=/[\x2E\u3002\uFF0E\uFF61]/g,S={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},C=h-v,$=Math.floor,_=String.fromCharCode;function O(e){throw new RangeError(S[e])}function M(e,t){for(var n=[],r=e.length;r--;)n[r]=t(e[r]);return n}function A(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+M((e=e.replace(j,".")).split("."),t).join(".")}function E(e){for(var t=[],n=0,r=e.length;n<r;){var o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){var i=e.charCodeAt(n++);56320==(64512&i)?t.push(((1023&o)<<10)+(1023&i)+65536):(t.push(o),n--)}else t.push(o)}return t}var P=function(e){return String.fromCodePoint.apply(String,f(e))},T=function(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:h},R=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},N=function(e,t,n){var r=0;for(e=n?$(e/g):e>>1,e+=$(e/t);e>C*p>>1;r+=h)e=$(e/C);return $(r+(C+1)*e/(e+m))},I=function(e){var t=[],n=e.length,r=0,o=b,i=y,a=e.lastIndexOf(w);a<0&&(a=0);for(var s=0;s<a;++s)e.charCodeAt(s)>=128&&O("not-basic"),t.push(e.charCodeAt(s));for(var c=a>0?a+1:0;c<n;){for(var u=r,l=1,f=h;;f+=h){c>=n&&O("invalid-input");var m=T(e.charCodeAt(c++));(m>=h||m>$((d-r)/l))&&O("overflow"),r+=m*l;var g=f<=i?v:f>=i+p?p:f-i;if(m<g)break;var x=h-g;l>$(d/x)&&O("overflow"),l*=x}var k=t.length+1;i=N(r-u,k,0==u),$(r/k)>d-o&&O("overflow"),o+=$(r/k),r%=k,t.splice(r++,0,o)}return String.fromCodePoint.apply(String,t)},D=function(e){var t=[],n=(e=E(e)).length,r=b,o=0,i=y,a=!0,s=!1,c=void 0;try{for(var u,l=e[Symbol.iterator]();!(a=(u=l.next()).done);a=!0){var f=u.value;f<128&&t.push(_(f))}}catch(e){s=!0,c=e}finally{try{!a&&l.return&&l.return()}finally{if(s)throw c}}var m=t.length,g=m;for(m&&t.push(w);g<n;){var x=d,k=!0,j=!1,S=void 0;try{for(var C,M=e[Symbol.iterator]();!(k=(C=M.next()).done);k=!0){var A=C.value;A>=r&&A<x&&(x=A)}}catch(e){j=!0,S=e}finally{try{!k&&M.return&&M.return()}finally{if(j)throw S}}var P=g+1;x-r>$((d-o)/P)&&O("overflow"),o+=(x-r)*P,r=x;var T=!0,I=!1,D=void 0;try{for(var z,B=e[Symbol.iterator]();!(T=(z=B.next()).done);T=!0){var L=z.value;if(L<r&&++o>d&&O("overflow"),L==r){for(var q=o,F=h;;F+=h){var V=F<=i?v:F>=i+p?p:F-i;if(q<V)break;var H=q-V,W=h-V;t.push(_(R(V+H%W,0))),q=$(H/W)}t.push(_(R(q,0))),i=N(o,P,g==m),o=0,++g}}}catch(e){I=!0,D=e}finally{try{!T&&B.return&&B.return()}finally{if(I)throw D}}++o,++r}return t.join("")},z=function(e){return A(e,(function(e){return x.test(e)?I(e.slice(4).toLowerCase()):e}))},B=function(e){return A(e,(function(e){return k.test(e)?"xn--"+D(e):e}))},L={version:"2.1.0",ucs2:{decode:E,encode:P},decode:I,encode:D,toASCII:B,toUnicode:z},q={};function F(e){var t=e.charCodeAt(0);return t<16?"%0"+t.toString(16).toUpperCase():t<128?"%"+t.toString(16).toUpperCase():t<2048?"%"+(t>>6|192).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase():"%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase()}function V(e){for(var t="",n=0,r=e.length;n<r;){var o=parseInt(e.substr(n+1,2),16);if(o<128)t+=String.fromCharCode(o),n+=3;else if(o>=194&&o<224){if(r-n>=6){var i=parseInt(e.substr(n+4,2),16);t+=String.fromCharCode((31&o)<<6|63&i)}else t+=e.substr(n,6);n+=6}else if(o>=224){if(r-n>=9){var a=parseInt(e.substr(n+4,2),16),s=parseInt(e.substr(n+7,2),16);t+=String.fromCharCode((15&o)<<12|(63&a)<<6|63&s)}else t+=e.substr(n,9);n+=9}else t+=e.substr(n,3),n+=3}return t}function H(e,t){function n(e){var n=V(e);return n.match(t.UNRESERVED)?n:e}return e.scheme&&(e.scheme=String(e.scheme).replace(t.PCT_ENCODED,n).toLowerCase().replace(t.NOT_SCHEME,"")),void 0!==e.userinfo&&(e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,n).replace(t.NOT_USERINFO,F).replace(t.PCT_ENCODED,o)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,n).toLowerCase().replace(t.NOT_HOST,F).replace(t.PCT_ENCODED,o)),void 0!==e.path&&(e.path=String(e.path).replace(t.PCT_ENCODED,n).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,F).replace(t.PCT_ENCODED,o)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,n).replace(t.NOT_QUERY,F).replace(t.PCT_ENCODED,o)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,n).replace(t.NOT_FRAGMENT,F).replace(t.PCT_ENCODED,o)),e}function W(e){return e.replace(/^0*(.*)/,"$1")||"0"}function U(e,t){var n=e.match(t.IPV4ADDRESS)||[],r=l(n,2)[1];return r?r.split(".").map(W).join("."):e}function J(e,t){var n=e.match(t.IPV6ADDRESS)||[],r=l(n,3),o=r[1],i=r[2];if(o){for(var a=o.toLowerCase().split("::").reverse(),s=l(a,2),c=s[0],u=s[1],f=u?u.split(":").map(W):[],d=c.split(":").map(W),h=t.IPV4ADDRESS.test(d[d.length-1]),v=h?7:8,p=d.length-v,m=Array(v),g=0;g<v;++g)m[g]=f[g]||d[p+g]||"";h&&(m[v-1]=U(m[v-1],t));var y=m.reduce((function(e,t,n){if(!t||"0"===t){var r=e[e.length-1];r&&r.index+r.length===n?r.length++:e.push({index:n,length:1})}return e}),[]).sort((function(e,t){return t.length-e.length}))[0],b=void 0;if(y&&y.length>1){var w=m.slice(0,y.index),x=m.slice(y.index+y.length);b=w.join(":")+"::"+x.join(":")}else b=m.join(":");return i&&(b+="%"+i),b}return e}var K=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,G=void 0==="".match(/(){0}/)[1];function Q(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={},r=!1!==t.iri?u:c;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var o=e.match(K);if(o){G?(n.scheme=o[1],n.userinfo=o[3],n.host=o[4],n.port=parseInt(o[5],10),n.path=o[6]||"",n.query=o[7],n.fragment=o[8],isNaN(n.port)&&(n.port=o[5])):(n.scheme=o[1]||void 0,n.userinfo=-1!==e.indexOf("@")?o[3]:void 0,n.host=-1!==e.indexOf("//")?o[4]:void 0,n.port=parseInt(o[5],10),n.path=o[6]||"",n.query=-1!==e.indexOf("?")?o[7]:void 0,n.fragment=-1!==e.indexOf("#")?o[8]:void 0,isNaN(n.port)&&(n.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?o[4]:void 0)),n.host&&(n.host=J(U(n.host,r),r)),void 0!==n.scheme||void 0!==n.userinfo||void 0!==n.host||void 0!==n.port||n.path||void 0!==n.query?void 0===n.scheme?n.reference="relative":void 0===n.fragment?n.reference="absolute":n.reference="uri":n.reference="same-document",t.reference&&"suffix"!==t.reference&&t.reference!==n.reference&&(n.error=n.error||"URI is not a "+t.reference+" reference.");var i=q[(t.scheme||n.scheme||"").toLowerCase()];if(t.unicodeSupport||i&&i.unicodeSupport)H(n,r);else{if(n.host&&(t.domainHost||i&&i.domainHost))try{n.host=L.toASCII(n.host.replace(r.PCT_ENCODED,V).toLowerCase())}catch(e){n.error=n.error||"Host's domain name can not be converted to ASCII via punycode: "+e}H(n,c)}i&&i.parse&&i.parse(n,t)}else n.error=n.error||"URI can not be parsed.";return n}function Y(e,t){var n=!1!==t.iri?u:c,r=[];return void 0!==e.userinfo&&(r.push(e.userinfo),r.push("@")),void 0!==e.host&&r.push(J(U(String(e.host),n),n).replace(n.IPV6ADDRESS,(function(e,t,n){return"["+t+(n?"%25"+n:"")+"]"}))),"number"!=typeof e.port&&"string"!=typeof e.port||(r.push(":"),r.push(String(e.port))),r.length?r.join(""):void 0}var X=/^\.\.?\//,Z=/^\/\.(\/|$)/,ee=/^\/\.\.(\/|$)/,te=/^\/?(?:.|\n)*?(?=\/|$)/;function ne(e){for(var t=[];e.length;)if(e.match(X))e=e.replace(X,"");else if(e.match(Z))e=e.replace(Z,"/");else if(e.match(ee))e=e.replace(ee,"/"),t.pop();else if("."===e||".."===e)e="";else{var n=e.match(te);if(!n)throw new Error("Unexpected dot segment condition");var r=n[0];e=e.slice(r.length),t.push(r)}return t.join("")}function re(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.iri?u:c,r=[],o=q[(t.scheme||e.scheme||"").toLowerCase()];if(o&&o.serialize&&o.serialize(e,t),e.host)if(n.IPV6ADDRESS.test(e.host));else if(t.domainHost||o&&o.domainHost)try{e.host=t.iri?L.toUnicode(e.host):L.toASCII(e.host.replace(n.PCT_ENCODED,V).toLowerCase())}catch(n){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+n}H(e,n),"suffix"!==t.reference&&e.scheme&&(r.push(e.scheme),r.push(":"));var i=Y(e,t);if(void 0!==i&&("suffix"!==t.reference&&r.push("//"),r.push(i),e.path&&"/"!==e.path.charAt(0)&&r.push("/")),void 0!==e.path){var a=e.path;t.absolutePath||o&&o.absolutePath||(a=ne(a)),void 0===i&&(a=a.replace(/^\/\//,"/%2F")),r.push(a)}return void 0!==e.query&&(r.push("?"),r.push(e.query)),void 0!==e.fragment&&(r.push("#"),r.push(e.fragment)),r.join("")}function oe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={};return arguments[3]||(e=Q(re(e,n),n),t=Q(re(t,n),n)),!(n=n||{}).tolerant&&t.scheme?(r.scheme=t.scheme,r.userinfo=t.userinfo,r.host=t.host,r.port=t.port,r.path=ne(t.path||""),r.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(r.userinfo=t.userinfo,r.host=t.host,r.port=t.port,r.path=ne(t.path||""),r.query=t.query):(t.path?("/"===t.path.charAt(0)?r.path=ne(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?r.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:r.path=t.path:r.path="/"+t.path,r.path=ne(r.path)),r.query=t.query):(r.path=e.path,void 0!==t.query?r.query=t.query:r.query=e.query),r.userinfo=e.userinfo,r.host=e.host,r.port=e.port),r.scheme=e.scheme),r.fragment=t.fragment,r}function ie(e,t,n){var r=a({scheme:"null"},n);return re(oe(Q(e,r),Q(t,r),r,!0),r)}function ae(e,t){return"string"==typeof e?e=re(Q(e,t),t):"object"===r(e)&&(e=Q(re(e,t),t)),e}function se(e,t,n){return"string"==typeof e?e=re(Q(e,n),n):"object"===r(e)&&(e=re(e,n)),"string"==typeof t?t=re(Q(t,n),n):"object"===r(t)&&(t=re(t,n)),e===t}function ce(e,t){return e&&e.toString().replace(t&&t.iri?u.ESCAPE:c.ESCAPE,F)}function ue(e,t){return e&&e.toString().replace(t&&t.iri?u.PCT_ENCODED:c.PCT_ENCODED,V)}var le={scheme:"http",domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,t){var n="https"===String(e.scheme).toLowerCase();return e.port!==(n?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}},fe={scheme:"https",domainHost:le.domainHost,parse:le.parse,serialize:le.serialize};function de(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}var he={scheme:"ws",domainHost:!0,parse:function(e,t){var n=e;return n.secure=de(n),n.resourceName=(n.path||"/")+(n.query?"?"+n.query:""),n.path=void 0,n.query=void 0,n},serialize:function(e,t){if(e.port!==(de(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){var n=e.resourceName.split("?"),r=l(n,2),o=r[0],i=r[1];e.path=o&&"/"!==o?o:void 0,e.query=i,e.resourceName=void 0}return e.fragment=void 0,e}},ve={scheme:"wss",domainHost:he.domainHost,parse:he.parse,serialize:he.serialize},pe={},me="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",ge="[0-9A-Fa-f]",ye=n(n("%[EFef]"+ge+"%"+ge+ge+"%"+ge+ge)+"|"+n("%[89A-Fa-f]"+ge+"%"+ge+ge)+"|"+n("%"+ge+ge)),be="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",we=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),xe="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",ke=new RegExp(me,"g"),je=new RegExp(ye,"g"),Se=new RegExp(t("[^]",be,"[\\.]",'[\\"]',we),"g"),Ce=new RegExp(t("[^]",me,xe),"g"),$e=Ce;function _e(e){var t=V(e);return t.match(ke)?t:e}var Oe={scheme:"mailto",parse:function(e,t){var n=e,r=n.to=n.path?n.path.split(","):[];if(n.path=void 0,n.query){for(var o=!1,i={},a=n.query.split("&"),s=0,c=a.length;s<c;++s){var u=a[s].split("=");switch(u[0]){case"to":for(var l=u[1].split(","),f=0,d=l.length;f<d;++f)r.push(l[f]);break;case"subject":n.subject=ue(u[1],t);break;case"body":n.body=ue(u[1],t);break;default:o=!0,i[ue(u[0],t)]=ue(u[1],t)}}o&&(n.headers=i)}n.query=void 0;for(var h=0,v=r.length;h<v;++h){var p=r[h].split("@");if(p[0]=ue(p[0]),t.unicodeSupport)p[1]=ue(p[1],t).toLowerCase();else try{p[1]=L.toASCII(ue(p[1],t).toLowerCase())}catch(e){n.error=n.error||"Email address's domain name can not be converted to ASCII via punycode: "+e}r[h]=p.join("@")}return n},serialize:function(e,t){var n=e,r=i(e.to);if(r){for(var a=0,s=r.length;a<s;++a){var c=String(r[a]),u=c.lastIndexOf("@"),l=c.slice(0,u).replace(je,_e).replace(je,o).replace(Se,F),f=c.slice(u+1);try{f=t.iri?L.toUnicode(f):L.toASCII(ue(f,t).toLowerCase())}catch(e){n.error=n.error||"Email address's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+e}r[a]=l+"@"+f}n.path=r.join(",")}var d=e.headers=e.headers||{};e.subject&&(d.subject=e.subject),e.body&&(d.body=e.body);var h=[];for(var v in d)d[v]!==pe[v]&&h.push(v.replace(je,_e).replace(je,o).replace(Ce,F)+"="+d[v].replace(je,_e).replace(je,o).replace($e,F));return h.length&&(n.query=h.join("&")),n}},Me=/^([^\:]+)\:(.*)/,Ae={scheme:"urn",parse:function(e,t){var n=e.path&&e.path.match(Me),r=e;if(n){var o=t.scheme||r.scheme||"urn",i=n[1].toLowerCase(),a=n[2],s=o+":"+(t.nid||i),c=q[s];r.nid=i,r.nss=a,r.path=void 0,c&&(r=c.parse(r,t))}else r.error=r.error||"URN can not be parsed.";return r},serialize:function(e,t){var n=t.scheme||e.scheme||"urn",r=e.nid,o=n+":"+(t.nid||r),i=q[o];i&&(e=i.serialize(e,t));var a=e,s=e.nss;return a.path=(r||t.nid)+":"+s,a}},Ee=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Pe={scheme:"urn:uuid",parse:function(e,t){var n=e;return n.uuid=n.nss,n.nss=void 0,t.tolerant||n.uuid&&n.uuid.match(Ee)||(n.error=n.error||"UUID is not valid."),n},serialize:function(e,t){var n=e;return n.nss=(e.uuid||"").toLowerCase(),n}};q[le.scheme]=le,q[fe.scheme]=fe,q[he.scheme]=he,q[ve.scheme]=ve,q[Oe.scheme]=Oe,q[Ae.scheme]=Ae,q[Pe.scheme]=Pe,e.SCHEMES=q,e.pctEncChar=F,e.pctDecChars=V,e.parse=Q,e.removeDotSegments=ne,e.serialize=re,e.resolveComponents=oe,e.resolve=ie,e.normalize=ae,e.equal=se,e.escapeComponent=ce,e.unescapeComponent=ue,Object.defineProperty(e,"__esModule",{value:!0})}(C5.exports);var $5=C5.exports;Object.defineProperty(S5,"__esModule",{value:!0});var _5=$5;_5.code='require("ajv/dist/runtime/uri").default',S5.default=_5,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=t5();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var n=d8();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return n.CodeGen}});var r=o5(),o=s5(),i=x8,a=c5,s=d8(),c=I8,u=w8,l=h8,f=j5,d=S5,h=function(e,t){return new RegExp(e,t)};h.code="new RegExp";var v=["removeAdditional","useDefaults","coerceTypes"],p=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),m={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},g={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};var y=function(){return Io((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Ro(this,e),this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts=To(To({},t),function(e){var t,n,r,o,i,a,s,c,u,l,f,v,p,m,g,y,b,w,x,k,j,S,C,$,_,O=e.strict,M=null===(t=e.code)||void 0===t?void 0:t.optimize,A=!0===M||void 0===M?1:M||0,E=null!==(r=null===(n=e.code)||void 0===n?void 0:n.regExp)&&void 0!==r?r:h,P=null!==(o=e.uriResolver)&&void 0!==o?o:d.default;return{strictSchema:null===(a=null!==(i=e.strictSchema)&&void 0!==i?i:O)||void 0===a||a,strictNumbers:null===(c=null!==(s=e.strictNumbers)&&void 0!==s?s:O)||void 0===c||c,strictTypes:null!==(l=null!==(u=e.strictTypes)&&void 0!==u?u:O)&&void 0!==l?l:"log",strictTuples:null!==(v=null!==(f=e.strictTuples)&&void 0!==f?f:O)&&void 0!==v?v:"log",strictRequired:null!==(m=null!==(p=e.strictRequired)&&void 0!==p?p:O)&&void 0!==m&&m,code:e.code?To(To({},e.code),{},{optimize:A,regExp:E}):{optimize:A,regExp:E},loopRequired:null!==(g=e.loopRequired)&&void 0!==g?g:200,loopEnum:null!==(y=e.loopEnum)&&void 0!==y?y:200,meta:null===(b=e.meta)||void 0===b||b,messages:null===(w=e.messages)||void 0===w||w,inlineRefs:null===(x=e.inlineRefs)||void 0===x||x,schemaId:null!==(k=e.schemaId)&&void 0!==k?k:"$id",addUsedSchema:null===(j=e.addUsedSchema)||void 0===j||j,validateSchema:null===(S=e.validateSchema)||void 0===S||S,validateFormats:null===(C=e.validateFormats)||void 0===C||C,unicodeRegExp:null===($=e.unicodeRegExp)||void 0===$||$,int32range:null===(_=e.int32range)||void 0===_||_,uriResolver:P}}(t));var n=this.opts.code,r=n.es5,o=n.lines;this.scope=new s.ValueScope({scope:{},prefixes:p,es5:r,lines:o}),this.logger=function(e){if(!1===e)return C;if(void 0===e)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}(t.logger);var a=t.validateFormats;t.validateFormats=!1,this.RULES=(0,i.getRules)(),b.call(this,m,t,"NOT SUPPORTED"),b.call(this,g,t,"DEPRECATED","warn"),this._metaOpts=S.call(this),t.formats&&k.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&j.call(this,t.keywords),"object"==Vo(t.meta)&&this.addMetaSchema(t.meta),x.call(this),t.validateFormats=a}),[{key:"_addVocabularies",value:function(){this.addKeyword("$async")}},{key:"_addDefaultMetaSchema",value:function(){var e=this.opts,t=e.$data,n=e.meta,r=e.schemaId,o=f;"id"===r&&((o=To({},f)).id=o.$id,delete o.$id),n&&t&&this.addMetaSchema(o,o[r],!1)}},{key:"defaultMeta",value:function(){var e=this.opts,t=e.meta,n=e.schemaId;return this.opts.defaultMeta="object"==Vo(t)?t[n]||t:void 0}},{key:"validate",value:function(e,t){var n;if("string"==typeof e){if(!(n=this.getSchema(e)))throw new Error('no schema with key or ref "'.concat(e,'"'))}else n=this.compile(e);var r=n(t);return"$async"in n||(this.errors=n.errors),r}},{key:"compile",value:function(e,t){var n=this._addSchema(e,t);return n.validate||this._compileSchemaEnv(n)}},{key:"compileAsync",value:function(e,t){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");var n=this.opts.loadSchema;return r.call(this,e,t);function r(e,t){return i.apply(this,arguments)}function i(){return(i=ko(wo().mark((function e(t,n){var r;return wo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.call(this,t.$schema);case 2:return r=this._addSchema(t,n),e.abrupt("return",r.validate||c.call(this,r));case 4:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}function a(e){return s.apply(this,arguments)}function s(){return(s=ko(wo().mark((function e(t){return wo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t||this.getSchema(t)){e.next=3;break}return e.next=3,r.call(this,{$ref:t},!0);case 3:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}function c(e){return u.apply(this,arguments)}function u(){return(u=ko(wo().mark((function e(t){return wo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.abrupt("return",this._compileSchemaEnv(t));case 4:if(e.prev=4,e.t0=e.catch(0),e.t0 instanceof o.default){e.next=8;break}throw e.t0;case 8:return l.call(this,e.t0),e.next=11,f.call(this,e.t0.missingSchema);case 11:return e.abrupt("return",c.call(this,t));case 12:case"end":return e.stop()}}),e,this,[[0,4]])})))).apply(this,arguments)}function l(e){var t=e.missingSchema,n=e.missingRef;if(this.refs[t])throw new Error("AnySchema ".concat(t," is loaded but ").concat(n," cannot be resolved"))}function f(e){return d.apply(this,arguments)}function d(){return d=ko(wo().mark((function e(n){var r;return wo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,h.call(this,n);case 2:if(r=e.sent,this.refs[n]){e.next=6;break}return e.next=6,a.call(this,r.$schema);case 6:this.refs[n]||this.addSchema(r,n,t);case 7:case"end":return e.stop()}}),e,this)}))),d.apply(this,arguments)}function h(e){return v.apply(this,arguments)}function v(){return v=ko(wo().mark((function e(t){var r;return wo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r=this._loading[t])){e.next=3;break}return e.abrupt("return",r);case 3:return e.prev=3,e.next=6,this._loading[t]=n(t);case 6:return e.abrupt("return",e.sent);case 7:return e.prev=7,delete this._loading[t],e.finish(7);case 10:case"end":return e.stop()}}),e,this,[[3,,7,10]])}))),v.apply(this,arguments)}}},{key:"addSchema",value:function(e,t,n){var r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.opts.validateSchema;if(Array.isArray(e)){var i,a=bo(e);try{for(a.s();!(i=a.n()).done;){var s=i.value;this.addSchema(s,void 0,n,o)}}catch(e){a.e(e)}finally{a.f()}return this}if("object"===Vo(e)){var u=this.opts.schemaId;if(void 0!==(r=e[u])&&"string"!=typeof r)throw new Error("schema ".concat(u," must be string"))}return t=(0,c.normalizeId)(t||r),this._checkUnique(t),this.schemas[t]=this._addSchema(e,n,t,o,!0),this}},{key:"addMetaSchema",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.opts.validateSchema;return this.addSchema(e,t,!0,n),this}},{key:"validateSchema",value:function(e,t){if("boolean"==typeof e)return!0;var n;if(void 0!==(n=e.$schema)&&"string"!=typeof n)throw new Error("$schema must be a string");if(!(n=n||this.opts.defaultMeta||this.defaultMeta()))return this.logger.warn("meta-schema not available"),this.errors=null,!0;var r=this.validate(n,e);if(!r&&t){var o="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(o);this.logger.error(o)}return r}},{key:"getSchema",value:function(e){for(var t;"string"==typeof(t=w.call(this,e));)e=t;if(void 0===t){var n=this.opts.schemaId,r=new a.SchemaEnv({schema:{},schemaId:n});if(!(t=a.resolveSchema.call(this,r,e)))return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}},{key:"removeSchema",value:function(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(Vo(e)){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":var t=w.call(this,e);return"object"==Vo(t)&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this;case"object":var n=e;this._cache.delete(n);var r=e[this.opts.schemaId];return r&&(r=(0,c.normalizeId)(r),delete this.schemas[r],delete this.refs[r]),this;default:throw new Error("ajv.removeSchema: invalid parameter")}}},{key:"addVocabulary",value:function(e){var t,n=bo(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;this.addKeyword(r)}}catch(e){n.e(e)}finally{n.f()}return this}},{key:"addKeyword",value:function(e,t){var n,r=this;if("string"==typeof e)n=e,"object"==Vo(t)&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=n);else{if("object"!=Vo(e)||void 0!==t)throw new Error("invalid addKeywords parameters");if(n=(t=e).keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(_.call(this,n,t),!t)return(0,l.eachItem)(n,(function(e){return O.call(r,e)})),this;A.call(this,t);var o=To(To({},t),{},{type:(0,u.getJSONTypes)(t.type),schemaType:(0,u.getJSONTypes)(t.schemaType)});return(0,l.eachItem)(n,0===o.type.length?function(e){return O.call(r,e,o)}:function(e){return o.type.forEach((function(t){return O.call(r,e,o,t)}))}),this}},{key:"getKeyword",value:function(e){var t=this.RULES.all[e];return"object"==Vo(t)?t.definition:!!t}},{key:"removeKeyword",value:function(e){var t=this.RULES;delete t.keywords[e],delete t.all[e];var n,r=bo(t.rules);try{for(r.s();!(n=r.n()).done;){var o=n.value,i=o.rules.findIndex((function(t){return t.keyword===e}));i>=0&&o.rules.splice(i,1)}}catch(e){r.e(e)}finally{r.f()}return this}},{key:"addFormat",value:function(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}},{key:"errorsText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.errors,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.separator,r=void 0===n?", ":n,o=t.dataVar,i=void 0===o?"data":o;return e&&0!==e.length?e.map((function(e){return"".concat(i).concat(e.instancePath," ").concat(e.message)})).reduce((function(e,t){return e+r+t})):"No errors"}},{key:"$dataMetaSchema",value:function(e,t){var n=this.RULES.all;e=JSON.parse(JSON.stringify(e));var r,o=bo(t);try{for(o.s();!(r=o.n()).done;){var i,a=r.value.split("/").slice(1),s=e,c=bo(a);try{for(c.s();!(i=c.n()).done;){s=s[i.value]}}catch(e){c.e(e)}finally{c.f()}for(var u in n){var l=n[u];if("object"==Vo(l)){var f=l.definition.$data,d=s[u];f&&d&&(s[u]=P(d))}}}}catch(e){o.e(e)}finally{o.f()}return e}},{key:"_removeAllSchemas",value:function(e,t){for(var n in e){var r=e[n];t&&!t.test(n)||("string"==typeof r?delete e[n]:r&&!r.meta&&(this._cache.delete(r.schema),delete e[n]))}}},{key:"_addSchema",value:function(e,t,n){var r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.opts.validateSchema,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.opts.addUsedSchema,s=this.opts.schemaId;if("object"==Vo(e))r=e[s];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}var u=this._cache.get(e);if(void 0!==u)return u;n=(0,c.normalizeId)(r||n);var l=c.getSchemaRefs.call(this,e,n);return u=new a.SchemaEnv({schema:e,schemaId:s,meta:t,baseId:n,localRefs:l}),this._cache.set(u.schema,u),i&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=u),o&&this.validateSchema(e,!0),u}},{key:"_checkUnique",value:function(e){if(this.schemas[e]||this.refs[e])throw new Error('schema with key or id "'.concat(e,'" already exists'))}},{key:"_compileSchemaEnv",value:function(e){if(e.meta?this._compileMetaSchema(e):a.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}},{key:"_compileMetaSchema",value:function(e){var t=this.opts;this.opts=this._metaOpts;try{a.compileSchema.call(this,e)}finally{this.opts=t}}}])}();function b(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"error";for(var o in e){var i=o;i in t&&this.logger[r]("".concat(n,": option ").concat(o,". ").concat(e[i]))}}function w(e){return e=(0,c.normalizeId)(e),this.schemas[e]||this.refs[e]}function x(){var e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(var t in e)this.addSchema(e[t],t)}function k(){for(var e in this.opts.formats){var t=this.opts.formats[e];t&&this.addFormat(e,t)}}function j(e){if(Array.isArray(e))this.addVocabulary(e);else for(var t in this.logger.warn("keywords option as map is deprecated, pass array"),e){var n=e[t];n.keyword||(n.keyword=t),this.addKeyword(n)}}function S(){var e,t=To({},this.opts),n=bo(v);try{for(n.s();!(e=n.n()).done;){delete t[e.value]}}catch(e){n.e(e)}finally{n.f()}return t}e.default=y,y.ValidationError=r.default,y.MissingRefError=o.default;var C={log:function(){},warn:function(){},error:function(){}};var $=/^[a-z_$][a-z0-9_$:-]*$/i;function _(e,t){var n=this.RULES;if((0,l.eachItem)(e,(function(e){if(n.keywords[e])throw new Error("Keyword ".concat(e," is already defined"));if(!$.test(e))throw new Error("Keyword ".concat(e," has invalid name"))})),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function O(e,t,n){var r,o=this,i=null==t?void 0:t.post;if(n&&i)throw new Error('keyword with "post" flag cannot have "type"');var a=this.RULES,s=i?a.post:a.rules.find((function(e){return e.type===n}));if(s||(s={type:n,rules:[]},a.rules.push(s)),a.keywords[e]=!0,t){var c={keyword:e,definition:To(To({},t),{},{type:(0,u.getJSONTypes)(t.type),schemaType:(0,u.getJSONTypes)(t.schemaType)})};t.before?M.call(this,s,c,t.before):s.rules.push(c),a.all[e]=c,null===(r=t.implements)||void 0===r||r.forEach((function(e){return o.addKeyword(e)}))}}function M(e,t,n){var r=e.rules.findIndex((function(e){return e.keyword===n}));r>=0?e.rules.splice(r,0,t):(e.rules.push(t),this.logger.warn("rule ".concat(n," is not defined")))}function A(e){var t=e.metaSchema;void 0!==t&&(e.$data&&this.opts.$data&&(t=P(t)),e.validateSchema=this.compile(t,!0))}var E={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function P(e){return{anyOf:[e,E]}}}(t8);var O5={},M5={},A5={};Object.defineProperty(A5,"__esModule",{value:!0});var E5={keyword:"id",code:function(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};A5.default=E5;var P5={};Object.defineProperty(P5,"__esModule",{value:!0}),P5.callRef=P5.getValidate=void 0;var T5=s5(),R5=P8(),N5=d8(),I5=y8(),D5=c5,z5=h8,B5={keyword:"$ref",schemaType:"string",code:function(e){var t=e.gen,n=e.schema,r=e.it,o=r.baseId,i=r.schemaEnv,a=r.validateName,s=r.opts,c=r.self,u=i.root;if(("#"===n||"#/"===n)&&o===u.baseId)return function(){if(i===u)return q5(e,a,i,i.$async);var n=t.scopeValue("root",{ref:u});return q5(e,(0,N5._)(rn||(rn=mo(["",".validate"])),n),u,u.$async)}();var l,f,d=D5.resolveRef.call(c,u,o,n);if(void 0===d)throw new T5.default(r.opts.uriResolver,o,n);return d instanceof D5.SchemaEnv?(f=L5(e,l=d),void q5(e,f,l,l.$async)):function(r){var o=t.scopeValue("schema",!0===s.code.source?{ref:r,code:(0,N5.stringify)(r)}:{ref:r}),i=t.name("valid"),a=e.subschema({schema:r,dataTypes:[],schemaPath:N5.nil,topSchemaRef:o,errSchemaPath:n},i);e.mergeEvaluated(a),e.ok(i)}(d)}};function L5(e,t){var n=e.gen;return t.validate?n.scopeValue("validate",{ref:t.validate}):(0,N5._)(on||(on=mo(["",".validate"])),n.scopeValue("wrapper",{ref:t}))}function q5(e,t,n,r){var o=e.gen,i=e.it,a=i.allErrors,s=i.schemaEnv,c=i.opts.passContext?I5.default.this:N5.nil;function u(e){var t=(0,N5._)(cn||(cn=mo(["",".errors"])),e);o.assign(I5.default.vErrors,(0,N5._)(un||(un=mo([""," === null ? "," : ",".concat(",")"])),I5.default.vErrors,t,I5.default.vErrors,t)),o.assign(I5.default.errors,(0,N5._)(ln||(ln=mo(["",".length"])),I5.default.vErrors))}function l(e){var t;if(i.opts.unevaluated){var r=null===(t=null==n?void 0:n.validate)||void 0===t?void 0:t.evaluated;if(!0!==i.props)if(r&&!r.dynamicProps)void 0!==r.props&&(i.props=z5.mergeEvaluated.props(o,r.props,i.props));else{var a=o.var("props",(0,N5._)(fn||(fn=mo(["",".evaluated.props"])),e));i.props=z5.mergeEvaluated.props(o,a,i.props,N5.Name)}if(!0!==i.items)if(r&&!r.dynamicItems)void 0!==r.items&&(i.items=z5.mergeEvaluated.items(o,r.items,i.items));else{var s=o.var("items",(0,N5._)(dn||(dn=mo(["",".evaluated.items"])),e));i.items=z5.mergeEvaluated.items(o,s,i.items,N5.Name)}}}r?function(){if(!s.$async)throw new Error("async schema referenced by sync schema");var n=o.let("valid");o.try((function(){o.code((0,N5._)(an||(an=mo(["await ",""])),(0,R5.callValidateCode)(e,t,c))),l(t),a||o.assign(n,!0)}),(function(e){o.if((0,N5._)(sn||(sn=mo(["!("," instanceof ",")"])),e,i.ValidationError),(function(){return o.throw(e)})),u(e),a||o.assign(n,!1)})),e.ok(n)}():e.result((0,R5.callValidateCode)(e,t,c),(function(){return l(t)}),(function(){return u(t)}))}P5.getValidate=L5,P5.callRef=q5,P5.default=B5,Object.defineProperty(M5,"__esModule",{value:!0});var F5=P5,V5=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",A5.default,F5.default];M5.default=V5;var H5={},W5={};Object.defineProperty(W5,"__esModule",{value:!0});var U5=d8(),J5=U5.operators,K5={maximum:{okStr:"<=",ok:J5.LTE,fail:J5.GT},minimum:{okStr:">=",ok:J5.GTE,fail:J5.LT},exclusiveMaximum:{okStr:"<",ok:J5.LT,fail:J5.GTE},exclusiveMinimum:{okStr:">",ok:J5.GT,fail:J5.LTE}},G5={message:function(e){var t=e.keyword,n=e.schemaCode;return(0,U5.str)(hn||(hn=mo(["must be "," ",""])),K5[t].okStr,n)},params:function(e){var t=e.keyword,n=e.schemaCode;return(0,U5._)(vn||(vn=mo(["{comparison: ",", limit: ","}"])),K5[t].okStr,n)}},Q5={keyword:Object.keys(K5),type:"number",schemaType:"number",$data:!0,error:G5,code:function(e){var t=e.keyword,n=e.data,r=e.schemaCode;e.fail$data((0,U5._)(pn||(pn=mo([""," "," "," || isNaN(",")"])),n,K5[t].fail,r,n))}};W5.default=Q5;var Y5={};Object.defineProperty(Y5,"__esModule",{value:!0});var X5=d8(),Z5={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:function(e){var t=e.schemaCode;return(0,X5.str)(mn||(mn=mo(["must be multiple of ",""])),t)},params:function(e){var t=e.schemaCode;return(0,X5._)(gn||(gn=mo(["{multipleOf: ","}"])),t)}},code:function(e){var t=e.gen,n=e.data,r=e.schemaCode,o=e.it.opts.multipleOfPrecision,i=t.let("res"),a=o?(0,X5._)(yn||(yn=mo(["Math.abs(Math.round(",") - ",") > 1e-",""])),i,i,o):(0,X5._)(bn||(bn=mo([""," !== parseInt(",")"])),i,i);e.fail$data((0,X5._)(wn||(wn=mo(["("," === 0 || ("," = ","/",", ","))"])),r,i,n,r,a))}};Y5.default=Z5;var e7={},t7={};function n7(e){for(var t,n=e.length,r=0,o=0;o<n;)r++,(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<n&&56320==(64512&(t=e.charCodeAt(o)))&&o++;return r}Object.defineProperty(t7,"__esModule",{value:!0}),t7.default=n7,n7.code='require("ajv/dist/runtime/ucs2length").default',Object.defineProperty(e7,"__esModule",{value:!0});var r7=d8(),o7=h8,i7=t7,a7={message:function(e){var t=e.keyword,n=e.schemaCode,r="maxLength"===t?"more":"fewer";return(0,r7.str)(xn||(xn=mo(["must NOT have "," than "," characters"])),r,n)},params:function(e){var t=e.schemaCode;return(0,r7._)(kn||(kn=mo(["{limit: ","}"])),t)}},s7={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:a7,code:function(e){var t=e.keyword,n=e.data,r=e.schemaCode,o=e.it,i="maxLength"===t?r7.operators.GT:r7.operators.LT,a=!1===o.opts.unicode?(0,r7._)(jn||(jn=mo(["",".length"])),n):(0,r7._)(Sn||(Sn=mo(["","(",")"])),(0,o7.useFunc)(e.gen,i7.default),n);e.fail$data((0,r7._)(Cn||(Cn=mo([""," "," ",""])),a,i,r))}};e7.default=s7;var c7={};Object.defineProperty(c7,"__esModule",{value:!0});var u7=P8(),l7=d8(),f7={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:function(e){var t=e.schemaCode;return(0,l7.str)($n||($n=mo(['must match pattern "','"'])),t)},params:function(e){var t=e.schemaCode;return(0,l7._)(_n||(_n=mo(["{pattern: ","}"])),t)}},code:function(e){var t=e.data,n=e.$data,r=e.schema,o=e.schemaCode,i=e.it.opts.unicodeRegExp?"u":"",a=n?(0,l7._)(On||(On=mo(["(new RegExp(",", ","))"])),o,i):(0,u7.usePattern)(e,r);e.fail$data((0,l7._)(Mn||(Mn=mo(["!",".test(",")"])),a,t))}};c7.default=f7;var d7={};Object.defineProperty(d7,"__esModule",{value:!0});var h7=d8(),v7={message:function(e){var t=e.keyword,n=e.schemaCode,r="maxProperties"===t?"more":"fewer";return(0,h7.str)(An||(An=mo(["must NOT have "," than "," properties"])),r,n)},params:function(e){var t=e.schemaCode;return(0,h7._)(En||(En=mo(["{limit: ","}"])),t)}},p7={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:v7,code:function(e){var t=e.keyword,n=e.data,r=e.schemaCode,o="maxProperties"===t?h7.operators.GT:h7.operators.LT;e.fail$data((0,h7._)(Pn||(Pn=mo(["Object.keys(",").length "," ",""])),n,o,r))}};d7.default=p7;var m7={};Object.defineProperty(m7,"__esModule",{value:!0});var g7=P8(),y7=d8(),b7=h8,w7={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:function(e){var t=e.params.missingProperty;return(0,y7.str)(Tn||(Tn=mo(["must have required property '","'"])),t)},params:function(e){var t=e.params.missingProperty;return(0,y7._)(Rn||(Rn=mo(["{missingProperty: ","}"])),t)}},code:function(e){var t=e.gen,n=e.schema,r=e.schemaCode,o=e.data,i=e.$data,a=e.it,s=a.opts;if(i||0!==n.length){var c=n.length>=s.loopRequired;if(a.allErrors?function(){if(c||i)e.block$data(y7.nil,m);else{var t,r=bo(n);try{for(r.s();!(t=r.n()).done;){var o=t.value;(0,g7.checkReportMissingProp)(e,o)}}catch(e){r.e(e)}finally{r.f()}}}():function(){var a=t.let("missing");if(c||i){var u=t.let("valid",!0);e.block$data(u,(function(){return function(n,i){e.setParams({missingProperty:n}),t.forOf(n,r,(function(){t.assign(i,(0,g7.propertyInData)(t,o,n,s.ownProperties)),t.if((0,y7.not)(i),(function(){e.error(),t.break()}))}),y7.nil)}(a,u)})),e.ok(u)}else t.if((0,g7.checkMissingProp)(e,n,a)),(0,g7.reportMissingProp)(e,a),t.else()}(),s.strictRequired){var u,l=e.parentSchema.properties,f=e.it.definedProperties,d=bo(n);try{for(d.s();!(u=d.n()).done;){var h=u.value;if(void 0===(null==l?void 0:l[h])&&!f.has(h)){var v=a.schemaEnv.baseId+a.errSchemaPath,p='required property "'.concat(h,'" is not defined at "').concat(v,'" (strictRequired)');(0,b7.checkStrictMode)(a,p,a.opts.strictRequired)}}}catch(e){d.e(e)}finally{d.f()}}}function m(){t.forOf("prop",r,(function(n){e.setParams({missingProperty:n}),t.if((0,g7.noPropertyInData)(t,o,n,s.ownProperties),(function(){return e.error()}))}))}}};m7.default=w7;var x7={};Object.defineProperty(x7,"__esModule",{value:!0});var k7=d8(),j7={message:function(e){var t=e.keyword,n=e.schemaCode,r="maxItems"===t?"more":"fewer";return(0,k7.str)(Nn||(Nn=mo(["must NOT have "," than "," items"])),r,n)},params:function(e){var t=e.schemaCode;return(0,k7._)(In||(In=mo(["{limit: ","}"])),t)}},S7={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:j7,code:function(e){var t=e.keyword,n=e.data,r=e.schemaCode,o="maxItems"===t?k7.operators.GT:k7.operators.LT;e.fail$data((0,k7._)(Dn||(Dn=mo(["",".length "," ",""])),n,o,r))}};x7.default=S7;var C7={},$7={};Object.defineProperty($7,"__esModule",{value:!0});var _7=D8;_7.code='require("ajv/dist/runtime/equal").default',$7.default=_7,Object.defineProperty(C7,"__esModule",{value:!0});var O7=w8,M7=d8(),A7=h8,E7=$7,P7={message:function(e){var t=e.params,n=t.i,r=t.j;return(0,M7.str)(zn||(zn=mo(["must NOT have duplicate items (items ## "," and "," are identical)"])),r,n)},params:function(e){var t=e.params,n=t.i,r=t.j;return(0,M7._)(Bn||(Bn=mo(["{i: ",", j: ","}"])),n,r)}},T7={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:P7,code:function(e){var t=e.gen,n=e.data,r=e.$data,o=e.schema,i=e.parentSchema,a=e.schemaCode,s=e.it;if(r||o){var c=t.let("valid"),u=i.items?(0,O7.getSchemaTypes)(i.items):[];e.block$data(c,(function(){var r=t.let("i",(0,M7._)(qn||(qn=mo(["",".length"])),n)),o=t.let("j");e.setParams({i:r,j:o}),t.assign(c,!0),t.if((0,M7._)(Fn||(Fn=mo([""," > 1"])),r),(function(){return(u.length>0&&!u.some((function(e){return"object"===e||"array"===e}))?l:f)(r,o)}))}),(0,M7._)(Ln||(Ln=mo([""," === false"])),a)),e.ok(c)}function l(r,o){var i=t.name("item"),a=(0,O7.checkDataTypes)(u,i,s.opts.strictNumbers,O7.DataType.Wrong),l=t.const("indices",(0,M7._)(Vn||(Vn=mo(["{}"]))));t.for((0,M7._)(Hn||(Hn=mo([";","--;"])),r),(function(){t.let(i,(0,M7._)(Wn||(Wn=mo(["","[","]"])),n,r)),t.if(a,(0,M7._)(Un||(Un=mo(["continue"])))),u.length>1&&t.if((0,M7._)(Jn||(Jn=mo(["typeof ",' == "string"'])),i),(0,M7._)(Kn||(Kn=mo(["",' += "_"'])),i)),t.if((0,M7._)(Gn||(Gn=mo(["typeof ","[",'] == "number"'])),l,i),(function(){t.assign(o,(0,M7._)(Qn||(Qn=mo(["","[","]"])),l,i)),e.error(),t.assign(c,!1).break()})).code((0,M7._)(Yn||(Yn=mo(["","[","] = ",""])),l,i,r))}))}function f(r,o){var i=(0,A7.useFunc)(t,E7.default),a=t.name("outer");t.label(a).for((0,M7._)(Xn||(Xn=mo([";","--;"])),r),(function(){return t.for((0,M7._)(Zn||(Zn=mo([""," = ","; ","--;"])),o,r,o),(function(){return t.if((0,M7._)(er||(er=mo(["","(","[","], ","[","])"])),i,n,r,n,o),(function(){e.error(),t.assign(c,!1).break(a)}))}))}))}}};C7.default=T7;var R7={};Object.defineProperty(R7,"__esModule",{value:!0});var N7=d8(),I7=h8,D7=$7,z7={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:function(e){var t=e.schemaCode;return(0,N7._)(tr||(tr=mo(["{allowedValue: ","}"])),t)}},code:function(e){var t=e.gen,n=e.data,r=e.$data,o=e.schemaCode,i=e.schema;r||i&&"object"==Vo(i)?e.fail$data((0,N7._)(nr||(nr=mo(["!","(",", ",")"])),(0,I7.useFunc)(t,D7.default),n,o)):e.fail((0,N7._)(rr||(rr=mo([""," !== ",""])),i,n))}};R7.default=z7;var B7={};Object.defineProperty(B7,"__esModule",{value:!0});var L7=d8(),q7=h8,F7=$7,V7={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:function(e){var t=e.schemaCode;return(0,L7._)(or||(or=mo(["{allowedValues: ","}"])),t)}},code:function(e){var t=e.gen,n=e.data,r=e.$data,o=e.schema,i=e.schemaCode,a=e.it;if(!r&&0===o.length)throw new Error("enum must have non-empty array");var s,c,u=o.length>=a.opts.loopEnum,l=function(){return null!=s?s:s=(0,q7.useFunc)(t,F7.default)};if(u||r)c=t.let("valid"),e.block$data(c,(function(){t.assign(c,!1),t.forOf("v",i,(function(e){return t.if((0,L7._)(ir||(ir=mo(["","(",", ",")"])),l(),n,e),(function(){return t.assign(c,!0).break()}))}))}));else{if(!Array.isArray(o))throw new Error("ajv implementation error");var f=t.const("vSchema",i);c=L7.or.apply(void 0,Bo(o.map((function(e,t){return function(e,t){var r=o[t];return"object"===Vo(r)&&null!==r?(0,L7._)(ar||(ar=mo(["","(",", ","[","])"])),l(),n,e,t):(0,L7._)(sr||(sr=mo([""," === ",""])),n,r)}(f,t)}))))}e.pass(c)}};B7.default=V7,Object.defineProperty(H5,"__esModule",{value:!0});var H7=Y5,W7=e7,U7=c7,J7=d7,K7=m7,G7=x7,Q7=C7,Y7=R7,X7=B7,Z7=[W5.default,H7.default,W7.default,U7.default,J7.default,K7.default,G7.default,Q7.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},Y7.default,X7.default];H5.default=Z7;var e9={},t9={};Object.defineProperty(t9,"__esModule",{value:!0}),t9.validateAdditionalItems=void 0;var n9=d8(),r9=h8,o9={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:function(e){var t=e.params.len;return(0,n9.str)(cr||(cr=mo(["must NOT have more than "," items"])),t)},params:function(e){var t=e.params.len;return(0,n9._)(ur||(ur=mo(["{limit: ","}"])),t)}},code:function(e){var t=e.parentSchema,n=e.it,r=t.items;Array.isArray(r)?i9(e,r):(0,r9.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas')}};function i9(e,t){var n=e.gen,r=e.schema,o=e.data,i=e.keyword,a=e.it;a.items=!0;var s=n.const("len",(0,n9._)(lr||(lr=mo(["",".length"])),o));if(!1===r)e.setParams({len:t.length}),e.pass((0,n9._)(fr||(fr=mo([""," <= ",""])),s,t.length));else if("object"==Vo(r)&&!(0,r9.alwaysValidSchema)(a,r)){var c=n.var("valid",(0,n9._)(dr||(dr=mo([""," <= ",""])),s,t.length));n.if((0,n9.not)(c),(function(){return function(r){n.forRange("i",t.length,s,(function(t){e.subschema({keyword:i,dataProp:t,dataPropType:r9.Type.Num},r),a.allErrors||n.if((0,n9.not)(r),(function(){return n.break()}))}))}(c)})),e.ok(c)}}t9.validateAdditionalItems=i9,t9.default=o9;var a9={},s9={};Object.defineProperty(s9,"__esModule",{value:!0}),s9.validateTuple=void 0;var c9=d8(),u9=h8,l9=P8(),f9={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code:function(e){var t=e.schema,n=e.it;if(Array.isArray(t))return d9(e,"additionalItems",t);n.items=!0,(0,u9.alwaysValidSchema)(n,t)||e.ok((0,l9.validateArray)(e))}};function d9(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.schema,r=e.gen,o=e.parentSchema,i=e.data,a=e.keyword,s=e.it;!function(e){var r=s.opts,o=s.errSchemaPath,i=n.length,c=i===e.minItems&&(i===e.maxItems||!1===e[t]);if(r.strictTuples&&!c){var u='"'.concat(a,'" is ').concat(i,"-tuple, but minItems or maxItems/").concat(t,' are not specified or different at path "').concat(o,'"');(0,u9.checkStrictMode)(s,u,r.strictTuples)}}(o),s.opts.unevaluated&&n.length&&!0!==s.items&&(s.items=u9.mergeEvaluated.items(r,n.length,s.items));var c=r.name("valid"),u=r.const("len",(0,c9._)(hr||(hr=mo(["",".length"])),i));n.forEach((function(t,n){(0,u9.alwaysValidSchema)(s,t)||(r.if((0,c9._)(vr||(vr=mo([""," > ",""])),u,n),(function(){return e.subschema({keyword:a,schemaProp:n,dataProp:n},c)})),e.ok(c))}))}s9.validateTuple=d9,s9.default=f9,Object.defineProperty(a9,"__esModule",{value:!0});var h9=s9,v9={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:function(e){return(0,h9.validateTuple)(e,"items")}};a9.default=v9;var p9={};Object.defineProperty(p9,"__esModule",{value:!0});var m9=d8(),g9=h8,y9=P8(),b9=t9,w9={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:function(e){var t=e.params.len;return(0,m9.str)(pr||(pr=mo(["must NOT have more than "," items"])),t)},params:function(e){var t=e.params.len;return(0,m9._)(mr||(mr=mo(["{limit: ","}"])),t)}},code:function(e){var t=e.schema,n=e.parentSchema,r=e.it,o=n.prefixItems;r.items=!0,(0,g9.alwaysValidSchema)(r,t)||(o?(0,b9.validateAdditionalItems)(e,o):e.ok((0,y9.validateArray)(e)))}};p9.default=w9;var x9={};Object.defineProperty(x9,"__esModule",{value:!0});var k9=d8(),j9=h8,S9={message:function(e){var t=e.params,n=t.min,r=t.max;return void 0===r?(0,k9.str)(gr||(gr=mo(["must contain at least "," valid item(s)"])),n):(0,k9.str)(yr||(yr=mo(["must contain at least "," and no more than "," valid item(s)"])),n,r)},params:function(e){var t=e.params,n=t.min,r=t.max;return void 0===r?(0,k9._)(br||(br=mo(["{minContains: ","}"])),n):(0,k9._)(wr||(wr=mo(["{minContains: ",", maxContains: ","}"])),n,r)}},C9={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:S9,code:function(e){var t,n,r=e.gen,o=e.schema,i=e.parentSchema,a=e.data,s=e.it,c=i.minContains,u=i.maxContains;s.opts.next?(t=void 0===c?1:c,n=u):t=1;var l=r.const("len",(0,k9._)(xr||(xr=mo(["",".length"])),a));if(e.setParams({min:t,max:n}),void 0!==n||0!==t){if(void 0!==n&&t>n)return(0,j9.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),void e.fail();if((0,j9.alwaysValidSchema)(s,o)){var f=(0,k9._)(kr||(kr=mo([""," >= ",""])),l,t);return void 0!==n&&(f=(0,k9._)(jr||(jr=mo([""," && "," <= ",""])),f,l,n)),void e.pass(f)}s.items=!0;var d=r.name("valid");void 0===n&&1===t?v(d,(function(){return r.if(d,(function(){return r.break()}))})):0===t?(r.let(d,!0),void 0!==n&&r.if((0,k9._)(Sr||(Sr=mo(["",".length > 0"])),a),h)):(r.let(d,!1),h()),e.result(d,(function(){return e.reset()}))}else(0,j9.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');function h(){var e=r.name("_valid"),o=r.let("count",0);v(e,(function(){return r.if(e,(function(){return function(e){r.code((0,k9._)(Cr||(Cr=mo(["","++"])),e)),void 0===n?r.if((0,k9._)($r||($r=mo([""," >= ",""])),e,t),(function(){return r.assign(d,!0).break()})):(r.if((0,k9._)(_r||(_r=mo([""," > ",""])),e,n),(function(){return r.assign(d,!1).break()})),1===t?r.assign(d,!0):r.if((0,k9._)(Or||(Or=mo([""," >= ",""])),e,t),(function(){return r.assign(d,!0)})))}(o)}))}))}function v(t,n){r.forRange("i",0,l,(function(r){e.subschema({keyword:"contains",dataProp:r,dataPropType:j9.Type.Num,compositeRule:!0},t),n()}))}}};x9.default=C9;var $9={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;var t=d8(),n=h8,r=P8();e.error={message:function(e){var n=e.params,r=n.property,o=n.depsCount,i=n.deps,a=1===o?"property":"properties";return(0,t.str)(Mr||(Mr=mo(["must have "," "," when property "," is present"])),a,i,r)},params:function(e){var n=e.params,r=n.property,o=n.depsCount,i=n.deps,a=n.missingProperty;return(0,t._)(Ar||(Ar=mo(["{property: ",",\n    missingProperty: ",",\n    depsCount: ",",\n    deps: ","}"])),r,a,o,i)}};var o={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code:function(e){var t=jo(function(e){var t=e.schema,n={},r={};for(var o in t){if("__proto__"!==o)(Array.isArray(t[o])?n:r)[o]=t[o]}return[n,r]}(e),2),n=t[0],r=t[1];i(e,n),a(e,r)}};function i(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.schema,o=e.gen,i=e.data,a=e.it;if(0!==Object.keys(n).length){var s=o.let("missing"),c=function(){var c=n[u];if(0===c.length)return 1;var l=(0,r.propertyInData)(o,i,u,a.opts.ownProperties);e.setParams({property:u,depsCount:c.length,deps:c.join(", ")}),a.allErrors?o.if(l,(function(){var t,n=bo(c);try{for(n.s();!(t=n.n()).done;){var o=t.value;(0,r.checkReportMissingProp)(e,o)}}catch(e){n.e(e)}finally{n.f()}})):(o.if((0,t._)(Er||(Er=mo([""," && (",")"])),l,(0,r.checkMissingProp)(e,c,s))),(0,r.reportMissingProp)(e,s),o.else())};for(var u in n)c()}}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.schema,o=e.gen,i=e.data,a=e.keyword,s=e.it,c=o.name("valid"),u=function(u){if((0,n.alwaysValidSchema)(s,t[u]))return 1;o.if((0,r.propertyInData)(o,i,u,s.opts.ownProperties),(function(){var t=e.subschema({keyword:a,schemaProp:u},c);e.mergeValidEvaluated(t,c)}),(function(){return o.var(c,!0)})),e.ok(c)};for(var l in t)u(l)}e.validatePropertyDeps=i,e.validateSchemaDeps=a,e.default=o}($9);var _9={};Object.defineProperty(_9,"__esModule",{value:!0});var O9=d8(),M9=h8,A9={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:function(e){var t=e.params;return(0,O9._)(Pr||(Pr=mo(["{propertyName: ","}"])),t.propertyName)}},code:function(e){var t=e.gen,n=e.schema,r=e.data,o=e.it;if(!(0,M9.alwaysValidSchema)(o,n)){var i=t.name("valid");t.forIn("key",r,(function(n){e.setParams({propertyName:n}),e.subschema({keyword:"propertyNames",data:n,dataTypes:["string"],propertyName:n,compositeRule:!0},i),t.if((0,O9.not)(i),(function(){e.error(!0),o.allErrors||t.break()}))})),e.ok(i)}}};_9.default=A9;var E9={};Object.defineProperty(E9,"__esModule",{value:!0});var P9=P8(),T9=d8(),R9=y8(),N9=h8,I9={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:function(e){var t=e.params;return(0,T9._)(Tr||(Tr=mo(["{additionalProperty: ","}"])),t.additionalProperty)}},code:function(e){var t=e.gen,n=e.schema,r=e.parentSchema,o=e.data,i=e.errsCount,a=e.it;if(!i)throw new Error("ajv implementation error");var s=a.allErrors,c=a.opts;if(a.props=!0,"all"===c.removeAdditional||!(0,N9.alwaysValidSchema)(a,n)){var u=(0,P9.allSchemaProperties)(r.properties),l=(0,P9.allSchemaProperties)(r.patternProperties);t.forIn("key",o,(function(n){u.length||l.length?t.if(function(n){var o;if(u.length>8){var i=(0,N9.schemaRefOrVal)(a,r.properties,"properties");o=(0,P9.isOwnProperty)(t,i,n)}else o=u.length?T9.or.apply(void 0,Bo(u.map((function(e){return(0,T9._)(Nr||(Nr=mo([""," === ",""])),n,e)})))):T9.nil;return l.length&&(o=T9.or.apply(void 0,[o].concat(Bo(l.map((function(t){return(0,T9._)(Ir||(Ir=mo(["",".test(",")"])),(0,P9.usePattern)(e,t),n)})))))),(0,T9.not)(o)}(n),(function(){return d(n)})):d(n)})),e.ok((0,T9._)(Rr||(Rr=mo([""," === ",""])),i,R9.default.errors))}function f(e){t.code((0,T9._)(Dr||(Dr=mo(["delete ","[","]"])),o,e))}function d(r){if("all"===c.removeAdditional||c.removeAdditional&&!1===n)f(r);else{if(!1===n)return e.setParams({additionalProperty:r}),e.error(),void(s||t.break());if("object"==Vo(n)&&!(0,N9.alwaysValidSchema)(a,n)){var o=t.name("valid");"failing"===c.removeAdditional?(h(r,o,!1),t.if((0,T9.not)(o),(function(){e.reset(),f(r)}))):(h(r,o),s||t.if((0,T9.not)(o),(function(){return t.break()})))}}}function h(t,n,r){var o={keyword:"additionalProperties",dataProp:t,dataPropType:N9.Type.Str};!1===r&&Object.assign(o,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(o,n)}}};E9.default=I9;var D9={};Object.defineProperty(D9,"__esModule",{value:!0});var z9=t5(),B9=P8(),L9=h8,q9=E9,F9={keyword:"properties",type:"object",schemaType:"object",code:function(e){var t=e.gen,n=e.schema,r=e.parentSchema,o=e.data,i=e.it;"all"===i.opts.removeAdditional&&void 0===r.additionalProperties&&q9.default.code(new z9.KeywordCxt(i,q9.default,"additionalProperties"));var a,s=(0,B9.allSchemaProperties)(n),c=bo(s);try{for(c.s();!(a=c.n()).done;){var u=a.value;i.definedProperties.add(u)}}catch(e){c.e(e)}finally{c.f()}i.opts.unevaluated&&s.length&&!0!==i.props&&(i.props=L9.mergeEvaluated.props(t,(0,L9.toHash)(s),i.props));var l=s.filter((function(e){return!(0,L9.alwaysValidSchema)(i,n[e])}));if(0!==l.length){var f,d=t.name("valid"),h=bo(l);try{for(h.s();!(f=h.n()).done;){var v=f.value;p(v)?m(v):(t.if((0,B9.propertyInData)(t,o,v,i.opts.ownProperties)),m(v),i.allErrors||t.else().var(d,!0),t.endIf()),e.it.definedProperties.add(v),e.ok(d)}}catch(e){h.e(e)}finally{h.f()}}function p(e){return i.opts.useDefaults&&!i.compositeRule&&void 0!==n[e].default}function m(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},d)}}};D9.default=F9;var V9={};Object.defineProperty(V9,"__esModule",{value:!0});var H9=P8(),W9=d8(),U9=h8,J9=h8,K9={keyword:"patternProperties",type:"object",schemaType:"object",code:function(e){var t=e.gen,n=e.schema,r=e.data,o=e.parentSchema,i=e.it,a=i.opts,s=(0,H9.allSchemaProperties)(n),c=s.filter((function(e){return(0,U9.alwaysValidSchema)(i,n[e])}));if(0!==s.length&&(c.length!==s.length||i.opts.unevaluated&&!0!==i.props)){var u=a.strictSchema&&!a.allowMatchingProperties&&o.properties,l=t.name("valid");!0===i.props||i.props instanceof W9.Name||(i.props=(0,J9.evaluatedPropsToName)(t,i.props));var f=i.props;!function(){var e,n=bo(s);try{for(n.s();!(e=n.n()).done;){var r=e.value;u&&d(r),i.allErrors?h(r):(t.var(l,!0),h(r),t.if(l))}}catch(e){n.e(e)}finally{n.f()}}()}function d(e){for(var t in u)new RegExp(e).test(t)&&(0,U9.checkStrictMode)(i,"property ".concat(t," matches pattern ").concat(e," (use allowMatchingProperties)"))}function h(n){t.forIn("key",r,(function(r){t.if((0,W9._)(zr||(zr=mo(["",".test(",")"])),(0,H9.usePattern)(e,n),r),(function(){var o=c.includes(n);o||e.subschema({keyword:"patternProperties",schemaProp:n,dataProp:r,dataPropType:J9.Type.Str},l),i.opts.unevaluated&&!0!==f?t.assign((0,W9._)(Br||(Br=mo(["","[","]"])),f,r),!0):o||i.allErrors||t.if((0,W9.not)(l),(function(){return t.break()}))}))}))}}};V9.default=K9;var G9={};Object.defineProperty(G9,"__esModule",{value:!0});var Q9=h8,Y9={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code:function(e){var t=e.gen,n=e.schema,r=e.it;if((0,Q9.alwaysValidSchema)(r,n))e.fail();else{var o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.failResult(o,(function(){return e.reset()}),(function(){return e.error()}))}},error:{message:"must NOT be valid"}};G9.default=Y9;var X9={};Object.defineProperty(X9,"__esModule",{value:!0});var Z9={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:P8().validateUnion,error:{message:"must match a schema in anyOf"}};X9.default=Z9;var eee={};Object.defineProperty(eee,"__esModule",{value:!0});var tee=d8(),nee=h8,ree={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:function(e){var t=e.params;return(0,tee._)(Lr||(Lr=mo(["{passingSchemas: ","}"])),t.passing)}},code:function(e){var t=e.gen,n=e.schema,r=e.parentSchema,o=e.it;if(!Array.isArray(n))throw new Error("ajv implementation error");if(!o.opts.discriminator||!r.discriminator){var i=n,a=t.let("valid",!1),s=t.let("passing",null),c=t.name("_valid");e.setParams({passing:s}),t.block((function(){i.forEach((function(n,r){var i;(0,nee.alwaysValidSchema)(o,n)?t.var(c,!0):i=e.subschema({keyword:"oneOf",schemaProp:r,compositeRule:!0},c),r>0&&t.if((0,tee._)(qr||(qr=mo([""," && ",""])),c,a)).assign(a,!1).assign(s,(0,tee._)(Fr||(Fr=mo(["[",", ","]"])),s,r)).else(),t.if(c,(function(){t.assign(a,!0),t.assign(s,r),i&&e.mergeEvaluated(i,tee.Name)}))}))})),e.result(a,(function(){return e.reset()}),(function(){return e.error(!0)}))}}};eee.default=ree;var oee={};Object.defineProperty(oee,"__esModule",{value:!0});var iee=h8,aee={keyword:"allOf",schemaType:"array",code:function(e){var t=e.gen,n=e.schema,r=e.it;if(!Array.isArray(n))throw new Error("ajv implementation error");var o=t.name("valid");n.forEach((function(t,n){if(!(0,iee.alwaysValidSchema)(r,t)){var i=e.subschema({keyword:"allOf",schemaProp:n},o);e.ok(o),e.mergeEvaluated(i)}}))}};oee.default=aee;var see={};Object.defineProperty(see,"__esModule",{value:!0});var cee=d8(),uee=h8,lee={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:function(e){var t=e.params;return(0,cee.str)(Vr||(Vr=mo(['must match "','" schema'])),t.ifClause)},params:function(e){var t=e.params;return(0,cee._)(Hr||(Hr=mo(["{failingKeyword: ","}"])),t.ifClause)}},code:function(e){var t=e.gen,n=e.parentSchema,r=e.it;void 0===n.then&&void 0===n.else&&(0,uee.checkStrictMode)(r,'"if" without "then" and "else" is ignored');var o=fee(r,"then"),i=fee(r,"else");if(o||i){var a,s=t.let("valid",!0),c=t.name("_valid");if(a=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},c),e.mergeEvaluated(a),e.reset(),o&&i){var u=t.let("ifClause");e.setParams({ifClause:u}),t.if(c,l("then",u),l("else",u))}else o?t.if(c,l("then")):t.if((0,cee.not)(c),l("else"));e.pass(s,(function(){return e.error(!0)}))}function l(n,r){return function(){var o=e.subschema({keyword:n},c);t.assign(s,c),e.mergeValidEvaluated(o,s),r?t.assign(r,(0,cee._)(Wr||(Wr=mo(["",""])),n)):e.setParams({ifClause:n})}}}};function fee(e,t){var n=e.schema[t];return void 0!==n&&!(0,uee.alwaysValidSchema)(e,n)}see.default=lee;var dee={};Object.defineProperty(dee,"__esModule",{value:!0});var hee=h8,vee={keyword:["then","else"],schemaType:["object","boolean"],code:function(e){var t=e.keyword,n=e.parentSchema,r=e.it;void 0===n.if&&(0,hee.checkStrictMode)(r,'"'.concat(t,'" without "if" is ignored'))}};dee.default=vee,Object.defineProperty(e9,"__esModule",{value:!0});var pee=t9,mee=a9,gee=s9,yee=p9,bee=x9,wee=$9,xee=_9,kee=E9,jee=D9,See=V9,Cee=G9,$ee=X9,_ee=eee,Oee=oee,Mee=see,Aee=dee;e9.default=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=[Cee.default,$ee.default,_ee.default,Oee.default,Mee.default,Aee.default,xee.default,kee.default,wee.default,jee.default,See.default];return e?t.push(mee.default,yee.default):t.push(pee.default,gee.default),t.push(bee.default),t};var Eee={},Pee={};Object.defineProperty(Pee,"__esModule",{value:!0});var Tee=d8(),Ree={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:function(e){var t=e.schemaCode;return(0,Tee.str)(Ur||(Ur=mo(['must match format "','"'])),t)},params:function(e){var t=e.schemaCode;return(0,Tee._)(Jr||(Jr=mo(["{format: ","}"])),t)}},code:function(e,t){var n=e.gen,r=e.data,o=e.$data,i=e.schema,a=e.schemaCode,s=e.it,c=s.opts,u=s.errSchemaPath,l=s.schemaEnv,f=s.self;c.validateFormats&&(o?function(){var o=n.scopeValue("formats",{ref:f.formats,code:c.code.formats}),i=n.const("fDef",(0,Tee._)(Kr||(Kr=mo(["","[","]"])),o,a)),s=n.let("fType"),u=n.let("format");n.if((0,Tee._)(Gr||(Gr=mo(["typeof ",' == "object" && !('," instanceof RegExp)"])),i,i),(function(){return n.assign(s,(0,Tee._)(Qr||(Qr=mo(["",'.type || "string"'])),i)).assign(u,(0,Tee._)(Yr||(Yr=mo(["",".validate"])),i))}),(function(){return n.assign(s,(0,Tee._)(Xr||(Xr=mo(['"string"'])))).assign(u,i)})),e.fail$data((0,Tee.or)(!1===c.strictSchema?Tee.nil:(0,Tee._)(Zr||(Zr=mo([""," && !",""])),a,u),(d=l.$async?(0,Tee._)(eo||(eo=mo(["(",".async ? await ","(",") : ","(","))"])),i,u,r,u,r):(0,Tee._)(to||(to=mo(["","(",")"])),u,r),h=(0,Tee._)(no||(no=mo(["(typeof ",' == "function" ? '," : ",".test(","))"])),u,d,u,r),(0,Tee._)(ro||(ro=mo([""," && "," !== true && "," === "," && !",""])),u,u,s,t,h))));var d,h}():function(){var o=f.formats[i];if(!o)return void function(){if(!1===c.strictSchema)return void f.logger.warn(e());throw new Error(e());function e(){return'unknown format "'.concat(i,'" ignored in schema at path "').concat(u,'"')}}();if(!0===o)return;var a=jo(function(e){var t=e instanceof RegExp?(0,Tee.regexpCode)(e):c.code.formats?(0,Tee._)(oo||(oo=mo(["","",""])),c.code.formats,(0,Tee.getProperty)(i)):void 0,r=n.scopeValue("formats",{key:i,ref:e,code:t});if("object"==Vo(e)&&!(e instanceof RegExp))return[e.type||"string",e.validate,(0,Tee._)(io||(io=mo(["",".validate"])),r)];return["string",e,r]}(o),3),s=a[0],d=a[1],h=a[2];s===t&&e.pass(function(){if("object"==Vo(o)&&!(o instanceof RegExp)&&o.async){if(!l.$async)throw new Error("async format in sync schema");return(0,Tee._)(ao||(ao=mo(["await ","(",")"])),h,r)}return"function"==typeof d?(0,Tee._)(so||(so=mo(["","(",")"])),h,r):(0,Tee._)(co||(co=mo(["",".test(",")"])),h,r)}())}())}};Pee.default=Ree,Object.defineProperty(Eee,"__esModule",{value:!0});var Nee=[Pee.default];Eee.default=Nee;var Iee={};Object.defineProperty(Iee,"__esModule",{value:!0}),Iee.contentVocabulary=Iee.metadataVocabulary=void 0,Iee.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],Iee.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"],Object.defineProperty(O5,"__esModule",{value:!0});var Dee=H5,zee=e9,Bee=Eee,Lee=Iee,qee=[M5.default,Dee.default,(0,zee.default)(),Bee.default,Lee.metadataVocabulary,Lee.contentVocabulary];O5.default=qee;var Fee={},Vee={};!function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,(t=e.DiscrError||(e.DiscrError={})).Tag="tag",t.Mapping="mapping"}(Vee),Object.defineProperty(Fee,"__esModule",{value:!0});var Hee=d8(),Wee=Vee,Uee=c5,Jee=h8,Kee={keyword:"discriminator",type:"object",schemaType:"object",error:{message:function(e){var t=e.params,n=t.discrError,r=t.tagName;return n===Wee.DiscrError.Tag?'tag "'.concat(r,'" must be string'):'value of tag "'.concat(r,'" must be in oneOf')},params:function(e){var t=e.params,n=t.discrError,r=t.tag,o=t.tagName;return(0,Hee._)(uo||(uo=mo(["{error: ",", tag: ",", tagValue: ","}"])),n,o,r)}},code:function(e){var t=e.gen,n=e.data,r=e.schema,o=e.parentSchema,i=e.it,a=o.oneOf;if(!i.opts.discriminator)throw new Error("discriminator: requires discriminator option");var s=r.propertyName;if("string"!=typeof s)throw new Error("discriminator: requires propertyName");if(r.mapping)throw new Error("discriminator: mapping is not supported");if(!a)throw new Error("discriminator: requires oneOf keyword");var c=t.let("valid",!1),u=t.const("tag",(0,Hee._)(lo||(lo=mo(["","",""])),n,(0,Hee.getProperty)(s)));function l(n){var r=t.name("valid"),o=e.subschema({keyword:"oneOf",schemaProp:n},r);return e.mergeEvaluated(o,Hee.Name),r}t.if((0,Hee._)(fo||(fo=mo(["typeof ",' == "string"'])),u),(function(){return function(){var n=function(){for(var e,t={},n=f(o),r=!0,c=0;c<a.length;c++){var u=a[c];(null==u?void 0:u.$ref)&&!(0,Jee.schemaHasRulesButRef)(u,i.self.RULES)&&(u=Uee.resolveRef.call(i.self,i.schemaEnv.root,i.baseId,null==u?void 0:u.$ref))instanceof Uee.SchemaEnv&&(u=u.schema);var l=null===(e=null==u?void 0:u.properties)||void 0===e?void 0:e[s];if("object"!=Vo(l))throw new Error('discriminator: oneOf subschemas (or referenced schemas) must have "properties/'.concat(s,'"'));r=r&&(n||f(u)),d(l,c)}if(!r)throw new Error('discriminator: "'.concat(s,'" must be required'));return t;function f(e){var t=e.required;return Array.isArray(t)&&t.includes(s)}function d(e,t){if(e.const)h(e.const,t);else{if(!e.enum)throw new Error('discriminator: "properties/'.concat(s,'" must have "const" or "enum"'));var n,r=bo(e.enum);try{for(r.s();!(n=r.n()).done;){h(n.value,t)}}catch(e){r.e(e)}finally{r.f()}}}function h(e,n){if("string"!=typeof e||e in t)throw new Error('discriminator: "'.concat(s,'" values must be unique strings'));t[e]=n}}();for(var r in t.if(!1),n)t.elseIf((0,Hee._)(ho||(ho=mo([""," === ",""])),u,r)),t.assign(c,l(n[r]));t.else(),e.error(!1,{discrError:Wee.DiscrError.Mapping,tag:u,tagName:s}),t.endIf()}()}),(function(){return e.error(!1,{discrError:Wee.DiscrError.Tag,tag:u,tagName:s})})),e.ok(c)}};Fee.default=Kee;var Gee={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var n=O5,r=Fee,o=Gee,i=["/properties"],a="http://json-schema.org/draft-07/schema",s=function(e){function t(){return Ro(this,t),_o(this,t,arguments)}return Ao(t,e),Io(t,[{key:"_addVocabularies",value:function(){var e=this;go(Mo(t.prototype),"_addVocabularies",this).call(this),n.default.forEach((function(t){return e.addVocabulary(t)})),this.opts.discriminator&&this.addKeyword(r.default)}},{key:"_addDefaultMetaSchema",value:function(){if(go(Mo(t.prototype),"_addDefaultMetaSchema",this).call(this),this.opts.meta){var e=this.opts.$data?this.$dataMetaSchema(o,i):o;this.addMetaSchema(e,a,!1),this.refs["http://json-schema.org/schema"]=a}}},{key:"defaultMeta",value:function(){return this.opts.defaultMeta=go(Mo(t.prototype),"defaultMeta",this).call(this)||(this.getSchema(a)?a:void 0)}}])}(t8.default);e.exports=t=s,Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var c=t5();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var u=d8();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});var l=o5();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return l.default}});var f=s5();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return f.default}})}(e8,e8.exports);var Qee=yc(e8.exports);function Yee(e){if(void 0===e.schema)throw new Error("Deprecation warning: the signature of createAjvValidator is changed from createAjvValidator(schema, schemaDefinitions, ajvOptions) to createAjvValidator({ schema, schemaDefinitions, ajvOptions }). Please pass the arguments as an object instead of unnamed arguments.");var t=function(e){var t=e.schemaDefinitions,n=e.ajvOptions,r=new Qee(To({allErrors:!0,verbose:!0,$data:!0},n));t&&Object.keys(t).forEach((function(e){r.addSchema(t[e],e)}));return r}(e);if(void 0!==e.onCreateAjv&&!1===(t=e.onCreateAjv(t)||t).opts.verbose)throw new Error("Ajv must be configured with the option verbose=true");var n=t.compile(e.schema);if(n.errors)throw n.errors[0];return function(e){return n(e),(n.errors||[]).map(Xee).map((function(t){return function(e,t){return{path:dc(e,t.instancePath),message:t.message||"Unknown error",severity:Xa.warning}}(e,t)}))}}function Xee(e){if("enum"===e.keyword&&Array.isArray(e.schema)){var t=e.schema;if(t){if((t=t.map((function(e){return JSON.stringify(e)}))).length>5){var n=["("+(t.length-5)+" more...)"];(t=t.slice(0,5)).push(n)}e.message="should be equal to one of: "+t.join(", ")}}return"additionalProperties"===e.keyword&&(e.message="should NOT have additional property: "+e.params.additionalProperty),e}var Zee={id:"lodash",name:"Lodash",description:'\n<p>\n  Enter a JavaScript function to filter, sort, or transform the data.\n  You can use <a href="https://lodash.com" target="_blank" rel="noopener noreferrer">Lodash</a>\n  functions like <code>_.map</code>, <code>_.filter</code>,\n  <code>_.orderBy</code>, <code>_.sortBy</code>, <code>_.groupBy</code>,\n  <code>_.pick</code>, <code>_.uniq</code>, <code>_.get</code>, etcetera.\n</p>\n',createQuery:function(e,t){var n=t.filter,r=t.sort,o=t.projection,i=["  return _.chain(data)\n"];if(n&&n.path&&n.relation&&n.value){var a="item => item".concat(XO(n.path)),s=rM(n.value),c="string"==typeof s?"'".concat(n.value,"'"):ol(n.value)&&!Number.isSafeInteger(s)?"".concat(n.value,"n"):n.value;i.push("    .filter(".concat(a," ").concat(n.relation," ").concat(c,")\n"))}r&&r.path&&r.direction&&i.push("    .orderBy([".concat(function(e){return 0===e.length?"":e.every((function(e){return eM.test(e)||ZO.test(e)}))?"'"+e.map(YO).join("").replace(/^\./,"")+"'":JSON.stringify(e)}(r.path),"], ['").concat(r.direction,"'])\n"));if(o&&o.paths)if(o.paths.length>1){var u=o.paths.map((function(e){var t=mb(e)||"item";return"      ".concat(JSON.stringify(t),": item").concat(XO(e))}));i.push("    .map(item => ({\n".concat(u.join(",\n"),"\n    }))\n"))}else{var l=o.paths[0];i.push("    .map(item => item".concat(XO(l),")\n"))}return i.push("    .value()\n"),"function query (data) {\n".concat(i.join(""),"}")},executeQuery:function(e,t){!function(e){var t,n,r=null===(t=e.match(/_\.chain\(/g))||void 0===t?void 0:t.length,o=null===(n=e.match(/\.value\(\)/g))||void 0===n?void 0:n.length;if(r!==o)throw new Error("Cannot execute query: Lodash _.chain(...) must end with .value()")}(t);var n=new Function("_",'"use strict";\n\n'+t+'\n\nif (typeof query !== "function") {\n  throw new Error("Cannot execute query: expecting a function named \'query\' but is undefined")\n}\n\nreturn query;\n')(E_)(e);return void 0!==n?n:null}};var ete={};!function(e){function t(e){return null!==e&&"[object Array]"===Object.prototype.toString.call(e)}function n(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function r(e,o){if(e===o)return!0;if(Object.prototype.toString.call(e)!==Object.prototype.toString.call(o))return!1;if(!0===t(e)){if(e.length!==o.length)return!1;for(var i=0;i<e.length;i++)if(!1===r(e[i],o[i]))return!1;return!0}if(!0===n(e)){var a={};for(var s in e)if(hasOwnProperty.call(e,s)){if(!1===r(e[s],o[s]))return!1;a[s]=!0}for(var c in o)if(hasOwnProperty.call(o,c)&&!0!==a[c])return!1;return!0}return!1}function o(e){if(""===e||!1===e||null===e)return!0;if(t(e)&&0===e.length)return!0;if(n(e)){for(var r in e)if(e.hasOwnProperty(r))return!1;return!0}return!1}var i;i="function"==typeof String.prototype.trimLeft?function(e){return e.trimLeft()}:function(e){return e.match(/^\s*(.*)/)[1]};var a=0,s=1,c=2,u=3,l=4,f=6,d=8,h=9,v={0:"number",1:"any",2:"string",3:"array",4:"object",5:"boolean",6:"expression",7:"null",8:"Array<number>",9:"Array<string>"},p="EOF",m="UnquotedIdentifier",g="QuotedIdentifier",y="Rbracket",b="Rparen",w="Comma",x="Colon",k="Rbrace",j="Number",S="Current",C="Expref",$="Pipe",_="Or",O="And",M="EQ",A="GT",E="LT",P="GTE",T="LTE",R="NE",N="Flatten",I="Star",D="Filter",z="Dot",B="Not",L="Lbrace",q="Lbracket",F="Lparen",V="Literal",H={".":z,"*":I,",":w,":":x,"{":L,"}":k,"]":y,"(":F,")":b,"@":S},W={"<":!0,">":!0,"=":!0,"!":!0},U={" ":!0,"\t":!0,"\n":!0};function J(e){return e>="0"&&e<="9"||"-"===e}function K(){}K.prototype={tokenize:function(e){var t,n,r,o,i=[];for(this._current=0;this._current<e.length;)if((o=e[this._current])>="a"&&o<="z"||o>="A"&&o<="Z"||"_"===o)t=this._current,n=this._consumeUnquotedIdentifier(e),i.push({type:m,value:n,start:t});else if(void 0!==H[e[this._current]])i.push({type:H[e[this._current]],value:e[this._current],start:this._current}),this._current++;else if(J(e[this._current]))r=this._consumeNumber(e),i.push(r);else if("["===e[this._current])r=this._consumeLBracket(e),i.push(r);else if('"'===e[this._current])t=this._current,n=this._consumeQuotedIdentifier(e),i.push({type:g,value:n,start:t});else if("'"===e[this._current])t=this._current,n=this._consumeRawStringLiteral(e),i.push({type:V,value:n,start:t});else if("`"===e[this._current]){t=this._current;var a=this._consumeLiteral(e);i.push({type:V,value:a,start:t})}else if(void 0!==W[e[this._current]])i.push(this._consumeOperator(e));else if(void 0!==U[e[this._current]])this._current++;else if("&"===e[this._current])t=this._current,this._current++,"&"===e[this._current]?(this._current++,i.push({type:O,value:"&&",start:t})):i.push({type:C,value:"&",start:t});else{if("|"!==e[this._current]){var s=new Error("Unknown character:"+e[this._current]);throw s.name="LexerError",s}t=this._current,this._current++,"|"===e[this._current]?(this._current++,i.push({type:_,value:"||",start:t})):i.push({type:$,value:"|",start:t})}return i},_consumeUnquotedIdentifier:function(e){var t,n=this._current;for(this._current++;this._current<e.length&&((t=e[this._current])>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"||"_"===t);)this._current++;return e.slice(n,this._current)},_consumeQuotedIdentifier:function(e){var t=this._current;this._current++;for(var n=e.length;'"'!==e[this._current]&&this._current<n;){var r=this._current;"\\"!==e[r]||"\\"!==e[r+1]&&'"'!==e[r+1]?r++:r+=2,this._current=r}return this._current++,JSON.parse(e.slice(t,this._current))},_consumeRawStringLiteral:function(e){var t=this._current;this._current++;for(var n=e.length;"'"!==e[this._current]&&this._current<n;){var r=this._current;"\\"!==e[r]||"\\"!==e[r+1]&&"'"!==e[r+1]?r++:r+=2,this._current=r}return this._current++,e.slice(t+1,this._current-1).replace("\\'","'")},_consumeNumber:function(e){var t=this._current;this._current++;for(var n=e.length;J(e[this._current])&&this._current<n;)this._current++;var r=parseInt(e.slice(t,this._current));return{type:j,value:r,start:t}},_consumeLBracket:function(e){var t=this._current;return this._current++,"?"===e[this._current]?(this._current++,{type:D,value:"[?",start:t}):"]"===e[this._current]?(this._current++,{type:N,value:"[]",start:t}):{type:q,value:"[",start:t}},_consumeOperator:function(e){var t=this._current,n=e[t];return this._current++,"!"===n?"="===e[this._current]?(this._current++,{type:R,value:"!=",start:t}):{type:B,value:"!",start:t}:"<"===n?"="===e[this._current]?(this._current++,{type:T,value:"<=",start:t}):{type:E,value:"<",start:t}:">"===n?"="===e[this._current]?(this._current++,{type:P,value:">=",start:t}):{type:A,value:">",start:t}:"="===n&&"="===e[this._current]?(this._current++,{type:M,value:"==",start:t}):void 0},_consumeLiteral:function(e){this._current++;for(var t,n=this._current,r=e.length;"`"!==e[this._current]&&this._current<r;){var o=this._current;"\\"!==e[o]||"\\"!==e[o+1]&&"`"!==e[o+1]?o++:o+=2,this._current=o}var a=i(e.slice(n,this._current));return a=a.replace("\\`","`"),t=this._looksLikeJSON(a)?JSON.parse(a):JSON.parse('"'+a+'"'),this._current++,t},_looksLikeJSON:function(e){if(""===e)return!1;if('[{"'.indexOf(e[0])>=0)return!0;if(["true","false","null"].indexOf(e)>=0)return!0;if(!("-0123456789".indexOf(e[0])>=0))return!1;try{return JSON.parse(e),!0}catch(e){return!1}}};var G={};function Q(){}function Y(e){this.runtime=e}function X(e){this._interpreter=e,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[a]}]},avg:{_func:this._functionAvg,_signature:[{types:[d]}]},ceil:{_func:this._functionCeil,_signature:[{types:[a]}]},contains:{_func:this._functionContains,_signature:[{types:[c,u]},{types:[s]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[c]},{types:[c]}]},floor:{_func:this._functionFloor,_signature:[{types:[a]}]},length:{_func:this._functionLength,_signature:[{types:[c,u,l]}]},map:{_func:this._functionMap,_signature:[{types:[f]},{types:[u]}]},max:{_func:this._functionMax,_signature:[{types:[d,h]}]},merge:{_func:this._functionMerge,_signature:[{types:[l],variadic:!0}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[u]},{types:[f]}]},sum:{_func:this._functionSum,_signature:[{types:[d]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[c]},{types:[c]}]},min:{_func:this._functionMin,_signature:[{types:[d,h]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[u]},{types:[f]}]},type:{_func:this._functionType,_signature:[{types:[s]}]},keys:{_func:this._functionKeys,_signature:[{types:[l]}]},values:{_func:this._functionValues,_signature:[{types:[l]}]},sort:{_func:this._functionSort,_signature:[{types:[h,d]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[u]},{types:[f]}]},join:{_func:this._functionJoin,_signature:[{types:[c]},{types:[h]}]},reverse:{_func:this._functionReverse,_signature:[{types:[c,u]}]},to_array:{_func:this._functionToArray,_signature:[{types:[s]}]},to_string:{_func:this._functionToString,_signature:[{types:[s]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[s]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[s],variadic:!0}]}}}G[p]=0,G[m]=0,G[g]=0,G[y]=0,G[b]=0,G[w]=0,G[k]=0,G[j]=0,G[S]=0,G[C]=0,G[$]=1,G[_]=2,G[O]=3,G[M]=5,G[A]=5,G[E]=5,G[P]=5,G[T]=5,G[R]=5,G[N]=9,G[I]=20,G[D]=21,G[z]=40,G[B]=45,G[L]=50,G[q]=55,G[F]=60,Q.prototype={parse:function(e){this._loadTokens(e),this.index=0;var t=this.expression(0);if(this._lookahead(0)!==p){var n=this._lookaheadToken(0),r=new Error("Unexpected token type: "+n.type+", value: "+n.value);throw r.name="ParserError",r}return t},_loadTokens:function(e){var t=(new K).tokenize(e);t.push({type:p,value:"",start:e.length}),this.tokens=t},expression:function(e){var t=this._lookaheadToken(0);this._advance();for(var n=this.nud(t),r=this._lookahead(0);e<G[r];)this._advance(),n=this.led(r,n),r=this._lookahead(0);return n},_lookahead:function(e){return this.tokens[this.index+e].type},_lookaheadToken:function(e){return this.tokens[this.index+e]},_advance:function(){this.index++},nud:function(e){var t,n;switch(e.type){case V:return{type:"Literal",value:e.value};case m:return{type:"Field",name:e.value};case g:var r={type:"Field",name:e.value};if(this._lookahead(0)===F)throw new Error("Quoted identifier not allowed for function names.");return r;case B:return{type:"NotExpression",children:[t=this.expression(G.Not)]};case I:return t=null,{type:"ValueProjection",children:[{type:"Identity"},t=this._lookahead(0)===y?{type:"Identity"}:this._parseProjectionRHS(G.Star)]};case D:return this.led(e.type,{type:"Identity"});case L:return this._parseMultiselectHash();case N:return{type:"Projection",children:[{type:N,children:[{type:"Identity"}]},t=this._parseProjectionRHS(G.Flatten)]};case q:return this._lookahead(0)===j||this._lookahead(0)===x?(t=this._parseIndexExpression(),this._projectIfSlice({type:"Identity"},t)):this._lookahead(0)===I&&this._lookahead(1)===y?(this._advance(),this._advance(),{type:"Projection",children:[{type:"Identity"},t=this._parseProjectionRHS(G.Star)]}):this._parseMultiselectList();case S:return{type:S};case C:return{type:"ExpressionReference",children:[n=this.expression(G.Expref)]};case F:for(var o=[];this._lookahead(0)!==b;)this._lookahead(0)===S?(n={type:S},this._advance()):n=this.expression(0),o.push(n);return this._match(b),o[0];default:this._errorToken(e)}},led:function(e,t){var n;switch(e){case z:var r=G.Dot;return this._lookahead(0)!==I?{type:"Subexpression",children:[t,n=this._parseDotRHS(r)]}:(this._advance(),{type:"ValueProjection",children:[t,n=this._parseProjectionRHS(r)]});case $:return n=this.expression(G.Pipe),{type:$,children:[t,n]};case _:return{type:"OrExpression",children:[t,n=this.expression(G.Or)]};case O:return{type:"AndExpression",children:[t,n=this.expression(G.And)]};case F:for(var o,i=t.name,a=[];this._lookahead(0)!==b;)this._lookahead(0)===S?(o={type:S},this._advance()):o=this.expression(0),this._lookahead(0)===w&&this._match(w),a.push(o);return this._match(b),{type:"Function",name:i,children:a};case D:var s=this.expression(0);return this._match(y),{type:"FilterProjection",children:[t,n=this._lookahead(0)===N?{type:"Identity"}:this._parseProjectionRHS(G.Filter),s]};case N:return{type:"Projection",children:[{type:N,children:[t]},this._parseProjectionRHS(G.Flatten)]};case M:case R:case A:case P:case E:case T:return this._parseComparator(t,e);case q:var c=this._lookaheadToken(0);return c.type===j||c.type===x?(n=this._parseIndexExpression(),this._projectIfSlice(t,n)):(this._match(I),this._match(y),{type:"Projection",children:[t,n=this._parseProjectionRHS(G.Star)]});default:this._errorToken(this._lookaheadToken(0))}},_match:function(e){if(this._lookahead(0)!==e){var t=this._lookaheadToken(0),n=new Error("Expected "+e+", got: "+t.type);throw n.name="ParserError",n}this._advance()},_errorToken:function(e){var t=new Error("Invalid token ("+e.type+'): "'+e.value+'"');throw t.name="ParserError",t},_parseIndexExpression:function(){if(this._lookahead(0)===x||this._lookahead(1)===x)return this._parseSliceExpression();var e={type:"Index",value:this._lookaheadToken(0).value};return this._advance(),this._match(y),e},_projectIfSlice:function(e,t){var n={type:"IndexExpression",children:[e,t]};return"Slice"===t.type?{type:"Projection",children:[n,this._parseProjectionRHS(G.Star)]}:n},_parseSliceExpression:function(){for(var e=[null,null,null],t=0,n=this._lookahead(0);n!==y&&t<3;){if(n===x)t++,this._advance();else{if(n!==j){var r=this._lookahead(0),o=new Error("Syntax error, unexpected token: "+r.value+"("+r.type+")");throw o.name="Parsererror",o}e[t]=this._lookaheadToken(0).value,this._advance()}n=this._lookahead(0)}return this._match(y),{type:"Slice",children:e}},_parseComparator:function(e,t){return{type:"Comparator",name:t,children:[e,this.expression(G[t])]}},_parseDotRHS:function(e){var t=this._lookahead(0);return[m,g,I].indexOf(t)>=0?this.expression(e):t===q?(this._match(q),this._parseMultiselectList()):t===L?(this._match(L),this._parseMultiselectHash()):void 0},_parseProjectionRHS:function(e){var t;if(G[this._lookahead(0)]<10)t={type:"Identity"};else if(this._lookahead(0)===q)t=this.expression(e);else if(this._lookahead(0)===D)t=this.expression(e);else{if(this._lookahead(0)!==z){var n=this._lookaheadToken(0),r=new Error("Sytanx error, unexpected token: "+n.value+"("+n.type+")");throw r.name="ParserError",r}this._match(z),t=this._parseDotRHS(e)}return t},_parseMultiselectList:function(){for(var e=[];this._lookahead(0)!==y;){var t=this.expression(0);if(e.push(t),this._lookahead(0)===w&&(this._match(w),this._lookahead(0)===y))throw new Error("Unexpected token Rbracket")}return this._match(y),{type:"MultiSelectList",children:e}},_parseMultiselectHash:function(){for(var e,t,n,r=[],o=[m,g];;){if(e=this._lookaheadToken(0),o.indexOf(e.type)<0)throw new Error("Expecting an identifier token, got: "+e.type);if(t=e.value,this._advance(),this._match(x),n={type:"KeyValuePair",name:t,value:this.expression(0)},r.push(n),this._lookahead(0)===w)this._match(w);else if(this._lookahead(0)===k){this._match(k);break}}return{type:"MultiSelectHash",children:r}}},Y.prototype={search:function(e,t){return this.visit(e,t)},visit:function(e,i){var a,s,c,u,l,f,d,h,v;switch(e.type){case"Field":return null!==i&&n(i)?void 0===(f=i[e.name])?null:f:null;case"Subexpression":for(c=this.visit(e.children[0],i),v=1;v<e.children.length;v++)if(null===(c=this.visit(e.children[1],c)))return null;return c;case"IndexExpression":return d=this.visit(e.children[0],i),this.visit(e.children[1],d);case"Index":if(!t(i))return null;var p=e.value;return p<0&&(p=i.length+p),void 0===(c=i[p])&&(c=null),c;case"Slice":if(!t(i))return null;var m=e.children.slice(0),g=this.computeSliceParams(i.length,m),y=g[0],b=g[1],w=g[2];if(c=[],w>0)for(v=y;v<b;v+=w)c.push(i[v]);else for(v=y;v>b;v+=w)c.push(i[v]);return c;case"Projection":var x=this.visit(e.children[0],i);if(!t(x))return null;for(h=[],v=0;v<x.length;v++)null!==(s=this.visit(e.children[1],x[v]))&&h.push(s);return h;case"ValueProjection":if(!n(x=this.visit(e.children[0],i)))return null;h=[];var k=function(e){for(var t=Object.keys(e),n=[],r=0;r<t.length;r++)n.push(e[t[r]]);return n}(x);for(v=0;v<k.length;v++)null!==(s=this.visit(e.children[1],k[v]))&&h.push(s);return h;case"FilterProjection":if(!t(x=this.visit(e.children[0],i)))return null;var j=[],_=[];for(v=0;v<x.length;v++)o(a=this.visit(e.children[2],x[v]))||j.push(x[v]);for(var O=0;O<j.length;O++)null!==(s=this.visit(e.children[1],j[O]))&&_.push(s);return _;case"Comparator":switch(u=this.visit(e.children[0],i),l=this.visit(e.children[1],i),e.name){case M:c=r(u,l);break;case R:c=!r(u,l);break;case A:c=u>l;break;case P:c=u>=l;break;case E:c=u<l;break;case T:c=u<=l;break;default:throw new Error("Unknown comparator: "+e.name)}return c;case N:var I=this.visit(e.children[0],i);if(!t(I))return null;var D=[];for(v=0;v<I.length;v++)t(s=I[v])?D.push.apply(D,s):D.push(s);return D;case"Identity":return i;case"MultiSelectList":if(null===i)return null;for(h=[],v=0;v<e.children.length;v++)h.push(this.visit(e.children[v],i));return h;case"MultiSelectHash":if(null===i)return null;var z;for(h={},v=0;v<e.children.length;v++)h[(z=e.children[v]).name]=this.visit(z.value,i);return h;case"OrExpression":return o(a=this.visit(e.children[0],i))&&(a=this.visit(e.children[1],i)),a;case"AndExpression":return!0===o(u=this.visit(e.children[0],i))?u:this.visit(e.children[1],i);case"NotExpression":return o(u=this.visit(e.children[0],i));case"Literal":return e.value;case $:return d=this.visit(e.children[0],i),this.visit(e.children[1],d);case S:return i;case"Function":var B=[];for(v=0;v<e.children.length;v++)B.push(this.visit(e.children[v],i));return this.runtime.callFunction(e.name,B);case"ExpressionReference":var L=e.children[0];return L.jmespathType=C,L;default:throw new Error("Unknown node type: "+e.type)}},computeSliceParams:function(e,t){var n=t[0],r=t[1],o=t[2],i=[null,null,null];if(null===o)o=1;else if(0===o){var a=new Error("Invalid slice, step cannot be 0");throw a.name="RuntimeError",a}var s=o<0;return n=null===n?s?e-1:0:this.capSliceRange(e,n,o),r=null===r?s?-1:e:this.capSliceRange(e,r,o),i[0]=n,i[1]=r,i[2]=o,i},capSliceRange:function(e,t,n){return t<0?(t+=e)<0&&(t=n<0?-1:0):t>=e&&(t=n<0?e-1:e),t}},X.prototype={callFunction:function(e,t){var n=this.functionTable[e];if(void 0===n)throw new Error("Unknown function: "+e+"()");return this._validateArgs(e,t,n._signature),n._func.call(this,t)},_validateArgs:function(e,t,n){var r,o,i,a;if(n[n.length-1].variadic){if(t.length<n.length)throw r=1===n.length?" argument":" arguments",new Error("ArgumentError: "+e+"() takes at least"+n.length+r+" but received "+t.length)}else if(t.length!==n.length)throw r=1===n.length?" argument":" arguments",new Error("ArgumentError: "+e+"() takes "+n.length+r+" but received "+t.length);for(var s=0;s<n.length;s++){a=!1,o=n[s].types,i=this._getTypeName(t[s]);for(var c=0;c<o.length;c++)if(this._typeMatches(i,o[c],t[s])){a=!0;break}if(!a){var u=o.map((function(e){return v[e]})).join(",");throw new Error("TypeError: "+e+"() expected argument "+(s+1)+" to be type "+u+" but received type "+v[i]+" instead.")}}},_typeMatches:function(e,t,n){if(t===s)return!0;if(t!==h&&t!==d&&t!==u)return e===t;if(t===u)return e===u;if(e===u){var r;t===d?r=a:t===h&&(r=c);for(var o=0;o<n.length;o++)if(!this._typeMatches(this._getTypeName(n[o]),r,n[o]))return!1;return!0}},_getTypeName:function(e){switch(Object.prototype.toString.call(e)){case"[object String]":return c;case"[object Number]":return a;case"[object Array]":return u;case"[object Boolean]":return 5;case"[object Null]":return 7;case"[object Object]":return e.jmespathType===C?f:l}},_functionStartsWith:function(e){return 0===e[0].lastIndexOf(e[1])},_functionEndsWith:function(e){var t=e[0],n=e[1];return-1!==t.indexOf(n,t.length-n.length)},_functionReverse:function(e){if(this._getTypeName(e[0])===c){for(var t=e[0],n="",r=t.length-1;r>=0;r--)n+=t[r];return n}var o=e[0].slice(0);return o.reverse(),o},_functionAbs:function(e){return Math.abs(e[0])},_functionCeil:function(e){return Math.ceil(e[0])},_functionAvg:function(e){for(var t=0,n=e[0],r=0;r<n.length;r++)t+=n[r];return t/n.length},_functionContains:function(e){return e[0].indexOf(e[1])>=0},_functionFloor:function(e){return Math.floor(e[0])},_functionLength:function(e){return n(e[0])?Object.keys(e[0]).length:e[0].length},_functionMap:function(e){for(var t=[],n=this._interpreter,r=e[0],o=e[1],i=0;i<o.length;i++)t.push(n.visit(r,o[i]));return t},_functionMerge:function(e){for(var t={},n=0;n<e.length;n++){var r=e[n];for(var o in r)t[o]=r[o]}return t},_functionMax:function(e){if(e[0].length>0){if(this._getTypeName(e[0][0])===a)return Math.max.apply(Math,e[0]);for(var t=e[0],n=t[0],r=1;r<t.length;r++)n.localeCompare(t[r])<0&&(n=t[r]);return n}return null},_functionMin:function(e){if(e[0].length>0){if(this._getTypeName(e[0][0])===a)return Math.min.apply(Math,e[0]);for(var t=e[0],n=t[0],r=1;r<t.length;r++)t[r].localeCompare(n)<0&&(n=t[r]);return n}return null},_functionSum:function(e){for(var t=0,n=e[0],r=0;r<n.length;r++)t+=n[r];return t},_functionType:function(e){switch(this._getTypeName(e[0])){case a:return"number";case c:return"string";case u:return"array";case l:return"object";case 5:return"boolean";case f:return"expref";case 7:return"null"}},_functionKeys:function(e){return Object.keys(e[0])},_functionValues:function(e){for(var t=e[0],n=Object.keys(t),r=[],o=0;o<n.length;o++)r.push(t[n[o]]);return r},_functionJoin:function(e){var t=e[0];return e[1].join(t)},_functionToArray:function(e){return this._getTypeName(e[0])===u?e[0]:[e[0]]},_functionToString:function(e){return this._getTypeName(e[0])===c?e[0]:JSON.stringify(e[0])},_functionToNumber:function(e){var t,n=this._getTypeName(e[0]);return n===a?e[0]:n!==c||(t=+e[0],isNaN(t))?null:t},_functionNotNull:function(e){for(var t=0;t<e.length;t++)if(7!==this._getTypeName(e[t]))return e[t];return null},_functionSort:function(e){var t=e[0].slice(0);return t.sort(),t},_functionSortBy:function(e){var t=e[0].slice(0);if(0===t.length)return t;var n=this._interpreter,r=e[1],o=this._getTypeName(n.visit(r,t[0]));if([a,c].indexOf(o)<0)throw new Error("TypeError");for(var i=this,s=[],u=0;u<t.length;u++)s.push([u,t[u]]);s.sort((function(e,t){var a=n.visit(r,e[1]),s=n.visit(r,t[1]);if(i._getTypeName(a)!==o)throw new Error("TypeError: expected "+o+", received "+i._getTypeName(a));if(i._getTypeName(s)!==o)throw new Error("TypeError: expected "+o+", received "+i._getTypeName(s));return a>s?1:a<s?-1:e[0]-t[0]}));for(var l=0;l<s.length;l++)t[l]=s[l][1];return t},_functionMaxBy:function(e){for(var t,n,r=e[1],o=e[0],i=this.createKeyFunction(r,[a,c]),s=-1/0,u=0;u<o.length;u++)(n=i(o[u]))>s&&(s=n,t=o[u]);return t},_functionMinBy:function(e){for(var t,n,r=e[1],o=e[0],i=this.createKeyFunction(r,[a,c]),s=1/0,u=0;u<o.length;u++)(n=i(o[u]))<s&&(s=n,t=o[u]);return t},createKeyFunction:function(e,t){var n=this,r=this._interpreter;return function(o){var i=r.visit(e,o);if(t.indexOf(n._getTypeName(i))<0){var a="TypeError: expected one of "+t+", received "+n._getTypeName(i);throw new Error(a)}return i}}},e.tokenize=function(e){return(new K).tokenize(e)},e.compile=function(e){return(new Q).parse(e)},e.search=function(e,t){var n=new Q,r=new X,o=new Y(r);r._interpreter=o;var i=n.parse(t);return o.search(i,e)},e.strictDeepEqual=r}(ete);var tte=yc(ete),nte={id:"jmespath",name:"JMESPath",description:'\n<p>\n  Enter a <a href="https://jmespath.org" target="_blank" rel="noopener noreferrer">JMESPath</a> query \n  to filter, sort, or transform the JSON data.\n To learn JMESPath, go to <a href="https://jmespath.org/tutorial.html" target="_blank" rel="noopener noreferrer">the interactive tutorial</a>.\n</p>\n',createQuery:function(e,t){var n=t.sort,r=t.filter,o=t.projection,i="";if(r&&r.path&&r.relation&&r.value){var a=Ws(e,["0"].concat(r.path)),s=rM(r.value),c="string"==typeof a&&null!=s?'"'.concat(r.value,'"'):s;i+="[? "+rte(r.path)+" "+r.relation+" `"+c+"`]"}else i+=Array.isArray(e)?"[*]":"@";n&&n.path&&n.direction&&("desc"===n.direction?i+=" | reverse(sort_by(@, &"+rte(n.path)+"))":i+=" | sort_by(@, &"+rte(n.path)+")");if(o&&o.paths)if("]"!==i[i.length-1]&&(i+=" | [*]"),1===o.paths.length){var u=o.paths[0];i+=0===u.length?"":"."+rte(u)}else o.paths.length>1&&(i+=".{"+o.paths.map((function(e){return ote(e[e.length-1])+": "+rte(e)})).join(", ")+"}");return i},executeQuery:function(e,t,n){var r=oO(n,JSON)?e:function(e){var t=n.stringify(e);return void 0!==t?JSON.parse(t):void 0}(e);return tte.search(r,t)}};function rte(e){if(0===e.length)return"@";var t=e.map((function(e){return"number"==typeof e?"["+e+"]":"."+ote(String(e))})).join("");return"."===t[0]?t.slice(1):t}function ote(e){return e.match(/^[A-Za-z\d_$]+$/)?e:JSON.stringify(e)}
/*!
 * vanilla-picker v2.12.3
 * https://vanilla-picker.js.org
 *
 * Copyright 2017-2024 Andreas Borgen (https://github.com/Sphinxxxx), Adam Brooks (https://github.com/dissimulate)
 * Released under the ISC license.
 */var ite=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},ate=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),ste=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};String.prototype.startsWith=String.prototype.startsWith||function(e){return 0===this.indexOf(e)},String.prototype.padStart=String.prototype.padStart||function(e,t){for(var n=this;n.length<e;)n=t+n;return n};var cte={cb:"0f8ff",tqw:"aebd7",q:"-ffff",qmrn:"7fffd4",zr:"0ffff",bg:"5f5dc",bsq:"e4c4",bck:"---",nch:"ebcd",b:"--ff",bvt:"8a2be2",brwn:"a52a2a",brw:"deb887",ctb:"5f9ea0",hrt:"7fff-",chcT:"d2691e",cr:"7f50",rnw:"6495ed",crns:"8dc",crms:"dc143c",cn:"-ffff",Db:"--8b",Dcn:"-8b8b",Dgnr:"b8860b",Dgr:"a9a9a9",Dgrn:"-64-",Dkhk:"bdb76b",Dmgn:"8b-8b",Dvgr:"556b2f",Drng:"8c-",Drch:"9932cc",Dr:"8b--",Dsmn:"e9967a",Dsgr:"8fbc8f",DsTb:"483d8b",DsTg:"2f4f4f",Dtrq:"-ced1",Dvt:"94-d3",ppnk:"1493",pskb:"-bfff",mgr:"696969",grb:"1e90ff",rbrc:"b22222",rwht:"af0",stg:"228b22",chs:"-ff",gnsb:"dcdcdc",st:"8f8ff",g:"d7-",gnr:"daa520",gr:"808080",grn:"-8-0",grnw:"adff2f",hnw:"0fff0",htpn:"69b4",nnr:"cd5c5c",ng:"4b-82",vr:"0",khk:"0e68c",vnr:"e6e6fa",nrb:"0f5",wngr:"7cfc-",mnch:"acd",Lb:"add8e6",Lcr:"08080",Lcn:"e0ffff",Lgnr:"afad2",Lgr:"d3d3d3",Lgrn:"90ee90",Lpnk:"b6c1",Lsmn:"a07a",Lsgr:"20b2aa",Lskb:"87cefa",LsTg:"778899",Lstb:"b0c4de",Lw:"e0",m:"-ff-",mgrn:"32cd32",nn:"af0e6",mgnt:"-ff",mrn:"8--0",mqm:"66cdaa",mmb:"--cd",mmrc:"ba55d3",mmpr:"9370db",msg:"3cb371",mmsT:"7b68ee","":"-fa9a",mtr:"48d1cc",mmvt:"c71585",mnLb:"191970",ntc:"5fffa",mstr:"e4e1",mccs:"e4b5",vjw:"dead",nv:"--80",c:"df5e6",v:"808-0",vrb:"6b8e23",rng:"a5-",rngr:"45-",rch:"da70d6",pgnr:"eee8aa",pgrn:"98fb98",ptrq:"afeeee",pvtr:"db7093",ppwh:"efd5",pchp:"dab9",pr:"cd853f",pnk:"c0cb",pm:"dda0dd",pwrb:"b0e0e6",prp:"8-080",cc:"663399",r:"--",sbr:"bc8f8f",rb:"4169e1",sbrw:"8b4513",smn:"a8072",nbr:"4a460",sgrn:"2e8b57",ssh:"5ee",snn:"a0522d",svr:"c0c0c0",skb:"87ceeb",sTb:"6a5acd",sTgr:"708090",snw:"afa",n:"-ff7f",stb:"4682b4",tn:"d2b48c",t:"-8080",thst:"d8bfd8",tmT:"6347",trqs:"40e0d0",vt:"ee82ee",whT:"5deb3",wht:"",hts:"5f5f5",w:"-",wgrn:"9acd32"};function ute(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return(t>0?e.toFixed(t).replace(/0+$/,"").replace(/\.$/,""):e.toString())||"0"}var lte=function(){function e(t,n,r,o){ite(this,e);var i=this;if(void 0===t);else if(Array.isArray(t))this.rgba=t;else if(void 0===r){var a=t&&""+t;a&&function(t){if(t.startsWith("hsl")){var n=t.match(/([\-\d\.e]+)/g).map(Number),r=ste(n,4),o=r[0],a=r[1],s=r[2],c=r[3];void 0===c&&(c=1),o/=360,a/=100,s/=100,i.hsla=[o,a,s,c]}else if(t.startsWith("rgb")){var u=t.match(/([\-\d\.e]+)/g).map(Number),l=ste(u,4),f=l[0],d=l[1],h=l[2],v=l[3];void 0===v&&(v=1),i.rgba=[f,d,h,v]}else t.startsWith("#")?i.rgba=e.hexToRgb(t):i.rgba=e.nameToRgb(t)||e.hexToRgb(t)}(a.toLowerCase())}else this.rgba=[t,n,r,void 0===o?1:o]}return ate(e,[{key:"printRGB",value:function(e){var t=(e?this.rgba:this.rgba.slice(0,3)).map((function(e,t){return ute(e,3===t?3:0)}));return e?"rgba("+t+")":"rgb("+t+")"}},{key:"printHSL",value:function(e){var t=[360,100,100,1],n=["","%","%",""],r=(e?this.hsla:this.hsla.slice(0,3)).map((function(e,r){return ute(e*t[r],3===r?3:1)+n[r]}));return e?"hsla("+r+")":"hsl("+r+")"}},{key:"printHex",value:function(e){var t=this.hex;return e?t:t.substring(0,7)}},{key:"rgba",get:function(){if(this._rgba)return this._rgba;if(!this._hsla)throw new Error("No color is set");return this._rgba=e.hslToRgb(this._hsla)},set:function(e){3===e.length&&(e[3]=1),this._rgba=e,this._hsla=null}},{key:"rgbString",get:function(){return this.printRGB()}},{key:"rgbaString",get:function(){return this.printRGB(!0)}},{key:"hsla",get:function(){if(this._hsla)return this._hsla;if(!this._rgba)throw new Error("No color is set");return this._hsla=e.rgbToHsl(this._rgba)},set:function(e){3===e.length&&(e[3]=1),this._hsla=e,this._rgba=null}},{key:"hslString",get:function(){return this.printHSL()}},{key:"hslaString",get:function(){return this.printHSL(!0)}},{key:"hex",get:function(){var e=this.rgba.map((function(e,t){return t<3?e.toString(16):Math.round(255*e).toString(16)}));return"#"+e.map((function(e){return e.padStart(2,"0")})).join("")},set:function(t){this.rgba=e.hexToRgb(t)}}],[{key:"hexToRgb",value:function(e){var t=(e.startsWith("#")?e.slice(1):e).replace(/^(\w{3})$/,"$1F").replace(/^(\w)(\w)(\w)(\w)$/,"$1$1$2$2$3$3$4$4").replace(/^(\w{6})$/,"$1FF");if(!t.match(/^([0-9a-fA-F]{8})$/))throw new Error("Unknown hex color; "+e);var n=t.match(/^(\w\w)(\w\w)(\w\w)(\w\w)$/).slice(1).map((function(e){return parseInt(e,16)}));return n[3]=n[3]/255,n}},{key:"nameToRgb",value:function(t){var n=t.toLowerCase().replace("at","T").replace(/[aeiouyldf]/g,"").replace("ght","L").replace("rk","D").slice(-5,4),r=cte[n];return void 0===r?r:e.hexToRgb(r.replace(/\-/g,"00").padStart(6,"f"))}},{key:"rgbToHsl",value:function(e){var t=ste(e,4),n=t[0],r=t[1],o=t[2],i=t[3];n/=255,r/=255,o/=255;var a=Math.max(n,r,o),s=Math.min(n,r,o),c=void 0,u=void 0,l=(a+s)/2;if(a===s)c=u=0;else{var f=a-s;switch(u=l>.5?f/(2-a-s):f/(a+s),a){case n:c=(r-o)/f+(r<o?6:0);break;case r:c=(o-n)/f+2;break;case o:c=(n-r)/f+4}c/=6}return[c,u,l,i]}},{key:"hslToRgb",value:function(e){var t=ste(e,4),n=t[0],r=t[1],o=t[2],i=t[3],a=void 0,s=void 0,c=void 0;if(0===r)a=s=c=o;else{var u=function(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e},l=o<.5?o*(1+r):o+r-o*r,f=2*o-l;a=u(f,l,n+1/3),s=u(f,l,n),c=u(f,l,n-1/3)}var d=[255*a,255*s,255*c].map(Math.round);return d[3]=i,d}}]),e}(),fte=function(){function e(){ite(this,e),this._events=[]}return ate(e,[{key:"add",value:function(e,t,n){e.addEventListener(t,n,!1),this._events.push({target:e,type:t,handler:n})}},{key:"remove",value:function(t,n,r){this._events=this._events.filter((function(o){var i=!0;return t&&t!==o.target&&(i=!1),n&&n!==o.type&&(i=!1),r&&r!==o.handler&&(i=!1),i&&e._doRemove(o.target,o.type,o.handler),!i}))}},{key:"destroy",value:function(){this._events.forEach((function(t){return e._doRemove(t.target,t.type,t.handler)})),this._events=[]}}],[{key:"_doRemove",value:function(e,t,n){e.removeEventListener(t,n,!1)}}]),e}();function dte(e,t,n){var r=!1;function o(e,t,n){return Math.max(t,Math.min(e,n))}function i(e,i,a){if(a&&(r=!0),r){e.preventDefault();var s=t.getBoundingClientRect(),c=s.width,u=s.height,l=i.clientX,f=i.clientY,d=o(l-s.left,0,c),h=o(f-s.top,0,u);n(d/c,h/u)}}function a(e,t){1===(void 0===e.buttons?e.which:e.buttons)?i(e,e,t):r=!1}function s(e,t){1===e.touches.length?i(e,e.touches[0],t):r=!1}e.add(t,"mousedown",(function(e){a(e,!0)})),e.add(t,"touchstart",(function(e){s(e,!0)})),e.add(window,"mousemove",a),e.add(t,"touchmove",s),e.add(window,"mouseup",(function(e){r=!1})),e.add(t,"touchend",(function(e){r=!1})),e.add(t,"touchcancel",(function(e){r=!1}))}var hte="keydown",vte="mousedown",pte="focusin";function mte(e,t){return(t||document).querySelector(e)}function gte(e){e.preventDefault(),e.stopPropagation()}function yte(e,t,n,r,o){e.add(t,hte,(function(e){n.indexOf(e.key)>=0&&(o&&gte(e),r(e))}))}var bte=function(){function e(t){ite(this,e),this.settings={popup:"right",layout:"default",alpha:!0,editor:!0,editorFormat:"hex",cancelButton:!1,defaultColor:"#0cf"},this._events=new fte,this.onChange=null,this.onDone=null,this.onOpen=null,this.onClose=null,this.setOptions(t)}return ate(e,[{key:"setOptions",value:function(e){var t=this;if(e){var n=this.settings;if(e instanceof HTMLElement)n.parent=e;else{n.parent&&e.parent&&n.parent!==e.parent&&(this._events.remove(n.parent),this._popupInited=!1),function(e,t,n){for(var r in e)n&&n.indexOf(r)>=0||(t[r]=e[r])}(e,n),e.onChange&&(this.onChange=e.onChange),e.onDone&&(this.onDone=e.onDone),e.onOpen&&(this.onOpen=e.onOpen),e.onClose&&(this.onClose=e.onClose);var r=e.color||e.colour;r&&this._setColor(r)}var o=n.parent;if(o&&n.popup&&!this._popupInited){var i=function(e){return t.openHandler(e)};this._events.add(o,"click",i),yte(this._events,o,[" ","Spacebar","Enter"],i),this._popupInited=!0}else e.parent&&!n.popup&&this.show()}}},{key:"openHandler",value:function(e){if(this.show()){e&&e.preventDefault(),this.settings.parent.style.pointerEvents="none";var t=e&&e.type===hte?this._domEdit:this.domElement;setTimeout((function(){return t.focus()}),100),this.onOpen&&this.onOpen(this.colour)}}},{key:"closeHandler",value:function(e){var t=e&&e.type,n=!1;if(e)if(t===vte||t===pte){var r=(this.__containedEvent||0)+100;e.timeStamp>r&&(n=!0)}else gte(e),n=!0;else n=!0;n&&this.hide()&&(this.settings.parent.style.pointerEvents="",t!==vte&&this.settings.parent.focus(),this.onClose&&this.onClose(this.colour))}},{key:"movePopup",value:function(e,t){this.closeHandler(),this.setOptions(e),t&&this.openHandler()}},{key:"setColor",value:function(e,t){this._setColor(e,{silent:t})}},{key:"_setColor",value:function(e,t){if("string"==typeof e&&(e=e.trim()),e){t=t||{};var n=void 0;try{n=new lte(e)}catch(e){if(t.failSilently)return;throw e}if(!this.settings.alpha){var r=n.hsla;r[3]=1,n.hsla=r}this.colour=this.color=n,this._setHSLA(null,null,null,null,t)}}},{key:"setColour",value:function(e,t){this.setColor(e,t)}},{key:"show",value:function(){if(!this.settings.parent)return!1;if(this.domElement){var e=this._toggleDOM(!0);return this._setPosition(),e}var t,n,r=this.settings.template||'<div class="picker_wrapper" tabindex="-1"><div class="picker_arrow"></div><div class="picker_hue picker_slider"><div class="picker_selector"></div></div><div class="picker_sl"><div class="picker_selector"></div></div><div class="picker_alpha picker_slider"><div class="picker_selector"></div></div><div class="picker_editor"><input aria-label="Type a color name or hex value"/></div><div class="picker_sample"></div><div class="picker_done"><button>Ok</button></div><div class="picker_cancel"><button>Cancel</button></div></div>',o=(t=r,(n=document.createElement("div")).innerHTML=t,n.firstElementChild);return this.domElement=o,this._domH=mte(".picker_hue",o),this._domSL=mte(".picker_sl",o),this._domA=mte(".picker_alpha",o),this._domEdit=mte(".picker_editor input",o),this._domSample=mte(".picker_sample",o),this._domOkay=mte(".picker_done button",o),this._domCancel=mte(".picker_cancel button",o),o.classList.add("layout_"+this.settings.layout),this.settings.alpha||o.classList.add("no_alpha"),this.settings.editor||o.classList.add("no_editor"),this.settings.cancelButton||o.classList.add("no_cancel"),this._ifPopup((function(){return o.classList.add("popup")})),this._setPosition(),this.colour?this._updateUI():this._setColor(this.settings.defaultColor),this._bindEvents(),!0}},{key:"hide",value:function(){return this._toggleDOM(!1)}},{key:"destroy",value:function(){this._events.destroy(),this.domElement&&this.settings.parent.removeChild(this.domElement)}},{key:"_bindEvents",value:function(){var e=this,t=this,n=this.domElement,r=this._events;function o(e,t,n){r.add(e,t,n)}o(n,"click",(function(e){return e.preventDefault()})),dte(r,this._domH,(function(e,n){return t._setHSLA(e)})),dte(r,this._domSL,(function(e,n){return t._setHSLA(null,e,1-n)})),this.settings.alpha&&dte(r,this._domA,(function(e,n){return t._setHSLA(null,null,null,1-n)}));var i=this._domEdit;o(i,"input",(function(e){t._setColor(this.value,{fromEditor:!0,failSilently:!0})})),o(i,"focus",(function(e){var t=this;t.selectionStart===t.selectionEnd&&t.select()})),this._ifPopup((function(){var t=function(t){return e.closeHandler(t)};o(window,vte,t),o(window,pte,t),yte(r,n,["Esc","Escape"],t);var i=function(t){e.__containedEvent=t.timeStamp};o(n,vte,i),o(n,pte,i),o(e._domCancel,"click",t)}));var a=function(t){e._ifPopup((function(){return e.closeHandler(t)})),e.onDone&&e.onDone(e.colour)};o(this._domOkay,"click",a),yte(r,n,["Enter"],a)}},{key:"_setPosition",value:function(){var e=this.settings.parent,t=this.domElement;e!==t.parentNode&&e.appendChild(t),this._ifPopup((function(n){"static"===getComputedStyle(e).position&&(e.style.position="relative");var r=!0===n?"popup_right":"popup_"+n;["popup_top","popup_bottom","popup_left","popup_right"].forEach((function(e){e===r?t.classList.add(e):t.classList.remove(e)})),t.classList.add(r)}))}},{key:"_setHSLA",value:function(e,t,n,r,o){o=o||{};var i=this.colour,a=i.hsla;[e,t,n,r].forEach((function(e,t){(e||0===e)&&(a[t]=e)})),i.hsla=a,this._updateUI(o),this.onChange&&!o.silent&&this.onChange(i)}},{key:"_updateUI",value:function(e){if(this.domElement){e=e||{};var t=this.colour,n=t.hsla,r="hsl("+360*n[0]+", 100%, 50%)",o=t.hslString,i=t.hslaString,a=this._domH,s=this._domSL,c=this._domA,u=mte(".picker_selector",a),l=mte(".picker_selector",s),f=mte(".picker_selector",c);y(0,u,n[0]),this._domSL.style.backgroundColor=this._domH.style.color=r,y(0,l,n[1]),b(0,l,1-n[2]),s.style.color=o,b(0,f,1-n[3]);var d=o,h=d.replace("hsl","hsla").replace(")",", 0)"),v="linear-gradient("+[d,h]+")";if(this._domA.style.background=v+", linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0 / 2em 2em,\n                   linear-gradient(45deg, lightgrey 25%,       white 25%,       white 75%, lightgrey 75%) 1em 1em / 2em 2em",!e.fromEditor){var p=this.settings.editorFormat,m=this.settings.alpha,g=void 0;switch(p){case"rgb":g=t.printRGB(m);break;case"hsl":g=t.printHSL(m);break;default:g=t.printHex(m)}this._domEdit.value=g}this._domSample.style.color=i}function y(e,t,n){t.style.left=100*n+"%"}function b(e,t,n){t.style.top=100*n+"%"}}},{key:"_ifPopup",value:function(e,t){this.settings.parent&&this.settings.popup?e&&e(this.settings.popup):t&&t()}},{key:"_toggleDOM",value:function(e){var t=this.domElement;if(!t)return!1;var n=e?"":"none",r=t.style.display!==n;return r&&(t.style.display=n),r}}]),e}(),wte=document.createElement("style");wte.textContent='.picker_wrapper.no_alpha .picker_alpha{display:none}.picker_wrapper.no_editor .picker_editor{position:absolute;z-index:-1;opacity:0}.picker_wrapper.no_cancel .picker_cancel{display:none}.layout_default.picker_wrapper{display:flex;flex-flow:row wrap;justify-content:space-between;align-items:stretch;font-size:10px;width:25em;padding:.5em}.layout_default.picker_wrapper input,.layout_default.picker_wrapper button{font-size:1rem}.layout_default.picker_wrapper>*{margin:.5em}.layout_default.picker_wrapper::before{content:"";display:block;width:100%;height:0;order:1}.layout_default .picker_slider,.layout_default .picker_selector{padding:1em}.layout_default .picker_hue{width:100%}.layout_default .picker_sl{flex:1 1 auto}.layout_default .picker_sl::before{content:"";display:block;padding-bottom:100%}.layout_default .picker_editor{order:1;width:6.5rem}.layout_default .picker_editor input{width:100%;height:100%}.layout_default .picker_sample{order:1;flex:1 1 auto}.layout_default .picker_done,.layout_default .picker_cancel{order:1}.picker_wrapper{box-sizing:border-box;background:#f2f2f2;box-shadow:0 0 0 1px silver;cursor:default;font-family:sans-serif;color:#444;pointer-events:auto}.picker_wrapper:focus{outline:none}.picker_wrapper button,.picker_wrapper input{box-sizing:border-box;border:none;box-shadow:0 0 0 1px silver;outline:none}.picker_wrapper button:focus,.picker_wrapper button:active,.picker_wrapper input:focus,.picker_wrapper input:active{box-shadow:0 0 2px 1px #1e90ff}.picker_wrapper button{padding:.4em .6em;cursor:pointer;background-color:#f5f5f5;background-image:linear-gradient(0deg, gainsboro, transparent)}.picker_wrapper button:active{background-image:linear-gradient(0deg, transparent, gainsboro)}.picker_wrapper button:hover{background-color:#fff}.picker_selector{position:absolute;z-index:1;display:block;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);border:2px solid #fff;border-radius:100%;box-shadow:0 0 3px 1px #67b9ff;background:currentColor;cursor:pointer}.picker_slider .picker_selector{border-radius:2px}.picker_hue{position:relative;background-image:linear-gradient(90deg, red, yellow, lime, cyan, blue, magenta, red);box-shadow:0 0 0 1px silver}.picker_sl{position:relative;box-shadow:0 0 0 1px silver;background-image:linear-gradient(180deg, white, rgba(255, 255, 255, 0) 50%),linear-gradient(0deg, black, rgba(0, 0, 0, 0) 50%),linear-gradient(90deg, #808080, rgba(128, 128, 128, 0))}.picker_alpha,.picker_sample{position:relative;background:linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0/2em 2em,linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em/2em 2em;box-shadow:0 0 0 1px silver}.picker_alpha .picker_selector,.picker_sample .picker_selector{background:none}.picker_editor input{font-family:monospace;padding:.2em .4em}.picker_sample::before{content:"";position:absolute;display:block;width:100%;height:100%;background:currentColor}.picker_arrow{position:absolute;z-index:-1}.picker_wrapper.popup{position:absolute;z-index:2;margin:1.5em}.picker_wrapper.popup,.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{background:#f2f2f2;box-shadow:0 0 10px 1px rgba(0,0,0,.4)}.picker_wrapper.popup .picker_arrow{width:3em;height:3em;margin:0}.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{content:"";display:block;position:absolute;top:0;left:0;z-index:-99}.picker_wrapper.popup .picker_arrow::before{width:100%;height:100%;-webkit-transform:skew(45deg);transform:skew(45deg);-webkit-transform-origin:0 100%;transform-origin:0 100%}.picker_wrapper.popup .picker_arrow::after{width:150%;height:150%;box-shadow:none}.popup.popup_top{bottom:100%;left:0}.popup.popup_top .picker_arrow{bottom:0;left:0;-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.popup.popup_bottom{top:100%;left:0}.popup.popup_bottom .picker_arrow{top:0;left:0;-webkit-transform:rotate(90deg) scale(1, -1);transform:rotate(90deg) scale(1, -1)}.popup.popup_left{top:0;right:100%}.popup.popup_left .picker_arrow{top:0;right:0;-webkit-transform:scale(-1, 1);transform:scale(-1, 1)}.popup.popup_right{top:0;left:100%}.popup.popup_right .picker_arrow{top:0;left:0}',document.documentElement.firstElementChild.appendChild(wte),bte.StyleElement=wte;var xte=Object.freeze({__proto__:null,default:bte});export{OM as BooleanToggle,Ya as CaretType,IM as ColorPicker,oE as EditableValue,G6 as EnumValue,F6 as JSONEditor,Ga as Mode,qE as ReadonlyValue,Za as SearchField,Qa as SelectionType,es as SortDirection,QE as TimestampTag,ts as UpdateSelectionAfterChange,Xa as ValidationSeverity,DA as createAfterSelection,Yee as createAjvValidator,IA as createInsideSelection,RA as createKeySelection,zA as createMultiSelection,NA as createValueSelection,eO as estimateSerializedSize,hA as isAfterSelection,J_ as isContent,kI as isContentParseError,jI as isContentValidationErrors,xI as isContextMenuColumn,wI as isContextMenuRow,LA as isEditingSelection,oO as isEqualParser,vA as isInsideSelection,G_ as isJSONContent,pA as isKeySelection,Z_ as isLargeContent,yI as isMenuButton,bI as isMenuDropDownButton,gI as isMenuLabel,mI as isMenuSeparator,pI as isMenuSpace,gA as isMultiSelection,CI as isNestedValidationError,_I as isSvelteActionRenderer,$I as isSvelteComponentRenderer,K_ as isTextContent,SI as isValidationError,mA as isValueSelection,oM as javascriptQueryLanguage,nte as jmespathQueryLanguage,Zee as lodashQueryLanguage,lI as onEscape,GO as parseJSONPath,X6 as renderJSONSchemaEnum,YE as renderValue,_4 as resizeObserver,KO as stringifyJSONPath,Y_ as toJSONContent,Q_ as toTextContent};
//# sourceMappingURL=standalone.js.map
