nuxt-og-image 2.0.28 → 2.1.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/200.html +4 -4
- package/dist/client/404.html +4 -4
- package/dist/client/_nuxt/{IconCSS.d3e12840.js → IconCSS.5509e16a.js} +1 -1
- package/dist/client/_nuxt/{ImageLoader.ad92439f.js → ImageLoader.9e9d6e15.js} +1 -1
- package/dist/client/_nuxt/entry.ed5c26c6.js +135 -0
- package/dist/client/_nuxt/{error-404.95b4b668.js → error-404.3dee6d7e.js} +1 -1
- package/dist/client/_nuxt/{error-500.d22f8b54.js → error-500.8daad474.js} +1 -1
- package/dist/client/_nuxt/{index.f2702f88.js → index.6fdad60d.js} +1 -1
- package/dist/client/_nuxt/{options.ddf310be.js → options.7f107e61.js} +1 -1
- package/dist/client/_nuxt/{png.51e9bf00.js → png.2a205b6d.js} +1 -1
- package/dist/client/_nuxt/{shiki.721a43ba.js → shiki.aa1b8621.js} +1 -1
- package/dist/client/_nuxt/{svg.f31a00cf.js → svg.3f435c63.js} +1 -1
- package/dist/client/_nuxt/{vnodes.89b4b57e.js → vnodes.63fa6e05.js} +1 -1
- package/dist/client/index.html +4 -4
- package/dist/client/options/index.html +4 -4
- package/dist/client/png/index.html +4 -4
- package/dist/client/svg/index.html +4 -4
- package/dist/client/vnodes/index.html +4 -4
- package/dist/module.d.mts +1 -1
- package/dist/module.d.ts +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +9 -8
- package/dist/runtime/nitro/utils-pure.mjs +1 -1
- package/package.json +10 -10
- package/dist/client/_nuxt/entry.00dd4948.js +0 -136
- /package/dist/runtime/nitro/providers/css-inline/{node.d.ts → css-inline.d.ts} +0 -0
- /package/dist/runtime/nitro/providers/css-inline/{node.mjs → css-inline.mjs} +0 -0
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
function nk(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return t?o=>!!n[o.toLowerCase()]:o=>!!n[o]}const wr={},Hl=[],ba=()=>{},EV=()=>!1,OV=/^on[^a-z]/,cp=e=>OV.test(e),rk=e=>e.startsWith("onUpdate:"),to=Object.assign,ok=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},MV=Object.prototype.hasOwnProperty,An=(e,t)=>MV.call(e,t),Pe=Array.isArray,Vl=e=>zf(e)==="[object Map]",Lf=e=>zf(e)==="[object Set]",Y_=e=>zf(e)==="[object Date]",AV=e=>zf(e)==="[object RegExp]",Ge=e=>typeof e=="function",qr=e=>typeof e=="string",vh=e=>typeof e=="symbol",ir=e=>e!==null&&typeof e=="object",ik=e=>ir(e)&&Ge(e.then)&&Ge(e.catch),c9=Object.prototype.toString,zf=e=>c9.call(e),PV=e=>zf(e).slice(8,-1),u9=e=>zf(e)==="[object Object]",ak=e=>qr(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Vd=nk(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),s0=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},TV=/-(\w)/g,os=s0(e=>e.replace(TV,(t,n)=>n?n.toUpperCase():"")),RV=/\B([A-Z])/g,Bf=s0(e=>e.replace(RV,"-$1").toLowerCase()),c0=s0(e=>e.charAt(0).toUpperCase()+e.slice(1)),x1=s0(e=>e?`on${c0(e)}`:""),mh=(e,t)=>!Object.is(e,t),Wl=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Dm=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Lm=e=>{const t=parseFloat(e);return isNaN(t)?e:t},l9=e=>{const t=qr(e)?Number(e):NaN;return isNaN(t)?e:t};let X_;const hb=()=>X_||(X_=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Rc(e){if(Pe(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=qr(r)?LV(r):Rc(r);if(o)for(const i in o)t[i]=o[i]}return t}else{if(qr(e))return e;if(ir(e))return e}}const IV=/;(?![^(]*\))/g,NV=/:([^]+)/,DV=/\/\*[^]*?\*\//g;function LV(e){const t={};return e.replace(DV,"").split(IV).forEach(n=>{if(n){const r=n.split(NV);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Qr(e){let t="";if(qr(e))t=e;else if(Pe(e))for(let n=0;n<e.length;n++){const r=Qr(e[n]);r&&(t+=r+" ")}else if(ir(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function f9(e){if(!e)return null;let{class:t,style:n}=e;return t&&!qr(t)&&(e.class=Qr(t)),n&&(e.style=Rc(n)),e}const zV="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",BV=nk(zV);function d9(e){return!!e||e===""}function FV(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Hu(e[r],t[r]);return n}function Hu(e,t){if(e===t)return!0;let n=Y_(e),r=Y_(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=vh(e),r=vh(t),n||r)return e===t;if(n=Pe(e),r=Pe(t),n||r)return n&&r?FV(e,t):!1;if(n=ir(e),r=ir(t),n||r){if(!n||!r)return!1;const o=Object.keys(e).length,i=Object.keys(t).length;if(o!==i)return!1;for(const a in e){const s=e.hasOwnProperty(a),c=t.hasOwnProperty(a);if(s&&!c||!s&&c||!Hu(e[a],t[a]))return!1}}return String(e)===String(t)}function sk(e,t){return e.findIndex(n=>Hu(n,t))}const sm=e=>qr(e)?e:e==null?"":Pe(e)||ir(e)&&(e.toString===c9||!Ge(e.toString))?JSON.stringify(e,h9,2):String(e),h9=(e,t)=>t&&t.__v_isRef?h9(e,t.value):Vl(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o])=>(n[`${r} =>`]=o,n),{})}:Lf(t)?{[`Set(${t.size})`]:[...t.values()]}:ir(t)&&!Pe(t)&&!u9(t)?String(t):t;let ia;class qV{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=ia,!t&&ia&&(this.index=(ia.scopes||(ia.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=ia;try{return ia=this,t()}finally{ia=n}}}on(){ia=this}off(){ia=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0,this._active=!1}}}function HV(e,t=ia){t&&t.active&&t.effects.push(e)}function VV(){return ia}const ck=e=>{const t=new Set(e);return t.w=0,t.n=0,t},p9=e=>(e.w&Ic)>0,v9=e=>(e.n&Ic)>0,WV=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Ic},UV=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const o=t[r];p9(o)&&!v9(o)?o.delete(e):t[n++]=o,o.w&=~Ic,o.n&=~Ic}t.length=n}},zm=new WeakMap;let Ad=0,Ic=1;const pb=30;let ua;const Nu=Symbol(""),vb=Symbol("");class uk{constructor(t,n=null,r){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,HV(this,r)}run(){if(!this.active)return this.fn();let t=ua,n=_c;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=ua,ua=this,_c=!0,Ic=1<<++Ad,Ad<=pb?WV(this):Z_(this),this.fn()}finally{Ad<=pb&&UV(this),Ic=1<<--Ad,ua=this.parent,_c=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){ua===this?this.deferStop=!0:this.active&&(Z_(this),this.onStop&&this.onStop(),this.active=!1)}}function Z_(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let _c=!0;const m9=[];function Ff(){m9.push(_c),_c=!1}function qf(){const e=m9.pop();_c=e===void 0?!0:e}function ri(e,t,n){if(_c&&ua){let r=zm.get(e);r||zm.set(e,r=new Map);let o=r.get(n);o||r.set(n,o=ck()),g9(o)}}function g9(e,t){let n=!1;Ad<=pb?v9(e)||(e.n|=Ic,n=!p9(e)):n=!e.has(ua),n&&(e.add(ua),ua.deps.push(e))}function zs(e,t,n,r,o,i){const a=zm.get(e);if(!a)return;let s=[];if(t==="clear")s=[...a.values()];else if(n==="length"&&Pe(e)){const c=Number(r);a.forEach((u,l)=>{(l==="length"||l>=c)&&s.push(u)})}else switch(n!==void 0&&s.push(a.get(n)),t){case"add":Pe(e)?ak(n)&&s.push(a.get("length")):(s.push(a.get(Nu)),Vl(e)&&s.push(a.get(vb)));break;case"delete":Pe(e)||(s.push(a.get(Nu)),Vl(e)&&s.push(a.get(vb)));break;case"set":Vl(e)&&s.push(a.get(Nu));break}if(s.length===1)s[0]&&mb(s[0]);else{const c=[];for(const u of s)u&&c.push(...u);mb(ck(c))}}function mb(e,t){const n=Pe(e)?e:[...e];for(const r of n)r.computed&&tS(r);for(const r of n)r.computed||tS(r)}function tS(e,t){(e!==ua||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function KV(e,t){var n;return(n=zm.get(e))==null?void 0:n.get(t)}const JV=nk("__proto__,__v_isRef,__isVue"),y9=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(vh)),GV=lk(),QV=lk(!1,!0),YV=lk(!0),eS=XV();function XV(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=Pn(this);for(let i=0,a=this.length;i<a;i++)ri(r,"get",i+"");const o=r[t](...n);return o===-1||o===!1?r[t](...n.map(Pn)):o}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Ff();const r=Pn(this)[t].apply(this,n);return qf(),r}}),e}function ZV(e){const t=Pn(this);return ri(t,"has",e),t.hasOwnProperty(e)}function lk(e=!1,t=!1){return function(r,o,i){if(o==="__v_isReactive")return!e;if(o==="__v_isReadonly")return e;if(o==="__v_isShallow")return t;if(o==="__v_raw"&&i===(e?t?vW:j9:t?k9:x9).get(r))return r;const a=Pe(r);if(!e){if(a&&An(eS,o))return Reflect.get(eS,o,i);if(o==="hasOwnProperty")return ZV}const s=Reflect.get(r,o,i);return(vh(o)?y9.has(o):JV(o))||(e||ri(r,"get",o),t)?s:Zr(s)?a&&ak(o)?s:s.value:ir(s)?e?_9(s):is(s):s}}const tW=b9(),eW=b9(!0);function b9(e=!1){return function(n,r,o,i){let a=n[r];if(Vu(a)&&Zr(a)&&!Zr(o))return!1;if(!e&&(!Bm(o)&&!Vu(o)&&(a=Pn(a),o=Pn(o)),!Pe(n)&&Zr(a)&&!Zr(o)))return a.value=o,!0;const s=Pe(n)&&ak(r)?Number(r)<n.length:An(n,r),c=Reflect.set(n,r,o,i);return n===Pn(i)&&(s?mh(o,a)&&zs(n,"set",r,o):zs(n,"add",r,o)),c}}function nW(e,t){const n=An(e,t);e[t];const r=Reflect.deleteProperty(e,t);return r&&n&&zs(e,"delete",t,void 0),r}function rW(e,t){const n=Reflect.has(e,t);return(!vh(t)||!y9.has(t))&&ri(e,"has",t),n}function oW(e){return ri(e,"iterate",Pe(e)?"length":Nu),Reflect.ownKeys(e)}const w9={get:GV,set:tW,deleteProperty:nW,has:rW,ownKeys:oW},iW={get:YV,set(e,t){return!0},deleteProperty(e,t){return!0}},aW=to({},w9,{get:QV,set:eW}),fk=e=>e,u0=e=>Reflect.getPrototypeOf(e);function Bp(e,t,n=!1,r=!1){e=e.__v_raw;const o=Pn(e),i=Pn(t);n||(t!==i&&ri(o,"get",t),ri(o,"get",i));const{has:a}=u0(o),s=r?fk:n?pk:gh;if(a.call(o,t))return s(e.get(t));if(a.call(o,i))return s(e.get(i));e!==o&&e.get(t)}function Fp(e,t=!1){const n=this.__v_raw,r=Pn(n),o=Pn(e);return t||(e!==o&&ri(r,"has",e),ri(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function qp(e,t=!1){return e=e.__v_raw,!t&&ri(Pn(e),"iterate",Nu),Reflect.get(e,"size",e)}function nS(e){e=Pn(e);const t=Pn(this);return u0(t).has.call(t,e)||(t.add(e),zs(t,"add",e,e)),this}function rS(e,t){t=Pn(t);const n=Pn(this),{has:r,get:o}=u0(n);let i=r.call(n,e);i||(e=Pn(e),i=r.call(n,e));const a=o.call(n,e);return n.set(e,t),i?mh(t,a)&&zs(n,"set",e,t):zs(n,"add",e,t),this}function oS(e){const t=Pn(this),{has:n,get:r}=u0(t);let o=n.call(t,e);o||(e=Pn(e),o=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return o&&zs(t,"delete",e,void 0),i}function iS(){const e=Pn(this),t=e.size!==0,n=e.clear();return t&&zs(e,"clear",void 0,void 0),n}function Hp(e,t){return function(r,o){const i=this,a=i.__v_raw,s=Pn(a),c=t?fk:e?pk:gh;return!e&&ri(s,"iterate",Nu),a.forEach((u,l)=>r.call(o,c(u),c(l),i))}}function Vp(e,t,n){return function(...r){const o=this.__v_raw,i=Pn(o),a=Vl(i),s=e==="entries"||e===Symbol.iterator&&a,c=e==="keys"&&a,u=o[e](...r),l=n?fk:t?pk:gh;return!t&&ri(i,"iterate",c?vb:Nu),{next(){const{value:f,done:d}=u.next();return d?{value:f,done:d}:{value:s?[l(f[0]),l(f[1])]:l(f),done:d}},[Symbol.iterator](){return this}}}}function nc(e){return function(...t){return e==="delete"?!1:this}}function sW(){const e={get(i){return Bp(this,i)},get size(){return qp(this)},has:Fp,add:nS,set:rS,delete:oS,clear:iS,forEach:Hp(!1,!1)},t={get(i){return Bp(this,i,!1,!0)},get size(){return qp(this)},has:Fp,add:nS,set:rS,delete:oS,clear:iS,forEach:Hp(!1,!0)},n={get(i){return Bp(this,i,!0)},get size(){return qp(this,!0)},has(i){return Fp.call(this,i,!0)},add:nc("add"),set:nc("set"),delete:nc("delete"),clear:nc("clear"),forEach:Hp(!0,!1)},r={get(i){return Bp(this,i,!0,!0)},get size(){return qp(this,!0)},has(i){return Fp.call(this,i,!0)},add:nc("add"),set:nc("set"),delete:nc("delete"),clear:nc("clear"),forEach:Hp(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Vp(i,!1,!1),n[i]=Vp(i,!0,!1),t[i]=Vp(i,!1,!0),r[i]=Vp(i,!0,!0)}),[e,n,t,r]}const[cW,uW,lW,fW]=sW();function dk(e,t){const n=t?e?fW:lW:e?uW:cW;return(r,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(An(n,o)&&o in r?n:r,o,i)}const dW={get:dk(!1,!1)},hW={get:dk(!1,!0)},pW={get:dk(!0,!1)},x9=new WeakMap,k9=new WeakMap,j9=new WeakMap,vW=new WeakMap;function mW(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function gW(e){return e.__v_skip||!Object.isExtensible(e)?0:mW(PV(e))}function is(e){return Vu(e)?e:hk(e,!1,w9,dW,x9)}function up(e){return hk(e,!1,aW,hW,k9)}function _9(e){return hk(e,!0,iW,pW,j9)}function hk(e,t,n,r,o){if(!ir(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=o.get(e);if(i)return i;const a=gW(e);if(a===0)return e;const s=new Proxy(e,a===2?r:n);return o.set(e,s),s}function Ul(e){return Vu(e)?Ul(e.__v_raw):!!(e&&e.__v_isReactive)}function Vu(e){return!!(e&&e.__v_isReadonly)}function Bm(e){return!!(e&&e.__v_isShallow)}function S9(e){return Ul(e)||Vu(e)}function Pn(e){const t=e&&e.__v_raw;return t?Pn(t):e}function $9(e){return Dm(e,"__v_skip",!0),e}const gh=e=>ir(e)?is(e):e,pk=e=>ir(e)?_9(e):e;function C9(e){_c&&ua&&(e=Pn(e),g9(e.dep||(e.dep=ck())))}function vk(e,t){e=Pn(e);const n=e.dep;n&&mb(n)}function Zr(e){return!!(e&&e.__v_isRef===!0)}function Tn(e){return E9(e,!1)}function hf(e){return E9(e,!0)}function E9(e,t){return Zr(e)?e:new yW(e,t)}class yW{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Pn(t),this._value=n?t:gh(t)}get value(){return C9(this),this._value}set value(t){const n=this.__v_isShallow||Bm(t)||Vu(t);t=n?t:Pn(t),mh(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:gh(t),vk(this))}}function bW(e){vk(e)}function Ne(e){return Zr(e)?e.value:e}const wW={get:(e,t,n)=>Ne(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Zr(o)&&!Zr(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function O9(e){return Ul(e)?e:new Proxy(e,wW)}class xW{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return KV(Pn(this._object),this._key)}}class kW{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function mk(e,t,n){return Zr(e)?e:Ge(e)?new kW(e):ir(e)&&arguments.length>1?jW(e,t,n):Tn(e)}function jW(e,t,n){const r=e[t];return Zr(r)?r:new xW(e,t,n)}class _W{constructor(t,n,r,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new uk(t,()=>{this._dirty||(this._dirty=!0,vk(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const t=Pn(this);return C9(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function SW(e,t,n=!1){let r,o;const i=Ge(e);return i?(r=e,o=ba):(r=e.get,o=e.set),new _W(r,o,i||!o,n)}function Sc(e,t,n,r){let o;try{o=r?e(...r):e()}catch(i){Hf(i,t,n)}return o}function Li(e,t,n,r){if(Ge(e)){const i=Sc(e,t,n,r);return i&&ik(i)&&i.catch(a=>{Hf(a,t,n)}),i}const o=[];for(let i=0;i<e.length;i++)o.push(Li(e[i],t,n,r));return o}function Hf(e,t,n,r=!0){const o=t?t.vnode:null;if(t){let i=t.parent;const a=t.proxy,s=n;for(;i;){const u=i.ec;if(u){for(let l=0;l<u.length;l++)if(u[l](e,a,s)===!1)return}i=i.parent}const c=t.appContext.config.errorHandler;if(c){Sc(c,null,10,[e,a,s]);return}}$W(e,n,o,r)}function $W(e,t,n,r=!0){console.error(e)}let yh=!1,gb=!1;const To=[];let Ka=0;const Kl=[];let _s=null,xu=0;const M9=Promise.resolve();let gk=null;function Xc(e){const t=gk||M9;return e?t.then(this?e.bind(this):e):t}function CW(e){let t=Ka+1,n=To.length;for(;t<n;){const r=t+n>>>1;bh(To[r])<e?t=r+1:n=r}return t}function l0(e){(!To.length||!To.includes(e,yh&&e.allowRecurse?Ka+1:Ka))&&(e.id==null?To.push(e):To.splice(CW(e.id),0,e),A9())}function A9(){!yh&&!gb&&(gb=!0,gk=M9.then(T9))}function EW(e){const t=To.indexOf(e);t>Ka&&To.splice(t,1)}function P9(e){Pe(e)?Kl.push(...e):(!_s||!_s.includes(e,e.allowRecurse?xu+1:xu))&&Kl.push(e),A9()}function aS(e,t=yh?Ka+1:0){for(;t<To.length;t++){const n=To[t];n&&n.pre&&(To.splice(t,1),t--,n())}}function Fm(e){if(Kl.length){const t=[...new Set(Kl)];if(Kl.length=0,_s){_s.push(...t);return}for(_s=t,_s.sort((n,r)=>bh(n)-bh(r)),xu=0;xu<_s.length;xu++)_s[xu]();_s=null,xu=0}}const bh=e=>e.id==null?1/0:e.id,OW=(e,t)=>{const n=bh(e)-bh(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function T9(e){gb=!1,yh=!0,To.sort(OW);const t=ba;try{for(Ka=0;Ka<To.length;Ka++){const n=To[Ka];n&&n.active!==!1&&Sc(n,null,14)}}finally{Ka=0,To.length=0,Fm(),yh=!1,gk=null,(To.length||Kl.length)&&T9()}}function MW(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||wr;let o=n;const i=t.startsWith("update:"),a=i&&t.slice(7);if(a&&a in r){const l=`${a==="modelValue"?"model":a}Modifiers`,{number:f,trim:d}=r[l]||wr;d&&(o=n.map(h=>qr(h)?h.trim():h)),f&&(o=n.map(Lm))}let s,c=r[s=x1(t)]||r[s=x1(os(t))];!c&&i&&(c=r[s=x1(Bf(t))]),c&&Li(c,e,6,o);const u=r[s+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,Li(u,e,6,o)}}function R9(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(o!==void 0)return o;const i=e.emits;let a={},s=!1;if(!Ge(e)){const c=u=>{const l=R9(u,t,!0);l&&(s=!0,to(a,l))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!s?(ir(e)&&r.set(e,null),null):(Pe(i)?i.forEach(c=>a[c]=null):to(a,i),ir(e)&&r.set(e,a),a)}function f0(e,t){return!e||!cp(t)?!1:(t=t.slice(2).replace(/Once$/,""),An(e,t[0].toLowerCase()+t.slice(1))||An(e,Bf(t))||An(e,t))}let so=null,d0=null;function qm(e){const t=so;return so=e,d0=e&&e.type.__scopeId||null,t}function e4t(e){d0=e}function n4t(){d0=null}function ao(e,t=so,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&bS(-1);const i=qm(t);let a;try{a=e(...o)}finally{qm(i),r._d&&bS(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function k1(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:i,propsOptions:[a],slots:s,attrs:c,emit:u,render:l,renderCache:f,data:d,setupState:h,ctx:p,inheritAttrs:v}=e;let m,g;const y=qm(e);try{if(n.shapeFlag&4){const w=o||r;m=Ei(l.call(w,w,f,i,h,d,p)),g=c}else{const w=t;m=Ei(w.length>1?w(i,{attrs:c,slots:s,emit:u}):w(i,null)),g=t.props?c:PW(c)}}catch(w){Kd.length=0,Hf(w,e,1),m=rn(Ho)}let b=m;if(g&&v!==!1){const w=Object.keys(g),{shapeFlag:x}=b;w.length&&x&7&&(a&&w.some(rk)&&(g=TW(g,a)),b=Bs(b,g))}return n.dirs&&(b=Bs(b),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&(b.transition=n.transition),m=b,qm(y),m}function AW(e){let t;for(let n=0;n<e.length;n++){const r=e[n];if(gf(r)){if(r.type!==Ho||r.children==="v-if"){if(t)return;t=r}}else return}return t}const PW=e=>{let t;for(const n in e)(n==="class"||n==="style"||cp(n))&&((t||(t={}))[n]=e[n]);return t},TW=(e,t)=>{const n={};for(const r in e)(!rk(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function RW(e,t,n){const{props:r,children:o,component:i}=e,{props:a,children:s,patchFlag:c}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?sS(r,a,u):!!a;if(c&8){const l=t.dynamicProps;for(let f=0;f<l.length;f++){const d=l[f];if(a[d]!==r[d]&&!f0(u,d))return!0}}}else return(o||s)&&(!s||!s.$stable)?!0:r===a?!1:r?a?sS(r,a,u):!0:!!a;return!1}function sS(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;o<r.length;o++){const i=r[o];if(t[i]!==e[i]&&!f0(n,i))return!0}return!1}function yk({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const I9=e=>e.__isSuspense,IW={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,i,a,s,c,u){e==null?NW(t,n,r,o,i,a,s,c,u):DW(e,t,n,r,o,a,s,c,u)},hydrate:LW,create:bk,normalize:zW},N9=IW;function wh(e,t){const n=e.props&&e.props[t];Ge(n)&&n()}function NW(e,t,n,r,o,i,a,s,c){const{p:u,o:{createElement:l}}=c,f=l("div"),d=e.suspense=bk(e,o,r,t,f,n,i,a,s,c);u(null,d.pendingBranch=e.ssContent,f,null,r,d,i,a),d.deps>0?(wh(e,"onPending"),wh(e,"onFallback"),u(null,e.ssFallback,t,n,r,null,i,a),Jl(d,e.ssFallback)):d.resolve(!1,!0)}function DW(e,t,n,r,o,i,a,s,{p:c,um:u,o:{createElement:l}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const d=t.ssContent,h=t.ssFallback,{activeBranch:p,pendingBranch:v,isInFallback:m,isHydrating:g}=f;if(v)f.pendingBranch=d,la(d,v)?(c(v,d,f.hiddenContainer,null,o,f,i,a,s),f.deps<=0?f.resolve():m&&(c(p,h,n,r,o,null,i,a,s),Jl(f,h))):(f.pendingId++,g?(f.isHydrating=!1,f.activeBranch=v):u(v,o,f),f.deps=0,f.effects.length=0,f.hiddenContainer=l("div"),m?(c(null,d,f.hiddenContainer,null,o,f,i,a,s),f.deps<=0?f.resolve():(c(p,h,n,r,o,null,i,a,s),Jl(f,h))):p&&la(d,p)?(c(p,d,n,r,o,f,i,a,s),f.resolve(!0)):(c(null,d,f.hiddenContainer,null,o,f,i,a,s),f.deps<=0&&f.resolve()));else if(p&&la(d,p))c(p,d,n,r,o,f,i,a,s),Jl(f,d);else if(wh(t,"onPending"),f.pendingBranch=d,f.pendingId++,c(null,d,f.hiddenContainer,null,o,f,i,a,s),f.deps<=0)f.resolve();else{const{timeout:y,pendingId:b}=f;y>0?setTimeout(()=>{f.pendingId===b&&f.fallback(h)},y):y===0&&f.fallback(h)}}function bk(e,t,n,r,o,i,a,s,c,u,l=!1){const{p:f,m:d,um:h,n:p,o:{parentNode:v,remove:m}}=u;let g;const y=BW(e);y&&t!=null&&t.pendingBranch&&(g=t.pendingId,t.deps++);const b=e.props?l9(e.props.timeout):void 0,w={vnode:e,parent:t,parentComponent:n,isSVG:a,container:r,hiddenContainer:o,anchor:i,deps:0,pendingId:0,timeout:typeof b=="number"?b:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:l,isUnmounted:!1,effects:[],resolve(x=!1,k=!1){const{vnode:E,activeBranch:_,pendingBranch:T,pendingId:$,effects:j,parentComponent:R,container:q}=w;if(w.isHydrating)w.isHydrating=!1;else if(!x){const J=_&&T.transition&&T.transition.mode==="out-in";J&&(_.transition.afterLeave=()=>{$===w.pendingId&&d(T,q,I,0)});let{anchor:I}=w;_&&(I=p(_),h(_,R,w,!0)),J||d(T,q,I,0)}Jl(w,T),w.pendingBranch=null,w.isInFallback=!1;let O=w.parent,F=!1;for(;O;){if(O.pendingBranch){O.effects.push(...j),F=!0;break}O=O.parent}F||P9(j),w.effects=[],y&&t&&t.pendingBranch&&g===t.pendingId&&(t.deps--,t.deps===0&&!k&&t.resolve()),wh(E,"onResolve")},fallback(x){if(!w.pendingBranch)return;const{vnode:k,activeBranch:E,parentComponent:_,container:T,isSVG:$}=w;wh(k,"onFallback");const j=p(E),R=()=>{w.isInFallback&&(f(null,x,T,j,_,null,$,s,c),Jl(w,x))},q=x.transition&&x.transition.mode==="out-in";q&&(E.transition.afterLeave=R),w.isInFallback=!0,h(E,_,null,!0),q||R()},move(x,k,E){w.activeBranch&&d(w.activeBranch,x,k,E),w.container=x},next(){return w.activeBranch&&p(w.activeBranch)},registerDep(x,k){const E=!!w.pendingBranch;E&&w.deps++;const _=x.vnode.el;x.asyncDep.catch(T=>{Hf(T,x,0)}).then(T=>{if(x.isUnmounted||w.isUnmounted||w.pendingId!==x.suspenseId)return;x.asyncResolved=!0;const{vnode:$}=x;_b(x,T,!1),_&&($.el=_);const j=!_&&x.subTree.el;k(x,$,v(_||x.subTree.el),_?null:p(x.subTree),w,a,c),j&&m(j),yk(x,$.el),E&&--w.deps===0&&w.resolve()})},unmount(x,k){w.isUnmounted=!0,w.activeBranch&&h(w.activeBranch,n,x,k),w.pendingBranch&&h(w.pendingBranch,n,x,k)}};return w}function LW(e,t,n,r,o,i,a,s,c){const u=t.suspense=bk(t,r,n,e.parentNode,document.createElement("div"),null,o,i,a,s,!0),l=c(e,u.pendingBranch=t.ssContent,n,u,i,a);return u.deps===0&&u.resolve(!1,!0),l}function zW(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=cS(r?n.default:n),e.ssFallback=r?cS(n.fallback):rn(Ho)}function cS(e){let t;if(Ge(e)){const n=mf&&e._c;n&&(e._d=!1,Vn()),e=e(),n&&(e._d=!0,t=Ti,sI())}return Pe(e)&&(e=AW(e)),e=Ei(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function D9(e,t){t&&t.pendingBranch?Pe(e)?t.effects.push(...e):t.effects.push(e):P9(e)}function Jl(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e,o=n.el=t.el;r&&r.subTree===n&&(r.vnode.el=o,yk(r,o))}function BW(e){var t;return((t=e.props)==null?void 0:t.suspensible)!=null&&e.props.suspensible!==!1}function FW(e,t){return h0(e,null,t)}function qW(e,t){return h0(e,null,{flush:"post"})}const Wp={};function co(e,t,n){return h0(e,t,n)}function h0(e,t,{immediate:n,deep:r,flush:o,onTrack:i,onTrigger:a}=wr){var s;const c=VV()===((s=Xr)==null?void 0:s.scope)?Xr:null;let u,l=!1,f=!1;if(Zr(e)?(u=()=>e.value,l=Bm(e)):Ul(e)?(u=()=>e,r=!0):Pe(e)?(f=!0,l=e.some(w=>Ul(w)||Bm(w)),u=()=>e.map(w=>{if(Zr(w))return w.value;if(Ul(w))return Eu(w);if(Ge(w))return Sc(w,c,2)})):Ge(e)?t?u=()=>Sc(e,c,2):u=()=>{if(!(c&&c.isUnmounted))return d&&d(),Li(e,c,3,[h])}:u=ba,t&&r){const w=u;u=()=>Eu(w())}let d,h=w=>{d=y.onStop=()=>{Sc(w,c,4)}},p;if(yf)if(h=ba,t?n&&Li(t,c,3,[u(),f?[]:void 0,h]):u(),o==="sync"){const w=MU();p=w.__watcherHandles||(w.__watcherHandles=[])}else return ba;let v=f?new Array(e.length).fill(Wp):Wp;const m=()=>{if(y.active)if(t){const w=y.run();(r||l||(f?w.some((x,k)=>mh(x,v[k])):mh(w,v)))&&(d&&d(),Li(t,c,3,[w,v===Wp?void 0:f&&v[0]===Wp?[]:v,h]),v=w)}else y.run()};m.allowRecurse=!!t;let g;o==="sync"?g=m:o==="post"?g=()=>go(m,c&&c.suspense):(m.pre=!0,c&&(m.id=c.uid),g=()=>l0(m));const y=new uk(u,g);t?n?m():v=y.run():o==="post"?go(y.run.bind(y),c&&c.suspense):y.run();const b=()=>{y.stop(),c&&c.scope&&ok(c.scope.effects,y)};return p&&p.push(b),b}function HW(e,t,n){const r=this.proxy,o=qr(e)?e.includes(".")?L9(r,e):()=>r[e]:e.bind(r,r);let i;Ge(t)?i=t:(i=t.handler,n=t);const a=Xr;Nc(this);const s=h0(o,i.bind(r),n);return a?Nc(a):$c(),s}function L9(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o<n.length&&r;o++)r=r[n[o]];return r}}function Eu(e,t){if(!ir(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),Zr(e))Eu(e.value,t);else if(Pe(e))for(let n=0;n<e.length;n++)Eu(e[n],t);else if(Lf(e)||Vl(e))e.forEach(n=>{Eu(n,t)});else if(u9(e))for(const n in e)Eu(e[n],t);return e}function VW(e,t){const n=so;if(n===null)return e;const r=m0(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[a,s,c,u=wr]=t[i];a&&(Ge(a)&&(a={mounted:a,updated:a}),a.deep&&Eu(s),o.push({dir:a,instance:r,value:s,oldValue:void 0,arg:c,modifiers:u}))}return e}function Wa(e,t,n,r){const o=e.dirs,i=t&&t.dirs;for(let a=0;a<o.length;a++){const s=o[a];i&&(s.oldValue=i[a].value);let c=s.dir[r];c&&(Ff(),Li(c,n,8,[e.el,s,e,t]),qf())}}function WW(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return sl(()=>{e.isMounted=!0}),fp(()=>{e.isUnmounting=!0}),e}const $i=[Function,Array],z9={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:$i,onEnter:$i,onAfterEnter:$i,onEnterCancelled:$i,onBeforeLeave:$i,onLeave:$i,onAfterLeave:$i,onLeaveCancelled:$i,onBeforeAppear:$i,onAppear:$i,onAfterAppear:$i,onAppearCancelled:$i},UW={name:"BaseTransition",props:z9,setup(e,{slots:t}){const n=Ks(),r=WW();let o;return()=>{const i=t.default&&F9(t.default(),!0);if(!i||!i.length)return;let a=i[0];if(i.length>1){for(const v of i)if(v.type!==Ho){a=v;break}}const s=Pn(e),{mode:c}=s;if(r.isLeaving)return j1(a);const u=uS(a);if(!u)return j1(a);const l=yb(u,s,r,n);Hm(u,l);const f=n.subTree,d=f&&uS(f);let h=!1;const{getTransitionKey:p}=u.type;if(p){const v=p();o===void 0?o=v:v!==o&&(o=v,h=!0)}if(d&&d.type!==Ho&&(!la(u,d)||h)){const v=yb(d,s,r,n);if(Hm(d,v),c==="out-in")return r.isLeaving=!0,v.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},j1(a);c==="in-out"&&u.type!==Ho&&(v.delayLeave=(m,g,y)=>{const b=B9(r,d);b[String(d.key)]=d,m._leaveCb=()=>{g(),m._leaveCb=void 0,delete l.delayedLeave},l.delayedLeave=y})}return a}}},KW=UW;function B9(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function yb(e,t,n,r){const{appear:o,mode:i,persisted:a=!1,onBeforeEnter:s,onEnter:c,onAfterEnter:u,onEnterCancelled:l,onBeforeLeave:f,onLeave:d,onAfterLeave:h,onLeaveCancelled:p,onBeforeAppear:v,onAppear:m,onAfterAppear:g,onAppearCancelled:y}=t,b=String(e.key),w=B9(n,e),x=(_,T)=>{_&&Li(_,r,9,T)},k=(_,T)=>{const $=T[1];x(_,T),Pe(_)?_.every(j=>j.length<=1)&&$():_.length<=1&&$()},E={mode:i,persisted:a,beforeEnter(_){let T=s;if(!n.isMounted)if(o)T=v||s;else return;_._leaveCb&&_._leaveCb(!0);const $=w[b];$&&la(e,$)&&$.el._leaveCb&&$.el._leaveCb(),x(T,[_])},enter(_){let T=c,$=u,j=l;if(!n.isMounted)if(o)T=m||c,$=g||u,j=y||l;else return;let R=!1;const q=_._enterCb=O=>{R||(R=!0,O?x(j,[_]):x($,[_]),E.delayedLeave&&E.delayedLeave(),_._enterCb=void 0)};T?k(T,[_,q]):q()},leave(_,T){const $=String(e.key);if(_._enterCb&&_._enterCb(!0),n.isUnmounting)return T();x(f,[_]);let j=!1;const R=_._leaveCb=q=>{j||(j=!0,T(),q?x(p,[_]):x(h,[_]),_._leaveCb=void 0,w[$]===e&&delete w[$])};w[$]=e,d?k(d,[_,R]):R()},clone(_){return yb(_,t,n,r)}};return E}function j1(e){if(lp(e))return e=Bs(e),e.children=null,e}function uS(e){return lp(e)?e.children?e.children[0]:void 0:e}function Hm(e,t){e.shapeFlag&6&&e.component?Hm(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function F9(e,t=!1,n){let r=[],o=0;for(let i=0;i<e.length;i++){let a=e[i];const s=n==null?a.key:String(n)+String(a.key!=null?a.key:i);a.type===Fo?(a.patchFlag&128&&o++,r=r.concat(F9(a.children,t,s))):(t||a.type!==Ho)&&r.push(s!=null?Bs(a,{key:s}):a)}if(o>1)for(let i=0;i<r.length;i++)r[i].patchFlag=-2;return r}function Jo(e,t){return Ge(e)?(()=>to({name:e.name},t,{setup:e}))():e}const Du=e=>!!e.type.__asyncLoader;function Vm(e){Ge(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:o=200,timeout:i,suspensible:a=!0,onError:s}=e;let c=null,u,l=0;const f=()=>(l++,c=null,d()),d=()=>{let h;return c||(h=c=t().catch(p=>{if(p=p instanceof Error?p:new Error(String(p)),s)return new Promise((v,m)=>{s(p,()=>v(f()),()=>m(p),l+1)});throw p}).then(p=>h!==c&&c?c:(p&&(p.__esModule||p[Symbol.toStringTag]==="Module")&&(p=p.default),u=p,p)))};return Jo({name:"AsyncComponentWrapper",__asyncLoader:d,get __asyncResolved(){return u},setup(){const h=Xr;if(u)return()=>_1(u,h);const p=y=>{c=null,Hf(y,h,13,!r)};if(a&&h.suspense||yf)return d().then(y=>()=>_1(y,h)).catch(y=>(p(y),()=>r?rn(r,{error:y}):null));const v=Tn(!1),m=Tn(),g=Tn(!!o);return o&&setTimeout(()=>{g.value=!1},o),i!=null&&setTimeout(()=>{if(!v.value&&!m.value){const y=new Error(`Async component timed out after ${i}ms.`);p(y),m.value=y}},i),d().then(()=>{v.value=!0,h.parent&&lp(h.parent.vnode)&&l0(h.parent.update)}).catch(y=>{p(y),m.value=y}),()=>{if(v.value&&u)return _1(u,h);if(m.value&&r)return rn(r,{error:m.value});if(n&&!g.value)return rn(n)}}})}function _1(e,t){const{ref:n,props:r,children:o,ce:i}=t.vnode,a=rn(e,r,o);return a.ref=n,a.ce=i,delete t.vnode.ce,a}const lp=e=>e.type.__isKeepAlive,JW={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Ks(),r=n.ctx;if(!r.renderer)return()=>{const y=t.default&&t.default();return y&&y.length===1?y[0]:y};const o=new Map,i=new Set;let a=null;const s=n.suspense,{renderer:{p:c,m:u,um:l,o:{createElement:f}}}=r,d=f("div");r.activate=(y,b,w,x,k)=>{const E=y.component;u(y,b,w,0,s),c(E.vnode,y,b,w,E,s,x,y.slotScopeIds,k),go(()=>{E.isDeactivated=!1,E.a&&Wl(E.a);const _=y.props&&y.props.onVnodeMounted;_&&Yo(_,E.parent,y)},s)},r.deactivate=y=>{const b=y.component;u(y,d,null,1,s),go(()=>{b.da&&Wl(b.da);const w=y.props&&y.props.onVnodeUnmounted;w&&Yo(w,b.parent,y),b.isDeactivated=!0},s)};function h(y){S1(y),l(y,n,s,!0)}function p(y){o.forEach((b,w)=>{const x=Sb(b.type);x&&(!y||!y(x))&&v(w)})}function v(y){const b=o.get(y);!a||!la(b,a)?h(b):a&&S1(a),o.delete(y),i.delete(y)}co(()=>[e.include,e.exclude],([y,b])=>{y&&p(w=>Pd(y,w)),b&&p(w=>!Pd(b,w))},{flush:"post",deep:!0});let m=null;const g=()=>{m!=null&&o.set(m,$1(n.subTree))};return sl(g),U9(g),fp(()=>{o.forEach(y=>{const{subTree:b,suspense:w}=n,x=$1(b);if(y.type===x.type&&y.key===x.key){S1(x);const k=x.component.da;k&&go(k,w);return}h(y)})}),()=>{if(m=null,!t.default)return null;const y=t.default(),b=y[0];if(y.length>1)return a=null,y;if(!gf(b)||!(b.shapeFlag&4)&&!(b.shapeFlag&128))return a=null,b;let w=$1(b);const x=w.type,k=Sb(Du(w)?w.type.__asyncResolved||{}:x),{include:E,exclude:_,max:T}=e;if(E&&(!k||!Pd(E,k))||_&&k&&Pd(_,k))return a=w,b;const $=w.key==null?x:w.key,j=o.get($);return w.el&&(w=Bs(w),b.shapeFlag&128&&(b.ssContent=w)),m=$,j?(w.el=j.el,w.component=j.component,w.transition&&Hm(w,w.transition),w.shapeFlag|=512,i.delete($),i.add($)):(i.add($),T&&i.size>parseInt(T,10)&&v(i.values().next().value)),w.shapeFlag|=256,a=w,I9(b.type)?b:w}}},GW=JW;function Pd(e,t){return Pe(e)?e.some(n=>Pd(n,t)):qr(e)?e.split(",").includes(t):AV(e)?e.test(t):!1}function q9(e,t){V9(e,"a",t)}function H9(e,t){V9(e,"da",t)}function V9(e,t,n=Xr){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(p0(t,r,n),n){let o=n.parent;for(;o&&o.parent;)lp(o.parent.vnode)&&QW(r,t,n,o),o=o.parent}}function QW(e,t,n,r){const o=p0(t,e,r,!0);pf(()=>{ok(r[t],o)},n)}function S1(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function $1(e){return e.shapeFlag&128?e.ssContent:e}function p0(e,t,n=Xr,r=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...a)=>{if(n.isUnmounted)return;Ff(),Nc(n);const s=Li(t,n,e,a);return $c(),qf(),s});return r?o.unshift(i):o.push(i),i}}const Us=e=>(t,n=Xr)=>(!yf||e==="sp")&&p0(e,(...r)=>t(...r),n),W9=Us("bm"),sl=Us("m"),YW=Us("bu"),U9=Us("u"),fp=Us("bum"),pf=Us("um"),XW=Us("sp"),ZW=Us("rtg"),tU=Us("rtc");function K9(e,t=Xr){p0("ec",e,t)}const wk="components";function eU(e,t){return G9(wk,e,!0,t)||e}const J9=Symbol.for("v-ndc");function xk(e){return qr(e)?G9(wk,e,!1)||e:e||J9}function G9(e,t,n=!0,r=!1){const o=so||Xr;if(o){const i=o.type;if(e===wk){const s=Sb(i,!1);if(s&&(s===t||s===os(t)||s===c0(os(t))))return i}const a=lS(o[e]||i[e],t)||lS(o.appContext[e],t);return!a&&r?i:a}}function lS(e,t){return e&&(e[t]||e[os(t)]||e[c0(os(t))])}function Wu(e,t,n={},r,o){if(so.isCE||so.parent&&Du(so.parent)&&so.parent.isCE)return t!=="default"&&(n.name=t),rn("slot",n,r&&r());let i=e[t];i&&i._c&&(i._d=!1),Vn();const a=i&&Q9(i(n)),s=jo(Fo,{key:n.key||a&&a.key||`_${t}`},a||(r?r():[]),a&&e._===1?64:-2);return!o&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),i&&i._c&&(i._d=!0),s}function Q9(e){return e.some(t=>gf(t)?!(t.type===Ho||t.type===Fo&&!Q9(t.children)):!0)?e:null}const bb=e=>e?lI(e)?m0(e)||e.proxy:bb(e.parent):null,Wd=to(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>bb(e.parent),$root:e=>bb(e.root),$emit:e=>e.emit,$options:e=>kk(e),$forceUpdate:e=>e.f||(e.f=()=>l0(e.update)),$nextTick:e=>e.n||(e.n=Xc.bind(e.proxy)),$watch:e=>HW.bind(e)}),C1=(e,t)=>e!==wr&&!e.__isScriptSetup&&An(e,t),nU={get({_:e},t){const{ctx:n,setupState:r,data:o,props:i,accessCache:a,type:s,appContext:c}=e;let u;if(t[0]!=="$"){const h=a[t];if(h!==void 0)switch(h){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(C1(r,t))return a[t]=1,r[t];if(o!==wr&&An(o,t))return a[t]=2,o[t];if((u=e.propsOptions[0])&&An(u,t))return a[t]=3,i[t];if(n!==wr&&An(n,t))return a[t]=4,n[t];xb&&(a[t]=0)}}const l=Wd[t];let f,d;if(l)return t==="$attrs"&&ri(e,"get",t),l(e);if((f=s.__cssModules)&&(f=f[t]))return f;if(n!==wr&&An(n,t))return a[t]=4,n[t];if(d=c.config.globalProperties,An(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:i}=e;return C1(o,t)?(o[t]=n,!0):r!==wr&&An(r,t)?(r[t]=n,!0):An(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:i}},a){let s;return!!n[a]||e!==wr&&An(e,a)||C1(t,a)||(s=i[0])&&An(s,a)||An(r,a)||An(Wd,a)||An(o.config.globalProperties,a)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:An(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function fS(e){return Pe(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function wb(e){const t=Ks();let n=e();return $c(),ik(n)&&(n=n.catch(r=>{throw Nc(t),r})),[n,()=>Nc(t)]}let xb=!0;function rU(e){const t=kk(e),n=e.proxy,r=e.ctx;xb=!1,t.beforeCreate&&dS(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:a,watch:s,provide:c,inject:u,created:l,beforeMount:f,mounted:d,beforeUpdate:h,updated:p,activated:v,deactivated:m,beforeDestroy:g,beforeUnmount:y,destroyed:b,unmounted:w,render:x,renderTracked:k,renderTriggered:E,errorCaptured:_,serverPrefetch:T,expose:$,inheritAttrs:j,components:R,directives:q,filters:O}=t;if(u&&oU(u,r,null),a)for(const I in a){const D=a[I];Ge(D)&&(r[I]=D.bind(n))}if(o){const I=o.call(n,n);ir(I)&&(e.data=is(I))}if(xb=!0,i)for(const I in i){const D=i[I],C=Ge(D)?D.bind(n,n):Ge(D.get)?D.get.bind(n,n):ba,M=!Ge(D)&&Ge(D.set)?D.set.bind(n):ba,P=hr({get:C,set:M});Object.defineProperty(r,I,{enumerable:!0,configurable:!0,get:()=>P.value,set:B=>P.value=B})}if(s)for(const I in s)Y9(s[I],r,n,I);if(c){const I=Ge(c)?c.call(n):c;Reflect.ownKeys(I).forEach(D=>{Gl(D,I[D])})}l&&dS(l,e,"c");function J(I,D){Pe(D)?D.forEach(C=>I(C.bind(n))):D&&I(D.bind(n))}if(J(W9,f),J(sl,d),J(YW,h),J(U9,p),J(q9,v),J(H9,m),J(K9,_),J(tU,k),J(ZW,E),J(fp,y),J(pf,w),J(XW,T),Pe($))if($.length){const I=e.exposed||(e.exposed={});$.forEach(D=>{Object.defineProperty(I,D,{get:()=>n[D],set:C=>n[D]=C})})}else e.exposed||(e.exposed={});x&&e.render===ba&&(e.render=x),j!=null&&(e.inheritAttrs=j),R&&(e.components=R),q&&(e.directives=q)}function oU(e,t,n=ba){Pe(e)&&(e=kb(e));for(const r in e){const o=e[r];let i;ir(o)?"default"in o?i=mi(o.from||r,o.default,!0):i=mi(o.from||r):i=mi(o),Zr(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:a=>i.value=a}):t[r]=i}}function dS(e,t,n){Li(Pe(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Y9(e,t,n,r){const o=r.includes(".")?L9(n,r):()=>n[r];if(qr(e)){const i=t[e];Ge(i)&&co(o,i)}else if(Ge(e))co(o,e.bind(n));else if(ir(e))if(Pe(e))e.forEach(i=>Y9(i,t,n,r));else{const i=Ge(e.handler)?e.handler.bind(n):t[e.handler];Ge(i)&&co(o,i,e)}}function kk(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,s=i.get(t);let c;return s?c=s:!o.length&&!n&&!r?c=t:(c={},o.length&&o.forEach(u=>Wm(c,u,a,!0)),Wm(c,t,a)),ir(t)&&i.set(t,c),c}function Wm(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&Wm(e,i,n,!0),o&&o.forEach(a=>Wm(e,a,n,!0));for(const a in t)if(!(r&&a==="expose")){const s=iU[a]||n&&n[a];e[a]=s?s(e[a],t[a]):t[a]}return e}const iU={data:hS,props:pS,emits:pS,methods:Td,computed:Td,beforeCreate:Bo,created:Bo,beforeMount:Bo,mounted:Bo,beforeUpdate:Bo,updated:Bo,beforeDestroy:Bo,beforeUnmount:Bo,destroyed:Bo,unmounted:Bo,activated:Bo,deactivated:Bo,errorCaptured:Bo,serverPrefetch:Bo,components:Td,directives:Td,watch:sU,provide:hS,inject:aU};function hS(e,t){return t?e?function(){return to(Ge(e)?e.call(this,this):e,Ge(t)?t.call(this,this):t)}:t:e}function aU(e,t){return Td(kb(e),kb(t))}function kb(e){if(Pe(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Bo(e,t){return e?[...new Set([].concat(e,t))]:t}function Td(e,t){return e?to(Object.create(null),e,t):t}function pS(e,t){return e?Pe(e)&&Pe(t)?[...new Set([...e,...t])]:to(Object.create(null),fS(e),fS(t??{})):t}function sU(e,t){if(!e)return t;if(!t)return e;const n=to(Object.create(null),e);for(const r in t)n[r]=Bo(e[r],t[r]);return n}function X9(){return{app:null,config:{isNativeTag:EV,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let cU=0;function uU(e,t){return function(r,o=null){Ge(r)||(r=to({},r)),o!=null&&!ir(o)&&(o=null);const i=X9(),a=new Set;let s=!1;const c=i.app={_uid:cU++,_component:r,_props:o,_container:null,_context:i,_instance:null,version:dI,get config(){return i.config},set config(u){},use(u,...l){return a.has(u)||(u&&Ge(u.install)?(a.add(u),u.install(c,...l)):Ge(u)&&(a.add(u),u(c,...l))),c},mixin(u){return i.mixins.includes(u)||i.mixins.push(u),c},component(u,l){return l?(i.components[u]=l,c):i.components[u]},directive(u,l){return l?(i.directives[u]=l,c):i.directives[u]},mount(u,l,f){if(!s){const d=rn(r,o);return d.appContext=i,l&&t?t(d,u):e(d,u,f),s=!0,c._container=u,u.__vue_app__=c,m0(d.component)||d.component.proxy}},unmount(){s&&(e(null,c._container),delete c._container.__vue_app__)},provide(u,l){return i.provides[u]=l,c},runWithContext(u){xh=c;try{return u()}finally{xh=null}}};return c}}let xh=null;function Gl(e,t){if(Xr){let n=Xr.provides;const r=Xr.parent&&Xr.parent.provides;r===n&&(n=Xr.provides=Object.create(r)),n[e]=t}}function mi(e,t,n=!1){const r=Xr||so;if(r||xh){const o=r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:xh._context.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&Ge(t)?t.call(r&&r.proxy):t}}function Z9(){return!!(Xr||so||xh)}function lU(e,t,n,r=!1){const o={},i={};Dm(i,v0,1),e.propsDefaults=Object.create(null),tI(e,t,o,i);for(const a in e.propsOptions[0])a in o||(o[a]=void 0);n?e.props=r?o:up(o):e.type.props?e.props=o:e.props=i,e.attrs=i}function fU(e,t,n,r){const{props:o,attrs:i,vnode:{patchFlag:a}}=e,s=Pn(o),[c]=e.propsOptions;let u=!1;if((r||a>0)&&!(a&16)){if(a&8){const l=e.vnode.dynamicProps;for(let f=0;f<l.length;f++){let d=l[f];if(f0(e.emitsOptions,d))continue;const h=t[d];if(c)if(An(i,d))h!==i[d]&&(i[d]=h,u=!0);else{const p=os(d);o[p]=jb(c,s,p,h,e,!1)}else h!==i[d]&&(i[d]=h,u=!0)}}}else{tI(e,t,o,i)&&(u=!0);let l;for(const f in s)(!t||!An(t,f)&&((l=Bf(f))===f||!An(t,l)))&&(c?n&&(n[f]!==void 0||n[l]!==void 0)&&(o[f]=jb(c,s,f,void 0,e,!0)):delete o[f]);if(i!==s)for(const f in i)(!t||!An(t,f))&&(delete i[f],u=!0)}u&&zs(e,"set","$attrs")}function tI(e,t,n,r){const[o,i]=e.propsOptions;let a=!1,s;if(t)for(let c in t){if(Vd(c))continue;const u=t[c];let l;o&&An(o,l=os(c))?!i||!i.includes(l)?n[l]=u:(s||(s={}))[l]=u:f0(e.emitsOptions,c)||(!(c in r)||u!==r[c])&&(r[c]=u,a=!0)}if(i){const c=Pn(n),u=s||wr;for(let l=0;l<i.length;l++){const f=i[l];n[f]=jb(o,c,f,u[f],e,!An(u,f))}}return a}function jb(e,t,n,r,o,i){const a=e[n];if(a!=null){const s=An(a,"default");if(s&&r===void 0){const c=a.default;if(a.type!==Function&&!a.skipFactory&&Ge(c)){const{propsDefaults:u}=o;n in u?r=u[n]:(Nc(o),r=u[n]=c.call(null,t),$c())}else r=c}a[0]&&(i&&!s?r=!1:a[1]&&(r===""||r===Bf(n))&&(r=!0))}return r}function eI(e,t,n=!1){const r=t.propsCache,o=r.get(e);if(o)return o;const i=e.props,a={},s=[];let c=!1;if(!Ge(e)){const l=f=>{c=!0;const[d,h]=eI(f,t,!0);to(a,d),h&&s.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}if(!i&&!c)return ir(e)&&r.set(e,Hl),Hl;if(Pe(i))for(let l=0;l<i.length;l++){const f=os(i[l]);vS(f)&&(a[f]=wr)}else if(i)for(const l in i){const f=os(l);if(vS(f)){const d=i[l],h=a[f]=Pe(d)||Ge(d)?{type:d}:to({},d);if(h){const p=yS(Boolean,h.type),v=yS(String,h.type);h[0]=p>-1,h[1]=v<0||p<v,(p>-1||An(h,"default"))&&s.push(f)}}}const u=[a,s];return ir(e)&&r.set(e,u),u}function vS(e){return e[0]!=="$"}function mS(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function gS(e,t){return mS(e)===mS(t)}function yS(e,t){return Pe(t)?t.findIndex(n=>gS(n,e)):Ge(t)&&gS(t,e)?0:-1}const nI=e=>e[0]==="_"||e==="$stable",jk=e=>Pe(e)?e.map(Ei):[Ei(e)],dU=(e,t,n)=>{if(t._n)return t;const r=ao((...o)=>jk(t(...o)),n);return r._c=!1,r},rI=(e,t,n)=>{const r=e._ctx;for(const o in e){if(nI(o))continue;const i=e[o];if(Ge(i))t[o]=dU(o,i,r);else if(i!=null){const a=jk(i);t[o]=()=>a}}},oI=(e,t)=>{const n=jk(t);e.slots.default=()=>n},hU=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Pn(t),Dm(t,"_",n)):rI(t,e.slots={})}else e.slots={},t&&oI(e,t);Dm(e.slots,v0,1)},pU=(e,t,n)=>{const{vnode:r,slots:o}=e;let i=!0,a=wr;if(r.shapeFlag&32){const s=t._;s?n&&s===1?i=!1:(to(o,t),!n&&s===1&&delete o._):(i=!t.$stable,rI(t,o)),a=t}else t&&(oI(e,t),a={default:1});if(i)for(const s in o)!nI(s)&&!(s in a)&&delete o[s]};function Um(e,t,n,r,o=!1){if(Pe(e)){e.forEach((d,h)=>Um(d,t&&(Pe(t)?t[h]:t),n,r,o));return}if(Du(r)&&!o)return;const i=r.shapeFlag&4?m0(r.component)||r.component.proxy:r.el,a=o?null:i,{i:s,r:c}=e,u=t&&t.r,l=s.refs===wr?s.refs={}:s.refs,f=s.setupState;if(u!=null&&u!==c&&(qr(u)?(l[u]=null,An(f,u)&&(f[u]=null)):Zr(u)&&(u.value=null)),Ge(c))Sc(c,s,12,[a,l]);else{const d=qr(c),h=Zr(c);if(d||h){const p=()=>{if(e.f){const v=d?An(f,c)?f[c]:l[c]:c.value;o?Pe(v)&&ok(v,i):Pe(v)?v.includes(i)||v.push(i):d?(l[c]=[i],An(f,c)&&(f[c]=l[c])):(c.value=[i],e.k&&(l[e.k]=c.value))}else d?(l[c]=a,An(f,c)&&(f[c]=a)):h&&(c.value=a,e.k&&(l[e.k]=a))};a?(p.id=-1,go(p,n)):p()}}}let rc=!1;const Up=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",Kp=e=>e.nodeType===8;function vU(e){const{mt:t,p:n,o:{patchProp:r,createText:o,nextSibling:i,parentNode:a,remove:s,insert:c,createComment:u}}=e,l=(g,y)=>{if(!y.hasChildNodes()){n(null,g,y),Fm(),y._vnode=g;return}rc=!1,f(y.firstChild,g,null,null,null),Fm(),y._vnode=g,rc&&console.error("Hydration completed but contains mismatches.")},f=(g,y,b,w,x,k=!1)=>{const E=Kp(g)&&g.data==="[",_=()=>v(g,y,b,w,x,E),{type:T,ref:$,shapeFlag:j,patchFlag:R}=y;let q=g.nodeType;y.el=g,R===-2&&(k=!1,y.dynamicChildren=null);let O=null;switch(T){case vf:q!==3?y.children===""?(c(y.el=o(""),a(g),g),O=g):O=_():(g.data!==y.children&&(rc=!0,g.data=y.children),O=i(g));break;case Ho:q!==8||E?O=_():O=i(g);break;case Ud:if(E&&(g=i(g),q=g.nodeType),q===1||q===3){O=g;const F=!y.children.length;for(let J=0;J<y.staticCount;J++)F&&(y.children+=O.nodeType===1?O.outerHTML:O.data),J===y.staticCount-1&&(y.anchor=O),O=i(O);return E?i(O):O}else _();break;case Fo:E?O=p(g,y,b,w,x,k):O=_();break;default:if(j&1)q!==1||y.type.toLowerCase()!==g.tagName.toLowerCase()?O=_():O=d(g,y,b,w,x,k);else if(j&6){y.slotScopeIds=x;const F=a(g);if(t(y,F,null,b,w,Up(F),k),O=E?m(g):i(g),O&&Kp(O)&&O.data==="teleport end"&&(O=i(O)),Du(y)){let J;E?(J=rn(Fo),J.anchor=O?O.previousSibling:F.lastChild):J=g.nodeType===3?Ou(""):rn("div"),J.el=g,y.component.subTree=J}}else j&64?q!==8?O=_():O=y.type.hydrate(g,y,b,w,x,k,e,h):j&128&&(O=y.type.hydrate(g,y,b,w,Up(a(g)),x,k,e,f))}return $!=null&&Um($,null,w,y),O},d=(g,y,b,w,x,k)=>{k=k||!!y.dynamicChildren;const{type:E,props:_,patchFlag:T,shapeFlag:$,dirs:j}=y,R=E==="input"&&j||E==="option";if(R||T!==-1){if(j&&Wa(y,null,b,"created"),_)if(R||!k||T&48)for(const O in _)(R&&O.endsWith("value")||cp(O)&&!Vd(O))&&r(g,O,null,_[O],!1,void 0,b);else _.onClick&&r(g,"onClick",null,_.onClick,!1,void 0,b);let q;if((q=_&&_.onVnodeBeforeMount)&&Yo(q,b,y),j&&Wa(y,null,b,"beforeMount"),((q=_&&_.onVnodeMounted)||j)&&D9(()=>{q&&Yo(q,b,y),j&&Wa(y,null,b,"mounted")},w),$&16&&!(_&&(_.innerHTML||_.textContent))){let O=h(g.firstChild,y,g,b,w,x,k);for(;O;){rc=!0;const F=O;O=O.nextSibling,s(F)}}else $&8&&g.textContent!==y.children&&(rc=!0,g.textContent=y.children)}return g.nextSibling},h=(g,y,b,w,x,k,E)=>{E=E||!!y.dynamicChildren;const _=y.children,T=_.length;for(let $=0;$<T;$++){const j=E?_[$]:_[$]=Ei(_[$]);if(g)g=f(g,j,w,x,k,E);else{if(j.type===vf&&!j.children)continue;rc=!0,n(null,j,b,null,w,x,Up(b),k)}}return g},p=(g,y,b,w,x,k)=>{const{slotScopeIds:E}=y;E&&(x=x?x.concat(E):E);const _=a(g),T=h(i(g),y,_,b,w,x,k);return T&&Kp(T)&&T.data==="]"?i(y.anchor=T):(rc=!0,c(y.anchor=u("]"),_,T),T)},v=(g,y,b,w,x,k)=>{if(rc=!0,y.el=null,k){const T=m(g);for(;;){const $=i(g);if($&&$!==T)s($);else break}}const E=i(g),_=a(g);return s(g),n(null,y,_,E,b,w,Up(_),x),E},m=g=>{let y=0;for(;g;)if(g=i(g),g&&Kp(g)&&(g.data==="["&&y++,g.data==="]")){if(y===0)return i(g);y--}return g};return[l,f]}const go=D9;function mU(e){return iI(e)}function gU(e){return iI(e,vU)}function iI(e,t){const n=hb();n.__VUE__=!0;const{insert:r,remove:o,patchProp:i,createElement:a,createText:s,createComment:c,setText:u,setElementText:l,parentNode:f,nextSibling:d,setScopeId:h=ba,insertStaticContent:p}=e,v=(Y,K,rt,X=null,_t=null,L=null,U=!1,G=null,pt=!!K.dynamicChildren)=>{if(Y===K)return;Y&&!la(Y,K)&&(X=et(Y),B(Y,_t,L,!0),Y=null),K.patchFlag===-2&&(pt=!1,K.dynamicChildren=null);const{type:mt,ref:Ot,shapeFlag:Ct}=K;switch(mt){case vf:m(Y,K,rt,X);break;case Ho:g(Y,K,rt,X);break;case Ud:Y==null&&y(K,rt,X,U);break;case Fo:R(Y,K,rt,X,_t,L,U,G,pt);break;default:Ct&1?x(Y,K,rt,X,_t,L,U,G,pt):Ct&6?q(Y,K,rt,X,_t,L,U,G,pt):(Ct&64||Ct&128)&&mt.process(Y,K,rt,X,_t,L,U,G,pt,bt)}Ot!=null&&_t&&Um(Ot,Y&&Y.ref,L,K||Y,!K)},m=(Y,K,rt,X)=>{if(Y==null)r(K.el=s(K.children),rt,X);else{const _t=K.el=Y.el;K.children!==Y.children&&u(_t,K.children)}},g=(Y,K,rt,X)=>{Y==null?r(K.el=c(K.children||""),rt,X):K.el=Y.el},y=(Y,K,rt,X)=>{[Y.el,Y.anchor]=p(Y.children,K,rt,X,Y.el,Y.anchor)},b=({el:Y,anchor:K},rt,X)=>{let _t;for(;Y&&Y!==K;)_t=d(Y),r(Y,rt,X),Y=_t;r(K,rt,X)},w=({el:Y,anchor:K})=>{let rt;for(;Y&&Y!==K;)rt=d(Y),o(Y),Y=rt;o(K)},x=(Y,K,rt,X,_t,L,U,G,pt)=>{U=U||K.type==="svg",Y==null?k(K,rt,X,_t,L,U,G,pt):T(Y,K,_t,L,U,G,pt)},k=(Y,K,rt,X,_t,L,U,G)=>{let pt,mt;const{type:Ot,props:Ct,shapeFlag:Vt,transition:Qt,dirs:te}=Y;if(pt=Y.el=a(Y.type,L,Ct&&Ct.is,Ct),Vt&8?l(pt,Y.children):Vt&16&&_(Y.children,pt,null,X,_t,L&&Ot!=="foreignObject",U,G),te&&Wa(Y,null,X,"created"),E(pt,Y,Y.scopeId,U,X),Ct){for(const ue in Ct)ue!=="value"&&!Vd(ue)&&i(pt,ue,null,Ct[ue],L,Y.children,X,_t,dt);"value"in Ct&&i(pt,"value",null,Ct.value),(mt=Ct.onVnodeBeforeMount)&&Yo(mt,X,Y)}te&&Wa(Y,null,X,"beforeMount");const Kt=(!_t||_t&&!_t.pendingBranch)&&Qt&&!Qt.persisted;Kt&&Qt.beforeEnter(pt),r(pt,K,rt),((mt=Ct&&Ct.onVnodeMounted)||Kt||te)&&go(()=>{mt&&Yo(mt,X,Y),Kt&&Qt.enter(pt),te&&Wa(Y,null,X,"mounted")},_t)},E=(Y,K,rt,X,_t)=>{if(rt&&h(Y,rt),X)for(let L=0;L<X.length;L++)h(Y,X[L]);if(_t){let L=_t.subTree;if(K===L){const U=_t.vnode;E(Y,U,U.scopeId,U.slotScopeIds,_t.parent)}}},_=(Y,K,rt,X,_t,L,U,G,pt=0)=>{for(let mt=pt;mt<Y.length;mt++){const Ot=Y[mt]=G?lc(Y[mt]):Ei(Y[mt]);v(null,Ot,K,rt,X,_t,L,U,G)}},T=(Y,K,rt,X,_t,L,U)=>{const G=K.el=Y.el;let{patchFlag:pt,dynamicChildren:mt,dirs:Ot}=K;pt|=Y.patchFlag&16;const Ct=Y.props||wr,Vt=K.props||wr;let Qt;rt&&su(rt,!1),(Qt=Vt.onVnodeBeforeUpdate)&&Yo(Qt,rt,K,Y),Ot&&Wa(K,Y,rt,"beforeUpdate"),rt&&su(rt,!0);const te=_t&&K.type!=="foreignObject";if(mt?$(Y.dynamicChildren,mt,G,rt,X,te,L):U||D(Y,K,G,null,rt,X,te,L,!1),pt>0){if(pt&16)j(G,K,Ct,Vt,rt,X,_t);else if(pt&2&&Ct.class!==Vt.class&&i(G,"class",null,Vt.class,_t),pt&4&&i(G,"style",Ct.style,Vt.style,_t),pt&8){const Kt=K.dynamicProps;for(let ue=0;ue<Kt.length;ue++){const Me=Kt[ue],en=Ct[Me],le=Vt[Me];(le!==en||Me==="value")&&i(G,Me,en,le,_t,Y.children,rt,X,dt)}}pt&1&&Y.children!==K.children&&l(G,K.children)}else!U&&mt==null&&j(G,K,Ct,Vt,rt,X,_t);((Qt=Vt.onVnodeUpdated)||Ot)&&go(()=>{Qt&&Yo(Qt,rt,K,Y),Ot&&Wa(K,Y,rt,"updated")},X)},$=(Y,K,rt,X,_t,L,U)=>{for(let G=0;G<K.length;G++){const pt=Y[G],mt=K[G],Ot=pt.el&&(pt.type===Fo||!la(pt,mt)||pt.shapeFlag&70)?f(pt.el):rt;v(pt,mt,Ot,null,X,_t,L,U,!0)}},j=(Y,K,rt,X,_t,L,U)=>{if(rt!==X){if(rt!==wr)for(const G in rt)!Vd(G)&&!(G in X)&&i(Y,G,rt[G],null,U,K.children,_t,L,dt);for(const G in X){if(Vd(G))continue;const pt=X[G],mt=rt[G];pt!==mt&&G!=="value"&&i(Y,G,mt,pt,U,K.children,_t,L,dt)}"value"in X&&i(Y,"value",rt.value,X.value)}},R=(Y,K,rt,X,_t,L,U,G,pt)=>{const mt=K.el=Y?Y.el:s(""),Ot=K.anchor=Y?Y.anchor:s("");let{patchFlag:Ct,dynamicChildren:Vt,slotScopeIds:Qt}=K;Qt&&(G=G?G.concat(Qt):Qt),Y==null?(r(mt,rt,X),r(Ot,rt,X),_(K.children,rt,Ot,_t,L,U,G,pt)):Ct>0&&Ct&64&&Vt&&Y.dynamicChildren?($(Y.dynamicChildren,Vt,rt,_t,L,U,G),(K.key!=null||_t&&K===_t.subTree)&&aI(Y,K,!0)):D(Y,K,rt,Ot,_t,L,U,G,pt)},q=(Y,K,rt,X,_t,L,U,G,pt)=>{K.slotScopeIds=G,Y==null?K.shapeFlag&512?_t.ctx.activate(K,rt,X,U,pt):O(K,rt,X,_t,L,U,pt):F(Y,K,pt)},O=(Y,K,rt,X,_t,L,U)=>{const G=Y.component=jU(Y,X,_t);if(lp(Y)&&(G.ctx.renderer=bt),_U(G),G.asyncDep){if(_t&&_t.registerDep(G,J),!Y.el){const pt=G.subTree=rn(Ho);g(null,pt,K,rt)}return}J(G,Y,K,rt,_t,L,U)},F=(Y,K,rt)=>{const X=K.component=Y.component;if(RW(Y,K,rt))if(X.asyncDep&&!X.asyncResolved){I(X,K,rt);return}else X.next=K,EW(X.update),X.update();else K.el=Y.el,X.vnode=K},J=(Y,K,rt,X,_t,L,U)=>{const G=()=>{if(Y.isMounted){let{next:Ot,bu:Ct,u:Vt,parent:Qt,vnode:te}=Y,Kt=Ot,ue;su(Y,!1),Ot?(Ot.el=te.el,I(Y,Ot,U)):Ot=te,Ct&&Wl(Ct),(ue=Ot.props&&Ot.props.onVnodeBeforeUpdate)&&Yo(ue,Qt,Ot,te),su(Y,!0);const Me=k1(Y),en=Y.subTree;Y.subTree=Me,v(en,Me,f(en.el),et(en),Y,_t,L),Ot.el=Me.el,Kt===null&&yk(Y,Me.el),Vt&&go(Vt,_t),(ue=Ot.props&&Ot.props.onVnodeUpdated)&&go(()=>Yo(ue,Qt,Ot,te),_t)}else{let Ot;const{el:Ct,props:Vt}=K,{bm:Qt,m:te,parent:Kt}=Y,ue=Du(K);if(su(Y,!1),Qt&&Wl(Qt),!ue&&(Ot=Vt&&Vt.onVnodeBeforeMount)&&Yo(Ot,Kt,K),su(Y,!0),Ct&>){const Me=()=>{Y.subTree=k1(Y),gt(Ct,Y.subTree,Y,_t,null)};ue?K.type.__asyncLoader().then(()=>!Y.isUnmounted&&Me()):Me()}else{const Me=Y.subTree=k1(Y);v(null,Me,rt,X,Y,_t,L),K.el=Me.el}if(te&&go(te,_t),!ue&&(Ot=Vt&&Vt.onVnodeMounted)){const Me=K;go(()=>Yo(Ot,Kt,Me),_t)}(K.shapeFlag&256||Kt&&Du(Kt.vnode)&&Kt.vnode.shapeFlag&256)&&Y.a&&go(Y.a,_t),Y.isMounted=!0,K=rt=X=null}},pt=Y.effect=new uk(G,()=>l0(mt),Y.scope),mt=Y.update=()=>pt.run();mt.id=Y.uid,su(Y,!0),mt()},I=(Y,K,rt)=>{K.component=Y;const X=Y.vnode.props;Y.vnode=K,Y.next=null,fU(Y,K.props,X,rt),pU(Y,K.children,rt),Ff(),aS(),qf()},D=(Y,K,rt,X,_t,L,U,G,pt=!1)=>{const mt=Y&&Y.children,Ot=Y?Y.shapeFlag:0,Ct=K.children,{patchFlag:Vt,shapeFlag:Qt}=K;if(Vt>0){if(Vt&128){M(mt,Ct,rt,X,_t,L,U,G,pt);return}else if(Vt&256){C(mt,Ct,rt,X,_t,L,U,G,pt);return}}Qt&8?(Ot&16&&dt(mt,_t,L),Ct!==mt&&l(rt,Ct)):Ot&16?Qt&16?M(mt,Ct,rt,X,_t,L,U,G,pt):dt(mt,_t,L,!0):(Ot&8&&l(rt,""),Qt&16&&_(Ct,rt,X,_t,L,U,G,pt))},C=(Y,K,rt,X,_t,L,U,G,pt)=>{Y=Y||Hl,K=K||Hl;const mt=Y.length,Ot=K.length,Ct=Math.min(mt,Ot);let Vt;for(Vt=0;Vt<Ct;Vt++){const Qt=K[Vt]=pt?lc(K[Vt]):Ei(K[Vt]);v(Y[Vt],Qt,rt,null,_t,L,U,G,pt)}mt>Ot?dt(Y,_t,L,!0,!1,Ct):_(K,rt,X,_t,L,U,G,pt,Ct)},M=(Y,K,rt,X,_t,L,U,G,pt)=>{let mt=0;const Ot=K.length;let Ct=Y.length-1,Vt=Ot-1;for(;mt<=Ct&&mt<=Vt;){const Qt=Y[mt],te=K[mt]=pt?lc(K[mt]):Ei(K[mt]);if(la(Qt,te))v(Qt,te,rt,null,_t,L,U,G,pt);else break;mt++}for(;mt<=Ct&&mt<=Vt;){const Qt=Y[Ct],te=K[Vt]=pt?lc(K[Vt]):Ei(K[Vt]);if(la(Qt,te))v(Qt,te,rt,null,_t,L,U,G,pt);else break;Ct--,Vt--}if(mt>Ct){if(mt<=Vt){const Qt=Vt+1,te=Qt<Ot?K[Qt].el:X;for(;mt<=Vt;)v(null,K[mt]=pt?lc(K[mt]):Ei(K[mt]),rt,te,_t,L,U,G,pt),mt++}}else if(mt>Vt)for(;mt<=Ct;)B(Y[mt],_t,L,!0),mt++;else{const Qt=mt,te=mt,Kt=new Map;for(mt=te;mt<=Vt;mt++){const Ye=K[mt]=pt?lc(K[mt]):Ei(K[mt]);Ye.key!=null&&Kt.set(Ye.key,mt)}let ue,Me=0;const en=Vt-te+1;let le=!1,xn=0;const Ie=new Array(en);for(mt=0;mt<en;mt++)Ie[mt]=0;for(mt=Qt;mt<=Ct;mt++){const Ye=Y[mt];if(Me>=en){B(Ye,_t,L,!0);continue}let Ke;if(Ye.key!=null)Ke=Kt.get(Ye.key);else for(ue=te;ue<=Vt;ue++)if(Ie[ue-te]===0&&la(Ye,K[ue])){Ke=ue;break}Ke===void 0?B(Ye,_t,L,!0):(Ie[Ke-te]=mt+1,Ke>=xn?xn=Ke:le=!0,v(Ye,K[Ke],rt,null,_t,L,U,G,pt),Me++)}const mn=le?yU(Ie):Hl;for(ue=mn.length-1,mt=en-1;mt>=0;mt--){const Ye=te+mt,Ke=K[Ye],qn=Ye+1<Ot?K[Ye+1].el:X;Ie[mt]===0?v(null,Ke,rt,qn,_t,L,U,G,pt):le&&(ue<0||mt!==mn[ue]?P(Ke,rt,qn,2):ue--)}}},P=(Y,K,rt,X,_t=null)=>{const{el:L,type:U,transition:G,children:pt,shapeFlag:mt}=Y;if(mt&6){P(Y.component.subTree,K,rt,X);return}if(mt&128){Y.suspense.move(K,rt,X);return}if(mt&64){U.move(Y,K,rt,bt);return}if(U===Fo){r(L,K,rt);for(let Ct=0;Ct<pt.length;Ct++)P(pt[Ct],K,rt,X);r(Y.anchor,K,rt);return}if(U===Ud){b(Y,K,rt);return}if(X!==2&&mt&1&&G)if(X===0)G.beforeEnter(L),r(L,K,rt),go(()=>G.enter(L),_t);else{const{leave:Ct,delayLeave:Vt,afterLeave:Qt}=G,te=()=>r(L,K,rt),Kt=()=>{Ct(L,()=>{te(),Qt&&Qt()})};Vt?Vt(L,te,Kt):Kt()}else r(L,K,rt)},B=(Y,K,rt,X=!1,_t=!1)=>{const{type:L,props:U,ref:G,children:pt,dynamicChildren:mt,shapeFlag:Ot,patchFlag:Ct,dirs:Vt}=Y;if(G!=null&&Um(G,null,rt,Y,!0),Ot&256){K.ctx.deactivate(Y);return}const Qt=Ot&1&&Vt,te=!Du(Y);let Kt;if(te&&(Kt=U&&U.onVnodeBeforeUnmount)&&Yo(Kt,K,Y),Ot&6)N(Y.component,rt,X);else{if(Ot&128){Y.suspense.unmount(rt,X);return}Qt&&Wa(Y,null,K,"beforeUnmount"),Ot&64?Y.type.remove(Y,K,rt,_t,bt,X):mt&&(L!==Fo||Ct>0&&Ct&64)?dt(mt,K,rt,!1,!0):(L===Fo&&Ct&384||!_t&&Ot&16)&&dt(pt,K,rt),X&&A(Y)}(te&&(Kt=U&&U.onVnodeUnmounted)||Qt)&&go(()=>{Kt&&Yo(Kt,K,Y),Qt&&Wa(Y,null,K,"unmounted")},rt)},A=Y=>{const{type:K,el:rt,anchor:X,transition:_t}=Y;if(K===Fo){W(rt,X);return}if(K===Ud){w(Y);return}const L=()=>{o(rt),_t&&!_t.persisted&&_t.afterLeave&&_t.afterLeave()};if(Y.shapeFlag&1&&_t&&!_t.persisted){const{leave:U,delayLeave:G}=_t,pt=()=>U(rt,L);G?G(Y.el,L,pt):pt()}else L()},W=(Y,K)=>{let rt;for(;Y!==K;)rt=d(Y),o(Y),Y=rt;o(K)},N=(Y,K,rt)=>{const{bum:X,scope:_t,update:L,subTree:U,um:G}=Y;X&&Wl(X),_t.stop(),L&&(L.active=!1,B(U,Y,K,rt)),G&&go(G,K),go(()=>{Y.isUnmounted=!0},K),K&&K.pendingBranch&&!K.isUnmounted&&Y.asyncDep&&!Y.asyncResolved&&Y.suspenseId===K.pendingId&&(K.deps--,K.deps===0&&K.resolve())},dt=(Y,K,rt,X=!1,_t=!1,L=0)=>{for(let U=L;U<Y.length;U++)B(Y[U],K,rt,X,_t)},et=Y=>Y.shapeFlag&6?et(Y.component.subTree):Y.shapeFlag&128?Y.suspense.next():d(Y.anchor||Y.el),yt=(Y,K,rt)=>{Y==null?K._vnode&&B(K._vnode,null,null,!0):v(K._vnode||null,Y,K,null,null,null,rt),aS(),Fm(),K._vnode=Y},bt={p:v,um:B,m:P,r:A,mt:O,mc:_,pc:D,pbc:$,n:et,o:e};let jt,gt;return t&&([jt,gt]=t(bt)),{render:yt,hydrate:jt,createApp:uU(yt,jt)}}function su({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function aI(e,t,n=!1){const r=e.children,o=t.children;if(Pe(r)&&Pe(o))for(let i=0;i<r.length;i++){const a=r[i];let s=o[i];s.shapeFlag&1&&!s.dynamicChildren&&((s.patchFlag<=0||s.patchFlag===32)&&(s=o[i]=lc(o[i]),s.el=a.el),n||aI(a,s)),s.type===vf&&(s.el=a.el)}}function yU(e){const t=e.slice(),n=[0];let r,o,i,a,s;const c=e.length;for(r=0;r<c;r++){const u=e[r];if(u!==0){if(o=n[n.length-1],e[o]<u){t[r]=o,n.push(r);continue}for(i=0,a=n.length-1;i<a;)s=i+a>>1,e[n[s]]<u?i=s+1:a=s;u<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,a=n[i-1];i-- >0;)n[i]=a,a=t[a];return n}const bU=e=>e.__isTeleport,Fo=Symbol.for("v-fgt"),vf=Symbol.for("v-txt"),Ho=Symbol.for("v-cmt"),Ud=Symbol.for("v-stc"),Kd=[];let Ti=null;function Vn(e=!1){Kd.push(Ti=e?null:[])}function sI(){Kd.pop(),Ti=Kd[Kd.length-1]||null}let mf=1;function bS(e){mf+=e}function cI(e){return e.dynamicChildren=mf>0?Ti||Hl:null,sI(),mf>0&&Ti&&Ti.push(e),e}function li(e,t,n,r,o,i){return cI(nr(e,t,n,r,o,i,!0))}function jo(e,t,n,r,o){return cI(rn(e,t,n,r,o,!0))}function gf(e){return e?e.__v_isVNode===!0:!1}function la(e,t){return e.type===t.type&&e.key===t.key}const v0="__vInternal",uI=({key:e})=>e??null,cm=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?qr(e)||Zr(e)||Ge(e)?{i:so,r:e,k:t,f:!!n}:e:null);function nr(e,t=null,n=null,r=0,o=null,i=e===Fo?0:1,a=!1,s=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&uI(t),ref:t&&cm(t),scopeId:d0,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:so};return s?(Sk(c,n),i&128&&e.normalize(c)):n&&(c.shapeFlag|=qr(n)?8:16),mf>0&&!a&&Ti&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&Ti.push(c),c}const rn=wU;function wU(e,t=null,n=null,r=0,o=null,i=!1){if((!e||e===J9)&&(e=Ho),gf(e)){const s=Bs(e,t,!0);return n&&Sk(s,n),mf>0&&!i&&Ti&&(s.shapeFlag&6?Ti[Ti.indexOf(e)]=s:Ti.push(s)),s.patchFlag|=-2,s}if(EU(e)&&(e=e.__vccOpts),t){t=_k(t);let{class:s,style:c}=t;s&&!qr(s)&&(t.class=Qr(s)),ir(c)&&(S9(c)&&!Pe(c)&&(c=to({},c)),t.style=Rc(c))}const a=qr(e)?1:I9(e)?128:bU(e)?64:ir(e)?4:Ge(e)?2:0;return nr(e,t,n,r,o,a,i,!0)}function _k(e){return e?S9(e)||v0 in e?to({},e):e:null}function Bs(e,t,n=!1){const{props:r,ref:o,patchFlag:i,children:a}=e,s=t?$k(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&uI(s),ref:t&&t.ref?n&&o?Pe(o)?o.concat(cm(t)):[o,cm(t)]:cm(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Fo?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Bs(e.ssContent),ssFallback:e.ssFallback&&Bs(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Ou(e=" ",t=0){return rn(vf,null,e,t)}function qa(e="",t=!1){return t?(Vn(),jo(Ho,null,e)):rn(Ho,null,e)}function Ei(e){return e==null||typeof e=="boolean"?rn(Ho):Pe(e)?rn(Fo,null,e.slice()):typeof e=="object"?lc(e):rn(vf,null,String(e))}function lc(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Bs(e)}function Sk(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Pe(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),Sk(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(v0 in t)?t._ctx=so:o===3&&so&&(so.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ge(t)?(t={default:t,_ctx:so},n=32):(t=String(t),r&64?(n=16,t=[Ou(t)]):n=8);e.children=t,e.shapeFlag|=n}function $k(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const o in r)if(o==="class")t.class!==r.class&&(t.class=Qr([t.class,r.class]));else if(o==="style")t.style=Rc([t.style,r.style]);else if(cp(o)){const i=t[o],a=r[o];a&&i!==a&&!(Pe(i)&&i.includes(a))&&(t[o]=i?[].concat(i,a):a)}else o!==""&&(t[o]=r[o])}return t}function Yo(e,t,n,r=null){Li(e,t,7,[n,r])}const xU=X9();let kU=0;function jU(e,t,n){const r=e.type,o=(t?t.appContext:e.appContext)||xU,i={uid:kU++,vnode:e,type:r,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new qV(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:eI(r,o),emitsOptions:R9(r,o),emit:null,emitted:null,propsDefaults:wr,inheritAttrs:r.inheritAttrs,ctx:wr,data:wr,props:wr,attrs:wr,slots:wr,refs:wr,setupState:wr,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=MW.bind(null,i),e.ce&&e.ce(i),i}let Xr=null;const Ks=()=>Xr||so;let Ck,gl,wS="__VUE_INSTANCE_SETTERS__";(gl=hb()[wS])||(gl=hb()[wS]=[]),gl.push(e=>Xr=e),Ck=e=>{gl.length>1?gl.forEach(t=>t(e)):gl[0](e)};const Nc=e=>{Ck(e),e.scope.on()},$c=()=>{Xr&&Xr.scope.off(),Ck(null)};function lI(e){return e.vnode.shapeFlag&4}let yf=!1;function _U(e,t=!1){yf=t;const{props:n,children:r}=e.vnode,o=lI(e);lU(e,n,o,t),hU(e,r);const i=o?SU(e,t):void 0;return yf=!1,i}function SU(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=$9(new Proxy(e.ctx,nU));const{setup:r}=n;if(r){const o=e.setupContext=r.length>1?CU(e):null;Nc(e),Ff();const i=Sc(r,e,0,[e.props,o]);if(qf(),$c(),ik(i)){if(i.then($c,$c),t)return i.then(a=>{_b(e,a,t)}).catch(a=>{Hf(a,e,0)});e.asyncDep=i}else _b(e,i,t)}else fI(e,t)}function _b(e,t,n){Ge(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ir(t)&&(e.setupState=O9(t)),fI(e,n)}let xS;function fI(e,t,n){const r=e.type;if(!e.render){if(!t&&xS&&!r.render){const o=r.template||kk(e).template;if(o){const{isCustomElement:i,compilerOptions:a}=e.appContext.config,{delimiters:s,compilerOptions:c}=r,u=to(to({isCustomElement:i,delimiters:s},a),c);r.render=xS(o,u)}}e.render=r.render||ba}Nc(e),Ff(),rU(e),qf(),$c()}function $U(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return ri(e,"get","$attrs"),t[n]}}))}function CU(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return $U(e)},slots:e.slots,emit:e.emit,expose:t}}function m0(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(O9($9(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Wd)return Wd[n](e)},has(t,n){return n in t||n in Wd}}))}function Sb(e,t=!0){return Ge(e)?e.displayName||e.name:e.name||t&&e.__name}function EU(e){return Ge(e)&&"__vccOpts"in e}const hr=(e,t)=>SW(e,t,yf);function Vo(e,t,n){const r=arguments.length;return r===2?ir(t)&&!Pe(t)?gf(t)?rn(e,null,[t]):rn(e,t):rn(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&gf(n)&&(n=[n]),rn(e,t,n))}const OU=Symbol.for("v-scx"),MU=()=>mi(OU),dI="3.3.4",AU="http://www.w3.org/2000/svg",ku=typeof document<"u"?document:null,kS=ku&&ku.createElement("template"),PU={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t?ku.createElementNS(AU,e):ku.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>ku.createTextNode(e),createComment:e=>ku.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ku.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,i){const a=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{kS.innerHTML=r?`<svg>${e}</svg>`:e;const s=kS.content;if(r){const c=s.firstChild;for(;c.firstChild;)s.appendChild(c.firstChild);s.removeChild(c)}t.insertBefore(s,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function TU(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function RU(e,t,n){const r=e.style,o=qr(n);if(n&&!o){if(t&&!qr(t))for(const i in t)n[i]==null&&$b(r,i,"");for(const i in n)$b(r,i,n[i])}else{const i=r.display;o?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=i)}}const jS=/\s*!important$/;function $b(e,t,n){if(Pe(n))n.forEach(r=>$b(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=IU(e,t);jS.test(n)?e.setProperty(Bf(r),n.replace(jS,""),"important"):e[r]=n}}const _S=["Webkit","Moz","ms"],E1={};function IU(e,t){const n=E1[t];if(n)return n;let r=os(t);if(r!=="filter"&&r in e)return E1[t]=r;r=c0(r);for(let o=0;o<_S.length;o++){const i=_S[o]+r;if(i in e)return E1[t]=i}return t}const SS="http://www.w3.org/1999/xlink";function NU(e,t,n,r,o){if(r&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(SS,t.slice(6,t.length)):e.setAttributeNS(SS,t,n);else{const i=BV(t);n==null||i&&!d9(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function DU(e,t,n,r,o,i,a){if(t==="innerHTML"||t==="textContent"){r&&a(r,o,i),e[t]=n??"";return}const s=e.tagName;if(t==="value"&&s!=="PROGRESS"&&!s.includes("-")){e._value=n;const u=s==="OPTION"?e.getAttribute("value"):e.value,l=n??"";u!==l&&(e.value=l),n==null&&e.removeAttribute(t);return}let c=!1;if(n===""||n==null){const u=typeof e[t];u==="boolean"?n=d9(n):n==null&&u==="string"?(n="",c=!0):u==="number"&&(n=0,c=!0)}try{e[t]=n}catch{}c&&e.removeAttribute(t)}function $s(e,t,n,r){e.addEventListener(t,n,r)}function LU(e,t,n,r){e.removeEventListener(t,n,r)}function zU(e,t,n,r,o=null){const i=e._vei||(e._vei={}),a=i[t];if(r&&a)a.value=r;else{const[s,c]=BU(t);if(r){const u=i[t]=HU(r,o);$s(e,s,u,c)}else a&&(LU(e,s,a,c),i[t]=void 0)}}const $S=/(?:Once|Passive|Capture)$/;function BU(e){let t;if($S.test(e)){t={};let r;for(;r=e.match($S);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Bf(e.slice(2)),t]}let O1=0;const FU=Promise.resolve(),qU=()=>O1||(FU.then(()=>O1=0),O1=Date.now());function HU(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Li(VU(r,n.value),t,5,[r])};return n.value=e,n.attached=qU(),n}function VU(e,t){if(Pe(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const CS=/^on[a-z]/,WU=(e,t,n,r,o=!1,i,a,s,c)=>{t==="class"?TU(e,r,o):t==="style"?RU(e,n,r):cp(t)?rk(t)||zU(e,t,n,r,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):UU(e,t,r,o))?DU(e,t,r,i,a,s,c):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),NU(e,t,r,o))};function UU(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&CS.test(t)&&Ge(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||CS.test(t)&&qr(n)?!1:t in e}function r4t(e){const t=Ks();if(!t)return;const n=t.ut=(o=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(i=>Eb(i,o))},r=()=>{const o=e(t.proxy);Cb(t.subTree,o),n(o)};qW(r),sl(()=>{const o=new MutationObserver(r);o.observe(t.subTree.el.parentNode,{childList:!0}),pf(()=>o.disconnect())})}function Cb(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Cb(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Eb(e.el,t);else if(e.type===Fo)e.children.forEach(n=>Cb(n,t));else if(e.type===Ud){let{el:n,anchor:r}=e;for(;n&&(Eb(n,t),n!==r);)n=n.nextSibling}}function Eb(e,t){if(e.nodeType===1){const n=e.style;for(const r in t)n.setProperty(`--${r}`,t[r])}}const oc="transition",ud="animation",Ek=(e,{slots:t})=>Vo(KW,KU(e),t);Ek.displayName="Transition";const hI={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};Ek.props=to({},z9,hI);const cu=(e,t=[])=>{Pe(e)?e.forEach(n=>n(...t)):e&&e(...t)},ES=e=>e?Pe(e)?e.some(t=>t.length>1):e.length>1:!1;function KU(e){const t={};for(const R in e)R in hI||(t[R]=e[R]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:u=a,appearToClass:l=s,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,p=JU(o),v=p&&p[0],m=p&&p[1],{onBeforeEnter:g,onEnter:y,onEnterCancelled:b,onLeave:w,onLeaveCancelled:x,onBeforeAppear:k=g,onAppear:E=y,onAppearCancelled:_=b}=t,T=(R,q,O)=>{uu(R,q?l:s),uu(R,q?u:a),O&&O()},$=(R,q)=>{R._isLeaving=!1,uu(R,f),uu(R,h),uu(R,d),q&&q()},j=R=>(q,O)=>{const F=R?E:y,J=()=>T(q,R,O);cu(F,[q,J]),OS(()=>{uu(q,R?c:i),ic(q,R?l:s),ES(F)||MS(q,r,v,J)})};return to(t,{onBeforeEnter(R){cu(g,[R]),ic(R,i),ic(R,a)},onBeforeAppear(R){cu(k,[R]),ic(R,c),ic(R,u)},onEnter:j(!1),onAppear:j(!0),onLeave(R,q){R._isLeaving=!0;const O=()=>$(R,q);ic(R,f),YU(),ic(R,d),OS(()=>{R._isLeaving&&(uu(R,f),ic(R,h),ES(w)||MS(R,r,m,O))}),cu(w,[R,O])},onEnterCancelled(R){T(R,!1),cu(b,[R])},onAppearCancelled(R){T(R,!0),cu(_,[R])},onLeaveCancelled(R){$(R),cu(x,[R])}})}function JU(e){if(e==null)return null;if(ir(e))return[M1(e.enter),M1(e.leave)];{const t=M1(e);return[t,t]}}function M1(e){return l9(e)}function ic(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function uu(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function OS(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let GU=0;function MS(e,t,n,r){const o=e._endId=++GU,i=()=>{o===e._endId&&r()};if(n)return setTimeout(i,n);const{type:a,timeout:s,propCount:c}=QU(e,t);if(!a)return r();const u=a+"end";let l=0;const f=()=>{e.removeEventListener(u,d),i()},d=h=>{h.target===e&&++l>=c&&f()};setTimeout(()=>{l<c&&f()},s+1),e.addEventListener(u,d)}function QU(e,t){const n=window.getComputedStyle(e),r=p=>(n[p]||"").split(", "),o=r(`${oc}Delay`),i=r(`${oc}Duration`),a=AS(o,i),s=r(`${ud}Delay`),c=r(`${ud}Duration`),u=AS(s,c);let l=null,f=0,d=0;t===oc?a>0&&(l=oc,f=a,d=i.length):t===ud?u>0&&(l=ud,f=u,d=c.length):(f=Math.max(a,u),l=f>0?a>u?oc:ud:null,d=l?l===oc?i.length:c.length:0);const h=l===oc&&/\b(transform|all)(,|$)/.test(r(`${oc}Property`).toString());return{type:l,timeout:f,propCount:d,hasTransform:h}}function AS(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>PS(n)+PS(e[r])))}function PS(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function YU(){return document.body.offsetHeight}const Dc=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Pe(t)?n=>Wl(t,n):t};function XU(e){e.target.composing=!0}function TS(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const RS={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e._assign=Dc(o);const i=r||o.props&&o.props.type==="number";$s(e,t?"change":"input",a=>{if(a.target.composing)return;let s=e.value;n&&(s=s.trim()),i&&(s=Lm(s)),e._assign(s)}),n&&$s(e,"change",()=>{e.value=e.value.trim()}),t||($s(e,"compositionstart",XU),$s(e,"compositionend",TS),$s(e,"change",TS))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:o}},i){if(e._assign=Dc(i),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(o||e.type==="number")&&Lm(e.value)===t))return;const a=t??"";e.value!==a&&(e.value=a)}},ZU={deep:!0,created(e,t,n){e._assign=Dc(n),$s(e,"change",()=>{const r=e._modelValue,o=bf(e),i=e.checked,a=e._assign;if(Pe(r)){const s=sk(r,o),c=s!==-1;if(i&&!c)a(r.concat(o));else if(!i&&c){const u=[...r];u.splice(s,1),a(u)}}else if(Lf(r)){const s=new Set(r);i?s.add(o):s.delete(o),a(s)}else a(pI(e,i))})},mounted:IS,beforeUpdate(e,t,n){e._assign=Dc(n),IS(e,t,n)}};function IS(e,{value:t,oldValue:n},r){e._modelValue=t,Pe(t)?e.checked=sk(t,r.props.value)>-1:Lf(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=Hu(t,pI(e,!0)))}const tK={created(e,{value:t},n){e.checked=Hu(t,n.props.value),e._assign=Dc(n),$s(e,"change",()=>{e._assign(bf(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=Dc(r),t!==n&&(e.checked=Hu(t,r.props.value))}},eK={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const o=Lf(t);$s(e,"change",()=>{const i=Array.prototype.filter.call(e.options,a=>a.selected).map(a=>n?Lm(bf(a)):bf(a));e._assign(e.multiple?o?new Set(i):i:i[0])}),e._assign=Dc(r)},mounted(e,{value:t}){NS(e,t)},beforeUpdate(e,t,n){e._assign=Dc(n)},updated(e,{value:t}){NS(e,t)}};function NS(e,t){const n=e.multiple;if(!(n&&!Pe(t)&&!Lf(t))){for(let r=0,o=e.options.length;r<o;r++){const i=e.options[r],a=bf(i);if(n)Pe(t)?i.selected=sk(t,a)>-1:i.selected=t.has(a);else if(Hu(bf(i),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function bf(e){return"_value"in e?e._value:e.value}function pI(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const nK={created(e,t,n){Jp(e,t,n,null,"created")},mounted(e,t,n){Jp(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){Jp(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){Jp(e,t,n,r,"updated")}};function rK(e,t){switch(e){case"SELECT":return eK;case"TEXTAREA":return RS;default:switch(t){case"checkbox":return ZU;case"radio":return tK;default:return RS}}}function Jp(e,t,n,r,o){const a=rK(e.tagName,n.props&&n.props.type)[o];a&&a(e,t,n,r)}const vI=to({patchProp:WU},PU);let Jd,DS=!1;function oK(){return Jd||(Jd=mU(vI))}function iK(){return Jd=DS?Jd:gU(vI),DS=!0,Jd}const aK=(...e)=>{const t=oK().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=mI(r);if(!o)return;const i=t._component;!Ge(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.innerHTML="";const a=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),a},t},sK=(...e)=>{const t=iK().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=mI(r);if(o)return n(o,!0,o instanceof SVGElement)},t};function mI(e){return qr(e)?document.querySelector(e):e}const cK=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,uK=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,lK=/^\s*["[{]|^\s*-?\d[\d.]{0,14}\s*$/;function fK(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){dK(e);return}return t}function dK(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function Km(e,t={}){if(typeof e!="string")return e;const n=e.trim();if(e[0]==='"'&&e[e.length-1]==='"')return n.slice(1,-1);if(n.length<=9){const r=n.toLowerCase();if(r==="true")return!0;if(r==="false")return!1;if(r==="undefined")return;if(r==="null")return null;if(r==="nan")return Number.NaN;if(r==="infinity")return Number.POSITIVE_INFINITY;if(r==="-infinity")return Number.NEGATIVE_INFINITY}if(!lK.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(cK.test(e)||uK.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,fK)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}const hK=/#/g,pK=/&/g,vK=/=/g,Ok=/\+/g,mK=/%5e/gi,gK=/%60/gi,yK=/%7c/gi,bK=/%20/gi;function wK(e){return encodeURI(""+e).replace(yK,"|")}function Ob(e){return wK(typeof e=="string"?e:JSON.stringify(e)).replace(Ok,"%2B").replace(bK,"+").replace(hK,"%23").replace(pK,"%26").replace(gK,"`").replace(mK,"^")}function A1(e){return Ob(e).replace(vK,"%3D")}function Jm(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function xK(e){return Jm(e.replace(Ok," "))}function kK(e){return Jm(e.replace(Ok," "))}function gI(e=""){const t={};e[0]==="?"&&(e=e.slice(1));for(const n of e.split("&")){const r=n.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const o=xK(r[1]);if(o==="__proto__"||o==="constructor")continue;const i=kK(r[2]||"");t[o]===void 0?t[o]=i:Array.isArray(t[o])?t[o].push(i):t[o]=[t[o],i]}return t}function jK(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${A1(e)}=${Ob(n)}`).join("&"):`${A1(e)}=${Ob(t)}`:A1(e)}function _K(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>jK(t,e[t])).filter(Boolean).join("&")}const SK=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,$K=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,CK=/^([/\\]\s*){2,}[^/\\]/;function Vf(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?SK.test(e):$K.test(e)||(t.acceptRelative?CK.test(e):!1)}const EK=/^[\s\0]*(blob|data|javascript|vbscript):$/;function OK(e){return!!e&&EK.test(e)}const MK=/\/$|\/\?/;function Mb(e="",t=!1){return t?MK.test(e):e.endsWith("/")}function Mk(e="",t=!1){if(!t)return(Mb(e)?e.slice(0,-1):e)||"/";if(!Mb(e,!0))return e||"/";const[n,...r]=e.split("?");return(n.slice(0,-1)||"/")+(r.length>0?`?${r.join("?")}`:"")}function Gm(e="",t=!1){if(!t)return e.endsWith("/")?e:e+"/";if(Mb(e,!0))return e||"/";const[n,...r]=e.split("?");return n+"/"+(r.length>0?`?${r.join("?")}`:"")}function AK(e=""){return e.startsWith("/")}function LS(e=""){return AK(e)?e:"/"+e}function yI(e,t){if(wI(t)||Vf(e))return e;const n=Mk(t);return e.startsWith(n)?e:dp(n,e)}function zS(e,t){if(wI(t))return e;const n=Mk(t);if(!e.startsWith(n))return e;const r=e.slice(n.length);return r[0]==="/"?r:"/"+r}function bI(e,t){const n=hp(e),r={...gI(n.search),...t};return n.search=_K(r),IK(n)}function wI(e){return!e||e==="/"}function PK(e){return e&&e!=="/"}const TK=/^\.?\//;function dp(e,...t){let n=e||"";for(const r of t.filter(o=>PK(o)))if(n){const o=r.replace(TK,"");n=Gm(n)+o}else n=r;return n}function RK(e,t,n={}){return n.trailingSlash||(e=Gm(e),t=Gm(t)),n.leadingSlash||(e=LS(e),t=LS(t)),n.encoding||(e=Jm(e),t=Jm(t)),e===t}function hp(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/);if(n){const[,f,d=""]=n;return{protocol:f,pathname:d,href:f+d,auth:"",host:"",search:"",hash:""}}if(!Vf(e,{acceptRelative:!0}))return t?hp(t+e):BS(e);const[,r="",o,i=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,a="",s=""]=i.match(/([^#/?]*)(.*)?/)||[],{pathname:c,search:u,hash:l}=BS(s.replace(/\/(?=[A-Za-z]:)/,""));return{protocol:r,auth:o?o.slice(0,Math.max(0,o.length-1)):"",host:a,pathname:c,search:u,hash:l}}function BS(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function IK(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",r=e.hash||"",o=e.auth?e.auth+"@":"",i=e.host||"";return(e.protocol?e.protocol+"//":"")+o+i+t+n+r}class NK extends Error{constructor(t,n){super(t,n),this.name="FetchError",n!=null&&n.cause&&!this.cause&&(this.cause=n.cause)}}function DK(e){var c,u,l,f,d;const t=((c=e.error)==null?void 0:c.message)||((u=e.error)==null?void 0:u.toString())||"",n=((l=e.request)==null?void 0:l.method)||((f=e.options)==null?void 0:f.method)||"GET",r=((d=e.request)==null?void 0:d.url)||String(e.request)||"/",o=`[${n}] ${JSON.stringify(r)}`,i=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",a=`${o}: ${i}${t?` ${t}`:""}`,s=new NK(a,e.error?{cause:e.error}:void 0);for(const h of["request","options","response"])Object.defineProperty(s,h,{get(){return e[h]}});for(const[h,p]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(s,h,{get(){return e.response&&e.response[p]}});return s}const LK=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function FS(e="GET"){return LK.has(e.toUpperCase())}function zK(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const BK=new Set(["image/svg","application/xml","application/xhtml","application/html"]),FK=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function qK(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return FK.test(t)?"json":BK.has(t)||t.startsWith("text/")?"text":"blob"}function HK(e,t,n=globalThis.Headers){const r={...t,...e};if(t!=null&&t.params&&(e!=null&&e.params)&&(r.params={...t==null?void 0:t.params,...e==null?void 0:e.params}),t!=null&&t.query&&(e!=null&&e.query)&&(r.query={...t==null?void 0:t.query,...e==null?void 0:e.query}),t!=null&&t.headers&&(e!=null&&e.headers)){r.headers=new n((t==null?void 0:t.headers)||{});for(const[o,i]of new n((e==null?void 0:e.headers)||{}))r.headers.set(o,i)}return r}const VK=new Set([408,409,425,429,500,502,503,504]),WK=new Set([101,204,205,304]);function xI(e={}){const{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=e;async function o(s){const c=s.error&&s.error.name==="AbortError"&&!s.options.timeout||!1;if(s.options.retry!==!1&&!c){let l;typeof s.options.retry=="number"?l=s.options.retry:l=FS(s.options.method)?0:1;const f=s.response&&s.response.status||500;if(l>0&&(Array.isArray(s.options.retryStatusCodes)?s.options.retryStatusCodes.includes(f):VK.has(f))){const d=s.options.retryDelay||0;return d>0&&await new Promise(h=>setTimeout(h,d)),i(s.request,{...s.options,retry:l-1,timeout:s.options.timeout})}}const u=DK(s);throw Error.captureStackTrace&&Error.captureStackTrace(u,i),u}const i=async function(c,u={}){var d;const l={request:c,options:HK(u,e.defaults,n),response:void 0,error:void 0};if(l.options.method=(d=l.options.method)==null?void 0:d.toUpperCase(),l.options.onRequest&&await l.options.onRequest(l),typeof l.request=="string"&&(l.options.baseURL&&(l.request=yI(l.request,l.options.baseURL)),(l.options.query||l.options.params)&&(l.request=bI(l.request,{...l.options.params,...l.options.query}))),l.options.body&&FS(l.options.method)&&(zK(l.options.body)?(l.options.body=typeof l.options.body=="string"?l.options.body:JSON.stringify(l.options.body),l.options.headers=new n(l.options.headers||{}),l.options.headers.has("content-type")||l.options.headers.set("content-type","application/json"),l.options.headers.has("accept")||l.options.headers.set("accept","application/json")):("pipeTo"in l.options.body&&typeof l.options.body.pipeTo=="function"||typeof l.options.body.pipe=="function")&&("duplex"in l.options||(l.options.duplex="half"))),!l.options.signal&&l.options.timeout){const h=new r;setTimeout(()=>h.abort(),l.options.timeout),l.options.signal=h.signal}try{l.response=await t(l.request,l.options)}catch(h){return l.error=h,l.options.onRequestError&&await l.options.onRequestError(l),await o(l)}if(l.response.body&&!WK.has(l.response.status)&&l.options.method!=="HEAD"){const h=(l.options.parseResponse?"json":l.options.responseType)||qK(l.response.headers.get("content-type")||"");switch(h){case"json":{const p=await l.response.text(),v=l.options.parseResponse||Km;l.response._data=v(p);break}case"stream":{l.response._data=l.response.body;break}default:l.response._data=await l.response[h]()}}return l.options.onResponse&&await l.options.onResponse(l),!l.options.ignoreResponseError&&l.response.status>=400&&l.response.status<600?(l.options.onResponseError&&await l.options.onResponseError(l),await o(l)):l.response},a=async function(c,u){return(await i(c,u))._data};return a.raw=i,a.native=(...s)=>t(...s),a.create=(s={})=>xI({...e,defaults:{...e.defaults,...s}}),a}const Ak=function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}(),UK=Ak.fetch||(()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!"))),KK=Ak.Headers,JK=Ak.AbortController,GK=xI({fetch:UK,Headers:KK,AbortController:JK}),QK=GK,YK=()=>{var e;return((e=window==null?void 0:window.__NUXT__)==null?void 0:e.config)||{}},Qm=YK().app,XK=()=>Qm.baseURL,ZK=()=>Qm.buildAssetsDir,tJ=(...e)=>dp(kI(),ZK(),...e),kI=(...e)=>{const t=Qm.cdnURL||Qm.baseURL;return e.length?dp(t,...e):t};globalThis.__buildAssetsURL=tJ,globalThis.__publicAssetsURL=kI;function Ab(e,t={},n){for(const r in e){const o=e[r],i=n?`${n}:${r}`:r;typeof o=="object"&&o!==null?Ab(o,t,i):typeof o=="function"&&(t[i]=o)}return t}const eJ={run:e=>e()},nJ=()=>eJ,jI=typeof console.createTask<"u"?console.createTask:nJ;function rJ(e,t){const n=t.shift(),r=jI(n);return e.reduce((o,i)=>o.then(()=>r.run(()=>i(...t))),Promise.resolve())}function oJ(e,t){const n=t.shift(),r=jI(n);return Promise.all(e.map(o=>r.run(()=>o(...t))))}function P1(e,t){for(const n of[...e])n(t)}class iJ{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,n,r={}){if(!t||typeof n!="function")return()=>{};const o=t;let i;for(;this._deprecatedHooks[t];)i=this._deprecatedHooks[t],t=i.to;if(i&&!r.allowDeprecated){let a=i.message;a||(a=`${o} hook has been deprecated`+(i.to?`, please use ${i.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(a)||(console.warn(a),this._deprecatedMessages.add(a))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let r,o=(...i)=>(typeof r=="function"&&r(),r=void 0,o=void 0,n(...i));return r=this.hook(t,o),r}removeHook(t,n){if(this._hooks[t]){const r=this._hooks[t].indexOf(n);r!==-1&&this._hooks[t].splice(r,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const r=this._hooks[t]||[];delete this._hooks[t];for(const o of r)this.hook(t,o)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=Ab(t),r=Object.keys(n).map(o=>this.hook(o,n[o]));return()=>{for(const o of r.splice(0,r.length))o()}}removeHooks(t){const n=Ab(t);for(const r in n)this.removeHook(r,n[r])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith(rJ,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(oJ,t,...n)}callHookWith(t,n,...r){const o=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&P1(this._before,o);const i=t(n in this._hooks?[...this._hooks[n]]:[],r);return i instanceof Promise?i.finally(()=>{this._after&&o&&P1(this._after,o)}):(this._after&&o&&P1(this._after,o),i)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const n=this._before.indexOf(t);n!==-1&&this._before.splice(n,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const n=this._after.indexOf(t);n!==-1&&this._after.splice(n,1)}}}}function _I(){return new iJ}function aJ(e={}){let t,n=!1;const r=a=>{if(t&&t!==a)throw new Error("Context conflict")};let o;if(e.asyncContext){const a=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;a?o=new a:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const i=()=>{if(o&&t===void 0){const a=o.getStore();if(a!==void 0)return a}return t};return{use:()=>{const a=i();if(a===void 0)throw new Error("Context is not available");return a},tryUse:()=>i(),set:(a,s)=>{s||r(a),t=a,n=!0},unset:()=>{t=void 0,n=!1},call:(a,s)=>{r(a),t=a;try{return o?o.run(a,s):s()}finally{n||(t=void 0)}},async callAsync(a,s){t=a;const c=()=>{t=a},u=()=>t===a?c:void 0;Pb.add(u);try{const l=o?o.run(a,s):s();return n||(t=void 0),await l}finally{Pb.delete(u)}}}}function sJ(e={}){const t={};return{get(n,r={}){return t[n]||(t[n]=aJ({...e,...r})),t[n],t[n]}}}const Ym=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},qS="__unctx__",cJ=Ym[qS]||(Ym[qS]=sJ()),uJ=(e,t={})=>cJ.get(e,t),HS="__unctx_async_handlers__",Pb=Ym[HS]||(Ym[HS]=new Set);function Xm(e){const t=[];for(const o of Pb){const i=o();i&&t.push(i)}const n=()=>{for(const o of t)o()};let r=e();return r&&typeof r=="object"&&"catch"in r&&(r=r.catch(o=>{throw n(),o})),[r,n]}const SI=uJ("nuxt-app",{asyncContext:!1}),lJ="__nuxt_plugin";function fJ(e){let t=0;const n={provide:void 0,globalName:"nuxt",versions:{get nuxt(){return"3.7.3"},get vue(){return n.vueApp.version}},payload:is({data:{},state:{},_errors:{},...window.__NUXT__??{}}),static:{data:{}},runWithContext:o=>pJ(n,o),isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};t++;let o=!1;return()=>{if(!o&&(o=!0,t--,t===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:{},_payloadRevivers:{},...e};n.hooks=_I(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(o,i)=>{const a="$"+o;Gp(n,a,i),Gp(n.vueApp.config.globalProperties,a,i)},Gp(n.vueApp,"$nuxt",n),Gp(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener("nuxt.preloadError",i=>{n.callHook("app:chunkError",{error:i.payload})}),window.useNuxtApp=window.useNuxtApp||ar;const o=n.hook("app:error",(...i)=>{console.error("[nuxt] error caught during app initialization",...i)});n.hook("app:mounted",o)}const r=is(n.payload.config);return n.provide("config",r),n}async function dJ(e,t){if(t.hooks&&e.hooks.addHooks(t.hooks),typeof t=="function"){const{provide:n}=await e.runWithContext(()=>t(e))||{};if(n&&typeof n=="object")for(const r in n)e.provide(r,n[r])}}async function hJ(e,t){const n=[],r=[];for(const o of t){const i=dJ(e,o);o.parallel?n.push(i.catch(a=>r.push(a))):await i}if(await Promise.all(n),r.length)throw r[0]}/*! @__NO_SIDE_EFFECTS__ */function Js(e){return typeof e=="function"?e:(delete e.name,Object.assign(e.setup||(()=>{}),e,{[lJ]:!0}))}function pJ(e,t,n){const r=()=>n?t(...n):t();return SI.set(e),e.vueApp.runWithContext(r)}/*! @__NO_SIDE_EFFECTS__ */function ar(){var t;let e;if(Z9()&&(e=(t=Ks())==null?void 0:t.appContext.app.$nuxt),e=e||SI.tryUse(),!e)throw new Error("[nuxt] instance unavailable");return e}/*! @__NO_SIDE_EFFECTS__ */function Pk(){return ar().$config}function Gp(e,t,n){Object.defineProperty(e,t,{get:()=>n})}const vJ="modulepreload",mJ=function(e,t){return e[0]==="."?new URL(e,t).href:e},VS={},gJ=function(t,n,r){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=mJ(i,r),i in VS)return;VS[i]=!0;const a=i.endsWith(".css"),s=a?'[rel="stylesheet"]':"";if(!!r)for(let l=o.length-1;l>=0;l--){const f=o[l];if(f.href===i&&(!a||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${s}`))return;const u=document.createElement("link");if(u.rel=a?"stylesheet":vJ,a||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),a)return new Promise((l,f)=>{u.addEventListener("load",l),u.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t()).catch(i=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i})},Cs=(...e)=>gJ(...e).catch(t=>{const n=new Event("nuxt.preloadError");throw n.payload=t,window.dispatchEvent(n),t}),yJ=-1,bJ=-2,wJ=-3,xJ=-4,kJ=-5,jJ=-6;function _J(e,t){return SJ(JSON.parse(e),t)}function SJ(e,t){if(typeof e=="number")return o(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);function o(i,a=!1){if(i===yJ)return;if(i===wJ)return NaN;if(i===xJ)return 1/0;if(i===kJ)return-1/0;if(i===jJ)return-0;if(a)throw new Error("Invalid input");if(i in r)return r[i];const s=n[i];if(!s||typeof s!="object")r[i]=s;else if(Array.isArray(s))if(typeof s[0]=="string"){const c=s[0],u=t==null?void 0:t[c];if(u)return r[i]=u(o(s[1]));switch(c){case"Date":r[i]=new Date(s[1]);break;case"Set":const l=new Set;r[i]=l;for(let h=1;h<s.length;h+=1)l.add(o(s[h]));break;case"Map":const f=new Map;r[i]=f;for(let h=1;h<s.length;h+=2)f.set(o(s[h]),o(s[h+1]));break;case"RegExp":r[i]=new RegExp(s[1],s[2]);break;case"Object":r[i]=Object(s[1]);break;case"BigInt":r[i]=BigInt(s[1]);break;case"null":const d=Object.create(null);r[i]=d;for(let h=1;h<s.length;h+=2)d[s[h]]=o(s[h+1]);break;default:throw new Error(`Unknown type ${c}`)}}else{const c=new Array(s.length);r[i]=c;for(let u=0;u<s.length;u+=1){const l=s[u];l!==bJ&&(c[u]=o(l))}}else{const c={};r[i]=c;for(const u in s){const l=s[u];c[u]=o(l)}}return r[i]}return o(0)}function $J(e){return Array.isArray(e)?e:[e]}const CJ=["title","titleTemplate","script","style","noscript"],um=["base","meta","link","style","script","noscript"],EJ=["title","titleTemplate","templateParams","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"],OJ=["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"],$I=["tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"],MJ=typeof window<"u";function CI(e){let t=9;for(let n=0;n<e.length;)t=Math.imul(t^e.charCodeAt(n++),9**9);return((t^t>>>9)+65536).toString(16).substring(1,8).toLowerCase()}function WS(e){return e._h||CI(e._d?e._d:`${e.tag}:${e.textContent||e.innerHTML||""}:${Object.entries(e.props).map(([t,n])=>`${t}:${String(n)}`).join(",")}`)}function EI(e,t){const{props:n,tag:r}=e;if(OJ.includes(r))return r;if(r==="link"&&n.rel==="canonical")return"canonical";if(n.charset)return"charset";const o=["id"];r==="meta"&&o.push("name","property","http-equiv");for(const i of o)if(typeof n[i]<"u"){const a=String(n[i]);return t&&!t(a)?!1:`${r}:${i}:${a}`}return!1}function US(e,t){return e==null?t||null:typeof e=="function"?e(t):e}async function AJ(e,t,n){const r={tag:e,props:await OI(typeof t=="object"&&typeof t!="function"&&!(t instanceof Promise)?{...t}:{[["script","noscript","style"].includes(e)?"innerHTML":"textContent"]:t},["templateParams","titleTemplate"].includes(e))};return $I.forEach(o=>{const i=typeof r.props[o]<"u"?r.props[o]:n[o];typeof i<"u"&&((!["innerHTML","textContent"].includes(o)||CJ.includes(r.tag))&&(r[o]=i),delete r.props[o])}),r.props.body&&(r.tagPosition="bodyClose",delete r.props.body),r.props.children&&(r.innerHTML=r.props.children,delete r.props.children),r.tag==="script"&&(typeof r.innerHTML=="object"&&(r.innerHTML=JSON.stringify(r.innerHTML),r.props.type=r.props.type||"application/json"),r.innerHTML&&["application/ld+json","application/json"].includes(r.props.type)&&(r.innerHTML=r.innerHTML.replace(/</g,"\\u003C"))),Array.isArray(r.props.content)?r.props.content.map(o=>({...r,props:{...r.props,content:o}})):r}function PJ(e){return typeof e=="object"&&!Array.isArray(e)&&(e=Object.keys(e).filter(t=>e[t])),(Array.isArray(e)?e.join(" "):e).split(" ").filter(t=>t.trim()).filter(Boolean).join(" ")}async function OI(e,t){for(const n of Object.keys(e)){if(n==="class"){e[n]=PJ(e[n]);continue}if(e[n]instanceof Promise&&(e[n]=await e[n]),!t&&!$I.includes(n)){const r=String(e[n]),o=n.startsWith("data-");r==="true"||r===""?e[n]=o?"true":!0:e[n]||(o&&r==="false"?e[n]="false":delete e[n])}}return e}const TJ=10;async function RJ(e){const t=[];return Object.entries(e.resolvedInput).filter(([n,r])=>typeof r<"u"&&EJ.includes(n)).forEach(([n,r])=>{const o=$J(r);t.push(...o.map(i=>AJ(n,i,e)).flat())}),(await Promise.all(t)).flat().filter(Boolean).map((n,r)=>(n._e=e._i,e.mode&&(n._m=e.mode),n._p=(e._i<<TJ)+r,n))}const KS={base:-10,title:10},JS={critical:-80,high:-10,low:20};function Zm(e){let t=100;const n=e.tagPriority;return typeof n=="number"?n:(e.tag==="meta"?(e.props["http-equiv"]==="content-security-policy"&&(t=-30),e.props.charset&&(t=-20),e.props.name==="viewport"&&(t=-15)):e.tag==="link"&&e.props.rel==="preconnect"?t=20:e.tag in KS&&(t=KS[e.tag]),typeof n=="string"&&n in JS?t+JS[n]:t)}const IJ=[{prefix:"before:",offset:-1},{prefix:"after:",offset:1}],ac="%separator";function mu(e,t,n){if(typeof e!="string"||!e.includes("%"))return e;function r(a){let s;return["s","pageTitle"].includes(a)?s=t.pageTitle:a.includes(".")?s=a.split(".").reduce((c,u)=>c&&c[u]||void 0,t):s=t[a],typeof s<"u"?(s||"").replace(/"/g,'\\"'):!1}let o=e;try{o=decodeURI(e)}catch{}return(o.match(/%(\w+\.+\w+)|%(\w+)/g)||[]).sort().reverse().forEach(a=>{const s=r(a.slice(1));typeof s=="string"&&(e=e.replace(new RegExp(`\\${a}(\\W|$)`,"g"),(c,u)=>`${s}${u}`).trim())}),e.includes(ac)&&(e.endsWith(ac)&&(e=e.slice(0,-ac.length).trim()),e.startsWith(ac)&&(e=e.slice(ac.length).trim()),e=e.replace(new RegExp(`\\${ac}\\s*\\${ac}`,"g"),ac),e=mu(e,{separator:n},n)),e}async function NJ(e){const t={tag:e.tagName.toLowerCase(),props:await OI(e.getAttributeNames().reduce((n,r)=>({...n,[r]:e.getAttribute(r)}),{})),innerHTML:e.innerHTML};return t._d=EI(t),t}async function MI(e,t={}){var l;const n=t.document||e.resolvedOptions.document;if(!n)return;const r={shouldRender:e.dirty,tags:[]};if(await e.hooks.callHook("dom:beforeRender",r),!r.shouldRender)return;const o=(await e.resolveTags()).map(f=>({tag:f,id:um.includes(f.tag)?WS(f):f.tag,shouldRender:!0}));let i=e._dom;if(!i){i={elMap:{htmlAttrs:n.documentElement,bodyAttrs:n.body}};for(const f of["body","head"]){const d=(l=n==null?void 0:n[f])==null?void 0:l.children;for(const h of[...d].filter(p=>um.includes(p.tagName.toLowerCase())))i.elMap[h.getAttribute("data-hid")||WS(await NJ(h))]=h}}i.pendingSideEffects={...i.sideEffects||{}},i.sideEffects={};function a(f,d,h){const p=`${f}:${d}`;i.sideEffects[p]=h,delete i.pendingSideEffects[p]}function s({id:f,$el:d,tag:h}){const p=h.tag.endsWith("Attrs");i.elMap[f]=d,p||(["textContent","innerHTML"].forEach(v=>{h[v]&&h[v]!==d[v]&&(d[v]=h[v])}),a(f,"el",()=>{i.elMap[f].remove(),delete i.elMap[f]})),Object.entries(h.props).forEach(([v,m])=>{const g=`attr:${v}`;if(v==="class")for(const y of(m||"").split(" ").filter(Boolean))p&&a(f,`${g}:${y}`,()=>d.classList.remove(y)),!d.classList.contains(y)&&d.classList.add(y);else d.getAttribute(v)!==m&&d.setAttribute(v,m===!0?"":String(m)),p&&a(f,g,()=>d.removeAttribute(v))})}const c=[],u={bodyClose:void 0,bodyOpen:void 0,head:void 0};for(const f of o){const{tag:d,shouldRender:h,id:p}=f;if(h){if(d.tag==="title"){n.title=d.textContent;continue}f.$el=f.$el||i.elMap[p],f.$el?s(f):um.includes(d.tag)&&c.push(f)}}for(const f of c){const d=f.tag.tagPosition||"head";f.$el=n.createElement(f.tag.tag),s(f),u[d]=u[d]||n.createDocumentFragment(),u[d].appendChild(f.$el)}for(const f of o)await e.hooks.callHook("dom:renderTag",f,n,a);u.head&&n.head.appendChild(u.head),u.bodyOpen&&n.body.insertBefore(u.bodyOpen,n.body.firstChild),u.bodyClose&&n.body.appendChild(u.bodyClose),Object.values(i.pendingSideEffects).forEach(f=>f()),e._dom=i,e.dirty=!1,await e.hooks.callHook("dom:rendered",{renders:o})}async function DJ(e,t={}){const n=t.delayFn||(r=>setTimeout(r,10));return e._domUpdatePromise=e._domUpdatePromise||new Promise(r=>n(async()=>{await MI(e,t),delete e._domUpdatePromise,r()}))}function LJ(e){return t=>{var r,o;const n=((o=(r=t.resolvedOptions.document)==null?void 0:r.head.querySelector('script[id="unhead:payload"]'))==null?void 0:o.innerHTML)||!1;return n&&t.push(JSON.parse(n)),{mode:"client",hooks:{"entries:updated":function(i){DJ(i,e)}}}}}const zJ=["templateParams","htmlAttrs","bodyAttrs"],BJ={hooks:{"tag:normalise":function({tag:e}){["hid","vmid","key"].forEach(r=>{e.props[r]&&(e.key=e.props[r],delete e.props[r])});const n=EI(e)||(e.key?`${e.tag}:${e.key}`:!1);n&&(e._d=n)},"tags:resolve":function(e){const t={};e.tags.forEach(r=>{const o=(r.key?`${r.tag}:${r.key}`:r._d)||r._p,i=t[o];if(i){let s=r==null?void 0:r.tagDuplicateStrategy;if(!s&&zJ.includes(r.tag)&&(s="merge"),s==="merge"){const c=i.props;["class","style"].forEach(u=>{r.props[u]&&c[u]&&(u==="style"&&!c[u].endsWith(";")&&(c[u]+=";"),r.props[u]=`${c[u]} ${r.props[u]}`)}),t[o].props={...c,...r.props};return}else if(r._e===i._e){i._duped=i._duped||[],r._d=`${i._d}:${i._duped.length+1}`,i._duped.push(r);return}else if(Zm(r)>Zm(i))return}const a=Object.keys(r.props).length+(r.innerHTML?1:0)+(r.textContent?1:0);if(um.includes(r.tag)&&a===0){delete t[o];return}t[o]=r});const n=[];Object.values(t).forEach(r=>{const o=r._duped;delete r._duped,n.push(r),o&&n.push(...o)}),e.tags=n,e.tags=e.tags.filter(r=>!(r.tag==="meta"&&(r.props.name||r.props.property)&&!r.props.content))}}},FJ={mode:"server",hooks:{"tags:resolve":function(e){const t={};e.tags.filter(n=>["titleTemplate","templateParams","title"].includes(n.tag)&&n._m==="server").forEach(n=>{t[n.tag]=n.tag.startsWith("title")?n.textContent:n.props}),Object.keys(t).length&&e.tags.push({tag:"script",innerHTML:JSON.stringify(t),props:{id:"unhead:payload",type:"application/json"}})}}},GS=["script","link","bodyAttrs"];function QS(e){const t={},n={};return Object.entries(e.props).forEach(([r,o])=>{r.startsWith("on")&&typeof o=="function"?n[r]=o:t[r]=o}),{props:t,eventHandlers:n}}const qJ={hooks:{"ssr:render":function(e){e.tags=e.tags.map(t=>(!GS.includes(t.tag)||!Object.entries(t.props).find(([n,r])=>n.startsWith("on")&&typeof r=="function")||(t.props=QS(t).props),t))},"tags:resolve":function(e){e.tags=e.tags.map(t=>{if(!GS.includes(t.tag))return t;const{props:n,eventHandlers:r}=QS(t);return Object.keys(r).length&&(t.props=n,t._eventHandlers=r),t})},"dom:renderTag":function(e,t,n){if(!e.tag._eventHandlers)return;const r=e.tag.tag==="bodyAttrs"?t.defaultView:e.$el;Object.entries(e.tag._eventHandlers).forEach(([o,i])=>{const a=`${e.tag._d||e.tag._p}:${o}`,s=o.slice(2).toLowerCase(),c=`data-h-${s}`;if(n(e.id,a,()=>{}),e.$el.hasAttribute(c))return;const u=i;e.$el.setAttribute(c,""),r.addEventListener(s,u),e.entry&&n(e.id,a,()=>{r.removeEventListener(s,u),e.$el.removeAttribute(c)})})}}},HJ=["link","style","script","noscript"],VJ={hooks:{"tag:normalise":({tag:e})=>{e.key&&HJ.includes(e.tag)&&(e.props["data-hid"]=e._h=CI(e.key))}}},WJ={hooks:{"tags:resolve":e=>{const t=n=>{var r;return(r=e.tags.find(o=>o._d===n))==null?void 0:r._p};for(const{prefix:n,offset:r}of IJ)for(const o of e.tags.filter(i=>typeof i.tagPriority=="string"&&i.tagPriority.startsWith(n))){const i=t(o.tagPriority.replace(n,""));typeof i<"u"&&(o._p=i+r)}e.tags.sort((n,r)=>n._p-r._p).sort((n,r)=>Zm(n)-Zm(r))}}},UJ={hooks:{"tags:resolve":e=>{var a;const{tags:t}=e,n=(a=t.find(s=>s.tag==="title"))==null?void 0:a.textContent,r=t.findIndex(s=>s.tag==="templateParams"),o=r!==-1?t[r].props:{},i=o.separator||"|";delete o.separator,o.pageTitle=mu(o.pageTitle||n||"",o,i);for(const s of t)s.processTemplateParams!==!1&&(["titleTemplate","title"].includes(s.tag)&&typeof s.textContent=="string"?s.textContent=mu(s.textContent,o,i):s.tag==="meta"&&typeof s.props.content=="string"?s.props.content=mu(s.props.content,o,i):s.tag==="link"&&typeof s.props.href=="string"?s.props.href=mu(s.props.href,o,i):s.processTemplateParams===!0&&(s.innerHTML?s.innerHTML=mu(s.innerHTML,o,i):s.textContent&&(s.textContent=mu(s.textContent,o,i))));e.tags=t.filter(s=>s.tag!=="templateParams")}}},KJ={hooks:{"tags:resolve":e=>{const{tags:t}=e;let n=t.findIndex(o=>o.tag==="titleTemplate");const r=t.findIndex(o=>o.tag==="title");if(r!==-1&&n!==-1){const o=US(t[n].textContent,t[r].textContent);o!==null?t[r].textContent=o||t[r].textContent:delete t[r]}else if(n!==-1){const o=US(t[n].textContent);o!==null&&(t[n].textContent=o,t[n].tag="title",n=-1)}n!==-1&&delete t[n],e.tags=t.filter(Boolean)}}};let AI;function JJ(e={}){const t=GJ(e);return t.use(LJ()),AI=t}function YS(e,t){return!e||e==="server"&&t||e==="client"&&!t}function GJ(e={}){const t=_I();t.addHooks(e.hooks||{}),e.document=e.document||(MJ?document:void 0);const n=!e.document;e.plugins=[BJ,FJ,qJ,VJ,WJ,UJ,KJ,...(e==null?void 0:e.plugins)||[]];const r=()=>{a.dirty=!0,t.callHook("entries:updated",a)};let o=0,i=[];const a={dirty:!1,resolvedOptions:e,hooks:t,headEntries(){return i},use(s){const c=typeof s=="function"?s(a):s;YS(c.mode,n)&&t.addHooks(c.hooks||{})},push(s,c){c==null||delete c.head;const u={_i:o++,input:s,...c};return YS(u.mode,n)&&(i.push(u),r()),{dispose(){i=i.filter(l=>l._i!==u._i),t.callHook("entries:updated",a),r()},patch(l){i=i.map(f=>(f._i===u._i&&(f.input=u.input=l),f)),r()}}},async resolveTags(){const s={tags:[],entries:[...i]};await t.callHook("entries:resolve",s);for(const c of s.entries){const u=c.resolvedInput||c.input;if(c.resolvedInput=await(c.transform?c.transform(u):u),c.resolvedInput)for(const l of await RJ(c)){const f={tag:l,entry:c,resolvedOptions:a.resolvedOptions};await t.callHook("tag:normalise",f),s.tags.push(f.tag)}}return await t.callHook("tags:beforeResolve",s),await t.callHook("tags:resolve",s),s.tags},ssr:n};return e.plugins.forEach(s=>a.use(s)),a.hooks.callHook("init",a),a}function QJ(){return AI}const YJ=dI.startsWith("3");function XJ(e){return typeof e=="function"?e():Ne(e)}function tg(e,t=""){if(e instanceof Promise)return e;const n=XJ(e);return!e||!n?n:Array.isArray(n)?n.map(r=>tg(r,t)):typeof n=="object"?Object.fromEntries(Object.entries(n).map(([r,o])=>r==="titleTemplate"||r.startsWith("on")?[r,Ne(o)]:[r,tg(o,r)])):n}const ZJ={hooks:{"entries:resolve":function(e){for(const t of e.entries)t.resolvedInput=tg(t.input)}}},PI="usehead";function tG(e){return{install(n){YJ&&(n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(PI,e))}}.install}function eG(e={}){e.domDelayFn=e.domDelayFn||(n=>Xc(()=>setTimeout(()=>n(),0)));const t=JJ(e);return t.use(ZJ),t.install=tG(t),t}const Tb=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Rb="__unhead_injection_handler__";function nG(e){Tb[Rb]=e}function rG(){if(Rb in Tb)return Tb[Rb]();const e=mi(PI);return e||QJ()}function oG(e,t={}){const n=t.head||rG();if(n)return n.ssr?n.push(e,t):iG(n,e,t)}function iG(e,t,n={}){const r=Tn(!1),o=Tn({});FW(()=>{o.value=r.value?{}:tg(t)});const i=e.push(o.value,n);return co(o,s=>{i.patch(s)}),Ks()&&(fp(()=>{i.dispose()}),H9(()=>{r.value=!0}),q9(()=>{r.value=!1})),i}const Ib=!1,aG=!1,sG="#__nuxt";function XS(e,t={}){const n=cG(e,t),r=ar(),o=r._payloadCache=r._payloadCache||{};return o[n]||(o[n]=TI(n).then(i=>i||(delete o[n],null))),o[n]}const ZS="json";function cG(e,t={}){const n=new URL(e,"http://localhost");if(n.search)throw new Error("Payload URL cannot contain search params: "+e);if(n.host!=="localhost"||Vf(n.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+e);const r=t.hash||(t.fresh?Date.now():"");return dp(Pk().app.baseURL,n.pathname,r?`_payload.${r}.${ZS}`:`_payload.${ZS}`)}async function TI(e){const t=fetch(e).then(n=>n.text().then(RI));try{return await t}catch(n){console.warn("[nuxt] Cannot load payload ",e,n)}return null}function uG(){return!!ar().payload.prerenderedAt}let Qp=null;async function lG(){if(Qp)return Qp;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=RI(e.textContent||""),n=e.dataset.src?await TI(e.dataset.src):void 0;return Qp={...t,...n,...window.__NUXT__},Qp}function RI(e){return _J(e,ar()._payloadRevivers)}function fG(e,t){ar()._payloadRevivers[e]=t}function T1(e){return e!==null&&typeof e=="object"}function Nb(e,t,n=".",r){if(!T1(t))return Nb(e,{},n,r);const o=Object.assign({},t);for(const i in e){if(i==="__proto__"||i==="constructor")continue;const a=e[i];a!=null&&(r&&r(o,i,a,n)||(Array.isArray(a)&&Array.isArray(o[i])?o[i]=[...a,...o[i]]:T1(a)&&T1(o[i])?o[i]=Nb(a,o[i],(n?`${n}.`:"")+i.toString(),r):o[i]=a))}return o}function II(e){return(...t)=>t.reduce((n,r)=>Nb(n,r,"",e),{})}const dG=II(),hG=II((e,t,n)=>{if(typeof e[t]<"u"&&typeof n=="function")return e[t]=n(e[t]),!0});function pG(e,t){try{return t in e}catch{return!1}}var vG=Object.defineProperty,mG=(e,t,n)=>t in e?vG(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,gu=(e,t,n)=>(mG(e,typeof t!="symbol"?t+"":t,n),n);class Db extends Error{constructor(t,n={}){super(t,n),gu(this,"statusCode",500),gu(this,"fatal",!1),gu(this,"unhandled",!1),gu(this,"statusMessage"),gu(this,"data"),gu(this,"cause"),n.cause&&!this.cause&&(this.cause=n.cause)}toJSON(){const t={message:this.message,statusCode:zb(this.statusCode,500)};return this.statusMessage&&(t.statusMessage=NI(this.statusMessage)),this.data!==void 0&&(t.data=this.data),t}}gu(Db,"__h3_error__",!0);function Lb(e){if(typeof e=="string")return new Db(e);if(gG(e))return e;const t=new Db(e.message??e.statusMessage??"",{cause:e.cause||e});if(pG(e,"stack"))try{Object.defineProperty(t,"stack",{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=zb(e.statusCode,t.statusCode):e.status&&(t.statusCode=zb(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const n=t.statusMessage;NI(t.statusMessage)!==n&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function gG(e){var t;return((t=e==null?void 0:e.constructor)==null?void 0:t.__h3_error__)===!0}const yG=/[^\u0009\u0020-\u007E]/g;function NI(e=""){return e.replace(yG,"")}function zb(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const bG=Symbol("layout-meta"),g0=Symbol("route"),hs=()=>{var e;return(e=ar())==null?void 0:e.$router},Rd=()=>Z9()?mi(g0,ar()._route):ar()._route;/*! @__NO_SIDE_EFFECTS__ */const wG=()=>{try{if(ar()._processingMiddleware)return!0}catch{return!0}return!1},xG=(e,t)=>{e||(e="/");const n=typeof e=="string"?e:bI(e.path||"/",e.query||{})+(e.hash||"");if(t!=null&&t.open){{const{target:s="_blank",windowFeatures:c={}}=t.open,u=Object.entries(c).filter(([l,f])=>f!==void 0).map(([l,f])=>`${l.toLowerCase()}=${f}`).join(", ");open(n,s,u)}return Promise.resolve()}const r=(t==null?void 0:t.external)||Vf(n,{acceptRelative:!0});if(r){if(!(t!=null&&t.external))throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const s=hp(n).protocol;if(s&&OK(s))throw new Error(`Cannot navigate to a URL with '${s}' protocol.`)}const o=wG();if(!r&&o)return e;const i=hs(),a=ar();return r?(t!=null&&t.replace?location.replace(n):location.href=n,o?a.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):t!=null&&t.replace?i.replace(e):i.push(e)},y0=()=>mk(ar().payload,"error"),Rl=e=>{const t=b0(e);try{const n=ar(),r=y0();n.hooks.callHook("app:error",t),r.value=r.value||t}catch{throw t}return t},kG=async(e={})=>{const t=ar(),n=y0();t.callHook("app:error:cleared",e),e.redirect&&await hs().replace(e.redirect),n.value=null},jG=e=>!!(e&&typeof e=="object"&&"__nuxt_error"in e),b0=e=>{const t=Lb(e);return t.__nuxt_error=!0,t},t$={NuxtError:e=>b0(e),EmptyShallowRef:e=>hf(e==="_"?void 0:e==="0n"?BigInt(0):Km(e)),EmptyRef:e=>Tn(e==="_"?void 0:e==="0n"?BigInt(0):Km(e)),ShallowRef:e=>hf(e),ShallowReactive:e=>up(e),Ref:e=>Tn(e),Reactive:e=>is(e)},_G=Js({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,n;for(const r in t$)fG(r,t$[r]);Object.assign(e.payload,([t,n]=Xm(()=>e.runWithContext(lG)),t=await t,n(),t)),window.__NUXT__=e.payload}}),Bb=globalThis.requestIdleCallback||(e=>{const t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),SG=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),$G=e=>{const t=ar();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{Bb(e)}):Bb(e)},CG=()=>null;function Tk(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);let[n,r,o={}]=e;if(typeof n!="string")throw new TypeError("[nuxt] [asyncData] key must be a string.");if(typeof r!="function")throw new TypeError("[nuxt] [asyncData] handler must be a function.");o.server=o.server??!0,o.default=o.default??CG,o.lazy=o.lazy??!1,o.immediate=o.immediate??!0;const i=ar(),a=()=>i.isHydrating?i.payload.data[n]:i.static.data[n],s=()=>a()!==void 0;(!i._asyncData[n]||!o.immediate)&&(i._asyncData[n]={data:Tn(a()??o.default()),pending:Tn(!s()),error:mk(i.payload._errors,n),status:Tn("idle")});const c={...i._asyncData[n]};c.refresh=c.execute=(d={})=>{if(i._asyncDataPromises[n]){if(d.dedupe===!1)return i._asyncDataPromises[n];i._asyncDataPromises[n].cancelled=!0}if((d._initial||i.isHydrating&&d._initial!==!1)&&s())return a();c.pending.value=!0,c.status.value="pending";const h=new Promise((p,v)=>{try{p(r(i))}catch(m){v(m)}}).then(p=>{if(h.cancelled)return i._asyncDataPromises[n];let v=p;o.transform&&(v=o.transform(p)),o.pick&&(v=EG(v,o.pick)),c.data.value=v,c.error.value=null,c.status.value="success"}).catch(p=>{if(h.cancelled)return i._asyncDataPromises[n];c.error.value=p,c.data.value=Ne(o.default()),c.status.value="error"}).finally(()=>{h.cancelled||(c.pending.value=!1,i.payload.data[n]=c.data.value,c.error.value&&(i.payload._errors[n]=b0(c.error.value)),delete i._asyncDataPromises[n])});return i._asyncDataPromises[n]=h,i._asyncDataPromises[n]};const u=()=>c.refresh({_initial:!0}),l=o.server!==!1&&i.payload.serverRendered;{const d=Ks();if(d&&!d._nuxtOnBeforeMountCbs){d._nuxtOnBeforeMountCbs=[];const p=d._nuxtOnBeforeMountCbs;d&&(W9(()=>{p.forEach(v=>{v()}),p.splice(0,p.length)}),pf(()=>p.splice(0,p.length)))}l&&i.isHydrating&&s()?(c.pending.value=!1,c.status.value=c.error.value?"error":"success"):d&&(i.payload.serverRendered&&i.isHydrating||o.lazy)&&o.immediate?d._nuxtOnBeforeMountCbs.push(u):o.immediate&&u(),o.watch&&co(o.watch,()=>c.refresh());const h=i.hook("app:data:refresh",p=>{if(!p||p.includes(n))return c.refresh()});d&&pf(h)}const f=Promise.resolve(i._asyncDataPromises[n]).then(()=>c);return Object.assign(f,c),f}function EG(e,t){const n={};for(const r of t)n[r]=e[r];return n}const OG="$s";function Rk(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);const[n,r]=e;if(!n||typeof n!="string")throw new TypeError("[nuxt] [useState] key must be a string: "+n);if(r!==void 0&&typeof r!="function")throw new Error("[nuxt] [useState] init must be a function: "+r);const o=OG+n,i=ar(),a=mk(i.payload.state,o);if(a.value===void 0&&r){const s=r();if(Zr(s))return i.payload.state[o]=s,s;a.value=s}return a}async function DI(e,t=hs()){const{path:n,matched:r}=t.resolve(e);if(!r.length||(t._routePreloaded||(t._routePreloaded=new Set),t._routePreloaded.has(n)))return;const o=t._preloadPromises=t._preloadPromises||[];if(o.length>4)return Promise.all(o).then(()=>DI(e,t));t._routePreloaded.add(n);const i=r.map(a=>{var s;return(s=a.components)==null?void 0:s.default}).filter(a=>typeof a=="function");for(const a of i){const s=Promise.resolve(a()).catch(()=>{}).finally(()=>o.splice(o.indexOf(s)));o.push(s)}await Promise.all(o)}function MG(e={}){const t=e.path||window.location.pathname;let n={};try{n=Km(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||(n==null?void 0:n.path)!==t||(n==null?void 0:n.expires)<Date.now()){try{sessionStorage.setItem("nuxt:reload",JSON.stringify({path:t,expires:Date.now()+(e.ttl??1e4)}))}catch{}if(e.persistState)try{sessionStorage.setItem("nuxt:reload:state",JSON.stringify({state:ar().payload.state}))}catch{}window.location.pathname!==t?window.location.href=t:window.location.reload()}}const AG=(...e)=>e.find(t=>t!==void 0),PG="noopener noreferrer";/*! @__NO_SIDE_EFFECTS__ */function TG(e){const t=e.componentName||"NuxtLink",n=(r,o)=>{if(!r||e.trailingSlash!=="append"&&e.trailingSlash!=="remove")return r;const i=e.trailingSlash==="append"?Gm:Mk;if(typeof r=="string")return i(r,!0);const a="path"in r?r.path:o(r).path;return{...r,name:void 0,path:i(a,!0)}};return Jo({name:t,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1}},setup(r,{slots:o}){const i=hs(),a=hr(()=>{const f=r.to||r.href||"";return n(f,i.resolve)}),s=hr(()=>r.external||r.target&&r.target!=="_self"?!0:typeof a.value=="object"?!1:a.value===""||Vf(a.value,{acceptRelative:!0})),c=Tn(!1),u=Tn(null),l=f=>{var d;u.value=r.custom?(d=f==null?void 0:f.$el)==null?void 0:d.nextElementSibling:f==null?void 0:f.$el};if(r.prefetch!==!1&&r.noPrefetch!==!0&&r.target!=="_blank"&&!IG()){const d=ar();let h,p=null;sl(()=>{const v=RG();$G(()=>{h=Bb(()=>{var m;(m=u==null?void 0:u.value)!=null&&m.tagName&&(p=v.observe(u.value,async()=>{p==null||p(),p=null;const g=typeof a.value=="string"?a.value:i.resolve(a.value).fullPath;await Promise.all([d.hooks.callHook("link:prefetch",g).catch(()=>{}),!s.value&&DI(a.value,i).catch(()=>{})]),c.value=!0}))})})}),fp(()=>{h&&SG(h),p==null||p(),p=null})}return()=>{var v,m;if(!s.value){const g={ref:l,to:a.value,activeClass:r.activeClass||e.activeClass,exactActiveClass:r.exactActiveClass||e.exactActiveClass,replace:r.replace,ariaCurrentValue:r.ariaCurrentValue,custom:r.custom};return r.custom||(c.value&&(g.class=r.prefetchedClass||e.prefetchedClass),g.rel=r.rel),Vo(eU("RouterLink"),g,o.default)}const f=typeof a.value=="object"?((v=i.resolve(a.value))==null?void 0:v.href)??null:a.value||null,d=r.target||null,h=r.noRel?null:AG(r.rel,e.externalRelAttribute,f?PG:"")||null,p=()=>xG(f,{replace:r.replace});return r.custom?o.default?o.default({href:f,navigate:p,get route(){if(!f)return;const g=hp(f);return{path:g.pathname,fullPath:g.pathname,get query(){return gI(g.search)},hash:g.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:f}},rel:h,target:d,isExternal:s.value,isActive:!1,isExactActive:!1}):null:Vo("a",{ref:u,href:f,rel:h,target:d},(m=o.default)==null?void 0:m.call(o))}}})}const LI=TG({componentName:"NuxtLink"});function RG(){const e=ar();if(e._observer)return e._observer;let t=null;const n=new Map,r=(i,a)=>(t||(t=new IntersectionObserver(s=>{for(const c of s){const u=n.get(c.target);(c.isIntersecting||c.intersectionRatio>0)&&u&&u()}})),n.set(i,a),t.observe(i),()=>{n.delete(i),t.unobserve(i),n.size===0&&(t.disconnect(),t=null)});return e._observer={observe:r}}function IG(){const e=navigator.connection;return!!(e&&(e.saveData||/2g/.test(e.effectiveType)))}const NG={},DG=hG(NG);function LG(){const e=ar();return e._appConfig||(e._appConfig=is(DG)),e._appConfig}const zG=[],BG=Js({name:"nuxt:head",enforce:"pre",setup(e){const t=eG({plugins:zG});nG(()=>ar().vueApp._context.provides.usehead),e.vueApp.use(t);{let n=!0;const r=async()=>{n=!1,await MI(t)};t.hooks.hook("dom:beforeRender",o=>{o.shouldRender=!n}),e.hooks.hook("page:start",()=>{n=!0}),e.hooks.hook("page:finish",()=>{e.isHydrating||r()}),e.hooks.hook("app:error",r),e.hooks.hook("app:suspense:resolve",r)}}});/*!
|
|
2
|
+
* vue-router v4.2.4
|
|
3
|
+
* (c) 2023 Eduardo San Martin Morote
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/const _l=typeof window<"u";function FG(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Gn=Object.assign;function R1(e,t){const n={};for(const r in t){const o=t[r];n[r]=$a(o)?o.map(e):e(o)}return n}const Gd=()=>{},$a=Array.isArray,qG=/\/$/,HG=e=>e.replace(qG,"");function I1(e,t,n="/"){let r,o={},i="",a="";const s=t.indexOf("#");let c=t.indexOf("?");return s<c&&s>=0&&(c=-1),c>-1&&(r=t.slice(0,c),i=t.slice(c+1,s>-1?s:t.length),o=e(i)),s>-1&&(r=r||t.slice(0,s),a=t.slice(s,t.length)),r=KG(r??t,n),{fullPath:r+(i&&"?")+i+a,path:r,query:o,hash:a}}function VG(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function e$(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function WG(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&wf(t.matched[r],n.matched[o])&&zI(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function wf(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function zI(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!UG(e[n],t[n]))return!1;return!0}function UG(e,t){return $a(e)?n$(e,t):$a(t)?n$(t,e):e===t}function n$(e,t){return $a(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function KG(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let i=n.length-1,a,s;for(a=0;a<r.length;a++)if(s=r[a],s!==".")if(s==="..")i>1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(a-(a===r.length?1:0)).join("/")}var kh;(function(e){e.pop="pop",e.push="push"})(kh||(kh={}));var Qd;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Qd||(Qd={}));function JG(e){if(!e)if(_l){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),HG(e)}const GG=/^[^#]+#/;function QG(e,t){return e.replace(GG,"#")+t}function YG(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const w0=()=>({left:window.pageXOffset,top:window.pageYOffset});function XG(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=YG(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function r$(e,t){return(history.state?history.state.position-t:-1)+e}const Fb=new Map;function ZG(e,t){Fb.set(e,t)}function tQ(e){const t=Fb.get(e);return Fb.delete(e),t}let eQ=()=>location.protocol+"//"+location.host;function BI(e,t){const{pathname:n,search:r,hash:o}=t,i=e.indexOf("#");if(i>-1){let s=o.includes(e.slice(i))?e.slice(i).length:1,c=o.slice(s);return c[0]!=="/"&&(c="/"+c),e$(c,"")}return e$(n,e)+r+o}function nQ(e,t,n,r){let o=[],i=[],a=null;const s=({state:d})=>{const h=BI(e,location),p=n.value,v=t.value;let m=0;if(d){if(n.value=h,t.value=d,a&&a===p){a=null;return}m=v?d.position-v.position:0}else r(h);o.forEach(g=>{g(n.value,p,{delta:m,type:kh.pop,direction:m?m>0?Qd.forward:Qd.back:Qd.unknown})})};function c(){a=n.value}function u(d){o.push(d);const h=()=>{const p=o.indexOf(d);p>-1&&o.splice(p,1)};return i.push(h),h}function l(){const{history:d}=window;d.state&&d.replaceState(Gn({},d.state,{scroll:w0()}),"")}function f(){for(const d of i)d();i=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",l)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",l,{passive:!0}),{pauseListeners:c,listen:u,destroy:f}}function o$(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?w0():null}}function rQ(e){const{history:t,location:n}=window,r={value:BI(e,n)},o={value:t.state};o.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(c,u,l){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+c:eQ()+e+c;try{t[l?"replaceState":"pushState"](u,"",d),o.value=u}catch(h){console.error(h),n[l?"replace":"assign"](d)}}function a(c,u){const l=Gn({},t.state,o$(o.value.back,c,o.value.forward,!0),u,{position:o.value.position});i(c,l,!0),r.value=c}function s(c,u){const l=Gn({},o.value,t.state,{forward:c,scroll:w0()});i(l.current,l,!0);const f=Gn({},o$(r.value,c,null),{position:l.position+1},u);i(c,f,!1),r.value=c}return{location:r,state:o,push:s,replace:a}}function FI(e){e=JG(e);const t=rQ(e),n=nQ(e,t.state,t.location,t.replace);function r(i,a=!0){a||n.pauseListeners(),history.go(i)}const o=Gn({location:"",base:e,go:r,createHref:QG.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function oQ(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),FI(e)}function iQ(e){return typeof e=="string"||e&&typeof e=="object"}function qI(e){return typeof e=="string"||typeof e=="symbol"}const Ha={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},HI=Symbol("");var i$;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(i$||(i$={}));function xf(e,t){return Gn(new Error,{type:e,[HI]:!0},t)}function bs(e,t){return e instanceof Error&&HI in e&&(t==null||!!(e.type&t))}const a$="[^/]+?",aQ={sensitive:!1,strict:!1,start:!0,end:!0},sQ=/[.+*?^${}()[\]/\\]/g;function cQ(e,t){const n=Gn({},aQ,t),r=[];let o=n.start?"^":"";const i=[];for(const u of e){const l=u.length?[]:[90];n.strict&&!u.length&&(o+="/");for(let f=0;f<u.length;f++){const d=u[f];let h=40+(n.sensitive?.25:0);if(d.type===0)f||(o+="/"),o+=d.value.replace(sQ,"\\$&"),h+=40;else if(d.type===1){const{value:p,repeatable:v,optional:m,regexp:g}=d;i.push({name:p,repeatable:v,optional:m});const y=g||a$;if(y!==a$){h+=10;try{new RegExp(`(${y})`)}catch(w){throw new Error(`Invalid custom RegExp for param "${p}" (${y}): `+w.message)}}let b=v?`((?:${y})(?:/(?:${y}))*)`:`(${y})`;f||(b=m&&u.length<2?`(?:/${b})`:"/"+b),m&&(b+="?"),o+=b,h+=20,m&&(h+=-8),v&&(h+=-20),y===".*"&&(h+=-50)}l.push(h)}r.push(l)}if(n.strict&&n.end){const u=r.length-1;r[u][r[u].length-1]+=.7000000000000001}n.strict||(o+="/?"),n.end?o+="$":n.strict&&(o+="(?:/|$)");const a=new RegExp(o,n.sensitive?"":"i");function s(u){const l=u.match(a),f={};if(!l)return null;for(let d=1;d<l.length;d++){const h=l[d]||"",p=i[d-1];f[p.name]=h&&p.repeatable?h.split("/"):h}return f}function c(u){let l="",f=!1;for(const d of e){(!f||!l.endsWith("/"))&&(l+="/"),f=!1;for(const h of d)if(h.type===0)l+=h.value;else if(h.type===1){const{value:p,repeatable:v,optional:m}=h,g=p in u?u[p]:"";if($a(g)&&!v)throw new Error(`Provided param "${p}" is an array but it is not repeatable (* or + modifiers)`);const y=$a(g)?g.join("/"):g;if(!y)if(m)d.length<2&&(l.endsWith("/")?l=l.slice(0,-1):f=!0);else throw new Error(`Missing required param "${p}"`);l+=y}}return l||"/"}return{re:a,score:r,keys:i,parse:s,stringify:c}}function uQ(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===40+40?-1:1:e.length>t.length?t.length===1&&t[0]===40+40?1:-1:0}function lQ(e,t){let n=0;const r=e.score,o=t.score;for(;n<r.length&&n<o.length;){const i=uQ(r[n],o[n]);if(i)return i;n++}if(Math.abs(o.length-r.length)===1){if(s$(r))return 1;if(s$(o))return-1}return o.length-r.length}function s$(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const fQ={type:0,value:""},dQ=/[a-zA-Z0-9_]/;function hQ(e){if(!e)return[[]];if(e==="/")return[[fQ]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${u}": ${h}`)}let n=0,r=n;const o=[];let i;function a(){i&&o.push(i),i=[]}let s=0,c,u="",l="";function f(){u&&(n===0?i.push({type:0,value:u}):n===1||n===2||n===3?(i.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:u,regexp:l,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),u="")}function d(){u+=c}for(;s<e.length;){if(c=e[s++],c==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:c==="/"?(u&&f(),a()):c===":"?(f(),n=1):d();break;case 4:d(),n=r;break;case 1:c==="("?n=2:dQ.test(c)?d():(f(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&s--);break;case 2:c===")"?l[l.length-1]=="\\"?l=l.slice(0,-1)+c:n=3:l+=c;break;case 3:f(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&s--,l="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${u}"`),f(),a(),o}function pQ(e,t,n){const r=cQ(hQ(e.path),n),o=Gn(r,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function vQ(e,t){const n=[],r=new Map;t=l$({strict:!1,end:!0,sensitive:!1},t);function o(l){return r.get(l)}function i(l,f,d){const h=!d,p=mQ(l);p.aliasOf=d&&d.record;const v=l$(t,l),m=[p];if("alias"in l){const b=typeof l.alias=="string"?[l.alias]:l.alias;for(const w of b)m.push(Gn({},p,{components:d?d.record.components:p.components,path:w,aliasOf:d?d.record:p}))}let g,y;for(const b of m){const{path:w}=b;if(f&&w[0]!=="/"){const x=f.record.path,k=x[x.length-1]==="/"?"":"/";b.path=f.record.path+(w&&k+w)}if(g=pQ(b,f,v),d?d.alias.push(g):(y=y||g,y!==g&&y.alias.push(g),h&&l.name&&!u$(g)&&a(l.name)),p.children){const x=p.children;for(let k=0;k<x.length;k++)i(x[k],g,d&&d.children[k])}d=d||g,(g.record.components&&Object.keys(g.record.components).length||g.record.name||g.record.redirect)&&c(g)}return y?()=>{a(y)}:Gd}function a(l){if(qI(l)){const f=r.get(l);f&&(r.delete(l),n.splice(n.indexOf(f),1),f.children.forEach(a),f.alias.forEach(a))}else{const f=n.indexOf(l);f>-1&&(n.splice(f,1),l.record.name&&r.delete(l.record.name),l.children.forEach(a),l.alias.forEach(a))}}function s(){return n}function c(l){let f=0;for(;f<n.length&&lQ(l,n[f])>=0&&(l.record.path!==n[f].record.path||!VI(l,n[f]));)f++;n.splice(f,0,l),l.record.name&&!u$(l)&&r.set(l.record.name,l)}function u(l,f){let d,h={},p,v;if("name"in l&&l.name){if(d=r.get(l.name),!d)throw xf(1,{location:l});v=d.record.name,h=Gn(c$(f.params,d.keys.filter(y=>!y.optional).map(y=>y.name)),l.params&&c$(l.params,d.keys.map(y=>y.name))),p=d.stringify(h)}else if("path"in l)p=l.path,d=n.find(y=>y.re.test(p)),d&&(h=d.parse(p),v=d.record.name);else{if(d=f.name?r.get(f.name):n.find(y=>y.re.test(f.path)),!d)throw xf(1,{location:l,currentLocation:f});v=d.record.name,h=Gn({},f.params,l.params),p=d.stringify(h)}const m=[];let g=d;for(;g;)m.unshift(g.record),g=g.parent;return{name:v,path:p,params:h,matched:m,meta:yQ(m)}}return e.forEach(l=>i(l)),{addRoute:i,resolve:u,removeRoute:a,getRoutes:s,getRecordMatcher:o}}function c$(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function mQ(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:gQ(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function gQ(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function u$(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function yQ(e){return e.reduce((t,n)=>Gn(t,n.meta),{})}function l$(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function VI(e,t){return t.children.some(n=>n===e||VI(e,n))}const WI=/#/g,bQ=/&/g,wQ=/\//g,xQ=/=/g,kQ=/\?/g,UI=/\+/g,jQ=/%5B/g,_Q=/%5D/g,KI=/%5E/g,SQ=/%60/g,JI=/%7B/g,$Q=/%7C/g,GI=/%7D/g,CQ=/%20/g;function Ik(e){return encodeURI(""+e).replace($Q,"|").replace(jQ,"[").replace(_Q,"]")}function EQ(e){return Ik(e).replace(JI,"{").replace(GI,"}").replace(KI,"^")}function qb(e){return Ik(e).replace(UI,"%2B").replace(CQ,"+").replace(WI,"%23").replace(bQ,"%26").replace(SQ,"`").replace(JI,"{").replace(GI,"}").replace(KI,"^")}function OQ(e){return qb(e).replace(xQ,"%3D")}function MQ(e){return Ik(e).replace(WI,"%23").replace(kQ,"%3F")}function AQ(e){return e==null?"":MQ(e).replace(wQ,"%2F")}function eg(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function PQ(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;o<r.length;++o){const i=r[o].replace(UI," "),a=i.indexOf("="),s=eg(a<0?i:i.slice(0,a)),c=a<0?null:eg(i.slice(a+1));if(s in t){let u=t[s];$a(u)||(u=t[s]=[u]),u.push(c)}else t[s]=c}return t}function f$(e){let t="";for(let n in e){const r=e[n];if(n=OQ(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}($a(r)?r.map(i=>i&&qb(i)):[r&&qb(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function TQ(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=$a(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const RQ=Symbol(""),d$=Symbol(""),Nk=Symbol(""),QI=Symbol(""),Hb=Symbol("");function ld(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function fc(e,t,n,r,o){const i=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((a,s)=>{const c=f=>{f===!1?s(xf(4,{from:n,to:t})):f instanceof Error?s(f):iQ(f)?s(xf(2,{from:t,to:f})):(i&&r.enterCallbacks[o]===i&&typeof f=="function"&&i.push(f),a())},u=e.call(r&&r.instances[o],t,n,c);let l=Promise.resolve(u);e.length<3&&(l=l.then(c)),l.catch(f=>s(f))})}function N1(e,t,n,r){const o=[];for(const i of e)for(const a in i.components){let s=i.components[a];if(!(t!=="beforeRouteEnter"&&!i.instances[a]))if(IQ(s)){const u=(s.__vccOpts||s)[t];u&&o.push(fc(u,n,r,i,a))}else{let c=s();o.push(()=>c.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${a}" at "${i.path}"`));const l=FG(u)?u.default:u;i.components[a]=l;const d=(l.__vccOpts||l)[t];return d&&fc(d,n,r,i,a)()}))}}return o}function IQ(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function h$(e){const t=mi(Nk),n=mi(QI),r=hr(()=>t.resolve(Ne(e.to))),o=hr(()=>{const{matched:c}=r.value,{length:u}=c,l=c[u-1],f=n.matched;if(!l||!f.length)return-1;const d=f.findIndex(wf.bind(null,l));if(d>-1)return d;const h=p$(c[u-2]);return u>1&&p$(l)===h&&f[f.length-1].path!==h?f.findIndex(wf.bind(null,c[u-2])):d}),i=hr(()=>o.value>-1&&zQ(n.params,r.value.params)),a=hr(()=>o.value>-1&&o.value===n.matched.length-1&&zI(n.params,r.value.params));function s(c={}){return LQ(c)?t[Ne(e.replace)?"replace":"push"](Ne(e.to)).catch(Gd):Promise.resolve()}return{route:r,href:hr(()=>r.value.href),isActive:i,isExactActive:a,navigate:s}}const NQ=Jo({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:h$,setup(e,{slots:t}){const n=is(h$(e)),{options:r}=mi(Nk),o=hr(()=>({[v$(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[v$(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:Vo("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},i)}}}),DQ=NQ;function LQ(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function zQ(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!$a(o)||o.length!==r.length||r.some((i,a)=>i!==o[a]))return!1}return!0}function p$(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const v$=(e,t,n)=>e??t??n,BQ=Jo({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=mi(Hb),o=hr(()=>e.route||r.value),i=mi(d$,0),a=hr(()=>{let u=Ne(i);const{matched:l}=o.value;let f;for(;(f=l[u])&&!f.components;)u++;return u}),s=hr(()=>o.value.matched[a.value]);Gl(d$,hr(()=>a.value+1)),Gl(RQ,s),Gl(Hb,o);const c=Tn();return co(()=>[c.value,s.value,e.name],([u,l,f],[d,h,p])=>{l&&(l.instances[f]=u,h&&h!==l&&u&&u===d&&(l.leaveGuards.size||(l.leaveGuards=h.leaveGuards),l.updateGuards.size||(l.updateGuards=h.updateGuards))),u&&l&&(!h||!wf(l,h)||!d)&&(l.enterCallbacks[f]||[]).forEach(v=>v(u))},{flush:"post"}),()=>{const u=o.value,l=e.name,f=s.value,d=f&&f.components[l];if(!d)return m$(n.default,{Component:d,route:u});const h=f.props[l],p=h?h===!0?u.params:typeof h=="function"?h(u):h:null,m=Vo(d,Gn({},p,t,{onVnodeUnmounted:g=>{g.component.isUnmounted&&(f.instances[l]=null)},ref:c}));return m$(n.default,{Component:m,route:u})||m}}});function m$(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const YI=BQ;function FQ(e){const t=vQ(e.routes,e),n=e.parseQuery||PQ,r=e.stringifyQuery||f$,o=e.history,i=ld(),a=ld(),s=ld(),c=hf(Ha);let u=Ha;_l&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const l=R1.bind(null,et=>""+et),f=R1.bind(null,AQ),d=R1.bind(null,eg);function h(et,yt){let bt,jt;return qI(et)?(bt=t.getRecordMatcher(et),jt=yt):jt=et,t.addRoute(jt,bt)}function p(et){const yt=t.getRecordMatcher(et);yt&&t.removeRoute(yt)}function v(){return t.getRoutes().map(et=>et.record)}function m(et){return!!t.getRecordMatcher(et)}function g(et,yt){if(yt=Gn({},yt||c.value),typeof et=="string"){const rt=I1(n,et,yt.path),X=t.resolve({path:rt.path},yt),_t=o.createHref(rt.fullPath);return Gn(rt,X,{params:d(X.params),hash:eg(rt.hash),redirectedFrom:void 0,href:_t})}let bt;if("path"in et)bt=Gn({},et,{path:I1(n,et.path,yt.path).path});else{const rt=Gn({},et.params);for(const X in rt)rt[X]==null&&delete rt[X];bt=Gn({},et,{params:f(rt)}),yt.params=f(yt.params)}const jt=t.resolve(bt,yt),gt=et.hash||"";jt.params=l(d(jt.params));const Y=VG(r,Gn({},et,{hash:EQ(gt),path:jt.path})),K=o.createHref(Y);return Gn({fullPath:Y,hash:gt,query:r===f$?TQ(et.query):et.query||{}},jt,{redirectedFrom:void 0,href:K})}function y(et){return typeof et=="string"?I1(n,et,c.value.path):Gn({},et)}function b(et,yt){if(u!==et)return xf(8,{from:yt,to:et})}function w(et){return E(et)}function x(et){return w(Gn(y(et),{replace:!0}))}function k(et){const yt=et.matched[et.matched.length-1];if(yt&&yt.redirect){const{redirect:bt}=yt;let jt=typeof bt=="function"?bt(et):bt;return typeof jt=="string"&&(jt=jt.includes("?")||jt.includes("#")?jt=y(jt):{path:jt},jt.params={}),Gn({query:et.query,hash:et.hash,params:"path"in jt?{}:et.params},jt)}}function E(et,yt){const bt=u=g(et),jt=c.value,gt=et.state,Y=et.force,K=et.replace===!0,rt=k(bt);if(rt)return E(Gn(y(rt),{state:typeof rt=="object"?Gn({},gt,rt.state):gt,force:Y,replace:K}),yt||bt);const X=bt;X.redirectedFrom=yt;let _t;return!Y&&WG(r,jt,bt)&&(_t=xf(16,{to:X,from:jt}),P(jt,jt,!0,!1)),(_t?Promise.resolve(_t):$(X,jt)).catch(L=>bs(L)?bs(L,2)?L:M(L):D(L,X,jt)).then(L=>{if(L){if(bs(L,2))return E(Gn({replace:K},y(L.to),{state:typeof L.to=="object"?Gn({},gt,L.to.state):gt,force:Y}),yt||X)}else L=R(X,jt,!0,K,gt);return j(X,jt,L),L})}function _(et,yt){const bt=b(et,yt);return bt?Promise.reject(bt):Promise.resolve()}function T(et){const yt=W.values().next().value;return yt&&typeof yt.runWithContext=="function"?yt.runWithContext(et):et()}function $(et,yt){let bt;const[jt,gt,Y]=qQ(et,yt);bt=N1(jt.reverse(),"beforeRouteLeave",et,yt);for(const rt of jt)rt.leaveGuards.forEach(X=>{bt.push(fc(X,et,yt))});const K=_.bind(null,et,yt);return bt.push(K),dt(bt).then(()=>{bt=[];for(const rt of i.list())bt.push(fc(rt,et,yt));return bt.push(K),dt(bt)}).then(()=>{bt=N1(gt,"beforeRouteUpdate",et,yt);for(const rt of gt)rt.updateGuards.forEach(X=>{bt.push(fc(X,et,yt))});return bt.push(K),dt(bt)}).then(()=>{bt=[];for(const rt of Y)if(rt.beforeEnter)if($a(rt.beforeEnter))for(const X of rt.beforeEnter)bt.push(fc(X,et,yt));else bt.push(fc(rt.beforeEnter,et,yt));return bt.push(K),dt(bt)}).then(()=>(et.matched.forEach(rt=>rt.enterCallbacks={}),bt=N1(Y,"beforeRouteEnter",et,yt),bt.push(K),dt(bt))).then(()=>{bt=[];for(const rt of a.list())bt.push(fc(rt,et,yt));return bt.push(K),dt(bt)}).catch(rt=>bs(rt,8)?rt:Promise.reject(rt))}function j(et,yt,bt){s.list().forEach(jt=>T(()=>jt(et,yt,bt)))}function R(et,yt,bt,jt,gt){const Y=b(et,yt);if(Y)return Y;const K=yt===Ha,rt=_l?history.state:{};bt&&(jt||K?o.replace(et.fullPath,Gn({scroll:K&&rt&&rt.scroll},gt)):o.push(et.fullPath,gt)),c.value=et,P(et,yt,bt,K),M()}let q;function O(){q||(q=o.listen((et,yt,bt)=>{if(!N.listening)return;const jt=g(et),gt=k(jt);if(gt){E(Gn(gt,{replace:!0}),jt).catch(Gd);return}u=jt;const Y=c.value;_l&&ZG(r$(Y.fullPath,bt.delta),w0()),$(jt,Y).catch(K=>bs(K,12)?K:bs(K,2)?(E(K.to,jt).then(rt=>{bs(rt,20)&&!bt.delta&&bt.type===kh.pop&&o.go(-1,!1)}).catch(Gd),Promise.reject()):(bt.delta&&o.go(-bt.delta,!1),D(K,jt,Y))).then(K=>{K=K||R(jt,Y,!1),K&&(bt.delta&&!bs(K,8)?o.go(-bt.delta,!1):bt.type===kh.pop&&bs(K,20)&&o.go(-1,!1)),j(jt,Y,K)}).catch(Gd)}))}let F=ld(),J=ld(),I;function D(et,yt,bt){M(et);const jt=J.list();return jt.length?jt.forEach(gt=>gt(et,yt,bt)):console.error(et),Promise.reject(et)}function C(){return I&&c.value!==Ha?Promise.resolve():new Promise((et,yt)=>{F.add([et,yt])})}function M(et){return I||(I=!et,O(),F.list().forEach(([yt,bt])=>et?bt(et):yt()),F.reset()),et}function P(et,yt,bt,jt){const{scrollBehavior:gt}=e;if(!_l||!gt)return Promise.resolve();const Y=!bt&&tQ(r$(et.fullPath,0))||(jt||!bt)&&history.state&&history.state.scroll||null;return Xc().then(()=>gt(et,yt,Y)).then(K=>K&&XG(K)).catch(K=>D(K,et,yt))}const B=et=>o.go(et);let A;const W=new Set,N={currentRoute:c,listening:!0,addRoute:h,removeRoute:p,hasRoute:m,getRoutes:v,resolve:g,options:e,push:w,replace:x,go:B,back:()=>B(-1),forward:()=>B(1),beforeEach:i.add,beforeResolve:a.add,afterEach:s.add,onError:J.add,isReady:C,install(et){const yt=this;et.component("RouterLink",DQ),et.component("RouterView",YI),et.config.globalProperties.$router=yt,Object.defineProperty(et.config.globalProperties,"$route",{enumerable:!0,get:()=>Ne(c)}),_l&&!A&&c.value===Ha&&(A=!0,w(o.location).catch(gt=>{}));const bt={};for(const gt in Ha)Object.defineProperty(bt,gt,{get:()=>c.value[gt],enumerable:!0});et.provide(Nk,yt),et.provide(QI,up(bt)),et.provide(Hb,c);const jt=et.unmount;W.add(et),et.unmount=function(){W.delete(et),W.size<1&&(u=Ha,q&&q(),q=null,c.value=Ha,A=!1,I=!1),jt()}}};function dt(et){return et.reduce((yt,bt)=>yt.then(()=>T(bt)),Promise.resolve())}return N}function qQ(e,t){const n=[],r=[],o=[],i=Math.max(t.matched.length,e.matched.length);for(let a=0;a<i;a++){const s=t.matched[a];s&&(e.matched.find(u=>wf(u,s))?r.push(s):n.push(s));const c=e.matched[a];c&&(t.matched.find(u=>wf(u,c))||o.push(c))}return[n,r,o]}const g$=[{name:"index",path:"/",meta:{},alias:[],redirect:void 0,component:()=>Cs(()=>import("./index.6fdad60d.js"),["./index.6fdad60d.js","./index.ffbea0a9.css"],import.meta.url).then(e=>e.default||e)},{name:"options",path:"/options",meta:{},alias:[],redirect:void 0,component:()=>Cs(()=>import("./options.7f107e61.js"),["./options.7f107e61.js","./shiki.aa1b8621.js"],import.meta.url).then(e=>e.default||e)},{name:"png",path:"/png",meta:{},alias:[],redirect:void 0,component:()=>Cs(()=>import("./png.2a205b6d.js"),["./png.2a205b6d.js","./ImageLoader.9e9d6e15.js","./ImageLoader.7571516f.css"],import.meta.url).then(e=>e.default||e)},{name:"svg",path:"/svg",meta:{},alias:[],redirect:void 0,component:()=>Cs(()=>import("./svg.3f435c63.js"),["./svg.3f435c63.js","./ImageLoader.9e9d6e15.js","./ImageLoader.7571516f.css"],import.meta.url).then(e=>e.default||e)},{name:"vnodes",path:"/vnodes",meta:{},alias:[],redirect:void 0,component:()=>Cs(()=>import("./vnodes.63fa6e05.js"),["./vnodes.63fa6e05.js","./shiki.aa1b8621.js"],import.meta.url).then(e=>e.default||e)}],HQ={scrollBehavior(e,t,n){var u;const r=ar(),o=((u=hs().options)==null?void 0:u.scrollBehaviorType)??"auto";let i=n||void 0;const a=typeof e.meta.scrollToTop=="function"?e.meta.scrollToTop(e,t):e.meta.scrollToTop;if(!i&&t&&e&&a!==!1&&VQ(t,e)&&(i={left:0,top:0}),e.path===t.path){if(t.hash&&!e.hash)return{left:0,top:0};if(e.hash)return{el:e.hash,top:y$(e.hash),behavior:o}}const s=l=>!!(l.meta.pageTransition??Ib),c=s(t)&&s(e)?"page:transition:finish":"page:finish";return new Promise(l=>{r.hooks.hookOnce(c,async()=>{await Xc(),e.hash&&(i={el:e.hash,top:y$(e.hash),behavior:o}),l(i)})})}};function y$(e){try{const t=document.querySelector(e);if(t)return parseFloat(getComputedStyle(t).scrollMarginTop)}catch{}return 0}function VQ(e,t){return t.path!==e.path||JSON.stringify(e.params)!==JSON.stringify(t.params)}const WQ={},Qo={...WQ,...HQ},UQ=async e=>{var c;let t,n;if(!((c=e.meta)!=null&&c.validate))return;const r=ar(),o=hs();if(([t,n]=Xm(()=>Promise.resolve(e.meta.validate(e))),t=await t,n(),t)===!0)return;const a=b0({statusCode:404,statusMessage:`Page Not Found: ${e.fullPath}`}),s=o.beforeResolve(u=>{if(s(),u===e){const l=o.afterEach(async()=>{l(),await r.runWithContext(()=>Rl(a)),window.history.pushState({},"",e.fullPath)});return!1}})},KQ=[UQ],Yd={};function JQ(e,t,n){const{pathname:r,search:o,hash:i}=t,a=e.indexOf("#");if(a>-1){const u=i.includes(e.slice(a))?e.slice(a).length:1;let l=i.slice(u);return l[0]!=="/"&&(l="/"+l),zS(l,"")}const s=zS(r,e),c=!n||RK(s,n,{trailingSlash:!0})?s:n;return c+(c.includes("?")?"":o)+i}const GQ=Js({name:"nuxt:router",enforce:"pre",async setup(e){var v,m;let t,n,r=Pk().app.baseURL;Qo.hashMode&&!r.includes("#")&&(r+="#");const o=((v=Qo.history)==null?void 0:v.call(Qo,r))??(Qo.hashMode?oQ(r):FI(r)),i=((m=Qo.routes)==null?void 0:m.call(Qo,g$))??g$;let a;const s=JQ(r,window.location,e.payload.path),c=FQ({...Qo,scrollBehavior:(g,y,b)=>{var w;if(y===Ha){a=b;return}return c.options.scrollBehavior=Qo.scrollBehavior,(w=Qo.scrollBehavior)==null?void 0:w.call(Qo,g,Ha,a||b)},history:o,routes:i});e.vueApp.use(c);const u=hf(c.currentRoute.value);c.afterEach((g,y)=>{u.value=y}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>u.value});const l=hf(c.resolve(s)),f=()=>{l.value=c.currentRoute.value};e.hook("page:finish",f),c.afterEach((g,y)=>{var b,w,x,k;((w=(b=g.matched[0])==null?void 0:b.components)==null?void 0:w.default)===((k=(x=y.matched[0])==null?void 0:x.components)==null?void 0:k.default)&&f()});const d={};for(const g in l.value)Object.defineProperty(d,g,{get:()=>l.value[g]});e._route=up(d),e._middleware=e._middleware||{global:[],named:{}};const h=y0();try{[t,n]=Xm(()=>c.isReady()),await t,n()}catch(g){[t,n]=Xm(()=>e.runWithContext(()=>Rl(g))),await t,n()}const p=e.payload.state._layout;return c.beforeEach(async(g,y)=>{var b;g.meta=is(g.meta),e.isHydrating&&p&&!Vu(g.meta.layout)&&(g.meta.layout=p),e._processingMiddleware=!0;{const w=new Set([...KQ,...e._middleware.global]);for(const x of g.matched){const k=x.meta.middleware;if(k)if(Array.isArray(k))for(const E of k)w.add(E);else w.add(k)}for(const x of w){const k=typeof x=="string"?e._middleware.named[x]||await((b=Yd[x])==null?void 0:b.call(Yd).then(_=>_.default||_)):x;if(!k)throw new Error(`Unknown route middleware: '${x}'.`);const E=await e.runWithContext(()=>k(g,y));if(!e.payload.serverRendered&&e.isHydrating&&(E===!1||E instanceof Error)){const _=E||Lb({statusCode:404,statusMessage:`Page Not Found: ${s}`});return await e.runWithContext(()=>Rl(_)),!1}if(E!==!0&&(E||E===!1))return E}}}),c.onError(()=>{delete e._processingMiddleware}),c.afterEach(async(g,y,b)=>{delete e._processingMiddleware,!e.isHydrating&&h.value&&await e.runWithContext(kG),g.matched.length===0&&await e.runWithContext(()=>Rl(Lb({statusCode:404,fatal:!1,statusMessage:`Page not found: ${g.fullPath}`})))}),e.hooks.hookOnce("app:created",async()=>{try{await c.replace({...c.resolve(s),name:void 0,force:!0}),c.options.scrollBehavior=Qo.scrollBehavior}catch(g){await e.runWithContext(()=>Rl(g))}}),{provide:{router:c}}}}),QQ=Js({name:"nuxt:payload",setup(e){uG()&&(e.hooks.hook("link:prefetch",async t=>{hp(t).protocol||await XS(t)}),hs().beforeResolve(async(t,n)=>{if(t.path===n.path)return;const r=await XS(t.path);r&&Object.assign(e.static.data,r.data)}))}}),YQ=Vm(()=>Cs(()=>Promise.resolve().then(()=>xX),void 0,import.meta.url).then(e=>e.default)),XQ=Vm(()=>Cs(()=>import("./IconCSS.5509e16a.js"),["./IconCSS.5509e16a.js","./IconCSS.28ef6808.css"],import.meta.url).then(e=>e.default)),ZQ=[["Icon",YQ],["IconCSS",XQ]],tY=Js({name:"nuxt:global-components",setup(e){for(const[t,n]of ZQ)e.vueApp.component(t,n),e.vueApp.component("Lazy"+t,n)}}),Yp={},eY=Js({name:"nuxt:prefetch",setup(e){const t=hs();e.hooks.hook("app:mounted",()=>{t.beforeEach(async n=>{var o;const r=(o=n==null?void 0:n.meta)==null?void 0:o.layout;r&&typeof Yp[r]=="function"&&await Yp[r]()})}),e.hooks.hook("link:prefetch",n=>{var a,s,c,u;if(Vf(n))return;const r=t.resolve(n);if(!r)return;const o=(a=r==null?void 0:r.meta)==null?void 0:a.layout;let i=Array.isArray((s=r==null?void 0:r.meta)==null?void 0:s.middleware)?(c=r==null?void 0:r.meta)==null?void 0:c.middleware:[(u=r==null?void 0:r.meta)==null?void 0:u.middleware];i=i.filter(l=>typeof l=="string");for(const l of i)typeof Yd[l]=="function"&&Yd[l]();o&&typeof Yp[o]=="function"&&Yp[o]()})}}),nY="__NUXT_COLOR_MODE__",rY="ColorScheme",oY="nuxt-color-mode",ws=window[nY],iY=Js(e=>{const t=Rk("color-mode",()=>is({preference:ws.preference,value:ws.value,unknown:!1,forced:!1})).value;hs().afterEach(o=>{const i=o.meta.colorMode;i&&i!=="system"?(t.value=i,t.forced=!0):(i==="system"&&console.warn("You cannot force the colorMode to system at the page level."),t.forced=!1,t.value=t.preference==="system"?ws.getColorScheme():t.preference)});let n;function r(){n||!window.matchMedia||(n=window.matchMedia("(prefers-color-scheme: dark)"),n.addEventListener("change",()=>{!t.forced&&t.preference==="system"&&(t.value=ws.getColorScheme())}))}co(()=>t.preference,o=>{var i;t.forced||(o==="system"?(t.value=ws.getColorScheme(),r()):t.value=o,(i=window.localStorage)==null||i.setItem(oY,o))},{immediate:!0}),co(()=>t.value,(o,i)=>{ws.removeColorScheme(i),ws.addColorScheme(o)}),t.preference==="system"&&r(),e.hook("app:mounted",()=>{t.unknown&&(t.preference=ws.preference,t.value=ws.value,t.unknown=!1)}),e.provide("colorMode",t)});const aY=Js(()=>{}),sY=Js({name:"nuxt:chunk-reload",setup(e){const t=hs(),n=Pk(),r=new Set;t.beforeEach(()=>{r.clear()}),e.hook("app:chunkError",({error:o})=>{r.add(o)}),t.onError((o,i)=>{if(r.has(o)){const s="href"in i&&i.href.startsWith("#")?n.app.baseURL+i.href:dp(n.app.baseURL,i.fullPath);MG({path:s,persistState:!0})}})}}),cY=[_G,BG,GQ,QQ,tY,eY,iY,aY,sY],Dk=Jo({__name:"NIcon",props:{icon:{}},setup(e){return(t,n)=>(Vn(),li("div",{class:Qr(["n-icon",t.icon])},null,2))}}),uY=Jo({__name:"NButton",props:{to:{},icon:{}},setup(e){return(t,n)=>{const r=Dk;return Vn(),jo(xk(t.to?Ne(LI):"button"),$k({to:t.to},t.$attrs,{class:"n-button n-button-base active:n-button-active focus-visible:n-focus-base n-transition hover:n-button-hover n-disabled:n-disabled"}),{default:ao(()=>[Wu(t.$slots,"icon",{},()=>[t.icon?(Vn(),jo(r,{key:0,icon:t.icon,class:"n-button-icon"},null,8,["icon"])):qa("",!0)]),Wu(t.$slots,"default")]),_:3},16,["to"])}}}),lY=Jo({name:"ClientOnly",inheritAttrs:!1,props:["fallback","placeholder","placeholderTag","fallbackTag"],setup(e,{slots:t,attrs:n}){const r=Tn(!1);return sl(()=>{r.value=!0}),o=>{var c;if(r.value)return(c=t.default)==null?void 0:c.call(t);const i=t.fallback||t.placeholder;if(i)return i();const a=o.fallback||o.placeholder||"",s=o.fallbackTag||o.placeholderTag||"span";return li(s,n,a)}}}),XI=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},fY={name:rY,props:{placeholder:String,tag:{type:String,default:"span"}}};function dY(e,t,n,r,o,i){const a=lY;return Vn(),jo(a,{placeholder:n.placeholder,"placeholder-tag":n.tag},{default:ao(()=>[Wu(e.$slots,"default")]),_:3},8,["placeholder","placeholder-tag"])}const hY=XI(fY,[["render",dY]]),ZI=()=>Rk("color-mode").value,pY=Jo({__name:"NDarkToggle",setup(e){const t=ZI(),n=hr({get(){return t.value==="dark"},set(){t.preference=n.value?"light":"dark"}}),r=typeof document<"u"&&document.startViewTransition&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches;function o(a){if(!r||!a){n.value=!n.value;return}const s=a.clientX,c=a.clientY,u=Math.hypot(Math.max(s,innerWidth-s),Math.max(c,innerHeight-c));document.startViewTransition(async()=>{n.value=!n.value,await Xc()}).ready.then(()=>{const f=[`circle(0px at ${s}px ${c}px)`,`circle(${u}px at ${s}px ${c}px)`];document.documentElement.animate({clipPath:n.value?[...f].reverse():f},{duration:400,easing:"ease-in",pseudoElement:n.value?"::view-transition-old(root)":"::view-transition-new(root)"})})}const i={mode:t,isDark:n,toggle:o};return(a,s)=>{const c=hY;return Vn(),jo(c,{tag:"span"},{default:ao(()=>[Wu(a.$slots,"default",f9(_k(i)))]),_:3})}}}),tN=Object.freeze({left:0,top:0,width:16,height:16}),eN=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Lk=Object.freeze({...tN,...eN});Object.freeze({...Lk,body:"",hidden:!1});({...tN});const nN=Object.freeze({width:null,height:null}),rN=Object.freeze({...nN,...eN});function vY(e,t){const n={...e};for(const r in t){const o=t[r],i=typeof o;r in nN?(o===null||o&&(i==="string"||i==="number"))&&(n[r]=o):i===typeof n[r]&&(n[r]=r==="rotate"?o%4:o)}return n}const mY=/[\s,]+/;function gY(e,t){t.split(mY).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function yY(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let i=parseFloat(e.slice(0,e.length-n.length));return isNaN(i)?0:(i=i/o,i%1===0?r(i):0)}}return t}const bY=/(-?[0-9.]*[0-9]+[0-9.]*)/g,wY=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function b$(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(bY);if(r===null||!r.length)return e;const o=[];let i=r.shift(),a=wY.test(i);for(;;){if(a){const s=parseFloat(i);isNaN(s)?o.push(i):o.push(Math.ceil(s*t*n)/n)}else o.push(i);if(i=r.shift(),i===void 0)return o.join("");a=!a}}const xY=e=>e==="unset"||e==="undefined"||e==="none";function kY(e,t){const n={...Lk,...e},r={...rN,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,r].forEach(p=>{const v=[],m=p.hFlip,g=p.vFlip;let y=p.rotate;m?g?y+=2:(v.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),v.push("scale(-1 1)"),o.top=o.left=0):g&&(v.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),v.push("scale(1 -1)"),o.top=o.left=0);let b;switch(y<0&&(y-=Math.floor(y/4)*4),y=y%4,y){case 1:b=o.height/2+o.top,v.unshift("rotate(90 "+b.toString()+" "+b.toString()+")");break;case 2:v.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:b=o.width/2+o.left,v.unshift("rotate(-90 "+b.toString()+" "+b.toString()+")");break}y%2===1&&(o.left!==o.top&&(b=o.left,o.left=o.top,o.top=b),o.width!==o.height&&(b=o.width,o.width=o.height,o.height=b)),v.length&&(i='<g transform="'+v.join(" ")+'">'+i+"</g>")});const a=r.width,s=r.height,c=o.width,u=o.height;let l,f;a===null?(f=s===null?"1em":s==="auto"?u:s,l=b$(f,c/u)):(l=a==="auto"?c:a,f=s===null?b$(l,u/c):s==="auto"?u:s);const d={},h=(p,v)=>{xY(v)||(d[p]=v.toString())};return h("width",l),h("height",f),d.viewBox=o.left.toString()+" "+o.top.toString()+" "+c.toString()+" "+u.toString(),{attributes:d,body:i}}const jY=/\sid="(\S+)"/g,_Y="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let SY=0;function $Y(e,t=_Y){const n=[];let r;for(;r=jY.exec(e);)n.push(r[1]);if(!n.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(i=>{const a=typeof t=="function"?t(i):t+(SY++).toString(),s=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+a+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}function CY(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function EY(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function OY(e){return"data:image/svg+xml,"+EY(e)}function MY(e){return'url("'+OY(e)+'")'}const w$={...rN,inline:!1},AY={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},PY={display:"inline-block"},Vb={backgroundColor:"currentColor"},oN={backgroundColor:"transparent"},x$={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},k$={webkitMask:Vb,mask:Vb,background:oN};for(const e in k$){const t=k$[e];for(const n in x$)t[e+n]=x$[n]}const lm={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";lm[e+"-flip"]=t,lm[e.slice(0,1)+"-flip"]=t,lm[e+"Flip"]=t});function j$(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const TY=(e,t)=>{const n=vY(w$,t),r={...AY},o=t.mode||"svg",i={},a=t.style,s=typeof a=="object"&&!(a instanceof Array)?a:{};for(let v in t){const m=t[v];if(m!==void 0)switch(v){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":n[v]=m===!0||m==="true"||m===1;break;case"flip":typeof m=="string"&&gY(n,m);break;case"color":i.color=m;break;case"rotate":typeof m=="string"?n[v]=yY(m):typeof m=="number"&&(n[v]=m);break;case"ariaHidden":case"aria-hidden":m!==!0&&m!=="true"&&delete r["aria-hidden"];break;default:{const g=lm[v];g?(m===!0||m==="true"||m===1)&&(n[g]=!0):w$[v]===void 0&&(r[v]=m)}}}const c=kY(e,n),u=c.attributes;if(n.inline&&(i.verticalAlign="-0.125em"),o==="svg"){r.style={...i,...s},Object.assign(r,u);let v=0,m=t.id;return typeof m=="string"&&(m=m.replace(/-/g,"_")),r.innerHTML=$Y(c.body,m?()=>m+"ID"+v++:"iconifyVue"),Vo("svg",r)}const{body:l,width:f,height:d}=e,h=o==="mask"||(o==="bg"?!1:l.indexOf("currentColor")!==-1),p=CY(l,{...u,width:f+"",height:d+""});return r.style={...i,"--svg":MY(p),width:j$(u.width),height:j$(u.height),...PY,...h?Vb:oN,...s},Vo("span",r)},RY=Object.create(null),IY=Jo({inheritAttrs:!1,render(){const e=this.$attrs,t=e.icon,n=typeof t=="string"?RY[t]:typeof t=="object"?t:null;return n===null||typeof n!="object"||typeof n.body!="string"?this.$slots.default?this.$slots.default():null:TY({...Lk,...n},e)}}),Xd=/^[a-z0-9]+(-[a-z0-9]+)*$/,x0=(e,t,n,r="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const s=o.pop(),c=o.pop(),u={provider:o.length>0?o[0]:r,prefix:c,name:s};return t&&!fm(u)?null:u}const i=o[0],a=i.split("-");if(a.length>1){const s={provider:r,prefix:a.shift(),name:a.join("-")};return t&&!fm(s)?null:s}if(n&&r===""){const s={provider:r,prefix:"",name:i};return t&&!fm(s,n)?null:s}return null},fm=(e,t)=>e?!!((e.provider===""||e.provider.match(Xd))&&(t&&e.prefix===""||e.prefix.match(Xd))&&e.name.match(Xd)):!1,iN=Object.freeze({left:0,top:0,width:16,height:16}),ng=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),zk=Object.freeze({...iN,...ng}),Wb=Object.freeze({...zk,body:"",hidden:!1});function NY(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function _$(e,t){const n=NY(e,t);for(const r in Wb)r in ng?r in e&&!(r in n)&&(n[r]=ng[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function DY(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function i(a){if(n[a])return o[a]=[];if(!(a in o)){o[a]=null;const s=r[a]&&r[a].parent,c=s&&i(s);c&&(o[a]=[s].concat(c))}return o[a]}return(t||Object.keys(n).concat(Object.keys(r))).forEach(i),o}function LY(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let i={};function a(s){i=_$(r[s]||o[s],i)}return a(t),n.forEach(a),_$(e,i)}function aN(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),n.push(o)});const r=DY(e);for(const o in r){const i=r[o];i&&(t(o,LY(e,o,i)),n.push(o))}return n}const zY={provider:"",aliases:{},not_found:{},...iN};function D1(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function sN(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!D1(e,zY))return null;const n=t.icons;for(const o in n){const i=n[o];if(!o.match(Xd)||typeof i.body!="string"||!D1(i,Wb))return null}const r=t.aliases||Object.create(null);for(const o in r){const i=r[o],a=i.parent;if(!o.match(Xd)||typeof a!="string"||!n[a]&&!r[a]||!D1(i,Wb))return null}return t}const S$=Object.create(null);function BY(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function Uu(e,t){const n=S$[e]||(S$[e]=Object.create(null));return n[t]||(n[t]=BY(e,t))}function Bk(e,t){return sN(t)?aN(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function FY(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let jh=!1;function cN(e){return typeof e=="boolean"&&(jh=e),jh}function qY(e){const t=typeof e=="string"?x0(e,!0,jh):e;if(t){const n=Uu(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function HY(e,t){const n=x0(e,!0,jh);if(!n)return!1;const r=Uu(n.provider,n.prefix);return FY(r,n.name,t)}function VY(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),jh&&!t&&!e.prefix){let o=!1;return sN(e)&&(e.prefix="",aN(e,(i,a)=>{a&&HY(i,a)&&(o=!0)})),o}const n=e.prefix;if(!fm({provider:t,prefix:n,name:"a"}))return!1;const r=Uu(t,n);return!!Bk(r,e)}const WY=Object.freeze({width:null,height:null}),UY=Object.freeze({...WY,...ng});""+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);const Ub=Object.create(null);function KY(e,t){Ub[e]=t}function Kb(e){return Ub[e]||Ub[""]}function Fk(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const qk=Object.create(null),fd=["https://api.simplesvg.com","https://api.unisvg.com"],dm=[];for(;fd.length>0;)fd.length===1||Math.random()>.5?dm.push(fd.shift()):dm.push(fd.pop());qk[""]=Fk({resources:["https://api.iconify.design"].concat(dm)});function JY(e,t){const n=Fk(t);return n===null?!1:(qk[e]=n,!0)}function Hk(e){return qk[e]}const GY=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let $$=GY();function QY(e,t){const n=Hk(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(a=>{o=Math.max(o,a.length)});const i=t+".json?icons=";r=n.maxURL-o-n.path.length-i.length}return r}function YY(e){return e===404}const XY=(e,t,n)=>{const r=[],o=QY(e,t),i="icons";let a={type:i,provider:e,prefix:t,icons:[]},s=0;return n.forEach((c,u)=>{s+=c.length+1,s>=o&&u>0&&(r.push(a),a={type:i,provider:e,prefix:t,icons:[]},s=c.length),a.icons.push(c)}),r.push(a),r};function ZY(e){if(typeof e=="string"){const t=Hk(e);if(t)return t.path}return"/"}const tX=(e,t,n)=>{if(!$$){n("abort",424);return}let r=ZY(t.provider);switch(t.type){case"icons":{const i=t.prefix,s=t.icons.join(","),c=new URLSearchParams({icons:s});r+=i+".json?"+c.toString();break}case"custom":{const i=t.uri;r+=i.slice(0,1)==="/"?i.slice(1):i;break}default:n("abort",400);return}let o=503;$$(e+r).then(i=>{const a=i.status;if(a!==200){setTimeout(()=>{n(YY(a)?"abort":"next",a)});return}return o=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?n("abort",i):n("next",o)});return}setTimeout(()=>{n("success",i)})}).catch(()=>{n("next",o)})},eX={prepare:XY,send:tX};function nX(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((o,i)=>o.provider!==i.provider?o.provider.localeCompare(i.provider):o.prefix!==i.prefix?o.prefix.localeCompare(i.prefix):o.name.localeCompare(i.name));let r={provider:"",prefix:"",name:""};return e.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const i=o.provider,a=o.prefix,s=o.name,c=n[i]||(n[i]=Object.create(null)),u=c[a]||(c[a]=Uu(i,a));let l;s in u.icons?l=t.loaded:a===""||u.missing.has(s)?l=t.missing:l=t.pending;const f={provider:i,prefix:a,name:s};l.push(f)}),t}function uN(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function rX(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,o=e.prefix;t.forEach(i=>{const a=i.icons,s=a.pending.length;a.pending=a.pending.filter(c=>{if(c.prefix!==o)return!0;const u=c.name;if(e.icons[u])a.loaded.push({provider:r,prefix:o,name:u});else if(e.missing.has(u))a.missing.push({provider:r,prefix:o,name:u});else return n=!0,!0;return!1}),a.pending.length!==s&&(n||uN([e],i.id),i.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),i.abort))})}))}let oX=0;function iX(e,t,n){const r=oX++,o=uN.bind(null,n,r);if(!t.pending.length)return o;const i={id:r,icons:t,callback:e,abort:o};return n.forEach(a=>{(a.loaderCallbacks||(a.loaderCallbacks=[])).push(i)}),o}function aX(e,t=!0,n=!1){const r=[];return e.forEach(o=>{const i=typeof o=="string"?x0(o,t,n):o;i&&r.push(i)}),r}var sX={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function cX(e,t,n,r){const o=e.resources.length,i=e.random?Math.floor(Math.random()*o):e.index;let a;if(e.random){let k=e.resources.slice(0);for(a=[];k.length>1;){const E=Math.floor(Math.random()*k.length);a.push(k[E]),k=k.slice(0,E).concat(k.slice(E+1))}a=a.concat(k)}else a=e.resources.slice(i).concat(e.resources.slice(0,i));const s=Date.now();let c="pending",u=0,l,f=null,d=[],h=[];typeof r=="function"&&h.push(r);function p(){f&&(clearTimeout(f),f=null)}function v(){c==="pending"&&(c="aborted"),p(),d.forEach(k=>{k.status==="pending"&&(k.status="aborted")}),d=[]}function m(k,E){E&&(h=[]),typeof k=="function"&&h.push(k)}function g(){return{startTime:s,payload:t,status:c,queriesSent:u,queriesPending:d.length,subscribe:m,abort:v}}function y(){c="failed",h.forEach(k=>{k(void 0,l)})}function b(){d.forEach(k=>{k.status==="pending"&&(k.status="aborted")}),d=[]}function w(k,E,_){const T=E!=="success";switch(d=d.filter($=>$!==k),c){case"pending":break;case"failed":if(T||!e.dataAfterTimeout)return;break;default:return}if(E==="abort"){l=_,y();return}if(T){l=_,d.length||(a.length?x():y());return}if(p(),b(),!e.random){const $=e.resources.indexOf(k.resource);$!==-1&&$!==e.index&&(e.index=$)}c="completed",h.forEach($=>{$(_)})}function x(){if(c!=="pending")return;p();const k=a.shift();if(k===void 0){if(d.length){f=setTimeout(()=>{p(),c==="pending"&&(b(),y())},e.timeout);return}y();return}const E={status:"pending",resource:k,callback:(_,T)=>{w(E,_,T)}};d.push(E),u++,f=setTimeout(x,e.rotate),n(k,t,E.callback)}return setTimeout(x),g}function lN(e){const t={...sX,...e};let n=[];function r(){n=n.filter(s=>s().status==="pending")}function o(s,c,u){const l=cX(t,s,c,(f,d)=>{r(),u&&u(f,d)});return n.push(l),l}function i(s){return n.find(c=>s(c))||null}return{query:o,find:i,setIndex:s=>{t.index=s},getIndex:()=>t.index,cleanup:r}}function C$(){}const L1=Object.create(null);function uX(e){if(!L1[e]){const t=Hk(e);if(!t)return;const n=lN(t),r={config:t,redundancy:n};L1[e]=r}return L1[e]}function lX(e,t,n){let r,o;if(typeof e=="string"){const i=Kb(e);if(!i)return n(void 0,424),C$;o=i.send;const a=uX(e);a&&(r=a.redundancy)}else{const i=Fk(e);if(i){r=lN(i);const a=e.resources?e.resources[0]:"",s=Kb(a);s&&(o=s.send)}}return!r||!o?(n(void 0,424),C$):r.query(t,o,n)().abort}const E$="iconify2",_h="iconify",fN=_h+"-count",O$=_h+"-version",dN=36e5,fX=168;function Jb(e,t){try{return e.getItem(t)}catch{}}function Vk(e,t,n){try{return e.setItem(t,n),!0}catch{}}function M$(e,t){try{e.removeItem(t)}catch{}}function Gb(e,t){return Vk(e,fN,t.toString())}function Qb(e){return parseInt(Jb(e,fN))||0}const k0={local:!0,session:!0},hN={local:new Set,session:new Set};let Wk=!1;function dX(e){Wk=e}let Xp=typeof window>"u"?{}:window;function pN(e){const t=e+"Storage";try{if(Xp&&Xp[t]&&typeof Xp[t].length=="number")return Xp[t]}catch{}k0[e]=!1}function vN(e,t){const n=pN(e);if(!n)return;const r=Jb(n,O$);if(r!==E$){if(r){const s=Qb(n);for(let c=0;c<s;c++)M$(n,_h+c.toString())}Vk(n,O$,E$),Gb(n,0);return}const o=Math.floor(Date.now()/dN)-fX,i=s=>{const c=_h+s.toString(),u=Jb(n,c);if(typeof u=="string"){try{const l=JSON.parse(u);if(typeof l=="object"&&typeof l.cached=="number"&&l.cached>o&&typeof l.provider=="string"&&typeof l.data=="object"&&typeof l.data.prefix=="string"&&t(l,s))return!0}catch{}M$(n,c)}};let a=Qb(n);for(let s=a-1;s>=0;s--)i(s)||(s===a-1?(a--,Gb(n,a)):hN[e].add(s))}function mN(){if(!Wk){dX(!0);for(const e in k0)vN(e,t=>{const n=t.data,r=t.provider,o=n.prefix,i=Uu(r,o);if(!Bk(i,n).length)return!1;const a=n.lastModified||-1;return i.lastModifiedCached=i.lastModifiedCached?Math.min(i.lastModifiedCached,a):a,!0})}}function hX(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in k0)vN(r,o=>{const i=o.data;return o.provider!==e.provider||i.prefix!==e.prefix||i.lastModified===t});return!0}function pX(e,t){Wk||mN();function n(r){let o;if(!k0[r]||!(o=pN(r)))return;const i=hN[r];let a;if(i.size)i.delete(a=Array.from(i).shift());else if(a=Qb(o),!Gb(o,a+1))return;const s={cached:Math.floor(Date.now()/dN),provider:e.provider,data:t};return Vk(o,_h+a.toString(),JSON.stringify(s))}t.lastModified&&!hX(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function A$(){}function vX(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,rX(e)}))}function mX(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let i;if(!o||!(i=Kb(n)))return;i.prepare(n,r,o).forEach(s=>{lX(n,s,c=>{if(typeof c!="object")s.icons.forEach(u=>{e.missing.add(u)});else try{const u=Bk(e,c);if(!u.length)return;const l=e.pendingIcons;l&&u.forEach(f=>{l.delete(f)}),pX(e,c)}catch(u){console.error(u)}vX(e)})})}))}const gX=(e,t)=>{const n=aX(e,!0,cN()),r=nX(n);if(!r.pending.length){let c=!0;return t&&setTimeout(()=>{c&&t(r.loaded,r.missing,r.pending,A$)}),()=>{c=!1}}const o=Object.create(null),i=[];let a,s;return r.pending.forEach(c=>{const{provider:u,prefix:l}=c;if(l===s&&u===a)return;a=u,s=l,i.push(Uu(u,l));const f=o[u]||(o[u]=Object.create(null));f[l]||(f[l]=[])}),r.pending.forEach(c=>{const{provider:u,prefix:l,name:f}=c,d=Uu(u,l),h=d.pendingIcons||(d.pendingIcons=new Set);h.has(f)||(h.add(f),o[u][l].push(f))}),i.forEach(c=>{const{provider:u,prefix:l}=c;o[u][l].length&&mX(c,o[u][l])}),t?iX(t,r,i):A$},yX=e=>new Promise((t,n)=>{const r=typeof e=="string"?x0(e,!0):e;if(!r){n(e);return}gX([r||e],o=>{if(o.length&&r){const i=qY(r);if(i){t({...zk,...i});return}}n(e)})});({...UY});const P$={backgroundColor:"currentColor"},bX={backgroundColor:"transparent"},T$={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},R$={webkitMask:P$,mask:P$,background:bX};for(const e in R$){const t=R$[e];for(const n in T$)t[e+n]=T$[n]}const z1={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";z1[e+"-flip"]=t,z1[e.slice(0,1)+"-flip"]=t,z1[e+"Flip"]=t});cN(!0);KY("",eX);if(typeof document<"u"&&typeof window<"u"){mN();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!VY(r))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const r="IconifyProviders["+n+"] is invalid.";try{const o=t[n];if(typeof o!="object"||!o||o.resources===void 0)continue;JY(n,o)||console.error(r)}catch{console.error(r)}}}}({...zk});const wX=Jo({__name:"Icon",props:{name:{type:String,required:!0},size:{type:String,default:""}},async setup(e){let t,n;const r=e,o=ar(),i=LG(),a=Rk("icons",()=>({})),s=Tn(!1),c=hr(()=>{var p;return((((p=i.nuxtIcon)==null?void 0:p.aliases)||{})[r.name]||r.name).replace(/^i-/,"")}),u=hr(()=>{var p;return(p=a.value)==null?void 0:p[c.value]}),l=hr(()=>o.vueApp.component(c.value)),f=hr(()=>{var v,m,g;if(!r.size&&typeof((v=i.nuxtIcon)==null?void 0:v.size)=="boolean"&&!((m=i.nuxtIcon)!=null&&m.size))return;const p=r.size||((g=i.nuxtIcon)==null?void 0:g.size)||"1em";return String(Number(p))===p?`${p}px`:p}),d=hr(()=>{var p;return((p=i==null?void 0:i.nuxtIcon)==null?void 0:p.class)??"icon"});async function h(){var p;l.value||(p=a.value)!=null&&p[c.value]||(s.value=!0,a.value[c.value]=await yX(c.value).catch(()=>{}),s.value=!1)}return co(()=>c.value,h),!l.value&&([t,n]=wb(()=>h()),t=await t,n()),(p,v)=>s.value?(Vn(),li("span",{key:0,class:Qr(d.value),style:Rc({width:f.value,height:f.value})},null,6)):u.value?(Vn(),jo(Ne(IY),{key:1,icon:u.value,class:Qr(d.value),width:f.value,height:f.value},null,8,["icon","class","width","height"])):l.value?(Vn(),jo(xk(l.value),{key:2,class:Qr(d.value),width:f.value,height:f.value},null,8,["class","width","height"])):(Vn(),li("span",{key:3,class:Qr(d.value),style:Rc({fontSize:f.value,lineHeight:f.value,width:f.value,height:f.value})},[Wu(p.$slots,"default",{},()=>[Ou(sm(e.name),1)],!0)],6))}});const gN=XI(wX,[["__scopeId","data-v-6f6643fb"]]),xX=Object.freeze(Object.defineProperty({__proto__:null,default:gN},Symbol.toStringTag,{value:"Module"}));function I$(e){return typeof e=="function"?e():Ne(e)}const kX=e=>typeof e<"u",N$=()=>{};function jX(e,t){function n(...r){return new Promise((o,i)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(i)})}return n}function _X(e,t={}){let n,r,o=N$;const i=s=>{clearTimeout(s),o(),o=N$};return s=>{const c=I$(e),u=I$(t.maxWait);return n&&i(n),c<=0||u!==void 0&&u<=0?(r&&(i(r),r=null),Promise.resolve(s())):new Promise((l,f)=>{o=t.rejectOnCancel?f:l,u&&!r&&(r=setTimeout(()=>{n&&i(n),r=null,l(s())},u)),n=setTimeout(()=>{r&&i(r),r=null,l(s())},c)})}}function Uk(e,t=200,n={}){return jX(_X(t,n),e)}function SX(e){return JSON.parse(JSON.stringify(e))}function $X(e,t,n,r={}){var o,i,a;const{clone:s=!1,passive:c=!1,eventName:u,deep:l=!1,defaultValue:f,shouldEmit:d}=r,h=Ks(),p=n||(h==null?void 0:h.emit)||((o=h==null?void 0:h.$emit)==null?void 0:o.bind(h))||((a=(i=h==null?void 0:h.proxy)==null?void 0:i.$emit)==null?void 0:a.bind(h==null?void 0:h.proxy));let v=u;t||(t="modelValue"),v=v||`update:${t.toString()}`;const m=b=>s?typeof s=="function"?s(b):SX(b):b,g=()=>kX(e[t])?m(e[t]):f,y=b=>{d?d(b)&&p(v,b):p(v,b)};if(c){const b=g(),w=Tn(b);let x=!1;return co(()=>e[t],k=>{x||(x=!0,w.value=m(k),Xc(()=>x=!1))}),co(w,k=>{!x&&(k!==e[t]||l)&&y(k)},{deep:l}),w}else return hr({get(){return g()},set(b){y(b)}})}const CX={class:"n-text-input flex flex items-center border n-border-base rounded py-1 pl-1 pr-2 focus-within:n-focus-base focus-within:border-context n-bg-base"},EX=Jo({__name:"NTextInput",props:{modelValue:{default:""},icon:{},placeholder:{},disabled:{type:Boolean},autofocus:{type:Boolean},type:{default:"text"}},setup(e,{emit:t}){const r=$X(e,"modelValue",t,{passive:!0});return(o,i)=>{const a=Dk;return Vn(),li("div",CX,[Wu(o.$slots,"icon",{},()=>[o.icon?(Vn(),jo(a,{key:0,icon:o.icon,class:"ml-0.3em mr-0.1em text-1.1em op50"},null,8,["icon"])):qa("",!0)]),VW(nr("input",$k({"onUpdate:modelValue":i[0]||(i[0]=s=>Zr(r)?r.value=s:null)},o.$props,{class:"ml-0.4em w-full flex-auto n-bg-base !outline-none"}),null,16),[[nK,Ne(r)]])])}}}),OX=(e,t)=>t.path.replace(/(:\w+)\([^)]+\)/g,"$1").replace(/(:\w+)[?+*]/g,"$1").replace(/:\w+/g,n=>{var r;return((r=e.params[n.slice(1)])==null?void 0:r.toString())||""}),Yb=(e,t)=>{const n=e.route.matched.find(o=>{var i;return((i=o.components)==null?void 0:i.default)===e.Component.type}),r=t??(n==null?void 0:n.meta.key)??(n&&OX(e.route,n));return typeof r=="function"?r(e.route):r},MX=(e,t)=>({default:()=>e?Vo(GW,e===!0?{}:e,t):t}),AX=Jo({name:"RouteProvider",props:{vnode:{type:Object,required:!0},route:{type:Object,required:!0},vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(e){const t=e.renderKey,n=e.route,r={};for(const o in e.route)Object.defineProperty(r,o,{get:()=>t===e.renderKey?e.route[o]:n[o]});return Gl(g0,up(r)),()=>Vo(e.vnode,{ref:e.vnodeRef})}}),PX=(e,t,n)=>(t=t===!0?{}:t,{default:()=>{var r;return t?Vo(e,t,n):(r=n.default)==null?void 0:r.call(n)}}),TX=Jo({name:"NuxtPage",inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(e,{attrs:t,expose:n}){const r=ar(),o=Tn(),i=mi(g0,null);n({pageRef:o});const a=mi(bG,null);let s;const c=r.deferHydration();return()=>Vo(YI,{name:e.name,route:e.route,...t},{default:u=>{const l=NX(i,u.route,u.Component),f=i&&i.matched.length===u.route.matched.length;if(!u.Component)return s&&!f?s:void 0;if(s&&a&&!a.isCurrent(u.route))return s;if(l&&i&&(!a||a!=null&&a.isCurrent(i)))return f?s:null;const d=Yb(u,e.pageKey),h=!!(e.transition??u.route.meta.pageTransition??Ib),p=h&&IX([e.transition,u.route.meta.pageTransition,Ib,{onAfterLeave:()=>{r.callHook("page:transition:finish",u.Component)}}].filter(Boolean));return s=PX(Ek,h&&p,MX(e.keepalive??u.route.meta.keepalive??aG,Vo(N9,{suspensible:!0,onPending:()=>r.callHook("page:start",u.Component),onResolve:()=>{Xc(()=>r.callHook("page:finish",u.Component).finally(c))}},{default:()=>Vo(AX,{key:d,vnode:u.Component,route:u.route,renderKey:d,trackRootNodes:h,vnodeRef:o})}))).default(),s}})}});function RX(e){return Array.isArray(e)?e:e?[e]:[]}function IX(e){const t=e.map(n=>({...n,onAfterLeave:RX(n.onAfterLeave)}));return dG(...t)}function NX(e,t,n){if(!e)return!1;const r=t.matched.findIndex(o=>{var i;return((i=o.components)==null?void 0:i.default)===(n==null?void 0:n.type)});return!r||r===-1?!1:t.matched.slice(0,r).some((o,i)=>{var a,s,c;return((a=o.components)==null?void 0:a.default)!==((c=(s=e.matched[i])==null?void 0:s.components)==null?void 0:c.default)})||n&&Yb({route:t,Component:n})!==Yb({route:e,Component:n})}const DX=6e4;function yN(e){return e}const LX=yN,{clearTimeout:zX,setTimeout:BX}=globalThis,FX=Math.random.bind(Math);function qX(e,t){const{post:n,on:r,eventNames:o=[],serialize:i=yN,deserialize:a=LX,resolver:s,timeout:c=DX}=t,u=new Map;let l;const f=new Proxy({},{get(d,h){if(h==="$functions")return e;const p=(...m)=>{n(i({m:h,a:m,t:"q"}))};if(o.includes(h))return p.asEvent=p,p;const v=async(...m)=>(await l,new Promise((g,y)=>{var x,k;const b=VX();let w;c>=0&&(w=(k=(x=BX(()=>{y(new Error(`[birpc] timeout on calling "${h}"`)),u.delete(b)},c)).unref)==null?void 0:k.call(x)),u.set(b,{resolve:g,reject:y,timeoutId:w}),n(i({m:h,a:m,i:b,t:"q"}))}));return v.asEvent=p,v}});return l=r(async(d,...h)=>{const p=a(d);if(p.t==="q"){const{m:v,a:m}=p;let g,y;const b=s?s(v,e[v]):e[v];if(!b)y=new Error(`[birpc] function "${v}" not found`);else try{g=await b.apply(f,m)}catch(w){y=w}p.i&&(y&&t.onError&&t.onError(y,v,m),n(i({t:"s",i:p.i,r:g,e:y}),...h))}else{const{i:v,r:m,e:g}=p,y=u.get(v);y&&(zX(y.timeoutId),g?y.reject(g):y.resolve(m)),u.delete(v)}}),f}const HX="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function VX(e=21){let t="",n=e;for(;n--;)t+=HX[FX()*64|0];return t}/*! (c) 2020 Andrea Giammarchi */const{parse:WX,stringify:UX}=JSON,{keys:KX}=Object,Sh=String,bN="string",D$={},rg="object",wN=(e,t)=>t,JX=e=>e instanceof Sh?Sh(e):e,GX=(e,t)=>typeof t===bN?new Sh(t):t,xN=(e,t,n,r)=>{const o=[];for(let i=KX(n),{length:a}=i,s=0;s<a;s++){const c=i[s],u=n[c];if(u instanceof Sh){const l=e[u];typeof l===rg&&!t.has(l)?(t.add(l),n[c]=D$,o.push({k:c,a:[e,t,l,r]})):n[c]=r.call(n,c,l)}else n[c]!==D$&&(n[c]=r.call(n,c,u))}for(let{length:i}=o,a=0;a<i;a++){const{k:s,a:c}=o[a];n[s]=r.call(n,s,xN.apply(null,c))}return n},L$=(e,t,n)=>{const r=Sh(t.push(n)-1);return e.set(n,r),r},QX=(e,t)=>{const n=WX(e,GX).map(JX),r=n[0],o=t||wN,i=typeof r===rg&&r?xN(n,new Set,r,o):r;return o.call({"":i},"",i)},YX=(e,t,n)=>{const r=t&&typeof t===rg?(l,f)=>l===""||-1<t.indexOf(l)?f:void 0:t||wN,o=new Map,i=[],a=[];let s=+L$(o,i,r.call({"":e},"",e)),c=!s;for(;s<i.length;)c=!0,a[s]=UX(i[s++],u,n);return"["+a.join(",")+"]";function u(l,f){if(c)return c=!c,f;const d=r.call(this,l,f);switch(typeof d){case rg:if(d===null)return d;case bN:return o.get(d)||L$(o,i,d)}return d}},XX=2e3;let kN=()=>{};const z$=Tn(!0),B$=Tn(),jN=Tn(null);function ZX(e){const t=qX(e,{post:n=>jN.value.send(n),on:n=>{kN=n},serialize:YX,deserialize:QX});return{useServerConfig:async function(){return(await Tk("server-config",()=>t.getConfig())).data}}}async function _N(e){const t=new WebSocket(`ws://${e}/__nuxt_og_image__/entry`);return t.addEventListener("message",n=>kN(String(n.data))),t.addEventListener("error",n=>{B$.value=n}),t.addEventListener("close",()=>{console.log("[nuxt-og-image] WebSocket closed, reconnecting..."),setTimeout(async()=>{jN.value=await _N(e)},XX)}),z$.value=!0,t.readyState!==WebSocket.OPEN&&await new Promise(n=>t.addEventListener("open",n)),console.log("[nuxt-og-image] WebSocket connected."),z$.value=!1,B$.value=null,t}const j0=Tn(Date.now()),F$=Tn(null),SN=window.location.host,Ga=Tn("/"),$N=Tn("/"),Zp=Tn({}),Id=Tn({}),yu=Tn(!1),B1=Tn({}),Nd=Uk(()=>{j0.value=Date.now()},200),tZ=Uk(()=>{j0.value=Date.now()},1e3),eZ={refresh(){yu.value=!1,Id.value={},Nd()}};ZX(eZ);const yl=Tn(null),Kk=hr(()=>yI($N.value,`${window.location.protocol}//${SN}`)),o4t=hr(()=>`${Kk.value}${Ga.value==="/"?"":Ga.value}`);async function q$(){const{data:e}=await Tk(()=>$fetch("/api/og-image-options",{baseURL:Kk.value,query:{path:Ga.value}}),{watch:[Ga,j0]},"$XVR8o8RMBy");return e}async function i4t(){const{data:e}=await Tk(()=>$fetch("/api/og-image-vnode",{query:{path:Ga.value},baseURL:Kk.value}),{watch:[Ga,j0]},"$cHgKigQ0kS");return e}var F1,H$,V$,W$,U$,K$,J$,G$,Q$,Y$,X$,Z$,tC,eC,nC,rC,oC,iC,aC,sC,cC,uC,lC,fC,dC,hC,pC,vC,mC,gC,yC,bC,wC,xC,kC,jC,_C,SC,$C,CC,EC,OC,MC,AC,PC,TC,RC,IC,NC,DC,LC,zC,BC,FC,qC,HC,VC,WC,UC,KC,JC,GC,QC,YC,XC,ZC,t3,e3,n3,r3,o3,i3,a3,s3,c3,u3,l3,f3,d3,h3,p3,v3,m3,g3,y3,b3,w3,x3,k3,j3,_3,S3,$3,C3,E3,O3,M3,A3,P3,T3,R3,I3,N3,D3,L3,z3,B3,F3,q3,H3,V3,W3,U3,K3,J3,G3,Q3,Y3,X3,Z3,t4,e4,n4,r4,o4,i4,a4,s4,c4,u4,l4,f4,d4,h4,p4,v4,m4,g4,y4,b4,w4,x4,k4,j4,_4,S4,$4,C4,E4,O4,M4,A4,P4,T4,R4,I4,N4,D4,L4,z4,B4,F4,q4,H4,V4,W4,U4,K4,J4,G4,Q4,Y4,X4,Z4,t8,e8,n8,r8,o8,i8,a8,s8,c8,u8,l8,f8,d8,h8,p8,v8,m8,g8,y8,b8,w8,x8,k8,j8,_8,S8,$8,C8,E8,O8,M8,A8,P8,T8,R8,I8,N8,D8,L8,z8,B8,F8,q8,H8,V8,W8,U8,K8,J8,G8,Q8,Y8,X8,Z8,t5,e5,n5,r5,o5,i5,a5,s5,c5,u5,l5,f5,d5,h5,p5,v5,m5,g5,y5,b5,w5,x5,k5,j5,_5,S5,$5,C5,E5,O5,M5,A5,P5,T5,R5,I5,N5,D5,L5,z5,B5,F5,q5,H5,V5,W5,U5,K5,J5,G5,Q5,Y5,X5,Z5,tE,nZ=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],rZ=["mainAxis","crossAxis","limiter"];function st(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function jn(){return jn=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(i,a){for(;!Object.prototype.hasOwnProperty.call(i,a)&&(i=ln(i))!==null;);return i}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},jn.apply(this,arguments)}function CN(e,t){if(e==null)return{};var n,r,o=function(a,s){if(a==null)return{};var c,u,l={},f=Object.keys(a);for(u=0;u<f.length;u++)c=f[u],s.indexOf(c)>=0||(l[c]=a[c]);return l}(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 ht(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=_0(e))||t&&e&&typeof e.length=="number"){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(c){throw c},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
6
|
+
In 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 c=n.next();return a=c.done,c},e:function(c){s=!0,i=c},f:function(){try{a||n.return==null||n.return()}finally{if(s)throw i}}}}function qt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */qt=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(j,R,q){j[R]=q.value},o=typeof Symbol=="function"?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(j,R,q){return Object.defineProperty(j,R,{value:q,enumerable:!0,configurable:!0,writable:!0}),j[R]}try{c({},"")}catch{c=function(R,q,O){return R[q]=O}}function u(j,R,q,O){var F=R&&R.prototype instanceof d?R:d,J=Object.create(F.prototype),I=new T(O||[]);return r(J,"_invoke",{value:x(j,q,I)}),J}function l(j,R,q){try{return{type:"normal",arg:j.call(R,q)}}catch(O){return{type:"throw",arg:O}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,function(){return this});var m=Object.getPrototypeOf,g=m&&m(m($([])));g&&g!==t&&n.call(g,i)&&(v=g);var y=p.prototype=d.prototype=Object.create(v);function b(j){["next","throw","return"].forEach(function(R){c(j,R,function(q){return this._invoke(R,q)})})}function w(j,R){function q(F,J,I,D){var C=l(j[F],j,J);if(C.type!=="throw"){var M=C.arg,P=M.value;return P&&ce(P)=="object"&&n.call(P,"__await")?R.resolve(P.__await).then(function(B){q("next",B,I,D)},function(B){q("throw",B,I,D)}):R.resolve(P).then(function(B){M.value=B,I(M)},function(B){return q("throw",B,I,D)})}D(C.arg)}var O;r(this,"_invoke",{value:function(F,J){function I(){return new R(function(D,C){q(F,J,D,C)})}return O=O?O.then(I,I):I()}})}function x(j,R,q){var O="suspendedStart";return function(F,J){if(O==="executing")throw new Error("Generator is already running");if(O==="completed"){if(F==="throw")throw J;return{value:void 0,done:!0}}for(q.method=F,q.arg=J;;){var I=q.delegate;if(I){var D=k(I,q);if(D){if(D===f)continue;return D}}if(q.method==="next")q.sent=q._sent=q.arg;else if(q.method==="throw"){if(O==="suspendedStart")throw O="completed",q.arg;q.dispatchException(q.arg)}else q.method==="return"&&q.abrupt("return",q.arg);O="executing";var C=l(j,R,q);if(C.type==="normal"){if(O=q.done?"completed":"suspendedYield",C.arg===f)continue;return{value:C.arg,done:q.done}}C.type==="throw"&&(O="completed",q.method="throw",q.arg=C.arg)}}}function k(j,R){var q=R.method,O=j.iterator[q];if(O===void 0)return R.delegate=null,q==="throw"&&j.iterator.return&&(R.method="return",R.arg=void 0,k(j,R),R.method==="throw")||q!=="return"&&(R.method="throw",R.arg=new TypeError("The iterator does not provide a '"+q+"' method")),f;var F=l(O,j.iterator,R.arg);if(F.type==="throw")return R.method="throw",R.arg=F.arg,R.delegate=null,f;var J=F.arg;return J?J.done?(R[j.resultName]=J.value,R.next=j.nextLoc,R.method!=="return"&&(R.method="next",R.arg=void 0),R.delegate=null,f):J:(R.method="throw",R.arg=new TypeError("iterator result is not an object"),R.delegate=null,f)}function E(j){var R={tryLoc:j[0]};1 in j&&(R.catchLoc=j[1]),2 in j&&(R.finallyLoc=j[2],R.afterLoc=j[3]),this.tryEntries.push(R)}function _(j){var R=j.completion||{};R.type="normal",delete R.arg,j.completion=R}function T(j){this.tryEntries=[{tryLoc:"root"}],j.forEach(E,this),this.reset(!0)}function $(j){if(j||j===""){var R=j[i];if(R)return R.call(j);if(typeof j.next=="function")return j;if(!isNaN(j.length)){var q=-1,O=function F(){for(;++q<j.length;)if(n.call(j,q))return F.value=j[q],F.done=!1,F;return F.value=void 0,F.done=!0,F};return O.next=O}}throw new TypeError(ce(j)+" is not iterable")}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),e.isGeneratorFunction=function(j){var R=typeof j=="function"&&j.constructor;return!!R&&(R===h||(R.displayName||R.name)==="GeneratorFunction")},e.mark=function(j){return Object.setPrototypeOf?Object.setPrototypeOf(j,p):(j.__proto__=p,c(j,s,"GeneratorFunction")),j.prototype=Object.create(y),j},e.awrap=function(j){return{__await:j}},b(w.prototype),c(w.prototype,a,function(){return this}),e.AsyncIterator=w,e.async=function(j,R,q,O,F){F===void 0&&(F=Promise);var J=new w(u(j,R,q,O),F);return e.isGeneratorFunction(R)?J:J.next().then(function(I){return I.done?I.value:J.next()})},b(y),c(y,s,"Generator"),c(y,i,function(){return this}),c(y,"toString",function(){return"[object Generator]"}),e.keys=function(j){var R=Object(j),q=[];for(var O in R)q.push(O);return q.reverse(),function F(){for(;q.length;){var J=q.pop();if(J in R)return F.value=J,F.done=!1,F}return F.done=!0,F}},e.values=$,T.prototype={constructor:T,reset:function(j){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!j)for(var R in this)R.charAt(0)==="t"&&n.call(this,R)&&!isNaN(+R.slice(1))&&(this[R]=void 0)},stop:function(){this.done=!0;var j=this.tryEntries[0].completion;if(j.type==="throw")throw j.arg;return this.rval},dispatchException:function(j){if(this.done)throw j;var R=this;function q(C,M){return J.type="throw",J.arg=j,R.next=C,M&&(R.method="next",R.arg=void 0),!!M}for(var O=this.tryEntries.length-1;O>=0;--O){var F=this.tryEntries[O],J=F.completion;if(F.tryLoc==="root")return q("end");if(F.tryLoc<=this.prev){var I=n.call(F,"catchLoc"),D=n.call(F,"finallyLoc");if(I&&D){if(this.prev<F.catchLoc)return q(F.catchLoc,!0);if(this.prev<F.finallyLoc)return q(F.finallyLoc)}else if(I){if(this.prev<F.catchLoc)return q(F.catchLoc,!0)}else{if(!D)throw new Error("try statement without catch or finally");if(this.prev<F.finallyLoc)return q(F.finallyLoc)}}}},abrupt:function(j,R){for(var q=this.tryEntries.length-1;q>=0;--q){var O=this.tryEntries[q];if(O.tryLoc<=this.prev&&n.call(O,"finallyLoc")&&this.prev<O.finallyLoc){var F=O;break}}F&&(j==="break"||j==="continue")&&F.tryLoc<=R&&R<=F.finallyLoc&&(F=null);var J=F?F.completion:{};return J.type=j,J.arg=R,F?(this.method="next",this.next=F.finallyLoc,f):this.complete(J)},complete:function(j,R){if(j.type==="throw")throw j.arg;return j.type==="break"||j.type==="continue"?this.next=j.arg:j.type==="return"?(this.rval=this.arg=j.arg,this.method="return",this.next="end"):j.type==="normal"&&R&&(this.next=R),f},finish:function(j){for(var R=this.tryEntries.length-1;R>=0;--R){var q=this.tryEntries[R];if(q.finallyLoc===j)return this.complete(q.completion,q.afterLoc),_(q),f}},catch:function(j){for(var R=this.tryEntries.length-1;R>=0;--R){var q=this.tryEntries[R];if(q.tryLoc===j){var O=q.completion;if(O.type==="throw"){var F=O.arg;_(q)}return F}}throw new Error("illegal catch attempt")},delegateYield:function(j,R,q){return this.delegate={iterator:$(j),resultName:R,nextLoc:q},this.method==="next"&&(this.arg=void 0),f}},e}function eE(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,o)}function Ae(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(c){eE(i,r,o,a,s,"next",c)}function s(c){eE(i,r,o,a,s,"throw",c)}a(void 0)})}}function Ce(e,t){return ON(e)||function(n,r){var o=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(o!=null){var i,a,s,c,u=[],l=!0,f=!1;try{if(s=(o=o.call(n)).next,r===0){if(Object(o)!==o)return;l=!1}else for(;!(l=(i=s.call(o)).done)&&(u.push(i.value),u.length!==r);l=!0);}catch(d){f=!0,a=d}finally{try{if(!l&&o.return!=null&&(c=o.return(),Object(c)!==c))return}finally{if(f)throw a}}return u}}(e,t)||_0(e,t)||EN()}function EN(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
7
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ON(e){if(Array.isArray(e))return e}function kf(e){var t=typeof Map=="function"?new Map:void 0;return kf=function(n){if(n===null||(r=n,Function.toString.call(r).indexOf("[native code]")===-1))return n;var r;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,o)}function o(){return Xb(n,arguments,ln(this).constructor)}return o.prototype=Object.create(n.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),$h(o,n)},kf(e)}function Xb(e,t,n){return Xb=MN()?Reflect.construct.bind():function(r,o,i){var a=[null];a.push.apply(a,o);var s=new(Function.bind.apply(r,a));return i&&$h(s,i.prototype),s},Xb.apply(null,arguments)}function Tt(e,t){if(typeof t!="function"&&t!==null)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&&$h(e,t)}function $h(e,t){return $h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},$h(e,t)}function Rt(e){var t=MN();return function(){var n,r=ln(e);if(t){var o=ln(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(i,a){if(a&&(ce(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return he(i)}(this,n)}}function he(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function MN(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ln(e){return ln=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ln(e)}function nE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function xt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nE(Object(n),!0).forEach(function(r){Wo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ot(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rE(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,AN(r.key),r)}}function it(e,t,n){return t&&rE(e.prototype,t),n&&rE(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Wo(e,t,n){return(t=AN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AN(e){var t=function(n,r){if(ce(n)!=="object"||n===null)return n;var o=n[Symbol.toPrimitive];if(o!==void 0){var i=o.call(n,r||"default");if(ce(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(n)}(e,"string");return ce(t)==="symbol"?t:String(t)}function $e(e){return function(t){if(Array.isArray(t))return Zb(t)}(e)||PN(e)||_0(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
8
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function _0(e,t){if(e){if(typeof e=="string")return Zb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Zb(e,t):void 0}}function PN(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Zb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ce(e){return ce=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ce(e)}function Ht(){}var TN=function(e){return e};function oi(e,t){for(var n in t)e[n]=t[n];return e}function RN(e){return e()}function oE(){return Object.create(null)}function Fn(e){e.forEach(RN)}function uo(e){return typeof e=="function"}function eo(e,t){return e!=e?t==t:e!==t||e&&ce(e)==="object"||typeof e=="function"}function qe(e,t){return e!=e?t==t:e!==t}function Cr(e,t,n,r){if(e){var o=IN(e,t,n,r);return e[0](o)}}function IN(e,t,n,r){return e[1]&&r?oi(n.ctx.slice(),e[1](r(t))):n.ctx}function Er(e,t,n,r){if(e[2]&&r){var o=e[2](r(n));if(t.dirty===void 0)return o;if(ce(o)==="object"){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 Or(e,t,n,r,o,i){if(o){var a=IN(t,n,r,i);e.p(a,o)}}function Mr(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 NN(e){var t={};for(var n in e)n[0]!=="$"&&(t[n]=e[n]);return t}function og(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 dr(e){return e??""}function fo(e){return e&&uo(e.destroy)?e.destroy:Ht}var DN=typeof window<"u",oZ=DN?function(){return window.performance.now()}:function(){return Date.now()},Jk=DN?function(e){return requestAnimationFrame(e)}:Ht,Zd=new Set;function LN(e){Zd.forEach(function(t){t.c(e)||(Zd.delete(t),t.f())}),Zd.size!==0&&Jk(LN)}var Gk=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function H(e,t){e.appendChild(t)}function Le(e,t,n){var r=Qk(e);if(!r.getElementById(t)){var o=tt("style");o.id=t,o.textContent=n,zN(r,o)}}function Qk(e){if(!e)return document;var t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function iZ(e){var t=tt("style");return t.textContent="/* empty */",zN(Qk(e),t),t.sheet}function zN(e,t){return H(e.head||e,t),t.sheet}function ft(e,t,n){e.insertBefore(t,n||null)}function lt(e){e.parentNode&&e.parentNode.removeChild(e)}function Dr(e,t){for(var n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function tt(e){return document.createElement(e)}function as(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Gt(e){return document.createTextNode(e)}function kt(){return Gt(" ")}function Sn(){return Gt("")}function zt(e,t,n,r){return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n,r)}}function Ku(e){return function(t){return t.preventDefault(),e.call(this,t)}}function Lc(e){return function(t){return t.stopPropagation(),e.call(this,t)}}function S(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}var aZ=["width","height"];function iE(e,t){var n=Object.getOwnPropertyDescriptors(e.__proto__);for(var r in t)t[r]==null?e.removeAttribute(r):r==="style"?e.style.cssText=t[r]:r==="__value"?e.value=e[r]=t[r]:n[r]&&n[r].set&&aZ.indexOf(r)===-1?e[r]=t[r]:S(e,r,t[r])}function jf(e,t){for(var n in t)S(e,n,t[n])}function we(e,t){t=""+t,e.data!==t&&(e.data=t)}function ss(e,t){e.value=t??""}function yc(e,t,n,r){n==null?e.style.removeProperty(t):e.style.setProperty(t,n,r?"important":"")}function aE(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&&t===void 0||(e.selectedIndex=-1)}function Dt(e,t,n){e.classList.toggle(t,!!n)}function BN(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.bubbles,o=r!==void 0&&r,i=n.cancelable;return new CustomEvent(e,{detail:t,bubbles:o,cancelable:i!==void 0&&i})}function cs(e,t){return new e(t)}var Ch,ig=new Map,tw=0;function sE(e,t,n,r,o,i,a){for(var s=arguments.length>7&&arguments[7]!==void 0?arguments[7]:0,c=16.666/r,u=`{
|
|
9
|
+
`,l=0;l<=1;l+=c){var f=t+(n-t)*i(l);u+=100*l+"%{".concat(a(f,1-f),`}
|
|
10
|
+
`)}var d=u+"100% {".concat(a(n,1-n),`}
|
|
11
|
+
}`),h="__svelte_".concat(function(b){for(var w=5381,x=b.length;x--;)w=(w<<5)-w^b.charCodeAt(x);return w>>>0}(d),"_").concat(s),p=Qk(e),v=ig.get(p)||function(b,w){var x={stylesheet:iZ(w),rules:{}};return ig.set(b,x),x}(p,e),m=v.stylesheet,g=v.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"),tw+=1,h}function sZ(e,t){var n=(e.style.animation||"").split(", "),r=n.filter(t?function(i){return i.indexOf(t)<0}:function(i){return i.indexOf("__svelte")===-1}),o=n.length-r.length;o&&(e.style.animation=r.join(", "),(tw-=o)||Jk(function(){tw||(ig.forEach(function(i){var a=i.stylesheet.ownerNode;a&<(a)}),ig.clear())}))}function th(e){Ch=e}function Wf(){if(!Ch)throw new Error("Function called outside component initialization");return Ch}function Wi(e){Wf().$$.on_mount.push(e)}function gi(e){Wf().$$.on_destroy.push(e)}function FN(){var e=Wf();return function(t,n){var r=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).cancelable,o=r!==void 0&&r,i=e.$$.callbacks[t];if(i){var a=BN(t,n,{cancelable:o});return i.slice().forEach(function(s){s.call(e,a)}),!a.defaultPrevented}return!0}}function qN(e,t){return Wf().$$.context.set(e,t),t}function ho(e){return Wf().$$.context.get(e)}function tv(e,t){var n=this,r=e.$$.callbacks[t.type];r&&r.slice().forEach(function(o){return o.call(n,t)})}var Sl=[],Ze=[],Ql=[],ew=[],HN=Promise.resolve(),nw=!1;function VN(){nw||(nw=!0,HN.then(WN))}function br(){return VN(),HN}function Ju(e){Ql.push(e)}function fa(e){ew.push(e)}var ev,q1=new Set,bl=0;function WN(){if(bl===0){var e=Ch;do{try{for(;bl<Sl.length;){var t=Sl[bl];bl++,th(t),cZ(t.$$)}}catch(o){throw Sl.length=0,bl=0,o}for(th(null),Sl.length=0,bl=0;Ze.length;)Ze.pop()();for(var n=0;n<Ql.length;n+=1){var r=Ql[n];q1.has(r)||(q1.add(r),r())}Ql.length=0}while(Sl.length);for(;ew.length;)ew.pop()();nw=!1,q1.clear(),th(e)}}function cZ(e){if(e.fragment!==null){e.update(),Fn(e.before_update);var t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Ju)}}function H1(e,t,n){e.dispatchEvent(BN("".concat(t?"intro":"outro").concat(n)))}var Ms,hm=new Set;function Bt(){Ms={r:0,c:[],p:Ms}}function Ft(){Ms.r||Fn(Ms.c),Ms=Ms.p}function z(e,t){e&&e.i&&(hm.delete(e),e.i(t))}function V(e,t,n,r){if(e&&e.o){if(hm.has(e))return;hm.add(e),Ms.c.push(function(){hm.delete(e),r&&(n&&e.d(1),r())}),e.o(t)}else r&&r()}var uZ={duration:0};function nv(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&&sZ(e,u)}function f(h,p){var v=h.b-a;return p*=Math.abs(v),{a,b:h.b,d:v,duration:p,start:h.start,end:h.start+p,group:h.group}}function d(h){var p,v=i||uZ,m=v.delay,g=m===void 0?0:m,y=v.duration,b=y===void 0?300:y,w=v.easing,x=w===void 0?TN:w,k=v.tick,E=k===void 0?Ht:k,_=v.css,T={start:oZ()+g,b:h};h||(T.group=Ms,Ms.r+=1),"inert"in e&&(h?o!==void 0&&(e.inert=o):(o=e.inert,e.inert=!0)),s||c?c=T:(_&&(l(),u=sE(e,a,h,b,g,x,_)),h&&E(0,1),s=f(T,b),Ju(function(){return H1(e,h,"start")}),p=function($){if(c&&$>c.start&&(s=f(c,b),c=null,H1(e,s.b,"start"),_&&(l(),u=sE(e,a,s.b,s.duration,0,x,i.css))),s){if($>=s.end)E(a=s.b,1-a),H1(e,s.b,"end"),c||(s.b?l():--s.group.r||Fn(s.group.c)),s=null;else if($>=s.start){var j=$-s.start;a=s.a+s.d*x(j/s.duration),E(a,1-a)}}return!(!s&&!c)},Zd.size===0&&Jk(LN),new Promise(function($){Zd.add({c:p,f:$})}))}return{run:function(h){uo(i)?(ev||(ev=Promise.resolve()).then(function(){ev=null}),ev).then(function(){i=i({direction:h?"in":"out"}),d(h)}):d(h)},end:function(){l(),s=c=null}}}function De(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function lZ(e,t){e.d(1),t.delete(e.key)}function Yk(e,t){V(e,1,1,function(){t.delete(e.key)})}function S0(e,t,n,r,o,i,a,s,c,u,l,f){for(var d=e.length,h=i.length,p=d,v={};p--;)v[e[p].key]=p;var m=[],g=new Map,y=new Map,b=[];p=h;for(var w=function(){var q=f(o,i,p),O=n(q),F=a.get(O);F?r&&b.push(function(){return F.p(q,t)}):(F=u(O,q)).c(),g.set(O,m[p]=F),O in v&&y.set(O,Math.abs(p-v[O]))};p--;)w();var x=new Set,k=new Set;function E(q){z(q,1),q.m(s,l),a.set(q.key,q),l=q.first,h--}for(;d&&h;){var _=m[h-1],T=e[d-1],$=_.key,j=T.key;_===T?(l=_.first,d--,h--):g.has(j)?!a.has($)||x.has($)?E(_):k.has(j)?d--:y.get($)>y.get(j)?(k.add($),E(_)):(x.add(j),d--):(c(T,a),d--)}for(;d--;){var R=e[d];g.has(R.key)||c(R,a)}for(;h;)E(m[h-1]);return Fn(b),m}function Ui(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 Gu(e){return ce(e)==="object"&&e!==null?e:{}}function da(e,t,n){var r=e.$$.props[t];r!==void 0&&(e.$$.bound[r]=n,n(e.$$.ctx[r]))}function Pt(e){e&&e.c()}function Mt(e,t,n){var r=e.$$,o=r.fragment,i=r.after_update;o&&o.m(t,n),Ju(function(){var a,s=e.$$.on_mount.map(RN).filter(uo);e.$$.on_destroy?(a=e.$$.on_destroy).push.apply(a,$e(s)):Fn(s),e.$$.on_mount=[]}),i.forEach(Ju)}function At(e,t){var n,r,o,i=e.$$;i.fragment!==null&&(n=i.after_update,r=[],o=[],Ql.forEach(function(a){return n.indexOf(a)===-1?r.push(a):o.push(a)}),o.forEach(function(a){return a()}),Ql=r,Fn(i.on_destroy),i.fragment&&i.fragment.d(t),i.on_destroy=i.fragment=null,i.ctx=[])}function ve(e,t,n,r,o,i,a){var s=arguments.length>7&&arguments[7]!==void 0?arguments[7]:[-1],c=Ch;th(e);var u=e.$$={fragment:null,ctx:[],props:i,update:Ht,not_equal:o,bound:oE(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(c?c.$$.context:[])),callbacks:oE(),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(d,h){var p=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:h;return u.ctx&&o(u.ctx[d],u.ctx[d]=p)&&(!u.skip_bound&&u.bound[d]&&u.bound[d](p),l&&function(v,m){v.$$.dirty[0]===-1&&(Sl.push(v),VN(),v.$$.dirty.fill(0)),v.$$.dirty[m/31|0]|=1<<m%31}(e,d)),h}):[],u.update(),l=!0,Fn(u.before_update),u.fragment=!!r&&r(u.ctx),t.target){if(t.hydrate){var f=function(d){return Array.from(d.childNodes)}(t.target);u.fragment&&u.fragment.l(f),f.forEach(lt)}else u.fragment&&u.fragment.c();t.intro&&z(e.$$.fragment),Mt(e,t.target,t.anchor),WN()}th(c)}var me=function(){function e(){ot(this,e),Wo(this,"$$",void 0),Wo(this,"$$set",void 0)}return it(e,[{key:"$destroy",value:function(){At(this,1),this.$destroy=Ht}},{key:"$on",value:function(t,n){if(!uo(n))return Ht;var r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),function(){var o=r.indexOf(n);o!==-1&&r.splice(o,1)}}},{key:"$set",value:function(t){var n;this.$$set&&(n=t,Object.keys(n).length!==0)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}]),e}();function po(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(r){var o=function(i){try{if(typeof window<"u"&&window.localStorage!==void 0)return window.localStorage[i]}catch{}}("debug");return o!=null&&o.endsWith("*")?r.startsWith(o.slice(0,-1)):r===o}(e);if(!t)return fZ;var n=function(r){for(var o=0,i=0;i<r.length;i++)o=(o<<5)-o+r.charCodeAt(i),o|=0;return cE[Math.abs(o)%cE.length]}(e);return function(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];(r=console).log.apply(r,["%c".concat(e),"color:".concat(n)].concat(i))}}function fZ(){}typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add("4");var cE=["#0000CC","#0099FF","#009400","#8dd200","#CCCC00","#CC9933","#ae04e7","#ff35d7","#FF3333","#FF6600","#FF9933","#FFCC33"];function dZ(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.delay,r=n===void 0?0:n,o=t.duration,i=o===void 0?400:o,a=t.easing,s=a===void 0?TN:a,c=+getComputedStyle(e).opacity;return{delay:r,duration:i,easing:s,css:function(u){return"opacity: ".concat(u*c)}}}var hZ=Gk.window;function pZ(e){Le(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),
|
|
12
|
+
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),
|
|
13
|
+
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 uE(e){var t,n,r,o,i,a,s,c,u,l,f,d,h,p,v,m,g,y,b=e[1].closeButton&&lE(e),w=e[2];return w&&(a=cs(w,{})),{c:function(){t=tt("div"),n=tt("div"),r=tt("div"),b&&b.c(),o=kt(),i=tt("div"),a&&Pt(a.$$.fragment),S(i,"class",s=dr(e[1].classContent)+" svelte-n7cvum"),S(i,"style",e[9]),Dt(i,"content",!e[0]),S(r,"class",c=dr(e[1].classWindow)+" svelte-n7cvum"),S(r,"role","dialog"),S(r,"aria-modal","true"),S(r,"aria-label",u=e[1].ariaLabelledBy?null:e[1].ariaLabel||null),S(r,"aria-labelledby",l=e[1].ariaLabelledBy||null),S(r,"style",e[8]),Dt(r,"window",!e[0]),S(n,"class",d=dr(e[1].classWindowWrap)+" svelte-n7cvum"),S(n,"style",e[7]),Dt(n,"wrap",!e[0]),S(t,"aria-hidden","true"),S(t,"id",h=e[1].id),S(t,"class",p=dr(e[1].classBg)+" svelte-n7cvum"),S(t,"style",e[6]),Dt(t,"bg",!e[0])},m:function(x,k){ft(x,t,k),H(t,n),H(n,r),b&&b.m(r,null),H(r,o),H(r,i),a&&Mt(a,i,null),e[50](r),e[51](n),e[52](t),m=!0,g||(y=[zt(r,"introstart",function(){uo(e[13])&&e[13].apply(this,arguments)}),zt(r,"outrostart",function(){uo(e[14])&&e[14].apply(this,arguments)}),zt(r,"introend",function(){uo(e[15])&&e[15].apply(this,arguments)}),zt(r,"outroend",function(){uo(e[16])&&e[16].apply(this,arguments)}),zt(t,"mousedown",e[20]),zt(t,"mouseup",e[21])],g=!0)},p:function(x,k){if((e=x)[1].closeButton?b?(b.p(e,k),2&k[0]&&z(b,1)):((b=lE(e)).c(),z(b,1),b.m(r,o)):b&&(Bt(),V(b,1,1,function(){b=null}),Ft()),4&k[0]&&w!==(w=e[2])){if(a){Bt();var E=a;V(E.$$.fragment,1,0,function(){At(E,1)}),Ft()}w?(Pt((a=cs(w,{})).$$.fragment),z(a.$$.fragment,1),Mt(a,i,null)):a=null}(!m||2&k[0]&&s!==(s=dr(e[1].classContent)+" svelte-n7cvum"))&&S(i,"class",s),(!m||512&k[0])&&S(i,"style",e[9]),(!m||3&k[0])&&Dt(i,"content",!e[0]),(!m||2&k[0]&&c!==(c=dr(e[1].classWindow)+" svelte-n7cvum"))&&S(r,"class",c),(!m||2&k[0]&&u!==(u=e[1].ariaLabelledBy?null:e[1].ariaLabel||null))&&S(r,"aria-label",u),(!m||2&k[0]&&l!==(l=e[1].ariaLabelledBy||null))&&S(r,"aria-labelledby",l),(!m||256&k[0])&&S(r,"style",e[8]),(!m||3&k[0])&&Dt(r,"window",!e[0]),(!m||2&k[0]&&d!==(d=dr(e[1].classWindowWrap)+" svelte-n7cvum"))&&S(n,"class",d),(!m||128&k[0])&&S(n,"style",e[7]),(!m||3&k[0])&&Dt(n,"wrap",!e[0]),(!m||2&k[0]&&h!==(h=e[1].id))&&S(t,"id",h),(!m||2&k[0]&&p!==(p=dr(e[1].classBg)+" svelte-n7cvum"))&&S(t,"class",p),(!m||64&k[0])&&S(t,"style",e[6]),(!m||3&k[0])&&Dt(t,"bg",!e[0])},i:function(x){m||(z(b),a&&z(a.$$.fragment,x),x&&Ju(function(){m&&(f||(f=nv(r,e[12],e[1].transitionWindowProps,!0)),f.run(1))}),x&&Ju(function(){m&&(v||(v=nv(t,e[11],e[1].transitionBgProps,!0)),v.run(1))}),m=!0)},o:function(x){V(b),a&&V(a.$$.fragment,x),x&&(f||(f=nv(r,e[12],e[1].transitionWindowProps,!1)),f.run(0)),x&&(v||(v=nv(t,e[11],e[1].transitionBgProps,!1)),v.run(0)),m=!1},d:function(x){x&<(t),b&&b.d(),a&&At(a),e[50](null),x&&f&&f.end(),e[51](null),e[52](null),x&&v&&v.end(),g=!1,Fn(y)}}}function lE(e){var t,n,r,o,i,a=[mZ,vZ],s=[];function c(u,l){return 2&l[0]&&(t=null),t==null&&(t=!!u[17](u[1].closeButton)),t?0:1}return n=c(e,[-1,-1,-1]),r=s[n]=a[n](e),{c:function(){r.c(),o=Sn()},m:function(u,l){s[n].m(u,l),ft(u,o,l),i=!0},p:function(u,l){var f=n;(n=c(u,l))===f?s[n].p(u,l):(Bt(),V(s[f],1,1,function(){s[f]=null}),Ft(),(r=s[n])?r.p(u,l):(r=s[n]=a[n](u)).c(),z(r,1),r.m(o.parentNode,o))},i:function(u){i||(z(r),i=!0)},o:function(u){V(r),i=!1},d:function(u){u&<(o),s[n].d(u)}}}function vZ(e){var t,n,r,o;return{c:function(){S(t=tt("button"),"class",n=dr(e[1].classCloseButton)+" svelte-n7cvum"),S(t,"aria-label","Close modal"),S(t,"style",e[10]),S(t,"type","button"),Dt(t,"close",!e[0])},m:function(i,a){ft(i,t,a),r||(o=zt(t,"click",e[18]),r=!0)},p:function(i,a){2&a[0]&&n!==(n=dr(i[1].classCloseButton)+" svelte-n7cvum")&&S(t,"class",n),1024&a[0]&&S(t,"style",i[10]),3&a[0]&&Dt(t,"close",!i[0])},i:Ht,o:Ht,d:function(i){i&<(t),r=!1,o()}}}function mZ(e){var t,n,r,o=e[1].closeButton;function i(a,s){return{props:{onClose:a[18]}}}return o&&(t=cs(o,i(e))),{c:function(){t&&Pt(t.$$.fragment),n=Sn()},m:function(a,s){t&&Mt(t,a,s),ft(a,n,s),r=!0},p:function(a,s){if(2&s[0]&&o!==(o=a[1].closeButton)){if(t){Bt();var c=t;V(c.$$.fragment,1,0,function(){At(c,1)}),Ft()}o?(Pt((t=cs(o,i(a))).$$.fragment),z(t.$$.fragment,1),Mt(t,n.parentNode,n)):t=null}},i:function(a){r||(t&&z(t.$$.fragment,a),r=!0)},o:function(a){t&&V(t.$$.fragment,a),r=!1},d:function(a){a&<(n),t&&At(t,a)}}}function gZ(e){var t,n,r,o,i=e[2]&&uE(e),a=e[49].default,s=Cr(a,e,e[48],null);return{c:function(){i&&i.c(),t=kt(),s&&s.c()},m:function(c,u){i&&i.m(c,u),ft(c,t,u),s&&s.m(c,u),n=!0,r||(o=zt(hZ,"keydown",e[19]),r=!0)},p:function(c,u){c[2]?i?(i.p(c,u),4&u[0]&&z(i,1)):((i=uE(c)).c(),z(i,1),i.m(t.parentNode,t)):i&&(Bt(),V(i,1,1,function(){i=null}),Ft()),s&&s.p&&(!n||131072&u[1])&&Or(s,a,c,c[48],n?Er(a,c[48],u,null):Mr(c[48]),null)},i:function(c){n||(z(i),z(s,c),n=!0)},o:function(c){V(i),V(s,c),n=!1},d:function(c){c&<(t),i&&i.d(c),s&&s.d(c),r=!1,o()}}}function UN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function(n){return new e(xt(xt({},n),{},{props:xt(xt({},t),n.props)}))}}function yZ(e,t,n){var r,o,i,a,s,c,u,l,f,d,h,p,v,m,g,y=t.$$slots,b=y===void 0?{}:y,w=t.$$scope,x=FN(),k=qN,E=t.isTabbable,_=E===void 0?function(ut){return ut.tabIndex>=0&&!ut.hidden&&!ut.disabled&&ut.style.display!=="none"&&ut.type!=="hidden"&&!!(ut.offsetWidth||ut.offsetHeight||ut.getClientRects().length)}:E,T=t.show,$=T===void 0?null:T,j=t.id,R=j===void 0?null:j,q=t.key,O=q===void 0?"simple-modal":q,F=t.ariaLabel,J=F===void 0?null:F,I=t.ariaLabelledBy,D=I===void 0?null:I,C=t.closeButton,M=C===void 0||C,P=t.closeOnEsc,B=P===void 0||P,A=t.closeOnOuterClick,W=A===void 0||A,N=t.styleBg,dt=N===void 0?{}:N,et=t.styleWindowWrap,yt=et===void 0?{}:et,bt=t.styleWindow,jt=bt===void 0?{}:bt,gt=t.styleContent,Y=gt===void 0?{}:gt,K=t.styleCloseButton,rt=K===void 0?{}:K,X=t.classBg,_t=X===void 0?null:X,L=t.classWindowWrap,U=L===void 0?null:L,G=t.classWindow,pt=G===void 0?null:G,mt=t.classContent,Ot=mt===void 0?null:mt,Ct=t.classCloseButton,Vt=Ct===void 0?null:Ct,Qt=t.unstyled,te=Qt!==void 0&&Qt,Kt=t.setContext,ue=Kt===void 0?k:Kt,Me=t.transitionBg,en=Me===void 0?dZ:Me,le=t.transitionBgProps,xn=le===void 0?{duration:250}:le,Ie=t.transitionWindow,mn=Ie===void 0?en:Ie,Ye=t.transitionWindowProps,Ke=Ye===void 0?xn:Ye,qn=t.disableFocusTrap,In=qn!==void 0&&qn,Xn={id:R,ariaLabel:J,ariaLabelledBy:D,closeButton:M,closeOnEsc:B,closeOnOuterClick:W,styleBg:dt,styleWindowWrap:yt,styleWindow:jt,styleContent:Y,styleCloseButton:rt,classBg:_t,classWindowWrap:U,classWindow:pt,classContent:Ot,classCloseButton:Vt,transitionBg:en,transitionBgProps:xn,transitionWindow:mn,transitionWindowProps:Ke,disableFocusTrap:In,isTabbable:_,unstyled:te},$n=xt({},Xn),En=null,Nn=function(ut){return ut?Object.keys(ut).reduce(function(It,ee){return"".concat(It,"; ").concat(function(pe){return pe.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()}(ee),": ").concat(ut[ee])},""):""},sr=function(ut){return!!(ut&&ut.constructor&&ut.call&&ut.apply)},Pr=function(){},Et=Pr,ie=Pr,Be=Pr,nn=Pr,$t=function(ut){var It=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ee=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};n(2,En=UN(ut,arguments.length>1&&arguments[1]!==void 0?arguments[1]:{})),n(1,$n=xt(xt({},Xn),It)),n(6,s=Nn(Object.assign({},{width:window.innerWidth,height:window.innerHeight},$n.styleBg))),n(7,c=Nn($n.styleWindowWrap)),n(8,u=Nn($n.styleWindow)),n(9,l=Nn($n.styleContent)),n(10,f=Nn($n.styleCloseButton)),n(11,d=$n.transitionBg),n(12,h=$n.transitionWindow),Q(),n(13,Et=function(pe){ee.onOpen&&ee.onOpen(pe),x("open"),x("opening")}),n(14,ie=function(pe){ee.onClose&&ee.onClose(pe),x("close"),x("closing")}),n(15,Be=function(pe){ee.onOpened&&ee.onOpened(pe),x("opened")}),n(16,nn=function(pe){ee.onClosed&&ee.onClosed(pe),x("closed")})},Xt=function(){var ut=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};En&&(n(14,ie=ut.onClose||ie),n(16,nn=ut.onClosed||nn),n(2,En=null),at())},Q=function(){a=window.scrollY,p=document.body.style.position,v=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%"},at=function(){document.body.style.position=p||"",document.body.style.top="",document.body.style.overflow=v||"",document.body.style.width=m||"",window.scrollTo({top:a,left:0,behavior:"instant"})};ue(O,{open:$t,close:Xt});var vt=!1;return gi(function(){vt&&Xt()}),Wi(function(){n(47,vt=!0)}),e.$$set=function(ut){"isTabbable"in ut&&n(22,_=ut.isTabbable),"show"in ut&&n(23,$=ut.show),"id"in ut&&n(24,R=ut.id),"key"in ut&&n(25,O=ut.key),"ariaLabel"in ut&&n(26,J=ut.ariaLabel),"ariaLabelledBy"in ut&&n(27,D=ut.ariaLabelledBy),"closeButton"in ut&&n(28,M=ut.closeButton),"closeOnEsc"in ut&&n(29,B=ut.closeOnEsc),"closeOnOuterClick"in ut&&n(30,W=ut.closeOnOuterClick),"styleBg"in ut&&n(31,dt=ut.styleBg),"styleWindowWrap"in ut&&n(32,yt=ut.styleWindowWrap),"styleWindow"in ut&&n(33,jt=ut.styleWindow),"styleContent"in ut&&n(34,Y=ut.styleContent),"styleCloseButton"in ut&&n(35,rt=ut.styleCloseButton),"classBg"in ut&&n(36,_t=ut.classBg),"classWindowWrap"in ut&&n(37,U=ut.classWindowWrap),"classWindow"in ut&&n(38,pt=ut.classWindow),"classContent"in ut&&n(39,Ot=ut.classContent),"classCloseButton"in ut&&n(40,Vt=ut.classCloseButton),"unstyled"in ut&&n(0,te=ut.unstyled),"setContext"in ut&&n(41,ue=ut.setContext),"transitionBg"in ut&&n(42,en=ut.transitionBg),"transitionBgProps"in ut&&n(43,xn=ut.transitionBgProps),"transitionWindow"in ut&&n(44,mn=ut.transitionWindow),"transitionWindowProps"in ut&&n(45,Ke=ut.transitionWindowProps),"disableFocusTrap"in ut&&n(46,In=ut.disableFocusTrap),"$$scope"in ut&&n(48,w=ut.$$scope)},e.$$.update=function(){8388608&e.$$.dirty[0]|65536&e.$$.dirty[1]&&vt&&(sr($)?$t($):Xt())},[te,$n,En,r,o,i,s,c,u,l,f,d,h,Et,ie,Be,nn,sr,Xt,function(ut){if($n.closeOnEsc&&En&&ut.key==="Escape"&&(ut.preventDefault(),Xt()),En&&ut.key==="Tab"&&!$n.disableFocusTrap){var It=i.querySelectorAll("*"),ee=Array.from(It).filter($n.isTabbable).sort(function(Xe,Fe){return Xe.tabIndex-Fe.tabIndex}),pe=ee.indexOf(document.activeElement);pe===-1&&ut.shiftKey&&(pe=0),pe+=ee.length+(ut.shiftKey?-1:1),ee[pe%=ee.length].focus(),ut.preventDefault()}},function(ut){!$n.closeOnOuterClick||ut.target!==r&&ut.target!==o||(g=ut.target)},function(ut){$n.closeOnOuterClick&&ut.target===g&&(ut.preventDefault(),Xt())},_,$,R,O,J,D,M,B,W,dt,yt,jt,Y,rt,_t,U,pt,Ot,Vt,ue,en,xn,mn,Ke,In,vt,w,b,function(ut){Ze[ut?"unshift":"push"](function(){n(5,i=ut)})},function(ut){Ze[ut?"unshift":"push"](function(){n(4,o=ut)})},function(ut){Ze[ut?"unshift":"push"](function(){n(3,r=ut)})}]}var wo,Bn,ha,Fs,wa,zi,KN=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,yZ,gZ,eo,{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},pZ,[-1,-1,-1]),o}return it(n)}();(function(e){e.text="text",e.tree="tree",e.table="table"})(wo||(wo={})),function(e){e.after="after",e.inside="inside",e.key="key",e.value="value",e.multi="multi",e.text="text"}(Bn||(Bn={})),function(e){e.after="after",e.key="key",e.value="value",e.inside="inside"}(ha||(ha={})),function(e){e.info="info",e.warning="warning",e.error="error"}(Fs||(Fs={})),function(e){e.key="key",e.value="value"}(wa||(wa={})),function(e){e.asc="asc",e.desc="desc"}(zi||(zi={}));var fE=50,bZ=200,wZ=400,xZ=1200,JN=1e3,Eh=100,Il=100,rw=2e4,Qu=[{start:0,end:Eh}],kZ=104857600,jZ=1048576,ow=10485760,GN=10240,Yu={closeButton:!1,classBg:"jse-modal-bg",classWindow:"jse-modal-window",classWindowWrap:"jse-modal-window-wrap",classContent:"jse-modal-content"},_Z=xt(xt({},Yu),{},{classWindow:"jse-modal-window jse-modal-window-sort"}),SZ=xt(xt({},Yu),{},{classWindow:"jse-modal-window jse-modal-window-transform"}),$Z=xt(xt({},Yu),{},{classWindow:"jse-modal-window jse-modal-window-jsoneditor"}),Xk="Insert or paste contents, enter [ insert a new array, enter { to insert a new object, or start typing to insert a new value",Zk="Open context menu (Click here, right click on the selection, or use the context menu button or Ctrl+Q)",qs="hover-insert-inside",Oh="hover-insert-after",iw="hover-collection",V1="valid",dE="repairable",As=336,Ps=260,CZ="NO",t2="SELF",e2="NEXT_INSIDE",EZ=(Wo(F1={},zi.asc,"ascending"),Wo(F1,zi.desc,"descending"),F1),OZ=0;function eh(){return++OZ}function zc(e){return zc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zc(e)}function Wn(e){return Array.isArray(e)}function kr(e){return e!==null&&zc(e)==="object"&&e.constructor===Object}function QN(e){return!(!e||zc(e)!=="object")&&e.op==="add"}function YN(e){return!(!e||zc(e)!=="object")&&e.op==="remove"}function n2(e){return!(!e||zc(e)!=="object")&&e.op==="replace"}function aw(e){return!(!e||zc(e)!=="object")&&e.op==="copy"}function Yl(e){return!(!e||zc(e)!=="object")&&e.op==="move"}function sw(e){return sw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sw(e)}function MZ(e,t){return e===t}function XN(e){return e.slice(0,e.length-1)}function ZN(e){return sw(e)==="object"&&e!==null}function nh(e){return nh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nh(e)}function hE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function AZ(e,t,n){return(t=function(r){var o=function(i,a){if(nh(i)!=="object"||i===null)return i;var s=i[Symbol.toPrimitive];if(s!==void 0){var c=s.call(i,a||"default");if(nh(c)!=="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(i)}(r,"string");return nh(o)==="symbol"?o:String(o)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r2(e){if(Wn(e)){var t=e.slice();return Object.getOwnPropertySymbols(e).forEach(function(r){t[r]=e[r]}),t}if(kr(e)){var n=function(r){for(var o=1;o<arguments.length;o++){var i=arguments[o]!=null?arguments[o]:{};o%2?hE(Object(i),!0).forEach(function(a){AZ(r,a,i[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):hE(Object(i)).forEach(function(a){Object.defineProperty(r,a,Object.getOwnPropertyDescriptor(i,a))})}return r}({},e);return Object.getOwnPropertySymbols(e).forEach(function(r){n[r]=e[r]}),n}return e}function o2(e,t,n){if(e[t]===n)return e;var r=r2(e);return r[t]=n,r}function fe(e,t){for(var n=e,r=0;r<t.length;)n=kr(n)?n[t[r]]:Wn(n)?n[parseInt(t[r])]:void 0,r++;return n}function sa(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(t.length===0)return n;var o=t[0],i=sa(e?e[o]:void 0,t.slice(1),n,r);if(kr(e)||Wn(e))return o2(e,o,i);if(r){var a=PZ.test(o)?[]:{};return a[o]=i,a}throw new Error("Path does not exist")}var PZ=/^\d+$/;function tD(e,t,n){if(t.length===0)return n(e);if(!ZN(e))throw new Error("Path doesn't exist");var r=t[0];return o2(e,r,tD(e[r],t.slice(1),n))}function i2(e,t){if(t.length===0)return e;if(!ZN(e))throw new Error("Path does not exist");if(t.length===1){var n=t[0];if(n in e){var r=r2(e);return Wn(r)&&r.splice(parseInt(n),1),kr(r)&&delete r[n],r}return e}var o=t[0];return o2(e,o,i2(e[o],t.slice(1)))}function a2(e,t,n){var r=t.slice(0,t.length-1),o=t[t.length-1];return tD(e,r,function(i){if(!Array.isArray(i))throw new TypeError("Array expected at path "+JSON.stringify(r));var a=r2(i);return a.splice(parseInt(o),0,n),a})}function Bi(e,t){return e!==void 0&&(t.length===0||e!==null&&Bi(e[t[0]],t.slice(1)))}function Ca(e){var t=e.split("/");return t.shift(),t.map(function(n){return n.replace(/~1/g,"/").replace(/~0/g,"~")})}function oe(e){return e.map(eD).join("")}function eD(e){return"/"+String(e).replace(/~/g,"~0").replace(/\//g,"~1")}function pE(e,t){return e+eD(t)}function $0(e,t){return e.startsWith(t)&&(e.length===t.length||e[t.length]==="/")}function xa(e,t,n){for(var r=e,o=0;o<t.length;o++){zZ(t[o]);var i=t[o];if(n&&n.before){var a=n.before(r,i);if(a!==void 0){if(a.document!==void 0&&(r=a.document),a.json!==void 0)throw new Error('Deprecation warning: returned object property ".json" has been renamed to ".document"');a.operation!==void 0&&(i=a.operation)}}var s=r,c=Ya(r,i.path);if(i.op==="add")r=IZ(r,c,i.value);else if(i.op==="remove")r=RZ(r,c);else if(i.op==="replace")r=TZ(r,c,i.value);else if(i.op==="copy")r=NZ(r,c,cw(i.from));else if(i.op==="move")r=DZ(r,c,cw(i.from));else{if(i.op!=="test")throw new Error("Unknown JSONPatch operation "+JSON.stringify(i));LZ(r,c,i.value)}if(n&&n.after){var u=n.after(r,i,s);u!==void 0&&(r=u)}}return r}function TZ(e,t,n){return sa(e,t,n)}function RZ(e,t){return i2(e,t)}function IZ(e,t,n){return pp(e,t)?a2(e,t,n):sa(e,t,n)}function NZ(e,t,n){var r=fe(e,n);return pp(e,t)?a2(e,t,r):sa(e,t,fe(e,n))}function DZ(e,t,n){var r=fe(e,n),o=i2(e,n);return pp(o,t)?a2(o,t,r):sa(o,t,r)}function LZ(e,t,n){if(n===void 0)throw new Error('Test failed: no value provided (path: "'.concat(oe(t),'")'));if(!Bi(e,t))throw new Error('Test failed: path not found (path: "'.concat(oe(t),'")'));if(!function(r,o){return JSON.stringify(r)===JSON.stringify(o)}(fe(e,t),n))throw new Error('Test failed, value differs (path: "'.concat(oe(t),'")'))}function pp(e,t){if(t.length===0)return!1;var n=fe(e,XN(t));return Array.isArray(n)}function zZ(e){if(!["add","remove","replace","copy","move","test"].includes(e.op))throw new Error("Unknown JSONPatch op "+JSON.stringify(e.op));if(typeof e.path!="string")throw new Error('Required property "path" missing or not a string in operation '+JSON.stringify(e));if((e.op==="copy"||e.op==="move")&&typeof e.from!="string")throw new Error('Required property "from" missing or not a string in operation '+JSON.stringify(e))}function Ya(e,t){return function(n,r){if(function(a){return a[a.length-1]}(r)!=="-")return r;var o=XN(r),i=fe(n,o);return o.concat(i.length)}(e,Ca(t))}function cw(e){return Ca(e)}function BZ(e){return function(t){if(Array.isArray(t))return W1(t)}(e)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||function(t,n){if(t){if(typeof t=="string")return W1(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return W1(t,n)}}(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
14
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function W1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function nD(e,t,n){var r=[];return xa(e,t,{before:function(o,i){var a,s,c=Ya(o,i.path);if(i.op==="add")a=mE(o,c);else if(i.op==="remove")a=vE(o,c);else if(i.op==="replace")a=rD(o,c);else if(i.op==="copy")a=function(l,f){return mE(l,f)}(o,c);else if(i.op==="move")a=function(l,f,d){if(f.length<d.length&&function(p,v){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:MZ;if(p.length<v.length)return!1;for(var g=0;g<v.length;g++)if(!m(p[g],v[g]))return!1;return!0}(d,f))return[{op:"replace",path:oe(f),value:l}];var h={op:"move",from:oe(f),path:oe(d)};return!pp(l,f)&&Bi(l,f)?[h].concat(BZ(vE(l,f))):[h]}(o,c,cw(i.from));else{if(i.op!=="test")throw new Error("Unknown JSONPatch operation "+JSON.stringify(i));a=[]}if(n&&n.before){var u=n.before(o,i,a);if(u&&u.revertOperations&&(a=u.revertOperations),u&&u.document&&(s=u.document),u&&u.json)throw new Error('Deprecation warning: returned object property ".json" has been renamed to ".document"')}if(r=a.concat(r),s!==void 0)return{document:s}}}),r}function rD(e,t){return[{op:"replace",path:oe(t),value:fe(e,t)}]}function vE(e,t){return[{op:"add",path:oe(t),value:fe(e,t)}]}function mE(e,t){return pp(e,t)||!Bi(e,t)?[{op:"remove",path:oe(t)}]:rD(e,t)}function s2(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ag={},gE={b:"\b",f:"\f",n:`
|
|
15
|
+
`,r:"\r",t:" ",'"':'"',"/":"/","\\":"\\"},FZ="a".charCodeAt();ag.parse=function(e,t,n){var r={},o=0,i=0,a=0,s=n&&n.bigint&&typeof BigInt<"u";return{data:c("",!0),pointers:r};function c(k,E){var _;u(),m(k,"value");var T=d();switch(T){case"t":f("rue"),_=!0;break;case"f":f("alse"),_=!1;break;case"n":f("ull"),_=null;break;case'"':_=l();break;case"[":_=function($){u();var j=[],R=0;if(d()=="]")return j;for(h();;){var q=$+"/"+R;j.push(c(q)),u();var O=d();if(O=="]")break;O!=","&&w(),u(),R++}return j}(k);break;case"{":_=function($){u();var j={};if(d()=="}")return j;for(h();;){var R=y();d()!='"'&&w();var q=l(),O=$+"/"+U1(q);g(O,"key",R),m(O,"keyEnd"),u(),d()!=":"&&w(),u(),j[q]=c(O),u();var F=d();if(F=="}")break;F!=","&&w(),u()}return j}(k);break;default:h(),"-0123456789".indexOf(T)>=0?_=function(){var $="",j=!0;e[a]=="-"&&($+=d()),$+=e[a]=="0"?d():v(),e[a]=="."&&($+=d()+v(),j=!1),e[a]!="e"&&e[a]!="E"||($+=d(),e[a]!="+"&&e[a]!="-"||($+=d()),$+=v(),j=!1);var R=+$;return s&&j&&(R>Number.MAX_SAFE_INTEGER||R<Number.MIN_SAFE_INTEGER)?BigInt($):R}():b()}return m(k,"valueEnd"),u(),E&&a<e.length&&b(),_}function u(){t:for(;a<e.length;){switch(e[a]){case" ":i++;break;case" ":i+=4;break;case"\r":i=0;break;case`
|
|
16
|
+
`:i=0,o++;break;default:break t}a++}}function l(){for(var k,E="";(k=d())!='"';)k=="\\"?(k=d())in gE?E+=gE[k]:k=="u"?E+=p():w():E+=k;return E}function f(k){for(var E=0;E<k.length;E++)d()!==k[E]&&w()}function d(){x();var k=e[a];return a++,i++,k}function h(){a--,i--}function p(){for(var k=4,E=0;k--;){E<<=4;var _=d().toLowerCase();_>="a"&&_<="f"?E+=_.charCodeAt()-FZ+10:_>="0"&&_<="9"?E+=+_:w()}return String.fromCharCode(E)}function v(){for(var k="";e[a]>="0"&&e[a]<="9";)k+=d();if(k.length)return k;x(),b()}function m(k,E){g(k,E,y())}function g(k,E,_){r[k]=r[k]||{},r[k][E]=_}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")}},ag.stringify=function(e,t,n){if(rv(e)){var r,o,i=0,a=ce(n)=="object"?n.space:n;switch(ce(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" ":o+=4;break;case"\r":o=0;break;case`
|
|
17
|
+
`: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,p=n&&n.es6&&typeof Map=="function";return function b(w,x,k){switch(g(k,"value"),ce(w)){case"number":case"bigint":case"boolean":v(""+w);break;case"string":v(ov(w));break;case"object":w===null?v("null"):typeof w.toJSON=="function"?v(ov(w.toJSON())):Array.isArray(w)?E():p?w.constructor.BYTES_PER_ELEMENT?E():w instanceof Map?T():w instanceof Set?T(!0):_():_()}function E(){if(w.length){v("[");for(var $=x+1,j=0;j<w.length;j++){j&&v(","),m($);var R=rv(w[j])?w[j]:null;b(R,$,k+"/"+j)}m(x),v("]")}else v("[]")}function _(){var $=Object.keys(w);if($.length){v("{");for(var j=x+1,R=0;R<$.length;R++){var q=$[R],O=w[q];if(rv(O)){R&&v(",");var F=k+"/"+U1(q);m(j),g(F,"key"),v(ov(q)),g(F,"keyEnd"),v(":"),a&&v(" "),b(O,j,F)}}m(x),v("}")}else v("{}")}function T($){if(w.size){v("{");for(var j=x+1,R=!0,q=w.entries(),O=q.next();!O.done;){var F=O.value,J=F[0],I=!!$||F[1];if(rv(I)){R||v(","),R=!1;var D=k+"/"+U1(J);m(j),g(D,"key"),v(ov(J)),g(D,"keyEnd"),v(":"),a&&v(" "),b(I,j,D)}O=q.next()}m(x),v("}")}else v("{}")}g(k,"valueEnd")}(e,0,""),{json:u,pointers:l}}function v(b){d+=b.length,h+=b.length,u+=b}function m(b){if(a){for(u+=`
|
|
18
|
+
`+y(b,a),f++,d=0;b--;)i?(f+=i,d=o):d+=o,h+=r;h+=1}}function g(b,w){l[b]=l[b]||{},l[b][w]={line:f,column:d,pos:h}}function y(b,w){return Array(b+1).join(w)}};var qZ=["number","bigint","boolean","string","object"];function rv(e){return qZ.indexOf(ce(e))>=0}var HZ=/"|\\/g,VZ=/[\b]/g,WZ=/\f/g,UZ=/\n/g,KZ=/\r/g,JZ=/\t/g;function ov(e){return'"'+(e=e.replace(HZ,"\\$&").replace(WZ,"\\f").replace(VZ,"\\b").replace(UZ,"\\n").replace(KZ,"\\r").replace(JZ,"\\t"))+'"'}var GZ=/~/g,QZ=/\//g;function U1(e){return e.replace(GZ,"~0").replace(QZ,"~1")}var lu=function(e){Tt(n,kf(Error));var t=Rt(n);function n(r,o){var i;return ot(this,n),(i=t.call(this,r+" at position "+o)).position=o,i}return it(n)}(),iv=92,K1=47,YZ=42,yE=123,J1=125,bE=91,G1=93,XZ=40,ZZ=41,ttt=32,c2=10,oD=9,iD=13,ett=8,ntt=12,u2=34,wE=43,xE=45,rtt=39,l2=48,ott=49,f2=57,av=44,itt=46,att=58,stt=59,ctt=65,utt=97,ltt=69,ftt=101,dtt=70,htt=102,ptt=160,vtt=8192,mtt=8202,gtt=8239,ytt=8287,btt=12288,wtt=8220,xtt=8221,ktt=8216,jtt=8217,_tt=96,Stt=180;function sv(e){return e>=l2&&e<=f2||e>=ctt&&e<=dtt||e>=utt&&e<=htt}function cv(e){return e>=l2&&e<=f2}function $tt(e){return e>=32&&e<=1114111}var Ctt=/^[,:[\]{}()\n]$/;function kE(e){return Ett.test(e)||e&&pm(e.charCodeAt(0))}var Ett=/^[[{\w-]$/;function Ott(e){return e===c2||e===iD||e===oD||e===ett||e===ntt}function sg(e){return e===ttt||e===c2||e===oD||e===iD}function Mtt(e){return e===ptt||e>=vtt&&e<=mtt||e===gtt||e===ytt||e===btt}function pm(e){return aD(e)||uw(e)}function aD(e){return e===u2||e===wtt||e===xtt}function jE(e){return e===u2}function uw(e){return e===rtt||e===ktt||e===jtt||e===_tt||e===Stt}function dd(e,t){var n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],r=e.lastIndexOf(t);return r!==-1?e.substring(0,r)+(n?"":e.substring(r+1)):e}function fu(e,t){var n=e.length;if(!sg(e.charCodeAt(n-1)))return e+t;for(;sg(e.charCodeAt(n-1));)n--;return e.substring(0,n)+t+e.substring(n)}function Att(e,t,n){return e.substring(0,t)+e.substring(t+n)}var Ptt={"\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},Ttt={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
|
|
19
|
+
`,r:"\r",t:" "};function Xa(e){var t=0,n="";o()||function(){throw new lu("Unexpected end of json string",e.length)}();var r=c(av);if(r&&i(),kE(e[t])&&function(b){return/[,\n][ \t\r]*$/.test(b)}(n)?(r||(n=fu(n,",")),function(){for(var b=!0,w=!0;w;)b?b=!1:c(av)||(n=fu(n,",")),w=o();w||(n=dd(n,",")),n=`[
|
|
20
|
+
`.concat(n,`
|
|
21
|
+
]`)}()):r&&(n=dd(n,",")),t>=e.length)return n;function o(){i();var b=function(){if(e.charCodeAt(t)===yE){n+="{",t++,i();for(var w=!0;t<e.length&&e.charCodeAt(t)!==J1;){if(w?w=!1:(c(av)||(n=fu(n,",")),i()),!(l()||d())){e.charCodeAt(t)===J1||e.charCodeAt(t)===yE||e.charCodeAt(t)===G1||e.charCodeAt(t)===bE||e[t]===void 0?n=dd(n,","):m();break}i();var x=c(att);x||(kE(e[t])?n=fu(n,":"):g()),o()||(x?n+="null":g())}return e.charCodeAt(t)===J1?(n+="}",t++):n=fu(n,"}"),!0}return!1}()||function(){if(e.charCodeAt(t)===bE){n+="[",t++,i();for(var w=!0;t<e.length&&e.charCodeAt(t)!==G1;)if(w?w=!1:c(av)||(n=fu(n,",")),!o()){n=dd(n,",");break}return e.charCodeAt(t)===G1?(n+="]",t++):n=fu(n,"]"),!0}return!1}()||l()||function(){var w=t;if(e.charCodeAt(t)===xE&&(t++,p(w)))return!0;if(e.charCodeAt(t)===l2)t++;else if(function(x){return x>=ott&&x<=f2}(e.charCodeAt(t)))for(t++;cv(e.charCodeAt(t));)t++;if(e.charCodeAt(t)===itt){if(t++,p(w))return!0;for(;cv(e.charCodeAt(t));)t++}if(e.charCodeAt(t)===ftt||e.charCodeAt(t)===ltt){if(t++,e.charCodeAt(t)!==xE&&e.charCodeAt(t)!==wE||t++,p(w))return!0;for(;cv(e.charCodeAt(t));)t++}return t>w?(n+=e.slice(w,t),!0):!1}()||f("true","true")||f("false","false")||f("null","null")||f("True","true")||f("False","false")||f("None","null")||d();return i(),b}function i(){var b=t,w=a();do(w=s())&&(w=a());while(w);return t>b}function a(){for(var b,w="";(b=sg(e.charCodeAt(t)))||Mtt(e.charCodeAt(t));)w+=b?e[t]:" ",t++;return w.length>0&&(n+=w,!0)}function s(){if(e.charCodeAt(t)===K1&&e.charCodeAt(t+1)===YZ){for(;t<e.length&&!Rtt(e,t);)t++;return t+=2,!0}if(e.charCodeAt(t)===K1&&e.charCodeAt(t+1)===K1){for(;t<e.length&&e.charCodeAt(t)!==c2;)t++;return!0}return!1}function c(b){return e.charCodeAt(t)===b&&(n+=e[t],t++,!0)}function u(){return function(b){return e.charCodeAt(t)===b&&(t++,!0)}(iv)}function l(){var b=e.charCodeAt(t)===iv;if(b&&(t++,b=!0),pm(e.charCodeAt(t))){var w=uw(e.charCodeAt(t))?uw:jE(e.charCodeAt(t))?jE:aD;for(n+='"',t++;t<e.length&&!w(e.charCodeAt(t));){if(e.charCodeAt(t)===iv){var x=e[t+1];Ttt[x]!==void 0?(n+=e.slice(t,t+2),t+=2):x==="u"?sv(e.charCodeAt(t+2))&&sv(e.charCodeAt(t+3))&&sv(e.charCodeAt(t+4))&&sv(e.charCodeAt(t+5))?(n+=e.slice(t,t+6),t+=6):y(t):(n+=x,t+=2)}else{var k=e[t],E=e.charCodeAt(t);E===u2&&e.charCodeAt(t-1)!==iv?(n+="\\"+k,t++):Ott(E)?(n+=Ptt[k],t++):($tt(E)||v(k),n+=k,t++)}b&&u()}return pm(e.charCodeAt(t))?(e.charCodeAt(t),n+='"',t++):n+='"',function(){for(i();e.charCodeAt(t)===wE;){t++,i();var _=(n=dd(n,'"',!0)).length;l(),n=Att(n,_,1)}}(),!0}return!1}function f(b,w){return e.slice(t,t+b.length)===b&&(n+=w,t+=b.length,!0)}function d(){for(var b,w=t;t<e.length&&(b=e[t],!(Ctt.test(b)||b&&pm(b.charCodeAt(0))));)t++;if(t>w){if(e.charCodeAt(t)===XZ)return t++,o(),e.charCodeAt(t)===ZZ&&(t++,e.charCodeAt(t)===stt&&t++),!0;for(;sg(e.charCodeAt(t-1))&&t>0;)t--;var x=e.slice(w,t);return n+=x==="undefined"?"null":JSON.stringify(x),!0}}function h(b){if(!cv(e.charCodeAt(t))){var w=e.slice(b,t);throw new lu("Invalid number '".concat(w,"', expecting a digit ").concat(e[t]?"but got '".concat(e[t],"'"):"but reached end of input"),2)}}function p(b){return t>=e.length?(n+=e.slice(b,t)+"0",!0):(h(b),!1)}function v(b){throw new lu("Invalid character "+JSON.stringify(b),t)}function m(){throw new lu("Object key expected",t)}function g(){throw new lu("Colon expected",t)}function y(b){for(var w=b+2;/\w/.test(e[w]);)w++;var x=e.slice(b,w);throw new lu('Invalid unicode character "'.concat(x,'"'),t)}(function(){throw new lu("Unexpected character "+JSON.stringify(e[t]),t)})()}function Rtt(e,t){return e[t]==="*"&&e[t+1]==="/"}function So(e){return parseInt(e,10)}function d2(e){return Itt.test(e)}var Itt=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function pr(e){return ce(e)==="object"&&e!==null&&e.constructor===Object}function xr(e){return ce(e)==="object"&&e!==null&&(e.constructor===Object||e.constructor===Array)}function lw(e){if(typeof e=="number")return e>9466848e5&&isFinite(e)&&Math.floor(e)===e&&!isNaN(new Date(e).valueOf());if(typeof e=="bigint")return lw(Number(e));try{var t=e&&e.valueOf();if(t!==e)return lw(t)}catch{return!1}return!1}function sD(e){var t=window.document.createElement("div");t.style.color=e;var n=t.style.color;return n!==""?n.replace(/\s+/g,"").toLowerCase():null}function h2(e,t){if(typeof e=="number"||typeof e=="string"||typeof e=="boolean"||e===void 0)return ce(e);if(typeof e=="bigint")return"number";if(e===null)return"null";if(Array.isArray(e))return"array";if(pr(e))return"object";var n=t.stringify(e);return n&&d2(n)?"number":n==="true"||n==="false"?"boolean":n==="null"?"null":"unknown"}var Ntt=/^https?:\/\/\S+$/;function C0(e){return typeof e=="string"&&Ntt.test(e)}function Uf(e,t){if(e==="")return"";var n=e.trim();return n==="null"?null:n==="true"||n!=="false"&&(d2(n)?t.parse(n):e)}function Dtt(e){return Ltt.test(e)}var Ltt=/^-?[0-9]+$/,cD=(typeof global>"u"?"undefined":ce(global))=="object"&&global&&global.Object===Object&&global,ztt=(typeof self>"u"?"undefined":ce(self))=="object"&&self&&self.Object===Object&&self,lo=cD||ztt||Function("return this")(),No=lo.Symbol,uD=Object.prototype,Btt=uD.hasOwnProperty,Ftt=uD.toString,hd=No?No.toStringTag:void 0,qtt=Object.prototype.toString,Htt="[object Null]",Vtt="[object Undefined]",_E=No?No.toStringTag:void 0;function Go(e){return e==null?e===void 0?Vtt:Htt:_E&&_E in Object(e)?function(t){var n=Btt.call(t,hd),r=t[hd];try{t[hd]=void 0;var o=!0}catch{}var i=Ftt.call(t);return o&&(n?t[hd]=r:delete t[hd]),i}(e):function(t){return qtt.call(t)}(e)}function Hr(e){return e!=null&&ce(e)=="object"}var Wtt="[object Symbol]";function bi(e){return ce(e)=="symbol"||Hr(e)&&Go(e)==Wtt}var Utt=NaN;function SE(e){return typeof e=="number"?e:bi(e)?Utt:+e}function $r(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var tn=Array.isArray,Ktt=1/0,$E=No?No.prototype:void 0,CE=$E?$E.toString:void 0;function wi(e){if(typeof e=="string")return e;if(tn(e))return $r(e,wi)+"";if(bi(e))return CE?CE.call(e):"";var t=e+"";return t=="0"&&1/e==-Ktt?"-0":t}function E0(e,t){return function(n,r){var o;if(n===void 0&&r===void 0)return t;if(n!==void 0&&(o=n),r!==void 0){if(o===void 0)return r;typeof n=="string"||typeof r=="string"?(n=wi(n),r=wi(r)):(n=SE(n),r=SE(r)),o=e(n,r)}return o}}var Jtt=E0(function(e,t){return e+t},0),Gtt=/\s/;function lD(e){for(var t=e.length;t--&&Gtt.test(e.charAt(t)););return t}var Qtt=/^\s+/;function fD(e){return e&&e.slice(0,lD(e)+1).replace(Qtt,"")}function Ar(e){var t=ce(e);return e!=null&&(t=="object"||t=="function")}var EE=NaN,Ytt=/^[-+]0x[0-9a-f]+$/i,Xtt=/^0b[01]+$/i,Ztt=/^0o[0-7]+$/i,tet=parseInt;function Fi(e){if(typeof e=="number")return e;if(bi(e))return EE;if(Ar(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ar(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=fD(e);var n=Xtt.test(e);return n||Ztt.test(e)?tet(e.slice(2),n?2:8):Ytt.test(e)?EE:+e}var OE=1/0,eet=17976931348623157e292;function Ns(e){return e?(e=Fi(e))===OE||e===-OE?(e<0?-1:1)*eet:e==e?e:0:e===0?e:0}function sn(e){var t=Ns(e),n=t%1;return t==t?n?t-n:t:0}function net(e,t){if(typeof t!="function")throw new TypeError("Expected a function");return e=sn(e),function(){if(--e<1)return t.apply(this,arguments)}}function Uo(e){return e}var ret="[object AsyncFunction]",oet="[object Function]",iet="[object GeneratorFunction]",aet="[object Proxy]";function Gs(e){if(!Ar(e))return!1;var t=Go(e);return t==oet||t==iet||t==ret||t==aet}var ME,vm=lo["__core-js_shared__"],AE=(ME=/[^.]+$/.exec(vm&&vm.keys&&vm.keys.IE_PROTO||""))?"Symbol(src)_1."+ME:"",set=Function.prototype.toString;function cl(e){if(e!=null){try{return set.call(e)}catch{}try{return e+""}catch{}}return""}var cet=/^\[object .+?Constructor\]$/,uet=Function.prototype,fet=Object.prototype,det=uet.toString,het=fet.hasOwnProperty,pet=RegExp("^"+det.call(het).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function dD(e){return!(!Ar(e)||function(t){return!!AE&&AE in t}(e))&&(Gs(e)?pet:cet).test(cl(e))}function ul(e,t){var n=function(r,o){return r==null?void 0:r[o]}(e,t);return dD(n)?n:void 0}var Mh=ul(lo,"WeakMap"),cg=Mh&&new Mh,vet=cg?function(e,t){return cg.set(e,t),e}:Uo,hD=vet,PE=Object.create,met=function(){function e(){}return function(t){if(!Ar(t))return{};if(PE)return PE(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),Kf=met;function rh(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=Kf(e.prototype),r=e.apply(n,t);return Ar(r)?r:n}}var get=1;function xi(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 yet=Math.max;function pD(e,t,n,r){for(var o=-1,i=e.length,a=n.length,s=-1,c=t.length,u=yet(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 bet=Math.max;function vD(e,t,n,r){for(var o=-1,i=e.length,a=-1,s=n.length,c=-1,u=t.length,l=bet(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 O0(){}var wet=4294967295;function Cn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=wet,this.__views__=[]}function Qn(){}Cn.prototype=Kf(O0.prototype),Cn.prototype.constructor=Cn;var xet=cg?function(e){return cg.get(e)}:Qn,p2=xet,Nl={},ket=Object.prototype.hasOwnProperty;function mm(e){for(var t=e.name+"",n=Nl[t],r=ket.call(Nl,t)?n.length:0;r--;){var o=n[r],i=o.func;if(i==null||i==e)return o.name}return t}function qi(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function ni(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function mD(e){if(e instanceof Cn)return e.clone();var t=new qi(e.__wrapped__,e.__chain__);return t.__actions__=ni(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}qi.prototype=Kf(O0.prototype),qi.prototype.constructor=qi;var jet=Object.prototype.hasOwnProperty;function Z(e){if(Hr(e)&&!tn(e)&&!(e instanceof Cn)){if(e instanceof qi)return e;if(jet.call(e,"__wrapped__"))return mD(e)}return new qi(e)}function fw(e){var t=mm(e),n=Z[t];if(typeof n!="function"||!(t in Cn.prototype))return!1;if(e===n)return!0;var r=p2(n);return!!r&&e===r[0]}Z.prototype=O0.prototype,Z.prototype.constructor=Z;var _et=Date.now;function gD(e){var t=0,n=0;return function(){var r=_et(),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 yD=gD(hD),$et=/\{\n\/\* \[wrapped with (.+)\] \*/,Cet=/,? & /,Eet=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function v2(e){return function(){return e}}var Oet=function(){try{var e=ul(Object,"defineProperty");return e({},"",{}),e}catch{}}(),ug=Oet,Met=ug?function(e,t){return ug(e,"toString",{configurable:!0,enumerable:!1,value:v2(t),writable:!0})}:Uo,m2=gD(Met);function Oi(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function M0(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 bD(e){return e!=e}function Jf(e,t,n){return t==t?function(r,o,i){for(var a=i-1,s=r.length;++a<s;)if(r[a]===o)return a;return-1}(e,t,n):M0(e,bD,n)}function A0(e,t){return!!(e!=null&&e.length)&&Jf(e,t,0)>-1}var Aet=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];function wD(e,t,n){var r=t+"";return m2(e,function(o,i){var a=i.length;if(!a)return o;var s=a-1;return i[s]=(a>1?"& ":"")+i[s],i=i.join(a>2?", ":" "),o.replace(Eet,`{
|
|
22
|
+
/* [wrapped with `+i+`] */
|
|
23
|
+
`)}(r,function(o,i){return Oi(Aet,function(a){var s="_."+a[0];i&a[1]&&!A0(o,s)&&o.push(s)}),o.sort()}(function(o){var i=o.match($et);return i?i[1].split(Cet):[]}(r),n)))}var Pet=1,Tet=2,Ret=4,Iet=8,TE=32,RE=64;function xD(e,t,n,r,o,i,a,s,c,u){var l=t&Iet;t|=l?TE:RE,(t&=~(l?RE:TE))&Ret||(t&=~(Pet|Tet));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 fw(e)&&yD(d,f),d.placeholder=r,wD(d,e,t)}function Gf(e){return e.placeholder}var Net=9007199254740991,Det=/^(?:0|[1-9]\d*)$/;function Qs(e,t){var n=ce(e);return!!(t=t??Net)&&(n=="number"||n!="symbol"&&Det.test(e))&&e>-1&&e%1==0&&e<t}var Let=Math.min,IE="__lodash_placeholder__";function Cc(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==IE||(e[n]=IE,i[o++]=n)}return i}var zet=1,Bet=2,Fet=8,qet=16,Het=128,Vet=512;function lg(e,t,n,r,o,i,a,s,c,u){var l=t&Het,f=t&zet,d=t&Bet,h=t&(Fet|qet),p=t&Vet,v=d?void 0:rh(e);return function m(){for(var g=arguments.length,y=Array(g),b=g;b--;)y[b]=arguments[b];if(h)var w=Gf(m),x=function(T,$){for(var j=T.length,R=0;j--;)T[j]===$&&++R;return R}(y,w);if(r&&(y=pD(y,r,o,h)),i&&(y=vD(y,i,a,h)),g-=x,h&&g<u){var k=Cc(y,w);return xD(e,t,lg,m.placeholder,n,y,k,s,c,u-g)}var E=f?n:this,_=d?E[e]:e;return g=y.length,s?y=function(T,$){for(var j=T.length,R=Let($.length,j),q=ni(T);R--;){var O=$[R];T[R]=Qs(O,j)?q[O]:void 0}return T}(y,s):p&&g>1&&y.reverse(),l&&c<g&&(y.length=c),this&&this!==lo&&this instanceof m&&(_=v||rh(_)),_.apply(E,y)}}var Wet=1,NE="__lodash_placeholder__",Q1=1,Uet=2,Ket=4,DE=8,pd=128,LE=256,Jet=Math.min,Get="Expected a function",zE=1,Qet=2,Y1=8,X1=16,Z1=32,BE=64,FE=Math.max;function Ys(e,t,n,r,o,i,a,s){var c=t&Qet;if(!c&&typeof e!="function")throw new TypeError(Get);var u=r?r.length:0;if(u||(t&=~(Z1|BE),r=o=void 0),a=a===void 0?a:FE(sn(a),0),s=s===void 0?s:sn(s),u-=o?o.length:0,t&BE){var l=r,f=o;r=o=void 0}var d=c?void 0:p2(e),h=[e,t,n,r,o,l,f,i,a,s];if(d&&function(v,m){var g=v[1],y=m[1],b=g|y,w=b<(Q1|Uet|pd),x=y==pd&&g==DE||y==pd&&g==LE&&v[7].length<=m[8]||y==(pd|LE)&&m[7].length<=m[8]&&g==DE;if(!w&&!x)return v;y&Q1&&(v[2]=m[2],b|=g&Q1?0:Ket);var k=m[3];if(k){var E=v[3];v[3]=E?pD(E,k,m[4]):k,v[4]=E?Cc(v[3],NE):m[4]}(k=m[5])&&(E=v[5],v[5]=E?vD(E,k,m[6]):k,v[6]=E?Cc(v[5],NE):m[6]),(k=m[7])&&(v[7]=k),y&pd&&(v[8]=v[8]==null?m[8]:Jet(v[8],m[8])),v[9]==null&&(v[9]=m[9]),v[0]=m[0],v[1]=b}(h,d),e=h[0],t=h[1],n=h[2],r=h[3],o=h[4],!(s=h[9]=h[9]===void 0?c?0:e.length:FE(h[9]-u,0))&&t&(Y1|X1)&&(t&=~(Y1|X1)),t&&t!=zE)p=t==Y1||t==X1?function(v,m,g){var y=rh(v);return function b(){for(var w=arguments.length,x=Array(w),k=w,E=Gf(b);k--;)x[k]=arguments[k];var _=w<3&&x[0]!==E&&x[w-1]!==E?[]:Cc(x,E);return(w-=_.length)<g?xD(v,m,lg,b.placeholder,void 0,x,_,void 0,void 0,g-w):xi(this&&this!==lo&&this instanceof b?y:v,this,x)}}(e,t,s):t!=Z1&&t!=(zE|Z1)||o.length?lg.apply(void 0,h):function(v,m,g,y){var b=m&Wet,w=rh(v);return function x(){for(var k=-1,E=arguments.length,_=-1,T=y.length,$=Array(T+E),j=this&&this!==lo&&this instanceof x?w:v;++_<T;)$[_]=y[_];for(;E--;)$[_++]=arguments[++k];return xi(j,b?g:this,$)}}(e,t,n,r);else var p=function(v,m,g){var y=m&get,b=rh(v);return function w(){return(this&&this!==lo&&this instanceof w?b:v).apply(y?g:this,arguments)}}(e,t,n);return wD((d?hD:yD)(p,h),e,t)}var Yet=128;function kD(e,t,n){return t=n?void 0:t,t=e&&t==null?e.length:t,Ys(e,Yet,void 0,void 0,void 0,void 0,t)}function Xs(e,t,n){t=="__proto__"&&ug?ug(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Ma(e,t){return e===t||e!=e&&t!=t}var Xet=Object.prototype.hasOwnProperty;function vp(e,t,n){var r=e[t];Xet.call(e,t)&&Ma(r,n)&&(n!==void 0||t in e)||Xs(e,t,n)}function Za(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;c===void 0&&(c=e[s]),o?Xs(n,s,c):vp(n,s,c)}return n}var qE=Math.max;function jD(e,t,n){return t=qE(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=qE(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),xi(e,this,s)}}function vn(e,t){return m2(jD(e,t,Uo),e+"")}var Zet=9007199254740991;function P0(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Zet}function si(e){return e!=null&&P0(e.length)&&!Gs(e)}function Ko(e,t,n){if(!Ar(n))return!1;var r=ce(t);return!!(r=="number"?si(n)&&Qs(t,n.length):r=="string"&&t in n)&&Ma(n[t],e)}function Qf(e){return vn(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&&typeof i=="function"?(o--,i):void 0,a&&Ko(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 tnt=Object.prototype;function mp(e){var t=e&&e.constructor;return e===(typeof t=="function"&&t.prototype||tnt)}function g2(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function HE(e){return Hr(e)&&Go(e)=="[object Arguments]"}var _D=Object.prototype,ent=_D.hasOwnProperty,nnt=_D.propertyIsEnumerable,Xu=HE(function(){return arguments}())?HE:function(e){return Hr(e)&&ent.call(e,"callee")&&!nnt.call(e,"callee")};function y2(){return!1}var SD=(typeof exports>"u"?"undefined":ce(exports))=="object"&&exports&&!exports.nodeType&&exports,VE=SD&&(typeof module>"u"?"undefined":ce(module))=="object"&&module&&!module.nodeType&&module,WE=VE&&VE.exports===SD?lo.Buffer:void 0,Bc=(WE?WE.isBuffer:void 0)||y2,mr={};function ki(e){return function(t){return e(t)}}mr["[object Float32Array]"]=mr["[object Float64Array]"]=mr["[object Int8Array]"]=mr["[object Int16Array]"]=mr["[object Int32Array]"]=mr["[object Uint8Array]"]=mr["[object Uint8ClampedArray]"]=mr["[object Uint16Array]"]=mr["[object Uint32Array]"]=!0,mr["[object Arguments]"]=mr["[object Array]"]=mr["[object ArrayBuffer]"]=mr["[object Boolean]"]=mr["[object DataView]"]=mr["[object Date]"]=mr["[object Error]"]=mr["[object Function]"]=mr["[object Map]"]=mr["[object Number]"]=mr["[object Object]"]=mr["[object RegExp]"]=mr["[object Set]"]=mr["[object String]"]=mr["[object WeakMap]"]=!1;var $D=(typeof exports>"u"?"undefined":ce(exports))=="object"&&exports&&!exports.nodeType&&exports,oh=$D&&(typeof module>"u"?"undefined":ce(module))=="object"&&module&&!module.nodeType&&module,ty=oh&&oh.exports===$D&&cD.process,rnt=function(){try{var e=oh&&oh.require&&oh.require("util").types;return e||ty&&ty.binding&&ty.binding("util")}catch{}}(),Ki=rnt,UE=Ki&&Ki.isTypedArray,Yf=UE?ki(UE):function(e){return Hr(e)&&P0(e.length)&&!!mr[Go(e)]},ont=Object.prototype.hasOwnProperty;function CD(e,t){var n=tn(e),r=!n&&Xu(e),o=!n&&!r&&Bc(e),i=!n&&!r&&!o&&Yf(e),a=n||r||o||i,s=a?g2(e.length,String):[],c=s.length;for(var u in e)!t&&!ont.call(e,u)||a&&(u=="length"||o&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Qs(u,c))||s.push(u);return s}function ED(e,t){return function(n){return e(t(n))}}var int=ED(Object.keys,Object),ant=Object.prototype.hasOwnProperty;function b2(e){if(!mp(e))return int(e);var t=[];for(var n in Object(e))ant.call(e,n)&&n!="constructor"&&t.push(n);return t}function oo(e){return si(e)?CD(e):b2(e)}var snt=Object.prototype.hasOwnProperty,cnt=Qf(function(e,t){if(mp(t)||si(t))Za(t,oo(t),e);else for(var n in t)snt.call(t,n)&&vp(e,n,t[n])}),unt=cnt,lnt=Object.prototype.hasOwnProperty;function fnt(e){if(!Ar(e))return function(o){var i=[];if(o!=null)for(var a in Object(o))i.push(a);return i}(e);var t=mp(e),n=[];for(var r in e)(r!="constructor"||!t&&lnt.call(e,r))&&n.push(r);return n}function ii(e){return si(e)?CD(e,!0):fnt(e)}var dnt=Qf(function(e,t){Za(t,ii(t),e)}),KE=dnt,hnt=Qf(function(e,t,n,r){Za(t,ii(t),e,r)}),fg=hnt,pnt=Qf(function(e,t,n,r){Za(t,oo(t),e,r)}),vnt=pnt,mnt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,gnt=/^\w*$/;function w2(e,t){if(tn(e))return!1;var n=ce(e);return!(n!="number"&&n!="symbol"&&n!="boolean"&&e!=null&&!bi(e))||gnt.test(e)||!mnt.test(e)||t!=null&&e in Object(t)}var vd=ul(Object,"create"),ynt=Object.prototype.hasOwnProperty,bnt=Object.prototype.hasOwnProperty;function ju(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function uv(e,t){for(var n=e.length;n--;)if(Ma(e[n][0],t))return n;return-1}ju.prototype.clear=function(){this.__data__=vd?vd(null):{},this.size=0},ju.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ju.prototype.get=function(e){var t=this.__data__;if(vd){var n=t[e];return n==="__lodash_hash_undefined__"?void 0:n}return ynt.call(t,e)?t[e]:void 0},ju.prototype.has=function(e){var t=this.__data__;return vd?t[e]!==void 0:bnt.call(t,e)},ju.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=vd&&t===void 0?"__lodash_hash_undefined__":t,this};var wnt=Array.prototype.splice;function Es(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Es.prototype.clear=function(){this.__data__=[],this.size=0},Es.prototype.delete=function(e){var t=this.__data__,n=uv(t,e);return!(n<0)&&(n==t.length-1?t.pop():wnt.call(t,n,1),--this.size,!0)},Es.prototype.get=function(e){var t=this.__data__,n=uv(t,e);return n<0?void 0:t[n][1]},Es.prototype.has=function(e){return uv(this.__data__,e)>-1},Es.prototype.set=function(e,t){var n=this.__data__,r=uv(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var Ah=ul(lo,"Map");function lv(e,t){var n=e.__data__;return function(r){var o=ce(r);return o=="string"||o=="number"||o=="symbol"||o=="boolean"?r!=="__proto__":r===null}(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Os(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Os.prototype.clear=function(){this.size=0,this.__data__={hash:new ju,map:new(Ah||Es),string:new ju}},Os.prototype.delete=function(e){var t=lv(this,e).delete(e);return this.size-=t?1:0,t},Os.prototype.get=function(e){return lv(this,e).get(e)},Os.prototype.has=function(e){return lv(this,e).has(e)},Os.prototype.set=function(e,t){var n=lv(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};var xnt="Expected a function";function gp(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(xnt);var n=function r(){var o=arguments,i=t?t.apply(this,o):o[0],a=r.cache;if(a.has(i))return a.get(i);var s=e.apply(this,o);return r.cache=a.set(i,s)||a,s};return n.cache=new(gp.Cache||Os),n}gp.Cache=Os;var knt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,jnt=/\\(\\)?/g,_nt=function(e){var t=gp(e,function(r){return n.size===500&&n.clear(),r}),n=t.cache;return t}(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(knt,function(n,r,o,i){t.push(o?i.replace(jnt,"$1"):r||n)}),t}),OD=_nt;function Un(e){return e==null?"":wi(e)}function Zc(e,t){return tn(e)?e:w2(e,t)?[e]:OD(Un(e))}var Snt=1/0;function ps(e){if(typeof e=="string"||bi(e))return e;var t=e+"";return t=="0"&&1/e==-Snt?"-0":t}function ll(e,t){for(var n=0,r=(t=Zc(t,e)).length;e!=null&&n<r;)e=e[ps(t[n++])];return n&&n==r?e:void 0}function x2(e,t,n){var r=e==null?void 0:ll(e,t);return r===void 0?n:r}function k2(e,t){for(var n=-1,r=t.length,o=Array(r),i=e==null;++n<r;)o[n]=i?void 0:x2(e,t[n]);return o}function tu(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var JE=No?No.isConcatSpreadable:void 0;function $nt(e){return tn(e)||Xu(e)||!!(JE&&e&&e[JE])}function Co(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=$nt),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?Co(s,t-1,n,r,o):tu(o,s):r||(o[o.length]=s)}return o}function MD(e){return e!=null&&e.length?Co(e,1):[]}function Zs(e){return m2(jD(e,void 0,MD),e+"")}var Cnt=Zs(k2),T0=ED(Object.getPrototypeOf,Object),Ent="[object Object]",Ont=Function.prototype,Mnt=Object.prototype,AD=Ont.toString,Ant=Mnt.hasOwnProperty,Pnt=AD.call(Object);function yp(e){if(!Hr(e)||Go(e)!=Ent)return!1;var t=T0(e);if(t===null)return!0;var n=Ant.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&AD.call(n)==Pnt}var Tnt="[object DOMException]",Rnt="[object Error]";function j2(e){if(!Hr(e))return!1;var t=Go(e);return t==Rnt||t==Tnt||typeof e.message=="string"&&typeof e.name=="string"&&!yp(e)}var Int=vn(function(e,t){try{return xi(e,void 0,t)}catch(n){return j2(n)?n:new Error(n)}}),PD=Int,Nnt="Expected a function";function TD(e,t){var n;if(typeof t!="function")throw new TypeError(Nnt);return e=sn(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var _2=vn(function(e,t,n){var r=1;if(n.length){var o=Cc(n,Gf(_2));r|=32}return Ys(e,r,t,n,o)});_2.placeholder={};var RD=_2,Dnt=Zs(function(e,t){return Oi(t,function(n){n=ps(n),Xs(e,n,RD(e[n],e))}),e}),Lnt=Dnt,S2=vn(function(e,t,n){var r=3;if(n.length){var o=Cc(n,Gf(S2));r|=32}return Ys(t,r,e,n,o)});S2.placeholder={};var znt=S2;function Ji(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 eu(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:Ji(e,t,n)}var Bnt=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function Xf(e){return Bnt.test(e)}var ID="\\ud800-\\udfff",Fnt="["+ID+"]",dw="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",hw="\\ud83c[\\udffb-\\udfff]",ND="[^"+ID+"]",DD="(?:\\ud83c[\\udde6-\\uddff]){2}",LD="[\\ud800-\\udbff][\\udc00-\\udfff]",GE="(?:"+dw+"|"+hw+")?",QE="[\\ufe0e\\ufe0f]?",qnt=QE+GE+("(?:\\u200d(?:"+[ND,DD,LD].join("|")+")"+QE+GE+")*"),Hnt="(?:"+[ND+dw+"?",dw,DD,LD,Fnt].join("|")+")",Vnt=RegExp(hw+"(?="+hw+")|"+Hnt+qnt,"g");function Ea(e){return Xf(e)?function(t){return t.match(Vnt)||[]}(e):function(t){return t.split("")}(e)}function zD(e){return function(t){var n=Xf(t=Un(t))?Ea(t):void 0,r=n?n[0]:t.charAt(0),o=n?eu(n,1).join(""):t.slice(1);return r[e]()+o}}var $2=zD("toUpperCase");function BD(e){return $2(Un(e).toLowerCase())}function C2(e,t,n,r){var o=-1,i=e==null?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function E2(e){return function(t){return e==null?void 0:e[t]}}var Wnt=E2({À:"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",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),Unt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Knt=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");function FD(e){return(e=Un(e))&&e.replace(Unt,Wnt).replace(Knt,"")}var Jnt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Gnt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,qD="\\ud800-\\udfff",HD="\\u2700-\\u27bf",VD="a-z\\xdf-\\xf6\\xf8-\\xff",WD="A-Z\\xc0-\\xd6\\xd8-\\xde",UD="\\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",YE="["+UD+"]",KD="\\d+",Qnt="["+HD+"]",JD="["+VD+"]",GD="[^"+qD+UD+KD+HD+VD+WD+"]",QD="(?:\\ud83c[\\udde6-\\uddff]){2}",YD="[\\ud800-\\udbff][\\udc00-\\udfff]",$l="["+WD+"]",XE="(?:"+JD+"|"+GD+")",Ynt="(?:"+$l+"|"+GD+")",ZE="(?:['’](?:d|ll|m|re|s|t|ve))?",tO="(?:['’](?:D|LL|M|RE|S|T|VE))?",eO="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",nO="[\\ufe0e\\ufe0f]?",Xnt=nO+eO+("(?:\\u200d(?:"+["[^"+qD+"]",QD,YD].join("|")+")"+nO+eO+")*"),Znt="(?:"+[Qnt,QD,YD].join("|")+")"+Xnt,trt=RegExp([$l+"?"+JD+"+"+ZE+"(?="+[YE,$l,"$"].join("|")+")",Ynt+"+"+tO+"(?="+[YE,$l+XE,"$"].join("|")+")",$l+"?"+XE+"+"+ZE,$l+"+"+tO,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",KD,Znt].join("|"),"g");function XD(e,t,n){return e=Un(e),(t=n?void 0:t)===void 0?function(r){return Gnt.test(r)}(e)?function(r){return r.match(trt)||[]}(e):function(r){return r.match(Jnt)||[]}(e):e.match(t)||[]}var ert=RegExp("['’]","g");function Zf(e){return function(t){return C2(XD(FD(t).replace(ert,"")),e,"")}}var nrt=Zf(function(e,t,n){return t=t.toLowerCase(),e+(n?BD(t):t)}),rrt=nrt;function ort(){if(!arguments.length)return[];var e=arguments[0];return tn(e)?e:[e]}var irt=lo.isFinite,art=Math.min;function O2(e){var t=Math[e];return function(n,r){if(n=Fi(n),(r=r==null?0:art(sn(r),292))&&irt(n)){var o=(Un(n)+"e").split("e");return+((o=(Un(t(o[0]+"e"+(+o[1]+r)))+"e").split("e"))[0]+"e"+(+o[1]-r))}return t(n)}}var srt=O2("ceil");function ZD(e){var t=Z(e);return t.__chain__=!0,t}var crt=Math.ceil,urt=Math.max;function lrt(e,t,n){t=(n?Ko(e,t,n):t===void 0)?1:urt(sn(t),0);var r=e==null?0:e.length;if(!r||t<1)return[];for(var o=0,i=0,a=Array(crt(r/t));o<r;)a[i++]=Ji(e,o,o+=t);return a}function fl(e,t,n){return e==e&&(n!==void 0&&(e=e<=n?e:n),t!==void 0&&(e=e>=t?e:t)),e}function frt(e,t,n){return n===void 0&&(n=t,t=void 0),n!==void 0&&(n=(n=Fi(n))==n?n:0),t!==void 0&&(t=(t=Fi(t))==t?t:0),fl(Fi(e),t,n)}function pa(e){var t=this.__data__=new Es(e);this.size=t.size}function tL(e,t){return e&&Za(t,oo(t),e)}pa.prototype.clear=function(){this.__data__=new Es,this.size=0},pa.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},pa.prototype.get=function(e){return this.__data__.get(e)},pa.prototype.has=function(e){return this.__data__.has(e)},pa.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Es){var r=n.__data__;if(!Ah||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Os(r)}return n.set(e,t),this.size=n.size,this};var eL=(typeof exports>"u"?"undefined":ce(exports))=="object"&&exports&&!exports.nodeType&&exports,rO=eL&&(typeof module>"u"?"undefined":ce(module))=="object"&&module&&!module.nodeType&&module,oO=rO&&rO.exports===eL?lo.Buffer:void 0,iO=oO?oO.allocUnsafe:void 0;function nL(e,t){if(t)return e.slice();var n=e.length,r=iO?iO(n):new e.constructor(n);return e.copy(r),r}function nu(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function M2(){return[]}var drt=Object.prototype.propertyIsEnumerable,aO=Object.getOwnPropertySymbols,hrt=aO?function(e){return e==null?[]:(e=Object(e),nu(aO(e),function(t){return drt.call(e,t)}))}:M2,A2=hrt,prt=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)tu(t,A2(e)),e=T0(e);return t}:M2,rL=prt;function oL(e,t,n){var r=t(e);return tn(e)?r:tu(r,n(e))}function pw(e){return oL(e,oo,A2)}function P2(e){return oL(e,ii,rL)}var vw=ul(lo,"DataView"),mw=ul(lo,"Promise"),Xl=ul(lo,"Set"),sO="[object Map]",cO="[object Promise]",uO="[object Set]",lO="[object WeakMap]",fO="[object DataView]",vrt=cl(vw),mrt=cl(Ah),grt=cl(mw),yrt=cl(Xl),brt=cl(Mh),bu=Go;(vw&&bu(new vw(new ArrayBuffer(1)))!=fO||Ah&&bu(new Ah)!=sO||mw&&bu(mw.resolve())!=cO||Xl&&bu(new Xl)!=uO||Mh&&bu(new Mh)!=lO)&&(bu=function(e){var t=Go(e),n=t=="[object Object]"?e.constructor:void 0,r=n?cl(n):"";if(r)switch(r){case vrt:return fO;case mrt:return sO;case grt:return cO;case yrt:return uO;case brt:return lO}return t});var us=bu,wrt=Object.prototype.hasOwnProperty,dg=lo.Uint8Array;function gw(e){var t=new e.constructor(e.byteLength);return new dg(t).set(new dg(e)),t}var xrt=/\w*$/,dO=No?No.prototype:void 0,hO=dO?dO.valueOf:void 0;function iL(e,t){var n=t?gw(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var krt="[object Boolean]",jrt="[object Date]",_rt="[object Map]",Srt="[object Number]",$rt="[object RegExp]",Crt="[object Set]",Ert="[object String]",Ort="[object Symbol]",Mrt="[object ArrayBuffer]",Art="[object DataView]",Prt="[object Float32Array]",Trt="[object Float64Array]",Rrt="[object Int8Array]",Irt="[object Int16Array]",Nrt="[object Int32Array]",Drt="[object Uint8Array]",Lrt="[object Uint8ClampedArray]",zrt="[object Uint16Array]",Brt="[object Uint32Array]";function Frt(e,t,n){var r,o=e.constructor;switch(t){case Mrt:return gw(e);case krt:case jrt:return new o(+e);case Art:return function(i,a){var s=a?gw(i.buffer):i.buffer;return new i.constructor(s,i.byteOffset,i.byteLength)}(e,n);case Prt:case Trt:case Rrt:case Irt:case Nrt:case Drt:case Lrt:case zrt:case Brt:return iL(e,n);case _rt:return new o;case Srt:case Ert:return new o(e);case $rt:return function(i){var a=new i.constructor(i.source,xrt.exec(i));return a.lastIndex=i.lastIndex,a}(e);case Crt:return new o;case Ort:return r=e,hO?Object(hO.call(r)):{}}}function aL(e){return typeof e.constructor!="function"||mp(e)?{}:Kf(T0(e))}var pO=Ki&&Ki.isMap,sL=pO?ki(pO):function(e){return Hr(e)&&us(e)=="[object Map]"},vO=Ki&&Ki.isSet,cL=vO?ki(vO):function(e){return Hr(e)&&us(e)=="[object Set]"},qrt=1,Hrt=2,Vrt=4,uL="[object Arguments]",lL="[object Function]",Wrt="[object GeneratorFunction]",fL="[object Object]",cr={};function Hi(e,t,n,r,o,i){var a,s=t&qrt,c=t&Hrt,u=t&Vrt;if(n&&(a=o?n(e,r,o,i):n(e)),a!==void 0)return a;if(!Ar(e))return e;var l=tn(e);if(l){if(a=function(v){var m=v.length,g=new v.constructor(m);return m&&typeof v[0]=="string"&&wrt.call(v,"index")&&(g.index=v.index,g.input=v.input),g}(e),!s)return ni(e,a)}else{var f=us(e),d=f==lL||f==Wrt;if(Bc(e))return nL(e,s);if(f==fL||f==uL||d&&!o){if(a=c||d?{}:aL(e),!s)return c?function(v,m){return Za(v,rL(v),m)}(e,function(v,m){return v&&Za(m,ii(m),v)}(a,e)):function(v,m){return Za(v,A2(v),m)}(e,tL(a,e))}else{if(!cr[f])return o?e:{};a=Frt(e,f,s)}}i||(i=new pa);var h=i.get(e);if(h)return h;i.set(e,a),cL(e)?e.forEach(function(v){a.add(Hi(v,t,n,v,e,i))}):sL(e)&&e.forEach(function(v,m){a.set(m,Hi(v,t,n,m,e,i))});var p=l?void 0:(u?c?P2:pw:c?ii:oo)(e);return Oi(p||e,function(v,m){p&&(v=e[m=v]),vp(a,m,Hi(v,t,n,m,e,i))}),a}cr[uL]=cr["[object Array]"]=cr["[object ArrayBuffer]"]=cr["[object DataView]"]=cr["[object Boolean]"]=cr["[object Date]"]=cr["[object Float32Array]"]=cr["[object Float64Array]"]=cr["[object Int8Array]"]=cr["[object Int16Array]"]=cr["[object Int32Array]"]=cr["[object Map]"]=cr["[object Number]"]=cr[fL]=cr["[object RegExp]"]=cr["[object Set]"]=cr["[object String]"]=cr["[object Symbol]"]=cr["[object Uint8Array]"]=cr["[object Uint8ClampedArray]"]=cr["[object Uint16Array]"]=cr["[object Uint32Array]"]=!0,cr["[object Error]"]=cr[lL]=cr["[object WeakMap]"]=!1;function Urt(e){return Hi(e,4)}function Krt(e){return Hi(e,5)}var Jrt=1,Grt=4;function dL(e,t){return Hi(e,Jrt|Grt,t=typeof t=="function"?t:void 0)}function Qrt(e,t){return Hi(e,4,t=typeof t=="function"?t:void 0)}function Yrt(){return new qi(this.value(),this.__chain__)}function Xrt(e){for(var t=-1,n=e==null?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o}function Zrt(){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 tu(tn(n)?ni(n):[n],Co(t,1))}function Lu(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Os;++t<n;)this.add(e[t])}function T2(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function Ph(e,t){return e.has(t)}Lu.prototype.add=Lu.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Lu.prototype.has=function(e){return this.__data__.has(e)};var tot=1,eot=2;function mO(e,t,n,r,o,i){var a=n&tot,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&eot?new Lu:void 0;for(i.set(e,t),i.set(t,e);++f<s;){var p=e[f],v=t[f];if(r)var m=a?r(v,p,f,t,e,i):r(p,v,f,e,t,i);if(m!==void 0){if(m)continue;d=!1;break}if(h){if(!T2(t,function(g,y){if(!Ph(h,y)&&(p===g||o(p,g,n,r,i)))return h.push(y)})){d=!1;break}}else if(p!==v&&!o(p,v,n,r,i)){d=!1;break}}return i.delete(e),i.delete(t),d}function R2(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}function R0(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var not=1,rot=2,oot="[object Boolean]",iot="[object Date]",aot="[object Error]",sot="[object Map]",cot="[object Number]",uot="[object RegExp]",lot="[object Set]",fot="[object String]",dot="[object Symbol]",hot="[object ArrayBuffer]",pot="[object DataView]",gO=No?No.prototype:void 0,ey=gO?gO.valueOf:void 0,vot=1,mot=Object.prototype.hasOwnProperty,got=1,yO="[object Arguments]",bO="[object Array]",fv="[object Object]",wO=Object.prototype.hasOwnProperty;function yot(e,t,n,r,o,i){var a=tn(e),s=tn(t),c=a?bO:us(e),u=s?bO:us(t),l=(c=c==yO?fv:c)==fv,f=(u=u==yO?fv:u)==fv,d=c==u;if(d&&Bc(e)){if(!Bc(t))return!1;a=!0,l=!1}if(d&&!l)return i||(i=new pa),a||Yf(e)?mO(e,t,n,r,o,i):function(g,y,b,w,x,k,E){switch(b){case pot:if(g.byteLength!=y.byteLength||g.byteOffset!=y.byteOffset)return!1;g=g.buffer,y=y.buffer;case hot:return!(g.byteLength!=y.byteLength||!k(new dg(g),new dg(y)));case oot:case iot:case cot:return Ma(+g,+y);case aot:return g.name==y.name&&g.message==y.message;case uot:case fot:return g==y+"";case sot:var _=R2;case lot:var T=w¬if(_||(_=R0),g.size!=y.size&&!T)return!1;var $=E.get(g);if($)return $==y;w|=rot,E.set(g,y);var j=mO(_(g),_(y),w,x,k,E);return E.delete(g),j;case dot:if(ey)return ey.call(g)==ey.call(y)}return!1}(e,t,c,n,r,o,i);if(!(n&got)){var h=l&&wO.call(e,"__wrapped__"),p=f&&wO.call(t,"__wrapped__");if(h||p){var v=h?e.value():e,m=p?t.value():t;return i||(i=new pa),o(v,m,n,r,i)}}return!!d&&(i||(i=new pa),function(g,y,b,w,x,k){var E=b&vot,_=pw(g),T=_.length;if(T!=pw(y).length&&!E)return!1;for(var $=T;$--;){var j=_[$];if(!(E?j in y:mot.call(y,j)))return!1}var R=k.get(g),q=k.get(y);if(R&&q)return R==y&&q==g;var O=!0;k.set(g,y),k.set(y,g);for(var F=E;++$<T;){var J=g[j=_[$]],I=y[j];if(w)var D=E?w(I,J,j,y,g,k):w(J,I,j,g,y,k);if(!(D===void 0?J===I||x(J,I,b,w,k):D)){O=!1;break}F||(F=j=="constructor")}if(O&&!F){var C=g.constructor,M=y.constructor;C==M||!("constructor"in g)||!("constructor"in y)||typeof C=="function"&&C instanceof C&&typeof M=="function"&&M instanceof M||(O=!1)}return k.delete(g),k.delete(y),O}(e,t,n,r,o,i))}function bp(e,t,n,r,o){return e===t||(e==null||t==null||!Hr(e)&&!Hr(t)?e!=e&&t!=t:yot(e,t,n,r,bp,o))}var bot=1,wot=2;function I2(e,t,n,r){var o=n.length,i=o,a=!r;if(e==null)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(u===void 0&&!(c in e))return!1}else{var f=new pa;if(r)var d=r(u,l,c,e,t,f);if(!(d===void 0?bp(l,u,bot|wot,r,f):d))return!1}}return!0}function hL(e){return e==e&&!Ar(e)}function N2(e){for(var t=oo(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,hL(o)]}return t}function pL(e,t){return function(n){return n!=null&&n[e]===t&&(t!==void 0||e in Object(n))}}function vL(e){var t=N2(e);return t.length==1&&t[0][2]?pL(t[0][0],t[0][1]):function(n){return n===e||I2(n,e,t)}}function xot(e,t){return e!=null&&t in Object(e)}function mL(e,t,n){for(var r=-1,o=(t=Zc(t,e)).length,i=!1;++r<o;){var a=ps(t[r]);if(!(i=e!=null&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=e==null?0:e.length)&&P0(o)&&Qs(a,o)&&(tn(e)||Xu(e))}function D2(e,t){return e!=null&&mL(e,t,xot)}var kot=1,jot=2;function gL(e,t){return w2(e)&&hL(t)?pL(ps(e),t):function(n){var r=x2(n,e);return r===void 0&&r===t?D2(n,e):bp(t,r,kot|jot)}}function L2(e){return function(t){return t==null?void 0:t[e]}}function yL(e){return w2(e)?L2(ps(e)):function(t){return function(n){return ll(n,t)}}(e)}function Qe(e){return typeof e=="function"?e:e==null?Uo:ce(e)=="object"?tn(e)?gL(e[0],e[1]):vL(e):yL(e)}function _ot(e){var t=e==null?0:e.length,n=Qe;return e=t?$r(e,function(r){if(typeof r[1]!="function")throw new TypeError("Expected a function");return[n(r[0]),r[1]]}):[],vn(function(r){for(var o=-1;++o<t;){var i=e[o];if(xi(i[0],this,r))return xi(i[1],this,r)}})}function bL(e,t,n){var r=n.length;if(e==null)return!r;for(e=Object(e);r--;){var o=n[r],i=t[o],a=e[o];if(a===void 0&&!(o in e)||!i(a))return!1}return!0}function Sot(e){return function(t){var n=oo(t);return function(r){return bL(r,t,n)}}(Hi(e,1))}function $ot(e,t){return t==null||bL(e,t,oo(t))}function Cot(e,t,n,r){for(var o=-1,i=e==null?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function wL(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(n(i[c],c,i)===!1)break}return t}}var z2=wL();function ts(e,t){return e&&z2(e,t,oo)}function xL(e,t){return function(n,r){if(n==null)return n;if(!si(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Object(n);(t?i--:++i<o)&&r(a[i],i,a)!==!1;);return n}}var ru=xL(ts);function Eot(e,t,n,r){return ru(e,function(o,i,a){t(r,o,n(o),a)}),r}function I0(e,t){return function(n,r){var o=tn(n)?Cot:Eot,i=t?t():{};return o(n,e,Qe(r),i)}}var Oot=Object.prototype.hasOwnProperty,Mot=I0(function(e,t,n){Oot.call(e,n)?++e[n]:Xs(e,n,1)}),Aot=Mot;function Pot(e,t){var n=Kf(e);return t==null?n:tL(n,t)}function B2(e,t,n){var r=Ys(e,8,void 0,void 0,void 0,void 0,void 0,t=n?void 0:t);return r.placeholder=B2.placeholder,r}B2.placeholder={};function F2(e,t,n){var r=Ys(e,16,void 0,void 0,void 0,void 0,void 0,t=n?void 0:t);return r.placeholder=F2.placeholder,r}F2.placeholder={};var gm=function(){return lo.Date.now()},Tot="Expected a function",Rot=Math.max,Iot=Math.min;function wp(e,t,n){var r,o,i,a,s,c,u=0,l=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(Tot);function h(y){var b=r,w=o;return r=o=void 0,u=y,a=e.apply(w,b)}function p(y){var b=y-c;return c===void 0||b>=t||b<0||f&&y-u>=i}function v(){var y=gm();if(p(y))return m(y);s=setTimeout(v,function(b){var w=t-(b-c);return f?Iot(w,i-(b-u)):w}(y))}function m(y){return s=void 0,d&&r?h(y):(r=o=void 0,a)}function g(){var y=gm(),b=p(y);if(r=arguments,o=this,c=y,b){if(s===void 0)return function(w){return u=w,s=setTimeout(v,t),l?h(w):a}(c);if(f)return clearTimeout(s),s=setTimeout(v,t),h(c)}return s===void 0&&(s=setTimeout(v,t)),a}return t=Fi(t)||0,Ar(n)&&(l=!!n.leading,i=(f="maxWait"in n)?Rot(Fi(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),g.cancel=function(){s!==void 0&&clearTimeout(s),u=0,r=c=o=s=void 0},g.flush=function(){return s===void 0?a:m(gm())},g}function Not(e,t){return e==null||e!=e?t:e}var kL=Object.prototype,Dot=kL.hasOwnProperty,Lot=vn(function(e,t){e=Object(e);var n=-1,r=t.length,o=r>2?t[2]:void 0;for(o&&Ko(t[0],t[1],o)&&(r=1);++n<r;)for(var i=t[n],a=ii(i),s=-1,c=a.length;++s<c;){var u=a[s],l=e[u];(l===void 0||Ma(l,kL[u])&&!Dot.call(e,u))&&(e[u]=i[u])}return e}),zot=Lot;function ny(e,t,n){(n!==void 0&&!Ma(e[t],n)||n===void 0&&!(t in e))&&Xs(e,t,n)}function Ur(e){return Hr(e)&&si(e)}function ry(e,t){if((t!=="constructor"||typeof e[t]!="function")&&t!="__proto__")return e[t]}function jL(e){return Za(e,ii(e))}function N0(e,t,n,r,o){e!==t&&z2(t,function(i,a){if(o||(o=new pa),Ar(i))(function(c,u,l,f,d,h,p){var v=ry(c,l),m=ry(u,l),g=p.get(m);if(g)ny(c,l,g);else{var y=h?h(v,m,l+"",c,u,p):void 0,b=y===void 0;if(b){var w=tn(m),x=!w&&Bc(m),k=!w&&!x&&Yf(m);y=m,w||x||k?tn(v)?y=v:Ur(v)?y=ni(v):x?(b=!1,y=nL(m,!0)):k?(b=!1,y=iL(m,!0)):y=[]:yp(m)||Xu(m)?(y=v,Xu(v)?y=jL(v):Ar(v)&&!Gs(v)||(y=aL(m))):b=!1}b&&(p.set(m,y),d(y,m,f,h,p),p.delete(m)),ny(c,l,y)}})(e,t,a,n,N0,r,o);else{var s=r?r(ry(e,a),i,a+"",e,t,o):void 0;s===void 0&&(s=i),ny(e,a,s)}},ii)}function _L(e,t,n,r,o,i){return Ar(e)&&Ar(t)&&(i.set(t,e),N0(e,t,void 0,_L,i),i.delete(t)),e}var Bot=Qf(function(e,t,n,r){N0(e,t,n,r)}),SL=Bot,Fot=vn(function(e){return e.push(void 0,_L),xi(SL,void 0,e)});function $L(e,t,n){if(typeof e!="function")throw new TypeError("Expected a function");return setTimeout(function(){e.apply(void 0,n)},t)}var qot=vn(function(e,t){return $L(e,1,t)}),Hot=qot,Vot=vn(function(e,t,n){return $L(e,Fi(t)||0,n)}),Wot=Vot;function q2(e,t,n){for(var r=-1,o=e==null?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}var Uot=200;function xp(e,t,n,r){var o=-1,i=A0,a=!0,s=e.length,c=[],u=t.length;if(!s)return c;n&&(t=$r(t,ki(n))),r?(i=q2,a=!1):t.length>=Uot&&(i=Ph,a=!1,t=new Lu(t));t:for(;++o<s;){var l=e[o],f=n==null?l:n(l);if(l=r||l!==0?l:0,a&&f==f){for(var d=u;d--;)if(t[d]===f)continue t;c.push(l)}else i(t,f,r)||c.push(l)}return c}var Kot=vn(function(e,t){return Ur(e)?xp(e,Co(t,1,Ur,!0)):[]}),Jot=Kot;function Re(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var Got=vn(function(e,t){var n=Re(t);return Ur(n)&&(n=void 0),Ur(e)?xp(e,Co(t,1,Ur,!0),Qe(n)):[]}),Qot=Got,Yot=vn(function(e,t){var n=Re(t);return Ur(n)&&(n=void 0),Ur(e)?xp(e,Co(t,1,Ur,!0),void 0,n):[]}),Xot=Yot,Zot=E0(function(e,t){return e/t},1);function tit(e,t,n){var r=e==null?0:e.length;return r?Ji(e,(t=n||t===void 0?1:sn(t))<0?0:t,r):[]}function eit(e,t,n){var r=e==null?0:e.length;return r?Ji(e,0,(t=r-(t=n||t===void 0?1:sn(t)))<0?0:t):[]}function D0(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?Ji(e,r?0:i,r?i+1:o):Ji(e,r?i+1:0,r?o:i)}function nit(e,t){return e&&e.length?D0(e,Qe(t),!0,!0):[]}function rit(e,t){return e&&e.length?D0(e,Qe(t),!0):[]}function vs(e){return typeof e=="function"?e:Uo}function xO(e,t){return(tn(e)?Oi:ru)(e,vs(t))}function oit(e,t){for(var n=e==null?0:e.length;n--&&t(e[n],n,e)!==!1;);return e}var CL=wL(!0);function H2(e,t){return e&&CL(e,t,oo)}var EL=xL(H2,!0);function yw(e,t){return(tn(e)?oit:EL)(e,vs(t))}function iit(e,t,n){e=Un(e),t=wi(t);var r=e.length,o=n=n===void 0?r:fl(sn(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t}function OL(e){return function(t){var n=us(t);return n=="[object Map]"?R2(t):n=="[object Set]"?function(r){var o=-1,i=Array(r.size);return r.forEach(function(a){i[++o]=[a,a]}),i}(t):function(r,o){return $r(o,function(i){return[i,r[i]]})}(t,e(t))}}var kO=OL(oo),jO=OL(ii),ait=E2({"&":"&","<":"<",">":">",'"':""","'":"'"}),ML=/[&<>"']/g,sit=RegExp(ML.source);function AL(e){return(e=Un(e))&&sit.test(e)?e.replace(ML,ait):e}var PL=/[\\^$.*+?()[\]{}|]/g,cit=RegExp(PL.source);function uit(e){return(e=Un(e))&&cit.test(e)?e.replace(PL,"\\$&"):e}function TL(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function lit(e,t){var n=!0;return ru(e,function(r,o,i){return n=!!t(r,o,i)}),n}function fit(e,t,n){var r=tn(e)?TL:lit;return n&&Ko(e,t,n)&&(t=void 0),r(e,Qe(t))}var dit=4294967295;function RL(e){return e?fl(sn(e),0,dit):0}function hit(e,t,n,r){var o=e==null?0:e.length;return o?(n&&typeof n!="number"&&Ko(e,t,n)&&(n=0,r=o),function(i,a,s,c){var u=i.length;for((s=sn(s))<0&&(s=-s>u?0:u+s),(c=c===void 0||c>u?u:sn(c))<0&&(c+=u),c=s>c?0:RL(c);s<c;)i[s++]=a;return i}(e,t,n,r)):[]}function IL(e,t){var n=[];return ru(e,function(r,o,i){t(r,o,i)&&n.push(r)}),n}function pit(e,t){return(tn(e)?nu:IL)(e,Qe(t))}function NL(e){return function(t,n,r){var o=Object(t);if(!si(t)){var i=Qe(n);t=oo(t),n=function(s){return i(o[s],s,o)}}var a=e(t,n,r);return a>-1?o[i?t[a]:a]:void 0}}var vit=Math.max;function DL(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var o=n==null?0:sn(n);return o<0&&(o=vit(r+o,0)),M0(e,Qe(t),o)}var mit=NL(DL);function LL(e,t,n){var r;return n(e,function(o,i,a){if(t(o,i,a))return r=i,!1}),r}function git(e,t){return LL(e,Qe(t),ts)}var yit=Math.max,bit=Math.min;function zL(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var o=r-1;return n!==void 0&&(o=sn(n),o=n<0?yit(r+o,0):bit(o,r-1)),M0(e,Qe(t),o,!0)}var wit=NL(zL);function xit(e,t){return LL(e,Qe(t),H2)}function ka(e){return e&&e.length?e[0]:void 0}function BL(e,t){var n=-1,r=si(e)?Array(e.length):[];return ru(e,function(o,i,a){r[++n]=t(o,i,a)}),r}function kp(e,t){return(tn(e)?$r:BL)(e,Qe(t))}function kit(e,t){return Co(kp(e,t),1)}function jit(e,t){return Co(kp(e,t),1/0)}function _it(e,t,n){return n=n===void 0?1:sn(n),Co(kp(e,t),n)}function Sit(e){return e!=null&&e.length?Co(e,1/0):[]}function $it(e,t){return e!=null&&e.length?Co(e,t=t===void 0?1:sn(t)):[]}function Cit(e){return Ys(e,512)}var Eit=O2("floor");function FL(e){return Zs(function(t){var n=t.length,r=n,o=qi.prototype.thru;for(e&&t.reverse();r--;){var i=t[r];if(typeof i!="function")throw new TypeError("Expected a function");if(o&&!a&&mm(i)=="wrapper")var a=new qi([],!0)}for(r=a?r:n;++r<n;){var s=mm(i=t[r]),c=s=="wrapper"?p2(i):void 0;a=c&&fw(c[0])&&c[1]==424&&!c[4].length&&c[9]==1?a[mm(c[0])].apply(a,c[3]):i.length==1&&fw(i)?a[s]():a.thru(i)}return function(){var u=arguments,l=u[0];if(a&&u.length==1&&tn(l))return a.plant(l).value();for(var f=0,d=n?t[f].apply(this,u):l;++f<n;)d=t[f].call(this,d);return d}})}var Oit=FL(),Mit=FL(!0);function Ait(e,t){return e==null?e:z2(e,vs(t),ii)}function Pit(e,t){return e==null?e:CL(e,vs(t),ii)}function Tit(e,t){return e&&ts(e,vs(t))}function Rit(e,t){return e&&H2(e,vs(t))}function Iit(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r}function L0(e,t){return nu(t,function(n){return Gs(e[n])})}function Nit(e){return e==null?[]:L0(e,oo(e))}function Dit(e){return e==null?[]:L0(e,ii(e))}var Lit=Object.prototype.hasOwnProperty,zit=I0(function(e,t,n){Lit.call(e,n)?e[n].push(t):Xs(e,n,[t])}),jp=zit;function V2(e,t){return e>t}function z0(e){return function(t,n){return typeof t=="string"&&typeof n=="string"||(t=Fi(t),n=Fi(n)),e(t,n)}}var Bit=z0(V2),Fit=z0(function(e,t){return e>=t}),qit=Object.prototype.hasOwnProperty;function Hit(e,t){return e!=null&&qit.call(e,t)}function Vit(e,t){return e!=null&&mL(e,t,Hit)}var Wit=Math.max,Uit=Math.min;function Kit(e,t,n){return t=Ns(t),n===void 0?(n=t,t=0):n=Ns(n),function(r,o,i){return r>=Uit(o,i)&&r<Wit(o,i)}(e=Fi(e),t,n)}var Jit="[object String]";function B0(e){return typeof e=="string"||!tn(e)&&Hr(e)&&Go(e)==Jit}function W2(e,t){return $r(t,function(n){return e[n]})}function td(e){return e==null?[]:W2(e,oo(e))}var Git=Math.max;function Qit(e,t,n,r){e=si(e)?e:td(e),n=n&&!r?sn(n):0;var o=e.length;return n<0&&(n=Git(o+n,0)),B0(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Jf(e,t,n)>-1}var Yit=Math.max;function Xit(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var o=n==null?0:sn(n);return o<0&&(o=Yit(r+o,0)),Jf(e,t,o)}function on(e){return e!=null&&e.length?Ji(e,0,-1):[]}var Zit=Math.min;function U2(e,t,n){for(var r=n?q2:A0,o=e[0].length,i=e.length,a=i,s=Array(i),c=1/0,u=[];a--;){var l=e[a];a&&t&&(l=$r(l,ki(t))),c=Zit(l.length,c),s[a]=!n&&(t||o>=120&&l.length>=120)?new Lu(a&&l):void 0}l=e[0];var f=-1,d=s[0];t:for(;++f<o&&u.length<c;){var h=l[f],p=t?t(h):h;if(h=n||h!==0?h:0,!(d?Ph(d,p):r(u,p,n))){for(a=i;--a;){var v=s[a];if(!(v?Ph(v,p):r(e[a],p,n)))continue t}d&&d.push(p),u.push(h)}}return u}function K2(e){return Ur(e)?e:[]}var tat=vn(function(e){var t=$r(e,K2);return t.length&&t[0]===e[0]?U2(t):[]}),eat=vn(function(e){var t=Re(e),n=$r(e,K2);return t===Re(n)?t=void 0:n.pop(),n.length&&n[0]===e[0]?U2(n,Qe(t)):[]}),nat=eat,rat=vn(function(e){var t=Re(e),n=$r(e,K2);return(t=typeof t=="function"?t:void 0)&&n.pop(),n.length&&n[0]===e[0]?U2(n,void 0,t):[]});function qL(e,t){return function(n,r){return function(o,i,a,s){return ts(o,function(c,u,l){i(s,a(c),u,l)}),s}(n,e,t(r),{})}}var oat=Object.prototype.toString,iat=qL(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=oat.call(t)),e[t]=n},v2(Uo)),aat=iat,HL=Object.prototype,sat=HL.hasOwnProperty,cat=HL.toString,uat=qL(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=cat.call(t)),sat.call(e,t)?e[t].push(n):e[t]=[n]},Qe),lat=uat;function VL(e,t){return t.length<2?e:ll(e,Ji(t,0,-1))}function _p(e,t,n){var r=(e=VL(e,t=Zc(t,e)))==null?e:e[ps(Re(t))];return r==null?void 0:xi(r,e,n)}var fat=vn(_p),dat=vn(function(e,t,n){var r=-1,o=typeof t=="function",i=si(e)?Array(e.length):[];return ru(e,function(a){i[++r]=o?xi(t,a,n):_p(a,t,n)}),i}),hat=dat,_O=Ki&&Ki.isArrayBuffer,pat=_O?ki(_O):function(e){return Hr(e)&&Go(e)=="[object ArrayBuffer]"};function vat(e){return e===!0||e===!1||Hr(e)&&Go(e)=="[object Boolean]"}var SO=Ki&&Ki.isDate,mat=SO?ki(SO):function(e){return Hr(e)&&Go(e)=="[object Date]"};function gat(e){return Hr(e)&&e.nodeType===1&&!yp(e)}var yat="[object Map]",bat="[object Set]",wat=Object.prototype.hasOwnProperty;function cn(e){if(e==null)return!0;if(si(e)&&(tn(e)||typeof e=="string"||typeof e.splice=="function"||Bc(e)||Yf(e)||Xu(e)))return!e.length;var t=us(e);if(t==yat||t==bat)return!e.size;if(mp(e))return!b2(e).length;for(var n in e)if(wat.call(e,n))return!1;return!0}function an(e,t){return bp(e,t)}function xat(e,t,n){var r=(n=typeof n=="function"?n:void 0)?n(e,t):void 0;return r===void 0?bp(e,t,void 0,n):!!r}var kat=lo.isFinite;function jat(e){return typeof e=="number"&&kat(e)}function WL(e){return typeof e=="number"&&e==sn(e)}function _at(e,t){return e===t||I2(e,t,N2(t))}function Sat(e,t,n){return n=typeof n=="function"?n:void 0,I2(e,t,N2(t),n)}var $at="[object Number]";function UL(e){return typeof e=="number"||Hr(e)&&Go(e)==$at}function Cat(e){return UL(e)&&e!=+e}var Eat=vm?Gs:y2;function Oat(e){if(Eat(e))throw new Error("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return dD(e)}function Mat(e){return e==null}function Aat(e){return e===null}var $O=Ki&&Ki.isRegExp,J2=$O?ki($O):function(e){return Hr(e)&&Go(e)=="[object RegExp]"},Pat=9007199254740991;function Tat(e){return WL(e)&&e>=-9007199254740991&&e<=Pat}function Rat(e){return e===void 0}function Iat(e){return Hr(e)&&us(e)=="[object WeakMap]"}function Nat(e){return Hr(e)&&Go(e)=="[object WeakSet]"}function Dat(e){return Qe(typeof e=="function"?e:Hi(e,1))}var Lat=Array.prototype.join;function zat(e,t){return e==null?"":Lat.call(e,t)}var Bat=Zf(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Fat=Bat,qat=I0(function(e,t,n){Xs(e,n,t)}),Hat=qat,Vat=Math.max,Wat=Math.min;function Uat(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var o=r;return n!==void 0&&(o=(o=sn(n))<0?Vat(r+o,0):Wat(o,r-1)),t==t?function(i,a,s){for(var c=s+1;c--;)if(i[c]===a)return c;return c}(e,t,o):M0(e,bD,o,!0)}var Kat=Zf(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Jat=Kat,Gat=zD("toLowerCase");function G2(e,t){return e<t}var Qat=z0(G2),Yat=z0(function(e,t){return e<=t});function Xat(e,t){var n={};return t=Qe(t),ts(e,function(r,o,i){Xs(n,t(r,o,i),r)}),n}function KL(e,t){var n={};return t=Qe(t),ts(e,function(r,o,i){Xs(n,o,t(r,o,i))}),n}function Zat(e){return vL(Hi(e,1))}function tst(e,t){return gL(e,Hi(t,1))}function F0(e,t,n){for(var r=-1,o=e.length;++r<o;){var i=e[r],a=t(i);if(a!=null&&(s===void 0?a==a&&!bi(a):n(a,s)))var s=a,c=i}return c}function est(e){return e&&e.length?F0(e,Uo,V2):void 0}function nst(e,t){return e&&e.length?F0(e,Qe(t),V2):void 0}function Q2(e,t){for(var n,r=-1,o=e.length;++r<o;){var i=t(e[r]);i!==void 0&&(n=n===void 0?i:n+i)}return n}var rst=NaN;function JL(e,t){var n=e==null?0:e.length;return n?Q2(e,t)/n:rst}function ost(e){return JL(e,Uo)}function ist(e,t){return JL(e,Qe(t))}var ast=Qf(function(e,t,n){N0(e,t,n)}),sst=ast,cst=vn(function(e,t){return function(n){return _p(n,e,t)}}),ust=cst,lst=vn(function(e,t){return function(n){return _p(e,n,t)}}),fst=lst;function dst(e){return e&&e.length?F0(e,Uo,G2):void 0}function Dd(e,t){return e&&e.length?F0(e,Qe(t),G2):void 0}function GL(e,t,n){var r=oo(t),o=L0(t,r),i=!(Ar(n)&&"chain"in n&&!n.chain),a=Gs(e);return Oi(o,function(s){var c=t[s];e[s]=c,a&&(e.prototype[s]=function(){var u=this.__chain__;if(i||u){var l=e(this.__wrapped__);return(l.__actions__=ni(this.__actions__)).push({func:c,args:arguments,thisArg:e}),l.__chain__=u,l}return c.apply(e,tu([this.value()],arguments))})}),e}var hst=E0(function(e,t){return e*t},1),pst="Expected a function";function Th(e){if(typeof e!="function")throw new TypeError(pst);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 vst="[object Map]",mst="[object Set]",oy=No?No.iterator:void 0;function QL(e){if(!e)return[];if(si(e))return B0(e)?Ea(e):ni(e);if(oy&&e[oy])return function(n){for(var r,o=[];!(r=n.next()).done;)o.push(r.value);return o}(e[oy]());var t=us(e);return(t==vst?R2:t==mst?R0:td)(e)}function gst(){this.__values__===void 0&&(this.__values__=QL(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}}function YL(e,t){var n=e.length;if(n)return Qs(t+=t<0?n:0,n)?e[t]:void 0}function yst(e,t){return e&&e.length?YL(e,sn(t)):void 0}function bst(e){return e=sn(e),vn(function(t){return YL(t,e)})}function Y2(e,t){return(e=VL(e,t=Zc(t,e)))==null||delete e[ps(Re(t))]}function wst(e){return yp(e)?void 0:e}var xst=Zs(function(e,t){var n={};if(e==null)return n;var r=!1;t=$r(t,function(i){return i=Zc(i,e),r||(r=i.length>1),i}),Za(e,P2(e),n),r&&(n=Hi(n,7,wst));for(var o=t.length;o--;)Y2(n,t[o]);return n}),kst=xst;function Sp(e,t,n,r){if(!Ar(e))return e;for(var o=-1,i=(t=Zc(t,e)).length,a=i-1,s=e;s!=null&&++o<i;){var c=ps(t[o]),u=n;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(o!=a){var l=s[c];(u=r?r(l,c,s):void 0)===void 0&&(u=Ar(l)?l:Qs(t[o+1])?[]:{})}vp(s,c,u),s=s[c]}return e}function XL(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=ll(e,a);n(s,a)&&Sp(i,Zc(a,e),s)}return i}function ZL(e,t){if(e==null)return{};var n=$r(P2(e),function(r){return[r]});return t=Qe(t),XL(e,n,function(r,o){return t(r,o[0])})}function jst(e,t){return ZL(e,Th(Qe(t)))}function _st(e){return TD(2,e)}function tz(e,t){if(e!==t){var n=e!==void 0,r=e===null,o=e==e,i=bi(e),a=t!==void 0,s=t===null,c=t==t,u=bi(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 ez(e,t,n){t=t.length?$r(t,function(i){return tn(i)?function(a){return ll(a,i.length===1?i[0]:i)}:i}):[Uo];var r=-1;t=$r(t,ki(Qe));var o=BL(e,function(i,a,s){var c=$r(t,function(u){return u(i)});return{criteria:c,index:++r,value:i}});return function(i,a){var s=i.length;for(i.sort(a);s--;)i[s]=i[s].value;return i}(o,function(i,a){return function(s,c,u){for(var l=-1,f=s.criteria,d=c.criteria,h=f.length,p=u.length;++l<h;){var v=tz(f[l],d[l]);if(v)return l>=p?v:v*(u[l]=="desc"?-1:1)}return s.index-c.index}(i,a,n)})}function Sst(e,t,n,r){return e==null?[]:(tn(t)||(t=t==null?[]:[t]),tn(n=r?void 0:n)||(n=n==null?[]:[n]),ez(e,t,n))}function X2(e){return Zs(function(t){return t=$r(t,ki(Qe)),vn(function(n){var r=this;return e(t,function(o){return xi(o,r,n)})})})}var $st=X2($r),Cst=vn,Est=Math.min,Ost=Cst(function(e,t){var n=(t=t.length==1&&tn(t[0])?$r(t[0],ki(Qe)):$r(Co(t,1),ki(Qe))).length;return vn(function(r){for(var o=-1,i=Est(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return xi(e,this,r)})}),Mst=Ost,Ast=X2(TL),Pst=X2(T2),Tst=9007199254740991,Rst=Math.floor;function bw(e,t){var n="";if(!e||t<1||t>Tst)return n;do t%2&&(n+=e),(t=Rst(t/2))&&(e+=e);while(t);return n}var Ist=L2("length"),nz="\\ud800-\\udfff",Nst="["+nz+"]",ww="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",xw="\\ud83c[\\udffb-\\udfff]",rz="[^"+nz+"]",oz="(?:\\ud83c[\\udde6-\\uddff]){2}",iz="[\\ud800-\\udbff][\\udc00-\\udfff]",CO="(?:"+ww+"|"+xw+")?",EO="[\\ufe0e\\ufe0f]?",Dst=EO+CO+("(?:\\u200d(?:"+[rz,oz,iz].join("|")+")"+EO+CO+")*"),Lst="(?:"+[rz+ww+"?",ww,oz,iz,Nst].join("|")+")",OO=RegExp(xw+"(?="+xw+")|"+Lst+Dst,"g");function ed(e){return Xf(e)?function(t){for(var n=OO.lastIndex=0;OO.test(t);)++n;return n}(e):Ist(e)}var zst=Math.ceil;function hg(e,t){var n=(t=t===void 0?" ":wi(t)).length;if(n<2)return n?bw(t,e):t;var r=bw(t,zst(e/ed(t)));return Xf(t)?eu(Ea(r),0,e).join(""):r.slice(0,e)}var Bst=Math.ceil,Fst=Math.floor;function qst(e,t,n){e=Un(e);var r=(t=sn(t))?ed(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return hg(Fst(o),n)+e+hg(Bst(o),n)}function Hst(e,t,n){e=Un(e);var r=(t=sn(t))?ed(e):0;return t&&r<t?e+hg(t-r,n):e}function Vst(e,t,n){e=Un(e);var r=(t=sn(t))?ed(e):0;return t&&r<t?hg(t-r,n)+e:e}var Wst=/^\s+/,Ust=lo.parseInt;function Kst(e,t,n){return n||t==null?t=0:t&&(t=+t),Ust(Un(e).replace(Wst,""),t||0)}var Z2=vn(function(e,t){return Ys(e,32,void 0,t,Cc(t,Gf(Z2)))});Z2.placeholder={};var az=Z2,tj=vn(function(e,t){return Ys(e,64,void 0,t,Cc(t,Gf(tj)))});tj.placeholder={};var Jst=tj,Gst=I0(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),sz=Gst,Qst=Zs(function(e,t){return e==null?{}:function(n,r){return XL(n,r,function(o,i){return D2(n,i)})}(e,t)}),Yst=Qst;function Xst(e){for(var t,n=this;n instanceof O0;){var r=mD(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 Zst(e){return function(t){return e==null?void 0:ll(e,t)}}function tct(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}var MO=Array.prototype.splice;function ej(e,t,n,r){var o=r?tct:Jf,i=-1,a=t.length,s=e;for(e===t&&(t=ni(t)),n&&(s=$r(e,ki(n)));++i<a;)for(var c=0,u=t[i],l=n?n(u):u;(c=o(s,l,c,r))>-1;)s!==e&&MO.call(s,c,1),MO.call(e,c,1);return e}function cz(e,t){return e&&e.length&&t&&t.length?ej(e,t):e}var ect=vn(cz);function nct(e,t,n){return e&&e.length&&t&&t.length?ej(e,t,Qe(n)):e}function rct(e,t,n){return e&&e.length&&t&&t.length?ej(e,t,void 0,n):e}var oct=Array.prototype.splice;function uz(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;Qs(o)?oct.call(e,o,1):Y2(e,o)}}return e}var ict=Zs(function(e,t){var n=e==null?0:e.length,r=k2(e,t);return uz(e,$r(t,function(o){return Qs(o,n)?+o:o}).sort(tz)),r}),act=ict,sct=Math.floor,cct=Math.random;function nj(e,t){return e+sct(cct()*(t-e+1))}var uct=parseFloat,lct=Math.min,fct=Math.random;function dct(e,t,n){if(n&&typeof n!="boolean"&&Ko(e,t,n)&&(t=n=void 0),n===void 0&&(typeof t=="boolean"?(n=t,t=void 0):typeof e=="boolean"&&(n=e,e=void 0)),e===void 0&&t===void 0?(e=0,t=1):(e=Ns(e),t===void 0?(t=e,e=0):t=Ns(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=fct();return lct(e+o*(t-e+uct("1e-"+((o+"").length-1))),t)}return nj(e,t)}var hct=Math.ceil,pct=Math.max;function lz(e){return function(t,n,r){return r&&typeof r!="number"&&Ko(t,n,r)&&(n=r=void 0),t=Ns(t),n===void 0?(n=t,t=0):n=Ns(n),function(o,i,a,s){for(var c=-1,u=pct(hct((i-o)/(a||1)),0),l=Array(u);u--;)l[s?u:++c]=o,o+=a;return l}(t,n,r=r===void 0?t<n?1:-1:Ns(r),e)}}var fz=lz(),vct=lz(!0),mct=Zs(function(e,t){return Ys(e,256,void 0,void 0,void 0,t)}),gct=mct;function dz(e,t,n,r,o){return o(e,function(i,a,s){n=r?(r=!1,i):t(n,i,a,s)}),n}function yct(e,t,n){var r=tn(e)?C2:dz,o=arguments.length<3;return r(e,Qe(t),n,o,ru)}function bct(e,t,n,r){var o=e==null?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function wct(e,t,n){var r=tn(e)?bct:dz,o=arguments.length<3;return r(e,Qe(t),n,o,EL)}function xct(e,t){return(tn(e)?nu:IL)(e,Th(Qe(t)))}function kct(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=Qe(t);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return uz(e,o),n}function jct(e,t,n){return t=(n?Ko(e,t,n):t===void 0)?1:sn(t),bw(Un(e),t)}function _ct(){var e=arguments,t=Un(e[0]);return e.length<3?t:t.replace(e[1],e[2])}function Sct(e,t){if(typeof e!="function")throw new TypeError("Expected a function");return vn(e,t=t===void 0?t:sn(t))}function $ct(e,t,n){var r=-1,o=(t=Zc(t,e)).length;for(o||(o=1,e=void 0);++r<o;){var i=e==null?void 0:e[ps(t[r])];i===void 0&&(r=o,i=n),e=Gs(i)?i.call(e):i}return e}var Cct=Array.prototype.reverse;function kw(e){return e==null?e:Cct.call(e)}var Ect=O2("round");function hz(e){var t=e.length;return t?e[nj(0,t-1)]:void 0}function Oct(e){return hz(td(e))}function Mct(e){return(tn(e)?hz:Oct)(e)}function q0(e,t){var n=-1,r=e.length,o=r-1;for(t=t===void 0?r:t;++n<t;){var i=nj(n,o),a=e[i];e[i]=e[n],e[n]=a}return e.length=t,e}function Act(e,t){return q0(ni(e),fl(t,0,e.length))}function Pct(e,t){var n=td(e);return q0(n,fl(t,0,n.length))}function Tct(e,t,n){return t=(n?Ko(e,t,n):t===void 0)?1:sn(t),(tn(e)?Act:Pct)(e,t)}function Rct(e,t,n){return e==null?e:Sp(e,t,n)}function Ict(e,t,n,r){return r=typeof r=="function"?r:void 0,e==null?e:Sp(e,t,n,r)}function Nct(e){return q0(ni(e))}function Dct(e){return q0(td(e))}function Lct(e){return(tn(e)?Nct:Dct)(e)}function zct(e){if(e==null)return 0;if(si(e))return B0(e)?ed(e):e.length;var t=us(e);return t=="[object Map]"||t=="[object Set]"?e.size:b2(e).length}function Bct(e,t,n){var r=e==null?0:e.length;return r?(n&&typeof n!="number"&&Ko(e,t,n)?(t=0,n=r):(t=t==null?0:sn(t),n=n===void 0?r:sn(n)),Ji(e,t,n)):[]}var Fct=Zf(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),qct=Fct;function Hct(e,t){var n;return ru(e,function(r,o,i){return!(n=t(r,o,i))}),!!n}function Vct(e,t,n){var r=tn(e)?T2:Hct;return n&&Ko(e,t,n)&&(t=void 0),r(e,Qe(t))}var Wct=vn(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Ko(e,t[0],t[1])?t=[]:n>2&&Ko(t[0],t[1],t[2])&&(t=[t[0]]),ez(e,Co(t,1),[])}),pz=Wct,Uct=4294967294,Kct=Math.floor,Jct=Math.min;function rj(e,t,n,r){var o=0,i=e==null?0:e.length;if(i===0)return 0;for(var a=(t=n(t))!=t,s=t===null,c=bi(t),u=t===void 0;o<i;){var l=Kct((o+i)/2),f=n(e[l]),d=f!==void 0,h=f===null,p=f==f,v=bi(f);if(a)var m=r||p;else m=u?p&&(r||d):s?p&&d&&(r||!h):c?p&&d&&!h&&(r||!v):!h&&!v&&(r?f<=t:f<t);m?o=l+1:i=l}return Jct(i,Uct)}var Gct=2147483647;function H0(e,t,n){var r=0,o=e==null?r:e.length;if(typeof t=="number"&&t==t&&o<=Gct){for(;r<o;){var i=r+o>>>1,a=e[i];a!==null&&!bi(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return rj(e,t,Uo,n)}function Qct(e,t){return H0(e,t)}function Yct(e,t,n){return rj(e,t,Qe(n))}function Xct(e,t){var n=e==null?0:e.length;if(n){var r=H0(e,t);if(r<n&&Ma(e[r],t))return r}return-1}function Zct(e,t){return H0(e,t,!0)}function tut(e,t,n){return rj(e,t,Qe(n),!0)}function eut(e,t){if(e!=null&&e.length){var n=H0(e,t,!0)-1;if(Ma(e[n],t))return n}return-1}function vz(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||!Ma(s,c)){var c=s;i[o++]=a===0?0:a}}return i}function nut(e){return e&&e.length?vz(e):[]}function rut(e,t){return e&&e.length?vz(e,Qe(t)):[]}function out(e,t,n){return n&&typeof n!="number"&&Ko(e,t,n)&&(t=n=void 0),(n=n===void 0?4294967295:n>>>0)?(e=Un(e))&&(typeof t=="string"||t!=null&&!J2(t))&&!(t=wi(t))&&Xf(e)?eu(Ea(e),0,n):e.split(t,n):[]}var iut=Math.max;function aut(e,t){if(typeof e!="function")throw new TypeError("Expected a function");return t=t==null?0:iut(sn(t),0),vn(function(n){var r=n[t],o=eu(n,0,t);return r&&tu(o,r),xi(e,this,o)})}var sut=Zf(function(e,t,n){return e+(n?" ":"")+$2(t)}),cut=sut;function uut(e,t,n){return e=Un(e),n=n==null?0:fl(sn(n),0,e.length),t=wi(t),e.slice(n,n+t.length)==t}function lut(){return{}}function fut(){return""}function dut(){return!0}var hut=E0(function(e,t){return e-t},0);function put(e){return e&&e.length?Q2(e,Uo):0}function vut(e,t){return e&&e.length?Q2(e,Qe(t)):0}function mut(e){var t=e==null?0:e.length;return t?Ji(e,1,t):[]}function gut(e,t,n){return e&&e.length?Ji(e,0,(t=n||t===void 0?1:sn(t))<0?0:t):[]}function yut(e,t,n){var r=e==null?0:e.length;return r?Ji(e,(t=r-(t=n||t===void 0?1:sn(t)))<0?0:t,r):[]}function but(e,t){return e&&e.length?D0(e,Qe(t),!1,!0):[]}function wut(e,t){return e&&e.length?D0(e,Qe(t)):[]}function xut(e,t){return t(e),e}var mz=Object.prototype,kut=mz.hasOwnProperty;function AO(e,t,n,r){return e===void 0||Ma(e,mz[n])&&!kut.call(r,n)?t:e}var jut={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function _ut(e){return"\\"+jut[e]}var gz=/<%=([\s\S]+?)%>/g,jw={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:gz,variable:"",imports:{_:{escape:AL}}},Sut=/\b__p \+= '';/g,$ut=/\b(__p \+=) '' \+/g,Cut=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Eut=/[()=,{}\[\]\/\s]/,Out=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,dv=/($^)/,Mut=/['\n\r\u2028\u2029\\]/g,PO=Object.prototype.hasOwnProperty;function Aut(e,t,n){var r=jw.imports._.templateSettings||jw;n&&Ko(e,t,n)&&(t=void 0),e=Un(e),t=fg({},t,r,AO);var o,i,a=fg({},t.imports,r.imports,AO),s=oo(a),c=W2(a,s),u=0,l=t.interpolate||dv,f="__p += '",d=RegExp((t.escape||dv).source+"|"+l.source+"|"+(l===gz?Out:dv).source+"|"+(t.evaluate||dv).source+"|$","g"),h=PO.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+`
|
|
24
|
+
`:"";e.replace(d,function(m,g,y,b,w,x){return y||(y=b),f+=e.slice(u,x).replace(Mut,_ut),g&&(o=!0,f+=`' +
|
|
25
|
+
__e(`+g+`) +
|
|
26
|
+
'`),w&&(i=!0,f+=`';
|
|
27
|
+
`+w+`;
|
|
28
|
+
__p += '`),y&&(f+=`' +
|
|
29
|
+
((__t = (`+y+`)) == null ? '' : __t) +
|
|
30
|
+
'`),u=x+m.length,m}),f+=`';
|
|
31
|
+
`;var p=PO.call(t,"variable")&&t.variable;if(p){if(Eut.test(p))throw new Error("Invalid `variable` option passed into `_.template`")}else f=`with (obj) {
|
|
32
|
+
`+f+`
|
|
33
|
+
}
|
|
34
|
+
`;f=(i?f.replace(Sut,""):f).replace($ut,"$1").replace(Cut,"$1;"),f="function("+(p||"obj")+`) {
|
|
35
|
+
`+(p?"":`obj || (obj = {});
|
|
36
|
+
`)+"var __t, __p = ''"+(o?", __e = _.escape":"")+(i?`, __j = Array.prototype.join;
|
|
37
|
+
function print() { __p += __j.call(arguments, '') }
|
|
38
|
+
`:`;
|
|
39
|
+
`)+f+`return __p
|
|
40
|
+
}`;var v=PD(function(){return Function(s,h+"return "+f).apply(void 0,c)});if(v.source=f,j2(v))throw v;return v}var Put="Expected a function";function yz(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(Put);return Ar(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),wp(e,t,{leading:r,maxWait:t,trailing:o})}function Rh(e,t){return t(e)}var Tut=9007199254740991,iy=4294967295,Rut=Math.min;function bz(e,t){if((e=sn(e))<1||e>Tut)return[];var n=iy,r=Rut(e,iy);t=vs(t),e-=iy;for(var o=g2(r,t);++n<e;)t(n);return o}function Iut(){return this}function wz(e,t){var n=e;return n instanceof Cn&&(n=n.value()),C2(t,function(r,o){return o.func.apply(o.thisArg,tu([r],o.args))},n)}function ay(){return wz(this.__wrapped__,this.__actions__)}function Nut(e){return Un(e).toLowerCase()}function Dut(e){return tn(e)?$r(e,ps):bi(e)?[e]:ni(OD(Un(e)))}var Lut=9007199254740991;function zut(e){return e?fl(sn(e),-9007199254740991,Lut):e===0?e:0}function But(e){return Un(e).toUpperCase()}function Fut(e,t,n){var r=tn(e),o=r||Bc(e)||Yf(e);if(t=Qe(t),n==null){var i=e&&e.constructor;n=o?r?new i:[]:Ar(e)&&Gs(i)?Kf(T0(e)):{}}return(o?Oi:ts)(e,function(a,s,c){return t(n,a,s,c)}),n}function xz(e,t){for(var n=e.length;n--&&Jf(t,e[n],0)>-1;);return n}function kz(e,t){for(var n=-1,r=e.length;++n<r&&Jf(t,e[n],0)>-1;);return n}function qut(e,t,n){if((e=Un(e))&&(n||t===void 0))return fD(e);if(!e||!(t=wi(t)))return e;var r=Ea(e),o=Ea(t);return eu(r,kz(r,o),xz(r,o)+1).join("")}function Hut(e,t,n){if((e=Un(e))&&(n||t===void 0))return e.slice(0,lD(e)+1);if(!e||!(t=wi(t)))return e;var r=Ea(e);return eu(r,0,xz(r,Ea(t))+1).join("")}var Vut=/^\s+/;function Wut(e,t,n){if((e=Un(e))&&(n||t===void 0))return e.replace(Vut,"");if(!e||!(t=wi(t)))return e;var r=Ea(e);return eu(r,kz(r,Ea(t))).join("")}var Uut=/\w*$/;function Kut(e,t){var n=30,r="...";if(Ar(t)){var o="separator"in t?t.separator:o;n="length"in t?sn(t.length):n,r="omission"in t?wi(t.omission):r}var i=(e=Un(e)).length;if(Xf(e)){var a=Ea(e);i=a.length}if(n>=i)return e;var s=n-ed(r);if(s<1)return r;var c=a?eu(a,0,s).join(""):e.slice(0,s);if(o===void 0)return c+r;if(a&&(s+=c.length-s),J2(o)){if(e.slice(s).search(o)){var u,l=c;for(o.global||(o=RegExp(o.source,Un(Uut.exec(o))+"g")),o.lastIndex=0;u=o.exec(l);)var f=u.index;c=c.slice(0,f===void 0?s:f)}}else if(e.indexOf(wi(o),s)!=s){var d=c.lastIndexOf(o);d>-1&&(c=c.slice(0,d))}return c+r}function Jut(e){return kD(e,1)}var Gut=E2({"&":"&","<":"<",">":">",""":'"',"'":"'"}),jz=/&(?:amp|lt|gt|quot|#39);/g,Qut=RegExp(jz.source);function Yut(e){return(e=Un(e))&&Qut.test(e)?e.replace(jz,Gut):e}var Xut=Xl&&1/R0(new Xl([,-0]))[1]==1/0?function(e){return new Xl(e)}:Qn,Zut=Xut,tlt=200;function Fc(e,t,n){var r=-1,o=A0,i=e.length,a=!0,s=[],c=s;if(n)a=!1,o=q2;else if(i>=tlt){var u=t?null:Zut(e);if(u)return R0(u);a=!1,o=Ph,c=new Lu}else c=t?[]:s;t:for(;++r<i;){var l=e[r],f=t?t(l):l;if(l=n||l!==0?l:0,a&&f==f){for(var d=c.length;d--;)if(c[d]===f)continue t;t&&c.push(f),s.push(l)}else o(c,f,n)||(c!==s&&c.push(f),s.push(l))}return s}var elt=vn(function(e){return Fc(Co(e,1,Ur,!0))}),nlt=vn(function(e){var t=Re(e);return Ur(t)&&(t=void 0),Fc(Co(e,1,Ur,!0),Qe(t))}),rlt=nlt,olt=vn(function(e){var t=Re(e);return t=typeof t=="function"?t:void 0,Fc(Co(e,1,Ur,!0),void 0,t)});function ilt(e){return e&&e.length?Fc(e):[]}function alt(e,t){return e&&e.length?Fc(e,Qe(t)):[]}function slt(e,t){return t=typeof t=="function"?t:void 0,e&&e.length?Fc(e,void 0,t):[]}var clt=0;function Zu(e){var t=++clt;return Un(e)+t}function ult(e,t){return e==null||Y2(e,t)}var llt=Math.max;function oj(e){if(!e||!e.length)return[];var t=0;return e=nu(e,function(n){if(Ur(n))return t=llt(n.length,t),!0}),g2(t,function(n){return $r(e,L2(n))})}function _z(e,t){if(!e||!e.length)return[];var n=oj(e);return t==null?n:$r(n,function(r){return xi(t,void 0,r)})}function Sz(e,t,n,r){return Sp(e,t,n(ll(e,t)),r)}function flt(e,t,n){return e==null?e:Sz(e,t,vs(n))}function dlt(e,t,n,r){return r=typeof r=="function"?r:void 0,e==null?e:Sz(e,t,vs(n),r)}var hlt=Zf(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),plt=hlt;function vlt(e){return e==null?[]:W2(e,ii(e))}var mlt=vn(function(e,t){return Ur(e)?xp(e,t):[]}),glt=mlt;function ylt(e,t){return az(vs(t),e)}var blt=Zs(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(i){return k2(i,e)};return!(t>1||this.__actions__.length)&&r instanceof Cn&&Qs(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:Rh,args:[o],thisArg:void 0}),new qi(r,this.__chain__).thru(function(i){return t&&!i.length&&i.push(void 0),i})):this.thru(o)}),wlt=blt;function xlt(){return ZD(this)}function klt(){var e=this.__wrapped__;if(e instanceof Cn){var t=e;return this.__actions__.length&&(t=new Cn(this)),(t=t.reverse()).__actions__.push({func:Rh,args:[kw],thisArg:void 0}),new qi(t,this.__chain__)}return this.thru(kw)}function ij(e,t,n){var r=e.length;if(r<2)return r?Fc(e[0]):[];for(var o=-1,i=Array(r);++o<r;)for(var a=e[o],s=-1;++s<r;)s!=o&&(i[o]=xp(i[o]||a,e[s],t,n));return Fc(Co(i,1),t,n)}var jlt=vn(function(e){return ij(nu(e,Ur))}),_lt=vn(function(e){var t=Re(e);return Ur(t)&&(t=void 0),ij(nu(e,Ur),Qe(t))}),Slt=_lt,$lt=vn(function(e){var t=Re(e);return t=typeof t=="function"?t:void 0,ij(nu(e,Ur),void 0,t)}),Clt=vn(oj);function $z(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 Elt(e,t){return $z(e||[],t||[],vp)}function Olt(e,t){return $z(e||[],t||[],Sp)}var Mlt=vn(function(e){var t=e.length,n=t>1?e[t-1]:void 0;return n=typeof n=="function"?(e.pop(),n):void 0,_z(e,n)}),Alt=Mlt,be={chunk:lrt,compact:Xrt,concat:Zrt,difference:Jot,differenceBy:Qot,differenceWith:Xot,drop:tit,dropRight:eit,dropRightWhile:nit,dropWhile:rit,fill:hit,findIndex:DL,findLastIndex:zL,first:ka,flatten:MD,flattenDeep:Sit,flattenDepth:$it,fromPairs:Iit,head:ka,indexOf:Xit,initial:on,intersection:tat,intersectionBy:nat,intersectionWith:rat,join:zat,last:Re,lastIndexOf:Uat,nth:yst,pull:ect,pullAll:cz,pullAllBy:nct,pullAllWith:rct,pullAt:act,remove:kct,reverse:kw,slice:Bct,sortedIndex:Qct,sortedIndexBy:Yct,sortedIndexOf:Xct,sortedLastIndex:Zct,sortedLastIndexBy:tut,sortedLastIndexOf:eut,sortedUniq:nut,sortedUniqBy:rut,tail:mut,take:gut,takeRight:yut,takeRightWhile:but,takeWhile:wut,union:elt,unionBy:rlt,unionWith:olt,uniq:ilt,uniqBy:alt,uniqWith:slt,unzip:oj,unzipWith:_z,without:glt,xor:jlt,xorBy:Slt,xorWith:$lt,zip:Clt,zipObject:Elt,zipObjectDeep:Olt,zipWith:Alt},er={countBy:Aot,each:xO,eachRight:yw,every:fit,filter:pit,find:mit,findLast:wit,flatMap:kit,flatMapDeep:jit,flatMapDepth:_it,forEach:xO,forEachRight:yw,groupBy:jp,includes:Qit,invokeMap:hat,keyBy:Hat,map:kp,orderBy:Sst,partition:sz,reduce:yct,reduceRight:wct,reject:xct,sample:Mct,sampleSize:Tct,shuffle:Lct,size:zct,some:Vct,sortBy:pz},Plt={now:gm},Br={after:net,ary:kD,before:TD,bind:RD,bindKey:znt,curry:B2,curryRight:F2,debounce:wp,defer:Hot,delay:Wot,flip:Cit,memoize:gp,negate:Th,once:_st,overArgs:Mst,partial:az,partialRight:Jst,rearg:gct,rest:Sct,spread:aut,throttle:yz,unary:Jut,wrap:ylt},ze={castArray:ort,clone:Urt,cloneDeep:Krt,cloneDeepWith:dL,cloneWith:Qrt,conformsTo:$ot,eq:Ma,gt:Bit,gte:Fit,isArguments:Xu,isArray:tn,isArrayBuffer:pat,isArrayLike:si,isArrayLikeObject:Ur,isBoolean:vat,isBuffer:Bc,isDate:mat,isElement:gat,isEmpty:cn,isEqual:an,isEqualWith:xat,isError:j2,isFinite:jat,isFunction:Gs,isInteger:WL,isLength:P0,isMap:sL,isMatch:_at,isMatchWith:Sat,isNaN:Cat,isNative:Oat,isNil:Mat,isNull:Aat,isNumber:UL,isObject:Ar,isObjectLike:Hr,isPlainObject:yp,isRegExp:J2,isSafeInteger:Tat,isSet:cL,isString:B0,isSymbol:bi,isTypedArray:Yf,isUndefined:Rat,isWeakMap:Iat,isWeakSet:Nat,lt:Qat,lte:Yat,toArray:QL,toFinite:Ns,toInteger:sn,toLength:RL,toNumber:Fi,toPlainObject:jL,toSafeInteger:zut,toString:Un},zo={add:Jtt,ceil:srt,divide:Zot,floor:Eit,max:est,maxBy:nst,mean:ost,meanBy:ist,min:dst,minBy:Dd,multiply:hst,round:Ect,subtract:hut,sum:put,sumBy:vut},Tlt=frt,Rlt=Kit,Ilt=dct,Je={assign:unt,assignIn:KE,assignInWith:fg,assignWith:vnt,at:Cnt,create:Pot,defaults:zot,defaultsDeep:Fot,entries:kO,entriesIn:jO,extend:KE,extendWith:fg,findKey:git,findLastKey:xit,forIn:Ait,forInRight:Pit,forOwn:Tit,forOwnRight:Rit,functions:Nit,functionsIn:Dit,get:x2,has:Vit,hasIn:D2,invert:aat,invertBy:lat,invoke:fat,keys:oo,keysIn:ii,mapKeys:Xat,mapValues:KL,merge:sst,mergeWith:SL,omit:kst,omitBy:jst,pick:Yst,pickBy:ZL,result:$ct,set:Rct,setWith:Ict,toPairs:kO,toPairsIn:jO,transform:Fut,unset:ult,update:flt,updateWith:dlt,values:td,valuesIn:vlt},Ia={at:wlt,chain:ZD,commit:Yrt,lodash:Z,next:gst,plant:Xst,reverse:klt,tap:xut,thru:Rh,toIterator:Iut,toJSON:ay,value:ay,valueOf:ay,wrapperChain:xlt},Ln={camelCase:rrt,capitalize:BD,deburr:FD,endsWith:iit,escape:AL,escapeRegExp:uit,kebabCase:Fat,lowerCase:Jat,lowerFirst:Gat,pad:qst,padEnd:Hst,padStart:Vst,parseInt:Kst,repeat:jct,replace:_ct,snakeCase:qct,split:out,startCase:cut,startsWith:uut,template:Aut,templateSettings:jw,toLower:Nut,toUpper:But,trim:qut,trimEnd:Hut,trimStart:Wut,truncate:Kut,unescape:Yut,upperCase:plt,upperFirst:$2,words:XD},Hn={attempt:PD,bindAll:Lnt,cond:_ot,conforms:Sot,constant:v2,defaultTo:Not,flow:Oit,flowRight:Mit,identity:Uo,iteratee:Dat,matches:Zat,matchesProperty:tst,method:ust,methodOf:fst,mixin:GL,noop:Qn,nthArg:bst,over:$st,overEvery:Ast,overSome:Pst,property:yL,propertyOf:Zst,range:fz,rangeRight:vct,stubArray:M2,stubFalse:y2,stubObject:lut,stubString:fut,stubTrue:dut,times:bz,toPath:Dut,uniqueId:Zu},Nlt=Math.max,Dlt=Math.min,Llt=Math.min;/**
|
|
41
|
+
* @license
|
|
42
|
+
* Lodash (Custom Build) <https://lodash.com/>
|
|
43
|
+
* Build: `lodash modularize exports="es" -o ./`
|
|
44
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
45
|
+
* Released under MIT license <https://lodash.com/license>
|
|
46
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
47
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
48
|
+
*/var sy,TO=4294967295,zlt=Array.prototype,RO=Object.prototype.hasOwnProperty,IO=No?No.iterator:void 0,Blt=Math.max,NO=Math.min,cy=function(e){return function(t,n,r){if(r==null){var o=Ar(n),i=o&&oo(n),a=i&&i.length&&L0(n,i);(a?a.length:o)||(r=n,n=t,t=this)}return e(t,n,r)}}(GL);Z.after=Br.after,Z.ary=Br.ary,Z.assign=Je.assign,Z.assignIn=Je.assignIn,Z.assignInWith=Je.assignInWith,Z.assignWith=Je.assignWith,Z.at=Je.at,Z.before=Br.before,Z.bind=Br.bind,Z.bindAll=Hn.bindAll,Z.bindKey=Br.bindKey,Z.castArray=ze.castArray,Z.chain=Ia.chain,Z.chunk=be.chunk,Z.compact=be.compact,Z.concat=be.concat,Z.cond=Hn.cond,Z.conforms=Hn.conforms,Z.constant=Hn.constant,Z.countBy=er.countBy,Z.create=Je.create,Z.curry=Br.curry,Z.curryRight=Br.curryRight,Z.debounce=Br.debounce,Z.defaults=Je.defaults,Z.defaultsDeep=Je.defaultsDeep,Z.defer=Br.defer,Z.delay=Br.delay,Z.difference=be.difference,Z.differenceBy=be.differenceBy,Z.differenceWith=be.differenceWith,Z.drop=be.drop,Z.dropRight=be.dropRight,Z.dropRightWhile=be.dropRightWhile,Z.dropWhile=be.dropWhile,Z.fill=be.fill,Z.filter=er.filter,Z.flatMap=er.flatMap,Z.flatMapDeep=er.flatMapDeep,Z.flatMapDepth=er.flatMapDepth,Z.flatten=be.flatten,Z.flattenDeep=be.flattenDeep,Z.flattenDepth=be.flattenDepth,Z.flip=Br.flip,Z.flow=Hn.flow,Z.flowRight=Hn.flowRight,Z.fromPairs=be.fromPairs,Z.functions=Je.functions,Z.functionsIn=Je.functionsIn,Z.groupBy=er.groupBy,Z.initial=be.initial,Z.intersection=be.intersection,Z.intersectionBy=be.intersectionBy,Z.intersectionWith=be.intersectionWith,Z.invert=Je.invert,Z.invertBy=Je.invertBy,Z.invokeMap=er.invokeMap,Z.iteratee=Hn.iteratee,Z.keyBy=er.keyBy,Z.keys=oo,Z.keysIn=Je.keysIn,Z.map=er.map,Z.mapKeys=Je.mapKeys,Z.mapValues=Je.mapValues,Z.matches=Hn.matches,Z.matchesProperty=Hn.matchesProperty,Z.memoize=Br.memoize,Z.merge=Je.merge,Z.mergeWith=Je.mergeWith,Z.method=Hn.method,Z.methodOf=Hn.methodOf,Z.mixin=cy,Z.negate=Th,Z.nthArg=Hn.nthArg,Z.omit=Je.omit,Z.omitBy=Je.omitBy,Z.once=Br.once,Z.orderBy=er.orderBy,Z.over=Hn.over,Z.overArgs=Br.overArgs,Z.overEvery=Hn.overEvery,Z.overSome=Hn.overSome,Z.partial=Br.partial,Z.partialRight=Br.partialRight,Z.partition=er.partition,Z.pick=Je.pick,Z.pickBy=Je.pickBy,Z.property=Hn.property,Z.propertyOf=Hn.propertyOf,Z.pull=be.pull,Z.pullAll=be.pullAll,Z.pullAllBy=be.pullAllBy,Z.pullAllWith=be.pullAllWith,Z.pullAt=be.pullAt,Z.range=Hn.range,Z.rangeRight=Hn.rangeRight,Z.rearg=Br.rearg,Z.reject=er.reject,Z.remove=be.remove,Z.rest=Br.rest,Z.reverse=be.reverse,Z.sampleSize=er.sampleSize,Z.set=Je.set,Z.setWith=Je.setWith,Z.shuffle=er.shuffle,Z.slice=be.slice,Z.sortBy=er.sortBy,Z.sortedUniq=be.sortedUniq,Z.sortedUniqBy=be.sortedUniqBy,Z.split=Ln.split,Z.spread=Br.spread,Z.tail=be.tail,Z.take=be.take,Z.takeRight=be.takeRight,Z.takeRightWhile=be.takeRightWhile,Z.takeWhile=be.takeWhile,Z.tap=Ia.tap,Z.throttle=Br.throttle,Z.thru=Rh,Z.toArray=ze.toArray,Z.toPairs=Je.toPairs,Z.toPairsIn=Je.toPairsIn,Z.toPath=Hn.toPath,Z.toPlainObject=ze.toPlainObject,Z.transform=Je.transform,Z.unary=Br.unary,Z.union=be.union,Z.unionBy=be.unionBy,Z.unionWith=be.unionWith,Z.uniq=be.uniq,Z.uniqBy=be.uniqBy,Z.uniqWith=be.uniqWith,Z.unset=Je.unset,Z.unzip=be.unzip,Z.unzipWith=be.unzipWith,Z.update=Je.update,Z.updateWith=Je.updateWith,Z.values=Je.values,Z.valuesIn=Je.valuesIn,Z.without=be.without,Z.words=Ln.words,Z.wrap=Br.wrap,Z.xor=be.xor,Z.xorBy=be.xorBy,Z.xorWith=be.xorWith,Z.zip=be.zip,Z.zipObject=be.zipObject,Z.zipObjectDeep=be.zipObjectDeep,Z.zipWith=be.zipWith,Z.entries=Je.toPairs,Z.entriesIn=Je.toPairsIn,Z.extend=Je.assignIn,Z.extendWith=Je.assignInWith,cy(Z,Z),Z.add=zo.add,Z.attempt=Hn.attempt,Z.camelCase=Ln.camelCase,Z.capitalize=Ln.capitalize,Z.ceil=zo.ceil,Z.clamp=Tlt,Z.clone=ze.clone,Z.cloneDeep=ze.cloneDeep,Z.cloneDeepWith=ze.cloneDeepWith,Z.cloneWith=ze.cloneWith,Z.conformsTo=ze.conformsTo,Z.deburr=Ln.deburr,Z.defaultTo=Hn.defaultTo,Z.divide=zo.divide,Z.endsWith=Ln.endsWith,Z.eq=ze.eq,Z.escape=Ln.escape,Z.escapeRegExp=Ln.escapeRegExp,Z.every=er.every,Z.find=er.find,Z.findIndex=be.findIndex,Z.findKey=Je.findKey,Z.findLast=er.findLast,Z.findLastIndex=be.findLastIndex,Z.findLastKey=Je.findLastKey,Z.floor=zo.floor,Z.forEach=er.forEach,Z.forEachRight=er.forEachRight,Z.forIn=Je.forIn,Z.forInRight=Je.forInRight,Z.forOwn=Je.forOwn,Z.forOwnRight=Je.forOwnRight,Z.get=Je.get,Z.gt=ze.gt,Z.gte=ze.gte,Z.has=Je.has,Z.hasIn=Je.hasIn,Z.head=be.head,Z.identity=Uo,Z.includes=er.includes,Z.indexOf=be.indexOf,Z.inRange=Rlt,Z.invoke=Je.invoke,Z.isArguments=ze.isArguments,Z.isArray=tn,Z.isArrayBuffer=ze.isArrayBuffer,Z.isArrayLike=ze.isArrayLike,Z.isArrayLikeObject=ze.isArrayLikeObject,Z.isBoolean=ze.isBoolean,Z.isBuffer=ze.isBuffer,Z.isDate=ze.isDate,Z.isElement=ze.isElement,Z.isEmpty=ze.isEmpty,Z.isEqual=ze.isEqual,Z.isEqualWith=ze.isEqualWith,Z.isError=ze.isError,Z.isFinite=ze.isFinite,Z.isFunction=ze.isFunction,Z.isInteger=ze.isInteger,Z.isLength=ze.isLength,Z.isMap=ze.isMap,Z.isMatch=ze.isMatch,Z.isMatchWith=ze.isMatchWith,Z.isNaN=ze.isNaN,Z.isNative=ze.isNative,Z.isNil=ze.isNil,Z.isNull=ze.isNull,Z.isNumber=ze.isNumber,Z.isObject=Ar,Z.isObjectLike=ze.isObjectLike,Z.isPlainObject=ze.isPlainObject,Z.isRegExp=ze.isRegExp,Z.isSafeInteger=ze.isSafeInteger,Z.isSet=ze.isSet,Z.isString=ze.isString,Z.isSymbol=ze.isSymbol,Z.isTypedArray=ze.isTypedArray,Z.isUndefined=ze.isUndefined,Z.isWeakMap=ze.isWeakMap,Z.isWeakSet=ze.isWeakSet,Z.join=be.join,Z.kebabCase=Ln.kebabCase,Z.last=Re,Z.lastIndexOf=be.lastIndexOf,Z.lowerCase=Ln.lowerCase,Z.lowerFirst=Ln.lowerFirst,Z.lt=ze.lt,Z.lte=ze.lte,Z.max=zo.max,Z.maxBy=zo.maxBy,Z.mean=zo.mean,Z.meanBy=zo.meanBy,Z.min=zo.min,Z.minBy=zo.minBy,Z.stubArray=Hn.stubArray,Z.stubFalse=Hn.stubFalse,Z.stubObject=Hn.stubObject,Z.stubString=Hn.stubString,Z.stubTrue=Hn.stubTrue,Z.multiply=zo.multiply,Z.nth=be.nth,Z.noop=Hn.noop,Z.now=Plt.now,Z.pad=Ln.pad,Z.padEnd=Ln.padEnd,Z.padStart=Ln.padStart,Z.parseInt=Ln.parseInt,Z.random=Ilt,Z.reduce=er.reduce,Z.reduceRight=er.reduceRight,Z.repeat=Ln.repeat,Z.replace=Ln.replace,Z.result=Je.result,Z.round=zo.round,Z.sample=er.sample,Z.size=er.size,Z.snakeCase=Ln.snakeCase,Z.some=er.some,Z.sortedIndex=be.sortedIndex,Z.sortedIndexBy=be.sortedIndexBy,Z.sortedIndexOf=be.sortedIndexOf,Z.sortedLastIndex=be.sortedLastIndex,Z.sortedLastIndexBy=be.sortedLastIndexBy,Z.sortedLastIndexOf=be.sortedLastIndexOf,Z.startCase=Ln.startCase,Z.startsWith=Ln.startsWith,Z.subtract=zo.subtract,Z.sum=zo.sum,Z.sumBy=zo.sumBy,Z.template=Ln.template,Z.times=Hn.times,Z.toFinite=ze.toFinite,Z.toInteger=sn,Z.toLength=ze.toLength,Z.toLower=Ln.toLower,Z.toNumber=ze.toNumber,Z.toSafeInteger=ze.toSafeInteger,Z.toString=ze.toString,Z.toUpper=Ln.toUpper,Z.trim=Ln.trim,Z.trimEnd=Ln.trimEnd,Z.trimStart=Ln.trimStart,Z.truncate=Ln.truncate,Z.unescape=Ln.unescape,Z.uniqueId=Hn.uniqueId,Z.upperCase=Ln.upperCase,Z.upperFirst=Ln.upperFirst,Z.each=er.forEach,Z.eachRight=er.forEachRight,Z.first=be.head,cy(Z,(sy={},ts(Z,function(e,t){RO.call(Z.prototype,t)||(sy[t]=e)}),sy),{chain:!1}),Z.VERSION="4.17.21",(Z.templateSettings=Ln.templateSettings).imports._=Z,Oi(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){Z[e].placeholder=Z}),Oi(["drop","take"],function(e,t){Cn.prototype[e]=function(n){n=n===void 0?1:Blt(sn(n),0);var r=this.__filtered__&&!t?new Cn(this):this.clone();return r.__filtered__?r.__takeCount__=NO(n,r.__takeCount__):r.__views__.push({size:NO(n,TO),type:e+(r.__dir__<0?"Right":"")}),r},Cn.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),Oi(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n==1||n==3;Cn.prototype[e]=function(o){var i=this.clone();return i.__iteratees__.push({iteratee:Qe(o),type:n}),i.__filtered__=i.__filtered__||r,i}}),Oi(["head","last"],function(e,t){var n="take"+(t?"Right":"");Cn.prototype[e]=function(){return this[n](1).value()[0]}}),Oi(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");Cn.prototype[e]=function(){return this.__filtered__?new Cn(this):this[n](1)}}),Cn.prototype.compact=function(){return this.filter(Uo)},Cn.prototype.find=function(e){return this.filter(e).head()},Cn.prototype.findLast=function(e){return this.reverse().find(e)},Cn.prototype.invokeMap=vn(function(e,t){return typeof e=="function"?new Cn(this):this.map(function(n){return _p(n,e,t)})}),Cn.prototype.reject=function(e){return this.filter(Th(Qe(e)))},Cn.prototype.slice=function(e,t){e=sn(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Cn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==void 0&&(n=(t=sn(t))<0?n.dropRight(-t):n.take(t-e)),n)},Cn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Cn.prototype.toArray=function(){return this.take(TO)},ts(Cn.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=Z[r?"take"+(t=="last"?"Right":""):t],i=r||/^find/.test(t);o&&(Z.prototype[t]=function(){var a=this.__wrapped__,s=r?[1]:arguments,c=a instanceof Cn,u=s[0],l=c||tn(a),f=function(g){var y=o.apply(Z,tu([g],s));return r&&d?y[0]:y};l&&n&&typeof u=="function"&&u.length!=1&&(c=l=!1);var d=this.__chain__,h=!!this.__actions__.length,p=i&&!d,v=c&&!h;if(!i&&l){a=v?a:new Cn(this);var m=e.apply(a,s);return m.__actions__.push({func:Rh,args:[f],thisArg:void 0}),new qi(m,d)}return p&&v?e.apply(this,s):(m=this.thru(f),p?r?m.value()[0]:m.value():m)})}),Oi(["pop","push","shift","sort","splice","unshift"],function(e){var t=zlt[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Z.prototype[e]=function(){var o=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(tn(i)?i:[],o)}return this[n](function(a){return t.apply(tn(a)?a:[],o)})}}),ts(Cn.prototype,function(e,t){var n=Z[t];if(n){var r=n.name+"";RO.call(Nl,r)||(Nl[r]=[]),Nl[r].push({name:t,func:n})}}),Nl[lg(void 0,2).name]=[{name:"wrapper",func:void 0}],Cn.prototype.clone=function(){var e=new Cn(this.__wrapped__);return e.__actions__=ni(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ni(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ni(this.__views__),e},Cn.prototype.reverse=function(){if(this.__filtered__){var e=new Cn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Cn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=tn(e),r=t<0,o=n?e.length:0,i=function(x,k,E){for(var _=-1,T=E.length;++_<T;){var $=E[_],j=$.size;switch($.type){case"drop":x+=j;break;case"dropRight":k-=j;break;case"take":k=Dlt(k,x+j);break;case"takeRight":x=Nlt(x,k-j)}}return{start:x,end:k}}(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=Llt(c,this.__takeCount__);if(!n||!r&&o==c&&h==c)return wz(e,this.__actions__);var p=[];t:for(;c--&&d<h;){for(var v=-1,m=e[u+=t];++v<f;){var g=l[v],y=g.iteratee,b=g.type,w=y(m);if(b==2)m=w;else if(!w){if(b==1)continue t;break t}}p[d++]=m}return p},Z.prototype.at=Ia.at,Z.prototype.chain=Ia.wrapperChain,Z.prototype.commit=Ia.commit,Z.prototype.next=Ia.next,Z.prototype.plant=Ia.plant,Z.prototype.reverse=Ia.reverse,Z.prototype.toJSON=Z.prototype.valueOf=Z.prototype.value=Ia.value,Z.prototype.first=Z.prototype.head,IO&&(Z.prototype[IO]=Ia.toIterator);var Flt=1e4,qlt=[];function _w(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n={};if(!Array.isArray(e))throw new TypeError("Array expected");function r(a,s){(!Array.isArray(a)&&!pr(a)||t&&s.length>0)&&(n[oe(s)]=!0),pr(a)&&Object.keys(a).forEach(function(c){r(a[c],s.concat(c))})}for(var o=Math.min(e.length,Flt),i=0;i<o;i++)r(e[i],qlt);return Object.keys(n).sort().map(Ca)}function Cz(e,t,n){if(!(t<=e))for(var r=e;r<t;r++)n(r)}function pg(e,t){return e.length>t?e.slice(0,t):e}function DO(e){return xt({},e)}function LO(e){return Object.values(e)}function zO(e,t,n,r){var o=e.slice(0),i=o.splice(t,n);return o.splice.apply(o,[t+r,0].concat($e(i))),o}function aj(e,t){try{return t.parse(e)}catch{return t.parse(Xa(e))}}function Ez(e,t){try{return aj(e,t)}catch{return}}function V0(e,t){e=e.replace(Mz,"");try{return t(e)}catch{}try{return t("["+e+"]")}catch{}try{return t("{"+e+"}")}catch{}throw new Error("Failed to parse partial JSON")}function Oz(e){e=e.replace(Mz,"");try{return Xa(e)}catch{}try{var t=Xa("["+e+"]");return t.substring(1,t.length-1)}catch{}try{var n=Xa("{"+e+"}");return n.substring(1,n.length-1)}catch{}throw new Error("Failed to repair partial JSON")}var Mz=/,\s*$/;function _f(e,t){var n=FO.exec(t);if(n){var r=So(n[2]),o=function(h,p){for(var v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:h.length,g=0,y=v;y<m;y++)h.charAt(y)===p&&g++;return g}(e,`
|
|
49
|
+
`,0,r),i=r-e.lastIndexOf(`
|
|
50
|
+
`,r)-1;return{position:r,line:o,column:i,message:t.replace(FO,function(){return"line ".concat(o+1," column ").concat(i+1)})}}var a=Wlt.exec(t),s=a?So(a[1]):null,c=s!==null?s-1:null,u=Ult.exec(t),l=u?So(u[1]):null,f=l!==null?l-1:null,d=c!==null&&f!==null?function(h,p,v){for(var m=h.indexOf(`
|
|
51
|
+
`),g=1;g<p&&m!==-1;)m=h.indexOf(`
|
|
52
|
+
`,m+1),g++;return m!==-1?m+v+1:null}(e,c,f):null;return{position:d,line:c,column:f,message:t.replace(/^JSON.parse: /,"").replace(/ of the JSON data$/,"")}}function uy(e){return pr(e)?e.json!==void 0?e.text!==void 0?'Content must contain either a property "json" or a property "text" but not both':null:e.text===void 0?'Content must contain either a property "json" or a property "text"':typeof e.text!="string"?'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 Sf(e){return pr(e)&&typeof e.text=="string"}function sj(e){return pr(e)&&e.json!==void 0&&!Sf(e)}function Hlt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:JSON;return Sf(e)?e:{text:n.stringify(e.json,null,t)}}function BO(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:JSON;return sj(e)?e:{json:t.parse(e.text)}}function Sw(e,t,n){return Hlt(e,t,n).text}function Az(e,t){return Vlt(e,t)>t}function Vlt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1/0;if(Sf(e))return e.text.length;var n=e.json,r=0;return function o(i){if(Array.isArray(i)){if((r+=i.length-1+2)>t)return r;for(var a=0;a<i.length;a++)if(o(i[a]),r>t)return r}else if(pr(i)){var s=Object.keys(i);r+=2+s.length+(s.length-1);for(var c=0;c<s.length;c++){var u=s[c],l=i[u];r+=u.length+2,o(l)}}else r+=typeof i=="string"?i.length+2:String(i).length}(n),r}var FO=/(position|char) (\d+)/,Wlt=/line (\d+)/,Ult=/column (\d+)/;function Klt(e,t){return e.parse===t.parse&&e.stringify===t.stringify}function qO(e){return Jlt.test(e)&&e.length>2}var Jlt=/^[[{]\S/;function cj(e){var t=e.escapeControlCharacters,n=e.escapeUnicodeCharacters;return t?n?Glt:Qlt:n?Ylt:Xlt}var Glt={escapeValue:function(e){return Pz(Iz(String(e)))},unescapeValue:function(e){return Nz(Tz(e))}},Qlt={escapeValue:function(e){return Iz(String(e))},unescapeValue:function(e){return Nz(e)}},Ylt={escapeValue:function(e){return Pz(String(e))},unescapeValue:function(e){return Tz(e)}},Xlt={escapeValue:function(e){return String(e)},unescapeValue:function(e){return e}};function Pz(e){return e.replace(/[^\x20-\x7F]/g,function(t){var n;return t==="\b"||t==="\f"||t===`
|
|
53
|
+
`||t==="\r"||t===" "?t:"\\u"+("000"+((n=t.codePointAt(0))===null||n===void 0?void 0:n.toString(16))).slice(-4)})}function Tz(e){return e.replace(/\\u[a-fA-F0-9]{4}/g,function(t){try{var n=JSON.parse('"'+t+'"');return Rz[n]||n}catch{return t}})}var Rz={'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},Zlt={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":`
|
|
54
|
+
`,"\\r":"\r","\\t":" "};function Iz(e){return e.replace(/["\b\f\n\r\t\\]/g,function(t){return Rz[t]||t})}function Nz(e){return e.replace(/\\["bfnrt\\]/g,function(t){return Zlt[t]||t})}function tl(e){return typeof e!="string"?String(e):e.endsWith(`
|
|
55
|
+
`)?e+`
|
|
56
|
+
`:e}function uj(e,t){return $p(e,function(n){return n.nodeName.toUpperCase()===t.toUpperCase()})}function Mu(e,t,n){return $p(e,function(r){return function(o,i,a){return typeof o.getAttribute=="function"&&o.getAttribute(i)===a}(r,t,n)})}function $p(e,t){return!!lj(e,t)}function lj(e,t){for(var n=e;n&&!t(n);)n=n.parentNode;return n||void 0}function Dz(e){if(e.firstChild!=null){var t=document.createRange(),n=window.getSelection();t.setStart(e,1),t.collapse(!0),n==null||n.removeAllRanges(),n==null||n.addRange(t)}else e.focus()}function vg(e,t,n,r){var o=nd(e);if(o){var i=o.document.activeElement?o.document.activeElement:null;i&&i.isContentEditable&&(i.textContent=n?t:i.textContent+t,console.log("UPDATED TEXT",n?t:i.textContent+t),Dz(i),r&&r(i))}}function nd(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:null}function mg(e){var t=nd(e),n=t==null?void 0:t.document.activeElement;return!!n&&$p(n,function(r){return r===e})}function Lz(e,t){return lj(e,function(n){return n.nodeName===t})}function ly(e){return Mu(e,"data-type","selectable-key")?Bn.key:Mu(e,"data-type","selectable-value")?Bn.value:Mu(e,"data-type","insert-selection-area-inside")?Bn.inside:Mu(e,"data-type","insert-selection-area-after")?Bn.after:Bn.multi}function $f(e){return encodeURIComponent(oe(e))}function zz(e){var t=lj(e,function(r){return!(r==null||!r.hasAttribute)&&r.hasAttribute("data-path")}),n=t==null?void 0:t.getAttribute("data-path");return n?Ca(decodeURIComponent(n)):null}function tft(e){var t=e.allElements,n=e.currentElement,r=e.direction,o=e.hasPrio,i=o===void 0?function(){return!0}:o,a=e.margin,s=a===void 0?10:a,c=kp(t.filter(function(y){var b=y.getBoundingClientRect();return b.width>0&&b.height>0}),l),u=l(n);function l(y){var b=y.getBoundingClientRect();return{x:b.left+b.width/2,y:b.top+b.height/2,rect:b,element:y}}function f(y,b){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,x=y.x-b.x,k=(y.y-b.y)*w;return Math.sqrt(x*x+k*k)}var d=function(y){return f(y,u)};if(r==="Left"||r==="Right"){var h=r==="Left"?c.filter(function(y){return function(b,w){return b.rect.left+s<w.rect.left}(y,u)}):c.filter(function(y){return function(b,w){return b.rect.right>w.rect.right+s}(y,u)}),p=h.filter(function(y){return function(b,w){return Math.abs(b.y-w.y)<s}(y,u)}),v=Dd(p,d)||Dd(h,function(y){return f(y,u,10)});return v==null?void 0:v.element}if(r==="Up"||r==="Down"){var m=r==="Up"?c.filter(function(y){return function(b,w){return b.y+s<w.y}(y,u)}):c.filter(function(y){return function(b,w){return b.y>w.y+s}(y,u)}),g=Dd(m.filter(function(y){return i(y.element)}),d)||Dd(m,d);return g==null?void 0:g.element}}function ou(e){var t=arguments.length>1&&arguments[1]!==void 0?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=e.key.length===1?e.key.toUpperCase():e.key;return r in eft||n.push(r),n.join(t)}var eft={Ctrl:!0,Command:!0,Control:!0,Alt:!0,Option:!0,Shift:!0},fy=Gk.window;function nft(e){Le(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 HO(e){var t,n,r,o,i,a,s=[e[0].props],c=e[0].component;function u(l,f){var d={};if(f!==void 0&&1&f)d=Ui(s,[Gu(l[0].props)]);else for(var h=0;h<s.length;h+=1)d=oi(d,s[h]);return{props:d}}return c&&(o=cs(c,u(e))),{c:function(){t=tt("div"),n=tt("input"),r=kt(),o&&Pt(o.$$.fragment),S(n,"type","text"),n.readOnly=!0,S(n,"tabindex","-1"),S(n,"class","jse-hidden-input svelte-1r8q3m8"),S(t,"class","jse-absolute-popup-content svelte-1r8q3m8"),S(t,"style",i=VO(e[1],e[0].options))},m:function(l,f){ft(l,t,f),H(t,n),e[7](n),H(t,r),o&&Mt(o,t,null),a=!0},p:function(l,f){if(1&f&&c!==(c=l[0].component)){if(o){Bt();var d=o;V(d.$$.fragment,1,0,function(){At(d,1)}),Ft()}c?(Pt((o=cs(c,u(l,f))).$$.fragment),z(o.$$.fragment,1),Mt(o,t,null)):o=null}else if(c){var h=1&f?Ui(s,[Gu(l[0].props)]):{};o.$set(h)}(!a||3&f&&i!==(i=VO(l[1],l[0].options)))&&S(t,"style",i)},i:function(l){a||(o&&z(o.$$.fragment,l),a=!0)},o:function(l){o&&V(o.$$.fragment,l),a=!1},d:function(l){l&<(t),e[7](null),o&&At(o)}}}function rft(e){var t,n,r,o,i=e[1]&&HO(e);return{c:function(){t=tt("div"),i&&i.c(),S(t,"role","none"),S(t,"class","jse-absolute-popup svelte-1r8q3m8")},m:function(a,s){ft(a,t,s),i&&i.m(t,null),e[8](t),n=!0,r||(o=[zt(fy,"mousedown",e[3],!0),zt(fy,"keydown",e[4],!0),zt(fy,"wheel",e[5],!0),zt(t,"mousedown",oft),zt(t,"keydown",e[4])],r=!0)},p:function(a,s){var c=Ce(s,1)[0];a[1]?i?(i.p(a,c),2&c&&z(i,1)):((i=HO(a)).c(),z(i,1),i.m(t,null)):i&&(Bt(),V(i,1,1,function(){i=null}),Ft())},i:function(a){n||(z(i),n=!0)},o:function(a){V(i),n=!1},d:function(a){a&<(t),i&&i.d(),e[8](null),r=!1,Fn(o)}}}function oft(e){e.stopPropagation()}function VO(e,t){var n=e.getBoundingClientRect(),r=function(){if(t.anchor){var c=t.anchor,u=t.width,l=u===void 0?0:u,f=t.height,d=f===void 0?0:f,h=t.offsetTop,p=h===void 0?0:h,v=t.offsetLeft,m=v===void 0?0:v,g=t.position,y=c.getBoundingClientRect(),b=y.left,w=y.top,x=y.bottom,k=y.right,E=g==="top"||w+d>window.innerHeight&&w>d,_=g==="left"||b+l>window.innerWidth&&b>l;return{left:_?k-m:b+m,top:E?w-p:x+p,positionAbove:E,positionLeft:_}}if(typeof t.left=="number"&&typeof t.top=="number"){var T=t.left,$=t.top,j=t.width,R=j===void 0?0:j,q=t.height,O=q===void 0?0:q;return{left:T,top:$,positionAbove:$+O>window.innerHeight&&$>O,positionLeft:T+R>window.innerWidth&&T>R}}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 ift(e,t,n){var r,o,i=t.popup,a=t.closeAbsolutePopup;function s(c){i.options&&i.options.closeOnOuterClick&&!$p(c.target,function(u){return u===r})&&a(i.id)}return Wi(function(){o&&o.focus()}),e.$$set=function(c){"popup"in c&&n(0,i=c.popup),"closeAbsolutePopup"in c&&n(6,a=c.closeAbsolutePopup)},[i,r,o,function(c){s(c)},function(c){ou(c)==="Escape"&&a(i.id)},function(c){s(c)},a,function(c){Ze[c?"unshift":"push"](function(){n(2,o=c)})},function(c){Ze[c?"unshift":"push"](function(){n(1,r=c)})}]}var aft=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,ift,rft,eo,{popup:0,closeAbsolutePopup:6},nft),o}return it(n)}();function WO(e,t,n){var r=e.slice();return r[6]=t[n],r}function UO(e){var t,n;return t=new aft({props:{popup:e[6],closeAbsolutePopup:e[1]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};1&o&&(i.popup=r[6]),t.$set(i)},i:function(r){n||(z(t.$$.fragment,r),n=!0)},o:function(r){V(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function sft(e){for(var t,n,r=De(e[0]),o=[],i=0;i<r.length;i+=1)o[i]=UO(WO(e,r,i));var a=function(u){return V(o[u],1,1,function(){o[u]=null})},s=e[3].default,c=Cr(s,e,e[2],null);return{c:function(){for(var u=0;u<o.length;u+=1)o[u].c();t=kt(),c&&c.c()},m:function(u,l){for(var f=0;f<o.length;f+=1)o[f]&&o[f].m(u,l);ft(u,t,l),c&&c.m(u,l),n=!0},p:function(u,l){var f=Ce(l,1)[0];if(3&f){var d;for(r=De(u[0]),d=0;d<r.length;d+=1){var h=WO(u,r,d);o[d]?(o[d].p(h,f),z(o[d],1)):(o[d]=UO(h),o[d].c(),z(o[d],1),o[d].m(t.parentNode,t))}for(Bt(),d=r.length;d<o.length;d+=1)a(d);Ft()}c&&c.p&&(!n||4&f)&&Or(c,s,u,u[2],n?Er(s,u[2],f,null):Mr(u[2]),null)},i:function(u){if(!n){for(var l=0;l<r.length;l+=1)z(o[l]);z(c,u),n=!0}},o:function(u){o=o.filter(Boolean);for(var l=0;l<o.length;l+=1)V(o[l]);V(c,u),n=!1},d:function(u){u&<(t),Dr(o,u),c&&c.d(u)}}}function cft(e,t,n){var r=t.$$slots,o=r===void 0?{}:r,i=t.$$scope,a=po("jsoneditor:AbsolutePopup"),s=[];function c(u){var l=s.findIndex(function(d){return d.id===u});if(l!==-1){var f=s[l];f.options.onClose&&f.options.onClose(),n(0,s=s.filter(function(d){return d.id!==u}))}}return qN("absolute-popup",{openAbsolutePopup:function(u,l,f){a("open...",l,f);var d={id:eh(),component:u,props:l||{},options:f||{}};return n(0,s=[].concat($e(s),[d])),d.id},closeAbsolutePopup:c}),e.$$set=function(u){"$$scope"in u&&n(2,i=u.$$scope)},e.$$.update=function(){1&e.$$.dirty&&a("popups",s)},[s,c,i,o]}var Bz=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,cft,sft,qe,{}),o}return it(n)}();function ai(e){return e.map(function(t,n){return Fz.test(t)?"["+t+"]":/[.[\]]/.test(t)||t===""?'["'+(t.replace(/"/g,'\\"')+'"]'):(n>0?".":"")+t}).join("")}function uft(e){for(var t=[],n=0;n<e.length;)e[n]==="."&&n++,e[n]==="["?(n++,e[n]==='"'?(n++,t.push(r(function(i){return i==='"'},!0)),o('"')):t.push(r(function(i){return i==="]"})),o("]")):t.push(r(function(i){return i==="."||i==="["}));function r(i){for(var a=arguments.length>1&&arguments[1]!==void 0&&arguments[1],s="";n<e.length&&!i(e[n]);)a&&e[n]==="\\"&&e[n+1]==='"'?(s+='"',n+=2):(s+=e[n],n++);return s}function o(i){if(e[n]!==i)throw new SyntaxError("Invalid JSON path: ".concat(i," expected at position ").concat(n));n++}return t}function Ld(e){return{value:e,label:cn(e)?"(whole item)":ai(e)}}function du(e){return e.map(function(t){return Fz.test(t)?"?.[".concat(t,"]"):lft.test(t)?"?.".concat(t):"?.[".concat(JSON.stringify(t),"]")}).join("")}var lft=/^[a-zA-Z$_][a-zA-Z$_\d]*$/,Fz=/^\d+$/;function Cp(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 Hs(e,t){var n=t-3;return e.length>t?e.substring(0,n)+"...":e}function fft(e){if(e==="")return"";var t=e.toLowerCase();if(t==="null")return null;if(t==="true")return!0;if(t==="false")return!1;if(t!=="undefined"){var n=Number(e),r=parseFloat(e);return isNaN(n)||isNaN(r)?e:n}}var dft={id:"javascript",name:"JavaScript",description:`
|
|
57
|
+
<p>
|
|
58
|
+
Enter a JavaScript function to filter, sort, or transform the data.
|
|
59
|
+
</p>
|
|
60
|
+
`,createQuery:function(e,t){var n=t.filter,r=t.sort,o=t.projection,i=[` return data
|
|
61
|
+
`];if(n&&n.path&&n.relation&&n.value){var a="item => item".concat(du(n.path)),s=fft(n.value),c=typeof s=="string"?"'".concat(n.value,"'"):Dtt(n.value)&&!Number.isSafeInteger(s)?"".concat(n.value,"n"):n.value;i.push(" .filter(".concat(a," ").concat(n.relation," ").concat(c,`)
|
|
62
|
+
`))}if(r&&r.path&&r.direction&&(r.direction==="desc"?i.push(` .slice()
|
|
63
|
+
.sort((a, b) => {
|
|
64
|
+
// sort descending
|
|
65
|
+
`+" const valueA = a".concat(du(r.path),`
|
|
66
|
+
`)+" const valueB = b".concat(du(r.path),`
|
|
67
|
+
`)+` return valueA > valueB ? -1 : valueA < valueB ? 1 : 0
|
|
68
|
+
})
|
|
69
|
+
`):i.push(` .slice()
|
|
70
|
+
.sort((a, b) => {
|
|
71
|
+
// sort ascending
|
|
72
|
+
`+" const valueA = a".concat(du(r.path),`
|
|
73
|
+
`)+" const valueB = b".concat(du(r.path),`
|
|
74
|
+
`)+` return valueA > valueB ? 1 : valueA < valueB ? -1 : 0
|
|
75
|
+
})
|
|
76
|
+
`)),o&&o.paths)if(o.paths.length>1){var u=o.paths.map(function(f){var d=f[f.length-1]||"item",h="item".concat(du(f));return" ".concat(JSON.stringify(d),": ").concat(h)});i.push(` .map(item => ({
|
|
77
|
+
`.concat(u.join(`,
|
|
78
|
+
`),`})
|
|
79
|
+
)
|
|
80
|
+
`))}else{var l="item".concat(du(o.paths[0]));i.push(" .map(item => ".concat(l,`)
|
|
81
|
+
`))}return`function query (data) {
|
|
82
|
+
`.concat(i.join(""),"}")},executeQuery:function(e,t){var n=new Function(`"use strict";
|
|
83
|
+
|
|
84
|
+
`+t+`
|
|
85
|
+
|
|
86
|
+
if (typeof query !== "function") {
|
|
87
|
+
throw new Error("Cannot execute query: expecting a function named 'query' but is undefined")
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
return query;
|
|
91
|
+
`)()(e);return n!==void 0?n:null}},hft={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"]},Ih={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"]},Nh={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"]},pft={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 vft(e){var t;return{c:function(){t=as("g")},m:function(n,r){ft(n,t,r),t.innerHTML=e[0]},p:function(n,r){1&Ce(r,1)[0]&&(t.innerHTML=n[0])},i:Ht,o:Ht,d:function(n){n&<(t)}}}function mft(e,t,n){var r=870711,o="",i=t.data;function a(s){if(!s||!s.raw)return"";var c=s.raw,u={};return c=c.replace(/\s(?:xml:)?id=["']?([^"')\s]+)/g,function(l,f){var d="fa-".concat((r+=1).toString(16));return u[f]=d,' id="'.concat(d,'"')}),c=c.replace(/#(?:([^'")\s]+)|xpointer\(id\((['"]?)([^')]+)\2\)\))/g,function(l,f,d,h){var p=f||h;return p&&u[p]?"#".concat(u[p]):l}),c}return e.$$set=function(s){"data"in s&&n(1,i=s.data)},e.$$.update=function(){2&e.$$.dirty&&n(0,o=a(i))},[o,i]}var gft=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,mft,vft,eo,{data:1}),o}return it(n)}();function yft(e){Le(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 bft(e){for(var t,n,r,o,i=e[12].default,a=Cr(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=oi(c,s[u]);return{c:function(){t=as("svg"),a&&a.c(),jf(t,c),Dt(t,"fa-spin",e[4]),Dt(t,"fa-pulse",e[6]),Dt(t,"fa-inverse",e[5]),Dt(t,"fa-flip-horizontal",e[7]==="horizontal"),Dt(t,"fa-flip-vertical",e[7]==="vertical"),Dt(t,"svelte-1mc5hvj",!0)},m:function(l,f){ft(l,t,f),a&&a.m(t,null),o=!0},p:function(l,f){var d=Ce(f,1)[0];a&&a.p&&(!o||2048&d)&&Or(a,i,l,l[11],o?Er(i,l[11],d,null):Mr(l[11]),null),jf(t,c=Ui(s,[{version:"1.1"},(!o||1&d&&n!==(n="fa-icon "+l[0]))&&{class:n},(!o||2&d)&&{width:l[1]},(!o||4&d)&&{height:l[2]},(!o||512&d)&&{"aria-label":l[9]},(!o||512&d&&r!==(r=l[9]?"img":"presentation"))&&{role:r},(!o||8&d)&&{viewBox:l[3]},(!o||256&d)&&{style:l[8]},1024&d&&l[10]])),Dt(t,"fa-spin",l[4]),Dt(t,"fa-pulse",l[6]),Dt(t,"fa-inverse",l[5]),Dt(t,"fa-flip-horizontal",l[7]==="horizontal"),Dt(t,"fa-flip-vertical",l[7]==="vertical"),Dt(t,"svelte-1mc5hvj",!0)},i:function(l){o||(z(a,l),o=!0)},o:function(l){V(a,l),o=!1},d:function(l){l&<(t),a&&a.d(l)}}}function wft(e,t,n){var r=["class","width","height","box","spin","inverse","pulse","flip","style","label"],o=og(t,r),i=t,a=i.$$slots,s=a===void 0?{}:a,c=i.$$scope,u=t.class,l=u===void 0?"":u,f=t.width,d=t.height,h=t.box,p=h===void 0?"0 0 0 0":h,v=t.spin,m=v!==void 0&&v,g=t.inverse,y=g!==void 0&&g,b=t.pulse,w=b!==void 0&&b,x=t.flip,k=x===void 0?"none":x,E=t.style,_=E===void 0?"":E,T=t.label,$=T===void 0?"":T;return e.$$set=function(j){t=oi(oi({},t),NN(j)),n(10,o=og(t,r)),"class"in j&&n(0,l=j.class),"width"in j&&n(1,f=j.width),"height"in j&&n(2,d=j.height),"box"in j&&n(3,p=j.box),"spin"in j&&n(4,m=j.spin),"inverse"in j&&n(5,y=j.inverse),"pulse"in j&&n(6,w=j.pulse),"flip"in j&&n(7,k=j.flip),"style"in j&&n(8,_=j.style),"label"in j&&n(9,$=j.label),"$$scope"in j&&n(11,c=j.$$scope)},[l,f,d,p,m,y,w,k,_,$,o,c,s]}var xft=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,wft,bft,eo,{class:0,width:1,height:2,box:3,spin:4,inverse:5,pulse:6,flip:7,style:8,label:9},yft),o}return it(n)}();function KO(e,t,n){var r=e.slice();return r[24]=t[n],r}function JO(e,t,n){var r=e.slice();return r[27]=t[n],r}function GO(e){var t,n,r,o,i=e[6].paths&&QO(e),a=e[6].polygons&&XO(e),s=e[6].raw&&t6(e);return{c:function(){i&&i.c(),t=kt(),a&&a.c(),n=kt(),s&&s.c(),r=Sn()},m:function(c,u){i&&i.m(c,u),ft(c,t,u),a&&a.m(c,u),ft(c,n,u),s&&s.m(c,u),ft(c,r,u),o=!0},p:function(c,u){c[6].paths?i?i.p(c,u):((i=QO(c)).c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null),c[6].polygons?a?a.p(c,u):((a=XO(c)).c(),a.m(n.parentNode,n)):a&&(a.d(1),a=null),c[6].raw?s?(s.p(c,u),64&u&&z(s,1)):((s=t6(c)).c(),z(s,1),s.m(r.parentNode,r)):s&&(Bt(),V(s,1,1,function(){s=null}),Ft())},i:function(c){o||(z(s),o=!0)},o:function(c){V(s),o=!1},d:function(c){c&&(lt(t),lt(n),lt(r)),i&&i.d(c),a&&a.d(c),s&&s.d(c)}}}function QO(e){for(var t,n=De(e[6].paths),r=[],o=0;o<n.length;o+=1)r[o]=YO(JO(e,n,o));return{c:function(){for(var i=0;i<r.length;i+=1)r[i].c();t=Sn()},m:function(i,a){for(var s=0;s<r.length;s+=1)r[s]&&r[s].m(i,a);ft(i,t,a)},p:function(i,a){if(64&a){var s;for(n=De(i[6].paths),s=0;s<n.length;s+=1){var c=JO(i,n,s);r[s]?r[s].p(c,a):(r[s]=YO(c),r[s].c(),r[s].m(t.parentNode,t))}for(;s<r.length;s+=1)r[s].d(1);r.length=n.length}},d:function(i){i&<(t),Dr(r,i)}}}function YO(e){for(var t,n=[e[27]],r={},o=0;o<n.length;o+=1)r=oi(r,n[o]);return{c:function(){jf(t=as("path"),r)},m:function(i,a){ft(i,t,a)},p:function(i,a){jf(t,r=Ui(n,[64&a&&i[27]]))},d:function(i){i&<(t)}}}function XO(e){for(var t,n=De(e[6].polygons),r=[],o=0;o<n.length;o+=1)r[o]=ZO(KO(e,n,o));return{c:function(){for(var i=0;i<r.length;i+=1)r[i].c();t=Sn()},m:function(i,a){for(var s=0;s<r.length;s+=1)r[s]&&r[s].m(i,a);ft(i,t,a)},p:function(i,a){if(64&a){var s;for(n=De(i[6].polygons),s=0;s<n.length;s+=1){var c=KO(i,n,s);r[s]?r[s].p(c,a):(r[s]=ZO(c),r[s].c(),r[s].m(t.parentNode,t))}for(;s<r.length;s+=1)r[s].d(1);r.length=n.length}},d:function(i){i&<(t),Dr(r,i)}}}function ZO(e){for(var t,n=[e[24]],r={},o=0;o<n.length;o+=1)r=oi(r,n[o]);return{c:function(){jf(t=as("polygon"),r)},m:function(i,a){ft(i,t,a)},p:function(i,a){jf(t,r=Ui(n,[64&a&&i[24]]))},d:function(i){i&<(t)}}}function t6(e){var t,n,r;function o(a){e[16](a)}var i={};return e[6]!==void 0&&(i.data=e[6]),t=new gft({props:i}),Ze.push(function(){return da(t,"data",o)}),{c:function(){Pt(t.$$.fragment)},m:function(a,s){Mt(t,a,s),r=!0},p:function(a,s){var c={};!n&&64&s&&(n=!0,c.data=a[6],fa(function(){return n=!1})),t.$set(c)},i:function(a){r||(z(t.$$.fragment,a),r=!0)},o:function(a){V(t.$$.fragment,a),r=!1},d:function(a){At(t,a)}}}function kft(e){var t,n=e[15].default,r=Cr(n,e,e[17],null),o=r||function(i){var a,s,c=i[6]&&GO(i);return{c:function(){c&&c.c(),a=Sn()},m:function(u,l){c&&c.m(u,l),ft(u,a,l),s=!0},p:function(u,l){u[6]?c?(c.p(u,l),64&l&&z(c,1)):((c=GO(u)).c(),z(c,1),c.m(a.parentNode,a)):c&&(Bt(),V(c,1,1,function(){c=null}),Ft())},i:function(u){s||(z(c),s=!0)},o:function(u){V(c),s=!1},d:function(u){u&<(a),c&&c.d(u)}}}(e);return{c:function(){o&&o.c()},m:function(i,a){o&&o.m(i,a),t=!0},p:function(i,a){r?r.p&&(!t||131072&a)&&Or(r,n,i,i[17],t?Er(n,i[17],a,null):Mr(i[17]),null):o&&o.p&&(!t||64&a)&&o.p(i,t?a:-1)},i:function(i){t||(z(o,i),t=!0)},o:function(i){V(o,i),t=!1},d:function(i){o&&o.d(i)}}}function jft(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:[kft]},$$scope:{ctx:e}},i=0;i<r.length;i+=1)o=oi(o,r[i]);return t=new xft({props:o}),{c:function(){Pt(t.$$.fragment)},m:function(a,s){Mt(t,a,s),n=!0},p:function(a,s){var c=Ce(s,1)[0],u=4031&c?Ui(r,[32&c&&{label:a[5]},128&c&&{width:a[7]},256&c&&{height:a[8]},1024&c&&{box:a[10]},512&c&&{style:a[9]},2&c&&{spin:a[1]},16&c&&{flip:a[4]},4&c&&{inverse:a[2]},8&c&&{pulse:a[3]},1&c&&{class:a[0]},2048&c&&Gu(a[11])]):{};131136&c&&(u.$$scope={dirty:c,ctx:a}),t.$set(u)},i:function(a){n||(z(t.$$.fragment,a),n=!0)},o:function(a){V(t.$$.fragment,a),n=!1},d:function(a){At(t,a)}}}function _ft(e,t,n){var r,o,i,a=["class","data","scale","spin","inverse","pulse","flip","label","style"],s=og(t,a),c=t,u=c.$$slots,l=u===void 0?{}:u,f=c.$$scope,d=t.class,h=d===void 0?"":d,p=t.data,v=t.scale,m=v===void 0?1:v,g=t.spin,y=g!==void 0&&g,b=t.inverse,w=b!==void 0&&b,x=t.pulse,k=x!==void 0&&x,E=t.flip,_=E===void 0?void 0:E,T=t.label,$=T===void 0?"":T,j=t.style,R=j===void 0?"":j,q=10,O=10;function F(){var I=1;return m!==void 0&&(I=Number(m)),isNaN(I)||I<=0?(console.warn('Invalid prop: prop "scale" should be a number over 0.'),1):1*I}function J(){return r?Math.max(r.width,r.height)/16:1}return e.$$set=function(I){t=oi(oi({},t),NN(I)),n(11,s=og(t,a)),"class"in I&&n(0,h=I.class),"data"in I&&n(12,p=I.data),"scale"in I&&n(13,m=I.scale),"spin"in I&&n(1,y=I.spin),"inverse"in I&&n(2,w=I.inverse),"pulse"in I&&n(3,k=I.pulse),"flip"in I&&n(4,_=I.flip),"label"in I&&n(5,$=I.label),"style"in I&&n(14,R=I.style),"$$scope"in I&&n(17,f=I.$$scope)},e.$$.update=function(){28672&e.$$.dirty&&(n(6,r=function(I){var D;if(I){if(!("definition"in I)){if("iconName"in I&&"icon"in I){I.iconName;var C=Ce(I.icon,5),M=C[0],P=C[1],B=C[4];D={width:M,height:P,paths:(Array.isArray(B)?B:[B]).map(function(A){return{d:A}})}}else D=I[Object.keys(I)[0]];return D}console.error("`import faIconName from '@fortawesome/package-name/faIconName` not supported - Please use `import { faIconName } from '@fortawesome/package-name/faIconName'` instead")}}(p)),n(7,q=r?r.width/J()*F():0),n(8,O=r?r.height/J()*F():0),n(9,o=function(){var I="";R!==null&&(I+=R);var D=F();return D===1?I.length===0?"":I:(I===""||I.endsWith(";")||(I+="; "),"".concat(I,"font-size: ").concat(D,"em"))}()),n(10,i=r?"0 0 ".concat(r.width," ").concat(r.height):"0 0 ".concat(q," ").concat(O)))},[h,y,w,k,_,$,r,q,O,o,i,s,p,m,R,l,function(I){n(6,r=I),n(12,p),n(14,R),n(13,m)},f]}var hn=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,_ft,jft,eo,{class:0,data:12,scale:13,spin:1,inverse:2,pulse:3,flip:4,label:5,style:14}),o}return it(n)}();function Sft(e){Le(e,"svelte-1vj58yv",".jse-boolean-toggle.svelte-1vj58yv{padding:0;margin:1px 0 0;vertical-align:top;display:inline-flex;color:var(--jse-value-color-boolean)}.jse-boolean-toggle.svelte-1vj58yv:not(.jse-readonly){cursor:pointer}")}function $ft(e){var t,n,r,o,i,a,s;return n=new hn({props:{data:e[0]===!0?Ih:Nh}}),{c:function(){t=tt("div"),Pt(n.$$.fragment),S(t,"role","checkbox"),S(t,"tabindex","-1"),S(t,"aria-checked",r=e[0]===!0),S(t,"class","jse-boolean-toggle svelte-1vj58yv"),S(t,"title",o=e[1]?"Boolean value ".concat(e[0]):"Click to toggle this boolean value"),Dt(t,"jse-readonly",e[1])},m:function(c,u){ft(c,t,u),Mt(n,t,null),i=!0,a||(s=zt(t,"mousedown",e[2]),a=!0)},p:function(c,u){var l=Ce(u,1)[0],f={};1&l&&(f.data=c[0]===!0?Ih:Nh),n.$set(f),(!i||1&l&&r!==(r=c[0]===!0))&&S(t,"aria-checked",r),(!i||3&l&&o!==(o=c[1]?"Boolean value ".concat(c[0]):"Click to toggle this boolean value"))&&S(t,"title",o),(!i||2&l)&&Dt(t,"jse-readonly",c[1])},i:function(c){i||(z(n.$$.fragment,c),i=!0)},o:function(c){V(n.$$.fragment,c),i=!1},d:function(c){c&<(t),At(n),a=!1,s()}}}function Cft(e,t,n){var r=t.path,o=t.value,i=t.readOnly,a=t.onPatch,s=t.focus;return e.$$set=function(c){"path"in c&&n(3,r=c.path),"value"in c&&n(0,o=c.value),"readOnly"in c&&n(1,i=c.readOnly),"onPatch"in c&&n(4,a=c.onPatch),"focus"in c&&n(5,s=c.focus)},[o,i,function(c){c.stopPropagation(),i||(a([{op:"replace",path:oe(r),value:!o}]),setTimeout(s))},r,a,s]}var Eft=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,Cft,$ft,qe,{path:3,value:0,readOnly:1,onPatch:4,focus:5},Sft),o}return it(n)}();function Oft(e){Le(e,"svelte-1gn8yt9",".jse-color-picker-popup.svelte-1gn8yt9 .picker_wrapper.popup,.jse-color-picker-popup.svelte-1gn8yt9 .picker_wrapper.popup .picker_arrow::before,.jse-color-picker-popup.svelte-1gn8yt9 .picker_wrapper.popup .picker_arrow::after{background:var(--jse-color-picker-background);line-height:normal}.jse-color-picker-popup.svelte-1gn8yt9 .picker_slider,.jse-color-picker-popup.svelte-1gn8yt9 .picker_sl,.jse-color-picker-popup.svelte-1gn8yt9 .picker_editor input,.jse-color-picker-popup.svelte-1gn8yt9 .picker_sample,.jse-color-picker-popup.svelte-1gn8yt9 .picker_done button{box-shadow:var(--jse-color-picker-border-box-shadow)}.jse-color-picker-popup.svelte-1gn8yt9 .picker_editor input{background:var(--jse-background-color);color:var(--jse-text-color)}.jse-color-picker-popup.svelte-1gn8yt9 .picker_done button{background:var(--jse-button-background);color:var(--jse-button-color)}.jse-color-picker-popup.svelte-1gn8yt9 .picker_done button:hover{background:var(--jse-button-background-highlight)}")}function Mft(e){var t;return{c:function(){S(t=tt("div"),"class","jse-color-picker-popup svelte-1gn8yt9")},m:function(n,r){ft(n,t,r),e[4](t)},p:Ht,i:Ht,o:Ht,d:function(n){n&<(t),e[4](null)}}}function Aft(e,t,n){var r,o=t.color,i=t.onChange,a=t.showOnTop,s=function(){};return Wi(Ae(qt().mark(function c(){var u,l,f;return qt().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,Promise.resolve().then(function(){return o2t});case 2:if(d.t1=u=d.sent,d.t0=d.t1===null,d.t0){d.next=6;break}d.t0=u===void 0;case 6:if(!d.t0){d.next=10;break}d.t2=void 0,d.next=11;break;case 10:d.t2=u.default;case 11:l=d.t2,f=new l({parent:r,color:o,popup:a?"top":"bottom",onDone:function(h){var p=h.rgba[3]===1?h.hex.substring(0,7):h.hex;i(p)}}),f.show(),s=function(){f.destroy()};case 15:case"end":return d.stop()}},c)}))),gi(function(){s()}),e.$$set=function(c){"color"in c&&n(1,o=c.color),"onChange"in c&&n(2,i=c.onChange),"showOnTop"in c&&n(3,a=c.showOnTop)},[r,o,i,a,function(c){Ze[c?"unshift":"push"](function(){n(0,r=c)})}]}var Pft=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,Aft,Mft,eo,{color:1,onChange:2,showOnTop:3},Oft),o}return it(n)}();function Tft(e){Le(e,"svelte-1nv0s05",".jse-color-picker-button.svelte-1nv0s05{font-size:var(--jse-font-size-mono);width:var(--jse-color-picker-button-size);height:var(--jse-color-picker-button-size);box-sizing:border-box;padding:0;margin:2px 0 0;display:inline-flex;vertical-align:top;border:1px solid var(--jse-text-color);border-radius:2px;background:inherit;outline:none}.jse-color-picker-button.svelte-1nv0s05:not(.jse-readonly){cursor:pointer}")}function Rft(e){var t,n,r,o;return{c:function(){S(t=tt("button"),"type","button"),S(t,"class","jse-color-picker-button svelte-1nv0s05"),yc(t,"background",e[2]),S(t,"title",n=e[1]?"Color ".concat(e[0]):"Click to open a color picker"),Dt(t,"jse-readonly",e[1])},m:function(i,a){ft(i,t,a),r||(o=zt(t,"click",e[3]),r=!0)},p:function(i,a){var s=Ce(a,1)[0];4&s&&yc(t,"background",i[2]),3&s&&n!==(n=i[1]?"Color ".concat(i[0]):"Click to open a color picker")&&S(t,"title",n),2&s&&Dt(t,"jse-readonly",i[1])},i:Ht,o:Ht,d:function(i){i&<(t),r=!1,o()}}}function Ift(e,t,n){var r,o=ho("absolute-popup").openAbsolutePopup,i=t.path,a=t.value,s=t.readOnly,c=t.onPatch,u=t.focus;function l(d){c([{op:"replace",path:oe(i),value:d}]),f()}function f(){u()}return e.$$set=function(d){"path"in d&&n(4,i=d.path),"value"in d&&n(0,a=d.value),"readOnly"in d&&n(1,s=d.readOnly),"onPatch"in d&&n(5,c=d.onPatch),"focus"in d&&n(6,u=d.focus)},e.$$.update=function(){1&e.$$.dirty&&n(2,r=sD(a))},[a,s,r,function(d){if(!s){var h=d.target.getBoundingClientRect().top,p=nd(d.target).innerHeight;o(Pft,{color:a,onChange:l,showOnTop:p-h<300&&h>300},{anchor:d.target,closeOnOuterClick:!0,onClose:f,offsetTop:18,offsetLeft:-8,height:300})}},i,c,u]}var Nft=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,Ift,Rft,qe,{path:4,value:0,readOnly:1,onPatch:5,focus:6},Tft),o}return it(n)}();function qz(e){for(var t=pz(e,function(s){return s.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 Dft(e,t){return e.some(function(n){return t>=n.start&&t<n.end})}function $w(e){return gg(e)+Eh}function gg(e){return Math.floor(e/Eh)*Eh}function yg(e){var t={expandedMap:{},enforceStringMap:{},visibleSectionsMap:{},selection:{type:Bn.value,path:[],edit:!1},sortedColumn:null};return e!=null&&e.select&&e.json!==void 0&&(t=xt(xt({},t),{},{selection:e.select(e.json,t)})),e!=null&&e.expand&&(t=Mi(e.json,t,[],e.expand)),t}function W0(e,t){return e.visibleSectionsMap[t]||Qu}function fj(e,t,n){t.forEach(function(r){var o=r.start,i=r.end;Cz(o,Math.min(e.length,i),n)})}function Cw(e,t,n){for(var r=xt({},t.expandedMap),o=xt({},t.visibleSectionsMap),i=0;i<n.length;i++){var a=n.slice(0,i),s=oe(a),c=fe(e,a);if(xr(c)&&(r[s]=!0),Array.isArray(c)&&i<n.length){var u=o[s]||Qu,l=So(n[i]);if(!Dft(u,l)){var f=gg(l),d={start:f,end:$w(f)};o[s]=qz(u.concat(d))}}}return xt(xt({},t),{},{expandedMap:r,visibleSectionsMap:o})}function Mi(e,t,n,r){var o=xt({},t.expandedMap),i=n.slice(),a=e!==void 0?fe(e,n):e;return a!==void 0&&function s(c){var u=i.length;if(Array.isArray(c)){if(r(i)){var l=oe(i);if(o[l]=!0,c.length>0){var f=W0(t,l);fj(c,f,function(m){i[u]=String(m),s(c[m])}),i.pop()}}}else if(pr(c)&&r(i)){o[oe(i)]=!0;var d=Object.keys(c);if(d.length>0){var h,p=ht(d);try{for(p.s();!(h=p.n()).done;){var v=h.value;i[u]=v,s(c[v])}}catch(m){p.e(m)}finally{p.f()}i.pop()}}}(a),xt(xt({},t),{},{expandedMap:o})}function e6(e,t){var n=Zl(e.expandedMap,t),r=Zl(e.enforceStringMap,t),o=Zl(e.visibleSectionsMap,t);return xt(xt({},e),{},{expandedMap:n,enforceStringMap:r,visibleSectionsMap:o})}function Hz(e,t,n){if(n){var r=xt({},e.enforceStringMap);return r[t]=n,xt(xt({},e),{},{enforceStringMap:r})}if(typeof e.enforceStringMap[t]=="boolean"){var o=xt({},e.enforceStringMap);return delete o[t],xt(xt({},e),{},{enforceStringMap:o})}return e}function Vz(e,t,n){var r=xa(e,n),o=n.reduce(function(i,a){return QN(a)?n6(r,i,a):YN(a)?r6(r,i,a):n2(a)?function(s,c,u){var l=u.path,f=vy(s,c.expandedMap),d=vy(s,c.enforceStringMap),h=vy(s,c.visibleSectionsMap);return kr(u.value)||Wn(u.value)||delete f[l],Wn(u.value)||delete h[l],(kr(u.value)||Wn(u.value))&&delete d[l],xt(xt({},c),{},{expandedMap:f,enforceStringMap:d,visibleSectionsMap:h})}(r,i,a):aw(a)||Yl(a)?function(s,c,u){if(Yl(u)&&u.from===u.path)return c;var l=function(y){return u.path+y.substring(u.from.length)},f=py(dy(c.expandedMap,u.from),l),d=py(dy(c.enforceStringMap,u.from),l),h=py(dy(c.visibleSectionsMap,u.from),l),p=c;Yl(u)&&(p=r6(s,p,{op:"remove",path:u.from})),p=n6(s,p,{op:"add",path:u.path,value:null});var v=hy(p.expandedMap,f),m=hy(p.enforceStringMap,d),g=hy(p.visibleSectionsMap,h);return xt(xt({},c),{},{expandedMap:v,enforceStringMap:m,visibleSectionsMap:g})}(r,i,a):i},t);return{json:r,documentState:o}}function n6(e,t,n){var r=Ya(e,n.path),o=on(r),i=oe(o);if(Wn(fe(e,o))){var a=So(Re(r)),s=tf(t.expandedMap,o,a,1),c=tf(t.enforceStringMap,o,a,1),u=tf(t.visibleSectionsMap,o,a,1);return u=Wz(u,i,function(l){return Uz(l,a,1)}),xt(xt({},t),{},{expandedMap:s,enforceStringMap:c,visibleSectionsMap:u})}return t}function r6(e,t,n){var r=Ya(e,n.path),o=on(r),i=oe(o),a=fe(e,o),s=t.expandedMap,c=t.enforceStringMap,u=t.visibleSectionsMap;if(s=Zl(s,r),c=Zl(c,r),u=Zl(u,r),Wn(a)){var l=So(Re(r));s=tf(s,o,l,-1),c=tf(c,o,l,-1),u=Wz(u=tf(u,o,l,-1),i,function(f){return Uz(f,l,-1)})}return xt(xt({},t),{},{expandedMap:s,enforceStringMap:c,visibleSectionsMap:u})}function Zl(e,t){var n={},r=oe(t);return Object.keys(e).forEach(function(o){$0(o,r)||(n[o]=e[o])}),n}function dy(e,t){var n={};return Object.keys(e).forEach(function(r){$0(r,t)&&(n[r]=e[r])}),n}function hy(e,t){return xt(xt({},e),t)}function py(e,t){var n={};return Object.keys(e).forEach(function(r){var o=t(r);n[o]=e[r]}),n}function tf(e,t,n,r){for(var o=t.length,i=oe(t),a=[],s=0,c=Object.keys(e);s<c.length;s++){var u=c[s];if($0(u,i)){var l=Ca(u),f=So(l[o]);f>=n&&(l[o]=String(f+r),a.push({oldPointer:u,newPointer:oe(l),value:e[u]}))}}if(a.length===0)return e;var d=xt({},e);return a.forEach(function(h){delete d[h.oldPointer]}),a.forEach(function(h){d[h.newPointer]=h.value}),d}function vy(e,t){var n={};return Object.keys(t).filter(function(r){return Bi(e,Ya(e,r))}).forEach(function(r){n[r]=t[r]}),n}function Wz(e,t,n){var r=e[t];if(t in e){var o=n(r);if(!an(r,o)){var i=xt({},e);return o===void 0?delete i[t]:i[t]=o,i}}return e}function Uz(e,t,n){return function(r){for(var o=r.slice(0),i=1;i<o.length;)o[i-1].end===o[i].start&&(o[i-1]={start:o[i-1].start,end:o[i].end},o.splice(i)),i++;return o}(e.map(function(r){return{start:r.start>t?r.start+n:r.start,end:r.end>t?r.end+n:r.end}}))}function Vs(e,t,n,r){var o=t?t[n]:void 0;return typeof o=="boolean"?o:function(i,a){return typeof i=="string"&&typeof Uf(i,a)!="string"}(e,r)}function Ep(e,t){var n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],r=e.indexOf(t);return r!==-1?n?e.slice(r):e.slice(r+1):[]}function dj(e,t){var n=[];return function r(o,i){n.push(i);var a=oe(i);if(o&&t.expandedMap[a]===!0){if(Wn(o)){var s=W0(t,a);fj(o,s,function(c){r(o[c],i.concat(String(c)))})}kr(o)&&Object.keys(o).forEach(function(c){r(o[c],i.concat(c))})}}(e,[]),n}function Kz(e,t){var n=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],r=[];return function o(i,a){r.push({path:a,type:ha.value});var s=oe(a);if(i&&t.expandedMap[s]===!0){if(n&&r.push({path:a,type:ha.inside}),Wn(i)){var c=W0(t,s);fj(i,c,function(u){var l=a.concat(String(u));o(i[u],l),n&&r.push({path:l,type:ha.after})})}kr(i)&&Object.keys(i).forEach(function(u){var l=a.concat(u);r.push({path:l,type:ha.key}),o(i[u],l),n&&r.push({path:l,type:ha.after})})}}(e,[]),r}function my(e,t,n){var r=dj(e,t),o=r.map(oe).indexOf(oe(n));return o!==-1&&o<r.length-1?r[o+1]:null}function vc(e,t,n){var r=fe(e,n);return r===void 0?t:Mi(e,t,n,Az({json:r},GN)?Ja:ih)}function Ja(e){return e.length===0||e.length===1&&e[0]==="0"}function ih(){return!0}function hi(e){return e&&e.type===Bn.after||!1}function Wr(e){return e&&e.type===Bn.inside||!1}function Fr(e){return e&&e.type===Bn.key||!1}function dn(e){return e&&e.type===Bn.value||!1}function zn(e){return e&&e.type===Bn.multi||!1}function U0(e){return zn(e)&&an(e.focusPath,e.anchorPath)}function Ew(e){return e&&e.type===Bn.text||!1}function Ec(e,t){var n=[];return function(r,o,i){if(o){var a=zu(o),s=ge(o);if(an(a,s))return i(a);if(r!==void 0){var c=Gz(a,s);if(a.length===c.length||s.length===c.length)return i(c);var u=Po(a,s),l=Ts(r,u),f=Oc(r,u),d=Ls(r,u,l),h=Ls(r,u,f);if(!(d===-1||h===-1)){var p=fe(r,c);if(kr(p)){for(var v=Object.keys(p),m=d;m<=h;m++){var g=i(c.concat(v[m]));if(g!==void 0)return g}return}if(Wn(p)){for(var y=d;y<=h;y++){var b=i(c.concat(String(y)));if(b!==void 0)return b}return}throw new Error("Failed to create selection")}}}}(e,t,function(r){n.push(r)}),n}function Jz(e){return Wr(e)?e.path:on(ge(e))}function Ts(e,t){if(!zn(t))return t.path;var n=Ls(e,t,t.anchorPath);return Ls(e,t,t.focusPath)<n?t.focusPath:t.anchorPath}function Oc(e,t){if(!zn(t))return t.path;var n=Ls(e,t,t.anchorPath);return Ls(e,t,t.focusPath)>n?t.focusPath:t.anchorPath}function o6(e,t){var n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],r=t.selection;if(!r)return null;var o=n?ge(r):Ts(e,r),i=function(s,c,u){var l=dj(s,c),f=l.map(oe),d=oe(u),h=f.indexOf(d);return h!==-1&&h>0?l[h-1]:null}(e,t,o);if(n)return Wr(r)||hi(r)?i!==null?Po(o,o):null:i!==null?Po(zu(r),i):null;if(hi(r)||Wr(r))return We(o,!1);if(Fr(r)){if(i==null||i.length===0)return null;var a=fe(e,on(i));return Array.isArray(a)||cn(i)?We(i,!1):Vi(i,!1)}return dn(r),i!==null?We(i,!1):null}function i6(e,t,n){var r=t.selection;if(!r)return{caret:null,previous:null,next:null};var o=Kz(e,t,n),i=o.findIndex(function(a){return an(a.path,ge(r))&&String(a.type)===String(r.type)});return{caret:i!==-1?o[i]:null,previous:i!==-1&&i>0?o[i-1]:null,next:i!==-1&&i<o.length-1?o[i+1]:null}}function wl(e,t){for(var n=dj(e,t),r=0;r<n.length-1&&n[r+1].length>n[r].length;)r++;var o=n[r];return o===void 0||o.length===0||Array.isArray(fe(e,on(o)))?We(o,!1):Vi(o,!1)}function Cf(e,t){if(t.length===1){var n=ka(t);if(n.op==="replace")return We(Ya(e,n.path),!1)}if(!cn(t)&&t.every(function(a){return a.op==="move"})){var r=ka(t),o=t.slice(1);if((aw(r)||Yl(r))&&r.from!==r.path&&o.every(function(a){return(aw(a)||Yl(a))&&a.from===a.path}))return Vi(Ya(e,r.path),!1)}var i=t.filter(function(a){return a.op!=="test"&&a.op!=="remove"&&(a.op!=="move"||a.from!==a.path)&&typeof a.path=="string"}).map(function(a){return Ya(e,a.path)});return cn(i)?null:{type:Bn.multi,anchorPath:ka(i),focusPath:Re(i)}}function Gz(e,t){for(var n=0;n<e.length&&n<t.length&&e[n]===t[n];)n++;return e.slice(0,n)}function bg(e){return Fr(e)||dn(e)||U0(e)}function a6(e,t){return bg(t)&&xr(fe(e,ge(t)))?ge(t):on(ge(t))}function qc(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 Oo(e){var t=e.selection;return(Fr(t)||dn(t))&&t.edit?xt(xt({},e),{},{selection:xt(xt({},t),{},{edit:!1})}):e}function Vi(e,t){return{type:Bn.key,path:e,edit:t}}function We(e,t){return{type:Bn.value,path:e,edit:t}}function Ws(e){return{type:Bn.inside,path:e}}function Ds(e){return{type:Bn.after,path:e}}function Po(e,t){var n=Gz(e,t),r=e.length>n.length&&t.length>n.length;return{type:Bn.multi,anchorPath:r?n.concat(e[n.length]):n,focusPath:r?n.concat(t[n.length]):n}}function Qz(e,t,n,r){if(Fr(t))return String(Re(t.path));if(dn(t)){var o=fe(e,t.path);return typeof o=="string"?o:r.stringify(o,null,n)}if(zn(t)){if(cn(t.focusPath))return r.stringify(e,null,n);var i=Jz(t),a=fe(e,i);if(Array.isArray(a)){if(U0(t)){var s=fe(e,t.focusPath);return r.stringify(s,null,n)}return Ec(e,t).map(function(c){var u=fe(e,c);return"".concat(r.stringify(u,null,n),",")}).join(`
|
|
92
|
+
`)}return Ec(e,t).map(function(c){var u=Re(c),l=fe(e,c);return"".concat(r.stringify(u),": ").concat(r.stringify(l,null,n),",")}).join(`
|
|
93
|
+
`)}return null}function Gi(e){return(Fr(e)||dn(e))&&e.edit===!0}function rd(e){return Fr(e)||dn(e)||zn(e)}function ym(e){return Fr(e)||dn(e)||U0(e)}function Ow(e){switch(e.type){case ha.key:return Vi(e.path,!1);case ha.value:return We(e.path,!1);case ha.after:return Ds(e.path);case ha.inside:return Ws(e.path)}}function s6(e,t,n){switch(t){case Bn.key:return Vi(n,!1);case Bn.value:return We(n,!1);case Bn.after:return Ds(n);case Bn.inside:return Ws(n);case Bn.multi:case Bn.text:return Po(n,n)}}function c6(e,t,n){return t&&(Dh(e,t,n)||qc(zn(t)?on(t.focusPath):t.path,n))?t:null}function Dh(e,t,n){if(e===void 0||!t)return!1;if(Fr(t)||Wr(t)||hi(t))return an(t.path,n);if(dn(t))return qc(n,t.path);if(zn(t)){var r=Ts(e,t),o=Oc(e,t),i=on(t.focusPath);if(!qc(n,i)||n.length<=i.length)return!1;var a=Ls(e,t,r),s=Ls(e,t,o),c=Ls(e,t,n);return c!==-1&&c>=a&&c<=s}return!1}function Ls(e,t,n){var r=on(t.focusPath);if(!qc(n,r)||n.length<=r.length)return-1;var o=n[r.length],i=fe(e,r);if(kr(i))return Object.keys(i).indexOf(o);if(Wn(i)){var a=So(o);if(a<i.length)return a}return-1}function ge(e){return zn(e)?e.focusPath:e.path}function zu(e){return zn(e)?e.anchorPath:e.path}function ls(){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(typeof a=="string"&&e.push(a),a&&ce(a)==="object")for(var s in a)Object.hasOwnProperty.call(a,s)&&a[s]&&e.push(s)}return e.join(" ")}function Lh(e,t){return ls("jse-value","jse-"+h2(e,t),{"jse-url":C0(e),"jse-empty":typeof e=="string"&&e.length===0})}function Lft(e){Le(e,"svelte-1iltvlj",".jse-value.jse-string.svelte-1iltvlj{color:var(--jse-value-color-string)}.jse-value.jse-object.svelte-1iltvlj,.jse-value.jse-array.svelte-1iltvlj{min-width:16px;color:var(--jse-delimiter-color)}.jse-value.jse-number.svelte-1iltvlj{color:var(--jse-value-color-number)}.jse-value.jse-boolean.svelte-1iltvlj{color:var(--jse-value-color-boolean)}.jse-value.jse-null.svelte-1iltvlj{color:var(--jse-value-color-null)}.jse-value.jse-invalid.svelte-1iltvlj{color:var(--jse-text-color)}.jse-value.jse-url.svelte-1iltvlj{color:var(--jse-value-color-url);text-decoration:underline}div.jse-editable-div.svelte-1iltvlj{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-1iltvlj{overflow-wrap:normal}div.jse-editable-div[contenteditable=true].svelte-1iltvlj{outline:var(--jse-edit-outline);background:inherit !important;position:relative;border-radius:0;z-index:3}div.jse-editable-div.jse-empty.svelte-1iltvlj:not(:focus){outline:1px dotted var(--jse-tag-background);-moz-outline-radius:2px}div.jse-editable-div.jse-empty.svelte-1iltvlj::after{pointer-events:none;color:var(--jse-tag-background)}")}function zft(e){var t,n,r,o;return{c:function(){S(t=tt("div"),"role","textbox"),S(t,"tabindex","0"),S(t,"class",n=dr(ls("jse-editable-div",e[2],{"jse-short-text":e[0]}))+" svelte-1iltvlj"),S(t,"contenteditable","true"),S(t,"spellcheck","false")},m:function(i,a){ft(i,t,a),e[13](t),r||(o=[zt(t,"input",e[3]),zt(t,"keydown",e[4]),zt(t,"paste",e[5]),zt(t,"blur",e[6])],r=!0)},p:function(i,a){5&Ce(a,1)[0]&&n!==(n=dr(ls("jse-editable-div",i[2],{"jse-short-text":i[0]}))+" svelte-1iltvlj")&&S(t,"class",n)},i:Ht,o:Ht,d:function(i){i&<(t),e[13](null),r=!1,Fn(o)}}}function Bft(e,t,n){var r,o,i=po("jsoneditor:EditableDiv"),a=t.value,s=t.shortText,c=s!==void 0&&s,u=t.onChange,l=t.onCancel,f=t.onFind,d=t.onPaste,h=d===void 0?Qn:d,p=t.onValueClass,v=p===void 0?function(){return""}:p,m=!1;function g(){return r?function(w){return w.replace(/\n$/,"")}(r.innerText):""}function y(w){r&&n(1,r.innerText=tl(w),r)}function b(){var w=g();w===""&&y(""),n(2,o=v(w))}return Wi(function(){i("onMount",{value:a}),y(a),setTimeout(function(){r&&(Dz(r),n(1,r.refresh=b,r))})}),gi(function(){var w=g();i("onDestroy",{closed:m,value:a,newValue:w}),m||w===a||u(w,CZ)}),e.$$set=function(w){"value"in w&&n(7,a=w.value),"shortText"in w&&n(0,c=w.shortText),"onChange"in w&&n(8,u=w.onChange),"onCancel"in w&&n(9,l=w.onCancel),"onFind"in w&&n(10,f=w.onFind),"onPaste"in w&&n(11,h=w.onPaste),"onValueClass"in w&&n(12,v=w.onValueClass)},e.$$.update=function(){4224&e.$$.dirty&&n(2,o=v(a))},[c,r,o,b,function(w){w.stopPropagation();var x=ou(w);if(x==="Escape"&&(m=!0,l()),x==="Enter"||x==="Tab"){m=!0;var k=g();u(k,e2)}x==="Ctrl+F"&&(w.preventDefault(),f(!1)),x==="Ctrl+H"&&(w.preventDefault(),f(!0))},function(w){if(w.stopPropagation(),h&&w.clipboardData){var x=w.clipboardData.getData("text/plain");h(x)}},function(){var w=document.hasFocus(),x=g();i("handleBlur",{hasFocus:w,closed:m,value:a,newValue:x}),document.hasFocus()&&!m&&(m=!0,x!==a?u(x,t2):l())},a,u,l,f,h,v,function(w){Ze[w?"unshift":"push"](function(){n(1,r=w)})}]}var Yz=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,Bft,zft,qe,{value:7,shortText:0,onChange:8,onCancel:9,onFind:10,onPaste:11,onValueClass:12},Lft),o}return it(n)}();function Fft(e){var t,n;return t=new Yz({props:{value:e[1].escapeValue(e[0]),onChange:e[3],onCancel:e[4],onPaste:e[5],onFind:e[2],onValueClass:e[6]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i=Ce(o,1)[0],a={};3&i&&(a.value=r[1].escapeValue(r[0])),4&i&&(a.onFind=r[2]),t.$set(a)},i:function(r){n||(z(t.$$.fragment,r),n=!0)},o:function(r){V(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function qft(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 p(v){return s?v:Uf(v,i)}return e.$$set=function(v){"path"in v&&n(7,r=v.path),"value"in v&&n(0,o=v.value),"parser"in v&&n(8,i=v.parser),"normalization"in v&&n(1,a=v.normalization),"enforceString"in v&&n(9,s=v.enforceString),"onPatch"in v&&n(10,c=v.onPatch),"onPasteJson"in v&&n(11,u=v.onPasteJson),"onSelect"in v&&n(12,l=v.onSelect),"onFind"in v&&n(2,f=v.onFind),"focus"in v&&n(13,d=v.focus),"findNextInside"in v&&n(14,h=v.findNextInside)},[o,a,f,function(v,m){c([{op:"replace",path:oe(r),value:p(a.unescapeValue(v))}],function(g,y){if(!y.selection||an(r,ge(y.selection))){var b=m===e2?h(r):We(r,!1);return{state:xt(xt({},y),{},{selection:b})}}}),m!==t2&&d()},function(){l(We(r,!1)),d()},function(v){try{var m=i.parse(v);xr(m)&&u({path:r,contents:m})}catch{}},function(v){return Lh(p(a.unescapeValue(v)),i)},r,i,s,c,u,l,d,h]}var Hft=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,qft,Fft,qe,{path:7,value:0,parser:8,normalization:1,enforceString:9,onPatch:10,onPasteJson:11,onSelect:12,onFind:2,focus:13,findNextInside:14}),o}return it(n)}();function Dl(e,t,n){var r=on(t),o=fe(e,r);if(Wn(o)){var i=So(Re(t));return n.map(function(u,l){return{op:"add",path:oe(r.concat(String(i+l))),value:u.value}})}if(kr(o)){var a=Re(t),s=Object.keys(o),c=a!==void 0?Ep(s,a,!0):[];return[].concat($e(n.map(function(u){var l=Cp(u.key,s);return{op:"add",path:oe(r.concat(l)),value:u.value}})),$e(c.map(function(u){return el(r,u)})))}throw new Error("Cannot create insert operations: parent must be an Object or Array")}function Mw(e,t,n){var r=fe(e,t);if(Array.isArray(r)){var o=r.length;return n.map(function(i,a){return{op:"add",path:oe(t.concat(String(o+a))),value:i.value}})}return n.map(function(i){var a=Cp(i.key,Object.keys(r));return{op:"add",path:oe(t.concat(a)),value:i.value}})}function Op(e,t,n,r){var o=Cp(r,t.filter(function(a){return a!==n})),i=Ep(t,n,!1);return[{op:"move",from:oe(e.concat(n)),path:oe(e.concat(o))}].concat($e(i.map(function(a){return el(e,a)})))}function Xz(e,t){var n=Re(t);if(cn(n))throw new Error("Cannot duplicate root object");var r=on(n),o=Re(n),i=fe(e,r);if(Wn(i)){var a=Re(t),s=a?So(Re(a))+1:0;return $e(t.map(function(l,f){return{op:"copy",from:oe(l),path:oe(r.concat(String(f+s)))}}))}if(kr(i)){var c=Object.keys(i),u=o!==void 0?Ep(c,o,!1):[];return[].concat($e(t.map(function(l){var f=Cp(Re(l),c);return{op:"copy",from:oe(l),path:oe(r.concat(f))}})),$e(u.map(function(l){return el(r,l)})))}throw new Error("Cannot create duplicate operations: parent must be an Object or Array")}function Zz(e,t,n,r){if(Fr(t)){var o=Ez(n,r),i=on(t.path),a=fe(e,i);return Op(i,Object.keys(a),Re(t.path),typeof o=="string"?o:n)}if(dn(t)||zn(t)&&cn(t.focusPath))try{return[{op:"replace",path:oe(ge(t)),value:V0(n,function(k){return aj(k,r)})}]}catch{return[{op:"replace",path:oe(ge(t)),value:n}]}if(zn(t)){var s=gy(n,r);return function(k,E,_){var T=on(ka(E)),$=fe(k,T);if(Wn($)){var j=ka(E),R=j?So(Re(j)):0;return[].concat($e(wg(E)),$e(_.map(function(M,P){return{op:"add",path:oe(T.concat(String(P+R))),value:M.value}})))}if(kr($)){var q=Re(E),O=on(q),F=Re(q),J=Object.keys($),I=F!==void 0?Ep(J,F,!1):[],D=new Set(E.map(function(M){return Re(M)})),C=J.filter(function(M){return!D.has(M)});return[].concat($e(wg(E)),$e(_.map(function(M){var P=Cp(M.key,C);return{op:"add",path:oe(O.concat(P)),value:M.value}})),$e(I.map(function(M){return el(O,M)})))}throw new Error("Cannot create replace operations: parent must be an Object or Array")}(e,Ec(e,t),s)}if(hi(t)){var c=gy(n,r),u=t.path,l=on(u),f=fe(e,l);if(Wn(f)){var d=So(Re(u));return Dl(e,l.concat(String(d+1)),c)}if(kr(f)){var h=String(Re(u)),p=Object.keys(f);if(cn(p)||Re(p)===h)return Mw(e,l,c);var v=p.indexOf(h),m=p[v+1];return Dl(e,l.concat(m),c)}throw new Error("Cannot create insert operations: parent must be an Object or Array")}if(Wr(t)){var g=gy(n,r),y=t.path,b=fe(e,y);if(Wn(b))return Dl(e,y.concat("0"),g);if(kr(b)){var w=Object.keys(b);if(cn(w))return Mw(e,y,g);var x=ka(w);return Dl(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 wg(e){return e.map(function(t){return{op:"remove",path:oe(t)}}).reverse()}function el(e,t){return{op:"move",from:oe(e.concat(t)),path:oe(e.concat(t))}}function gy(e,t){var n=/^\s*{/.test(e),r=/^\s*\[/.test(e),o=Ez(e,t),i=o!==void 0?o:V0(e,function(a){return aj(a,t)});return n&&pr(i)||r&&Array.isArray(i)?[{key:"New item",value:i}]:Array.isArray(i)?i.map(function(a,s){return{key:"New item "+s,value:a}}):pr(i)?Object.keys(i).map(function(a){return{key:a,value:i[a]}}):[{key:"New item",value:i}]}function tB(e,t){if(Fr(t)){var n=on(t.path),r=fe(e,n),o=Op(n,Object.keys(r),Re(t.path),"");return{operations:o,newSelection:Cf(e,o)}}if(dn(t))return{operations:[{op:"replace",path:oe(t.path),value:""}],newSelection:t};if(zn(t)){var i=Ec(e,t),a=wg(i),s=Re(i);if(cn(s))return{operations:[{op:"replace",path:"",value:""}],newSelection:We([],!1)};var c=on(s),u=fe(e,c);if(Wn(u)){var l=So(Re(ka(i)));return{operations:a,newSelection:l===0?Ws(c):Ds(c.concat(String(l-1)))}}if(kr(u)){var f=Object.keys(u),d=Re(ka(i)),h=f.indexOf(d),p=f[h-1];return{operations:a,newSelection:h===0?Ws(c):Ds(c.concat(p))}}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 eB(e,t){return nD(e,t,{before:function(n,r,o){if(YN(r)){var i=Ca(r.path);return{revertOperations:[].concat($e(o),$e(u6(n,i)))}}if(Yl(r)){var a=Ca(r.from);return{revertOperations:[].concat($e(o),$e(u6(n,a)))}}return{revertOperations:o}}})}function u6(e,t){var n=on(t),r=Re(t),o=fe(e,n);return kr(o)?Ep(Object.keys(o),r,!1).map(function(i){return el(n,i)}):[]}function Vft(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(o,i){return xt(xt({},o),{},{active:i===t})});return xt(xt({},e),{},{items:r,itemsMap:jp(r,function(o){return oe(o.path)}),activeItem:n,activeIndex:t})}function Wft(e){var t=e.activeIndex>0?e.activeIndex-1:e.items.length-1,n=e.items[t],r=e.items.map(function(o,i){return xt(xt({},o),{},{active:i===t})});return xt(xt({},e),{},{items:r,itemsMap:jp(r,function(o){return oe(o.path)}),activeItem:n,activeIndex:t})}function nB(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1/0,r=[],o=[];function i(a){r.length<n&&r.push(a)}return typeof e=="string"&&e!==""&&function a(s,c){if(Wn(c)){var u=o.length;o.push("0");for(var l=0;l<c.length;l++)if(o[u]=String(l),a(s,c[l]),r.length>=n)return;o.pop()}else if(kr(c)){var f=Object.keys(c),d=o.length;o.push("");for(var h=0,p=f;h<p.length;h++){var v=p[h];if(o[d]=v,l6(v,s,o,wa.key,i),a(s,c[v]),r.length>=n)return}o.pop()}else l6(String(c),s,o,wa.value,i)}(e.toLowerCase(),t),r}function l6(e,t,n,r,o){var i=e.toLowerCase(),a=0,s=-1,c=-1;do(c=i.indexOf(t,s))!==-1&&(s=c+t.length,o({path:n.slice(0),field:r,fieldIndex:a,start:c,end:s}),a++);while(c!==-1)}function Aw(e,t,n,r){return e.substring(0,n)+t+e.substring(r)}function f6(e,t,n){var r=e;return yw(n,function(o){r=Aw(r,t,o.start,o.end)}),r}function Uft(e,t,n,r,o){var i=r.field,a=r.path,s=r.start,c=r.end;if(i===wa.key){var u=on(a),l=fe(e,u),f=Re(a),d=Op(u,Object.keys(l),f,Aw(f,n,s,c));return{newSelection:Cf(e,d),operations:d}}if(i===wa.value){var h=fe(e,a);if(h===void 0)throw new Error("Cannot replace: path not found ".concat(oe(a)));var p=typeof h=="string"?h:String(h),v=oe(a),m=Vs(h,t.enforceStringMap,v,o),g=Aw(p,n,s,c),y=[{op:"replace",path:oe(a),value:m?g:Uf(g,o)}];return{newSelection:Cf(e,y),operations:y}}throw new Error("Cannot replace: unknown type of search result field ".concat(i))}function Kft(e,t,n,r,o){for(var i=nB(n,e,1/0),a=[],s=0;s<i.length;s++){var c=i[s-1],u=i[s];s!==0&&u.field===c.field&&an(u.path,c.path)?Re(a).items.push(u):a.push({path:u.path,field:u.field,items:[u]})}a.sort(function(d,h){return d.field!==h.field?d.field===wa.key?1:-1:h.path.length-d.path.length});var l=[],f=null;return a.forEach(function(d){var h=d.field,p=d.path,v=d.items;if(h===wa.key){var m=on(p),g=fe(e,m),y=Re(p),b=Op(m,Object.keys(g),y,f6(y,r,v));l=l.concat(b),f=Cf(e,b)}else{if(h!==wa.value)throw new Error("Cannot replace: unknown type of search result field ".concat(h));var w=fe(e,p);if(w===void 0)throw new Error("Cannot replace: path not found ".concat(oe(p)));var x=typeof w=="string"?w:String(w),k=oe(p),E=Vs(w,t.enforceStringMap,k,o),_=f6(x,r,v),T=[{op:"replace",path:oe(p),value:E?_:Uf(_,o)}];l=l.concat(T),f=Cf(e,T)}}),{operations:l,newSelection:f}}function d6(e){return e.path.concat(e.field,String(e.fieldIndex))}function Jft(e,t){var n,r=e==null||(n=e[t])===null||n===void 0?void 0:n.filter(function(o){return o.field===wa.key});if(r&&r.length!==0)return r}function h6(e,t){var n,r=e==null||(n=e[t])===null||n===void 0?void 0:n.filter(function(o){return o.field===wa.value});if(r&&r.length!==0)return r}function Gft(e){Le(e,"svelte-s6kbew",".jse-highlight.svelte-s6kbew{background-color:var(--jse-search-match-color);outline:var(--jse-search-match-outline)}.jse-highlight.jse-active.svelte-s6kbew{background-color:var(--jse-search-match-active-color);outline:var(--jse-search-match-active-outline)}")}function p6(e,t,n){var r=e.slice();return r[3]=t[n],r}function Qft(e){var t,n,r=tl(e[3].text)+"";return{c:function(){t=tt("span"),n=Gt(r),S(t,"class","jse-highlight svelte-s6kbew"),Dt(t,"jse-active",e[3].active)},m:function(o,i){ft(o,t,i),H(t,n)},p:function(o,i){1&i&&r!==(r=tl(o[3].text)+"")&&we(n,r),1&i&&Dt(t,"jse-active",o[3].active)},d:function(o){o&<(t)}}}function Yft(e){var t,n=e[3].text+"";return{c:function(){t=Gt(n)},m:function(r,o){ft(r,t,o)},p:function(r,o){1&o&&n!==(n=r[3].text+"")&&we(t,n)},d:function(r){r&<(t)}}}function v6(e){var t;function n(i,a){return i[3].type==="normal"?Yft:Qft}var r=n(e),o=r(e);return{c:function(){o.c(),t=Sn()},m:function(i,a){o.m(i,a),ft(i,t,a)},p:function(i,a){r===(r=n(i))&&o?o.p(i,a):(o.d(1),(o=r(i))&&(o.c(),o.m(t.parentNode,t)))},d:function(i){i&<(t),o.d(i)}}}function Xft(e){for(var t,n=De(e[0]),r=[],o=0;o<n.length;o+=1)r[o]=v6(p6(e,n,o));return{c:function(){for(var i=0;i<r.length;i+=1)r[i].c();t=Sn()},m:function(i,a){for(var s=0;s<r.length;s+=1)r[s]&&r[s].m(i,a);ft(i,t,a)},p:function(i,a){var s=Ce(a,1)[0];if(1&s){var c;for(n=De(i[0]),c=0;c<n.length;c+=1){var u=p6(i,n,c);r[c]?r[c].p(u,s):(r[c]=v6(u),r[c].c(),r[c].m(t.parentNode,t))}for(;c<r.length;c+=1)r[c].d(1);r.length=n.length}},i:Ht,o:Ht,d:function(i){i&<(t),Dr(r,i)}}}function Zft(e,t,n){var r,o=t.text,i=t.searchResultItems;return e.$$set=function(a){"text"in a&&n(1,o=a.text),"searchResultItems"in a&&n(2,i=a.searchResultItems)},e.$$.update=function(){6&e.$$.dirty&&n(0,r=function(a,s){var c,u=[],l=0,f=ht(s);try{for(f.s();!(c=f.n()).done;){var d=c.value,h=a.slice(l,d.start);h!==""&&u.push({type:"normal",text:h,active:!1});var p=a.slice(d.start,d.end);u.push({type:"highlight",text:p,active:d.active}),l=d.end}}catch(m){f.e(m)}finally{f.f()}var v=Re(s);return v&&v.end<a.length&&u.push({type:"normal",text:a.slice(v.end),active:!1}),u}(String(o),i))},[r,o,i]}var rB=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,Zft,Xft,eo,{text:1,searchResultItems:2},Gft),o}return it(n)}();function tdt(e){Le(e,"svelte-4unvg2",'.jse-value.jse-string.svelte-4unvg2{color:var(--jse-value-color-string)}.jse-value.jse-object.svelte-4unvg2,.jse-value.jse-array.svelte-4unvg2{min-width:16px;color:var(--jse-delimiter-color)}.jse-value.jse-number.svelte-4unvg2{color:var(--jse-value-color-number)}.jse-value.jse-boolean.svelte-4unvg2{color:var(--jse-value-color-boolean)}.jse-value.jse-null.svelte-4unvg2{color:var(--jse-value-color-null)}.jse-value.jse-invalid.svelte-4unvg2{color:var(--jse-text-color)}.jse-value.jse-url.svelte-4unvg2{color:var(--jse-value-color-url);text-decoration:underline}.jse-value.svelte-4unvg2{min-width:2em;padding:0 5px;box-sizing:border-box;outline:none;border-radius:1px;vertical-align:top;cursor:var(--jse-contents-cursor);word-break:normal;overflow-wrap:anywhere;white-space:pre-wrap}.jse-value.svelte-4unvg2:hover{background:var(--jse-hover-background-color)}.jse-value.jse-empty.svelte-4unvg2{min-width:4em;outline:1px dotted var(--jse-tag-background);-moz-outline-radius:2px}.jse-value.jse-empty.svelte-4unvg2::after{pointer-events:none;color:var(--jse-tag-background);content:"value"}')}function edt(e){var t,n=tl(e[1].escapeValue(e[0]))+"";return{c:function(){t=Gt(n)},m:function(r,o){ft(r,t,o)},p:function(r,o){3&o&&n!==(n=tl(r[1].escapeValue(r[0]))+"")&&we(t,n)},i:Ht,o:Ht,d:function(r){r&<(t)}}}function ndt(e){var t,n;return t=new rB({props:{text:e[1].escapeValue(e[0]),searchResultItems:e[3]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};3&o&&(i.text=r[1].escapeValue(r[0])),8&o&&(i.searchResultItems=r[3]),t.$set(i)},i:function(r){n||(z(t.$$.fragment,r),n=!0)},o:function(r){V(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function rdt(e){var t,n,r,o,i,a,s,c,u=[ndt,edt],l=[];function f(d,h){return d[3]?0:1}return n=f(e),r=l[n]=u[n](e),{c:function(){t=tt("div"),r.c(),S(t,"role","button"),S(t,"tabindex","-1"),S(t,"data-type","selectable-value"),S(t,"class",o=dr(Lh(e[0],e[2]))+" svelte-4unvg2"),S(t,"title",i=e[4]?"Ctrl+Click or Ctrl+Enter to open url in new window":null)},m:function(d,h){ft(d,t,h),l[n].m(t,null),a=!0,s||(c=[zt(t,"click",e[5]),zt(t,"dblclick",e[6])],s=!0)},p:function(d,h){var p=Ce(h,1)[0],v=n;(n=f(d))===v?l[n].p(d,p):(Bt(),V(l[v],1,1,function(){l[v]=null}),Ft(),(r=l[n])?r.p(d,p):(r=l[n]=u[n](d)).c(),z(r,1),r.m(t,null)),(!a||5&p&&o!==(o=dr(Lh(d[0],d[2]))+" svelte-4unvg2"))&&S(t,"class",o),(!a||16&p&&i!==(i=d[4]?"Ctrl+Click or Ctrl+Enter to open url in new window":null))&&S(t,"title",i)},i:function(d){a||(z(r),a=!0)},o:function(d){V(r),a=!1},d:function(d){d&<(t),l[n].d(),s=!1,Fn(c)}}}function odt(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(f){"path"in f&&n(7,o=f.path),"value"in f&&n(0,i=f.value),"readOnly"in f&&n(8,a=f.readOnly),"normalization"in f&&n(1,s=f.normalization),"parser"in f&&n(2,c=f.parser),"onSelect"in f&&n(9,u=f.onSelect),"searchResultItems"in f&&n(3,l=f.searchResultItems)},e.$$.update=function(){1&e.$$.dirty&&n(4,r=C0(i))},[i,s,c,l,r,function(f){typeof i=="string"&&r&&f.ctrlKey&&(f.preventDefault(),f.stopPropagation(),window.open(i,"_blank"))},function(f){a||(f.preventDefault(),u(We(o,!0)))},o,a,u]}var idt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,odt,rdt,qe,{path:7,value:0,readOnly:8,normalization:1,parser:2,onSelect:9,searchResultItems:3},tdt),o}return it(n)}();function adt(e){Le(e,"svelte-r4omvg",".jse-tooltip.svelte-r4omvg{font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;padding:calc(0.5 * var(--jse-padding)) var(--jse-padding);border-radius:3px;background:var(--jse-context-menu-background);color:var(--jse-context-menu-color);white-space:nowrap;box-shadow:var(--jse-controls-box-shadow)}")}function sdt(e){var t,n;return{c:function(){t=tt("div"),n=Gt(e[0]),S(t,"class","jse-tooltip svelte-r4omvg")},m:function(r,o){ft(r,t,o),H(t,n)},p:function(r,o){1&Ce(o,1)[0]&&we(n,r[0])},i:Ht,o:Ht,d:function(r){r&<(t)}}}function cdt(e,t,n){var r=t.text;return e.$$set=function(o){"text"in o&&n(0,r=o.text)},[r]}var udt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,cdt,sdt,eo,{text:0},adt),o}return it(n)}();function hj(e,t){var n,r=t.text,o=t.openAbsolutePopup,i=t.closeAbsolutePopup;function a(){n=o(udt,{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 ldt(e){Le(e,"svelte-1w5pf7",".jse-timestamp.svelte-1w5pf7{padding:0;margin:0;vertical-align:middle;display:inline-flex;color:var(--jse-value-color-number)}")}function fdt(e){var t,n,r,o,i,a;return n=new hn({props:{data:pft}}),{c:function(){t=tt("div"),Pt(n.$$.fragment),S(t,"class","jse-timestamp svelte-1w5pf7")},m:function(s,c){ft(s,t,c),Mt(n,t,null),o=!0,i||(a=fo(r=hj.call(null,t,xt({text:e[0]},e[1]))),i=!0)},p:function(s,c){var u=Ce(c,1)[0];r&&uo(r.update)&&1&u&&r.update.call(null,xt({text:s[0]},s[1]))},i:function(s){o||(z(n.$$.fragment,s),o=!0)},o:function(s){V(n.$$.fragment,s),o=!1},d:function(s){s&<(t),At(n),i=!1,a()}}}function ddt(e,t,n){var r,o=ho("absolute-popup"),i=t.value;return e.$$set=function(a){"value"in a&&n(2,i=a.value)},e.$$.update=function(){4&e.$$.dirty&&n(0,r="Time: ".concat(new Date(i).toString()))},[r,o,i]}var hdt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,ddt,fdt,qe,{value:2},ldt),o}return it(n)}();function pdt(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,p=e.focus,v=[];return!a&&function(m){return m===!0||m===!1}(n)&&v.push({component:Eft,props:{path:t,value:n,readOnly:r,onPatch:u,focus:p}}),!a&&function(m){return typeof m=="string"&&!!sD(m)}(n)&&v.push({component:Nft,props:{path:t,value:n,readOnly:r,onPatch:u,focus:p}}),a&&v.push({component:Hft,props:{path:t,value:n,enforceString:o,parser:s,normalization:c,onPatch:u,onPasteJson:l,onSelect:f,onFind:d,findNextInside:h,focus:p}}),a||v.push({component:idt,props:{path:t,value:n,readOnly:r,parser:s,normalization:c,searchResultItems:i,onSelect:f}}),!a&&lw(n)&&v.push({component:hdt,props:{value:n}}),v}var Pw={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"]},bc={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"]},oB={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-48V256H416c-17.7 0-32-14.3-32-32V128H320 272zM160 40a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm256 88v96h96l-96-96z"]},vdt={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"]},ef={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"]},mdt={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"]},gdt={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"]},m6={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"]},ydt={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"]},iB={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"]},bdt={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"]},g6={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"]},K0={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"]},Hc={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"]},J0={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"]},wdt={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"]},nf={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"]},pj={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"]},vj={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"]},xdt={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"]},kdt={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"]},Ri={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"]},aB={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"]},hv={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"]},G0={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"]},jdt={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"]},_dt={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"]},mj={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"]},Sdt={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"]},Mc={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"]},Ll={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"]},sB={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"]},y6=sB,Ef=sB,$dt={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"]},cB={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"]},zh={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"]},dl={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"]},ta={};function Q0(e){return e.split("-")[1]}function uB(e){return e==="y"?"height":"width"}function Bu(e){return e.split("-")[0]}function Y0(e){return["top","bottom"].includes(Bu(e))?"x":"y"}function b6(e,t,n){var r,o=e.reference,i=e.floating,a=o.x+o.width/2-i.width/2,s=o.y+o.height/2-i.height/2,c=Y0(t),u=uB(c),l=o[u]/2-i[u]/2,f=c==="x";switch(Bu(t)){case"top":r={x:a,y:o.y-i.height};break;case"bottom":r={x:a,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:s};break;case"left":r={x:o.x-i.width,y:s};break;default:r={x:o.x,y:o.y}}switch(Q0(t)){case"start":r[c]-=l*(n&&f?-1:1);break;case"end":r[c]+=l*(n&&f?-1:1)}return r}var Cdt=function(){var e=Ae(qt().mark(function t(n,r,o){var i,a,s,c,u,l,f,d,h,p,v,m,g,y,b,w,x,k,E,_,T,$,j,R,q,O;return qt().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return i=o.placement,a=i===void 0?"bottom":i,s=o.strategy,c=s===void 0?"absolute":s,u=o.middleware,l=u===void 0?[]:u,f=o.platform,d=l.filter(Boolean),F.next=10,f.isRTL==null?void 0:f.isRTL(r);case 10:return h=F.sent,F.next=13,f.getElementRects({reference:n,floating:r,strategy:c});case 13:p=F.sent,v=b6(p,a,h),m=v.x,g=v.y,y=a,b={},w=0,x=0;case 21:if(!(x<d.length)){F.next=56;break}return E=d[x],_=E.name,T=E.fn,F.next=27,T({x:m,y:g,initialPlacement:a,placement:y,strategy:c,middlewareData:b,rects:p,platform:f,elements:{reference:n,floating:r}});case 27:if($=F.sent,j=$.x,R=$.y,q=$.data,O=$.reset,m=j??m,g=R??g,b=xt(xt({},b),{},Wo({},_,xt(xt({},b[_]),q))),F.t0=O&&w<=50,!F.t0){F.next=53;break}if(w++,F.t1=ce(O)=="object",!F.t1){F.next=52;break}if(O.placement&&(y=O.placement),F.t2=O.rects,!F.t2){F.next=51;break}if(O.rects!==!0){F.next=49;break}return F.next=46,f.getElementRects({reference:n,floating:r,strategy:c});case 46:F.t3=F.sent,F.next=50;break;case 49:F.t3=O.rects;case 50:p=F.t3;case 51:k=b6(p,y,h),m=k.x,g=k.y;case 52:x=-1;case 53:x++,F.next=21;break;case 56:return F.abrupt("return",{x:m,y:g,placement:y,strategy:c,middlewareData:b});case 57:case"end":return F.stop()}},t)}));return function(t,n,r){return e.apply(this,arguments)}}();function Edt(e){return typeof e!="number"?function(t){return xt({top:0,right:0,bottom:0,left:0},t)}(e):{top:e,right:e,bottom:e,left:e}}function Tw(e){return xt(xt({},e),{},{top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height})}function lB(e,t){return Rw.apply(this,arguments)}function Rw(){return Rw=Ae(qt().mark(function e(t,n){var r,o,i,a,s,c,u,l,f,d,h,p,v,m,g,y,b,w,x,k,E,_,T,$;return qt().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return n===void 0&&(n={}),o=t.x,i=t.y,a=t.platform,s=t.rects,c=t.elements,u=t.strategy,f=(l=n).boundary,d=f===void 0?"clippingAncestors":f,h=l.rootBoundary,p=h===void 0?"viewport":h,v=l.elementContext,m=v===void 0?"floating":v,g=l.altBoundary,y=g!==void 0&&g,b=l.padding,w=Edt(b===void 0?0:b),x=c[y?m==="floating"?"reference":"floating":m],j.t0=Tw,j.t1=a,j.next=24,a.isElement==null?void 0:a.isElement(x);case 24:if(j.t3=r=j.sent,j.t2=j.t3==null,j.t2){j.next=28;break}j.t2=r;case 28:if(!j.t2){j.next=32;break}j.t4=x,j.next=38;break;case 32:if(j.t5=x.contextElement,j.t5){j.next=37;break}return j.next=36,a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating);case 36:j.t5=j.sent;case 37:j.t4=j.t5;case 38:return j.t6=j.t4,j.t7=d,j.t8=p,j.t9=u,j.t10={element:j.t6,boundary:j.t7,rootBoundary:j.t8,strategy:j.t9},j.next=45,j.t1.getClippingRect.call(j.t1,j.t10);case 45:return j.t11=j.sent,k=(0,j.t0)(j.t11),E=m==="floating"?xt(xt({},s.floating),{},{x:o,y:i}):s.reference,j.next=50,a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating);case 50:return _=j.sent,j.next=53,a.isElement==null?void 0:a.isElement(_);case 53:if(j.t13=j.sent,!j.t13){j.next=58;break}return j.next=57,a.getScale==null?void 0:a.getScale(_);case 57:j.t13=j.sent;case 58:if(j.t12=j.t13,j.t12){j.next=61;break}j.t12={x:1,y:1};case 61:if(T=j.t12,j.t14=Tw,!a.convertOffsetParentRelativeRectToViewportRelativeRect){j.next=69;break}return j.next=66,a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:E,offsetParent:_,strategy:u});case 66:j.t15=j.sent,j.next=70;break;case 69:j.t15=E;case 70:return j.t16=j.t15,$=(0,j.t14)(j.t16),j.abrupt("return",{top:(k.top-$.top+w.top)/T.y,bottom:($.bottom-k.bottom+w.bottom)/T.y,left:(k.left-$.left+w.left)/T.x,right:($.right-k.right+w.right)/T.x});case 73:case"end":return j.stop()}},e)})),Rw.apply(this,arguments)}var Odt=Math.min,Mdt=Math.max;function w6(e,t,n){return Mdt(e,Odt(t,n))}["top","right","bottom","left"].reduce(function(e,t){return e.concat(t,t+"-start",t+"-end")},[]);var Adt={left:"right",right:"left",bottom:"top",top:"bottom"};function xg(e){return e.replace(/left|right|bottom|top/g,function(t){return Adt[t]})}function Pdt(e,t,n){n===void 0&&(n=!1);var r=Q0(e),o=Y0(e),i=uB(o),a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=xg(a)),{main:a,cross:xg(a)}}var Tdt={start:"end",end:"start"};function yy(e){return e.replace(/start|end/g,function(t){return Tdt[t]})}var Rdt=function(e){return e===void 0&&(e={}),{name:"flip",options:e,fn:function(t){return Ae(qt().mark(function n(){var r,o,i,a,s,c,u,l,f,d,h,p,v,m,g,y,b,w,x,k,E,_,T,$,j,R,q,O,F,J,I,D,C,M,P,B,A,W;return qt().wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return o=t.placement,i=t.middlewareData,a=t.rects,s=t.initialPlacement,c=t.platform,u=t.elements,f=(l=e).mainAxis,d=f===void 0||f,h=l.crossAxis,p=h===void 0||h,v=l.fallbackPlacements,m=l.fallbackStrategy,g=m===void 0?"bestFit":m,y=l.fallbackAxisSideDirection,b=y===void 0?"none":y,w=l.flipAlignment,x=w===void 0||w,k=CN(l,nZ),E=Bu(o),_=Bu(s)===s,N.next=23,c.isRTL==null?void 0:c.isRTL(u.floating);case 23:return T=N.sent,$=v||(_||!x?[xg(s)]:function(dt){var et=xg(dt);return[yy(dt),et,yy(et)]}(s)),v||b==="none"||$.push.apply($,$e(function(dt,et,yt,bt){var jt=Q0(dt),gt=function(Y,K,rt){var X=["left","right"],_t=["right","left"];switch(Y){case"top":case"bottom":return rt?K?_t:X:K?X:_t;case"left":case"right":return K?["top","bottom"]:["bottom","top"];default:return[]}}(Bu(dt),yt==="start",bt);return jt&&(gt=gt.map(function(Y){return Y+"-"+jt}),et&&(gt=gt.concat(gt.map(yy)))),gt}(s,x,b,T))),j=[s].concat($e($)),N.next=29,lB(t,k);case 29:if(R=N.sent,q=[],O=((r=i.flip)==null?void 0:r.overflows)||[],d&&q.push(R[E]),p&&(F=Pdt(o,a,T),J=F.main,I=F.cross,q.push(R[J],R[I])),O=[].concat($e(O),[{placement:o,overflows:q}]),q.every(function(dt){return dt<=0})){N.next=48;break}if(M=(((D=i.flip)==null?void 0:D.index)||0)+1,!(P=j[M])){N.next=37;break}return N.abrupt("return",{data:{index:M,overflows:O},reset:{placement:P}});case 37:if(B=(C=O.filter(function(dt){return dt.overflows[0]<=0}).sort(function(dt,et){return dt.overflows[1]-et.overflows[1]})[0])==null?void 0:C.placement,B){N.next=46;break}N.t0=g,N.next=N.t0==="bestFit"?42:N.t0==="initialPlacement"?45:46;break;case 42:return W=(A=O.map(function(dt){return[dt.placement,dt.overflows.filter(function(et){return et>0}).reduce(function(et,yt){return et+yt},0)]}).sort(function(dt,et){return dt[1]-et[1]})[0])==null?void 0:A[0],W&&(B=W),N.abrupt("break",46);case 45:B=s;case 46:if(o===B){N.next=48;break}return N.abrupt("return",{reset:{placement:B}});case 48:return N.abrupt("return",{});case 49:case"end":return N.stop()}},n)}))()}}},Idt=function(e){return e===void 0&&(e=0),{name:"offset",options:e,fn:function(t){return Ae(qt().mark(function n(){var r,o,i;return qt().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return r=t.x,o=t.y,a.next=4,function(){var s=Ae(qt().mark(function c(u,l){var f,d,h,p,v,m,g,y,b,w,x,k,E,_;return qt().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return f=u.placement,d=u.platform,h=u.elements,T.next=5,d.isRTL==null?void 0:d.isRTL(h.floating);case 5:return p=T.sent,v=Bu(f),m=Q0(f),g=Y0(f)==="x",y=["left","top"].includes(v)?-1:1,b=p&&g?-1:1,w=typeof l=="function"?l(u):l,x=typeof w=="number"?{mainAxis:w,crossAxis:0,alignmentAxis:null}:xt({mainAxis:0,crossAxis:0,alignmentAxis:null},w),k=x.mainAxis,E=x.crossAxis,_=x.alignmentAxis,T.abrupt("return",(m&&typeof _=="number"&&(E=m==="end"?-1*_:_),g?{x:E*b,y:k*y}:{x:k*y,y:E*b}));case 14:case"end":return T.stop()}},c)}));return function(c,u){return s.apply(this,arguments)}}()(t,e);case 4:return i=a.sent,a.abrupt("return",{x:r+i.x,y:o+i.y,data:i});case 6:case"end":return a.stop()}},n)}))()}}};function Ndt(e){return e==="x"?"y":"x"}var Ddt=function(e){return e===void 0&&(e={}),{name:"shift",options:e,fn:function(t){return Ae(qt().mark(function n(){var r,o,i,a,s,c,u,l,f,d,h,p,v,m,g,y,b,w,x,k,E;return qt().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return o=t.x,i=t.y,a=t.placement,c=(s=e).mainAxis,u=c===void 0||c,l=s.crossAxis,f=l!==void 0&&l,d=s.limiter,h=d===void 0?{fn:function(T){return{x:T.x,y:T.y}}}:d,p=CN(s,rZ),v={x:o,y:i},_.next=14,lB(t,p);case 14:return m=_.sent,g=Y0(Bu(a)),y=Ndt(g),b=v[g],w=v[y],u&&(x=g==="y"?"bottom":"right",b=w6(b+m[g==="y"?"top":"left"],b,b-m[x])),f&&(k=y==="y"?"bottom":"right",w=w6(w+m[y==="y"?"top":"left"],w,w-m[k])),E=h.fn(xt(xt({},t),{},(Wo(r={},g,b),Wo(r,y,w),r))),_.abrupt("return",xt(xt({},E),{},{data:{x:E.x-o,y:E.y-i}}));case 22:case"end":return _.stop()}},n)}))()}}};function pi(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function es(e){return pi(e).getComputedStyle(e)}var by,x6=Math.min,ah=Math.max,kg=Math.round;function fB(e){var t=es(e),n=parseFloat(t.width),r=parseFloat(t.height),o=e.offsetWidth,i=e.offsetHeight,a=kg(n)!==o||kg(r)!==i;return a&&(n=o,r=i),{width:n,height:r,fallback:a}}function Vc(e){return hB(e)?(e.nodeName||"").toLowerCase():""}function dB(){if(by)return by;var e=navigator.userAgentData;return e&&Array.isArray(e.brands)?by=e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function ns(e){return e instanceof pi(e).HTMLElement}function ja(e){return e instanceof pi(e).Element}function hB(e){return e instanceof pi(e).Node}function k6(e){return typeof ShadowRoot<"u"&&(e instanceof pi(e).ShadowRoot||e instanceof ShadowRoot)}function X0(e){var t=es(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 Ldt(e){return["table","td","th"].includes(Vc(e))}function Iw(e){var t=/firefox/i.test(dB()),n=es(e),r=n.backdropFilter||n.WebkitBackdropFilter;return n.transform!=="none"||n.perspective!=="none"||!!r&&r!=="none"||t&&n.willChange==="filter"||t&&!!n.filter&&n.filter!=="none"||["transform","perspective"].some(function(o){return n.willChange.includes(o)})||["paint","layout","strict","content"].some(function(o){var i=n.contain;return i!=null&&i.includes(o)})}function Nw(){return/^((?!chrome|android).)*safari/i.test(dB())}function gj(e){return["html","body","#document"].includes(Vc(e))}function pB(e){return ja(e)?e:e.contextElement}var vB={x:1,y:1};function rf(e){var t=pB(e);if(!ns(t))return vB;var n=t.getBoundingClientRect(),r=fB(t),o=r.width,i=r.height,a=r.fallback,s=(a?kg(n.width):n.width)/o,c=(a?kg(n.height):n.height)/i;return s&&Number.isFinite(s)||(s=1),c&&Number.isFinite(c)||(c=1),{x:s,y:c}}function nl(e,t,n,r){var o,i;t===void 0&&(t=!1),n===void 0&&(n=!1);var a=e.getBoundingClientRect(),s=pB(e),c=vB;t&&(r?ja(r)&&(c=rf(r)):c=rf(e));var u=s?pi(s):window,l=Nw()&&n,f=(a.left+(l&&((o=u.visualViewport)==null?void 0:o.offsetLeft)||0))/c.x,d=(a.top+(l&&((i=u.visualViewport)==null?void 0:i.offsetTop)||0))/c.y,h=a.width/c.x,p=a.height/c.y;if(s)for(var v=pi(s),m=r&&ja(r)?pi(r):r,g=v.frameElement;g&&r&&m!==v;){var y=rf(g),b=g.getBoundingClientRect(),w=getComputedStyle(g);b.x+=(g.clientLeft+parseFloat(w.paddingLeft))*y.x,b.y+=(g.clientTop+parseFloat(w.paddingTop))*y.y,f*=y.x,d*=y.y,h*=y.x,p*=y.y,f+=b.x,d+=b.y,g=pi(g).frameElement}return{width:h,height:p,top:d,right:f+h,bottom:d+p,left:f,x:f,y:d}}function Ac(e){return((hB(e)?e.ownerDocument:e.document)||window.document).documentElement}function Z0(e){return ja(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function mB(e){return nl(Ac(e)).left+Z0(e).scrollLeft}function Bh(e){if(Vc(e)==="html")return e;var t=e.assignedSlot||e.parentNode||k6(e)&&e.host||Ac(e);return k6(t)?t.host:t}function gB(e){var t=Bh(e);return gj(t)?t.ownerDocument.body:ns(t)&&X0(t)?t:gB(t)}function sh(e,t){var n;t===void 0&&(t=[]);var r=gB(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=pi(r);return o?t.concat(i,i.visualViewport||[],X0(r)?r:[]):t.concat(r,sh(r))}function j6(e,t,n){var r;if(t==="viewport")r=function(c,u){var l=pi(c),f=Ac(c),d=l.visualViewport,h=f.clientWidth,p=f.clientHeight,v=0,m=0;if(d){h=d.width,p=d.height;var g=Nw();(!g||g&&u==="fixed")&&(v=d.offsetLeft,m=d.offsetTop)}return{width:h,height:p,x:v,y:m}}(e,n);else if(t==="document")r=function(c){var u=Ac(c),l=Z0(c),f=c.ownerDocument.body,d=ah(u.scrollWidth,u.clientWidth,f.scrollWidth,f.clientWidth),h=ah(u.scrollHeight,u.clientHeight,f.scrollHeight,f.clientHeight),p=-l.scrollLeft+mB(c),v=-l.scrollTop;return es(f).direction==="rtl"&&(p+=ah(u.clientWidth,f.clientWidth)-d),{width:d,height:h,x:p,y:v}}(Ac(e));else if(ja(t))r=function(c,u){var l=nl(c,!0,u==="fixed"),f=l.top+c.clientTop,d=l.left+c.clientLeft,h=ns(c)?rf(c):{x:1,y:1};return{width:c.clientWidth*h.x,height:c.clientHeight*h.y,x:d*h.x,y:f*h.y}}(t,n);else{var o=xt({},t);if(Nw()){var i,a,s=pi(e);o.x-=((i=s.visualViewport)==null?void 0:i.offsetLeft)||0,o.y-=((a=s.visualViewport)==null?void 0:a.offsetTop)||0}r=o}return Tw(r)}function _6(e,t){return ns(e)&&es(e).position!=="fixed"?t?t(e):e.offsetParent:null}function S6(e,t){for(var n=pi(e),r=_6(e,t);r&&Ldt(r)&&es(r).position==="static";)r=_6(r,t);return r&&(Vc(r)==="html"||Vc(r)==="body"&&es(r).position==="static"&&!Iw(r))?n:r||function(o){for(var i=Bh(o);ns(i)&&!gj(i);){if(Iw(i))return i;i=Bh(i)}return null}(e)||n}function zdt(e,t,n){var r=ns(t),o=Ac(t),i=nl(e,!0,n==="fixed",t),a={scrollLeft:0,scrollTop:0},s={x:0,y:0};if(r||!r&&n!=="fixed")if((Vc(t)!=="body"||X0(o))&&(a=Z0(t)),ns(t)){var c=nl(t,!0);s.x=c.x+t.clientLeft,s.y=c.y+t.clientTop}else o&&(s.x=mB(o));return{x:i.left+a.scrollLeft-s.x,y:i.top+a.scrollTop-s.y,width:i.width,height:i.height}}var Bdt={getClippingRect:function(e){var t=e.element,n=e.boundary,r=e.rootBoundary,o=e.strategy,i=n==="clippingAncestors"?function(u,l){var f=l.get(u);if(f)return f;for(var d=sh(u).filter(function(y){return ja(y)&&Vc(y)!=="body"}),h=null,p=es(u).position==="fixed",v=p?Bh(u):u;ja(v)&&!gj(v);){var m=es(v),g=Iw(v);m.position==="fixed"?h=null:(p?g||h:g||m.position!=="static"||!h||!["absolute","fixed"].includes(h.position))?h=m:d=d.filter(function(y){return y!==v}),v=Bh(v)}return l.set(u,d),d}(t,this._c):[].concat(n),a=[].concat($e(i),[r]),s=a[0],c=a.reduce(function(u,l){var f=j6(t,l,o);return u.top=ah(f.top,u.top),u.right=x6(f.right,u.right),u.bottom=x6(f.bottom,u.bottom),u.left=ah(f.left,u.left),u},j6(t,s,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){var t=e.rect,n=e.offsetParent,r=e.strategy,o=ns(n),i=Ac(n);if(n===i)return t;var a={scrollLeft:0,scrollTop:0},s={x:1,y:1},c={x:0,y:0};if((o||!o&&r!=="fixed")&&((Vc(n)!=="body"||X0(i))&&(a=Z0(n)),ns(n))){var u=nl(n);s=rf(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}},isElement:ja,getDimensions:function(e){return ns(e)?fB(e):e.getBoundingClientRect()},getOffsetParent:S6,getDocumentElement:Ac,getScale:rf,getElementRects:function(e){var t=this;return Ae(qt().mark(function n(){var r,o,i,a,s;return qt().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return r=e.reference,o=e.floating,i=e.strategy,a=t.getOffsetParent||S6,s=t.getDimensions,c.t0=zdt,c.t1=r,c.next=6,a(o);case 6:return c.t2=c.sent,c.t3=i,c.t4=(0,c.t0)(c.t1,c.t2,c.t3),c.t5=xt,c.t6={x:0,y:0},c.next=13,s(o);case 13:return c.t7=c.sent,c.t8=(0,c.t5)(c.t6,c.t7),c.abrupt("return",{reference:c.t4,floating:c.t8});case 16:case"end":return c.stop()}},n)}))()},getClientRects:function(e){return Array.from(e.getClientRects())},isRTL:function(e){return es(e).direction==="rtl"}},Fdt=function(e,t,n){var r=new Map,o=xt({platform:Bdt},n),i=xt(xt({},o.platform),{},{_c:r});return Cdt(e,t,xt(xt({},o),{},{platform:i}))};function qdt(e){var t,n,r={autoUpdate:!0},o=e,i=function(c){return xt(xt(xt({},r),e||{}),c||{})},a=function(c){t&&n&&(o=i(c),Fdt(t,n,o).then(function(u){var l;Object.assign(n.style,{position:u.strategy,left:"".concat(u.x,"px"),top:"".concat(u.y,"px")}),!((l=o)===null||l===void 0)&&l.onComputed&&o.onComputed(u)}))},s=function(c){gi(c.subscribe(function(u){t===void 0?(t=u,a()):(Object.assign(t,u),a())}))};return[function(c){if("subscribe"in c)return s(c),{};t=c,a()},function(c,u){var l;n=c,o=i(u),setTimeout(function(){return a(u)},0),a(u);var f=function(){l&&(l(),l=void 0)},d=function(){var h=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:o||{}).autoUpdate;if(f(),h!==!1)return function(p,v,m,g){g===void 0&&(g={});var y=g,b=y.ancestorScroll,w=b===void 0||b,x=y.ancestorResize,k=x===void 0||x,E=y.elementResize,_=E===void 0||E,T=y.animationFrame,$=T!==void 0&&T,j=w&&!$,R=j||k?[].concat($e(ja(p)?sh(p):p.contextElement?sh(p.contextElement):[]),$e(sh(v))):[];R.forEach(function(I){j&&I.addEventListener("scroll",m,{passive:!0}),k&&I.addEventListener("resize",m)});var q,O=null;if(_){var F=!0;O=new ResizeObserver(function(){F||m(),F=!1}),ja(p)&&!$&&O.observe(p),ja(p)||!p.contextElement||$||O.observe(p.contextElement),O.observe(v)}var J=$?nl(p):null;return $&&function I(){var D=nl(p);!J||D.x===J.x&&D.y===J.y&&D.width===J.width&&D.height===J.height||m(),J=D,q=requestAnimationFrame(I)}(),m(),function(){var I;R.forEach(function(D){j&&D.removeEventListener("scroll",m),k&&D.removeEventListener("resize",m)}),(I=O)==null||I.disconnect(),O=null,$&&cancelAnimationFrame(q)}}(t,n,function(){return a(o)},h===!0?{}:h)};return l=d(),{update:function(h){a(h),l=d(h)},destroy:function(){f()}}},a]}function Hdt(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&&ce(r[0])!=="object"&&(r=l(r));var h=r.filter(function(p){var v=u(p[d],n,p);return v&&o&&i!=null&&i.length&&(v=!i.some(function(m){return!!c&&m[a]===p[a]})),v});return s&&(h=f(h)),h}function Vdt(e){return Dw.apply(this,arguments)}function Dw(){return Dw=Ae(qt().mark(function e(t){var n,r,o,i,a;return qt().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return n=t.dispatch,r=t.loadOptions,o=t.convertStringItemsToObjects,i=t.filterText,s.next=3,r(i).catch(function(c){console.warn("svelte-select loadOptions error :>> ",c),n("error",{type:"loadOptions",details:c})});case 3:if(!(a=s.sent)||a.cancelled){s.next=7;break}return a?(a&&a.length>0&&ce(a[0])!=="object"&&(a=o(a)),n("loaded",{items:a})):a=[],s.abrupt("return",{filteredItems:a,loading:!1,focused:!0,listOpen:!0});case 7:case"end":return s.stop()}},e)})),Dw.apply(this,arguments)}function Wdt(e){Le(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 Udt(e){var t,n;return{c:function(){t=as("svg"),S(n=as("path"),"fill","currentColor"),S(n,"d",`M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747
|
|
94
|
+
3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0
|
|
95
|
+
1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502
|
|
96
|
+
0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0
|
|
97
|
+
0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z`),S(t,"width","100%"),S(t,"height","100%"),S(t,"viewBox","0 0 20 20"),S(t,"focusable","false"),S(t,"aria-hidden","true"),S(t,"class","svelte-qbd276")},m:function(r,o){ft(r,t,o),H(t,n)},p:Ht,i:Ht,o:Ht,d:function(r){r&<(t)}}}var Kdt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,null,Udt,eo,{},Wdt),o}return it(n)}();function Jdt(e){Le(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 Gdt(e){var t,n;return{c:function(){t=as("svg"),S(n=as("path"),"fill","currentColor"),S(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
|
|
98
|
+
l3.641,3.641L27.641,22.688L38.564,33.61L34.923,37.251z`),S(t,"width","100%"),S(t,"height","100%"),S(t,"viewBox","-2 -2 50 50"),S(t,"focusable","false"),S(t,"aria-hidden","true"),S(t,"role","presentation"),S(t,"class","svelte-whdbu1")},m:function(r,o){ft(r,t,o),H(t,n)},p:Ht,i:Ht,o:Ht,d:function(r){r&<(t)}}}var jg=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,null,Gdt,eo,{},Jdt),o}return it(n)}();function Qdt(e){Le(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 Ydt(e){var t,n;return{c:function(){t=as("svg"),S(n=as("circle"),"class","circle_path svelte-1p3nqvd"),S(n,"cx","50"),S(n,"cy","50"),S(n,"r","20"),S(n,"fill","none"),S(n,"stroke","currentColor"),S(n,"stroke-width","5"),S(n,"stroke-miterlimit","10"),S(t,"class","loading svelte-1p3nqvd"),S(t,"viewBox","25 25 50 50")},m:function(r,o){ft(r,t,o),H(t,n)},p:Ht,i:Ht,o:Ht,d:function(r){r&<(t)}}}var Xdt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,null,Ydt,eo,{},Qdt),o}return it(n)}();function Zdt(e){Le(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 tht=function(e){return{value:8&e[0]}},$6=function(e){return{value:e[3]}},eht=function(e){return{value:8&e[0]}},C6=function(e){return{value:e[3]}},nht=function(e){return{listOpen:64&e[0]}},E6=function(e){return{listOpen:e[6]}},rht=function(e){return{}},O6=function(e){return{}},oht=function(e){return{}},M6=function(e){return{}},iht=function(e){return{selection:8&e[0]}},A6=function(e){return{selection:e[3]}};function P6(e,t,n){var r=e.slice();return r[125]=t[n],r[127]=n,r}var aht=function(e){return{}},T6=function(e){return{}},sht=function(e){return{selection:8&e[0]}},R6=function(e){return{selection:e[125],index:e[127]}},cht=function(e){return{}},I6=function(e){return{}},uht=function(e){return{}},N6=function(e){return{}},lht=function(e){return{}},D6=function(e){return{}};function L6(e,t,n){var r=e.slice();return r[125]=t[n],r[127]=n,r}var fht=function(e){return{item:16777216&e[0]}},z6=function(e){return{item:e[125],index:e[127]}},dht=function(e){return{filteredItems:16777216&e[0]}},B6=function(e){return{filteredItems:e[24]}},hht=function(e){return{}},F6=function(e){return{}};function q6(e){var t,n,r,o,i,a,s,c,u=e[50]["list-prepend"]&&H6(e),l=[mht,vht,pht],f=[];function d(p,v){return p[50].list?0:p[24].length>0?1:p[19]?-1:2}~(r=d(e))&&(o=f[r]=l[r](e));var h=e[50]["list-append"]&&W6(e);return{c:function(){t=tt("div"),u&&u.c(),n=kt(),o&&o.c(),i=kt(),h&&h.c(),S(t,"class","svelte-select-list svelte-82qwg8"),Dt(t,"prefloat",e[28])},m:function(p,v){ft(p,t,v),u&&u.m(t,null),H(t,n),~r&&f[r].m(t,null),H(t,i),h&&h.m(t,null),e[90](t),a=!0,s||(c=[fo(e[49].call(null,t)),zt(t,"scroll",e[41]),zt(t,"pointerup",Lc(Ku(e[85])))],s=!0)},p:function(p,v){p[50]["list-prepend"]?u?(u.p(p,v),524288&v[1]&&z(u,1)):((u=H6(p)).c(),z(u,1),u.m(t,n)):u&&(Bt(),V(u,1,1,function(){u=null}),Ft());var m=r;(r=d(p))===m?~r&&f[r].p(p,v):(o&&(Bt(),V(f[m],1,1,function(){f[m]=null}),Ft()),~r?((o=f[r])?o.p(p,v):(o=f[r]=l[r](p)).c(),z(o,1),o.m(t,i)):o=null),p[50]["list-append"]?h?(h.p(p,v),524288&v[1]&&z(h,1)):((h=W6(p)).c(),z(h,1),h.m(t,null)):h&&(Bt(),V(h,1,1,function(){h=null}),Ft()),(!a||268435456&v[0])&&Dt(t,"prefloat",p[28])},i:function(p){a||(z(u),z(o),z(h),a=!0)},o:function(p){V(u),V(o),V(h),a=!1},d:function(p){p&<(t),u&&u.d(),~r&&f[r].d(),h&&h.d(),e[90](null),s=!1,Fn(c)}}}function H6(e){var t,n=e[82]["list-prepend"],r=Cr(n,e,e[81],F6);return{c:function(){r&&r.c()},m:function(o,i){r&&r.m(o,i),t=!0},p:function(o,i){r&&r.p&&(!t||524288&i[2])&&Or(r,n,o,o[81],t?Er(n,o[81],i,hht):Mr(o[81]),F6)},i:function(o){t||(z(r,o),t=!0)},o:function(o){V(r,o),t=!1},d:function(o){r&&r.d(o)}}}function pht(e){var t,n,r=e[82].empty,o=Cr(r,e,e[81],D6),i=o||{c:function(){(n=tt("div")).textContent="No options",S(n,"class","empty svelte-82qwg8")},m:function(a,s){ft(a,n,s)},p:Ht,d:function(a){a&<(n)}};return{c:function(){i&&i.c()},m:function(a,s){i&&i.m(a,s),t=!0},p:function(a,s){o&&o.p&&(!t||524288&s[2])&&Or(o,r,a,a[81],t?Er(r,a[81],s,lht):Mr(a[81]),D6)},i:function(a){t||(z(i,a),t=!0)},o:function(a){V(i,a),t=!1},d:function(a){i&&i.d(a)}}}function vht(e){for(var t,n,r=De(e[24]),o=[],i=0;i<r.length;i+=1)o[i]=V6(L6(e,r,i));var a=function(s){return V(o[s],1,1,function(){o[s]=null})};return{c:function(){for(var s=0;s<o.length;s+=1)o[s].c();t=Sn()},m:function(s,c){for(var u=0;u<o.length;u+=1)o[u]&&o[u].m(s,c);ft(s,t,c),n=!0},p:function(s,c){if(1627402376&c[0]|28672&c[1]|524288&c[2]){var u;for(r=De(s[24]),u=0;u<r.length;u+=1){var l=L6(s,r,u);o[u]?(o[u].p(l,c),z(o[u],1)):(o[u]=V6(l),o[u].c(),z(o[u],1),o[u].m(t.parentNode,t))}for(Bt(),u=r.length;u<o.length;u+=1)a(u);Ft()}},i:function(s){if(!n){for(var c=0;c<r.length;c+=1)z(o[c]);n=!0}},o:function(s){o=o.filter(Boolean);for(var c=0;c<o.length;c+=1)V(o[c]);n=!1},d:function(s){s&<(t),Dr(o,s)}}}function mht(e){var t,n=e[82].list,r=Cr(n,e,e[81],B6);return{c:function(){r&&r.c()},m:function(o,i){r&&r.m(o,i),t=!0},p:function(o,i){r&&r.p&&(!t||16777216&i[0]|524288&i[2])&&Or(r,n,o,o[81],t?Er(n,o[81],i,dht):Mr(o[81]),B6)},i:function(o){t||(z(r,o),t=!0)},o:function(o){V(r,o),t=!1},d:function(o){r&&r.d(o)}}}function V6(e){var t,n,r,o,i,a,s,c,u=e[82].item,l=Cr(u,e,e[81],z6),f=l||function(v){var m,g,y=((m=v[125])===null||m===void 0?void 0:m[v[12]])+"";return{c:function(){g=Gt(y)},m:function(b,w){ft(b,g,w)},p:function(b,w){var x;16781312&w[0]&&y!==(y=((x=b[125])===null||x===void 0?void 0:x[b[12]])+"")&&we(g,y)},d:function(b){b&<(g)}}}(e);function d(){return e[87](e[127])}function h(){return e[88](e[127])}function p(){return e[89](e[125],e[127])}return{c:function(){var v;t=tt("div"),n=tt("div"),f&&f.c(),i=kt(),S(n,"class","item svelte-82qwg8"),Dt(n,"list-group-title",e[125].groupHeader),Dt(n,"active",e[45](e[125],e[3],e[13])),Dt(n,"first",e[127]===0),Dt(n,"hover",e[7]===e[127]),Dt(n,"group-item",e[125].groupItem),Dt(n,"not-selectable",((v=e[125])===null||v===void 0?void 0:v.selectable)===!1),S(t,"class","list-item svelte-82qwg8"),S(t,"tabindex","-1"),S(t,"role","none")},m:function(v,m){ft(v,t,m),H(t,n),f&&f.m(n,null),H(t,i),a=!0,s||(c=[fo(r=e[46].call(null,n,{scroll:e[45](e[125],e[3],e[13]),listDom:e[30]})),fo(o=e[47].call(null,n,{scroll:e[29]===e[127],listDom:e[30]})),zt(t,"mouseover",d),zt(t,"focus",h),zt(t,"click",Lc(p)),zt(t,"keydown",Lc(Ku(e[86])))],s=!0)},p:function(v,m){var g;e=v,l?l.p&&(!a||16777216&m[0]|524288&m[2])&&Or(l,u,e,e[81],a?Er(u,e[81],m,fht):Mr(e[81]),z6):f&&f.p&&(!a||16781312&m[0])&&f.p(e,a?m:[-1,-1,-1,-1,-1]),r&&uo(r.update)&&1090527240&m[0]&&r.update.call(null,{scroll:e[45](e[125],e[3],e[13]),listDom:e[30]}),o&&uo(o.update)&&1610612736&m[0]&&o.update.call(null,{scroll:e[29]===e[127],listDom:e[30]}),(!a||16777216&m[0])&&Dt(n,"list-group-title",e[125].groupHeader),(!a||16785416&m[0]|16384&m[1])&&Dt(n,"active",e[45](e[125],e[3],e[13])),(!a||128&m[0])&&Dt(n,"hover",e[7]===e[127]),(!a||16777216&m[0])&&Dt(n,"group-item",e[125].groupItem),(!a||16777216&m[0])&&Dt(n,"not-selectable",((g=e[125])===null||g===void 0?void 0:g.selectable)===!1)},i:function(v){a||(z(f,v),a=!0)},o:function(v){V(f,v),a=!1},d:function(v){v&<(t),f&&f.d(v),s=!1,Fn(c)}}}function W6(e){var t,n=e[82]["list-append"],r=Cr(n,e,e[81],N6);return{c:function(){r&&r.c()},m:function(o,i){r&&r.m(o,i),t=!0},p:function(o,i){r&&r.p&&(!t||524288&i[2])&&Or(r,n,o,o[81],t?Er(n,o[81],i,uht):Mr(o[81]),N6)},i:function(o){t||(z(r,o),t=!0)},o:function(o){V(r,o),t=!1},d:function(o){r&&r.d(o)}}}function U6(e){var t,n,r,o,i;return{c:function(){t=tt("span"),n=Gt(e[32]),r=kt(),o=tt("span"),i=Gt(e[31]),S(t,"id","aria-selection"),S(t,"class","svelte-82qwg8"),S(o,"id","aria-context"),S(o,"class","svelte-82qwg8")},m:function(a,s){ft(a,t,s),H(t,n),ft(a,r,s),ft(a,o,s),H(o,i)},p:function(a,s){2&s[1]&&we(n,a[32]),1&s[1]&&we(i,a[31])},d:function(a){a&&(lt(t),lt(r),lt(o))}}}function K6(e){var t,n,r,o,i=[yht,ght],a=[];function s(c,u){return c[9]?0:1}return t=s(e),n=a[t]=i[t](e),{c:function(){n.c(),r=Sn()},m:function(c,u){a[t].m(c,u),ft(c,r,u),o=!0},p:function(c,u){var l=t;(t=s(c))===l?a[t].p(c,u):(Bt(),V(a[l],1,1,function(){a[l]=null}),Ft(),(n=a[t])?n.p(c,u):(n=a[t]=i[t](c)).c(),z(n,1),n.m(r.parentNode,r))},i:function(c){o||(z(n),o=!0)},o:function(c){V(n),o=!1},d:function(c){c&<(r),a[t].d(c)}}}function ght(e){var t,n,r=e[82].selection,o=Cr(r,e,e[81],A6),i=o||function(a){var s,c=a[3][a[12]]+"";return{c:function(){s=Gt(c)},m:function(u,l){ft(u,s,l)},p:function(u,l){4104&l[0]&&c!==(c=u[3][u[12]]+"")&&we(s,c)},d:function(u){u&<(s)}}}(e);return{c:function(){t=tt("div"),i&&i.c(),S(t,"class","selected-item svelte-82qwg8"),Dt(t,"hide-selected-item",e[35])},m:function(a,s){ft(a,t,s),i&&i.m(t,null),n=!0},p:function(a,s){o?o.p&&(!n||8&s[0]|524288&s[2])&&Or(o,r,a,a[81],n?Er(r,a[81],s,iht):Mr(a[81]),A6):i&&i.p&&(!n||4104&s[0])&&i.p(a,n?s:[-1,-1,-1,-1,-1]),(!n||16&s[1])&&Dt(t,"hide-selected-item",a[35])},i:function(a){n||(z(i,a),n=!0)},o:function(a){V(i,a),n=!1},d:function(a){a&<(t),i&&i.d(a)}}}function yht(e){for(var t,n,r=De(e[3]),o=[],i=0;i<r.length;i+=1)o[i]=G6(P6(e,r,i));var a=function(s){return V(o[s],1,1,function(){o[s]=null})};return{c:function(){for(var s=0;s<o.length;s+=1)o[s].c();t=Sn()},m:function(s,c){for(var u=0;u<o.length;u+=1)o[u]&&o[u].m(s,c);ft(s,t,c),n=!0},p:function(s,c){if(67116040&c[0]|32&c[1]|524288&c[2]){var u;for(r=De(s[3]),u=0;u<r.length;u+=1){var l=P6(s,r,u);o[u]?(o[u].p(l,c),z(o[u],1)):(o[u]=G6(l),o[u].c(),z(o[u],1),o[u].m(t.parentNode,t))}for(Bt(),u=r.length;u<o.length;u+=1)a(u);Ft()}},i:function(s){if(!n){for(var c=0;c<r.length;c+=1)z(o[c]);n=!0}},o:function(s){o=o.filter(Boolean);for(var c=0;c<o.length;c+=1)V(o[c]);n=!1},d:function(s){s&<(t),Dr(o,s)}}}function J6(e){var t,n,r,o,i=e[82]["multi-clear-icon"],a=Cr(i,e,e[81],T6),s=a||function(u){var l,f;return l=new jg({}),{c:function(){Pt(l.$$.fragment)},m:function(d,h){Mt(l,d,h),f=!0},i:function(d){f||(z(l.$$.fragment,d),f=!0)},o:function(d){V(l.$$.fragment,d),f=!1},d:function(d){At(l,d)}}}();function c(){return e[91](e[127])}return{c:function(){t=tt("div"),s&&s.c(),S(t,"class","multi-item-clear svelte-82qwg8")},m:function(u,l){ft(u,t,l),s&&s.m(t,null),n=!0,r||(o=zt(t,"pointerup",Lc(Ku(c))),r=!0)},p:function(u,l){e=u,a&&a.p&&(!n||524288&l[2])&&Or(a,i,e,e[81],n?Er(i,e[81],l,aht):Mr(e[81]),T6)},i:function(u){n||(z(s,u),n=!0)},o:function(u){V(s,u),n=!1},d:function(u){u&<(t),s&&s.d(u),r=!1,o()}}}function G6(e){var t,n,r,o,i,a,s,c=e[82].selection,u=Cr(c,e,e[81],R6),l=u||function(h){var p,v=h[125][h[12]]+"";return{c:function(){p=Gt(v)},m:function(m,g){ft(m,p,g)},p:function(m,g){4104&g[0]&&v!==(v=m[125][m[12]]+"")&&we(p,v)},d:function(m){m&<(p)}}}(e),f=!e[11]&&!e[10]&&jg&&J6(e);function d(){return e[92](e[127])}return{c:function(){t=tt("div"),n=tt("span"),l&&l.c(),r=kt(),f&&f.c(),o=kt(),S(n,"class","multi-item-text svelte-82qwg8"),S(t,"class","multi-item svelte-82qwg8"),S(t,"role","none"),Dt(t,"active",e[26]===e[127]),Dt(t,"disabled",e[11])},m:function(h,p){ft(h,t,p),H(t,n),l&&l.m(n,null),H(t,r),f&&f.m(t,null),H(t,o),i=!0,a||(s=[zt(t,"click",Ku(d)),zt(t,"keydown",Lc(Ku(e[84])))],a=!0)},p:function(h,p){e=h,u?u.p&&(!i||8&p[0]|524288&p[2])&&Or(u,c,e,e[81],i?Er(c,e[81],p,sht):Mr(e[81]),R6):l&&l.p&&(!i||4104&p[0])&&l.p(e,i?p:[-1,-1,-1,-1,-1]),e[11]||e[10]||!jg?f&&(Bt(),V(f,1,1,function(){f=null}),Ft()):f?(f.p(e,p),3072&p[0]&&z(f,1)):((f=J6(e)).c(),z(f,1),f.m(t,o)),(!i||67108864&p[0])&&Dt(t,"active",e[26]===e[127]),(!i||2048&p[0])&&Dt(t,"disabled",e[11])},i:function(h){i||(z(l,h),z(f),i=!0)},o:function(h){V(l,h),V(f),i=!1},d:function(h){h&<(t),l&&l.d(h),f&&f.d(),a=!1,Fn(s)}}}function Q6(e){var t,n,r=e[82]["loading-icon"],o=Cr(r,e,e[81],M6),i=o||function(a){var s,c;return s=new Xdt({}),{c:function(){Pt(s.$$.fragment)},m:function(u,l){Mt(s,u,l),c=!0},i:function(u){c||(z(s.$$.fragment,u),c=!0)},o:function(u){V(s.$$.fragment,u),c=!1},d:function(u){At(s,u)}}}();return{c:function(){t=tt("div"),i&&i.c(),S(t,"class","icon loading svelte-82qwg8"),S(t,"aria-hidden","true")},m:function(a,s){ft(a,t,s),i&&i.m(t,null),n=!0},p:function(a,s){o&&o.p&&(!n||524288&s[2])&&Or(o,r,a,a[81],n?Er(r,a[81],s,oht):Mr(a[81]),M6)},i:function(a){n||(z(i,a),n=!0)},o:function(a){V(i,a),n=!1},d:function(a){a&<(t),i&&i.d(a)}}}function Y6(e){var t,n,r,o,i=e[82]["clear-icon"],a=Cr(i,e,e[81],O6),s=a||function(c){var u,l;return u=new jg({}),{c:function(){Pt(u.$$.fragment)},m:function(f,d){Mt(u,f,d),l=!0},i:function(f){l||(z(u.$$.fragment,f),l=!0)},o:function(f){V(u.$$.fragment,f),l=!1},d:function(f){At(u,f)}}}();return{c:function(){t=tt("button"),s&&s.c(),S(t,"type","button"),S(t,"class","icon clear-select svelte-82qwg8")},m:function(c,u){ft(c,t,u),s&&s.m(t,null),n=!0,r||(o=zt(t,"click",e[22]),r=!0)},p:function(c,u){a&&a.p&&(!n||524288&u[2])&&Or(a,i,c,c[81],n?Er(i,c[81],u,rht):Mr(c[81]),O6)},i:function(c){n||(z(s,c),n=!0)},o:function(c){V(s,c),n=!1},d:function(c){c&<(t),s&&s.d(c),r=!1,o()}}}function X6(e){var t,n,r=e[82]["chevron-icon"],o=Cr(r,e,e[81],E6),i=o||function(a){var s,c;return s=new Kdt({}),{c:function(){Pt(s.$$.fragment)},m:function(u,l){Mt(s,u,l),c=!0},i:function(u){c||(z(s.$$.fragment,u),c=!0)},o:function(u){V(s.$$.fragment,u),c=!1},d:function(u){At(s,u)}}}();return{c:function(){t=tt("div"),i&&i.c(),S(t,"class","icon chevron svelte-82qwg8"),S(t,"aria-hidden","true")},m:function(a,s){ft(a,t,s),i&&i.m(t,null),n=!0},p:function(a,s){o&&o.p&&(!n||64&s[0]|524288&s[2])&&Or(o,r,a,a[81],n?Er(r,a[81],s,nht):Mr(a[81]),E6)},i:function(a){n||(z(i,a),n=!0)},o:function(a){V(i,a),n=!1},d:function(a){a&<(t),i&&i.d(a)}}}function Z6(e){var t,n,r=e[82].required,o=Cr(r,e,e[81],$6),i=o||{c:function(){S(n=tt("select"),"class","required svelte-82qwg8"),n.required=!0,S(n,"tabindex","-1"),S(n,"aria-hidden","true")},m:function(a,s){ft(a,n,s)},p:Ht,d:function(a){a&<(n)}};return{c:function(){i&&i.c()},m:function(a,s){i&&i.m(a,s),t=!0},p:function(a,s){o&&o.p&&(!t||8&s[0]|524288&s[2])&&Or(o,r,a,a[81],t?Er(r,a[81],s,tht):Mr(a[81]),$6)},i:function(a){t||(z(i,a),t=!0)},o:function(a){V(i,a),t=!1},d:function(a){i&&i.d(a)}}}function bht(e){for(var t,n,r,o,i,a,s,c,u,l,f,d,h,p,v,m,g,y,b,w,x=e[6]&&q6(e),k=e[2]&&U6(e),E=e[82].prepend,_=Cr(E,e,e[81],I6),T=e[25]&&K6(e),$=[{readOnly:l=!e[17]},e[27],{placeholder:e[33]},{style:e[18]},{disabled:e[11]}],j={},R=0;R<$.length;R+=1)j=oi(j,$[R]);var q=e[5]&&Q6(e),O=e[34]&&Y6(e),F=e[20]&&X6(e),J=e[82]["input-hidden"],I=Cr(J,e,e[81],C6),D=I||function(M){var P,B;return{c:function(){S(P=tt("input"),"name",M[8]),S(P,"type","hidden"),P.value=B=M[3]?JSON.stringify(M[3]):null,S(P,"class","svelte-82qwg8")},m:function(A,W){ft(A,P,W)},p:function(A,W){256&W[0]&&S(P,"name",A[8]),8&W[0]&&B!==(B=A[3]?JSON.stringify(A[3]):null)&&(P.value=B)},d:function(A){A&<(P)}}}(e),C=e[16]&&(!e[3]||e[3].length===0)&&Z6(e);return{c:function(){t=tt("div"),x&&x.c(),n=kt(),r=tt("span"),k&&k.c(),o=kt(),i=tt("div"),_&&_.c(),a=kt(),s=tt("div"),T&&T.c(),c=kt(),u=tt("input"),f=kt(),d=tt("div"),q&&q.c(),h=kt(),O&&O.c(),p=kt(),F&&F.c(),v=kt(),D&&D.c(),m=kt(),C&&C.c(),S(r,"aria-live","polite"),S(r,"aria-atomic","false"),S(r,"aria-relevant","additions text"),S(r,"class","a11y-text svelte-82qwg8"),S(i,"class","prepend svelte-82qwg8"),iE(u,j),Dt(u,"svelte-82qwg8",!0),S(s,"class","value-container svelte-82qwg8"),S(d,"class","indicators svelte-82qwg8"),S(t,"class",g="svelte-select "+e[21]+" svelte-82qwg8"),S(t,"style",e[14]),S(t,"role","none"),Dt(t,"multi",e[9]),Dt(t,"disabled",e[11]),Dt(t,"focused",e[2]),Dt(t,"list-open",e[6]),Dt(t,"show-chevron",e[20]),Dt(t,"error",e[15])},m:function(M,P){ft(M,t,P),x&&x.m(t,null),H(t,n),H(t,r),k&&k.m(r,null),H(t,o),H(t,i),_&&_.m(i,null),H(t,a),H(t,s),T&&T.m(s,null),H(s,c),H(s,u),u.autofocus&&u.focus(),e[93](u),ss(u,e[4]),H(t,f),H(t,d),q&&q.m(d,null),H(d,h),O&&O.m(d,null),H(d,p),F&&F.m(d,null),H(t,v),D&&D.m(t,null),H(t,m),C&&C.m(t,null),e[95](t),y=!0,b||(w=[zt(window,"click",e[42]),zt(window,"keydown",e[37]),zt(u,"keydown",e[37]),zt(u,"blur",e[39]),zt(u,"focus",e[38]),zt(u,"input",e[94]),zt(t,"pointerup",Ku(e[40])),zt(t,"mousedown",Ku(e[83])),fo(e[48].call(null,t))],b=!0)},p:function(M,P){M[6]?x?(x.p(M,P),64&P[0]&&z(x,1)):((x=q6(M)).c(),z(x,1),x.m(t,n)):x&&(Bt(),V(x,1,1,function(){x=null}),Ft()),M[2]?k?k.p(M,P):((k=U6(M)).c(),k.m(r,null)):k&&(k.d(1),k=null),_&&_.p&&(!y||524288&P[2])&&Or(_,E,M,M[81],y?Er(E,M[81],P,cht):Mr(M[81]),I6),M[25]?T?(T.p(M,P),33554432&P[0]&&z(T,1)):((T=K6(M)).c(),z(T,1),T.m(s,c)):T&&(Bt(),V(T,1,1,function(){T=null}),Ft()),iE(u,j=Ui($,[(!y||131072&P[0]&&l!==(l=!M[17]))&&{readOnly:l},134217728&P[0]&&M[27],(!y||4&P[1])&&{placeholder:M[33]},(!y||262144&P[0])&&{style:M[18]},(!y||2048&P[0])&&{disabled:M[11]}])),16&P[0]&&u.value!==M[4]&&ss(u,M[4]),Dt(u,"svelte-82qwg8",!0),M[5]?q?(q.p(M,P),32&P[0]&&z(q,1)):((q=Q6(M)).c(),z(q,1),q.m(d,h)):q&&(Bt(),V(q,1,1,function(){q=null}),Ft()),M[34]?O?(O.p(M,P),8&P[1]&&z(O,1)):((O=Y6(M)).c(),z(O,1),O.m(d,p)):O&&(Bt(),V(O,1,1,function(){O=null}),Ft()),M[20]?F?(F.p(M,P),1048576&P[0]&&z(F,1)):((F=X6(M)).c(),z(F,1),F.m(d,null)):F&&(Bt(),V(F,1,1,function(){F=null}),Ft()),I?I.p&&(!y||8&P[0]|524288&P[2])&&Or(I,J,M,M[81],y?Er(J,M[81],P,eht):Mr(M[81]),C6):D&&D.p&&(!y||264&P[0])&&D.p(M,y?P:[-1,-1,-1,-1,-1]),!M[16]||M[3]&&M[3].length!==0?C&&(Bt(),V(C,1,1,function(){C=null}),Ft()):C?(C.p(M,P),65544&P[0]&&z(C,1)):((C=Z6(M)).c(),z(C,1),C.m(t,null)),(!y||2097152&P[0]&&g!==(g="svelte-select "+M[21]+" svelte-82qwg8"))&&S(t,"class",g),(!y||16384&P[0])&&S(t,"style",M[14]),(!y||2097664&P[0])&&Dt(t,"multi",M[9]),(!y||2099200&P[0])&&Dt(t,"disabled",M[11]),(!y||2097156&P[0])&&Dt(t,"focused",M[2]),(!y||2097216&P[0])&&Dt(t,"list-open",M[6]),(!y||3145728&P[0])&&Dt(t,"show-chevron",M[20]),(!y||2129920&P[0])&&Dt(t,"error",M[15])},i:function(M){y||(z(x),z(_,M),z(T),z(q),z(O),z(F),z(D,M),z(C),y=!0)},o:function(M){V(x),V(_,M),V(T),V(q),V(O),V(F),V(D,M),V(C),y=!1},d:function(M){M&<(t),x&&x.d(),k&&k.d(),_&&_.d(M),T&&T.d(),e[93](null),q&&q.d(),O&&O.d(),F&&F.d(),D&&D.d(M),C&&C.d(),e[95](null),b=!1,Fn(w)}}}function tM(e){return e.map(function(t,n){return{index:n,value:t,label:"".concat(t)}})}function wht(e,t,n){var r,o,i,a,s,c,u,l,f,d,h,p,v,m,g,y,b=t.$$slots,w=b===void 0?{}:b,x=t.$$scope,k=function(wt){var je={};for(var un in wt)je[un]=!0;return je}(w),E=FN(),_=t.justValue,T=_===void 0?null:_,$=t.filter,j=$===void 0?Hdt:$,R=t.getItems,q=R===void 0?Vdt:R,O=t.id,F=O===void 0?null:O,J=t.name,I=J===void 0?null:J,D=t.container,C=D===void 0?void 0:D,M=t.input,P=M===void 0?void 0:M,B=t.multiple,A=B!==void 0&&B,W=t.multiFullItemClearable,N=W!==void 0&&W,dt=t.disabled,et=dt!==void 0&&dt,yt=t.focused,bt=yt!==void 0&&yt,jt=t.value,gt=jt===void 0?null:jt,Y=t.filterText,K=Y===void 0?"":Y,rt=t.placeholder,X=rt===void 0?"Please select":rt,_t=t.placeholderAlwaysShow,L=_t!==void 0&&_t,U=t.items,G=U===void 0?null:U,pt=t.label,mt=pt===void 0?"label":pt,Ot=t.itemFilter,Ct=Ot===void 0?function(wt,je,un){return"".concat(wt).toLowerCase().includes(je.toLowerCase())}:Ot,Vt=t.groupBy,Qt=Vt===void 0?void 0:Vt,te=t.groupFilter,Kt=te===void 0?function(wt){return wt}:te,ue=t.groupHeaderSelectable,Me=ue!==void 0&&ue,en=t.itemId,le=en===void 0?"value":en,xn=t.loadOptions,Ie=xn===void 0?void 0:xn,mn=t.containerStyles,Ye=mn===void 0?"":mn,Ke=t.hasError,qn=Ke!==void 0&&Ke,In=t.filterSelectedItems,Xn=In===void 0||In,$n=t.required,En=$n!==void 0&&$n,Nn=t.closeListOnChange,sr=Nn===void 0||Nn,Pr=t.createGroupHeaderItem,Et=Pr===void 0?function(wt,je){return Wo({value:wt},mt,wt)}:Pr,ie=t.searchable,Be=ie===void 0||ie,nn=t.inputStyles,$t=nn===void 0?"":nn,Xt=t.clearable,Q=Xt===void 0||Xt,at=t.loading,vt=at!==void 0&&at,ut=t.listOpen,It=ut!==void 0&&ut,ee=t.debounce,pe=ee===void 0?function(wt){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;clearTimeout(d),d=setTimeout(wt,je)}:ee,Xe=t.debounceWait,Fe=Xe===void 0?300:Xe,kn=t.hideEmptyState,On=kn!==void 0&&kn,ke=t.inputAttributes,gn=ke===void 0?{}:ke,pn=t.listAutoWidth,Zn=pn===void 0||pn,yn=t.showChevron,ct=yn!==void 0&&yn,Nt=t.listOffset,ne=Nt===void 0?5:Nt,ae=t.hoverItemIndex,Yt=ae===void 0?0:ae,Te=t.floatingConfig,He=Te===void 0?{}:Te,Ve=t.class,de=Ve===void 0?"":Ve;function fn(wt){var je=[],un={};wt.forEach(function(Zi){var Mn=Qt(Zi);je.includes(Mn)||(je.push(Mn),un[Mn]=[],Mn&&un[Mn].push(Object.assign(Et(Mn,Zi),{id:Mn,groupHeader:!0,selectable:Me}))),un[Mn].push(Object.assign({groupItem:!!Mn},Zi))});var Jr=[];return Kt(je).forEach(function(Zi){un[Zi]&&Jr.push.apply(Jr,$e(un[Zi]))}),Jr}function Kn(){var wt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,je=arguments.length>1?arguments[1]:void 0;n(7,Yt=wt<0?0:wt),!je&&Qt&&u[Yt]&&!u[Yt].selectable&&Tr(1)}function Dn(){var wt=!0;if(gt){var je=[],un=[];gt.forEach(function(Jr){je.includes(Jr[le])?wt=!1:(je.push(Jr[le]),un.push(Jr))}),wt||n(3,gt=un)}return wt}function Lr(wt){var je=wt?wt[le]:gt[le];return G.find(function(un){return un[le]===je})}function ci(wt){return Ta.apply(this,arguments)}function Ta(){return Ta=Ae(qt().mark(function wt(je){var un;return qt().wrap(function(Jr){for(;;)switch(Jr.prev=Jr.next){case 0:un=gt[je],gt.length===1?n(3,gt=void 0):n(3,gt=gt.filter(function(Zi){return Zi!==un})),E("clear",un);case 3:case"end":return Jr.stop()}},wt)})),Ta.apply(this,arguments)}function ji(wt){var je;bt&&P===((je=document)===null||je===void 0?void 0:je.activeElement)||(wt&&E("focus",wt),P.focus(),n(2,bt=!0))}function Ra(wt){return _i.apply(this,arguments)}function _i(){return _i=Ae(qt().mark(function wt(je){return qt().wrap(function(un){for(;;)switch(un.prev=un.next){case 0:if(!Se){un.next=2;break}return un.abrupt("return");case 2:(It||bt)&&(E("blur",je),tr(),n(2,bt=!1),n(26,h=void 0),P.blur());case 3:case"end":return un.stop()}},wt)})),_i.apply(this,arguments)}function tr(){n(4,K=""),n(6,It=!1)}y=Ae(qt().mark(function wt(){return qt().wrap(function(je){for(;;)switch(je.prev=je.next){case 0:n(77,p=gt),n(78,v=K),n(79,m=A);case 3:case"end":return je.stop()}},wt)})),Wf().$$.before_update.push(y),Wi(function(){It&&n(2,bt=!0),bt&&P&&P.focus()});var Lp=t.ariaValues,cd=Lp===void 0?function(wt){return"Option ".concat(wt,", selected.")}:Lp,zp=t.ariaListOpen,nt=zp===void 0?function(wt,je){return"You are currently focused on option ".concat(wt,". There are ").concat(je," results available.")}:zp,St=t.ariaFocused,Lt=St===void 0?function(){return"Select is focused, type to refine list, press down to open the menu."}:St,Ut,Wt=null;function Zt(){clearTimeout(Ut),Ut=setTimeout(function(){Se=!1},100)}gi(function(){var wt;(wt=Wt)===null||wt===void 0||wt.remove()});var Se=!1;function Ee(wt){wt&&wt.selectable!==!1&&function(je){if(je){n(4,K="");var un=Object.assign({},je);if(un.groupHeader&&!un.selectable)return;n(3,gt=A?gt?gt.concat([un]):[un]:n(3,gt=un)),setTimeout(function(){sr&&tr(),n(26,h=void 0),E("change",gt),E("select",je)})}}(wt)}function Oe(wt){Se||n(7,Yt=wt)}function rr(wt){var je=wt.item,un=wt.i;if((je==null?void 0:je.selectable)!==!1)return gt&&!A&>[le]===je[le]?tr():void(function(Jr){return Jr.groupHeader&&Jr.selectable||Jr.selectable||!Jr.hasOwnProperty("selectable")}(je)&&(n(7,Yt=un),Ee(je)))}function Tr(wt){if(u.filter(function(un){return!Object.hasOwn(un,"selectable")||un.selectable===!0}).length===0)return n(7,Yt=0);wt>0&&Yt===u.length-1?n(7,Yt=0):n(7,wt<0&&Yt===0?Yt=u.length-1:Yt+=wt);var je=u[Yt];je&&je.selectable===!1&&(wt!==1&&wt!==-1||Tr(wt))}var jr=Eo,vo=Eo;function Eo(wt){return{update:function(je){je.scroll&&(Zt(),wt.scrollIntoView({behavior:"auto",block:"nearest"}))}}}var Lo={strategy:"absolute",placement:"bottom-start",middleware:[Idt(ne),Rdt(),Ddt()],autoUpdate:!1},zr=Ce(qdt(Lo),3),_r=zr[0],ys=zr[1],Kr=zr[2],no=!0;return e.$$set=function(wt){"justValue"in wt&&n(52,T=wt.justValue),"filter"in wt&&n(53,j=wt.filter),"getItems"in wt&&n(54,q=wt.getItems),"id"in wt&&n(55,F=wt.id),"name"in wt&&n(8,I=wt.name),"container"in wt&&n(0,C=wt.container),"input"in wt&&n(1,P=wt.input),"multiple"in wt&&n(9,A=wt.multiple),"multiFullItemClearable"in wt&&n(10,N=wt.multiFullItemClearable),"disabled"in wt&&n(11,et=wt.disabled),"focused"in wt&&n(2,bt=wt.focused),"value"in wt&&n(3,gt=wt.value),"filterText"in wt&&n(4,K=wt.filterText),"placeholder"in wt&&n(56,X=wt.placeholder),"placeholderAlwaysShow"in wt&&n(57,L=wt.placeholderAlwaysShow),"items"in wt&&n(51,G=wt.items),"label"in wt&&n(12,mt=wt.label),"itemFilter"in wt&&n(58,Ct=wt.itemFilter),"groupBy"in wt&&n(59,Qt=wt.groupBy),"groupFilter"in wt&&n(60,Kt=wt.groupFilter),"groupHeaderSelectable"in wt&&n(61,Me=wt.groupHeaderSelectable),"itemId"in wt&&n(13,le=wt.itemId),"loadOptions"in wt&&n(62,Ie=wt.loadOptions),"containerStyles"in wt&&n(14,Ye=wt.containerStyles),"hasError"in wt&&n(15,qn=wt.hasError),"filterSelectedItems"in wt&&n(63,Xn=wt.filterSelectedItems),"required"in wt&&n(16,En=wt.required),"closeListOnChange"in wt&&n(64,sr=wt.closeListOnChange),"createGroupHeaderItem"in wt&&n(65,Et=wt.createGroupHeaderItem),"searchable"in wt&&n(17,Be=wt.searchable),"inputStyles"in wt&&n(18,$t=wt.inputStyles),"clearable"in wt&&n(67,Q=wt.clearable),"loading"in wt&&n(5,vt=wt.loading),"listOpen"in wt&&n(6,It=wt.listOpen),"debounce"in wt&&n(68,pe=wt.debounce),"debounceWait"in wt&&n(69,Fe=wt.debounceWait),"hideEmptyState"in wt&&n(19,On=wt.hideEmptyState),"inputAttributes"in wt&&n(70,gn=wt.inputAttributes),"listAutoWidth"in wt&&n(71,Zn=wt.listAutoWidth),"showChevron"in wt&&n(20,ct=wt.showChevron),"listOffset"in wt&&n(72,ne=wt.listOffset),"hoverItemIndex"in wt&&n(7,Yt=wt.hoverItemIndex),"floatingConfig"in wt&&n(73,He=wt.floatingConfig),"class"in wt&&n(21,de=wt.class),"ariaValues"in wt&&n(74,cd=wt.ariaValues),"ariaListOpen"in wt&&n(75,nt=wt.ariaListOpen),"ariaFocused"in wt&&n(76,Lt=wt.ariaFocused),"$$scope"in wt&&n(81,x=wt.$$scope)},e.$$.update=function(){var wt,je,un,Jr,Zi;8&e.$$.dirty[0]|1048576&e.$$.dirty[1]&>&&function(){if(typeof gt=="string"){var Mn,Gr=(G||[]).find(function(Si){return Si[le]===gt});n(3,gt=Gr||(Wo(Mn={},le,gt),Wo(Mn,"label",gt),Mn))}else A&&Array.isArray(gt)&>.length>0&&n(3,gt=gt.map(function(Si){return typeof Si=="string"?{value:Si,label:Si}:Si}))}(),131072&e.$$.dirty[0]|256&e.$$.dirty[2]&&(!gn&&Be||(n(27,g=Object.assign({autocapitalize:"none",autocomplete:"off",autocorrect:"off",spellcheck:!1,tabindex:0,type:"text","aria-autocomplete":"list"},gn)),F&&n(27,g.id=F,g),Be||n(27,g.readonly=!0,g))),512&e.$$.dirty[0]&&A&>&&(Array.isArray(gt)?n(3,gt=$e(gt)):n(3,gt=[gt])),512&e.$$.dirty[0]|131072&e.$$.dirty[2]&&m&&!A&>&&n(3,gt=null),520&e.$$.dirty[0]&&A&>&>.length>1&&Dn(),8&e.$$.dirty[0]&>&&(A?JSON.stringify(gt)!==JSON.stringify(p)&&Dn()&&E("input",gt):p&&JSON.stringify(gt[le])===JSON.stringify(p[le])||E("input",gt)),520&e.$$.dirty[0]|32768&e.$$.dirty[2]&&!gt&&A&&p&&E("input",gt),6&e.$$.dirty[0]&&!bt&&P&&tr(),16&e.$$.dirty[0]|65536&e.$$.dirty[2]&&K!==v&&(Ie||K.length!==0)&&(Ie?pe(Ae(qt().mark(function Mn(){var Gr;return qt().wrap(function(Si){for(;;)switch(Si.prev=Si.next){case 0:return n(5,vt=!0),Si.next=3,q({dispatch:E,loadOptions:Ie,convertStringItemsToObjects:tM,filterText:K});case 3:(Gr=Si.sent)?(n(5,vt=Gr.loading),n(6,It=It?Gr.listOpen:K.length>0),n(2,bt=It&&Gr.focused),n(51,G=Qt?fn(Gr.filteredItems):Gr.filteredItems)):(n(5,vt=!1),n(2,bt=!0),n(6,It=!0));case 5:case"end":return Si.stop()}},Mn)})),Fe):(n(6,It=!0),A&&n(26,h=void 0))),12824&e.$$.dirty[0]|407896064&e.$$.dirty[1]|3&e.$$.dirty[2]&&n(24,u=j({loadOptions:Ie,filterText:K,items:G,multiple:A,value:gt,itemId:le,groupBy:Qt,label:mt,filterSelectedItems:Xn,itemFilter:Ct,convertStringItemsToObjects:tM,filterGroupedItems:fn})),16777800&e.$$.dirty[0]&&!A&&It&>&&u&&(wt=u.findIndex(function(Mn){return Mn[le]===gt[le]}),Kn(wt,!0)),576&e.$$.dirty[0]&&It&&A&&n(7,Yt=0),16&e.$$.dirty[0]&&K&&n(7,Yt=0),128&e.$$.dirty[0]&&function(Mn){E("hoverItem",Mn)}(Yt),520&e.$$.dirty[0]&&n(25,r=A?gt&>.length>0:gt),33554448&e.$$.dirty[0]&&n(35,o=r&&K.length>0),33556512&e.$$.dirty[0]|32&e.$$.dirty[2]&&n(34,i=r&&Q&&!et&&!vt),520&e.$$.dirty[0]|100663296&e.$$.dirty[1]&&n(33,a=L&&A||A&&((je=gt)===null||je===void 0?void 0:je.length)===0?X:gt?"":X),520&e.$$.dirty[0]&&n(32,s=gt?(un=void 0,un=A&>.length>0?gt.map(function(Mn){return Mn[mt]}).join(", "):gt[mt],cd(un)):""),16777412&e.$$.dirty[0]&&n(31,c=function(){if(!u||u.length===0)return"";var Mn=u[Yt];if(It&&Mn){var Gr=u?u.length:0;return nt(Mn[mt],Gr)}return Lt()}()),1048576&e.$$.dirty[1]&&function(Mn){Mn&&Mn.length!==0&&!Mn.some(function(Gr){return ce(Gr)!=="object"})&>&&(A?!gt.some(function(Gr){return!Gr||!Gr[le]}):gt[le])&&(Array.isArray(gt)?n(3,gt=gt.map(function(Gr){return Lr(Gr)||Gr})):n(3,gt=Lr()||gt))}(G),8712&e.$$.dirty[0]&&n(52,T=A?gt?gt.map(function(Mn){return Mn[le]}):null:gt&>[le]),520&e.$$.dirty[0]|32768&e.$$.dirty[2]&&(A||!p||gt||E("input",gt)),16777800&e.$$.dirty[0]&&It&&u&&!A&&!gt&&Kn(),16777216&e.$$.dirty[0]&&function(Mn){It&&E("filter",Mn)}(u),1&e.$$.dirty[0]|2048&e.$$.dirty[2]&&C&&((Jr=He)===null||Jr===void 0?void 0:Jr.autoUpdate)===void 0&&n(80,Lo.autoUpdate=!0,Lo),1&e.$$.dirty[0]|264192&e.$$.dirty[2]&&C&&He&&Kr(Object.assign(Lo,He)),8388608&e.$$.dirty[0]&&n(30,l=!!Wt),8388672&e.$$.dirty[0]&&function(Mn,Gr){if(!Mn||!Gr)return n(28,no=!0);setTimeout(function(){n(28,no=!1)},0)}(Wt,It),8388673&e.$$.dirty[0]&&It&&C&&Wt&&(Zi=C.getBoundingClientRect().width,n(23,Wt.style.width=Zn?Zi+"px":"auto",Wt)),128&e.$$.dirty[0]&&n(29,f=Yt),70&e.$$.dirty[0]&&P&&It&&!bt&&ji()},[C,P,bt,gt,K,vt,It,Yt,I,A,N,et,mt,le,Ye,qn,En,Be,$t,On,ct,de,function(){E("clear",gt),n(3,gt=void 0),tr(),ji()},Wt,u,r,h,g,no,f,l,c,s,a,i,o,ci,function(wt){if(bt)switch(wt.stopPropagation(),wt.key){case"Escape":wt.preventDefault(),tr();break;case"Enter":if(wt.preventDefault(),It){if(u.length===0)break;var je=u[Yt];if(gt&&!A&>[le]===je[le]){tr();break}Ee(u[Yt])}break;case"ArrowDown":wt.preventDefault(),It?Tr(1):(n(6,It=!0),n(26,h=void 0));break;case"ArrowUp":wt.preventDefault(),It?Tr(-1):(n(6,It=!0),n(26,h=void 0));break;case"Tab":if(It&&bt){if(u.length===0||gt&>[le]===u[Yt][le])return tr();wt.preventDefault(),Ee(u[Yt]),tr()}break;case"Backspace":if(!A||K.length>0)return;if(A&>&>.length>0){if(ci(h!==void 0?h:gt.length-1),h===0||h===void 0)break;n(26,h=gt.length>h?h-1:void 0)}break;case"ArrowLeft":if(!gt||!A||K.length>0)return;h===void 0?n(26,h=gt.length-1):gt.length>h&&h!==0&&n(26,h-=1);break;case"ArrowRight":if(!gt||!A||K.length>0||h===void 0)return;h===gt.length-1?n(26,h=void 0):h<gt.length-1&&n(26,h+=1)}},ji,Ra,function(){et||n(6,It=!It)},Zt,function(wt){var je;It||bt||!C||C.contains(wt.target)||(je=Wt)!==null&&je!==void 0&&je.contains(wt.target)||Ra()},Oe,rr,function(wt,je,un){if(!A)return je&&je[un]===wt[un]},jr,vo,_r,ys,k,G,T,j,q,F,X,L,Ct,Qt,Kt,Me,Ie,Xn,sr,Et,function(){return u},Q,pe,Fe,gn,Zn,ne,He,cd,nt,Lt,p,v,m,Lo,x,w,function(wt){tv.call(this,e,wt)},function(wt){tv.call(this,e,wt)},function(wt){tv.call(this,e,wt)},function(wt){tv.call(this,e,wt)},function(wt){return Oe(wt)},function(wt){return Oe(wt)},function(wt,je){return rr({item:wt,i:je})},function(wt){Ze[wt?"unshift":"push"](function(){n(23,Wt=wt)})},function(wt){return ci(wt)},function(wt){return N?ci(wt):{}},function(wt){Ze[wt?"unshift":"push"](function(){n(1,P=wt)})},function(){K=this.value,n(4,K)},function(wt){Ze[wt?"unshift":"push"](function(){n(0,C=wt)})}]}var _u=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,wht,bht,eo,{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,createGroupHeaderItem:65,getFilteredItems:66,searchable:17,inputStyles:18,clearable:67,loading:5,listOpen:6,debounce:68,debounceWait:69,hideEmptyState:19,inputAttributes:70,listAutoWidth:71,showChevron:20,listOffset:72,hoverItemIndex:7,floatingConfig:73,class:21,handleClear:22,ariaValues:74,ariaListOpen:75,ariaFocused:76},Zdt,[-1,-1,-1,-1,-1]),o}return it(n,[{key:"getFilteredItems",get:function(){return this.$$.ctx[66]}},{key:"handleClear",get:function(){return this.$$.ctx[22]}}]),n}();function xht(e){Le(e,"svelte-1kiph99","table.jse-transform-wizard.svelte-1kiph99.svelte-1kiph99{border-collapse:collapse;border-spacing:0;width:100%}table.jse-transform-wizard.svelte-1kiph99 input.svelte-1kiph99{font-family:inherit;font-size:inherit}table.jse-transform-wizard.svelte-1kiph99 tr th.svelte-1kiph99{font-weight:normal;text-align:left;width:60px}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99{width:100%;display:flex;flex-direction:row;margin-bottom:calc(0.5 * var(--jse-padding))}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select .multi-item{align-items:center}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select .value-container{gap:0 !important}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select.jse-filter-path{flex:4;margin-right:calc(0.5 * var(--jse-padding))}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select.jse-filter-relation{flex:1.5;margin-right:calc(0.5 * var(--jse-padding))}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select.jse-sort-path{flex:3;margin-right:calc(0.5 * var(--jse-padding))}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select.jse-sort-direction{flex:1}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select.jse-projection-paths{flex:1}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select input{box-sizing:border-box}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal .jse-filter-value.svelte-1kiph99{flex:4;padding:4px 8px;border:var(--jse-input-border);border-radius:var(--jse-input-radius);outline:none;background:var(--jse-input-background);color:inherit}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal .jse-filter-value.svelte-1kiph99:focus{border:var(--jse-input-border-focus)}")}function kht(e){var t,n,r,o,i,a,s,c,u,l,f,d,h,p,v,m,g,y,b,w,x,k,E,_,T,$,j,R,q,O,F,J,I,D,C;function M(jt){e[16](jt)}var P={class:"jse-filter-path",showChevron:!0,items:e[7]};function B(jt){e[17](jt)}e[0]!==void 0&&(P.value=e[0]),s=new _u({props:P}),Ze.push(function(){return da(s,"value",M)});var A={class:"jse-filter-relation",showChevron:!0,items:e[8]};function W(jt){e[19](jt)}e[1]!==void 0&&(A.value=e[1]),l=new _u({props:A}),Ze.push(function(){return da(l,"value",B)});var N={class:"jse-sort-path",showChevron:!0,items:e[7]};function dt(jt){e[20](jt)}e[3]!==void 0&&(N.value=e[3]),w=new _u({props:N}),Ze.push(function(){return da(w,"value",W)});var et={class:"jse-sort-direction",showChevron:!0,items:e[9]};function yt(jt){e[21](jt)}e[4]!==void 0&&(et.value=e[4]),E=new _u({props:et}),Ze.push(function(){return da(E,"value",dt)});var bt={class:"jse-projection-paths",multiple:!0,showChevron:!0,items:e[6]};return e[5]!==void 0&&(bt.value=e[5]),F=new _u({props:bt}),Ze.push(function(){return da(F,"value",yt)}),{c:function(){t=tt("table"),n=tt("tr"),(r=tt("th")).textContent="Filter",o=kt(),i=tt("td"),a=tt("div"),Pt(s.$$.fragment),u=kt(),Pt(l.$$.fragment),d=kt(),h=tt("input"),p=kt(),v=tt("tr"),(m=tt("th")).textContent="Sort",g=kt(),y=tt("td"),b=tt("div"),Pt(w.$$.fragment),k=kt(),Pt(E.$$.fragment),T=kt(),$=tt("tr"),(j=tt("th")).textContent="Pick",R=kt(),q=tt("td"),O=tt("div"),Pt(F.$$.fragment),S(r,"class","svelte-1kiph99"),S(h,"class","jse-filter-value svelte-1kiph99"),S(a,"class","jse-horizontal svelte-1kiph99"),S(m,"class","svelte-1kiph99"),S(b,"class","jse-horizontal svelte-1kiph99"),S(j,"class","svelte-1kiph99"),S(O,"class","jse-horizontal svelte-1kiph99"),S(t,"class","jse-transform-wizard svelte-1kiph99")},m:function(jt,gt){ft(jt,t,gt),H(t,n),H(n,r),H(n,o),H(n,i),H(i,a),Mt(s,a,null),H(a,u),Mt(l,a,null),H(a,d),H(a,h),ss(h,e[2]),H(t,p),H(t,v),H(v,m),H(v,g),H(v,y),H(y,b),Mt(w,b,null),H(b,k),Mt(E,b,null),H(t,T),H(t,$),H($,j),H($,R),H($,q),H(q,O),Mt(F,O,null),I=!0,D||(C=zt(h,"input",e[18]),D=!0)},p:function(jt,gt){var Y=Ce(gt,1)[0],K={};128&Y&&(K.items=jt[7]),!c&&1&Y&&(c=!0,K.value=jt[0],fa(function(){return c=!1})),s.$set(K);var rt={};!f&&2&Y&&(f=!0,rt.value=jt[1],fa(function(){return f=!1})),l.$set(rt),4&Y&&h.value!==jt[2]&&ss(h,jt[2]);var X={};128&Y&&(X.items=jt[7]),!x&&8&Y&&(x=!0,X.value=jt[3],fa(function(){return x=!1})),w.$set(X);var _t={};!_&&16&Y&&(_=!0,_t.value=jt[4],fa(function(){return _=!1})),E.$set(_t);var L={};64&Y&&(L.items=jt[6]),!J&&32&Y&&(J=!0,L.value=jt[5],fa(function(){return J=!1})),F.$set(L)},i:function(jt){I||(z(s.$$.fragment,jt),z(l.$$.fragment,jt),z(w.$$.fragment,jt),z(E.$$.fragment,jt),z(F.$$.fragment,jt),I=!0)},o:function(jt){V(s.$$.fragment,jt),V(l.$$.fragment,jt),V(w.$$.fragment,jt),V(E.$$.fragment,jt),V(F.$$.fragment,jt),I=!1},d:function(jt){jt&<(t),At(s),At(l),At(w),At(E),At(F),D=!1,C()}}}function jht(e,t,n){var r,o,i,a,s,c,u,l,f,d,h,p=po("jsoneditor:TransformWizard"),v=t.json,m=t.queryOptions,g=m===void 0?{}:m,y=t.onChange,b=["==","!=","<","<=",">",">="].map(function($){return{value:$,label:$}}),w=[{value:"asc",label:"ascending"},{value:"desc",label:"descending"}],x=(r=g)!==null&&r!==void 0&&(r=r.filter)!==null&&r!==void 0&&r.path?Ld(g.filter.path):null,k=(o=g)!==null&&o!==void 0&&(o=o.filter)!==null&&o!==void 0&&o.relation?b.find(function($){var j;return $.value===((j=g.filter)===null||j===void 0?void 0:j.relation)}):null,E=((i=g)===null||i===void 0||(i=i.filter)===null||i===void 0?void 0:i.value)||"",_=(a=g)!==null&&a!==void 0&&(a=a.sort)!==null&&a!==void 0&&a.path?Ld(g.sort.path):null,T=(s=g)!==null&&s!==void 0&&(s=s.sort)!==null&&s!==void 0&&s.direction?w.find(function($){var j;return $.value===((j=g.sort)===null||j===void 0?void 0:j.direction)}):null;return e.$$set=function($){"json"in $&&n(11,v=$.json),"queryOptions"in $&&n(10,g=$.queryOptions),"onChange"in $&&n(12,y=$.onChange)},e.$$.update=function(){var $,j,R,q,O,F,J,I,D,C,M,P,B;2048&e.$$.dirty&&n(15,c=Array.isArray(v)),34816&e.$$.dirty&&n(14,u=c?_w(v):[]),34816&e.$$.dirty&&n(13,l=c?_w(v,!0):[]),16384&e.$$.dirty&&n(7,f=u.map(Ld)),8192&e.$$.dirty&&n(6,d=l?l.map(Ld):[]),1088&e.$$.dirty&&n(5,h=($=g)!==null&&$!==void 0&&($=$.projection)!==null&&$!==void 0&&$.paths&&d?g.projection.paths.map(function(A){return d.find(function(W){return an(W.value,A)})}).filter(function(A){return!!A}):null),1&e.$$.dirty&&(R=((j=x)===null||j===void 0?void 0:j.value)||null,an((q=g)===null||q===void 0||(q=q.filter)===null||q===void 0?void 0:q.path,R)||(p("changeFilterPath",R),n(10,g=sa(g,["filter","path"],R,!0)),y(g))),2&e.$$.dirty&&(F=((O=k)===null||O===void 0?void 0:O.value)||null,an((J=g)===null||J===void 0||(J=J.filter)===null||J===void 0?void 0:J.relation,F)||(p("changeFilterRelation",F),n(10,g=sa(g,["filter","relation"],F,!0)),y(g))),4&e.$$.dirty&&(I=E||null,an((D=g)===null||D===void 0||(D=D.filter)===null||D===void 0?void 0:D.value,I)||(p("changeFilterValue",I),n(10,g=sa(g,["filter","value"],I,!0)),y(g))),8&e.$$.dirty&&function(A){var W;an((W=g)===null||W===void 0||(W=W.sort)===null||W===void 0?void 0:W.path,A)||(p("changeSortPath",A),n(10,g=sa(g,["sort","path"],A,!0)),y(g))}(((C=_)===null||C===void 0?void 0:C.value)||null),16&e.$$.dirty&&(P=((M=T)===null||M===void 0?void 0:M.value)||null,an((B=g)===null||B===void 0||(B=B.sort)===null||B===void 0?void 0:B.direction,P)||(p("changeSortDirection",P),n(10,g=sa(g,["sort","direction"],P,!0)),y(g))),32&e.$$.dirty&&function(A){var W;an((W=g)===null||W===void 0||(W=W.projection)===null||W===void 0?void 0:W.paths,A)||(p("changeProjectionPaths",A),n(10,g=sa(g,["projection","paths"],A,!0)),y(g))}(h?h.map(function(A){return A.value}):null)},[x,k,E,_,T,h,d,f,b,w,g,v,y,l,u,c,function($){n(0,x=$)},function($){n(1,k=$)},function(){E=this.value,n(2,E)},function($){n(3,_=$)},function($){n(4,T=$)},function($){n(5,h=$),n(10,g),n(6,d),n(13,l),n(15,c),n(11,v)}]}var _ht=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,jht,kht,qe,{json:11,queryOptions:10,onChange:12},xht),o}return it(n)}();function Sht(e){Le(e,"svelte-19cxesy",".jse-select-query-language.svelte-19cxesy.svelte-19cxesy{position:relative;width:32px}.jse-select-query-language.svelte-19cxesy .jse-select-query-language-container.svelte-19cxesy{position:absolute;top:0;right:0;display:flex;flex-direction:column;box-shadow:var(--jse-controls-box-shadow)}.jse-select-query-language.svelte-19cxesy .jse-select-query-language-container .jse-query-language.svelte-19cxesy{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;text-align:left;padding:var(--jse-padding) calc(2 * var(--jse-padding));white-space:nowrap;color:var(--jse-context-menu-color);background:var(--jse-context-menu-background)}.jse-select-query-language.svelte-19cxesy .jse-select-query-language-container .jse-query-language.svelte-19cxesy:hover{background:var(--jse-context-menu-background-highlight)}")}function eM(e,t,n){var r=e.slice();return r[5]=t[n],r}function $ht(e){var t,n;return t=new hn({props:{data:Nh}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},i:function(r){n||(z(t.$$.fragment,r),n=!0)},o:function(r){V(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function Cht(e){var t,n;return t=new hn({props:{data:Ih}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},i:function(r){n||(z(t.$$.fragment,r),n=!0)},o:function(r){V(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function nM(e){var t,n,r,o,i,a,s,c,u,l,f=e[5].name+"",d=[Cht,$ht],h=[];function p(m,g){return m[5].id===m[0]?0:1}function v(){return e[4](e[5])}return n=p(e),r=h[n]=d[n](e),{c:function(){t=tt("button"),r.c(),o=kt(),i=Gt(f),a=kt(),S(t,"type","button"),S(t,"class","jse-query-language svelte-19cxesy"),S(t,"title",s="Select ".concat(e[5].name," as query language")),Dt(t,"selected",e[5].id===e[0])},m:function(m,g){ft(m,t,g),h[n].m(t,null),H(t,o),H(t,i),H(t,a),c=!0,u||(l=zt(t,"click",v),u=!0)},p:function(m,g){var y=n;(n=p(e=m))!==y&&(Bt(),V(h[y],1,1,function(){h[y]=null}),Ft(),(r=h[n])||(r=h[n]=d[n](e)).c(),z(r,1),r.m(t,o)),(!c||2&g)&&f!==(f=e[5].name+"")&&we(i,f),(!c||2&g&&s!==(s="Select ".concat(e[5].name," as query language")))&&S(t,"title",s),(!c||3&g)&&Dt(t,"selected",e[5].id===e[0])},i:function(m){c||(z(r),c=!0)},o:function(m){V(r),c=!1},d:function(m){m&<(t),h[n].d(),u=!1,l()}}}function Eht(e){for(var t,n,r,o=De(e[1]),i=[],a=0;a<o.length;a+=1)i[a]=nM(eM(e,o,a));var s=function(c){return V(i[c],1,1,function(){i[c]=null})};return{c:function(){t=tt("div"),n=tt("div");for(var c=0;c<i.length;c+=1)i[c].c();S(n,"class","jse-select-query-language-container svelte-19cxesy"),S(t,"class","jse-select-query-language svelte-19cxesy")},m:function(c,u){ft(c,t,u),H(t,n);for(var l=0;l<i.length;l+=1)i[l]&&i[l].m(n,null);r=!0},p:function(c,u){var l=Ce(u,1)[0];if(7&l){var f;for(o=De(c[1]),f=0;f<o.length;f+=1){var d=eM(c,o,f);i[f]?(i[f].p(d,l),z(i[f],1)):(i[f]=nM(d),i[f].c(),z(i[f],1),i[f].m(n,null))}for(Bt(),f=o.length;f<i.length;f+=1)s(f);Ft()}},i:function(c){if(!r){for(var u=0;u<o.length;u+=1)z(i[u]);r=!0}},o:function(c){i=i.filter(Boolean);for(var u=0;u<i.length;u+=1)V(i[u]);r=!1},d:function(c){c&<(t),Dr(i,c)}}}function Oht(e,t,n){var r=t.queryLanguages,o=t.queryLanguageId,i=t.onChangeQueryLanguage;function a(s){n(0,o=s),i(s)}return e.$$set=function(s){"queryLanguages"in s&&n(1,r=s.queryLanguages),"queryLanguageId"in s&&n(0,o=s.queryLanguageId),"onChangeQueryLanguage"in s&&n(3,i=s.onChangeQueryLanguage)},[o,r,a,i,function(s){return a(s.id)}]}var Mht=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,Oht,Eht,eo,{queryLanguages:1,queryLanguageId:0,onChangeQueryLanguage:3},Sht),o}return it(n)}();function Aht(e){Le(e,"svelte-d01h2s",".jse-header.svelte-d01h2s.svelte-d01h2s{display:flex;background:var(--jse-theme-color);color:var(--jse-menu-color)}.jse-header.svelte-d01h2s .jse-title.svelte-d01h2s{flex:1;padding:5px;vertical-align:middle}.jse-header.svelte-d01h2s button.svelte-d01h2s{border:none;background:transparent;min-width:32px;color:inherit;cursor:pointer}.jse-header.svelte-d01h2s button.svelte-d01h2s:hover{background:rgba(255, 255, 255, 0.1)}")}function rM(e){var t,n,r,o,i;return n=new hn({props:{data:kdt}}),{c:function(){t=tt("button"),Pt(n.$$.fragment),S(t,"type","button"),S(t,"class","jse-config svelte-d01h2s"),S(t,"title","Select a query language")},m:function(a,s){ft(a,t,s),Mt(n,t,null),e[6](t),r=!0,o||(i=zt(t,"click",e[3]),o=!0)},p:Ht,i:function(a){r||(z(n.$$.fragment,a),r=!0)},o:function(a){V(n.$$.fragment,a),r=!1},d:function(a){a&<(t),At(n),e[6](null),o=!1,i()}}}function Pht(e){var t,n,r,o,i,a,s,c,u,l=e[0].length>1&&rM(e);return a=new hn({props:{data:Ef}}),{c:function(){t=tt("div"),(n=tt("div")).textContent="Transform",r=kt(),l&&l.c(),o=kt(),i=tt("button"),Pt(a.$$.fragment),S(n,"class","jse-title svelte-d01h2s"),S(i,"type","button"),S(i,"class","jse-close svelte-d01h2s"),S(t,"class","jse-header svelte-d01h2s")},m:function(f,d){ft(f,t,d),H(t,n),H(t,r),l&&l.m(t,null),H(t,o),H(t,i),Mt(a,i,null),s=!0,c||(u=zt(i,"click",e[7]),c=!0)},p:function(f,d){var h=Ce(d,1)[0];f[0].length>1?l?(l.p(f,h),1&h&&z(l,1)):((l=rM(f)).c(),z(l,1),l.m(t,o)):l&&(Bt(),V(l,1,1,function(){l=null}),Ft())},i:function(f){s||(z(l),z(a.$$.fragment,f),s=!0)},o:function(f){V(l),V(a.$$.fragment,f),s=!1},d:function(f){f&<(t),l&&l.d(),At(a),c=!1,u()}}}function Tht(e,t,n){var r,o,i=t.queryLanguages,a=t.queryLanguageId,s=t.onChangeQueryLanguage,c=ho("simple-modal").close,u=ho("absolute-popup"),l=u.openAbsolutePopup,f=u.closeAbsolutePopup;return e.$$set=function(d){"queryLanguages"in d&&n(0,i=d.queryLanguages),"queryLanguageId"in d&&n(4,a=d.queryLanguageId),"onChangeQueryLanguage"in d&&n(5,s=d.onChangeQueryLanguage)},[i,r,c,function(){o=l(Mht,{queryLanguages:i,queryLanguageId:a,onChangeQueryLanguage:function(d){f(o),s(d)}},{position:"bottom",offsetTop:-2,offsetLeft:0,anchor:r,closeOnOuterClick:!0})},a,s,function(d){Ze[d?"unshift":"push"](function(){n(1,r=d)})},function(){return c()}]}var Rht=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,Tht,Pht,qe,{queryLanguages:0,queryLanguageId:4,onChangeQueryLanguage:5},Aht),o}return it(n)}(),wy=po("jsoneditor:AutoScrollHandler"),Iht=function(e,t,n,r){return(e/=r/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t},yB=function(){var e,t,n,r,o,i,a,s,c,u,l,f,d;function h(m){return m.getBoundingClientRect().top-(e.getBoundingClientRect?e.getBoundingClientRect().top:0)+n}function p(m){e.scrollTo?e.scrollTo(e.scrollLeft,m):e.scrollTop=m}function v(m){u||(u=m),p(i(l=m-u,n,s,c)),d=!0,l<c?requestAnimationFrame(v):function(){p(n+s),t&&a&&(t.setAttribute("tabindex","-1"),t.focus()),typeof f=="function"&&f(),u=0,d=!1}()}return function(m){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};switch(c=1e3,o=g.offset||0,f=g.callback,i=g.easing||Iht,a=g.a11y||!1,ce(g.container)){case"object":e=g.container;break;case"string":e=document.querySelector(g.container);break;default:e=window.document.documentElement}switch(n=e.scrollTop,ce(m)){case"number":t=void 0,a=!1,r=n+m;break;case"object":r=h(t=m);break;case"string":t=document.querySelector(m),r=h(t)}switch(s=r-n+o,ce(g.duration)){case"number":c=g.duration;break;case"function":c=g.duration(s)}d?u=0:requestAnimationFrame(v)}},Nht=1e3,pv=po("jsoneditor:History");function bB(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.maxItems||Nht,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(c){pv("add",c),n=[c].concat(n.slice(r)).slice(0,t),r=0,s()},clear:function(){pv("clear"),n=[],r=0,s()},getState:a,undo:function(){if(o()){var c=n[r];return r+=1,pv("undo",c),s(),c}},redo:function(){if(i())return pv("redo",n[r-=1]),s(),n[r]}}}function zl(e,t){var n=Date.now(),r=e();return t(Date.now()-n),r}var Cl=po("validation");function wB(e,t,n,r){return Cl("validateJSON"),t?t(n!==r?r.parse(n.stringify(e)):e):[]}function Dht(e,t,n,r){if(Cl("validateText"),e.length>kZ)return{validationErrors:[{path:[],message:"Validation turned off: the document is too large",severity:Fs.info}]};if(e.length===0)return null;try{var o=zl(function(){return n.parse(e)},function(c){return Cl("validate: parsed json in ".concat(c," ms"))});if(!t)return null;var i=n===r?o:zl(function(){return r.parse(e)},function(c){return Cl("validate: parsed json with the validationParser in ".concat(c," ms"))}),a=zl(function(){return t(i)},function(c){return Cl("validate: validated json in ".concat(c," ms"))});return cn(a)?null:{validationErrors:a}}catch(c){var s=zl(function(){return function(u,l){if(u.length>jZ)return!1;try{return l.parse(Xa(u)),!0}catch{return!1}}(e,n)},function(u){return Cl("validate: checked whether repairable in ".concat(u," ms"))});return{parseError:_f(e,c.message||c.toString()),isRepairable:s}}}var vv=po("jsoneditor:FocusTracker");function yj(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 f=i();f&&(clearTimeout(t),c||(vv("focus"),a(),c=f))}function l(){c&&(clearTimeout(t),t=setTimeout(function(){vv("blur"),c=!1,s()}))}n(function(){vv("mount FocusTracker");var f=o();f&&(f.addEventListener("focusin",u,!0),f.addEventListener("focusout",l,!0))}),r(function(){vv("destroy FocusTracker");var f=o();f&&(f.removeEventListener("focusin",u,!0),f.removeEventListener("focusout",l,!0))})}function Lht(e){Le(e,"svelte-fqu1ku",".jse-message.svelte-fqu1ku.svelte-fqu1ku{font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);padding:var(--jse-padding);display:flex;gap:var(--jse-padding);flex-wrap:wrap;align-items:stretch}.jse-message.jse-success.svelte-fqu1ku.svelte-fqu1ku{background:var(--jse-message-success-background);color:var(--jse-message-success-color)}.jse-message.svelte-fqu1ku .jse-text.svelte-fqu1ku{display:flex;flex:1;min-width:60%;align-items:center}.jse-message.svelte-fqu1ku .jse-text.jse-clickable.svelte-fqu1ku{cursor:pointer}.jse-message.svelte-fqu1ku .jse-text.jse-clickable.svelte-fqu1ku:hover{background-color:rgba(255, 255, 255, 0.1)}.jse-message.jse-error.svelte-fqu1ku.svelte-fqu1ku{background:var(--jse-message-error-background);color:var(--jse-message-error-color)}.jse-message.jse-warning.svelte-fqu1ku.svelte-fqu1ku{background:var(--jse-message-warning-background);color:var(--jse-message-warning-color)}.jse-message.jse-info.svelte-fqu1ku.svelte-fqu1ku{background:var(--jse-message-info-background);color:var(--jse-message-info-color)}.jse-message.svelte-fqu1ku .jse-actions.svelte-fqu1ku{display:flex;gap:var(--jse-padding)}.jse-message.svelte-fqu1ku .jse-actions button.jse-action.svelte-fqu1ku{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-message-action-background);color:inherit;padding:calc(0.5 * var(--jse-padding)) var(--jse-padding)}.jse-message.svelte-fqu1ku .jse-actions button.jse-action.svelte-fqu1ku:hover{background:var(--jse-message-action-background-highlight)}")}function oM(e,t,n){var r=e.slice();return r[9]=t[n],r}function iM(e){var t,n;return t=new hn({props:{data:e[1]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};2&o&&(i.data=r[1]),t.$set(i)},i:function(r){n||(z(t.$$.fragment,r),n=!0)},o:function(r){V(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function aM(e){var t,n;return t=new hn({props:{data:e[9].icon}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};8&o&&(i.data=r[9].icon),t.$set(i)},i:function(r){n||(z(t.$$.fragment,r),n=!0)},o:function(r){V(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function sM(e){var t,n,r,o,i,a,s,c,u,l=e[9].text+"",f=e[9].icon&&aM(e);function d(){return e[7](e[9])}function h(){return e[8](e[9])}return{c:function(){t=tt("button"),f&&f.c(),n=kt(),r=Gt(l),o=kt(),S(t,"type","button"),S(t,"class","jse-button jse-action jse-primary svelte-fqu1ku"),S(t,"title",i=e[9].title),t.disabled=a=e[9].disabled},m:function(p,v){ft(p,t,v),f&&f.m(t,null),H(t,n),H(t,r),H(t,o),s=!0,c||(u=[zt(t,"click",d),zt(t,"mousedown",h)],c=!0)},p:function(p,v){(e=p)[9].icon?f?(f.p(e,v),8&v&&z(f,1)):((f=aM(e)).c(),z(f,1),f.m(t,n)):f&&(Bt(),V(f,1,1,function(){f=null}),Ft()),(!s||8&v)&&l!==(l=e[9].text+"")&&we(r,l),(!s||8&v&&i!==(i=e[9].title))&&S(t,"title",i),(!s||8&v&&a!==(a=e[9].disabled))&&(t.disabled=a)},i:function(p){s||(z(f),s=!0)},o:function(p){V(f),s=!1},d:function(p){p&<(t),f&&f.d(),c=!1,Fn(u)}}}function zht(e){for(var t,n,r,o,i,a,s,c,u,l,f,d=e[1]&&iM(e),h=De(e[3]),p=[],v=0;v<h.length;v+=1)p[v]=sM(oM(e,h,v));var m=function(g){return V(p[g],1,1,function(){p[g]=null})};return{c:function(){t=tt("div"),n=tt("div"),r=tt("div"),d&&d.c(),o=kt(),i=Gt(e[2]),a=kt(),s=tt("div");for(var g=0;g<p.length;g+=1)p[g].c();S(r,"class","jse-text-centered"),S(n,"role","button"),S(n,"tabindex","-1"),S(n,"class","jse-text svelte-fqu1ku"),Dt(n,"jse-clickable",!!e[4]),S(s,"class","jse-actions svelte-fqu1ku"),S(t,"class",c="jse-message jse-"+e[0]+" svelte-fqu1ku")},m:function(g,y){ft(g,t,y),H(t,n),H(n,r),d&&d.m(r,null),H(r,o),H(r,i),H(t,a),H(t,s);for(var b=0;b<p.length;b+=1)p[b]&&p[b].m(s,null);u=!0,l||(f=zt(n,"click",e[5]),l=!0)},p:function(g,y){var b=Ce(y,1)[0];if(g[1]?d?(d.p(g,b),2&b&&z(d,1)):((d=iM(g)).c(),z(d,1),d.m(r,o)):d&&(Bt(),V(d,1,1,function(){d=null}),Ft()),(!u||4&b)&&we(i,g[2]),(!u||16&b)&&Dt(n,"jse-clickable",!!g[4]),8&b){var w;for(h=De(g[3]),w=0;w<h.length;w+=1){var x=oM(g,h,w);p[w]?(p[w].p(x,b),z(p[w],1)):(p[w]=sM(x),p[w].c(),z(p[w],1),p[w].m(s,null))}for(Bt(),w=h.length;w<p.length;w+=1)m(w);Ft()}(!u||1&b&&c!==(c="jse-message jse-"+g[0]+" svelte-fqu1ku"))&&S(t,"class",c)},i:function(g){if(!u){z(d);for(var y=0;y<h.length;y+=1)z(p[y]);u=!0}},o:function(g){V(d),p=p.filter(Boolean);for(var y=0;y<p.length;y+=1)V(p[y]);u=!1},d:function(g){g&<(t),d&&d.d(),Dr(p,g),l=!1,f()}}}function Bht(e,t,n){var r=t.type,o=r===void 0?"success":r,i=t.icon,a=i===void 0?void 0:i,s=t.message,c=s===void 0?void 0:s,u=t.actions,l=u===void 0?[]:u,f=t.onClick,d=f===void 0?void 0:f,h=t.onClose,p=h===void 0?void 0:h;return p&&gi(p),e.$$set=function(v){"type"in v&&n(0,o=v.type),"icon"in v&&n(1,a=v.icon),"message"in v&&n(2,c=v.message),"actions"in v&&n(3,l=v.actions),"onClick"in v&&n(4,d=v.onClick),"onClose"in v&&n(6,p=v.onClose)},[o,a,c,l,d,function(){d&&d()},p,function(v){v.onClick&&v.onClick()},function(v){v.onMouseDown&&v.onMouseDown()}]}var Aa=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,Bht,zht,qe,{type:0,icon:1,message:2,actions:3,onClick:4,onClose:6},Lht),o}return it(n)}();function Fht(e){Le(e,"svelte-1oe8e8r",".jse-validation-errors-overview.svelte-1oe8e8r.svelte-1oe8e8r{font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);background:var(--jse-message-warning-background);color:var(--jse-message-warning-color);overflow:auto;max-height:25%}.jse-validation-errors-overview.svelte-1oe8e8r table.svelte-1oe8e8r{border-collapse:collapse;width:100%}.jse-validation-errors-overview.svelte-1oe8e8r table tr.svelte-1oe8e8r{cursor:pointer}.jse-validation-errors-overview.svelte-1oe8e8r table tr.svelte-1oe8e8r:hover{background-color:rgba(255, 255, 255, 0.1)}.jse-validation-errors-overview.svelte-1oe8e8r table tr td.svelte-1oe8e8r{padding:4px var(--jse-padding);vertical-align:middle}.jse-validation-errors-overview.svelte-1oe8e8r table tr td.jse-validation-error-icon.svelte-1oe8e8r{width:36px;box-sizing:border-box}.jse-validation-errors-overview.svelte-1oe8e8r table tr td.jse-validation-error-action.svelte-1oe8e8r{width:36px;box-sizing:border-box;padding:0}.jse-validation-errors-overview.svelte-1oe8e8r table tr td.jse-validation-error-action button.jse-validation-errors-collapse.svelte-1oe8e8r{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;width:36px;height:26px;cursor:pointer}.jse-validation-errors-overview.svelte-1oe8e8r table tr td.jse-validation-error-action button.jse-validation-errors-collapse.svelte-1oe8e8r:hover{background-color:rgba(255, 255, 255, 0.2)}.jse-validation-errors-overview.svelte-1oe8e8r table tr td div.jse-validation-errors-expand.svelte-1oe8e8r{display:inline-block;position:relative;top:3px}")}function cM(e,t,n){var r=e.slice();return r[7]=t[n],r[9]=n,r}function uM(e){var t,n,r,o,i=[Hht,qht],a=[];function s(c,u){return c[2]||c[3]===1?0:1}return n=s(e),r=a[n]=i[n](e),{c:function(){t=tt("div"),r.c(),S(t,"class","jse-validation-errors-overview svelte-1oe8e8r")},m:function(c,u){ft(c,t,u),a[n].m(t,null),o=!0},p:function(c,u){var l=n;(n=s(c))===l?a[n].p(c,u):(Bt(),V(a[l],1,1,function(){a[l]=null}),Ft(),(r=a[n])?r.p(c,u):(r=a[n]=i[n](c)).c(),z(r,1),r.m(t,null))},i:function(c){o||(z(r),o=!0)},o:function(c){V(r),o=!1},d:function(c){c&<(t),a[n].d()}}}function qht(e){var t,n,r,o,i,a,s,c,u,l,f,d,h,p;return i=new hn({props:{data:dl}}),f=new hn({props:{data:iB}}),{c:function(){t=tt("table"),n=tt("tbody"),r=tt("tr"),o=tt("td"),Pt(i.$$.fragment),a=kt(),s=tt("td"),c=Gt(e[3]),u=Gt(` validation errors
|
|
99
|
+
`),l=tt("div"),Pt(f.$$.fragment),S(o,"class","jse-validation-error-icon svelte-1oe8e8r"),S(l,"class","jse-validation-errors-expand svelte-1oe8e8r"),S(s,"class","svelte-1oe8e8r"),S(r,"class","jse-validation-error svelte-1oe8e8r"),S(t,"class","svelte-1oe8e8r")},m:function(v,m){ft(v,t,m),H(t,n),H(n,r),H(r,o),Mt(i,o,null),H(r,a),H(r,s),H(s,c),H(s,u),H(s,l),Mt(f,l,null),d=!0,h||(p=zt(r,"click",e[5]),h=!0)},p:function(v,m){(!d||8&m)&&we(c,v[3])},i:function(v){d||(z(i.$$.fragment,v),z(f.$$.fragment,v),d=!0)},o:function(v){V(i.$$.fragment,v),V(f.$$.fragment,v),d=!1},d:function(v){v&<(t),At(i),At(f),h=!1,p()}}}function Hht(e){for(var t,n,r,o,i=De(pg(e[0],Il)),a=[],s=0;s<i.length;s+=1)a[s]=fM(cM(e,i,s));var c=function(l){return V(a[l],1,1,function(){a[l]=null})},u=e[3]>Il&&dM(e);return{c:function(){t=tt("table"),n=tt("tbody");for(var l=0;l<a.length;l+=1)a[l].c();r=kt(),u&&u.c(),S(t,"class","svelte-1oe8e8r")},m:function(l,f){ft(l,t,f),H(t,n);for(var d=0;d<a.length;d+=1)a[d]&&a[d].m(n,null);H(n,r),u&&u.m(n,null),o=!0},p:function(l,f){if(19&f){var d;for(i=De(pg(l[0],Il)),d=0;d<i.length;d+=1){var h=cM(l,i,d);a[d]?(a[d].p(h,f),z(a[d],1)):(a[d]=fM(h),a[d].c(),z(a[d],1),a[d].m(n,r))}for(Bt(),d=i.length;d<a.length;d+=1)c(d);Ft()}l[3]>Il?u?u.p(l,f):((u=dM(l)).c(),u.m(n,null)):u&&(u.d(1),u=null)},i:function(l){if(!o){for(var f=0;f<i.length;f+=1)z(a[f]);o=!0}},o:function(l){a=a.filter(Boolean);for(var f=0;f<a.length;f+=1)V(a[f]);o=!1},d:function(l){l&<(t),Dr(a,l),u&&u.d()}}}function lM(e){var t,n,r,o,i;return n=new hn({props:{data:jdt}}),{c:function(){t=tt("button"),Pt(n.$$.fragment),S(t,"type","button"),S(t,"class","jse-validation-errors-collapse svelte-1oe8e8r"),S(t,"title","Collapse validation errors")},m:function(a,s){ft(a,t,s),Mt(n,t,null),r=!0,o||(i=zt(t,"click",Lc(e[4])),o=!0)},p:Ht,i:function(a){r||(z(n.$$.fragment,a),r=!0)},o:function(a){V(n.$$.fragment,a),r=!1},d:function(a){a&<(t),At(n),o=!1,i()}}}function fM(e){var t,n,r,o,i,a,s,c,u,l,f,d,h,p,v=ai(e[7].path)+"",m=e[7].message+"";r=new hn({props:{data:dl}});var g=e[9]===0&&e[0].length>1&&lM(e);function y(){return e[6](e[7])}return{c:function(){t=tt("tr"),n=tt("td"),Pt(r.$$.fragment),o=kt(),i=tt("td"),a=Gt(v),s=kt(),c=tt("td"),u=Gt(m),l=kt(),f=tt("td"),g&&g.c(),S(n,"class","jse-validation-error-icon svelte-1oe8e8r"),S(i,"class","svelte-1oe8e8r"),S(c,"class","svelte-1oe8e8r"),S(f,"class","jse-validation-error-action svelte-1oe8e8r"),S(t,"class","jse-validation-error svelte-1oe8e8r")},m:function(b,w){ft(b,t,w),H(t,n),Mt(r,n,null),H(t,o),H(t,i),H(i,a),H(t,s),H(t,c),H(c,u),H(t,l),H(t,f),g&&g.m(f,null),d=!0,h||(p=zt(t,"click",y),h=!0)},p:function(b,w){e=b,(!d||1&w)&&v!==(v=ai(e[7].path)+"")&&we(a,v),(!d||1&w)&&m!==(m=e[7].message+"")&&we(u,m),e[9]===0&&e[0].length>1?g?(g.p(e,w),1&w&&z(g,1)):((g=lM(e)).c(),z(g,1),g.m(f,null)):g&&(Bt(),V(g,1,1,function(){g=null}),Ft())},i:function(b){d||(z(r.$$.fragment,b),z(g),d=!0)},o:function(b){V(r.$$.fragment,b),V(g),d=!1},d:function(b){b&<(t),At(r),g&&g.d(),h=!1,p()}}}function dM(e){var t,n,r,o,i,a,s,c,u,l,f,d=e[3]-Il+"";return{c:function(){t=tt("tr"),n=tt("td"),r=kt(),o=tt("td"),i=kt(),a=tt("td"),s=Gt("(and "),c=Gt(d),u=Gt(" more errors)"),l=kt(),f=tt("td"),S(n,"class","svelte-1oe8e8r"),S(o,"class","svelte-1oe8e8r"),S(a,"class","svelte-1oe8e8r"),S(f,"class","svelte-1oe8e8r"),S(t,"class","jse-validation-error svelte-1oe8e8r")},m:function(h,p){ft(h,t,p),H(t,n),H(t,r),H(t,o),H(t,i),H(t,a),H(a,s),H(a,c),H(a,u),H(t,l),H(t,f)},p:function(h,p){8&p&&d!==(d=h[3]-Il+"")&&we(c,d)},d:function(h){h&<(t)}}}function Vht(e){var t,n,r=!cn(e[0]),o=r&&uM(e);return{c:function(){o&&o.c(),t=Sn()},m:function(i,a){o&&o.m(i,a),ft(i,t,a),n=!0},p:function(i,a){var s=Ce(a,1)[0];1&s&&(r=!cn(i[0])),r?o?(o.p(i,s),1&s&&z(o,1)):((o=uM(i)).c(),z(o,1),o.m(t.parentNode,t)):o&&(Bt(),V(o,1,1,function(){o=null}),Ft())},i:function(i){n||(z(o),n=!0)},o:function(i){V(o),n=!1},d:function(i){i&<(t),o&&o.d(i)}}}function Wht(e,t,n){var r,o=t.validationErrors,i=t.selectError,a=!0;return e.$$set=function(s){"validationErrors"in s&&n(0,o=s.validationErrors),"selectError"in s&&n(1,i=s.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(s){setTimeout(function(){return i(s)})}]}var bj=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,Wht,Vht,qe,{validationErrors:0,selectError:1},Fht),o}return it(n)}(),Uht=typeof navigator<"u"&&navigator.platform.toUpperCase().indexOf("MAC")>=0;function Kht(e){Le(e,"svelte-d01h2s",".jse-header.svelte-d01h2s.svelte-d01h2s{display:flex;background:var(--jse-theme-color);color:var(--jse-menu-color)}.jse-header.svelte-d01h2s .jse-title.svelte-d01h2s{flex:1;padding:5px;vertical-align:middle}.jse-header.svelte-d01h2s button.svelte-d01h2s{border:none;background:transparent;min-width:32px;color:inherit;cursor:pointer}.jse-header.svelte-d01h2s button.svelte-d01h2s:hover{background:rgba(255, 255, 255, 0.1)}")}function Jht(e){var t,n,r,o,i,a,s,c,u;return a=new hn({props:{data:Ef}}),{c:function(){t=tt("div"),n=tt("div"),r=Gt(e[0]),o=kt(),i=tt("button"),Pt(a.$$.fragment),S(n,"class","jse-title svelte-d01h2s"),S(i,"type","button"),S(i,"class","jse-close svelte-d01h2s"),S(t,"class","jse-header svelte-d01h2s")},m:function(l,f){ft(l,t,f),H(t,n),H(n,r),H(t,o),H(t,i),Mt(a,i,null),s=!0,c||(u=zt(i,"click",e[3]),c=!0)},p:function(l,f){var d=Ce(f,1)[0];(!s||1&d)&&we(r,l[0])},i:function(l){s||(z(a.$$.fragment,l),s=!0)},o:function(l){V(a.$$.fragment,l),s=!1},d:function(l){l&<(t),At(a),c=!1,u()}}}function Ght(e,t,n){var r=t.title,o=r===void 0?"Modal":r,i=t.onClose,a=i===void 0?void 0:i,s=ho("simple-modal").close;return e.$$set=function(c){"title"in c&&n(0,o=c.title),"onClose"in c&&n(1,a=c.onClose)},[o,a,s,function(){a?a():s()}]}var wj=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,Ght,Jht,qe,{title:0,onClose:1},Kht),o}return it(n)}();function Qht(e){Le(e,"svelte-1olothd",".jse-modal.svelte-1olothd.svelte-1olothd{--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px;flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;background:var(--jse-modal-background);color:var(--jse-text-color)}.jse-modal.svelte-1olothd .jse-modal-contents.svelte-1olothd{padding:20px;overflow:auto;min-width:0;min-height:0}.jse-modal.svelte-1olothd .jse-modal-contents .jse-actions.svelte-1olothd{display:flex;flex-direction:row;justify-content:flex-end;padding-top:var(--jse-padding)}.jse-modal.svelte-1olothd .jse-modal-contents .jse-actions button.jse-primary.svelte-1olothd{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px}.jse-modal.svelte-1olothd .jse-modal-contents .jse-actions button.jse-primary.svelte-1olothd:hover{background:var(--jse-button-primary-background-highlight)}.jse-modal.svelte-1olothd .jse-modal-contents .jse-actions button.jse-primary.svelte-1olothd:disabled{background:var(--jse-button-primary-background-disabled)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-modal-overlay-background)}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0}.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;height:auto;min-height:500px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-content{flex:1;display:flex;max-height:calc(100vh - 6rem);padding:0}.jse-modal.jse-copy-paste.svelte-1olothd .jse-shortcuts.svelte-1olothd{display:flex;flex-wrap:wrap;justify-content:space-around;margin:calc(2 * var(--jse-padding)) 0}.jse-modal.jse-copy-paste.svelte-1olothd .jse-shortcuts .jse-shortcut .jse-key.svelte-1olothd{font-size:200%;color:var(--jse-theme-color)}")}function Yht(e){var t,n,r,o,i,a,s,c,u,l,f,d,h,p,v,m,g,y,b,w,x,k,E,_;return n=new wj({props:{title:"Copying and pasting"}}),{c:function(){t=tt("div"),Pt(n.$$.fragment),r=kt(),o=tt("div"),(i=tt("div")).textContent="These actions are unavailable via the menu. Please use:",a=kt(),s=tt("div"),c=tt("div"),(u=tt("div")).textContent="".concat(e[1],"+C"),l=Gt(`
|
|
100
|
+
for copy`),f=kt(),d=tt("div"),(h=tt("div")).textContent="".concat(e[1],"+X"),p=Gt(`
|
|
101
|
+
for cut`),v=kt(),m=tt("div"),(g=tt("div")).textContent="".concat(e[1],"+V"),y=Gt(`
|
|
102
|
+
for paste`),b=kt(),w=tt("div"),(x=tt("button")).textContent="Close",S(u,"class","jse-key svelte-1olothd"),S(c,"class","jse-shortcut"),S(h,"class","jse-key svelte-1olothd"),S(d,"class","jse-shortcut"),S(g,"class","jse-key svelte-1olothd"),S(m,"class","jse-shortcut"),S(s,"class","jse-shortcuts svelte-1olothd"),S(x,"type","button"),S(x,"class","jse-primary svelte-1olothd"),S(w,"class","jse-actions svelte-1olothd"),S(o,"class","jse-modal-contents svelte-1olothd"),S(t,"class","jse-modal jse-copy-paste svelte-1olothd")},m:function(T,$){ft(T,t,$),Mt(n,t,null),H(t,r),H(t,o),H(o,i),H(o,a),H(o,s),H(s,c),H(c,u),H(c,l),H(s,f),H(s,d),H(d,h),H(d,p),H(s,v),H(s,m),H(m,g),H(m,y),H(o,b),H(o,w),H(w,x),k=!0,E||(_=zt(x,"click",e[0]),E=!0)},p:Ht,i:function(T){k||(z(n.$$.fragment,T),k=!0)},o:function(T){V(n.$$.fragment,T),k=!1},d:function(T){T&<(t),At(n),E=!1,_()}}}function Xht(e){return[ho("simple-modal").close,Uht?"⌘":"Ctrl"]}var xB=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,Xht,Yht,qe,{},Qht),o}return it(n)}();function kB(e){return!!e&&(e.type==="space"||e.space===!0)}function t1(e){return!!e&&(e.type==="separator"||e.separator===!0)}function Zht(e){return!!e&&e.type==="label"&&typeof e.text=="string"}function Mp(e){return!!e&&typeof e.onClick=="function"}function xj(e){return!!e&&e.type==="dropdown-button"&&Mp(e.main)&&Array.isArray(e.items)}function tpt(e){return!!e&&e.type==="row"&&Array.isArray(e.items)}function ept(e){return!!e&&e.type==="column"&&Array.isArray(e.items)}function hM(e){return pr(e)&&pr(e.parseError)}function npt(e){return pr(e)&&Array.isArray(e.validationErrors)}function rpt(e){Le(e,"svelte-497ud4",".jse-menu.svelte-497ud4.svelte-497ud4{background:var(--jse-theme-color);border-bottom:1px solid var(--jse-theme-color);color:var(--jse-menu-color);display:flex;flex-wrap:wrap;align-items:center;position:relative}.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4{width:var(--jse-menu-button-size);height:var(--jse-menu-button-size);border:none;background:transparent;color:inherit;cursor:pointer;padding:calc(0.5 * var(--jse-padding));margin:0;border-radius:0}.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4:hover,.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4:focus{background:var(--jse-theme-color-highlight)}.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4:disabled{color:var(--jse-menu-color);opacity:0.5;background:transparent}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4{border:1px solid var(--jse-menu-color);padding:0 calc(0.5 * var(--jse-padding));margin:calc(0.5 * var(--jse-padding)) 0;height:calc(var(--jse-menu-button-size) - var(--jse-padding));width:auto}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4:not(.jse-last){border-right:none}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.jse-first.svelte-497ud4{margin-left:calc(0.5 * var(--jse-padding))}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.jse-last.svelte-497ud4{margin-right:calc(0.5 * var(--jse-padding))}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4:hover,.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4:focus{background:var(--jse-theme-color-highlight)}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.jse-selected.svelte-497ud4{background:var(--jse-menu-color);color:var(--jse-theme-color)}.jse-menu.svelte-497ud4 .jse-space.svelte-497ud4{flex:1}.jse-menu.svelte-497ud4 .jse-separator.svelte-497ud4{background:var(--jse-menu-color);opacity:0.3;box-sizing:border-box;width:1px;height:calc(var(--jse-menu-button-size) - 6px);margin:3px}")}var opt=function(e){return{}},pM=function(e){return{}};function vM(e,t,n){var r=e.slice();return r[3]=t[n],r}var ipt=function(e){return{}},mM=function(e){return{}};function apt(e){var t,n=wM(e[3])+"";return{c:function(){t=Gt(n)},m:function(r,o){ft(r,t,o)},p:function(r,o){1&o&&n!==(n=wM(r[3])+"")&&we(t,n)},i:Ht,o:Ht,d:function(r){r&<(t)}}}function spt(e){var t,n,r,o,i,a,s,c,u=e[3].icon&&gM(e),l=e[3].text&&yM(e);return{c:function(){t=tt("button"),u&&u.c(),n=kt(),l&&l.c(),S(t,"type","button"),S(t,"class",r="jse-button "+e[3].className+" svelte-497ud4"),S(t,"title",o=e[3].title),t.disabled=i=e[3].disabled||!1},m:function(f,d){ft(f,t,d),u&&u.m(t,null),H(t,n),l&&l.m(t,null),a=!0,s||(c=zt(t,"click",function(){uo(e[3].onClick)&&e[3].onClick.apply(this,arguments)}),s=!0)},p:function(f,d){(e=f)[3].icon?u?(u.p(e,d),1&d&&z(u,1)):((u=gM(e)).c(),z(u,1),u.m(t,n)):u&&(Bt(),V(u,1,1,function(){u=null}),Ft()),e[3].text?l?l.p(e,d):((l=yM(e)).c(),l.m(t,null)):l&&(l.d(1),l=null),(!a||1&d&&r!==(r="jse-button "+e[3].className+" svelte-497ud4"))&&S(t,"class",r),(!a||1&d&&o!==(o=e[3].title))&&S(t,"title",o),(!a||1&d&&i!==(i=e[3].disabled||!1))&&(t.disabled=i)},i:function(f){a||(z(u),a=!0)},o:function(f){V(u),a=!1},d:function(f){f&<(t),u&&u.d(),l&&l.d(),s=!1,c()}}}function cpt(e){var t;return{c:function(){S(t=tt("div"),"class","jse-space svelte-497ud4")},m:function(n,r){ft(n,t,r)},p:Ht,i:Ht,o:Ht,d:function(n){n&<(t)}}}function upt(e){var t;return{c:function(){S(t=tt("div"),"class","jse-separator svelte-497ud4")},m:function(n,r){ft(n,t,r)},p:Ht,i:Ht,o:Ht,d:function(n){n&<(t)}}}function gM(e){var t,n;return t=new hn({props:{data:e[3].icon}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};1&o&&(i.data=r[3].icon),t.$set(i)},i:function(r){n||(z(t.$$.fragment,r),n=!0)},o:function(r){V(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function yM(e){var t,n=e[3].text+"";return{c:function(){t=Gt(n)},m:function(r,o){ft(r,t,o)},p:function(r,o){1&o&&n!==(n=r[3].text+"")&&we(t,n)},d:function(r){r&<(t)}}}function bM(e){var t,n,r,o,i,a,s,c=[upt,cpt,spt,apt],u=[];function l(f,d){return 1&d&&(t=null),1&d&&(n=null),1&d&&(r=null),t==null&&(t=!!t1(f[3])),t?0:(n==null&&(n=!!kB(f[3])),n?1:(r==null&&(r=!!Mp(f[3])),r?2:3))}return o=l(e,-1),i=u[o]=c[o](e),{c:function(){i.c(),a=Sn()},m:function(f,d){u[o].m(f,d),ft(f,a,d),s=!0},p:function(f,d){var h=o;(o=l(f,d))===h?u[o].p(f,d):(Bt(),V(u[h],1,1,function(){u[h]=null}),Ft(),(i=u[o])?i.p(f,d):(i=u[o]=c[o](f)).c(),z(i,1),i.m(a.parentNode,a))},i:function(f){s||(z(i),s=!0)},o:function(f){V(i),s=!1},d:function(f){f&<(a),u[o].d(f)}}}function lpt(e){for(var t,n,r,o,i=e[2].left,a=Cr(i,e,e[1],mM),s=De(e[0]),c=[],u=0;u<s.length;u+=1)c[u]=bM(vM(e,s,u));var l=function(h){return V(c[h],1,1,function(){c[h]=null})},f=e[2].right,d=Cr(f,e,e[1],pM);return{c:function(){t=tt("div"),a&&a.c(),n=kt();for(var h=0;h<c.length;h+=1)c[h].c();r=kt(),d&&d.c(),S(t,"class","jse-menu svelte-497ud4")},m:function(h,p){ft(h,t,p),a&&a.m(t,null),H(t,n);for(var v=0;v<c.length;v+=1)c[v]&&c[v].m(t,null);H(t,r),d&&d.m(t,null),o=!0},p:function(h,p){var v=Ce(p,1)[0];if(a&&a.p&&(!o||2&v)&&Or(a,i,h,h[1],o?Er(i,h[1],v,ipt):Mr(h[1]),mM),1&v){var m;for(s=De(h[0]),m=0;m<s.length;m+=1){var g=vM(h,s,m);c[m]?(c[m].p(g,v),z(c[m],1)):(c[m]=bM(g),c[m].c(),z(c[m],1),c[m].m(t,r))}for(Bt(),m=s.length;m<c.length;m+=1)l(m);Ft()}d&&d.p&&(!o||2&v)&&Or(d,f,h,h[1],o?Er(f,h[1],v,opt):Mr(h[1]),pM)},i:function(h){if(!o){z(a,h);for(var p=0;p<s.length;p+=1)z(c[p]);z(d,h),o=!0}},o:function(h){V(a,h),c=c.filter(Boolean);for(var p=0;p<c.length;p+=1)V(c[p]);V(d,h),o=!1},d:function(h){h&<(t),a&&a.d(h),Dr(c,h),d&&d.d(h)}}}function wM(e){return console.error("Unknown type of menu item",e),"???"}function fpt(e,t,n){var r=t.$$slots,o=r===void 0?{}:r,i=t.$$scope,a=t.items,s=a===void 0?[]:a;return e.$$set=function(c){"items"in c&&n(0,s=c.items),"$$scope"in c&&n(1,i=c.$$scope)},[s,i,o]}var e1=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,fpt,lpt,qe,{items:0},rpt),o}return it(n)}();function dpt(e){Le(e,"svelte-gz09vf",".jse-json-repair-component.svelte-gz09vf.svelte-gz09vf{flex:1;display:flex;flex-direction:column;background:var(--jse-background-color);color:var(--jse-text-color)}.jse-json-repair-component.svelte-gz09vf .jse-menu .jse-info.svelte-gz09vf{padding:0 var(--jse-padding)}.jse-json-repair-component.svelte-gz09vf .jse-json-text.svelte-gz09vf{flex:1;border:none;padding:2px;font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);background:var(--jse-background-color);color:var(--jse-text-color);resize:none;outline:none}")}function hpt(e){var t;return{c:function(){(t=tt("div")).textContent="Repair invalid JSON, then click apply",S(t,"slot","left"),S(t,"class","jse-info svelte-gz09vf")},m:function(n,r){ft(n,t,r)},p:Ht,d:function(n){n&<(t)}}}function ppt(e){var t,n;return t=new Aa({props:{type:"success",message:"JSON is valid now and can be parsed.",actions:e[6]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};64&o&&(i.actions=r[6]),t.$set(i)},i:function(r){n||(z(t.$$.fragment,r),n=!0)},o:function(r){V(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function vpt(e){var t,n;return t=new Aa({props:{type:"error",icon:dl,message:"Cannot parse JSON: ".concat(e[2].message),actions:e[7]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};4&o&&(i.message="Cannot parse JSON: ".concat(r[2].message)),128&o&&(i.actions=r[7]),t.$set(i)},i:function(r){n||(z(t.$$.fragment,r),n=!0)},o:function(r){V(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function mpt(e){var t,n,r,o,i,a,s,c,u,l;n=new e1({props:{items:e[5],$$slots:{left:[hpt]},$$scope:{ctx:e}}});var f=[vpt,ppt],d=[];function h(p,v){return p[2]?0:1}return o=h(e),i=d[o]=f[o](e),{c:function(){t=tt("div"),Pt(n.$$.fragment),r=kt(),i.c(),a=kt(),(s=tt("textarea")).value=e[0],s.readOnly=e[1],S(s,"class","jse-json-text svelte-gz09vf"),S(s,"autocomplete","off"),S(s,"autocapitalize","off"),S(s,"spellcheck","false"),S(t,"class","jse-json-repair-component svelte-gz09vf")},m:function(p,v){ft(p,t,v),Mt(n,t,null),H(t,r),d[o].m(t,null),H(t,a),H(t,s),e[17](s),e[18](t),c=!0,u||(l=zt(s,"input",e[8]),u=!0)},p:function(p,v){var m=Ce(v,1)[0],g={};32&m&&(g.items=p[5]),33554432&m&&(g.$$scope={dirty:m,ctx:p}),n.$set(g);var y=o;(o=h(p))===y?d[o].p(p,m):(Bt(),V(d[y],1,1,function(){d[y]=null}),Ft(),(i=d[o])?i.p(p,m):(i=d[o]=f[o](p)).c(),z(i,1),i.m(t,a)),(!c||1&m)&&(s.value=p[0]),(!c||2&m)&&(s.readOnly=p[1])},i:function(p){c||(z(n.$$.fragment,p),z(i),c=!0)},o:function(p){V(n.$$.fragment,p),V(i),c=!1},d:function(p){p&<(t),At(n),d[o].d(),e[17](null),e[18](null),u=!1,l()}}}function gpt(e,t,n){var r,o,i,a,s,c,u,l,f,d=t.text,h=d===void 0?"":d,p=t.readOnly,v=p!==void 0&&p,m=t.onParse,g=t.onRepair,y=t.onChange,b=y===void 0?null:y,w=t.onApply,x=t.onCancel,k=po("jsoneditor:JSONRepair");function E(){w(h)}return e.$$set=function(_){"text"in _&&n(0,h=_.text),"readOnly"in _&&n(1,v=_.readOnly),"onParse"in _&&n(9,m=_.onParse),"onRepair"in _&&n(10,g=_.onRepair),"onChange"in _&&n(11,b=_.onChange),"onApply"in _&&n(12,w=_.onApply),"onCancel"in _&&n(13,x=_.onCancel)},e.$$.update=function(){1&e.$$.dirty&&n(2,r=function(_){try{return m(_),null}catch(T){return _f(_,T.message)}}(h)),1&e.$$.dirty&&n(16,o=function(_){try{return g(_),!0}catch{return!1}}(h)),4&e.$$.dirty&&k("error",r),8192&e.$$.dirty&&n(5,f=[{type:"space"},{type:"button",icon:Ef,title:"Cancel repair",className:"jse-cancel",onClick:x}]),114688&e.$$.dirty&&n(7,s=o?[i,a]:[i]),2&e.$$.dirty&&n(6,c=[{icon:zh,text:"Apply",title:"Apply fixed JSON",disabled:v,onClick:E}])},n(14,i={icon:_dt,text:"Show me",title:"Scroll to the error location",onClick:function(){l&&r&&r.position!=null&&(l.setSelectionRange(r.position,r.position),setTimeout(function(){l.focus()}))}}),n(15,a={icon:J0,text:"Auto repair",title:"Automatically repair JSON",onClick:function(){try{n(0,h=g(h)),b&&b(h)}catch{}}}),[h,v,r,u,l,f,c,s,function(_){k("handleChange");var T=_.target.value;h!==T&&(n(0,h=T),b&&b(h))},m,g,b,w,x,i,a,o,function(_){Ze[_?"unshift":"push"](function(){n(4,l=_)})},function(_){Ze[_?"unshift":"push"](function(){n(3,u=_)})}]}var ypt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,gpt,mpt,qe,{text:0,readOnly:1,onParse:9,onRepair:10,onChange:11,onApply:12,onCancel:13},dpt),o}return it(n)}(),El=[];function xM(e){if(e.key==="Escape"){var t=Re(El);t&&t()}}function n1(e,t){return cn(El)&&window.addEventListener("keydown",xM),El.push(t),{destroy:function(){El=El.filter(function(n){return n!==t}),cn(El)&&window.removeEventListener("keydown",xM)}}}function bpt(e){Le(e,"svelte-1ffm3pm",".jse-modal.jse-repair.svelte-1ffm3pm{flex:1;display:flex;flex-direction:column;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;background:var(--jse-background-color);color:var(--jse-text-color)}")}function wpt(e){var t,n,r,o,i,a;function s(u){e[7](u)}var c={onParse:e[1],onRepair:e[2],onApply:e[4],onCancel:e[5]};return e[0]!==void 0&&(c.text=e[0]),n=new ypt({props:c}),Ze.push(function(){return da(n,"text",s)}),{c:function(){t=tt("div"),Pt(n.$$.fragment),S(t,"class","jse-modal jse-repair svelte-1ffm3pm")},m:function(u,l){ft(u,t,l),Mt(n,t,null),o=!0,i||(a=fo(n1.call(null,t,e[3])),i=!0)},p:function(u,l){var f=Ce(l,1)[0],d={};2&f&&(d.onParse=u[1]),4&f&&(d.onRepair=u[2]),!r&&1&f&&(r=!0,d.text=u[0],fa(function(){return r=!1})),n.$set(d)},i:function(u){o||(z(n.$$.fragment,u),o=!0)},o:function(u){V(n.$$.fragment,u),o=!1},d:function(u){u&<(t),At(n),i=!1,a()}}}function xpt(e,t,n){var r=t.text,o=t.onParse,i=t.onRepair,a=t.onApply,s=ho("simple-modal").close;return e.$$set=function(c){"text"in c&&n(0,r=c.text),"onParse"in c&&n(1,o=c.onParse),"onRepair"in c&&n(2,i=c.onRepair),"onApply"in c&&n(6,a=c.onApply)},[r,o,i,s,function(c){s(),a(c)},function(){s()},a,function(c){n(0,r=c)}]}var jB=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,xpt,wpt,qe,{text:0,onParse:1,onRepair:2,onApply:6},bpt),o}return it(n)}();function kpt(e){Le(e,"svelte-1u2b6j8","button.jse-context-menu-button.svelte-1u2b6j8{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;flex:1;white-space:nowrap;padding:var(--jse-padding);color:inherit}button.jse-context-menu-button.svelte-1u2b6j8:hover{background:var(--jse-context-menu-background-highlight)}button.jse-context-menu-button.svelte-1u2b6j8:focus{background:var(--jse-context-menu-background-highlight);z-index:1}button.jse-context-menu-button.svelte-1u2b6j8:disabled{color:var(--jse-context-menu-color-disabled);background:unset}button.jse-context-menu-button.left.svelte-1u2b6j8{text-align:left}button.jse-context-menu-button.svelte-1u2b6j8 svg{width:16px}")}function kM(e){var t,n;return t=new hn({props:{data:e[0].icon}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};1&o&&(i.data=r[0].icon),t.$set(i)},i:function(r){n||(z(t.$$.fragment,r),n=!0)},o:function(r){V(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function jM(e){var t,n=e[0].text+"";return{c:function(){t=Gt(n)},m:function(r,o){ft(r,t,o)},p:function(r,o){1&o&&n!==(n=r[0].text+"")&&we(t,n)},d:function(r){r&<(t)}}}function jpt(e){var t,n,r,o,i,a,s,c,u=e[0].icon&&kM(e),l=e[0].text&&jM(e);return{c:function(){t=tt("button"),u&&u.c(),n=kt(),l&&l.c(),S(t,"type","button"),S(t,"class",r=dr(ls("jse-context-menu-button",e[1],e[0].className))+" svelte-1u2b6j8"),S(t,"title",o=e[0].title),t.disabled=i=e[0].disabled||!1},m:function(f,d){ft(f,t,d),u&&u.m(t,null),H(t,n),l&&l.m(t,null),a=!0,s||(c=zt(t,"click",function(){uo(e[0].onClick)&&e[0].onClick.apply(this,arguments)}),s=!0)},p:function(f,d){var h=Ce(d,1)[0];(e=f)[0].icon?u?(u.p(e,h),1&h&&z(u,1)):((u=kM(e)).c(),z(u,1),u.m(t,n)):u&&(Bt(),V(u,1,1,function(){u=null}),Ft()),e[0].text?l?l.p(e,h):((l=jM(e)).c(),l.m(t,null)):l&&(l.d(1),l=null),(!a||3&h&&r!==(r=dr(ls("jse-context-menu-button",e[1],e[0].className))+" svelte-1u2b6j8"))&&S(t,"class",r),(!a||1&h&&o!==(o=e[0].title))&&S(t,"title",o),(!a||1&h&&i!==(i=e[0].disabled||!1))&&(t.disabled=i)},i:function(f){a||(z(u),a=!0)},o:function(f){V(u),a=!1},d:function(f){f&<(t),u&&u.d(),l&&l.d(),s=!1,c()}}}function _pt(e,t,n){var r=t.item,o=t.className,i=o===void 0?void 0:o;return e.$$set=function(a){"item"in a&&n(0,r=a.item),"className"in a&&n(1,i=a.className)},[r,i]}var kj=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,_pt,jpt,eo,{item:0,className:1},kpt),o}return it(n)}();function Spt(e){Le(e,"svelte-12ophpi",".jse-dropdown-button.svelte-12ophpi.svelte-12ophpi{flex:1;line-height:normal;border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;position:relative;padding:0;display:flex}.jse-dropdown-button.svelte-12ophpi ul.svelte-12ophpi{margin:0;padding:0}.jse-dropdown-button.svelte-12ophpi ul li.svelte-12ophpi{margin:0;padding:0;list-style-type:none}.jse-dropdown-button.svelte-12ophpi button.jse-open-dropdown.svelte-12ophpi{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;width:2em;background:var(--jse-context-menu-background);color:var(--jse-context-menu-color);border-radius:0}.jse-dropdown-button.svelte-12ophpi button.jse-open-dropdown.jse-visible.svelte-12ophpi{background:var(--jse-context-menu-background)}.jse-dropdown-button.svelte-12ophpi button.jse-open-dropdown.svelte-12ophpi:hover{background:var(--jse-context-menu-background-highlight)}.jse-dropdown-button.svelte-12ophpi button.jse-open-dropdown.svelte-12ophpi:focus{z-index:1}.jse-dropdown-button.svelte-12ophpi button.jse-open-dropdown.svelte-12ophpi:disabled{color:var(--jse-context-menu-color-disabled);background:unset}.jse-dropdown-button.svelte-12ophpi .jse-dropdown-items.svelte-12ophpi{display:none;position:absolute;top:100%;left:0;z-index:1;background:var(--jse-context-menu-background);color:var(--jse-context-menu-color);box-shadow:var(--jse-controls-box-shadow)}.jse-dropdown-button.svelte-12ophpi .jse-dropdown-items.jse-visible.svelte-12ophpi{display:block}.jse-dropdown-button.svelte-12ophpi .jse-dropdown-items button.svelte-12ophpi{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;width:100%;text-align:left;padding:var(--jse-padding);margin:0}.jse-dropdown-button.svelte-12ophpi .jse-dropdown-items button.svelte-12ophpi:hover{background:var(--jse-context-menu-background-highlight)}.jse-dropdown-button.svelte-12ophpi .jse-dropdown-items button.svelte-12ophpi:disabled{color:var(--jse-context-menu-color-disabled);background:unset}")}function _M(e,t,n){var r=e.slice();return r[11]=t[n],r}var $pt=function(e){return{}},SM=function(e){return{}};function $M(e){var t,n;return t=new hn({props:{data:e[11].icon}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};1&o&&(i.data=r[11].icon),t.$set(i)},i:function(r){n||(z(t.$$.fragment,r),n=!0)},o:function(r){V(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function CM(e){var t,n,r,o,i,a,s,c,u,l,f,d=e[11].text+"",h=e[11].icon&&$M(e);function p(){return e[9](e[11])}return{c:function(){t=tt("li"),n=tt("button"),h&&h.c(),r=kt(),o=Gt(d),c=kt(),S(n,"type","button"),S(n,"title",i=e[11].title),n.disabled=a=e[11].disabled,S(n,"class",s=dr(e[11].className)+" svelte-12ophpi"),S(t,"class","svelte-12ophpi")},m:function(v,m){ft(v,t,m),H(t,n),h&&h.m(n,null),H(n,r),H(n,o),H(t,c),u=!0,l||(f=zt(n,"click",p),l=!0)},p:function(v,m){(e=v)[11].icon?h?(h.p(e,m),1&m&&z(h,1)):((h=$M(e)).c(),z(h,1),h.m(n,r)):h&&(Bt(),V(h,1,1,function(){h=null}),Ft()),(!u||1&m)&&d!==(d=e[11].text+"")&&we(o,d),(!u||1&m&&i!==(i=e[11].title))&&S(n,"title",i),(!u||1&m&&a!==(a=e[11].disabled))&&(n.disabled=a),(!u||1&m&&s!==(s=dr(e[11].className)+" svelte-12ophpi"))&&S(n,"class",s)},i:function(v){u||(z(h),u=!0)},o:function(v){V(h),u=!1},d:function(v){v&<(t),h&&h.d(),l=!1,f()}}}function Cpt(e){var t,n,r,o,i,a,s,c,u,l,f=e[8].defaultItem,d=Cr(f,e,e[7],SM);o=new hn({props:{data:Ri}});for(var h=De(e[0]),p=[],v=0;v<h.length;v+=1)p[v]=CM(_M(e,h,v));var m=function(g){return V(p[g],1,1,function(){p[g]=null})};return{c:function(){t=tt("div"),d&&d.c(),n=kt(),r=tt("button"),Pt(o.$$.fragment),i=kt(),a=tt("div"),s=tt("ul");for(var g=0;g<p.length;g+=1)p[g].c();S(r,"type","button"),S(r,"class","jse-open-dropdown svelte-12ophpi"),S(r,"data-type","jse-open-dropdown"),r.disabled=e[4],Dt(r,"jse-visible",e[3]),S(s,"class","svelte-12ophpi"),S(a,"class","jse-dropdown-items svelte-12ophpi"),yc(a,"width",e[2]),Dt(a,"jse-visible",e[3]),S(t,"role","button"),S(t,"tabindex","0"),S(t,"class","jse-dropdown-button svelte-12ophpi"),S(t,"title",e[1])},m:function(g,y){ft(g,t,y),d&&d.m(t,null),H(t,n),H(t,r),Mt(o,r,null),H(t,i),H(t,a),H(a,s);for(var b=0;b<p.length;b+=1)p[b]&&p[b].m(s,null);c=!0,u||(l=[zt(r,"click",e[5]),zt(t,"click",e[6])],u=!0)},p:function(g,y){var b=Ce(y,1)[0];if(d&&d.p&&(!c||128&b)&&Or(d,f,g,g[7],c?Er(f,g[7],b,$pt):Mr(g[7]),SM),(!c||16&b)&&(r.disabled=g[4]),(!c||8&b)&&Dt(r,"jse-visible",g[3]),1&b){var w;for(h=De(g[0]),w=0;w<h.length;w+=1){var x=_M(g,h,w);p[w]?(p[w].p(x,b),z(p[w],1)):(p[w]=CM(x),p[w].c(),z(p[w],1),p[w].m(s,null))}for(Bt(),w=h.length;w<p.length;w+=1)m(w);Ft()}(!c||4&b)&&yc(a,"width",g[2]),(!c||8&b)&&Dt(a,"jse-visible",g[3]),(!c||2&b)&&S(t,"title",g[1])},i:function(g){if(!c){z(d,g),z(o.$$.fragment,g);for(var y=0;y<h.length;y+=1)z(p[y]);c=!0}},o:function(g){V(d,g),V(o.$$.fragment,g),p=p.filter(Boolean);for(var y=0;y<p.length;y+=1)V(p[y]);c=!1},d:function(g){g&<(t),d&&d.d(g),At(o),Dr(p,g),u=!1,Fn(l)}}}function Ept(e,t,n){var r,o=t.$$slots,i=o===void 0?{}:o,a=t.$$scope,s=t.items,c=s===void 0?[]:s,u=t.title,l=u===void 0?void 0:u,f=t.width,d=f===void 0?"120px":f,h=!1;function p(){n(3,h=!1)}function v(m){ou(m)==="Escape"&&(m.preventDefault(),n(3,h=!1))}return Wi(function(){document.addEventListener("click",p),document.addEventListener("keydown",v)}),gi(function(){document.removeEventListener("click",p),document.removeEventListener("keydown",v)}),e.$$set=function(m){"items"in m&&n(0,c=m.items),"title"in m&&n(1,l=m.title),"width"in m&&n(2,d=m.width),"$$scope"in m&&n(7,a=m.$$scope)},e.$$.update=function(){1&e.$$.dirty&&n(4,r=c.every(function(m){return m.disabled===!0}))},[c,l,d,h,r,function(){var m=h;setTimeout(function(){return n(3,h=!m)})},p,a,i,function(m){return m.onClick()}]}var Opt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,Ept,Cpt,qe,{items:0,title:1,width:2},Spt),o}return it(n)}();function Mpt(e){Le(e,"svelte-1u2b6j8","button.jse-context-menu-button.svelte-1u2b6j8{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;flex:1;white-space:nowrap;padding:var(--jse-padding);color:inherit}button.jse-context-menu-button.svelte-1u2b6j8:hover{background:var(--jse-context-menu-background-highlight)}button.jse-context-menu-button.svelte-1u2b6j8:focus{background:var(--jse-context-menu-background-highlight);z-index:1}button.jse-context-menu-button.svelte-1u2b6j8:disabled{color:var(--jse-context-menu-color-disabled);background:unset}button.jse-context-menu-button.left.svelte-1u2b6j8{text-align:left}button.jse-context-menu-button.svelte-1u2b6j8 svg{width:16px}")}function EM(e){var t,n;return t=new hn({props:{data:e[0].main.icon}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};1&o&&(i.data=r[0].main.icon),t.$set(i)},i:function(r){n||(z(t.$$.fragment,r),n=!0)},o:function(r){V(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function Apt(e){var t,n,r,o,i,a,s,c,u,l=e[0].main.text+"",f=e[0].main.icon&&EM(e);return{c:function(){t=tt("button"),f&&f.c(),n=kt(),r=Gt(l),S(t,"class",o=dr(ls("jse-context-menu-button",e[1],e[0].main.className))+" svelte-1u2b6j8"),S(t,"type","button"),S(t,"slot","defaultItem"),S(t,"title",i=e[0].main.title),t.disabled=a=e[0].main.disabled||!1},m:function(d,h){ft(d,t,h),f&&f.m(t,null),H(t,n),H(t,r),s=!0,c||(u=zt(t,"click",function(){uo(e[0].main.onClick)&&e[0].main.onClick.apply(this,arguments)}),c=!0)},p:function(d,h){(e=d)[0].main.icon?f?(f.p(e,h),1&h&&z(f,1)):((f=EM(e)).c(),z(f,1),f.m(t,n)):f&&(Bt(),V(f,1,1,function(){f=null}),Ft()),(!s||1&h)&&l!==(l=e[0].main.text+"")&&we(r,l),(!s||3&h&&o!==(o=dr(ls("jse-context-menu-button",e[1],e[0].main.className))+" svelte-1u2b6j8"))&&S(t,"class",o),(!s||1&h&&i!==(i=e[0].main.title))&&S(t,"title",i),(!s||1&h&&a!==(a=e[0].main.disabled||!1))&&(t.disabled=a)},i:function(d){s||(z(f),s=!0)},o:function(d){V(f),s=!1},d:function(d){d&<(t),f&&f.d(),c=!1,u()}}}function Ppt(e){var t,n;return t=new Opt({props:{width:e[0].width,items:e[0].items,$$slots:{defaultItem:[Apt]},$$scope:{ctx:e}}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i=Ce(o,1)[0],a={};1&i&&(a.width=r[0].width),1&i&&(a.items=r[0].items),7&i&&(a.$$scope={dirty:i,ctx:r}),t.$set(a)},i:function(r){n||(z(t.$$.fragment,r),n=!0)},o:function(r){V(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function Tpt(e,t,n){var r=t.item,o=t.className,i=o===void 0?void 0:o;return e.$$set=function(a){"item"in a&&n(0,r=a.item),"className"in a&&n(1,i=a.className)},[r,i]}var jj=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,Tpt,Ppt,eo,{item:0,className:1},Mpt),o}return it(n)}();function Rpt(e){Le(e,"svelte-1nininf",".jse-contextmenu.svelte-1nininf.svelte-1nininf{box-shadow:var(--jse-controls-box-shadow);font-family:var(--jse-font-family);font-size:var(--jse-font-size);background:var(--jse-context-menu-background);color:var(--jse-context-menu-color)}.jse-contextmenu.svelte-1nininf .jse-row.svelte-1nininf{display:flex;flex-direction:row;align-items:flex-start;justify-content:stretch}.jse-contextmenu.svelte-1nininf .jse-row div.jse-label.svelte-1nininf{flex:1;white-space:nowrap;padding:var(--jse-padding);color:var(--jse-context-menu-color-disabled);line-height:normal}.jse-contextmenu.svelte-1nininf .jse-row div.jse-tip.svelte-1nininf{flex:1;background:var(--jse-context-menu-tip-background);color:var(--jse-context-menu-tip-color);margin:calc(0.5 * var(--jse-padding));padding:calc(0.5 * var(--jse-padding)) var(--jse-padding);font-size:80%;line-height:1.3em;display:flex;flex-direction:row;align-items:start;gap:var(--jse-padding);border-radius:3px}.jse-contextmenu.svelte-1nininf .jse-row div.jse-tip div.jse-tip-icon.svelte-1nininf{padding-top:calc(0.5 * var(--jse-padding))}.jse-contextmenu.svelte-1nininf .jse-column.svelte-1nininf{flex:1;display:flex;flex-direction:column;align-items:stretch}.jse-contextmenu.svelte-1nininf .jse-column.svelte-1nininf:not(:last-child){border-right:1px solid var(--jse-context-menu-separator-color)}.jse-contextmenu.svelte-1nininf .jse-separator.svelte-1nininf{width:100%;height:1px;background:var(--jse-context-menu-separator-color)}")}function OM(e,t,n){var r=e.slice();return r[6]=t[n],r}function MM(e,t,n){var r=e.slice();return r[9]=t[n],r}function AM(e,t,n){var r=e.slice();return r[12]=t[n],r}function Ipt(e){var t,n=Of(e[6])+"";return{c:function(){t=Gt(n)},m:function(r,o){ft(r,t,o)},p:function(r,o){1&o&&n!==(n=Of(r[6])+"")&&we(t,n)},i:Ht,o:Ht,d:function(r){r&<(t)}}}function Npt(e){var t;return{c:function(){S(t=tt("div"),"class","jse-separator svelte-1nininf")},m:function(n,r){ft(n,t,r)},p:Ht,i:Ht,o:Ht,d:function(n){n&<(t)}}}function Dpt(e){for(var t,n,r=De(e[6].items),o=[],i=0;i<r.length;i+=1)o[i]=TM(MM(e,r,i));var a=function(s){return V(o[s],1,1,function(){o[s]=null})};return{c:function(){t=tt("div");for(var s=0;s<o.length;s+=1)o[s].c();S(t,"class","jse-row svelte-1nininf")},m:function(s,c){ft(s,t,c);for(var u=0;u<o.length;u+=1)o[u]&&o[u].m(t,null);n=!0},p:function(s,c){if(1&c){var u;for(r=De(s[6].items),u=0;u<r.length;u+=1){var l=MM(s,r,u);o[u]?(o[u].p(l,c),z(o[u],1)):(o[u]=TM(l),o[u].c(),z(o[u],1),o[u].m(t,null))}for(Bt(),u=r.length;u<o.length;u+=1)a(u);Ft()}},i:function(s){if(!n){for(var c=0;c<r.length;c+=1)z(o[c]);n=!0}},o:function(s){o=o.filter(Boolean);for(var c=0;c<o.length;c+=1)V(o[c]);n=!1},d:function(s){s&<(t),Dr(o,s)}}}function Lpt(e){var t,n;return t=new jj({props:{item:e[6]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};1&o&&(i.item=r[6]),t.$set(i)},i:function(r){n||(z(t.$$.fragment,r),n=!0)},o:function(r){V(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function zpt(e){var t,n;return t=new kj({props:{item:e[6]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};1&o&&(i.item=r[6]),t.$set(i)},i:function(r){n||(z(t.$$.fragment,r),n=!0)},o:function(r){V(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function Bpt(e){var t,n=Of(e[9])+"";return{c:function(){t=Gt(n)},m:function(r,o){ft(r,t,o)},p:function(r,o){1&o&&n!==(n=Of(r[9])+"")&&we(t,n)},i:Ht,o:Ht,d:function(r){r&<(t)}}}function Fpt(e){var t;return{c:function(){S(t=tt("div"),"class","jse-separator svelte-1nininf")},m:function(n,r){ft(n,t,r)},p:Ht,i:Ht,o:Ht,d:function(n){n&<(t)}}}function qpt(e){for(var t,n,r=De(e[9].items),o=[],i=0;i<r.length;i+=1)o[i]=PM(AM(e,r,i));var a=function(s){return V(o[s],1,1,function(){o[s]=null})};return{c:function(){t=tt("div");for(var s=0;s<o.length;s+=1)o[s].c();S(t,"class","jse-column svelte-1nininf")},m:function(s,c){ft(s,t,c);for(var u=0;u<o.length;u+=1)o[u]&&o[u].m(t,null);n=!0},p:function(s,c){if(1&c){var u;for(r=De(s[9].items),u=0;u<r.length;u+=1){var l=AM(s,r,u);o[u]?(o[u].p(l,c),z(o[u],1)):(o[u]=PM(l),o[u].c(),z(o[u],1),o[u].m(t,null))}for(Bt(),u=r.length;u<o.length;u+=1)a(u);Ft()}},i:function(s){if(!n){for(var c=0;c<r.length;c+=1)z(o[c]);n=!0}},o:function(s){o=o.filter(Boolean);for(var c=0;c<o.length;c+=1)V(o[c]);n=!1},d:function(s){s&<(t),Dr(o,s)}}}function Hpt(e){var t,n;return t=new jj({props:{item:e[9]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};1&o&&(i.item=r[9]),t.$set(i)},i:function(r){n||(z(t.$$.fragment,r),n=!0)},o:function(r){V(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function Vpt(e){var t,n;return t=new kj({props:{item:e[9]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};1&o&&(i.item=r[9]),t.$set(i)},i:function(r){n||(z(t.$$.fragment,r),n=!0)},o:function(r){V(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function Wpt(e){var t,n=Of(e[12])+"";return{c:function(){t=Gt(n)},m:function(r,o){ft(r,t,o)},p:function(r,o){1&o&&n!==(n=Of(r[12])+"")&&we(t,n)},i:Ht,o:Ht,d:function(r){r&<(t)}}}function Upt(e){var t,n,r=e[12].text+"";return{c:function(){t=tt("div"),n=Gt(r),S(t,"class","jse-label svelte-1nininf")},m:function(o,i){ft(o,t,i),H(t,n)},p:function(o,i){1&i&&r!==(r=o[12].text+"")&&we(n,r)},i:Ht,o:Ht,d:function(o){o&<(t)}}}function Kpt(e){var t;return{c:function(){S(t=tt("div"),"class","jse-separator svelte-1nininf")},m:function(n,r){ft(n,t,r)},p:Ht,i:Ht,o:Ht,d:function(n){n&<(t)}}}function Jpt(e){var t,n;return t=new jj({props:{className:"left",item:e[12]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};1&o&&(i.item=r[12]),t.$set(i)},i:function(r){n||(z(t.$$.fragment,r),n=!0)},o:function(r){V(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function Gpt(e){var t,n;return t=new kj({props:{className:"left",item:e[12]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};1&o&&(i.item=r[12]),t.$set(i)},i:function(r){n||(z(t.$$.fragment,r),n=!0)},o:function(r){V(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function PM(e){var t,n,r,o,i,a,s,c,u=[Gpt,Jpt,Kpt,Upt,Wpt],l=[];function f(d,h){return 1&h&&(t=null),1&h&&(n=null),1&h&&(r=null),1&h&&(o=null),t==null&&(t=!!Mp(d[12])),t?0:(n==null&&(n=!!xj(d[12])),n?1:(r==null&&(r=!!t1(d[12])),r?2:(o==null&&(o=!!Zht(d[12])),o?3:4)))}return i=f(e,-1),a=l[i]=u[i](e),{c:function(){a.c(),s=Sn()},m:function(d,h){l[i].m(d,h),ft(d,s,h),c=!0},p:function(d,h){var p=i;(i=f(d,h))===p?l[i].p(d,h):(Bt(),V(l[p],1,1,function(){l[p]=null}),Ft(),(a=l[i])?a.p(d,h):(a=l[i]=u[i](d)).c(),z(a,1),a.m(s.parentNode,s))},i:function(d){c||(z(a),c=!0)},o:function(d){V(a),c=!1},d:function(d){d&<(s),l[i].d(d)}}}function TM(e){var t,n,r,o,i,a,s,c,u=[Vpt,Hpt,qpt,Fpt,Bpt],l=[];function f(d,h){return 1&h&&(t=null),1&h&&(n=null),1&h&&(r=null),1&h&&(o=null),t==null&&(t=!!Mp(d[9])),t?0:(n==null&&(n=!!xj(d[9])),n?1:(r==null&&(r=!!ept(d[9])),r?2:(o==null&&(o=!!t1(d[9])),o?3:4)))}return i=f(e,-1),a=l[i]=u[i](e),{c:function(){a.c(),s=Sn()},m:function(d,h){l[i].m(d,h),ft(d,s,h),c=!0},p:function(d,h){var p=i;(i=f(d,h))===p?l[i].p(d,h):(Bt(),V(l[p],1,1,function(){l[p]=null}),Ft(),(a=l[i])?a.p(d,h):(a=l[i]=u[i](d)).c(),z(a,1),a.m(s.parentNode,s))},i:function(d){c||(z(a),c=!0)},o:function(d){V(a),c=!1},d:function(d){d&<(s),l[i].d(d)}}}function RM(e){var t,n,r,o,i,a,s,c,u=[zpt,Lpt,Dpt,Npt,Ipt],l=[];function f(d,h){return 1&h&&(t=null),1&h&&(n=null),1&h&&(r=null),1&h&&(o=null),t==null&&(t=!!Mp(d[6])),t?0:(n==null&&(n=!!xj(d[6])),n?1:(r==null&&(r=!!tpt(d[6])),r?2:(o==null&&(o=!!t1(d[6])),o?3:4)))}return i=f(e,-1),a=l[i]=u[i](e),{c:function(){a.c(),s=Sn()},m:function(d,h){l[i].m(d,h),ft(d,s,h),c=!0},p:function(d,h){var p=i;(i=f(d,h))===p?l[i].p(d,h):(Bt(),V(l[p],1,1,function(){l[p]=null}),Ft(),(a=l[i])?a.p(d,h):(a=l[i]=u[i](d)).c(),z(a,1),a.m(s.parentNode,s))},i:function(d){c||(z(a),c=!0)},o:function(d){V(a),c=!1},d:function(d){d&<(s),l[i].d(d)}}}function IM(e){var t,n,r,o,i,a,s,c;return o=new hn({props:{data:hft}}),{c:function(){t=tt("div"),n=tt("div"),r=tt("div"),Pt(o.$$.fragment),i=kt(),a=tt("div"),s=Gt(e[1]),S(r,"class","jse-tip-icon svelte-1nininf"),S(a,"class","jse-tip-text"),S(n,"class","jse-tip svelte-1nininf"),S(t,"class","jse-row svelte-1nininf")},m:function(u,l){ft(u,t,l),H(t,n),H(n,r),Mt(o,r,null),H(n,i),H(n,a),H(a,s),c=!0},p:function(u,l){(!c||2&l)&&we(s,u[1])},i:function(u){c||(z(o.$$.fragment,u),c=!0)},o:function(u){V(o.$$.fragment,u),c=!1},d:function(u){u&<(t),At(o)}}}function Qpt(e){for(var t,n,r,o,i,a=De(e[0]),s=[],c=0;c<a.length;c+=1)s[c]=RM(OM(e,a,c));var u=function(f){return V(s[f],1,1,function(){s[f]=null})},l=e[1]&&IM(e);return{c:function(){t=tt("div");for(var f=0;f<s.length;f+=1)s[f].c();n=kt(),l&&l.c(),S(t,"role","menu"),S(t,"tabindex","-1"),S(t,"class","jse-contextmenu svelte-1nininf")},m:function(f,d){ft(f,t,d);for(var h=0;h<s.length;h+=1)s[h]&&s[h].m(t,null);H(t,n),l&&l.m(t,null),e[4](t),r=!0,o||(i=zt(t,"keydown",e[3]),o=!0)},p:function(f,d){var h=Ce(d,1)[0];if(1&h){var p;for(a=De(f[0]),p=0;p<a.length;p+=1){var v=OM(f,a,p);s[p]?(s[p].p(v,h),z(s[p],1)):(s[p]=RM(v),s[p].c(),z(s[p],1),s[p].m(t,n))}for(Bt(),p=a.length;p<s.length;p+=1)u(p);Ft()}f[1]?l?(l.p(f,h),2&h&&z(l,1)):((l=IM(f)).c(),z(l,1),l.m(t,null)):l&&(Bt(),V(l,1,1,function(){l=null}),Ft())},i:function(f){if(!r){for(var d=0;d<a.length;d+=1)z(s[d]);z(l),r=!0}},o:function(f){s=s.filter(Boolean);for(var d=0;d<s.length;d+=1)V(s[d]);V(l),r=!1},d:function(f){f&<(t),Dr(s,f),l&&l.d(),e[4](null),o=!1,i()}}}function Of(e){return console.error("Unknown type of context menu item",e),"???"}function Ypt(e,t,n){var r,o=t.items,i=t.tip;Wi(function(){setTimeout(function(){var s=$e(r.querySelectorAll("button")).find(function(c){return!c.disabled});s&&s.focus()})});var a={ArrowUp:"Up",ArrowDown:"Down",ArrowLeft:"Left",ArrowRight:"Right"};return e.$$set=function(s){"items"in s&&n(0,o=s.items),"tip"in s&&n(1,i=s.tip)},[o,i,r,function(s){var c=ou(s),u=a[c];if(typeof u=="string"){s.preventDefault();var l=tft({allElements:Array.from(r.querySelectorAll("button:not([disabled])")),currentElement:s.target,direction:u,hasPrio:function(f){return f.getAttribute("data-type")!=="jse-open-dropdown"}});l&&l.focus()}},function(s){Ze[s?"unshift":"push"](function(){n(2,r=s)})}]}var _B=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,Ypt,Qpt,qe,{items:0,tip:1},Rpt),o}return it(n)}();function Xpt(e){var t,n;return t=new _B({props:{items:e[1],tip:e[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};2&o[0]&&(i.items=r[1]),1&o[0]&&(i.tip=r[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0),t.$set(i)},i:function(r){n||(z(t.$$.fragment,r),n=!0)},o:function(r){V(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function Zpt(e,t,n){var r,o,i,a,s,c,u,l,f,d,h,p,v,m,g,y,b,w,x,k,E=t.json,_=t.documentState,T=t.parser,$=t.showTip,j=t.onCloseContextMenu,R=t.onEditKey,q=t.onEditValue,O=t.onToggleEnforceString,F=t.onCut,J=t.onCopy,I=t.onPaste,D=t.onRemove,C=t.onDuplicate,M=t.onExtract,P=t.onInsertBefore,B=t.onInsert,A=t.onConvert,W=t.onInsertAfter,N=t.onSort,dt=t.onTransform;function et(){j(),R()}function yt(){j(),q()}function bt(){j(),O()}function jt(){j(),F(!0)}function gt(){j(),F(!1)}function Y(){j(),J(!0)}function K(){j(),J(!1)}function rt(){j(),I()}function X(){j(),D()}function _t(){j(),C()}function L(){j(),M()}function U(Ct){j(),u?A(Ct):B(Ct)}function G(){j(),N()}function pt(){j(),dt()}function mt(){j(),P()}function Ot(){j(),W()}return e.$$set=function(Ct){"json"in Ct&&n(2,E=Ct.json),"documentState"in Ct&&n(3,_=Ct.documentState),"parser"in Ct&&n(4,T=Ct.parser),"showTip"in Ct&&n(0,$=Ct.showTip),"onCloseContextMenu"in Ct&&n(5,j=Ct.onCloseContextMenu),"onEditKey"in Ct&&n(6,R=Ct.onEditKey),"onEditValue"in Ct&&n(7,q=Ct.onEditValue),"onToggleEnforceString"in Ct&&n(8,O=Ct.onToggleEnforceString),"onCut"in Ct&&n(9,F=Ct.onCut),"onCopy"in Ct&&n(10,J=Ct.onCopy),"onPaste"in Ct&&n(11,I=Ct.onPaste),"onRemove"in Ct&&n(12,D=Ct.onRemove),"onDuplicate"in Ct&&n(13,C=Ct.onDuplicate),"onExtract"in Ct&&n(14,M=Ct.onExtract),"onInsertBefore"in Ct&&n(15,P=Ct.onInsertBefore),"onInsert"in Ct&&n(16,B=Ct.onInsert),"onConvert"in Ct&&n(17,A=Ct.onConvert),"onInsertAfter"in Ct&&n(18,W=Ct.onInsertAfter),"onSort"in Ct&&n(19,N=Ct.onSort),"onTransform"in Ct&&n(20,dt=Ct.onTransform)},e.$$.update=function(){8&e.$$.dirty[0]&&n(37,r=_.selection),4&e.$$.dirty[0]&&n(39,o=E!==void 0),64&e.$$.dirty[1]&&n(31,i=!!r),64&e.$$.dirty[1]&&n(21,a=r&&cn(ge(r))),4&e.$$.dirty[0]|64&e.$$.dirty[1]&&n(38,s=r?fe(E,ge(r)):void 0),128&e.$$.dirty[1]&&n(35,c=Array.isArray(s)?"Edit array":pr(s)?"Edit object":"Edit value"),320&e.$$.dirty[1]&&n(22,u=o&&(zn(r)||Fr(r)||dn(r))),6291456&e.$$.dirty[0]|256&e.$$.dirty[1]&&n(30,l=o&&u&&!a),2097152&e.$$.dirty[0]|320&e.$$.dirty[1]&&n(29,f=o&&r!=null&&(zn(r)||dn(r))&&!a),2097156&e.$$.dirty[0]|320&e.$$.dirty[1]&&n(36,d=o&&r!=null&&bg(r)&&!a&&!Array.isArray(fe(E,on(ge(r))))),320&e.$$.dirty[1]&&n(34,h=o&&r!=null&&bg(r)),136&e.$$.dirty[1]&&n(32,p=h&&!xr(s)),4194304&e.$$.dirty[0]&&n(25,v=u),33554432&e.$$.dirty[0]&&n(24,m=v?"Convert to:":"Insert:"),33554432&e.$$.dirty[0]|1&e.$$.dirty[1]&&n(28,g=!v&&i),33554432&e.$$.dirty[0]|193&e.$$.dirty[1]&&n(27,y=v?ym(r)&&!pr(s):i),33554432&e.$$.dirty[0]|193&e.$$.dirty[1]&&n(26,b=v?ym(r)&&!Array.isArray(s):i),33554432&e.$$.dirty[0]|193&e.$$.dirty[1]&&n(23,w=v?ym(r)&&xr(s):i),24&e.$$.dirty[0]|192&e.$$.dirty[1]&&n(33,x=r!=null&&Vs(s,_.enforceStringMap,oe(ge(r)),T)),2145386496&e.$$.dirty[0]|63&e.$$.dirty[1]&&n(1,k=[{type:"row",items:[{type:"button",onClick:et,icon:nf,text:"Edit key",title:"Edit the key (Double-click on the key)",disabled:!d},{type:"dropdown-button",main:{type:"button",onClick:yt,icon:nf,text:c,title:"Edit the value (Double-click on the value)",disabled:!h},width:"11em",items:[{type:"button",icon:nf,text:c,title:"Edit the value (Double-click on the value)",onClick:yt,disabled:!h},{type:"button",icon:x?Ih:Nh,text:"Enforce string",title:"Enforce keeping the value as string when it contains a numeric value",onClick:bt,disabled:!p}]}]},{type:"separator"},{type:"row",items:[{type:"dropdown-button",main:{type:"button",onClick:jt,icon:ef,text:"Cut",title:"Cut selected contents, formatted with indentation (Ctrl+X)",disabled:!u},width:"10em",items:[{type:"button",icon:ef,text:"Cut formatted",title:"Cut selected contents, formatted with indentation (Ctrl+X)",onClick:jt,disabled:!u},{type:"button",icon:ef,text:"Cut compacted",title:"Cut selected contents, without indentation (Ctrl+Shift+X)",onClick:gt,disabled:!u}]},{type:"dropdown-button",main:{type:"button",onClick:Y,icon:Mc,text:"Copy",title:"Copy selected contents, formatted with indentation (Ctrl+C)",disabled:!u},width:"12em",items:[{type:"button",icon:Mc,text:"Copy formatted",title:"Copy selected contents, formatted with indentation (Ctrl+C)",onClick:Y,disabled:!u},{type:"button",icon:Mc,text:"Copy compacted",title:"Copy selected contents, without indentation (Ctrl+Shift+C)",onClick:K,disabled:!u}]},{type:"button",onClick:rt,icon:oB,text:"Paste",title:"Paste clipboard contents (Ctrl+V)",disabled:!i}]},{type:"separator"},{type:"row",items:[{type:"column",items:[{type:"button",onClick:_t,icon:cB,text:"Duplicate",title:"Duplicate selected contents (Ctrl+D)",disabled:!l},{type:"button",onClick:L,icon:xdt,text:"Extract",title:"Extract selected contents",disabled:!f},{type:"button",onClick:G,icon:G0,text:"Sort",title:"Sort array or object contents",disabled:!u},{type:"button",onClick:pt,icon:K0,text:"Transform",title:"Transform array or object contents (filter, sort, project)",disabled:!u},{type:"button",onClick:X,icon:Pw,text:"Remove",title:"Remove selected contents (Delete)",disabled:!u}]},{type:"column",items:[{type:"label",text:m},{type:"button",onClick:function(){return U("structure")},icon:v?hv:Ll,text:"Structure",title:m+" structure",disabled:!g},{type:"button",onClick:function(){return U("object")},icon:v?hv:Ll,text:"Object",title:m+" structure",disabled:!y},{type:"button",onClick:function(){return U("array")},icon:v?hv:Ll,text:"Array",title:m+" array",disabled:!b},{type:"button",onClick:function(){return U("value")},icon:v?hv:Ll,text:"Value",title:m+" value",disabled:!w}]}]},{type:"separator"},{type:"row",items:[{type:"button",onClick:mt,icon:bdt,text:"Insert before",title:"Select area before current entry to insert or paste contents",disabled:!u||a},{type:"button",onClick:Ot,icon:mdt,text:"Insert after",title:"Select area after current entry to insert or paste contents",disabled:!u||a}]}])},[$,k,E,_,T,j,R,q,O,F,J,I,D,C,M,P,B,A,W,N,dt,a,u,w,m,v,b,y,g,f,l,i,p,x,h,c,d,r,s,o]}var tvt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,Zpt,Xpt,qe,{json:2,documentState:3,parser:4,showTip:0,onCloseContextMenu:5,onEditKey:6,onEditValue:7,onToggleEnforceString:8,onCut:9,onCopy:10,onPaste:11,onRemove:12,onDuplicate:13,onExtract:14,onInsertBefore:15,onInsert:16,onConvert:17,onInsertAfter:18,onSort:19,onTransform:20},null,[-1,-1]),o}return it(n)}();function evt(e){Le(e,"svelte-1kai5ns","div.jse-collapsed-items.svelte-1kai5ns.svelte-1kai5ns{font-family:var(--jse-font-family);font-size:var(--jse-font-size);color:var(--jse-collapsed-items-link-color);padding:calc(0.5 * var(--jse-padding));border:8px solid transparent;border-width:8px 0;background-color:var(--jse-contents-background-color);background-image:linear-gradient(var(--jse-collapsed-items-background-color), var(--jse-collapsed-items-background-color)), linear-gradient(to bottom right, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%), linear-gradient(to bottom left, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%), linear-gradient(to top right, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%), linear-gradient(to top left, transparent 50.5%, var(--jse-collapsed-items-background-color) 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-1kai5ns div.jse-text.svelte-1kai5ns,div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns{margin:0 calc(0.5 * var(--jse-padding))}div.jse-collapsed-items.svelte-1kai5ns div.jse-text.svelte-1kai5ns{display:inline}div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns{font-family:inherit;font-size:inherit;color:var(--jse-collapsed-items-link-color);background:none;border:none;padding:0;text-decoration:underline;cursor:pointer}div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns:hover,div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns:focus{color:var(--jse-collapsed-items-link-color-highlight)}")}function NM(e,t,n){var r=e.slice();return r[13]=t[n],r}function DM(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=tt("button"),n=Gt("show "),r=Gt(u),o=Gt("-"),i=Gt(l),a=kt(),S(t,"type","button"),S(t,"class","jse-expand-items svelte-1kai5ns")},m:function(d,h){ft(d,t,h),H(t,n),H(t,r),H(t,o),H(t,i),H(t,a),s||(c=zt(t,"click",f),s=!0)},p:function(d,h){e=d,16&h&&u!==(u=e[13].start+"")&&we(r,u),16&h&&l!==(l=e[13].end+"")&&we(i,l)},d:function(d){d&<(t),s=!1,c()}}}function nvt(e){for(var t,n,r,o,i,a,s,c,u,l,f,d=De(e[4]),h=[],p=0;p<d.length;p+=1)h[p]=DM(NM(e,d,p));return{c:function(){t=tt("div"),n=tt("div"),r=tt("div"),o=Gt("Items "),i=Gt(e[3]),a=Gt("-"),s=Gt(e[2]),c=kt();for(var v=0;v<h.length;v+=1)h[v].c();S(r,"class","jse-text svelte-1kai5ns"),S(t,"role","none"),S(t,"class","jse-collapsed-items svelte-1kai5ns"),S(t,"style",u=LM(e[0].length+2)),Dt(t,"jse-selected",e[5])},m:function(v,m){ft(v,t,m),H(t,n),H(n,r),H(r,o),H(r,i),H(r,a),H(r,s),H(n,c);for(var g=0;g<h.length;g+=1)h[g]&&h[g].m(n,null);l||(f=zt(t,"mousemove",rvt),l=!0)},p:function(v,m){var g=Ce(m,1)[0];if(8&g&&we(i,v[3]),4&g&&we(s,v[2]),19&g){var y;for(d=De(v[4]),y=0;y<d.length;y+=1){var b=NM(v,d,y);h[y]?h[y].p(b,g):(h[y]=DM(b),h[y].c(),h[y].m(n,null))}for(;y<h.length;y+=1)h[y].d(1);h.length=d.length}1&g&&u!==(u=LM(v[0].length+2))&&S(t,"style",u),32&g&&Dt(t,"jse-selected",v[5])},i:Ht,o:Ht,d:function(v){v&<(t),Dr(h,v),l=!1,f()}}}function LM(e){return"margin-left: calc(".concat(e," * var(--jse-indent-size))")}function rvt(e){e.stopPropagation()}function ovt(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,p=t.context;return e.$$set=function(v){"visibleSections"in v&&n(6,c=v.visibleSections),"sectionIndex"in v&&n(7,u=v.sectionIndex),"total"in v&&n(8,l=v.total),"path"in v&&n(0,f=v.path),"selection"in v&&n(9,d=v.selection),"onExpandSection"in v&&n(1,h=v.onExpandSection),"context"in v&&n(10,p=v.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=Dh(p.getJson(),d,f.concat(String(o)))),12&e.$$.dirty&&n(4,s=function(v,m){var g={start:v,end:Math.min($w(v),m)},y=Math.max(gg((v+m)/2),v),b={start:y,end:Math.min($w(y),m)},w=gg(m),x=w===m?w-Eh:w,k={start:Math.max(x,v),end:m},E=[g],_=b.start>=g.end&&b.end<=k.start;return _&&E.push(b),k.start>=(_?b.end:g.end)&&E.push(k),E}(o,i))},[f,h,i,o,s,a,c,u,l,d,p,r,function(v){return h(f,v)}]}var ivt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,ovt,nvt,qe,{visibleSections:6,sectionIndex:7,total:8,path:0,selection:9,onExpandSection:1,context:10},evt),o}return it(n)}();function avt(e){Le(e,"svelte-1yzl4st",".jse-context-menu-pointer.svelte-1yzl4st{position:absolute;top:calc(-0.5 * var(--jse-context-menu-pointer-size));right:calc(-0.5 * var(--jse-context-menu-pointer-size));width:var(--jse-context-menu-pointer-size);height:var(--jse-context-menu-pointer-size);padding:0;margin:0;cursor:pointer;background:transparent;border-radius:2px;background:var(--jse-context-menu-pointer-background);color:var(--jse-context-menu-pointer-color);border:none;box-shadow:var(--jse-controls-box-shadow)}.jse-context-menu-pointer.svelte-1yzl4st:hover{background:var(--jse-context-menu-pointer-background-highlight)}")}function svt(e){var t,n,r,o,i;return n=new hn({props:{data:Ri}}),{c:function(){t=tt("button"),Pt(n.$$.fragment),S(t,"type","button"),S(t,"class","jse-context-menu-pointer svelte-1yzl4st"),S(t,"title",Zk),Dt(t,"jse-selected",e[0])},m:function(a,s){ft(a,t,s),Mt(n,t,null),r=!0,o||(i=zt(t,"click",e[1]),o=!0)},p:function(a,s){var c=Ce(s,1)[0];(!r||1&c)&&Dt(t,"jse-selected",a[0])},i:function(a){r||(z(n.$$.fragment,a),r=!0)},o:function(a){V(n.$$.fragment,a),r=!1},d:function(a){a&<(t),At(n),o=!1,i()}}}function cvt(e,t,n){var r=t.selected,o=t.onContextMenu;return e.$$set=function(i){"selected"in i&&n(0,r=i.selected),"onContextMenu"in i&&n(2,o=i.onContextMenu)},[r,function(i){for(var a=i.target;a&&a.nodeName!=="BUTTON";)a=a.parentNode;a&&o({anchor:a,left:0,top:0,width:Ps,height:As,offsetTop:2,offsetLeft:0,showTip:!0})},o]}var iu=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,cvt,svt,qe,{selected:0,onContextMenu:2},avt),o}return it(n)}();function uvt(e){Le(e,"svelte-24a1b2",'.jse-key.svelte-24a1b2{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);cursor:var(--jse-contents-cursor);word-break:normal;overflow-wrap:normal;white-space:pre-wrap}.jse-key.svelte-24a1b2:hover{background:var(--jse-hover-background-color)}.jse-key.svelte-24a1b2:hover{background:var(--jse-hover-background-color)}.jse-key.jse-empty.svelte-24a1b2{min-width:3em;outline:1px dotted var(--jse-tag-background);-moz-outline-radius:2px}.jse-key.jse-empty.svelte-24a1b2::after{pointer-events:none;color:var(--jse-tag-background);content:"key"}')}function lvt(e){var t,n,r,o,i,a,s,c=[hvt,dvt],u=[];function l(f,d){return f[1]?0:1}return n=l(e),r=u[n]=c[n](e),{c:function(){t=tt("div"),r.c(),S(t,"role","none"),S(t,"data-type","selectable-key"),S(t,"class",o=dr(e[6](e[0]))+" svelte-24a1b2")},m:function(f,d){ft(f,t,d),u[n].m(t,null),i=!0,a||(s=zt(t,"dblclick",e[5]),a=!0)},p:function(f,d){var h=n;(n=l(f))===h?u[n].p(f,d):(Bt(),V(u[h],1,1,function(){u[h]=null}),Ft(),(r=u[n])?r.p(f,d):(r=u[n]=c[n](f)).c(),z(r,1),r.m(t,null)),(!i||1&d&&o!==(o=dr(f[6](f[0]))+" svelte-24a1b2"))&&S(t,"class",o)},i:function(f){i||(z(r),i=!0)},o:function(f){V(r),i=!1},d:function(f){f&<(t),u[n].d(),a=!1,s()}}}function fvt(e){var t,n;return t=new Yz({props:{value:e[2].normalization.escapeValue(e[0]),shortText:!0,onChange:e[7],onCancel:e[8],onFind:e[2].onFind}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};5&o&&(i.value=r[2].normalization.escapeValue(r[0])),4&o&&(i.onFind=r[2].onFind),t.$set(i)},i:function(r){n||(z(t.$$.fragment,r),n=!0)},o:function(r){V(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function dvt(e){var t,n=tl(e[2].normalization.escapeValue(e[0]))+"";return{c:function(){t=Gt(n)},m:function(r,o){ft(r,t,o)},p:function(r,o){5&o&&n!==(n=tl(r[2].normalization.escapeValue(r[0]))+"")&&we(t,n)},i:Ht,o:Ht,d:function(r){r&<(t)}}}function hvt(e){var t,n;return t=new rB({props:{text:e[2].normalization.escapeValue(e[0]),searchResultItems:e[1]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};5&o&&(i.text=r[2].normalization.escapeValue(r[0])),2&o&&(i.searchResultItems=r[1]),t.$set(i)},i:function(r){n||(z(t.$$.fragment,r),n=!0)},o:function(r){V(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function zM(e){var t,n;return t=new iu({props:{selected:!0,onContextMenu:e[2].onContextMenu}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};4&o&&(i.onContextMenu=r[2].onContextMenu),t.$set(i)},i:function(r){n||(z(t.$$.fragment,r),n=!0)},o:function(r){V(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function pvt(e){var t,n,r,o,i,a=[fvt,lvt],s=[];function c(l,f){return l[4]?0:1}t=c(e),n=s[t]=a[t](e);var u=!e[2].readOnly&&e[3]&&!e[4]&&zM(e);return{c:function(){n.c(),r=kt(),u&&u.c(),o=Sn()},m:function(l,f){s[t].m(l,f),ft(l,r,f),u&&u.m(l,f),ft(l,o,f),i=!0},p:function(l,f){var d=Ce(f,1)[0],h=t;(t=c(l))===h?s[t].p(l,d):(Bt(),V(s[h],1,1,function(){s[h]=null}),Ft(),(n=s[t])?n.p(l,d):(n=s[t]=a[t](l)).c(),z(n,1),n.m(r.parentNode,r)),l[2].readOnly||!l[3]||l[4]?u&&(Bt(),V(u,1,1,function(){u=null}),Ft()):u?(u.p(l,d),28&d&&z(u,1)):((u=zM(l)).c(),z(u,1),u.m(o.parentNode,o))},i:function(l){i||(z(n),z(u),i=!0)},o:function(l){V(n),V(u),i=!1},d:function(l){l&&(lt(r),lt(o)),s[t].d(l),u&&u.d(l)}}}function vvt(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(f){"path"in f&&n(9,i=f.path),"key"in f&&n(0,a=f.key),"selection"in f&&n(10,s=f.selection),"searchResultItems"in f&&n(1,c=f.searchResultItems),"onUpdateKey"in f&&n(11,u=f.onUpdateKey),"context"in f&&n(2,l=f.context)},e.$$.update=function(){1536&e.$$.dirty&&n(3,r=!!s&&Fr(s)&&an(s.path,i)),1032&e.$$.dirty&&n(4,o=r&&Gi(s))},[a,c,l,r,o,function(f){o||l.readOnly||(f.preventDefault(),l.onSelect(Vi(i,!0)))},function(f){return ls("jse-key",{"jse-empty":f===""})},function(f,d){var h=u(a,l.normalization.unescapeValue(f)),p=on(i).concat(h);l.onSelect(d===e2?We(p,!1):Vi(p,!1)),d!==t2&&l.focus()},function(){l.onSelect(Vi(i,!1)),l.focus()},i,s,u]}var mvt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,vvt,pvt,qe,{path:9,key:0,selection:10,searchResultItems:1,onUpdateKey:11,context:2},uvt),o}return it(n)}();function BM(e,t,n){var r=e.slice();return r[8]=t[n],r}function FM(e){var t,n,r,o=[e[8].props],i=e[8].component;function a(s,c){var u={};if(c!==void 0&&1&c)u=Ui(o,[Gu(s[8].props)]);else for(var l=0;l<o.length;l+=1)u=oi(u,o[l]);return{props:u}}return i&&(t=cs(i,a(e))),{c:function(){t&&Pt(t.$$.fragment),n=Sn()},m:function(s,c){t&&Mt(t,s,c),ft(s,n,c),r=!0},p:function(s,c){if(1&c&&i!==(i=s[8].component)){if(t){Bt();var u=t;V(u.$$.fragment,1,0,function(){At(u,1)}),Ft()}i?(Pt((t=cs(i,a(s,c))).$$.fragment),z(t.$$.fragment,1),Mt(t,n.parentNode,n)):t=null}else if(i){var l=1&c?Ui(o,[Gu(s[8].props)]):{};t.$set(l)}},i:function(s){r||(t&&z(t.$$.fragment,s),r=!0)},o:function(s){t&&V(t.$$.fragment,s),r=!1},d:function(s){s&<(n),t&&At(t,s)}}}function gvt(e){for(var t,n,r=De(e[0]),o=[],i=0;i<r.length;i+=1)o[i]=FM(BM(e,r,i));var a=function(s){return V(o[s],1,1,function(){o[s]=null})};return{c:function(){for(var s=0;s<o.length;s+=1)o[s].c();t=Sn()},m:function(s,c){for(var u=0;u<o.length;u+=1)o[u]&&o[u].m(s,c);ft(s,t,c),n=!0},p:function(s,c){var u=Ce(c,1)[0];if(1&u){var l;for(r=De(s[0]),l=0;l<r.length;l+=1){var f=BM(s,r,l);o[l]?(o[l].p(f,u),z(o[l],1)):(o[l]=FM(f),o[l].c(),z(o[l],1),o[l].m(t.parentNode,t))}for(Bt(),l=r.length;l<o.length;l+=1)a(l);Ft()}},i:function(s){if(!n){for(var c=0;c<r.length;c+=1)z(o[c]);n=!0}},o:function(s){o=o.filter(Boolean);for(var c=0;c<o.length;c+=1)V(o[c]);n=!1},d:function(s){s&<(t),Dr(o,s)}}}function yvt(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(f){"path"in f&&n(1,i=f.path),"value"in f&&n(2,a=f.value),"context"in f&&n(3,s=f.context),"enforceString"in f&&n(4,c=f.enforceString),"selection"in f&&n(5,u=f.selection),"searchResultItems"in f&&n(6,l=f.searchResultItems)},e.$$.update=function(){40&e.$$.dirty&&n(7,r=!s.readOnly&&dn(u)&&Gi(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 bvt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,yvt,gvt,qe,{path:1,value:2,context:3,enforceString:4,selection:5,searchResultItems:6}),o}return it(n)}(),wvt=bvt,ro={selecting:!1,selectionAnchor:null,selectionAnchorType:null,selectionFocus:null,dragging:!1};function xy(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(l){for(var f=l.json,d=l.items,h=l.selection,p=l.deltaY,v=Ts(f,h),m=d.findIndex(function(k){return an(k.path,v)}),g=function(){var k;return(k=d[y-1])===null||k===void 0?void 0:k.height},y=m,b=0;g()!==void 0&&Math.abs(p)>b+g()/2;)b+=g(),y-=1;var w=d[y].path,x=y-m;return y!==m&&d[y]!==void 0?{beforePath:w,offset:x}:void 0}({json:t,selection:i,deltaY:r,items:o}):function(l){for(var f,d=l.json,h=l.items,p=l.selection,v=l.deltaY,m=Oc(d,p),g=h.findIndex(function(j){return an(j.path,m)}),y=0,b=g,w=function(){var j;return(j=h[b+1])===null||j===void 0?void 0:j.height};w()!==void 0&&Math.abs(v)>y+w()/2;)y+=w(),b+=1;var x=on(m),k=fe(d,x),E=Array.isArray(k),_=E?b:b+1,T=(f=h[_])===null||f===void 0?void 0:f.path,$=b-g;return T?{beforePath:T,offset:$}:{append:!0,offset:$}}({json:t,selection:i,deltaY:r,items:o});if(!a||a.offset===0)return{operations:void 0,updatedSelection:null,offset:0};var s=function(l,f,d){if(!f)return[];var h="beforePath"in d?d.beforePath:void 0,p="append"in d?d.append:void 0,v=on(ge(f)),m=fe(l,v);if(!(p||h&&qc(h,v)&&h.length>v.length))return[];var g=Ts(l,f),y=Oc(l,f),b=Re(g),w=Re(y),x=h?h[v.length]:void 0;if(!kr(m)){if(Wn(m)){var k=So(b),E=So(w),_=x!==void 0?So(x):m.length;return bz(E-k+1,_<k?function(q){return{op:"move",from:oe(v.concat(String(k+q))),path:oe(v.concat(String(_+q)))}}:function(){return{op:"move",from:oe(v.concat(String(k))),path:oe(v.concat(String(_)))}})}throw new Error("Cannot create move operations: parent must be an Object or Array")}var T=Object.keys(m),$=T.indexOf(b),j=T.indexOf(w),R=p?T.length:x!==void 0?T.indexOf(x):-1;return $!==-1&&j!==-1&&R!==-1?R>$?[].concat($e(T.slice($,j+1)),$e(T.slice(R,T.length))).map(function(q){return el(v,q)}):[].concat($e(T.slice(R,$)),$e(T.slice(j+1,T.length))).map(function(q){return el(v,q)}):[]}(t,i,a),c=fe(t,on(Ts(t,i)));if(Array.isArray(c)){var u=function(l){var f,d,h=l.items,p=l.json,v=l.selection,m=l.offset,g=Ts(p,v),y=Oc(p,v),b=h.findIndex(function(E){return an(E.path,g)}),w=h.findIndex(function(E){return an(E.path,y)}),x=(f=h[b+m])===null||f===void 0?void 0:f.path,k=(d=h[w+m])===null||d===void 0?void 0:d.path;return Po(x,k)}({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 Na(e,t){return function(n,r){if(n){for(var o={},i=0,a=Object.keys(n);i<a.length;i++){var s=a[i];r(s,n[s])&&(o[s]=n[s])}return Object.keys(o).length>0?o:void 0}}(e,function(n){return $0(n,t)})}function xvt(e){Le(e,"svelte-pz3g1j","button.jse-validation-error.svelte-pz3g1j{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;padding:0;margin:0;vertical-align:top;display:inline-flex;color:var(--jse-warning-color)}")}function kvt(e){var t,n,r,o,i,a;return n=new hn({props:{data:dl}}),{c:function(){t=tt("button"),Pt(n.$$.fragment),S(t,"type","button"),S(t,"class","jse-validation-error svelte-pz3g1j")},m:function(s,c){ft(s,t,c),Mt(n,t,null),o=!0,i||(a=[zt(t,"click",function(){uo(e[0])&&e[0].apply(this,arguments)}),fo(r=hj.call(null,t,xt({text:e[1]},e[2])))],i=!0)},p:function(s,c){var u=Ce(c,1)[0];e=s,r&&uo(r.update)&&2&u&&r.update.call(null,xt({text:e[1]},e[2]))},i:function(s){o||(z(n.$$.fragment,s),o=!0)},o:function(s){V(n.$$.fragment,s),o=!1},d:function(s){s&<(t),At(n),i=!1,Fn(a)}}}function jvt(e,t,n){var r,o=ho("absolute-popup"),i=t.validationError,a=t.onExpand;return e.$$set=function(s){"validationError"in s&&n(3,i=s.validationError),"onExpand"in s&&n(0,a=s.onExpand)},e.$$.update=function(){8&e.$$.dirty&&n(1,r=i.isChildError?"Contains invalid data":i.message)},[a,r,o,i]}var od=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,jvt,kvt,eo,{validationError:3,onExpand:0},xvt),o}return it(n)}();function _vt(e){Le(e,"svelte-1wlxti1",".jse-json-node.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative;color:var(--jse-text-color)}.jse-json-node.jse-root.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{min-height:100%;padding-bottom:2px;box-sizing:border-box}.jse-json-node.jse-root.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1 .jse-context-menu-pointer,.jse-json-node.jse-root.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1 .jse-context-menu-pointer{top:0;right:calc(-2px - var(--jse-context-menu-pointer-size))}.jse-json-node.jse-root.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1.svelte-1wlxti1{padding-left:0}.jse-json-node.svelte-1wlxti1 .jse-props.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-items.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative}.jse-json-node.svelte-1wlxti1 .jse-header-outer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-footer-outer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex}.jse-json-node.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative}.jse-json-node.svelte-1wlxti1 .jse-header .jse-meta.svelte-1wlxti1>.jse-meta-inner.svelte-1wlxti1.svelte-1wlxti1{display:flex;justify-content:center}.jse-json-node.svelte-1wlxti1 .jse-contents-outer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex}.jse-json-node.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex;flex-direction:row;align-items:start}.jse-json-node.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding-left:var(--jse-indent-size)}.jse-json-node.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:inline-flex;padding-left:calc(var(--jse-indent-size) + 5px)}.jse-json-node.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-contents-background-color)}.jse-json-node.svelte-1wlxti1 .jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{visibility:hidden;padding:0 calc(0.5 * var(--jse-padding));flex:1}.jse-json-node.svelte-1wlxti1 .jse-insert-selection-area.jse-inside.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:inline-flex;align-items:center}.jse-json-node.svelte-1wlxti1 .jse-insert-selection-area.jse-after.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex;align-items:flex-end}.jse-json-node.svelte-1wlxti1 .jse-context-menu-pointer-anchor.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative}.jse-json-node.svelte-1wlxti1 .jse-insert-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex;position:relative;z-index:1;max-width:250px;min-width:100px;height:0;margin-right:calc(0.5 * var(--jse-padding));outline:1px solid}.jse-json-node.svelte-1wlxti1 .jse-insert-area.svelte-1wlxti1 .jse-context-menu-pointer{right:-1px;background:var(--jse-context-menu-pointer-hover-background)}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-hovered.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{outline-color:var(--jse-context-menu-pointer-hover-background)}.jse-json-node.svelte-1wlxti1:hover>.jse-contents-outer .jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:not(.jse-selected),.jse-json-node.svelte-1wlxti1 .jse-header-outer.svelte-1wlxti1:hover>.jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1:not(.jse-selected),.jse-json-node.svelte-1wlxti1 .jse-footer-outer:hover .jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:not(.jse-selected){visibility:visible}.jse-json-node.jse-hovered.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-hover-background-color)}.jse-json-node.jse-selected.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-value{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.jse-selected.svelte-1wlxti1 .jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-selection-background-color)}.jse-json-node.jse-selected-key.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1>.jse-identifier>.jse-key,.jse-json-node.jse-selected-key.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-identifier>.jse-key{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1>.jse-value{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.svelte-1wlxti1 .jse-collapsed-items.jse-selected,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-collapsed-items,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-collapsed-items{background-color:var(--jse-selection-background-color);--jse-collapsed-items-background-color:var(--jse-collapsed-items-selected-background-color)}.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-meta.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-footer-outer.svelte-1wlxti1>.jse-footer.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-selection-background-color)}.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-meta.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-meta.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-footer-outer.svelte-1wlxti1>.jse-footer.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-footer-outer.svelte-1wlxti1>.jse-footer.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-footer.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-footer.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-expand.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-expand.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-footer.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-footer.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-expand.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-expand.svelte-1wlxti1 .jse-value{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.jse-readonly.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{--jse-contents-selected-cursor:pointer}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-selected.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{outline-color:var(--jse-context-menu-pointer-background)}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-selected.svelte-1wlxti1 .jse-context-menu-pointer{background:var(--jse-context-menu-pointer-background)}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-selected.svelte-1wlxti1 .jse-context-menu-pointer:hover{background:var(--jse-context-menu-pointer-background-highlight)}.jse-main:not(.jse-focus) .jse-json-node.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{--jse-selection-background-color:var(--jse-selection-background-inactive-color);--jse-context-menu-pointer-background:var(--jse-context-menu-pointer-hover-background)}.jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{width:var(--jse-indent-size);padding:0;margin:0;border:none;cursor:pointer;background:transparent;color:var(--jse-delimiter-color);font-size:var(--jse-font-size-mono);height:var(--jse-line-height)}.jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:hover{opacity:0.8}.jse-meta.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-separator.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-index.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-bracket.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{vertical-align:top;color:var(--jse-delimiter-color)}.jse-index.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding:0 calc(0.5 * var(--jse-padding))}.jse-bracket.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding:0 2px}.jse-bracket.jse-expanded.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding-right:var(--jse-padding)}.jse-tag.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{border:none;font-size:80%;font-family:var(--jse-font-family);color:var(--jse-tag-color);background:var(--jse-tag-background);border-radius:2px;cursor:pointer;display:inline-block;padding:0 4px;line-height:normal;margin:1px 0}.jse-tag.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:hover{opacity:0.8}.jse-tag.jse-expanded.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{opacity:0.7;cursor:inherit}.jse-identifier.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{vertical-align:top;position:relative}")}var Svt=function(e){return{}},qM=function(e){return{}};function HM(e,t,n){var r=e.slice();return r[53]=t[n],r}var $vt=function(e){return{}},VM=function(e){return{}};function WM(e,t,n){var r=e.slice();return r[47]=t[n],r[49]=n,r}function UM(e,t,n){var r=e.slice();return r[50]=t[n],r}var Cvt=function(e){return{}},KM=function(e){return{}};function Evt(e){var t,n,r,o,i,a,s,c,u,l=!e[8].readOnly&&e[16]&&e[7]&&(dn(e[7])||zn(e[7]))&&!Gi(e[7])&&an(ge(e[7]),e[1]),f=e[34].identifier,d=Cr(f,e,e[35],qM),h=!e[17]&&JM();i=new wvt({props:{path:e[1],value:e[0],enforceString:e[13],selection:e[16]?e[7]:null,searchResultItems:h6(e[6],e[9]),context:e[8]}});var p=l&&GM(e),v=e[15]&&QM(e),m=!e[17]&&YM(e);return{c:function(){t=tt("div"),n=tt("div"),d&&d.c(),r=kt(),h&&h.c(),o=kt(),Pt(i.$$.fragment),a=kt(),p&&p.c(),s=kt(),v&&v.c(),c=kt(),m&&m.c(),S(n,"class","jse-contents svelte-1wlxti1"),S(t,"class","jse-contents-outer svelte-1wlxti1"),S(t,"style",e[18])},m:function(g,y){ft(g,t,y),H(t,n),d&&d.m(n,null),H(n,r),h&&h.m(n,null),H(n,o),Mt(i,n,null),H(n,a),p&&p.m(n,null),H(t,s),v&&v.m(t,null),H(t,c),m&&m.m(t,null),u=!0},p:function(g,y){d&&d.p&&(!u||16&y[1])&&Or(d,f,g,g[35],u?Er(f,g[35],y,Svt):Mr(g[35]),qM),g[17]?h&&(h.d(1),h=null):h||((h=JM()).c(),h.m(n,o));var b={};2&y[0]&&(b.path=g[1]),1&y[0]&&(b.value=g[0]),8192&y[0]&&(b.enforceString=g[13]),65664&y[0]&&(b.selection=g[16]?g[7]:null),576&y[0]&&(b.searchResultItems=h6(g[6],g[9])),256&y[0]&&(b.context=g[8]),i.$set(b),65922&y[0]&&(l=!g[8].readOnly&&g[16]&&g[7]&&(dn(g[7])||zn(g[7]))&&!Gi(g[7])&&an(ge(g[7]),g[1])),l?p?(p.p(g,y),65922&y[0]&&z(p,1)):((p=GM(g)).c(),z(p,1),p.m(n,null)):p&&(Bt(),V(p,1,1,function(){p=null}),Ft()),g[15]?v?(v.p(g,y),32768&y[0]&&z(v,1)):((v=QM(g)).c(),z(v,1),v.m(t,c)):v&&(Bt(),V(v,1,1,function(){v=null}),Ft()),g[17]?m&&(m.d(1),m=null):m?m.p(g,y):((m=YM(g)).c(),m.m(t,null)),(!u||262144&y[0])&&S(t,"style",g[18])},i:function(g){u||(z(d,g),z(i.$$.fragment,g),z(p),z(v),u=!0)},o:function(g){V(d,g),V(i.$$.fragment,g),V(p),V(v),u=!1},d:function(g){g&<(t),d&&d.d(g),h&&h.d(),At(i),p&&p.d(),v&&v.d(),m&&m.d()}}}function Ovt(e){var t,n,r,o,i,a,s,c,u,l,f,d,h,p,v,m,g,y,b=!e[8].readOnly&&e[16]&&e[7]&&(dn(e[7])||zn(e[7]))&&!e[7].edit&&an(ge(e[7]),e[1]),w=[Pvt,Avt],x=[];function k(C,M){return C[12]?0:1}o=k(e),i=x[o]=w[o](e);var E=e[34].identifier,_=Cr(E,e,e[35],VM),T=!e[17]&&XM();function $(C,M){return C[12]?Rvt:Tvt}var j=$(e),R=j(e),q=b&&ZM(e),O=e[15]&&(!e[12]||!e[15].isChildError)&&tA(e);function F(C,M){return C[12]?Nvt:C[17]?void 0:Ivt}var J=F(e),I=J&&J(e),D=e[12]&&eA(e);return{c:function(){t=tt("div"),n=tt("div"),r=tt("button"),i.c(),a=kt(),_&&_.c(),s=kt(),T&&T.c(),c=kt(),u=tt("div"),l=tt("div"),R.c(),f=kt(),q&&q.c(),d=kt(),O&&O.c(),h=kt(),I&&I.c(),p=kt(),D&&D.c(),v=Sn(),S(r,"type","button"),S(r,"class","jse-expand svelte-1wlxti1"),S(r,"title","Expand or collapse this object (Ctrl+Click to expand/collapse recursively)"),S(l,"class","jse-meta-inner svelte-1wlxti1"),S(u,"class","jse-meta svelte-1wlxti1"),S(u,"data-type","selectable-value"),S(n,"class","jse-header svelte-1wlxti1"),S(t,"class","jse-header-outer svelte-1wlxti1"),S(t,"style",e[18])},m:function(C,M){ft(C,t,M),H(t,n),H(n,r),x[o].m(r,null),H(n,a),_&&_.m(n,null),H(n,s),T&&T.m(n,null),H(n,c),H(n,u),H(u,l),R.m(l,null),H(n,f),q&&q.m(n,null),H(t,d),O&&O.m(t,null),H(t,h),I&&I.m(t,null),ft(C,p,M),D&&D.m(C,M),ft(C,v,M),m=!0,g||(y=zt(r,"click",e[21]),g=!0)},p:function(C,M){var P=o;(o=k(C))!==P&&(Bt(),V(x[P],1,1,function(){x[P]=null}),Ft(),(i=x[o])||(i=x[o]=w[o](C)).c(),z(i,1),i.m(r,null)),_&&_.p&&(!m||16&M[1])&&Or(_,E,C,C[35],m?Er(E,C[35],M,$vt):Mr(C[35]),VM),C[17]?T&&(T.d(1),T=null):T||((T=XM()).c(),T.m(n,c)),j===(j=$(C))&&R?R.p(C,M):(R.d(1),(R=j(C))&&(R.c(),R.m(l,null))),65922&M[0]&&(b=!C[8].readOnly&&C[16]&&C[7]&&(dn(C[7])||zn(C[7]))&&!C[7].edit&&an(ge(C[7]),C[1])),b?q?(q.p(C,M),65922&M[0]&&z(q,1)):((q=ZM(C)).c(),z(q,1),q.m(n,null)):q&&(Bt(),V(q,1,1,function(){q=null}),Ft()),!C[15]||C[12]&&C[15].isChildError?O&&(Bt(),V(O,1,1,function(){O=null}),Ft()):O?(O.p(C,M),36864&M[0]&&z(O,1)):((O=tA(C)).c(),z(O,1),O.m(t,h)),J===(J=F(C))&&I?I.p(C,M):(I&&I.d(1),(I=J&&J(C))&&(I.c(),I.m(t,null))),(!m||262144&M[0])&&S(t,"style",C[18]),C[12]?D?(D.p(C,M),4096&M[0]&&z(D,1)):((D=eA(C)).c(),z(D,1),D.m(v.parentNode,v)):D&&(Bt(),V(D,1,1,function(){D=null}),Ft())},i:function(C){m||(z(i),z(_,C),z(q),z(O),z(D),m=!0)},o:function(C){V(i),V(_,C),V(q),V(O),V(D),m=!1},d:function(C){C&&(lt(t),lt(p),lt(v)),x[o].d(),_&&_.d(C),T&&T.d(),R.d(),q&&q.d(),O&&O.d(),I&&I.d(),D&&D.d(C),g=!1,y()}}}function Mvt(e){var t,n,r,o,i,a,s,c,u,l,f,d,h,p,v,m,g,y,b=!e[8].readOnly&&e[16]&&e[7]&&(dn(e[7])||zn(e[7]))&&!e[7].edit&&an(ge(e[7]),e[1]),w=[zvt,Lvt],x=[];function k(C,M){return C[12]?0:1}o=k(e),i=x[o]=w[o](e);var E=e[34].identifier,_=Cr(E,e,e[35],KM),T=!e[17]&&iA();function $(C,M){return C[12]?Fvt:Bvt}var j=$(e),R=j(e),q=b&&aA(e),O=e[15]&&(!e[12]||!e[15].isChildError)&&sA(e);function F(C,M){return C[12]?Hvt:qvt}var J=F(e),I=J(e),D=e[12]&&cA(e);return{c:function(){t=tt("div"),n=tt("div"),r=tt("button"),i.c(),a=kt(),_&&_.c(),s=kt(),T&&T.c(),c=kt(),u=tt("div"),l=tt("div"),R.c(),f=kt(),q&&q.c(),d=kt(),O&&O.c(),h=kt(),I.c(),p=kt(),D&&D.c(),v=Sn(),S(r,"type","button"),S(r,"class","jse-expand svelte-1wlxti1"),S(r,"title","Expand or collapse this array (Ctrl+Click to expand/collapse recursively)"),S(l,"class","jse-meta-inner svelte-1wlxti1"),S(l,"data-type","selectable-value"),S(u,"class","jse-meta svelte-1wlxti1"),S(n,"class","jse-header svelte-1wlxti1"),S(t,"class","jse-header-outer svelte-1wlxti1"),S(t,"style",e[18])},m:function(C,M){ft(C,t,M),H(t,n),H(n,r),x[o].m(r,null),H(n,a),_&&_.m(n,null),H(n,s),T&&T.m(n,null),H(n,c),H(n,u),H(u,l),R.m(l,null),H(n,f),q&&q.m(n,null),H(t,d),O&&O.m(t,null),H(t,h),I.m(t,null),ft(C,p,M),D&&D.m(C,M),ft(C,v,M),m=!0,g||(y=zt(r,"click",e[21]),g=!0)},p:function(C,M){var P=o;(o=k(C))!==P&&(Bt(),V(x[P],1,1,function(){x[P]=null}),Ft(),(i=x[o])||(i=x[o]=w[o](C)).c(),z(i,1),i.m(r,null)),_&&_.p&&(!m||16&M[1])&&Or(_,E,C,C[35],m?Er(E,C[35],M,Cvt):Mr(C[35]),KM),C[17]?T&&(T.d(1),T=null):T||((T=iA()).c(),T.m(n,c)),j===(j=$(C))&&R?R.p(C,M):(R.d(1),(R=j(C))&&(R.c(),R.m(l,null))),65922&M[0]&&(b=!C[8].readOnly&&C[16]&&C[7]&&(dn(C[7])||zn(C[7]))&&!C[7].edit&&an(ge(C[7]),C[1])),b?q?(q.p(C,M),65922&M[0]&&z(q,1)):((q=aA(C)).c(),z(q,1),q.m(n,null)):q&&(Bt(),V(q,1,1,function(){q=null}),Ft()),!C[15]||C[12]&&C[15].isChildError?O&&(Bt(),V(O,1,1,function(){O=null}),Ft()):O?(O.p(C,M),36864&M[0]&&z(O,1)):((O=sA(C)).c(),z(O,1),O.m(t,h)),J===(J=F(C))&&I?I.p(C,M):(I.d(1),(I=J(C))&&(I.c(),I.m(t,null))),(!m||262144&M[0])&&S(t,"style",C[18]),C[12]?D?(D.p(C,M),4096&M[0]&&z(D,1)):((D=cA(C)).c(),z(D,1),D.m(v.parentNode,v)):D&&(Bt(),V(D,1,1,function(){D=null}),Ft())},i:function(C){m||(z(i),z(_,C),z(q),z(O),z(D),m=!0)},o:function(C){V(i),V(_,C),V(q),V(O),V(D),m=!1},d:function(C){C&&(lt(t),lt(p),lt(v)),x[o].d(),_&&_.d(C),T&&T.d(),R.d(),q&&q.d(),O&&O.d(),I.d(),D&&D.d(C),g=!1,y()}}}function JM(e){var t;return{c:function(){(t=tt("div")).textContent=":",S(t,"class","jse-separator svelte-1wlxti1")},m:function(n,r){ft(n,t,r)},d:function(n){n&<(t)}}}function GM(e){var t,n,r;return n=new iu({props:{selected:!0,onContextMenu:e[8].onContextMenu}}),{c:function(){t=tt("div"),Pt(n.$$.fragment),S(t,"class","jse-context-menu-pointer-anchor svelte-1wlxti1")},m:function(o,i){ft(o,t,i),Mt(n,t,null),r=!0},p:function(o,i){var a={};256&i[0]&&(a.onContextMenu=o[8].onContextMenu),n.$set(a)},i:function(o){r||(z(n.$$.fragment,o),r=!0)},o:function(o){V(n.$$.fragment,o),r=!1},d:function(o){o&<(t),At(n)}}}function QM(e){var t,n;return t=new od({props:{validationError:e[15],onExpand:e[22]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};32768&o[0]&&(i.validationError=r[15]),t.$set(i)},i:function(r){n||(z(t.$$.fragment,r),n=!0)},o:function(r){V(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function YM(e){var t,n,r;return{c:function(){S(t=tt("div"),"role","none"),S(t,"class","jse-insert-selection-area jse-after svelte-1wlxti1"),S(t,"data-type","insert-selection-area-after")},m:function(o,i){ft(o,t,i),n||(r=zt(t,"click",e[30]),n=!0)},p:Ht,d:function(o){o&<(t),n=!1,r()}}}function Avt(e){var t,n;return t=new hn({props:{data:bc}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},i:function(r){n||(z(t.$$.fragment,r),n=!0)},o:function(r){V(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function Pvt(e){var t,n;return t=new hn({props:{data:Ri}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},i:function(r){n||(z(t.$$.fragment,r),n=!0)},o:function(r){V(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function XM(e){var t;return{c:function(){(t=tt("div")).textContent=":",S(t,"class","jse-separator svelte-1wlxti1")},m:function(n,r){ft(n,t,r)},d:function(n){n&<(t)}}}function Tvt(e){var t,n,r,o,i,a,s,c,u,l,f=Object.keys(e[0]).length+"",d=Object.keys(e[0]).length===1?"prop":"props";return{c:function(){(t=tt("div")).textContent="{",n=kt(),r=tt("button"),o=Gt(f),i=kt(),a=Gt(d),s=kt(),(c=tt("div")).textContent="}",S(t,"class","jse-bracket svelte-1wlxti1"),S(r,"type","button"),S(r,"class","jse-tag svelte-1wlxti1"),S(c,"class","jse-bracket svelte-1wlxti1")},m:function(h,p){ft(h,t,p),ft(h,n,p),ft(h,r,p),H(r,o),H(r,i),H(r,a),ft(h,s,p),ft(h,c,p),u||(l=zt(r,"click",e[22]),u=!0)},p:function(h,p){1&p[0]&&f!==(f=Object.keys(h[0]).length+"")&&we(o,f),1&p[0]&&d!==(d=Object.keys(h[0]).length===1?"prop":"props")&&we(a,d)},d:function(h){h&&(lt(t),lt(n),lt(r),lt(s),lt(c)),u=!1,l()}}}function Rvt(e){var t;return{c:function(){(t=tt("div")).textContent="{",S(t,"class","jse-bracket jse-expanded svelte-1wlxti1")},m:function(n,r){ft(n,t,r)},p:Ht,d:function(n){n&<(t)}}}function ZM(e){var t,n,r;return n=new iu({props:{selected:!0,onContextMenu:e[8].onContextMenu}}),{c:function(){t=tt("div"),Pt(n.$$.fragment),S(t,"class","jse-context-menu-pointer-anchor svelte-1wlxti1")},m:function(o,i){ft(o,t,i),Mt(n,t,null),r=!0},p:function(o,i){var a={};256&i[0]&&(a.onContextMenu=o[8].onContextMenu),n.$set(a)},i:function(o){r||(z(n.$$.fragment,o),r=!0)},o:function(o){V(n.$$.fragment,o),r=!1},d:function(o){o&<(t),At(n)}}}function tA(e){var t,n;return t=new od({props:{validationError:e[15],onExpand:e[22]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};32768&o[0]&&(i.validationError=r[15]),t.$set(i)},i:function(r){n||(z(t.$$.fragment,r),n=!0)},o:function(r){V(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function Ivt(e){var t,n,r;return{c:function(){S(t=tt("div"),"role","none"),S(t,"class","jse-insert-selection-area jse-after svelte-1wlxti1"),S(t,"data-type","insert-selection-area-after")},m:function(o,i){ft(o,t,i),n||(r=zt(t,"click",e[30]),n=!0)},p:Ht,d:function(o){o&<(t),n=!1,r()}}}function Nvt(e){var t,n,r;return{c:function(){S(t=tt("div"),"role","none"),S(t,"class","jse-insert-selection-area jse-inside svelte-1wlxti1"),S(t,"data-type","insert-selection-area-inside")},m:function(o,i){ft(o,t,i),n||(r=zt(t,"click",e[29]),n=!0)},p:Ht,d:function(o){o&<(t),n=!1,r()}}}function eA(e){for(var t,n,r,o,i,a,s,c=!e[8].readOnly&&(e[10]===qs||e[16]&&Wr(e[7])),u=c&&nA(e),l=De(e[19](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]=rA(HM(e,l,d));var h=function(v){return V(f[v],1,1,function(){f[v]=null})},p=!e[17]&&oA(e);return{c:function(){t=tt("div"),u&&u.c(),n=kt();for(var v=0;v<f.length;v+=1)f[v].c();r=kt(),o=tt("div"),(i=tt("div")).innerHTML='<div class="jse-bracket svelte-1wlxti1">}</div>',a=kt(),p&&p.c(),S(t,"class","jse-props svelte-1wlxti1"),S(i,"data-type","selectable-value"),S(i,"class","jse-footer svelte-1wlxti1"),S(o,"class","jse-footer-outer svelte-1wlxti1"),S(o,"style",e[18])},m:function(v,m){ft(v,t,m),u&&u.m(t,null),H(t,n);for(var g=0;g<f.length;g+=1)f[g]&&f[g].m(t,null);ft(v,r,m),ft(v,o,m),H(o,i),H(o,a),p&&p.m(o,null),s=!0},p:function(v,m){if(66944&m[0]&&(c=!v[8].readOnly&&(v[10]===qs||v[16]&&Wr(v[7]))),c?u?(u.p(v,m),66944&m[0]&&z(u,1)):((u=nA(v)).c(),z(u,1),u.m(t,n)):u&&(Bt(),V(u,1,1,function(){u=null}),Ft()),76024319&m[0]){var g;for(l=De(v[19](v[1],v[0],v[2],v[3],v[4],v[5],v[6],v[7],v[11])),g=0;g<l.length;g+=1){var y=HM(v,l,g);f[g]?(f[g].p(y,m),z(f[g],1)):(f[g]=rA(y),f[g].c(),z(f[g],1),f[g].m(t,null))}for(Bt(),g=l.length;g<f.length;g+=1)h(g);Ft()}v[17]?p&&(p.d(1),p=null):p?p.p(v,m):((p=oA(v)).c(),p.m(o,null)),(!s||262144&m[0])&&S(o,"style",v[18])},i:function(v){if(!s){z(u);for(var m=0;m<l.length;m+=1)z(f[m]);s=!0}},o:function(v){V(u),f=f.filter(Boolean);for(var m=0;m<f.length;m+=1)V(f[m]);s=!1},d:function(v){v&&(lt(t),lt(r),lt(o)),u&&u.d(),Dr(f,v),p&&p.d()}}}function nA(e){var t,n,r,o;return n=new iu({props:{selected:e[16]&&Wr(e[7]),onContextMenu:e[31]}}),{c:function(){t=tt("div"),Pt(n.$$.fragment),S(t,"class","jse-insert-area jse-inside svelte-1wlxti1"),S(t,"data-type","insert-selection-area-inside"),S(t,"style",r=Fh(e[1].length+1)),S(t,"title",Xk),Dt(t,"jse-hovered",e[10]===qs),Dt(t,"jse-selected",e[16]&&Wr(e[7]))},m:function(i,a){ft(i,t,a),Mt(n,t,null),o=!0},p:function(i,a){var s={};65664&a[0]&&(s.selected=i[16]&&Wr(i[7])),n.$set(s),(!o||2&a[0]&&r!==(r=Fh(i[1].length+1)))&&S(t,"style",r),(!o||1024&a[0])&&Dt(t,"jse-hovered",i[10]===qs),(!o||65664&a[0])&&Dt(t,"jse-selected",i[16]&&Wr(i[7]))},i:function(i){o||(z(n.$$.fragment,i),o=!0)},o:function(i){V(n.$$.fragment,i),o=!1},d:function(i){i&<(t),At(n)}}}function Dvt(e){var t,n,r,o;return n=new mvt({props:{path:e[53].path,key:e[53].key,selection:e[53].selection,searchResultItems:e[53].keySearchResultItemsMap,context:e[8],onUpdateKey:e[23]}}),{c:function(){t=tt("div"),Pt(n.$$.fragment),r=kt(),S(t,"slot","identifier"),S(t,"class","jse-identifier svelte-1wlxti1")},m:function(i,a){ft(i,t,a),Mt(n,t,null),H(t,r),o=!0},p:function(i,a){var s={};2303&a[0]&&(s.path=i[53].path),2303&a[0]&&(s.key=i[53].key),2303&a[0]&&(s.selection=i[53].selection),2303&a[0]&&(s.searchResultItems=i[53].keySearchResultItemsMap),256&a[0]&&(s.context=i[8]),n.$set(s)},i:function(i){o||(z(n.$$.fragment,i),o=!0)},o:function(i){V(n.$$.fragment,i),o=!1},d:function(i){i&<(t),At(n)}}}function rA(e){var t,n;return t=new _j({props:{value:e[53].value,path:e[53].path,expandedMap:e[53].expandedMap,enforceStringMap:e[53].enforceStringMap,visibleSectionsMap:e[53].visibleSectionsMap,validationErrorsMap:e[53].validationErrorsMap,searchResultItemsMap:e[53].valueSearchResultItemsMap,selection:e[53].selection,context:e[8],onDragSelectionStart:e[26],$$slots:{identifier:[Dvt]},$$scope:{ctx:e}}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};2303&o[0]&&(i.value=r[53].value),2303&o[0]&&(i.path=r[53].path),2303&o[0]&&(i.expandedMap=r[53].expandedMap),2303&o[0]&&(i.enforceStringMap=r[53].enforceStringMap),2303&o[0]&&(i.visibleSectionsMap=r[53].visibleSectionsMap),2303&o[0]&&(i.validationErrorsMap=r[53].validationErrorsMap),2303&o[0]&&(i.searchResultItemsMap=r[53].valueSearchResultItemsMap),2303&o[0]&&(i.selection=r[53].selection),256&o[0]&&(i.context=r[8]),2559&o[0]|16&o[1]&&(i.$$scope={dirty:o,ctx:r}),t.$set(i)},i:function(r){n||(z(t.$$.fragment,r),n=!0)},o:function(r){V(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function oA(e){var t,n,r;return{c:function(){S(t=tt("div"),"role","none"),S(t,"class","jse-insert-selection-area jse-after svelte-1wlxti1"),S(t,"data-type","insert-selection-area-after")},m:function(o,i){ft(o,t,i),n||(r=zt(t,"click",e[30]),n=!0)},p:Ht,d:function(o){o&<(t),n=!1,r()}}}function Lvt(e){var t,n;return t=new hn({props:{data:bc}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},i:function(r){n||(z(t.$$.fragment,r),n=!0)},o:function(r){V(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function zvt(e){var t,n;return t=new hn({props:{data:Ri}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},i:function(r){n||(z(t.$$.fragment,r),n=!0)},o:function(r){V(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function iA(e){var t;return{c:function(){(t=tt("div")).textContent=":",S(t,"class","jse-separator svelte-1wlxti1")},m:function(n,r){ft(n,t,r)},d:function(n){n&<(t)}}}function Bvt(e){var t,n,r,o,i,a,s,c,u,l,f=e[0].length+"",d=e[0].length===1?"item":"items";return{c:function(){(t=tt("div")).textContent="[",n=kt(),r=tt("button"),o=Gt(f),i=kt(),a=Gt(d),s=kt(),(c=tt("div")).textContent="]",S(t,"class","jse-bracket svelte-1wlxti1"),S(r,"type","button"),S(r,"class","jse-tag svelte-1wlxti1"),S(c,"class","jse-bracket svelte-1wlxti1")},m:function(h,p){ft(h,t,p),ft(h,n,p),ft(h,r,p),H(r,o),H(r,i),H(r,a),ft(h,s,p),ft(h,c,p),u||(l=zt(r,"click",e[22]),u=!0)},p:function(h,p){1&p[0]&&f!==(f=h[0].length+"")&&we(o,f),1&p[0]&&d!==(d=h[0].length===1?"item":"items")&&we(a,d)},d:function(h){h&&(lt(t),lt(n),lt(r),lt(s),lt(c)),u=!1,l()}}}function Fvt(e){var t,n,r,o,i,a,s,c=e[0].length+"",u=e[0].length===1?"item":"items";return{c:function(){(t=tt("div")).textContent="[",n=kt(),r=tt("span"),o=Gt(c),i=kt(),a=Gt(u),s=Gt(`
|
|
103
|
+
`),S(t,"class","jse-bracket svelte-1wlxti1"),S(r,"class","jse-tag jse-expanded svelte-1wlxti1")},m:function(l,f){ft(l,t,f),ft(l,n,f),ft(l,r,f),H(r,o),H(r,i),H(r,a),ft(l,s,f)},p:function(l,f){1&f[0]&&c!==(c=l[0].length+"")&&we(o,c),1&f[0]&&u!==(u=l[0].length===1?"item":"items")&&we(a,u)},d:function(l){l&&(lt(t),lt(n),lt(r),lt(s))}}}function aA(e){var t,n,r;return n=new iu({props:{selected:!0,onContextMenu:e[8].onContextMenu}}),{c:function(){t=tt("div"),Pt(n.$$.fragment),S(t,"class","jse-context-menu-pointer-anchor svelte-1wlxti1")},m:function(o,i){ft(o,t,i),Mt(n,t,null),r=!0},p:function(o,i){var a={};256&i[0]&&(a.onContextMenu=o[8].onContextMenu),n.$set(a)},i:function(o){r||(z(n.$$.fragment,o),r=!0)},o:function(o){V(n.$$.fragment,o),r=!1},d:function(o){o&<(t),At(n)}}}function sA(e){var t,n;return t=new od({props:{validationError:e[15],onExpand:e[22]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};32768&o[0]&&(i.validationError=r[15]),t.$set(i)},i:function(r){n||(z(t.$$.fragment,r),n=!0)},o:function(r){V(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function qvt(e){var t,n,r;return{c:function(){S(t=tt("div"),"role","none"),S(t,"class","jse-insert-selection-area jse-after svelte-1wlxti1"),S(t,"data-type","insert-selection-area-after")},m:function(o,i){ft(o,t,i),n||(r=zt(t,"click",e[30]),n=!0)},p:Ht,d:function(o){o&<(t),n=!1,r()}}}function Hvt(e){var t,n,r;return{c:function(){S(t=tt("div"),"role","none"),S(t,"class","jse-insert-selection-area jse-inside svelte-1wlxti1"),S(t,"data-type","insert-selection-area-inside")},m:function(o,i){ft(o,t,i),n||(r=zt(t,"click",e[29]),n=!0)},p:Ht,d:function(o){o&<(t),n=!1,r()}}}function cA(e){for(var t,n,r,o,i,a,s,c=!e[8].readOnly&&(e[10]===qs||e[16]&&Wr(e[7])),u=[],l=new Map,f=c&&uA(e),d=De(e[14]||Qu),h=function(y){return y[49]},p=0;p<d.length;p+=1){var v=WM(e,d,p),m=h(v);l.set(m,u[p]=dA(m,v))}var g=!e[17]&&hA(e);return{c:function(){t=tt("div"),f&&f.c(),n=kt();for(var y=0;y<u.length;y+=1)u[y].c();r=kt(),o=tt("div"),(i=tt("div")).innerHTML='<span class="jse-bracket svelte-1wlxti1">]</span>',a=kt(),g&&g.c(),S(t,"class","jse-items svelte-1wlxti1"),S(i,"data-type","selectable-value"),S(i,"class","jse-footer svelte-1wlxti1"),S(o,"class","jse-footer-outer svelte-1wlxti1"),S(o,"style",e[18])},m:function(y,b){ft(y,t,b),f&&f.m(t,null),H(t,n);for(var w=0;w<u.length;w+=1)u[w]&&u[w].m(t,null);ft(y,r,b),ft(y,o,b),H(o,i),H(o,a),g&&g.m(o,null),s=!0},p:function(y,b){66944&b[0]&&(c=!y[8].readOnly&&(y[10]===qs||y[16]&&Wr(y[7]))),c?f?(f.p(y,b),66944&b[0]&&z(f,1)):((f=uA(y)).c(),z(f,1),f.m(t,n)):f&&(Bt(),V(f,1,1,function(){f=null}),Ft()),68176383&b[0]&&(d=De(y[14]||Qu),Bt(),u=S0(u,b,h,1,y,d,l,t,Yk,dA,null,WM),Ft()),y[17]?g&&(g.d(1),g=null):g?g.p(y,b):((g=hA(y)).c(),g.m(o,null)),(!s||262144&b[0])&&S(o,"style",y[18])},i:function(y){if(!s){z(f);for(var b=0;b<d.length;b+=1)z(u[b]);s=!0}},o:function(y){V(f);for(var b=0;b<u.length;b+=1)V(u[b]);s=!1},d:function(y){y&&(lt(t),lt(r),lt(o)),f&&f.d();for(var b=0;b<u.length;b+=1)u[b].d();g&&g.d()}}}function uA(e){var t,n,r,o;return n=new iu({props:{selected:e[16]&&Wr(e[7]),onContextMenu:e[31]}}),{c:function(){t=tt("div"),Pt(n.$$.fragment),S(t,"class","jse-insert-area jse-inside svelte-1wlxti1"),S(t,"data-type","insert-selection-area-inside"),S(t,"style",r=Fh(e[1].length+1)),S(t,"title",Xk),Dt(t,"jse-hovered",e[10]===qs),Dt(t,"jse-selected",e[16]&&Wr(e[7]))},m:function(i,a){ft(i,t,a),Mt(n,t,null),o=!0},p:function(i,a){var s={};65664&a[0]&&(s.selected=i[16]&&Wr(i[7])),n.$set(s),(!o||2&a[0]&&r!==(r=Fh(i[1].length+1)))&&S(t,"style",r),(!o||1024&a[0])&&Dt(t,"jse-hovered",i[10]===qs),(!o||65664&a[0])&&Dt(t,"jse-selected",i[16]&&Wr(i[7]))},i:function(i){o||(z(n.$$.fragment,i),o=!0)},o:function(i){V(n.$$.fragment,i),o=!1},d:function(i){i&<(t),At(n)}}}function Vvt(e){var t,n,r,o=e[50].index+"";return{c:function(){t=tt("div"),n=tt("div"),r=Gt(o),S(n,"class","jse-index svelte-1wlxti1"),S(t,"slot","identifier"),S(t,"class","jse-identifier svelte-1wlxti1")},m:function(i,a){ft(i,t,a),H(t,n),H(n,r)},p:function(i,a){18687&a[0]&&o!==(o=i[50].index+"")&&we(r,o)},d:function(i){i&<(t)}}}function lA(e,t){var n,r,o;return r=new _j({props:{value:t[50].value,path:t[50].path,expandedMap:t[50].expandedMap,enforceStringMap:t[50].enforceStringMap,visibleSectionsMap:t[50].visibleSectionsMap,validationErrorsMap:t[50].validationErrorsMap,searchResultItemsMap:t[50].searchResultItemsMap,selection:t[50].selection,context:t[8],onDragSelectionStart:t[26],$$slots:{identifier:[Vvt]},$$scope:{ctx:t}}}),{key:e,first:null,c:function(){n=Sn(),Pt(r.$$.fragment),this.first=n},m:function(i,a){ft(i,n,a),Mt(r,i,a),o=!0},p:function(i,a){t=i;var s={};18687&a[0]&&(s.value=t[50].value),18687&a[0]&&(s.path=t[50].path),18687&a[0]&&(s.expandedMap=t[50].expandedMap),18687&a[0]&&(s.enforceStringMap=t[50].enforceStringMap),18687&a[0]&&(s.visibleSectionsMap=t[50].visibleSectionsMap),18687&a[0]&&(s.validationErrorsMap=t[50].validationErrorsMap),18687&a[0]&&(s.searchResultItemsMap=t[50].searchResultItemsMap),18687&a[0]&&(s.selection=t[50].selection),256&a[0]&&(s.context=t[8]),18687&a[0]|16&a[1]&&(s.$$scope={dirty:a,ctx:t}),r.$set(s)},i:function(i){o||(z(r.$$.fragment,i),o=!0)},o:function(i){V(r.$$.fragment,i),o=!1},d:function(i){i&<(n),At(r,i)}}}function fA(e){var t,n;return t=new ivt({props:{visibleSections:e[14]||Qu,sectionIndex:e[49],total:e[0].length,path:e[1],onExpandSection:e[8].onExpandSection,selection:e[7],context:e[8]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};16384&o[0]&&(i.visibleSections=r[14]||Qu),16384&o[0]&&(i.sectionIndex=r[49]),1&o[0]&&(i.total=r[0].length),2&o[0]&&(i.path=r[1]),256&o[0]&&(i.onExpandSection=r[8].onExpandSection),128&o[0]&&(i.selection=r[7]),256&o[0]&&(i.context=r[8]),t.$set(i)},i:function(r){n||(z(t.$$.fragment,r),n=!0)},o:function(r){V(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function dA(e,t){for(var n,r,o,i,a=[],s=new Map,c=De(t[20](t[1],t[0],t[47],t[2],t[3],t[4],t[5],t[6],t[7],t[11])),u=function(p){return p[50].index},l=0;l<c.length;l+=1){var f=UM(t,c,l),d=u(f);s.set(d,a[l]=lA(d,f))}var h=t[47].end<t[0].length&&fA(t);return{key:e,first:null,c:function(){n=Sn();for(var p=0;p<a.length;p+=1)a[p].c();r=kt(),h&&h.c(),o=Sn(),this.first=n},m:function(p,v){ft(p,n,v);for(var m=0;m<a.length;m+=1)a[m]&&a[m].m(p,v);ft(p,r,v),h&&h.m(p,v),ft(p,o,v),i=!0},p:function(p,v){t=p,68176383&v[0]&&(c=De(t[20](t[1],t[0],t[47],t[2],t[3],t[4],t[5],t[6],t[7],t[11])),Bt(),a=S0(a,v,u,1,t,c,s,r.parentNode,Yk,lA,r,UM),Ft()),t[47].end<t[0].length?h?(h.p(t,v),16385&v[0]&&z(h,1)):((h=fA(t)).c(),z(h,1),h.m(o.parentNode,o)):h&&(Bt(),V(h,1,1,function(){h=null}),Ft())},i:function(p){if(!i){for(var v=0;v<c.length;v+=1)z(a[v]);z(h),i=!0}},o:function(p){for(var v=0;v<a.length;v+=1)V(a[v]);V(h),i=!1},d:function(p){p&&(lt(n),lt(r),lt(o));for(var v=0;v<a.length;v+=1)a[v].d(p);h&&h.d(p)}}}function hA(e){var t,n,r;return{c:function(){S(t=tt("div"),"role","none"),S(t,"class","jse-insert-selection-area jse-after svelte-1wlxti1"),S(t,"data-type","insert-selection-area-after")},m:function(o,i){ft(o,t,i),n||(r=zt(t,"click",e[30]),n=!0)},p:Ht,d:function(o){o&<(t),n=!1,r()}}}function pA(e){var t,n,r;return n=new iu({props:{selected:e[16]&&hi(e[7]),onContextMenu:e[32]}}),{c:function(){t=tt("div"),Pt(n.$$.fragment),S(t,"class","jse-insert-area jse-after svelte-1wlxti1"),S(t,"data-type","insert-selection-area-after"),S(t,"style",e[18]),S(t,"title",Xk),Dt(t,"jse-hovered",e[10]===Oh),Dt(t,"jse-selected",e[16]&&hi(e[7]))},m:function(o,i){ft(o,t,i),Mt(n,t,null),r=!0},p:function(o,i){var a={};65664&i[0]&&(a.selected=o[16]&&hi(o[7])),n.$set(a),(!r||262144&i[0])&&S(t,"style",o[18]),(!r||1024&i[0])&&Dt(t,"jse-hovered",o[10]===Oh),(!r||65664&i[0])&&Dt(t,"jse-selected",o[16]&&hi(o[7]))},i:function(o){r||(z(n.$$.fragment,o),r=!0)},o:function(o){V(n.$$.fragment,o),r=!1},d:function(o){o&<(t),At(n)}}}function Wvt(e){var t,n,r,o,i,a,s,c,u,l,f,d=!e[8].readOnly&&(e[10]===Oh||e[16]&&hi(e[7])),h=[Mvt,Ovt,Evt],p=[];function v(g,y){return 1&y[0]&&(n=null),1&y[0]&&(r=null),n==null&&(n=!!Array.isArray(g[0])),n?0:(r==null&&(r=!!pr(g[0])),r?1:2)}o=v(e,[-1,-1]),i=p[o]=h[o](e);var m=d&&pA(e);return{c:function(){t=tt("div"),i.c(),a=kt(),m&&m.c(),S(t,"role","treeitem"),S(t,"tabindex","-1"),S(t,"class",s=dr(ls("jse-json-node",{"jse-expanded":e[12]},e[8].onClassName(e[1],e[0])))+" svelte-1wlxti1"),S(t,"data-path",c=$f(e[1])),S(t,"aria-selected",e[16]),Dt(t,"jse-root",e[17]),Dt(t,"jse-selected",e[16]&&zn(e[7])),Dt(t,"jse-selected-key",e[16]&&Fr(e[7])),Dt(t,"jse-selected-value",e[16]&&dn(e[7])),Dt(t,"jse-readonly",e[8].readOnly),Dt(t,"jse-hovered",e[10]===iw)},m:function(g,y){ft(g,t,y),p[o].m(t,null),H(t,a),m&&m.m(t,null),u=!0,l||(f=[zt(t,"mousedown",e[24]),zt(t,"mousemove",e[25]),zt(t,"mouseover",e[27]),zt(t,"mouseout",e[28]),zt(t,"focus",void 0),zt(t,"blur",void 0)],l=!0)},p:function(g,y){var b=o;(o=v(g,y))===b?p[o].p(g,y):(Bt(),V(p[b],1,1,function(){p[b]=null}),Ft(),(i=p[o])?i.p(g,y):(i=p[o]=h[o](g)).c(),z(i,1),i.m(t,a)),66944&y[0]&&(d=!g[8].readOnly&&(g[10]===Oh||g[16]&&hi(g[7]))),d?m?(m.p(g,y),66944&y[0]&&z(m,1)):((m=pA(g)).c(),z(m,1),m.m(t,null)):m&&(Bt(),V(m,1,1,function(){m=null}),Ft()),(!u||4355&y[0]&&s!==(s=dr(ls("jse-json-node",{"jse-expanded":g[12]},g[8].onClassName(g[1],g[0])))+" svelte-1wlxti1"))&&S(t,"class",s),(!u||2&y[0]&&c!==(c=$f(g[1])))&&S(t,"data-path",c),(!u||65536&y[0])&&S(t,"aria-selected",g[16]),(!u||135427&y[0])&&Dt(t,"jse-root",g[17]),(!u||70019&y[0])&&Dt(t,"jse-selected",g[16]&&zn(g[7])),(!u||70019&y[0])&&Dt(t,"jse-selected-key",g[16]&&Fr(g[7])),(!u||70019&y[0])&&Dt(t,"jse-selected-value",g[16]&&dn(g[7])),(!u||4355&y[0])&&Dt(t,"jse-readonly",g[8].readOnly),(!u||5379&y[0])&&Dt(t,"jse-hovered",g[10]===iw)},i:function(g){u||(z(i),z(m),u=!0)},o:function(g){V(i),V(m),u=!1},d:function(g){g&<(t),p[o].d(),m&&m.d(),l=!1,Fn(f)}}}function Fh(e){return"margin-left: calc(".concat(e," * var(--jse-indent-size))")}function Uvt(e,t,n){var r,o,i,a,s,c,u,l,f=t.$$slots,d=f===void 0?{}:f,h=t.$$scope,p=t.value,v=t.path,m=t.expandedMap,g=t.enforceStringMap,y=t.visibleSectionsMap,b=t.validationErrorsMap,w=t.searchResultItemsMap,x=t.selection,k=t.context,E=t.onDragSelectionStart,_=po("jsoneditor:JSONNode"),T=void 0,$=void 0,j=void 0,R=gp(function(C){return C},ai);function q(C){k.onDrag(C)}function O(C){ro.selecting&&(ro.selecting=!1,C.stopPropagation()),k.onDragEnd(),document.removeEventListener("mousemove",q,!0),document.removeEventListener("mouseup",O)}function F(){var C;return((C=k.findElement([]))===null||C===void 0||(C=C.getBoundingClientRect())===null||C===void 0?void 0:C.top)||0}function J(C,M){var P=F()-C.initialContentTop;return M.clientY-C.initialClientY-P}function I(C){if(j){var M=k.getJson(),P=k.getDocumentState(),B=J(j,C),A=xy({json:M,documentState:P,deltaY:B,items:j.items}).offset;A!==j.offset&&(_("drag selection",A,B),n(11,j=xt(xt({},j),{},{offset:A,didMoveItems:!0})))}}function D(C){if(j){var M=k.getJson(),P=xy({json:M,documentState:k.getDocumentState(),deltaY:J(j,C),items:j.items}),B=P.operations,A=P.updatedSelection;if(B)k.onPatch(B,function(dt,et){return{state:xt(xt({},et),{},{selection:A||x})}});else if(C.target===j.initialTarget&&!j.didMoveItems){var W=ly(C.target),N=zz(C.target);N&&k.onSelect(s6(0,W,N))}n(11,j=void 0),ro.dragging=!1,document.removeEventListener("mousemove",I,!0),document.removeEventListener("mouseup",D)}}return e.$$set=function(C){"value"in C&&n(0,p=C.value),"path"in C&&n(1,v=C.path),"expandedMap"in C&&n(2,m=C.expandedMap),"enforceStringMap"in C&&n(3,g=C.enforceStringMap),"visibleSectionsMap"in C&&n(4,y=C.visibleSectionsMap),"validationErrorsMap"in C&&n(5,b=C.validationErrorsMap),"searchResultItemsMap"in C&&n(6,w=C.searchResultItemsMap),"selection"in C&&n(7,x=C.selection),"context"in C&&n(8,k=C.context),"onDragSelectionStart"in C&&n(33,E=C.onDragSelectionStart),"$$scope"in C&&n(35,h=C.$$scope)},e.$$.update=function(){2&e.$$.dirty[0]&&n(9,i=oe(v)),516&e.$$.dirty[0]&&n(12,a=!!m&&m[i]===!0),777&e.$$.dirty[0]&&n(13,s=Vs(p,g,i,k.parser)),528&e.$$.dirty[0]&&n(14,c=y?y[i]:void 0),544&e.$$.dirty[0]&&n(15,u=b?b[i]:void 0),386&e.$$.dirty[0]&&n(16,l=Dh(k.getJson(),x,v)),2&e.$$.dirty[0]&&n(17,r=v.length===0),2&e.$$.dirty[0]&&n(18,o=Fh(v.length))},[p,v,m,g,y,b,w,x,k,i,T,j,a,s,c,u,l,r,o,function(C,M,P,B,A,W,N,dt,et){var yt=Object.keys(M).map(function(bt){var jt=R(C.concat(bt)),gt=pE(i,bt);return{key:bt,value:M[bt],path:jt,expandedMap:Na(P,gt),enforceStringMap:Na(B,gt),visibleSectionsMap:Na(A,gt),validationErrorsMap:Na(W,gt),keySearchResultItemsMap:Jft(N,gt),valueSearchResultItemsMap:Na(N,gt),selection:c6(k.getJson(),dt,jt)}});return et&&et.offset!==0&&(yt=zO(yt,et.selectionStartIndex,et.selectionItemsCount,et.offset)),yt},function(C,M,P,B,A,W,N,dt,et,yt){for(var bt=P.start,jt=Math.min(P.end,M.length),gt=[],Y=bt;Y<jt;Y++){var K=R(C.concat(String(Y))),rt=pE(i,Y);gt.push({index:Y,value:M[Y],path:K,expandedMap:Na(B,rt),enforceStringMap:Na(A,rt),visibleSectionsMap:Na(W,rt),validationErrorsMap:Na(N,rt),searchResultItemsMap:Na(dt,rt),selection:c6(k.getJson(),et,K)})}if(yt&&yt.offset!==0){var X=gt.map(function(L){return L.index});gt=zO(gt,yt.selectionStartIndex,yt.selectionItemsCount,yt.offset);for(var _t=0;_t<gt.length;_t++)gt[_t].index=X[_t]}return gt},function(C){C.stopPropagation();var M=C.ctrlKey;k.onExpand(v,!a,M)},function(C){C.stopPropagation(),k.onExpand(v,!0)},function(C,M){var P=Op(v,Object.keys(p),C,M);return k.onPatch(P),Re(Ca(P[0].path))},function(C){if(!(function(N){return N.nodeName==="DIV"&&N.contentEditable==="true"}(C.target)||C.which===1&&uj(C.target,"BUTTON"))){C.stopPropagation(),C.preventDefault(),k.focus(),document.addEventListener("mousemove",q,!0),document.addEventListener("mouseup",O);var M=ly(C.target),P=k.getJson(),B=k.getDocumentState();if(!x||M===Bn.after||M===Bn.inside||x.type!==M&&x.type!==Bn.multi||!Dh(P,x,v))if(ro.selecting=!0,ro.selectionAnchor=v,ro.selectionAnchorType=M,ro.selectionFocus=v,C.shiftKey){var A=k.getDocumentState().selection;A&&k.onSelect(Po(zu(A),v))}else if(M===Bn.multi)if(r&&C.target.hasAttribute("data-path")){var W=Re(Kz(p,B));k.onSelect(Ow(W))}else k.onSelect(Po(v,v));else k.onSelect(s6(0,M,v));else C.button===0&&E(C)}},function(C){if(ro.selecting){C.preventDefault(),C.stopPropagation(),ro.selectionFocus==null&&window.getSelection&&window.getSelection().empty();var M=ly(C.target);an(v,ro.selectionFocus)&&M===ro.selectionAnchorType||(ro.selectionFocus=v,ro.selectionAnchorType=M,k.onSelect(Po(ro.selectionAnchor||ro.selectionFocus,ro.selectionFocus)))}},function(C){if(!k.readOnly&&x){var M=on(ge(x));if(an(v,M)){var P=function(dt,et){var yt=[];function bt(L){var U=v.concat(L),G=k.findElement(U);G!=null&&yt.push({path:U,height:G.clientHeight})}if(Array.isArray(p)){var jt=Ts(k.getJson(),dt),gt=Oc(k.getJson(),dt),Y=Re(jt),K=Re(gt),rt=et.find(function(L){return Y>=L.start&&K<=L.end});if(!rt)return null;var X=rt.start,_t=rt.end;Cz(X,Math.min(p.length,_t),function(L){return bt(String(L))})}else Object.keys(p).forEach(bt);return yt}(x,c||Qu);if(_("dragSelectionStart",{selection:x,items:P}),P){var B=k.getJson(),A=Ts(B,x),W=P.findIndex(function(dt){return an(dt.path,A)}),N=xy({json:B,documentState:k.getDocumentState(),deltaY:0,items:P}).offset;n(11,j={initialTarget:C.target,initialClientY:C.clientY,initialContentTop:F(),selectionStartIndex:W,selectionItemsCount:Ec(B,x).length,items:P,offset:N,didMoveItems:!1}),ro.dragging=!0,document.addEventListener("mousemove",I,!0),document.addEventListener("mouseup",D)}else _("Cannot drag the current selection (probably spread over multiple sections)")}else E(C)}},function(C){ro.selecting||ro.dragging||(C.stopPropagation(),Mu(C.target,"data-type","selectable-value")?n(10,T=iw):Mu(C.target,"data-type","insert-selection-area-inside")?n(10,T=qs):Mu(C.target,"data-type","insert-selection-area-after")&&n(10,T=Oh),clearTimeout($))},function(C){C.stopPropagation(),$=setTimeout(function(){return n(10,T=void 0)})},function(C){C.shiftKey||(C.stopPropagation(),C.preventDefault(),k.onSelect(Ws(v)))},function(C){C.shiftKey||(C.stopPropagation(),C.preventDefault(),k.onSelect(Ds(v)))},function(C){k.onSelect(Ws(v)),k.onContextMenu(C)},function(C){k.onSelect(Ds(v)),k.onContextMenu(C)},E,d,h]}var _j=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,Uvt,Wvt,qe,{value:0,path:1,expandedMap:2,enforceStringMap:3,visibleSectionsMap:4,validationErrorsMap:5,searchResultItemsMap:6,selection:7,context:8,onDragSelectionStart:33},_vt,[-1,-1]),o}return it(n)}(),Kvt=_j,Jvt={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"]},Gvt={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"]},Lw={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"]},Qvt={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 Yvt(e){var t,n;return t=new e1({props:{items:e[0]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};1&Ce(o,1)[0]&&(i.items=r[0]),t.$set(i)},i:function(r){n||(z(t.$$.fragment,r),n=!0)},o:function(r){V(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function Xvt(e,t,n){var r,o,i,a,s,c,u,l=t.json,f=t.selection,d=t.readOnly,h=t.showSearch,p=h!==void 0&&h,v=t.historyState,m=t.onExpandAll,g=t.onCollapseAll,y=t.onUndo,b=t.onRedo,w=t.onSort,x=t.onTransform,k=t.onContextMenu,E=t.onCopy,_=t.onRenderMenu;function T(){n(1,p=!p)}return e.$$set=function($){"json"in $&&n(2,l=$.json),"selection"in $&&n(3,f=$.selection),"readOnly"in $&&n(4,d=$.readOnly),"showSearch"in $&&n(1,p=$.showSearch),"historyState"in $&&n(5,v=$.historyState),"onExpandAll"in $&&n(6,m=$.onExpandAll),"onCollapseAll"in $&&n(7,g=$.onCollapseAll),"onUndo"in $&&n(8,y=$.onUndo),"onRedo"in $&&n(9,b=$.onRedo),"onSort"in $&&n(10,w=$.onSort),"onTransform"in $&&n(11,x=$.onTransform),"onContextMenu"in $&&n(12,k=$.onContextMenu),"onCopy"in $&&n(13,E=$.onCopy),"onRenderMenu"in $&&n(14,_=$.onRenderMenu)},e.$$.update=function(){4&e.$$.dirty&&n(20,r=l!==void 0),1048584&e.$$.dirty&&n(19,o=r&&(zn(f)||Fr(f)||dn(f))),68&e.$$.dirty&&n(15,a={type:"button",icon:Jvt,title:"Expand all",className:"jse-expand-all",onClick:m,disabled:!xr(l)}),132&e.$$.dirty&&n(16,s={type:"button",icon:Gvt,title:"Collapse all",className:"jse-collapse-all",onClick:g,disabled:!xr(l)}),4&e.$$.dirty&&n(17,c={type:"button",icon:mj,title:"Search (Ctrl+F)",className:"jse-search",onClick:T,disabled:l===void 0}),769844&e.$$.dirty&&n(18,u=d?[a,s,{type:"separator"},{type:"button",icon:Mc,title:"Copy (Ctrl+C)",className:"jse-copy",onClick:E,disabled:!o},{type:"separator"},c,{type:"space"}]:[a,s,{type:"separator"},{type:"button",icon:G0,title:"Sort",className:"jse-sort",onClick:w,disabled:d||l===void 0},{type:"button",icon:K0,title:"Transform contents (filter, sort, project)",className:"jse-transform",onClick:x,disabled:d||l===void 0},c,{type:"button",icon:aB,title:Zk,className:"jse-contextmenu",onClick:k},{type:"separator"},{type:"button",icon:vj,title:"Undo (Ctrl+Z)",className:"jse-undo",onClick:y,disabled:!v.canUndo},{type:"button",icon:pj,title:"Redo (Ctrl+Shift+Z)",className:"jse-redo",onClick:b,disabled:!v.canRedo},{type:"space"}]),278528&e.$$.dirty&&n(0,i=_(u)||u)},[i,p,l,f,d,v,m,g,y,b,w,x,k,E,_,a,s,c,u,o,r]}var Zvt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,Xvt,Yvt,qe,{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}),o}return it(n)}();function tmt(e){Le(e,"svelte-67oee7",".jse-welcome.svelte-67oee7.svelte-67oee7{flex:1;overflow:auto;font-family:var(--jse-font-family);font-size:var(--jse-font-size);display:flex;flex-direction:column;align-items:center;border-left:var(--jse-main-border);border-right:var(--jse-main-border)}.jse-welcome.svelte-67oee7.svelte-67oee7:last-child{border-bottom:var(--jse-main-border)}.jse-welcome.svelte-67oee7 .jse-space.jse-before.svelte-67oee7{flex:1}.jse-welcome.svelte-67oee7 .jse-space.jse-after.svelte-67oee7{flex:2}.jse-welcome.svelte-67oee7 .jse-contents.svelte-67oee7{display:flex;flex-direction:column;max-width:300px;margin:2em var(--jse-padding) 0;gap:var(--jse-padding)}.jse-welcome.svelte-67oee7 .jse-contents .jse-welcome-info.svelte-67oee7{color:var(--jse-panel-color-readonly)}.jse-welcome.svelte-67oee7 .jse-contents button.svelte-67oee7{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px}.jse-welcome.svelte-67oee7 .jse-contents button.svelte-67oee7:hover{background:var(--jse-button-primary-background-highlight)}.jse-welcome.svelte-67oee7 .jse-contents button.svelte-67oee7:disabled{background:var(--jse-button-primary-background-disabled)}")}function vA(e){var t,n,r,o,i,a,s;return{c:function(){(t=tt("div")).innerHTML="You can paste clipboard data using <b>Ctrl+V</b>, or use the following options:",n=kt(),(r=tt("button")).textContent="Create object",o=kt(),(i=tt("button")).textContent="Create array",S(t,"class","jse-welcome-info svelte-67oee7"),S(r,"title","Create an empty JSON object (press '{')"),S(r,"class","svelte-67oee7"),S(i,"title","Create an empty JSON array (press '[')"),S(i,"class","svelte-67oee7")},m:function(c,u){ft(c,t,u),ft(c,n,u),ft(c,r,u),ft(c,o,u),ft(c,i,u),a||(s=[zt(r,"click",e[3]),zt(i,"click",e[4])],a=!0)},p:Ht,d:function(c){c&&(lt(t),lt(n),lt(r),lt(o),lt(i)),a=!1,Fn(s)}}}function emt(e){var t,n,r,o,i,a,s,c,u=!e[0]&&vA(e);return{c:function(){t=tt("div"),n=tt("div"),r=kt(),o=tt("div"),(i=tt("div")).textContent="Empty document",a=kt(),u&&u.c(),s=kt(),c=tt("div"),S(n,"class","jse-space jse-before svelte-67oee7"),S(i,"class","jse-welcome-title"),S(o,"class","jse-contents svelte-67oee7"),S(c,"class","jse-space jse-after svelte-67oee7"),S(t,"class","jse-welcome svelte-67oee7")},m:function(l,f){ft(l,t,f),H(t,n),H(t,r),H(t,o),H(o,i),H(o,a),u&&u.m(o,null),H(t,s),H(t,c)},p:function(l,f){var d=Ce(f,1)[0];l[0]?u&&(u.d(1),u=null):u?u.p(l,d):((u=vA(l)).c(),u.m(o,null))},i:Ht,o:Ht,d:function(l){l&<(t),u&&u.d()}}}function nmt(e,t,n){var r=t.readOnly,o=t.onCreateArray,i=t.onCreateObject;return e.$$set=function(a){"readOnly"in a&&n(0,r=a.readOnly),"onCreateArray"in a&&n(1,o=a.onCreateArray),"onCreateObject"in a&&n(2,i=a.onCreateObject)},[r,o,i,function(){return i()},function(){return o()}]}var rmt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,nmt,emt,qe,{readOnly:0,onCreateArray:1,onCreateObject:2},tmt),o}return it(n)}(),SB={exports:{}},mA=function(e,t){var n,r,o=1,i=0,a=0,s=String.alphabet;function c(u,l,f){if(f){for(n=l;(f=c(u,n))<76&&f>65;)++n;return+u.slice(l-1,n)}return(f=s&&s.indexOf(u.charAt(l)))>-1?f+76:(f=u.charCodeAt(l)||0)<45||f>127?f:f<46?65:f<48?f-1:f<58?f+18:f<65?f-11:f<91?f+11:f<97?f-37:f<123?f+5:f-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{SB.exports=mA}catch{String.naturalCompare=mA}var omt=s2(SB.exports);function zw(e,t){var n=typeof e=="string"?e.toLowerCase():e,r=typeof t=="string"?t.toLowerCase():t;return omt(n,r)}function $B(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(Wn(fe(e,t))){if(n===void 0)throw new Error("Cannot sort: no property selected by which to sort the array");return function(o){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,c=function(l,f){return function(d,h){var p=fe(d,l),v=fe(h,l);return p===void 0?f:v===void 0?-f:typeof p!="string"&&typeof v!="string"?p>v?f:p<v?-f:0:f*zw(p,v)}}(a,s),u=fe(o,i);return[{op:"replace",path:oe(i),value:u.slice(0).sort(c)}]}(e,t,n,r)}if(pr(e))return function(o){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,s=fe(o,i),c=Object.keys(s),u=c.slice();u.sort(function(p,v){return a*zw(p,v)});for(var l=[],f=0;f<u.length;f++){var d=u[f],h=oe(i.concat(d));l.push({op:"move",from:h,path:h})}return l}(e,t,r);throw new Error("Cannot sort: no array or object")}function imt(e){Le(e,"svelte-6hb2gf",".jse-navigation-bar-dropdown.svelte-6hb2gf.svelte-6hb2gf{position:absolute;top:100%;left:0;z-index:3;background:var(--jse-navigation-bar-background);color:var(--jse-navigation-bar-dropdown-color);box-shadow:var(--jse-controls-box-shadow);display:flex;flex-direction:column;max-height:300px;overflow:auto;min-width:80px}.jse-navigation-bar-dropdown.svelte-6hb2gf button.jse-navigation-bar-dropdown-item.svelte-6hb2gf{font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);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)) 36px}.jse-navigation-bar-dropdown.svelte-6hb2gf button.jse-navigation-bar-dropdown-item.svelte-6hb2gf:focus,.jse-navigation-bar-dropdown.svelte-6hb2gf button.jse-navigation-bar-dropdown-item.svelte-6hb2gf:hover{background:var(--jse-navigation-bar-background-highlight)}.jse-navigation-bar-dropdown.svelte-6hb2gf button.jse-navigation-bar-dropdown-item.jse-selected.svelte-6hb2gf{background:var(--jse-navigation-bar-dropdown-color);color:var(--jse-navigation-bar-background)}")}function gA(e,t,n){var r=e.slice();return r[4]=t[n],r}function yA(e,t){var n,r,o,i,a,s=Hs(t[4].toString(),wA)+"";function c(){return t[3](t[4])}return{key:e,first:null,c:function(){n=tt("button"),r=Gt(s),S(n,"type","button"),S(n,"class","jse-navigation-bar-dropdown-item svelte-6hb2gf"),S(n,"title",o=t[4].toString()),Dt(n,"jse-selected",t[4]===t[1]),this.first=n},m:function(u,l){ft(u,n,l),H(n,r),i||(a=zt(n,"click",Lc(c)),i=!0)},p:function(u,l){t=u,1&l&&s!==(s=Hs(t[4].toString(),wA)+"")&&we(r,s),1&l&&o!==(o=t[4].toString())&&S(n,"title",o),3&l&&Dt(n,"jse-selected",t[4]===t[1])},d:function(u){u&<(n),i=!1,a()}}}function bA(e){var t,n;return{c:function(){t=tt("button"),n=Gt("..."),S(t,"type","button"),S(t,"class","jse-navigation-bar-dropdown-item svelte-6hb2gf"),S(t,"title","Limited to "+zd+" items")},m:function(r,o){ft(r,t,o),H(t,n)},p:Ht,d:function(r){r&<(t)}}}function amt(e){for(var t,n,r=[],o=new Map,i=De(pg(e[0],zd)),a=function(f){return f[4]},s=0;s<i.length;s+=1){var c=gA(e,i,s),u=a(c);o.set(u,r[s]=yA(u,c))}var l=e[0].length>zd&&bA();return{c:function(){t=tt("div");for(var f=0;f<r.length;f+=1)r[f].c();n=kt(),l&&l.c(),S(t,"class","jse-navigation-bar-dropdown svelte-6hb2gf")},m:function(f,d){ft(f,t,d);for(var h=0;h<r.length;h+=1)r[h]&&r[h].m(t,null);H(t,n),l&&l.m(t,null)},p:function(f,d){var h=Ce(d,1)[0];7&h&&(i=De(pg(f[0],zd)),r=S0(r,h,a,1,f,i,o,t,lZ,yA,n,gA)),f[0].length>zd?l?l.p(f,h):((l=bA()).c(),l.m(t,null)):l&&(l.d(1),l=null)},i:Ht,o:Ht,d:function(f){f&<(t);for(var d=0;d<r.length;d+=1)r[d].d();l&&l.d()}}}var zd=100,wA=30;function smt(e,t,n){var r=t.items,o=t.selectedItem,i=t.onSelect;return e.$$set=function(a){"items"in a&&n(0,r=a.items),"selectedItem"in a&&n(1,o=a.selectedItem),"onSelect"in a&&n(2,i=a.onSelect)},[r,o,i,function(a){return i(a)}]}var cmt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,smt,amt,qe,{items:0,selectedItem:1,onSelect:2},imt),o}return it(n)}();function umt(e){Le(e,"svelte-1r1k9th",".jse-navigation-bar-item.svelte-1r1k9th.svelte-1r1k9th{position:relative;display:flex}.jse-navigation-bar-item.svelte-1r1k9th button.jse-navigation-bar-button.svelte-1r1k9th{font-family:inherit;font-size:inherit;padding:calc(0.5 * var(--jse-padding)) 2px;border:none;background:transparent;color:inherit;cursor:pointer;outline:none;min-width:2em;white-space:nowrap}.jse-navigation-bar-item.svelte-1r1k9th button.jse-navigation-bar-button.svelte-1r1k9th:focus,.jse-navigation-bar-item.svelte-1r1k9th button.jse-navigation-bar-button.svelte-1r1k9th:hover{background:var(--jse-panel-button-background-highlight);color:var(--jse-panel-button-color-highlight)}.jse-navigation-bar-item.svelte-1r1k9th button.jse-navigation-bar-button.jse-navigation-bar-arrow.svelte-1r1k9th{padding:2px var(--jse-padding) 0}.jse-navigation-bar-item.svelte-1r1k9th button.jse-navigation-bar-button.jse-navigation-bar-arrow.jse-open.svelte-1r1k9th{background:var(--jse-navigation-bar-background);color:var(--jse-navigation-bar-dropdown-color)}.jse-navigation-bar-item.svelte-1r1k9th.svelte-1r1k9th:last-child{padding-right:var(--jse-padding)}")}function xA(e){var t,n,r,o;return{c:function(){t=tt("button"),n=Gt(e[2]),S(t,"type","button"),S(t,"class","jse-navigation-bar-button svelte-1r1k9th")},m:function(i,a){ft(i,t,a),H(t,n),r||(o=zt(t,"click",e[9]),r=!0)},p:function(i,a){4&a&&we(n,i[2])},d:function(i){i&<(t),r=!1,o()}}}function lmt(e){var t,n,r,o,i,a,s;r=new hn({props:{data:iB}});var c=e[2]!==void 0&&xA(e);return{c:function(){t=tt("div"),n=tt("button"),Pt(r.$$.fragment),o=kt(),c&&c.c(),S(n,"type","button"),S(n,"class","jse-navigation-bar-button jse-navigation-bar-arrow svelte-1r1k9th"),Dt(n,"jse-open",e[1]),S(t,"class","jse-navigation-bar-item svelte-1r1k9th")},m:function(u,l){ft(u,t,l),H(t,n),Mt(r,n,null),H(t,o),c&&c.m(t,null),e[10](t),i=!0,a||(s=zt(n,"click",e[4]),a=!0)},p:function(u,l){var f=Ce(l,1)[0];(!i||2&f)&&Dt(n,"jse-open",u[1]),u[2]!==void 0?c?c.p(u,f):((c=xA(u)).c(),c.m(t,null)):c&&(c.d(1),c=null)},i:function(u){i||(z(r.$$.fragment,u),i=!0)},o:function(u){V(r.$$.fragment,u),i=!1},d:function(u){u&<(t),At(r),c&&c.d(),e[10](null),a=!1,s()}}}function fmt(e,t,n){var r,o,i,a,s=ho("absolute-popup"),c=s.openAbsolutePopup,u=s.closeAbsolutePopup,l=t.path,f=t.index,d=t.onSelect,h=t.getItems,p=!1;function v(m){u(a),d(r.concat(m))}return e.$$set=function(m){"path"in m&&n(5,l=m.path),"index"in m&&n(6,f=m.index),"onSelect"in m&&n(7,d=m.onSelect),"getItems"in m&&n(8,h=m.getItems)},e.$$.update=function(){96&e.$$.dirty&&(r=l.slice(0,f)),96&e.$$.dirty&&n(2,o=l[f])},[i,p,o,v,function(){if(i){n(1,p=!0);var m={items:h(r),selectedItem:o,onSelect:v};a=c(cmt,m,{anchor:i,closeOnOuterClick:!0,onClose:function(){n(1,p=!1)}})}},l,f,d,h,function(){return v(o)},function(m){Ze[m?"unshift":"push"](function(){n(0,i=m)})}]}var CB=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,fmt,lmt,qe,{path:5,index:6,onSelect:7,getItems:8},umt),o}return it(n)}();function Sj(e){var t,n;if(navigator.clipboard)return navigator.clipboard.writeText(e);if((t=(n=document).queryCommandSupported)!==null&&t!==void 0&&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(o){console.error(o)}finally{document.body.removeChild(r)}}else console.error("Copy failed.")}function dmt(e){Le(e,"svelte-g0evpe",".jse-navigation-bar-path-editor.svelte-g0evpe.svelte-g0evpe{flex:1;display:flex;border:var(--jse-edit-outline);background:var(--jse-background-color)}.jse-navigation-bar-path-editor.svelte-g0evpe input.jse-navigation-bar-text.svelte-g0evpe{flex:1;font-family:inherit;font-size:inherit;padding:0 5px 1px;background:var(--jse-background-color);color:var(--jse-text-color);border:none;outline:none}.jse-navigation-bar-path-editor.svelte-g0evpe button.svelte-g0evpe{border:none;background:var(--jse-background-color);cursor:pointer;font-family:inherit;font-size:80%;color:inherit}.jse-navigation-bar-path-editor.svelte-g0evpe button.jse-navigation-bar-copy.copied.svelte-g0evpe{color:var(--jse-message-success-background)}.jse-navigation-bar-path-editor.svelte-g0evpe button.jse-navigation-bar-validation-error.svelte-g0evpe{color:var(--jse-error-color)}.jse-navigation-bar-path-editor.error.svelte-g0evpe.svelte-g0evpe{border-color:var(--jse-error-color)}.jse-navigation-bar-path-editor.error.svelte-g0evpe input.jse-navigation-bar-text.svelte-g0evpe{color:var(--jse-error-color)}.jse-navigation-bar-path-editor.svelte-g0evpe .jse-copied-text.svelte-g0evpe{background:var(--jse-message-success-background);color:var(--jse-message-success-color);position:relative;margin:2px;padding:0 5px;border-radius:3px}")}function kA(e){var t,n,r,o,i,a;return n=new hn({props:{data:dl}}),{c:function(){t=tt("button"),Pt(n.$$.fragment),S(t,"type","button"),S(t,"class","jse-navigation-bar-validation-error svelte-g0evpe")},m:function(s,c){ft(s,t,c),Mt(n,t,null),o=!0,i||(a=fo(r=hj.call(null,t,xt({text:e[3]},e[4]))),i=!0)},p:function(s,c){r&&uo(r.update)&&8&c&&r.update.call(null,xt({text:s[3]},s[4]))},i:function(s){o||(z(n.$$.fragment,s),o=!0)},o:function(s){V(n.$$.fragment,s),o=!1},d:function(s){s&<(t),At(n),i=!1,a()}}}function jA(e){var t;return{c:function(){(t=tt("div")).textContent="Copied!",S(t,"class","jse-copied-text svelte-g0evpe")},m:function(n,r){ft(n,t,r)},d:function(n){n&<(t)}}}function hmt(e){var t,n,r,o,i,a,s,c,u,l,f=e[3]&&kA(e),d=e[2]&&jA();return s=new hn({props:{data:Mc}}),{c:function(){t=tt("div"),n=tt("input"),r=kt(),f&&f.c(),o=kt(),d&&d.c(),i=kt(),a=tt("button"),Pt(s.$$.fragment),S(n,"type","text"),S(n,"class","jse-navigation-bar-text svelte-g0evpe"),n.value=e[0],S(a,"type","button"),S(a,"class","jse-navigation-bar-copy svelte-g0evpe"),S(a,"title","Copy selected path to the clipboard"),Dt(a,"copied",e[2]),S(t,"class","jse-navigation-bar-path-editor svelte-g0evpe"),Dt(t,"error",e[3])},m:function(h,p){ft(h,t,p),H(t,n),e[15](n),H(t,r),f&&f.m(t,null),H(t,o),d&&d.m(t,null),H(t,i),H(t,a),Mt(s,a,null),c=!0,u||(l=[zt(n,"keydown",Lc(e[6])),zt(n,"input",e[5]),zt(a,"click",e[7])],u=!0)},p:function(h,p){var v=Ce(p,1)[0];(!c||1&v&&n.value!==h[0])&&(n.value=h[0]),h[3]?f?(f.p(h,v),8&v&&z(f,1)):((f=kA(h)).c(),z(f,1),f.m(t,o)):f&&(Bt(),V(f,1,1,function(){f=null}),Ft()),h[2]?d||((d=jA()).c(),d.m(t,i)):d&&(d.d(1),d=null),(!c||4&v)&&Dt(a,"copied",h[2]),(!c||8&v)&&Dt(t,"error",h[3])},i:function(h){c||(z(f),z(s.$$.fragment,h),c=!0)},o:function(h){V(f),V(s.$$.fragment,h),c=!1},d:function(h){h&<(t),e[15](null),f&&f.d(),d&&d.d(),At(s),u=!1,Fn(l)}}}function pmt(e,t,n){var r,o,i,a=ho("absolute-popup"),s=t.path,c=t.pathParser,u=t.onChange,l=t.onClose,f=t.onError,d=t.pathExists,h=!1,p=void 0,v=!1;function m(){o.focus()}function g(y){try{var b=c.parse(y);return function(w){if(!d(w))throw new Error("Path does not exist in current document")}(b),{path:b,error:void 0}}catch(w){return{path:void 0,error:w}}}return Wi(function(){m()}),gi(function(){clearTimeout(p)}),e.$$set=function(y){"path"in y&&n(8,s=y.path),"pathParser"in y&&n(9,c=y.pathParser),"onChange"in y&&n(10,u=y.onChange),"onClose"in y&&n(11,l=y.onClose),"onError"in y&&n(12,f=y.onError),"pathExists"in y&&n(13,d=y.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,v,r,a,function(y){n(0,i=y.currentTarget.value)},function(y){var b=ou(y);if(b==="Escape"&&l(),b==="Enter"){n(14,h=!0);var w=g(i);w.path!==void 0?u(w.path):f(w.error)}},function(){Sj(i),n(2,v=!0),p=setTimeout(function(){return n(2,v=!1)},1e3),m()},s,c,u,l,f,d,h,function(y){Ze[y?"unshift":"push"](function(){n(1,o=y)})}]}var vmt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,pmt,hmt,eo,{path:8,pathParser:9,onChange:10,onClose:11,onError:12,pathExists:13},dmt),o}return it(n)}();function mmt(e){Le(e,"svelte-15r3ahw",".jse-navigation-bar.svelte-15r3ahw.svelte-15r3ahw{font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);background:var(--jse-panel-background);color:var(--jse-panel-button-color);padding:0;margin:0;display:flex;overflow:auto;border-left:var(--jse-main-border);border-right:var(--jse-main-border)}.jse-navigation-bar.svelte-15r3ahw .jse-navigation-bar-edit.svelte-15r3ahw{font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);padding:calc(0.5 * var(--jse-padding)) var(--jse-padding);color:var(--jse-panel-color-readonly);background:transparent;border:none;display:flex;cursor:pointer;outline:none;align-items:center}.jse-navigation-bar.svelte-15r3ahw .jse-navigation-bar-edit.flex.svelte-15r3ahw{flex:1}.jse-navigation-bar.svelte-15r3ahw .jse-navigation-bar-edit.svelte-15r3ahw:focus,.jse-navigation-bar.svelte-15r3ahw .jse-navigation-bar-edit.svelte-15r3ahw:hover,.jse-navigation-bar.svelte-15r3ahw .jse-navigation-bar-edit.editing.svelte-15r3ahw{background:var(--jse-panel-button-background-highlight);color:var(--jse-panel-button-color-highlight);transition:color 0.2s ease-in, background 0.2s ease-in}.jse-navigation-bar.svelte-15r3ahw .jse-navigation-bar-edit .jse-navigation-bar-space.svelte-15r3ahw{flex:1;text-align:left}")}function _A(e,t,n){var r=e.slice();return r[18]=t[n],r[20]=n,r}function gmt(e){var t,n;return t=new vmt({props:{path:e[3],onClose:e[11],onChange:e[12],onError:e[1],pathExists:e[8],pathParser:e[2]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};8&o&&(i.path=r[3]),2&o&&(i.onError=r[1]),4&o&&(i.pathParser=r[2]),t.$set(i)},i:function(r){n||(z(t.$$.fragment,r),n=!0)},o:function(r){V(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function ymt(e){for(var t,n,r,o=[],i=new Map,a=De(e[3]),s=function(d){return d[20]},c=0;c<a.length;c+=1){var u=_A(e,a,c),l=s(u);i.set(l,o[c]=SA(l,u))}var f=e[6]&&$A(e);return{c:function(){for(var d=0;d<o.length;d+=1)o[d].c();t=kt(),f&&f.c(),n=Sn()},m:function(d,h){for(var p=0;p<o.length;p+=1)o[p]&&o[p].m(d,h);ft(d,t,h),f&&f.m(d,h),ft(d,n,h),r=!0},p:function(d,h){648&h&&(a=De(d[3]),Bt(),o=S0(o,h,s,1,d,a,i,t.parentNode,Yk,SA,t,_A),Ft()),d[6]?f?(f.p(d,h),64&h&&z(f,1)):((f=$A(d)).c(),z(f,1),f.m(n.parentNode,n)):f&&(Bt(),V(f,1,1,function(){f=null}),Ft())},i:function(d){if(!r){for(var h=0;h<a.length;h+=1)z(o[h]);z(f),r=!0}},o:function(d){for(var h=0;h<o.length;h+=1)V(o[h]);V(f),r=!1},d:function(d){d&&(lt(t),lt(n));for(var h=0;h<o.length;h+=1)o[h].d(d);f&&f.d(d)}}}function SA(e,t){var n,r,o;return r=new CB({props:{getItems:t[7],path:t[3],index:t[20],onSelect:t[9]}}),{key:e,first:null,c:function(){n=Sn(),Pt(r.$$.fragment),this.first=n},m:function(i,a){ft(i,n,a),Mt(r,i,a),o=!0},p:function(i,a){t=i;var s={};8&a&&(s.path=t[3]),8&a&&(s.index=t[20]),r.$set(s)},i:function(i){o||(z(r.$$.fragment,i),o=!0)},o:function(i){V(r.$$.fragment,i),o=!1},d:function(i){i&<(n),At(r,i)}}}function $A(e){var t,n;return t=new CB({props:{getItems:e[7],path:e[3],index:e[3].length,onSelect:e[9]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};8&o&&(i.path=r[3]),8&o&&(i.index=r[3].length),t.$set(i)},i:function(r){n||(z(t.$$.fragment,r),n=!0)},o:function(r){V(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function bmt(e){var t,n,r,o,i,a,s,c,u,l,f,d,h,p=xr(e[0])||e[5]?" ":"Navigation bar",v=[ymt,gmt],m=[];function g(y,b){return y[5]?1:0}return n=g(e),r=m[n]=v[n](e),u=new hn({props:{data:e[5]?y6:m6}}),{c:function(){t=tt("div"),r.c(),o=kt(),i=tt("button"),a=tt("span"),s=Gt(p),c=kt(),Pt(u.$$.fragment),S(a,"class","jse-navigation-bar-space svelte-15r3ahw"),S(i,"type","button"),S(i,"class","jse-navigation-bar-edit svelte-15r3ahw"),S(i,"title",l=e[5]?"Cancel editing the selected path":"Edit the selected path"),Dt(i,"flex",!e[5]),Dt(i,"editing",e[5]),S(t,"class","jse-navigation-bar svelte-15r3ahw")},m:function(y,b){ft(y,t,b),m[n].m(t,null),H(t,o),H(t,i),H(i,a),H(a,s),H(i,c),Mt(u,i,null),e[15](t),f=!0,d||(h=zt(i,"click",e[10]),d=!0)},p:function(y,b){var w=Ce(b,1)[0],x=n;(n=g(y))===x?m[n].p(y,w):(Bt(),V(m[x],1,1,function(){m[x]=null}),Ft(),(r=m[n])?r.p(y,w):(r=m[n]=v[n](y)).c(),z(r,1),r.m(t,o)),(!f||33&w)&&p!==(p=xr(y[0])||y[5]?" ":"Navigation bar")&&we(s,p);var k={};32&w&&(k.data=y[5]?y6:m6),u.$set(k),(!f||32&w&&l!==(l=y[5]?"Cancel editing the selected path":"Edit the selected path"))&&S(i,"title",l),(!f||32&w)&&Dt(i,"flex",!y[5]),(!f||32&w)&&Dt(i,"editing",y[5])},i:function(y){f||(z(r),z(u.$$.fragment,y),f=!0)},o:function(y){V(r),V(u.$$.fragment,y),f=!1},d:function(y){y&<(t),m[n].d(),At(u),e[15](null),d=!1,h()}}}function wmt(e,t,n){var r,o,i,a=po("jsoneditor:NavigationBar"),s=t.json,c=t.selection,u=t.onSelect,l=t.onError,f=t.pathParser,d=!1;function h(v){a("select path",JSON.stringify(v)),u(Po(v,v))}function p(){n(5,d=!1)}return e.$$set=function(v){"json"in v&&n(0,s=v.json),"selection"in v&&n(13,c=v.selection),"onSelect"in v&&n(14,u=v.onSelect),"onError"in v&&n(1,l=v.onError),"pathParser"in v&&n(2,f=v.pathParser)},e.$$.update=function(){8192&e.$$.dirty&&n(3,r=c?ge(c):[]),9&e.$$.dirty&&n(6,o=xr(fe(s,r))),8&e.$$.dirty&&setTimeout(function(){if(i&&i.scrollTo){var v=i.scrollWidth-i.clientWidth;v>0&&(a("scrollTo ",v),i.scrollTo({left:v,behavior:"smooth"}))}})},[s,l,f,r,i,d,o,function(v){a("get items for path",v);var m=fe(s,v);if(Array.isArray(m))return fz(0,m.length).map(String);if(pr(m)){var g=Object.keys(m).slice(0);return g.sort(zw),g}return[]},function(v){return Bi(s,v)},h,function(){n(5,d=!d)},p,function(v){p(),h(v)},c,u,function(v){Ze[v?"unshift":"push"](function(){n(4,i=v)})}]}var xmt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,wmt,bmt,qe,{json:0,selection:13,onSelect:14,onError:1,pathParser:2},mmt),o}return it(n)}();function kmt(e){Le(e,"svelte-3lbrbf",".jse-search-box.svelte-3lbrbf.svelte-3lbrbf{border:var(--jse-panel-border);border-radius:3px;font-family:var(--jse-font-family);font-size:var(--jse-font-size);background:var(--jse-panel-background);color:var(--jse-panel-color-readonly);box-shadow:var(--jse-controls-box-shadow);display:inline-block;width:400px;max-width:100%;overflow:auto}.jse-search-box.svelte-3lbrbf .jse-search-form.svelte-3lbrbf{display:flex;align-items:stretch}.jse-search-box.svelte-3lbrbf .jse-search-form button.svelte-3lbrbf,.jse-search-box.svelte-3lbrbf .jse-search-form input.svelte-3lbrbf{font-family:inherit;font-size:inherit}.jse-search-box.svelte-3lbrbf .jse-search-form button.svelte-3lbrbf{display:block;text-align:center;border:none;padding:0 5px;margin:0;cursor:pointer;color:var(--jse-panel-button-color);background:var(--jse-panel-button-background)}.jse-search-box.svelte-3lbrbf .jse-search-form button.svelte-3lbrbf:hover{color:var(--jse-panel-button-color-highlight);background:var(--jse-panel-button-background-highlight)}.jse-search-box.svelte-3lbrbf .jse-search-form input.svelte-3lbrbf{color:var(--jse-panel-color);border:var(--jse-input-border);border-radius:3px;background:var(--jse-input-background);height:28px;padding:0 5px;margin:0;flex:1;width:0;min-width:50px;outline:none}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-replace-toggle.svelte-3lbrbf{padding:var(--jse-padding) calc(0.5 * var(--jse-padding));min-width:20px;background:var(--jse-panel-button-background-highlight)}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents.svelte-3lbrbf{flex:1;display:flex;flex-direction:column;padding:calc(0.5 * var(--jse-padding));gap:calc(0.5 * var(--jse-padding))}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section.svelte-3lbrbf{flex:1;display:flex;align-items:center;position:relative;padding-left:32px}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section .jse-search-icon.svelte-3lbrbf{color:inherit;cursor:inherit;background:inherit;position:absolute;top:calc(0.5 * var(--jse-padding));left:calc(0.5 * var(--jse-padding))}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section label.jse-search-input-label.svelte-3lbrbf{flex:1;display:flex}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section .jse-search-count.svelte-3lbrbf{color:inherit;font-size:80%;visibility:hidden;padding:0 5px;min-width:36px;text-align:center}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section .jse-search-count.jse-visible.svelte-3lbrbf{visibility:visible}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-replace-section.svelte-3lbrbf{padding-left:32px;flex:1;display:flex}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-replace-section button.svelte-3lbrbf{width:auto}")}function CA(e){var t,n,r,o,i,a,s,c,u,l,f,d,h,p,v,m,g,y,b,w,x,k,E,_,T,$,j,R,q=(e[3]!==-1?"".concat(e[3]+1,"/"):"")+"",O=!e[4]&&EA(e),F=[_mt,jmt],J=[];function I(C,M){return C[2]?0:1}s=I(e),c=J[s]=F[s](e),y=new hn({props:{data:Sdt}}),x=new hn({props:{data:ydt}}),_=new hn({props:{data:Ef}});var D=e[0]&&!e[4]&&OA(e);return{c:function(){t=tt("div"),n=tt("form"),O&&O.c(),r=kt(),o=tt("div"),i=tt("div"),a=tt("div"),c.c(),u=kt(),l=tt("label"),f=tt("input"),d=kt(),h=tt("div"),p=Gt(q),v=Gt(e[10]),m=kt(),g=tt("button"),Pt(y.$$.fragment),b=kt(),w=tt("button"),Pt(x.$$.fragment),k=kt(),E=tt("button"),Pt(_.$$.fragment),T=kt(),D&&D.c(),S(a,"class","jse-search-icon svelte-3lbrbf"),S(f,"class","jse-search-input svelte-3lbrbf"),S(f,"title","Enter text to search"),S(f,"type","text"),S(f,"placeholder","Find"),S(l,"class","jse-search-input-label svelte-3lbrbf"),S(l,"about","jse-search input"),S(h,"class","jse-search-count svelte-3lbrbf"),Dt(h,"jse-visible",e[8]!==""),S(g,"type","button"),S(g,"class","jse-search-next svelte-3lbrbf"),S(g,"title","Go to next search result (Enter)"),S(w,"type","button"),S(w,"class","jse-search-previous svelte-3lbrbf"),S(w,"title","Go to previous search result (Shift+Enter)"),S(E,"type","button"),S(E,"class","jse-search-clear svelte-3lbrbf"),S(E,"title","Close search box (Esc)"),S(i,"class","jse-search-section svelte-3lbrbf"),S(o,"class","jse-search-contents svelte-3lbrbf"),S(n,"class","jse-search-form svelte-3lbrbf"),S(t,"class","jse-search-box svelte-3lbrbf")},m:function(C,M){ft(C,t,M),H(t,n),O&&O.m(n,null),H(n,r),H(n,o),H(o,i),H(i,a),J[s].m(a,null),H(i,u),H(i,l),H(l,f),ss(f,e[8]),H(i,d),H(i,h),H(h,p),H(h,v),H(i,m),H(i,g),Mt(y,g,null),H(i,b),H(i,w),Mt(x,w,null),H(i,k),H(i,E),Mt(_,E,null),H(o,T),D&&D.m(o,null),$=!0,j||(R=[zt(f,"input",e[21]),fo($mt.call(null,f)),zt(g,"click",e[22]),zt(w,"click",e[23]),zt(E,"click",e[24]),zt(n,"submit",e[12]),zt(n,"keydown",e[13])],j=!0)},p:function(C,M){C[4]?O&&(Bt(),V(O,1,1,function(){O=null}),Ft()):O?(O.p(C,M),16&M&&z(O,1)):((O=EA(C)).c(),z(O,1),O.m(n,r));var P=s;(s=I(C))!==P&&(Bt(),V(J[P],1,1,function(){J[P]=null}),Ft(),(c=J[s])||(c=J[s]=F[s](C)).c(),z(c,1),c.m(a,null)),256&M&&f.value!==C[8]&&ss(f,C[8]),(!$||8&M)&&q!==(q=(C[3]!==-1?"".concat(C[3]+1,"/"):"")+"")&&we(p,q),(!$||1024&M)&&we(v,C[10]),(!$||256&M)&&Dt(h,"jse-visible",C[8]!==""),C[0]&&!C[4]?D?D.p(C,M):((D=OA(C)).c(),D.m(o,null)):D&&(D.d(1),D=null)},i:function(C){$||(z(O),z(c),z(y.$$.fragment,C),z(x.$$.fragment,C),z(_.$$.fragment,C),$=!0)},o:function(C){V(O),V(c),V(y.$$.fragment,C),V(x.$$.fragment,C),V(_.$$.fragment,C),$=!1},d:function(C){C&<(t),O&&O.d(),J[s].d(),At(y),At(x),At(_),D&&D.d(),j=!1,Fn(R)}}}function EA(e){var t,n,r,o,i;return n=new hn({props:{data:e[0]?Ri:bc}}),{c:function(){t=tt("button"),Pt(n.$$.fragment),S(t,"type","button"),S(t,"class","jse-replace-toggle svelte-3lbrbf"),S(t,"title","Toggle visibility of replace options (Ctrl+H)")},m:function(a,s){ft(a,t,s),Mt(n,t,null),r=!0,o||(i=zt(t,"click",e[11]),o=!0)},p:function(a,s){var c={};1&s&&(c.data=a[0]?Ri:bc),n.$set(c)},i:function(a){r||(z(n.$$.fragment,a),r=!0)},o:function(a){V(n.$$.fragment,a),r=!1},d:function(a){a&<(t),At(n),o=!1,i()}}}function jmt(e){var t,n;return t=new hn({props:{data:mj}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},i:function(r){n||(z(t.$$.fragment,r),n=!0)},o:function(r){V(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function _mt(e){var t,n;return t=new hn({props:{data:vdt,spin:!0}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},i:function(r){n||(z(t.$$.fragment,r),n=!0)},o:function(r){V(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function OA(e){var t,n,r,o,i,a,s,c;return{c:function(){t=tt("div"),n=tt("input"),r=kt(),(o=tt("button")).textContent="Replace",i=kt(),(a=tt("button")).textContent="All",S(n,"class","jse-replace-input svelte-3lbrbf"),S(n,"title","Enter replacement text"),S(n,"type","text"),S(n,"placeholder","Replace"),S(o,"type","button"),S(o,"title","Replace current occurrence (Ctrl+Enter)"),S(o,"class","svelte-3lbrbf"),S(a,"type","button"),S(a,"title","Replace all occurrences"),S(a,"class","svelte-3lbrbf"),S(t,"class","jse-replace-section svelte-3lbrbf")},m:function(u,l){ft(u,t,l),H(t,n),ss(n,e[9]),H(t,r),H(t,o),H(t,i),H(t,a),s||(c=[zt(n,"input",e[25]),zt(o,"click",e[14]),zt(a,"click",e[15])],s=!0)},p:function(u,l){512&l&&n.value!==u[9]&&ss(n,u[9])},d:function(u){u&<(t),s=!1,Fn(c)}}}function Smt(e){var t,n,r=e[1]&&CA(e);return{c:function(){r&&r.c(),t=Sn()},m:function(o,i){r&&r.m(o,i),ft(o,t,i),n=!0},p:function(o,i){var a=Ce(i,1)[0];o[1]?r?(r.p(o,a),2&a&&z(r,1)):((r=CA(o)).c(),z(r,1),r.m(t.parentNode,t)):r&&(Bt(),V(r,1,1,function(){r=null}),Ft())},i:function(o){n||(z(r),n=!0)},o:function(o){V(r),n=!1},d:function(o){o&<(t),r&&r.d(o)}}}function $mt(e){e.select()}function Cmt(e,t,n){var r,o,i=t.show,a=i!==void 0&&i,s=t.searching,c=t.resultCount,u=c===void 0?0:c,l=t.activeIndex,f=l===void 0?0:l,d=t.showReplace,h=d!==void 0&&d,p=t.readOnly,v=p!==void 0&&p,m=t.onChange,g=m===void 0?Qn:m,y=t.onPrevious,b=y===void 0?Qn:y,w=t.onNext,x=w===void 0?Qn:w,k=t.onReplace,E=k===void 0?Qn:k,_=t.onReplaceAll,T=_===void 0?Qn:_,$=t.onClose,j=$===void 0?Qn:$,R="",q="",O="";function F(){n(0,h=!h&&!v)}function J(){v||E(R,O)}return e.$$set=function(I){"show"in I&&n(1,a=I.show),"searching"in I&&n(2,s=I.searching),"resultCount"in I&&n(16,u=I.resultCount),"activeIndex"in I&&n(3,f=I.activeIndex),"showReplace"in I&&n(0,h=I.showReplace),"readOnly"in I&&n(4,v=I.readOnly),"onChange"in I&&n(17,g=I.onChange),"onPrevious"in I&&n(5,b=I.onPrevious),"onNext"in I&&n(6,x=I.onNext),"onReplace"in I&&n(18,E=I.onReplace),"onReplaceAll"in I&&n(19,T=I.onReplaceAll),"onClose"in I&&n(7,j=I.onClose)},e.$$.update=function(){65536&e.$$.dirty&&n(10,r=u>=JN?"".concat(999,"+"):String(u)),131072&e.$$.dirty&&n(20,o=wp(g,300)),1048832&e.$$.dirty&&o(R),2&e.$$.dirty&&a&&R!==""&&g(R)},[h,a,s,f,v,b,x,j,R,O,r,F,function(I){I.preventDefault(),R!==q?(q=R,o.cancel(),g(R)):x()},function(I){I.stopPropagation();var D=ou(I);D==="Enter"&&(I.preventDefault(),x()),D==="Shift+Enter"&&(I.preventDefault(),b()),D==="Ctrl+Enter"&&(I.preventDefault(),h?J():x()),D==="Ctrl+H"&&(I.preventDefault(),F()),D==="Escape"&&(I.preventDefault(),j())},J,function(){v||T(R,O)},u,g,E,T,o,function(){R=this.value,n(8,R)},function(){return x()},function(){return b()},function(){return j()},function(){O=this.value,n(9,O)}]}var Emt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,Cmt,Smt,qe,{show:1,searching:2,resultCount:16,activeIndex:3,showReplace:0,readOnly:4,onChange:17,onPrevious:5,onNext:6,onReplace:18,onReplaceAll:19,onClose:7},kmt),o}return it(n)}(),MA=Number.isNaN||function(e){return typeof e=="number"&&e!=e};function Omt(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||MA(r)&&MA(o)))return!1;var r,o;return!0}function Ap(e,t){t===void 0&&(t=Omt);var n=null;function r(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(n&&n.lastThis===this&&t(o,n.lastArgs))return n.lastResult;var a=e.apply(this,o);return n={lastResult:a,lastArgs:o,lastThis:this},a}return r.clear=function(){n=null},r}var qh=Symbol("path");function Mmt(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1/0,r={};Array.isArray(e)&&function(i,a,s){if(i.length<a)i.forEach(s);else for(var c=a>1?(i.length-1)/(a-1):i.length,u=0;u<a;u++){var l=Math.floor(u*c);s(i[l],l,i)}}(e,n,function(i){pr(i)?EB(i,r,t):r[qh]=!0});var o=[];return qh in r&&o.push([]),OB(r,[],o,t),o}function EB(e,t,n){for(var r in e){var o=e[r],i=t[r]||(t[r]={});pr(o)&&n?EB(o,i,n):i[qh]===void 0&&(i[qh]=!0)}}function OB(e,t,n,r){for(var o in e){var i=t.concat(o),a=e[o];a&&a[qh]===!0&&n.push(i),kr(a)&&r&&OB(a,i,n,r)}}function Amt(e,t,n,r,o){for(var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:80,a=Wn(n)?n.length:0,s=function(g,y){var b=Object.values(g);if(cn(b))return y;var w=function(k,E){return k+E},x=b.reduce(w);return x/b.length}(r,o),c=e-i,u=t+2*i,l=function(g){return r[g]||o},f=0,d=0;d<c&&f<a;)d+=l(f),f++;f>0&&(d-=l(--f));for(var h=f,p=0;p<u&&h<a;)p+=l(h),h++;for(var v=0,m=h;m<a;m++)v+=l(m);return{startIndex:f,endIndex:h,startHeight:d,endHeight:v,averageItemHeight:s,visibleHeight:p,visibleItems:Wn(n)?n.slice(f,h):[]}}function ky(e,t,n,r){for(var o=Ai(e,t).rowIndex,i=0,a=0;a<o;a++)i+=n[a]||r;return i}function Ai(e,t){var n,r=ON(n=e)||PN(n)||_0(n)||EN(),o=r[0],i=r.slice(1),a=parseInt(o,10);return{rowIndex:isNaN(a)?-1:a,columnIndex:t.findIndex(function(s){return qc(i,s)})}}function Au(e,t){var n=e.rowIndex,r=e.columnIndex;return[String(n)].concat($e(t[r]))}function Pmt(e,t){var n=Ce(sz(e,function(a){return d2(a.path[0])}),2),r=n[0],o=n[1],i=KL(jp(r,Tmt),function(a){var s={row:[],columns:{}};return a.forEach(function(c){var u=function(l,f){var d=Ai(l.path,f);return d.columnIndex!==-1?d.columnIndex:-1}(c,t);u!==-1?(s.columns[u]===void 0&&(s.columns[u]=[]),s.columns[u].push(c)):s.row.push(c)}),s});return{root:o,rows:i}}function Mf(e,t){if(t&&t.length!==0)return t.length===1?t[0]:{path:e,message:"Multiple validation issues: "+t.map(function(n){return ai(n.path)+" "+n.message}).join(", "),severity:Fs.warning}}function Tmt(e){return parseInt(e.path[0],10)}function Rmt(e,t,n){return t.some(function(r){return function(o,i,a){if(!o)return!1;if(i.op==="replace"){var s=Ai(Ca(i.path),a),c=s.rowIndex,u=s.columnIndex,l=a.findIndex(function(f){return an(f,o.path)});if(c!==-1&&u!==-1&&u!==l)return!1}return!0}(e.sortedColumn,r,n)})?xt(xt({},e),{},{sortedColumn:null}):e}var Io=po("jsoneditor:actions");function MB(e){return Bw.apply(this,arguments)}function Bw(){return Bw=Ae(qt().mark(function e(t){var n,r,o,i,a,s,c,u,l,f;return qt().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(n=t.json,r=t.documentState,o=t.indentation,i=t.readOnly,a=t.parser,s=t.onPatch,!i&&n!==void 0&&r.selection&&rd(r.selection)){d.next=3;break}return d.abrupt("return");case 3:if((c=Qz(n,r.selection,o,a))!=null){d.next=6;break}return d.abrupt("return");case 6:return Io("cut",{selection:r.selection,clipboard:c,indentation:o}),d.next=9,Sj(c);case 9:u=tB(n,r.selection),l=u.operations,f=u.newSelection,s(l,function(h,p){return{state:xt(xt({},p),{},{selection:f})}});case 11:case"end":return d.stop()}},e)})),Bw.apply(this,arguments)}function AB(e){return Fw.apply(this,arguments)}function Fw(){return Fw=Ae(qt().mark(function e(t){var n,r,o,i,a;return qt().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(n=t.json,r=t.documentState,o=t.indentation,i=t.parser,(a=Qz(n,r.selection,o,i))!=null){s.next=4;break}return s.abrupt("return");case 4:return Io("copy",{clipboard:a,indentation:o}),s.next=7,Sj(a);case 7:case"end":return s.stop()}},e)})),Fw.apply(this,arguments)}function PB(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{c(t,function(f){Io("repaired pasted text: ",f),u(f)})}function u(l){if(n!==void 0){var f=r||We([],!1),d=Zz(n,f,l,i);Io("paste",{pastedText:l,operations:d,selectionNonNull:f}),a(d,function(h,p){var v=p;return d.filter(function(m){return(QN(m)||n2(m))&&xr(m.value)}).forEach(function(m){var g=Ya(n,m.path);v=vc(h,v,g)}),{state:v}})}else Io("paste text",{pastedText:l}),s(t,function(h,p){if(h)return{state:vc(h,p,[])}})}}function TB(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=t!==void 0&&(Fr(r.selection)||dn(r.selection))?Po(r.selection.path,r.selection.path):r.selection;if(cn(ge(r.selection)))Io("remove root",{selection:r.selection}),a&&a({text:"",json:void 0},t!==void 0?{text:void 0,json:t}:{text:n||"",json:t},{contentErrors:null,patchResult:null});else if(t!==void 0){var u=tB(t,c),l=u.operations,f=u.newSelection;Io("remove",{operations:l,selection:r.selection,newSelection:f}),s(l,function(d,h){return{state:xt(xt({},h),{},{selection:o?r.selection:f})}})}}}function Imt(e){var t=e.json,n=e.documentState,r=e.columns,o=e.readOnly,i=e.onPatch;if(!o&&t!==void 0&&n.selection&&rd(n.selection)){var a=Ai(ge(n.selection),r),s=a.rowIndex,c=a.columnIndex;Io("duplicate row",{rowIndex:s});var u=[String(s)];i(Xz(t,[u]),function(l,f){var d=We(Au({rowIndex:s<t.length?s+1:s,columnIndex:c},r),!1);return{state:xt(xt({},f),{},{selection:d})}})}}function Nmt(e){var t=e.json,n=e.documentState,r=e.columns,o=e.readOnly,i=e.onPatch;if(!o&&t!==void 0&&n.selection&&rd(n.selection)){var a=Ai(ge(n.selection),r).rowIndex;Io("insert before row",{rowIndex:a}),i(Dl(t,[String(a)],[{key:"",value:kr(t[0])?{}:""}]))}}function Dmt(e){var t=e.json,n=e.documentState,r=e.columns,o=e.readOnly,i=e.onPatch;if(!o&&t!==void 0&&n.selection&&rd(n.selection)){var a=Ai(ge(n.selection),r),s=a.rowIndex,c=a.columnIndex;Io("insert after row",{rowIndex:s});var u=s+1,l=[String(u)],f=[{key:"",value:kr(t[0])?{}:""}];i(u<t.length?Dl(t,l,f):Mw(t,[],f),function(d,h){var p=We(Au({rowIndex:u,columnIndex:c},r),!1);return{state:xt(xt({},h),{},{selection:p})}})}}function Lmt(e){var t=e.json,n=e.documentState,r=e.columns,o=e.readOnly,i=e.onPatch;if(!o&&t!==void 0&&n.selection&&rd(n.selection)){var a=Ai(ge(n.selection),r),s=a.rowIndex,c=a.columnIndex;Io("remove row",{rowIndex:s}),i(wg([[String(s)]]),function(u,l){var f=s<u.length?s:s>0?s-1:void 0,d=f!==void 0?We(Au({rowIndex:f,columnIndex:c},r),!1):null;return Io("remove row new selection",{rowIndex:s,newRowIndex:f,newSelection:d}),{state:xt(xt({},l),{},{selection:d})}})}}function _g(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(v,m,g){if(g==="object")return{};if(g==="array")return[];if(g==="structure"&&v!==void 0){var y=fe(v,m?Jz(m):[]);if(Array.isArray(y)&&!cn(y)){var b=ka(y);return xr(b)?dL(b,function(w){return Array.isArray(w)?[]:pr(w)?void 0:""}):""}}return""}(o,i,t);if(o!==void 0){var f=s.stringify(l),d=Zz(o,i,f,s);Io("onInsert",{insertType:t,operations:d,newValue:l,data:f});var h=Re(d.filter(function(v){return v.op==="add"||v.op==="replace"}));c(d,function(v,m){if(h){var g=Ya(v,h.path);if(xr(l))return{state:xt(xt({},Mi(v,m,g,ih)),{},{selection:n?Ws(g):m.selection})};if(l===""){var y=cn(g)?null:fe(v,on(g));return{state:Cw(v,xt(xt({},m),{},{selection:pr(y)?Vi(g,!0):We(g,!0)}),g)}}}}),Io("after patch"),h&&l===""&&Sg(function(){return vg(r,"",!0,$g)})}else{Io("onInsert",{insertType:t,newValue:l});var p=[];u(l,function(v,m){return{state:xt(xt({},vc(v,m,p)),{},{selection:xr(l)?Ws(p):We(p,!0)})}})}}}function RB(e){return qw.apply(this,arguments)}function qw(){return qw=Ae(qt().mark(function e(t){var n,r,o,i,a,s,c,u,l,f,d,h;return qt().wrap(function(p){for(;;)switch(p.prev=p.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){p.next=3;break}return p.abrupt("return");case 3:if(!Fr(a)){p.next=8;break}return d=!a.edit,f(xt(xt({},a),{},{edit:!0})),Sg(function(){return vg(o,n,d,$g)}),p.abrupt("return");case 8:if(n!=="{"){p.next=12;break}_g({insertType:"object",selectInside:r,refJsonEditor:o,json:i,selection:a,readOnly:s,parser:c,onPatch:u,onReplaceJson:l}),p.next=23;break;case 12:if(n!=="["){p.next=16;break}_g({insertType:"array",selectInside:r,refJsonEditor:o,json:i,selection:a,readOnly:s,parser:c,onPatch:u,onReplaceJson:l}),p.next=23;break;case 16:if(!dn(a)||i===void 0){p.next=20;break}xr(fe(i,a.path))||(h=!a.edit,f(xt(xt({},a),{},{edit:!0})),Sg(function(){return vg(o,n,h,$g)})),p.next=23;break;case 20:return Io("onInsertValueWithCharacter",{char:n}),p.next=23,zmt({char:n,refJsonEditor:o,json:i,selection:a,readOnly:s,parser:c,onPatch:u,onReplaceJson:l});case 23:case"end":return p.stop()}},e)})),qw.apply(this,arguments)}function zmt(e){return Hw.apply(this,arguments)}function Hw(){return Hw=Ae(qt().mark(function e(t){var n,r,o,i,a,s,c,u,l;return qt().wrap(function(f){for(;;)switch(f.prev=f.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){f.next=3;break}return f.abrupt("return");case 3:_g({insertType:"value",selectInside:!1,refJsonEditor:r,json:o,selection:i,readOnly:a,parser:s,onPatch:c,onReplaceJson:u}),l=!Gi(i),Sg(function(){return vg(r,n,l,$g)});case 6:case"end":return f.stop()}},e)})),Hw.apply(this,arguments)}function Sg(e){setTimeout(function(){return setTimeout(e)})}function $g(e){e==null||e.refresh()}function Bmt(e){Le(e,"svelte-1ch6ow4",".jse-json-preview.svelte-1ch6ow4{flex:1;color:var(--jse-panel-color-readonly);overflow:auto;white-space:pre-wrap;padding:2px;border-left:var(--jse-main-border);border-right:var(--jse-main-border);border-bottom:var(--jse-main-border)}")}function Fmt(e){var t,n;return{c:function(){t=tt("div"),n=Gt(e[0]),S(t,"class","jse-json-preview svelte-1ch6ow4")},m:function(r,o){ft(r,t,o),H(t,n)},p:function(r,o){1&Ce(o,1)[0]&&we(n,r[0])},i:Ht,o:Ht,d:function(r){r&<(t)}}}function qmt(e,t,n){var r,o,i=t.text,a=t.json,s=t.indentation,c=t.parser;return e.$$set=function(u){"text"in u&&n(1,i=u.text),"json"in u&&n(2,a=u.json),"indentation"in u&&n(3,s=u.indentation),"parser"in u&&n(4,c=u.parser)},e.$$.update=function(){6&e.$$.dirty&&n(5,r=a!==void 0?{json:a}:{text:i||""}),56&e.$$.dirty&&n(0,o=Hs(Sw(r,s,c),rw))},[o,i,a,s,c,r]}var IB=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,qmt,Fmt,eo,{text:1,json:2,indentation:3,parser:4},Bmt),o}return it(n)}(),Hmt=Gk.window;function Vmt(e){Le(e,"svelte-1n5yill",".jse-tree-mode.svelte-1n5yill.svelte-1n5yill{flex:1;display:flex;flex-direction:column;position:relative;background:var(--jse-background-color);min-width:0;min-height:0;font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);color:var(--jse-text-color);line-height:var(--jse-line-height)}.jse-tree-mode.svelte-1n5yill .jse-hidden-input-label .jse-hidden-input.svelte-1n5yill{position:fixed;top:-10px;left:-10px;width:1px;height:1px;padding:0;border:0;outline:none}.jse-tree-mode.svelte-1n5yill .jse-search-box-container.svelte-1n5yill{position:relative;height:0;top:var(--jse-padding);margin-right:calc(var(--jse-padding) + 20px);margin-left:var(--jse-padding);text-align:right;z-index:3}.jse-tree-mode.no-main-menu.svelte-1n5yill.svelte-1n5yill{border-top:var(--jse-main-border)}.jse-tree-mode.svelte-1n5yill .jse-contents.svelte-1n5yill{border-left:var(--jse-main-border);border-right:var(--jse-main-border);flex:1;overflow:auto;position:relative;padding:2px;display:flex;flex-direction:column}.jse-tree-mode.svelte-1n5yill .jse-contents.svelte-1n5yill:last-child{border-bottom:var(--jse-main-border)}.jse-tree-mode.svelte-1n5yill .jse-contents .jse-loading-space.svelte-1n5yill{flex:1}.jse-tree-mode.svelte-1n5yill .jse-contents .jse-loading.svelte-1n5yill{flex:2;text-align:center;color:var(--jse-panel-color-readonly);box-sizing:border-box;font-family:var(--jse-font-family);font-size:var(--jse-font-size)}")}function AA(e){var t,n,r;function o(a){e[78](a)}var i={json:e[11],selection:e[17].selection,readOnly:e[0],historyState:e[23],onExpandAll:e[41],onCollapseAll:e[42],onUndo:e[37],onRedo:e[38],onSort:e[39],onTransform:e[40],onContextMenu:e[46],onCopy:e[34],onRenderMenu:e[7]};return e[20]!==void 0&&(i.showSearch=e[20]),t=new Zvt({props:i}),Ze.push(function(){return da(t,"showSearch",o)}),{c:function(){Pt(t.$$.fragment)},m:function(a,s){Mt(t,a,s),r=!0},p:function(a,s){var c={};2048&s[0]&&(c.json=a[11]),131072&s[0]&&(c.selection=a[17].selection),1&s[0]&&(c.readOnly=a[0]),8388608&s[0]&&(c.historyState=a[23]),128&s[0]&&(c.onRenderMenu=a[7]),!n&&1048576&s[0]&&(n=!0,c.showSearch=a[20],fa(function(){return n=!1})),t.$set(c)},i:function(a){r||(z(t.$$.fragment,a),r=!0)},o:function(a){V(t.$$.fragment,a),r=!1},d:function(a){At(t,a)}}}function PA(e){var t,n;return t=new xmt({props:{json:e[11],selection:e[17].selection,onSelect:e[50],onError:e[6],pathParser:e[4]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};2048&o[0]&&(i.json=r[11]),131072&o[0]&&(i.selection=r[17].selection),64&o[0]&&(i.onError=r[6]),16&o[0]&&(i.pathParser=r[4]),t.$set(i)},i:function(r){n||(z(t.$$.fragment,r),n=!0)},o:function(r){V(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function Wmt(e){var t;return{c:function(){(t=tt("div")).innerHTML='<div class="jse-loading-space svelte-1n5yill"></div> <div class="jse-loading svelte-1n5yill">loading...</div>',S(t,"class","jse-contents svelte-1n5yill")},m:function(n,r){ft(n,t,r)},p:Ht,i:Ht,o:Ht,d:function(n){n&<(t)}}}function Umt(e){var t,n,r,o,i,a,s,c=[Jmt,Kmt],u=[];function l(f,d){return f[11]===void 0?0:1}return o=l(e),i=u[o]=c[o](e),{c:function(){t=tt("label"),n=tt("input"),r=kt(),i.c(),a=Sn(),S(n,"type","text"),n.readOnly=!0,S(n,"tabindex","-1"),S(n,"class","jse-hidden-input svelte-1n5yill"),S(t,"class","jse-hidden-input-label")},m:function(f,d){ft(f,t,d),H(t,n),e[79](n),ft(f,r,d),u[o].m(f,d),ft(f,a,d),s=!0},p:function(f,d){var h=o;(o=l(f))===h?u[o].p(f,d):(Bt(),V(u[h],1,1,function(){u[h]=null}),Ft(),(i=u[o])?i.p(f,d):(i=u[o]=c[o](f)).c(),z(i,1),i.m(a.parentNode,a))},i:function(f){s||(z(i),s=!0)},o:function(f){V(i),s=!1},d:function(f){f&&(lt(t),lt(r),lt(a)),e[79](null),u[o].d(f)}}}function Kmt(e){var t,n,r,o,i,a,s,c,u,l,f,d,h;i=new Emt({props:{show:e[20],resultCount:((t=e[18])===null||t===void 0||(t=t.items)===null||t===void 0?void 0:t.length)||0,activeIndex:((n=e[18])===null||n===void 0?void 0:n.activeIndex)||0,showReplace:e[21],searching:e[22],readOnly:e[0],onChange:e[27],onNext:e[28],onPrevious:e[29],onReplace:e[30],onReplaceAll:e[31],onClose:e[32]}}),c=new Kvt({props:{value:e[11],path:[],expandedMap:e[17].expandedMap,enforceStringMap:e[17].enforceStringMap,visibleSectionsMap:e[17].visibleSectionsMap,validationErrorsMap:e[25],searchResultItemsMap:(r=e[18])===null||r===void 0?void 0:r.itemsMap,selection:e[17].selection,context:e[13],onDragSelectionStart:Qn}});var p=e[19]&&TA(e),v=e[24]&&RA(e);return d=new bj({props:{validationErrors:e[12],selectError:e[33]}}),{c:function(){o=tt("div"),Pt(i.$$.fragment),a=kt(),s=tt("div"),Pt(c.$$.fragment),u=kt(),p&&p.c(),l=kt(),v&&v.c(),f=kt(),Pt(d.$$.fragment),S(o,"class","jse-search-box-container svelte-1n5yill"),S(s,"class","jse-contents svelte-1n5yill"),S(s,"data-jsoneditor-scrollable-contents",!0)},m:function(m,g){ft(m,o,g),Mt(i,o,null),ft(m,a,g),ft(m,s,g),Mt(c,s,null),e[82](s),ft(m,u,g),p&&p.m(m,g),ft(m,l,g),v&&v.m(m,g),ft(m,f,g),Mt(d,m,g),h=!0},p:function(m,g){var y,b,w,x={};1048576&g[0]&&(x.show=m[20]),262144&g[0]&&(x.resultCount=((y=m[18])===null||y===void 0||(y=y.items)===null||y===void 0?void 0:y.length)||0),262144&g[0]&&(x.activeIndex=((b=m[18])===null||b===void 0?void 0:b.activeIndex)||0),2097152&g[0]&&(x.showReplace=m[21]),4194304&g[0]&&(x.searching=m[22]),1&g[0]&&(x.readOnly=m[0]),i.$set(x);var k={};2048&g[0]&&(k.value=m[11]),131072&g[0]&&(k.expandedMap=m[17].expandedMap),131072&g[0]&&(k.enforceStringMap=m[17].enforceStringMap),131072&g[0]&&(k.visibleSectionsMap=m[17].visibleSectionsMap),33554432&g[0]&&(k.validationErrorsMap=m[25]),262144&g[0]&&(k.searchResultItemsMap=(w=m[18])===null||w===void 0?void 0:w.itemsMap),131072&g[0]&&(k.selection=m[17].selection),8192&g[0]&&(k.context=m[13]),c.$set(k),m[19]?p?(p.p(m,g),524288&g[0]&&z(p,1)):((p=TA(m)).c(),z(p,1),p.m(l.parentNode,l)):p&&(Bt(),V(p,1,1,function(){p=null}),Ft()),m[24]?v?(v.p(m,g),16777216&g[0]&&z(v,1)):((v=RA(m)).c(),z(v,1),v.m(f.parentNode,f)):v&&(Bt(),V(v,1,1,function(){v=null}),Ft());var E={};4096&g[0]&&(E.validationErrors=m[12]),d.$set(E)},i:function(m){h||(z(i.$$.fragment,m),z(c.$$.fragment,m),z(p),z(v),z(d.$$.fragment,m),h=!0)},o:function(m){V(i.$$.fragment,m),V(c.$$.fragment,m),V(p),V(v),V(d.$$.fragment,m),h=!1},d:function(m){m&&(lt(o),lt(a),lt(s),lt(u),lt(l),lt(f)),At(i),At(c),e[82](null),p&&p.d(m),v&&v.d(m),At(d,m)}}}function Jmt(e){var t,n,r,o,i=[Qmt,Gmt],a=[];function s(c,u){return c[16]===""||c[16]===void 0?0:1}return t=s(e),n=a[t]=i[t](e),{c:function(){n.c(),r=Sn()},m:function(c,u){a[t].m(c,u),ft(c,r,u),o=!0},p:function(c,u){var l=t;(t=s(c))===l?a[t].p(c,u):(Bt(),V(a[l],1,1,function(){a[l]=null}),Ft(),(n=a[t])?n.p(c,u):(n=a[t]=i[t](c)).c(),z(n,1),n.m(r.parentNode,r))},i:function(c){o||(z(n),o=!0)},o:function(c){V(n),o=!1},d:function(c){c&<(r),a[t].d(c)}}}function TA(e){var t,n;return t=new Aa({props:{type:"info",message:"You pasted a JSON ".concat(Array.isArray(e[19].contents)?"array":"object"," as text"),actions:[{icon:J0,text:"Paste as JSON instead",title:"Replace the value with the pasted JSON",onMouseDown:e[47]},{text:"Leave as is",title:"Keep the JSON embedded in the value",onClick:e[48]}],onClose:e[83]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};524288&o[0]&&(i.message="You pasted a JSON ".concat(Array.isArray(r[19].contents)?"array":"object"," as text")),t.$set(i)},i:function(r){n||(z(t.$$.fragment,r),n=!0)},o:function(r){V(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function RA(e){var t,n;return t=new Aa({props:{type:"success",message:"The loaded JSON document was invalid but is successfully repaired.",actions:e[0]?[]:[{icon:zh,text:"Ok",onClick:e[8]},{icon:Hc,text:"Repair manually instead",onClick:e[49]}],onClose:e[9]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};1&o[0]&&(i.actions=r[0]?[]:[{icon:zh,text:"Ok",onClick:r[8]},{icon:Hc,text:"Repair manually instead",onClick:r[49]}]),t.$set(i)},i:function(r){n||(z(t.$$.fragment,r),n=!0)},o:function(r){V(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function Gmt(e){var t,n,r,o;return t=new Aa({props:{type:"error",message:"The loaded JSON document is invalid and could not be repaired automatically.",actions:e[0]?[]:[{icon:Hc,text:"Repair manually",onClick:e[49]}]}}),r=new IB({props:{text:e[16],json:e[11],indentation:e[5],parser:e[3]}}),{c:function(){Pt(t.$$.fragment),n=kt(),Pt(r.$$.fragment)},m:function(i,a){Mt(t,i,a),ft(i,n,a),Mt(r,i,a),o=!0},p:function(i,a){var s={};1&a[0]&&(s.actions=i[0]?[]:[{icon:Hc,text:"Repair manually",onClick:i[49]}]),t.$set(s);var c={};65536&a[0]&&(c.text=i[16]),2048&a[0]&&(c.json=i[11]),32&a[0]&&(c.indentation=i[5]),8&a[0]&&(c.parser=i[3]),r.$set(c)},i:function(i){o||(z(t.$$.fragment,i),z(r.$$.fragment,i),o=!0)},o:function(i){V(t.$$.fragment,i),V(r.$$.fragment,i),o=!1},d:function(i){i&<(n),At(t,i),At(r,i)}}}function Qmt(e){var t,n;return t=new rmt({props:{readOnly:e[0],onCreateObject:e[80],onCreateArray:e[81]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};1&o[0]&&(i.readOnly=r[0]),t.$set(i)},i:function(r){n||(z(t.$$.fragment,r),n=!0)},o:function(r){V(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function Ymt(e){var t,n,r,o,i,a,s,c,u=e[1]&&AA(e),l=e[2]&&PA(e),f=[Umt,Wmt],d=[];return o=function(h,p){return h[26]?1:0}(e),i=d[o]=f[o](e),{c:function(){t=tt("div"),u&&u.c(),n=kt(),l&&l.c(),r=kt(),i.c(),S(t,"role","tree"),S(t,"tabindex","-1"),S(t,"class","jse-tree-mode svelte-1n5yill"),Dt(t,"no-main-menu",!e[1])},m:function(h,p){ft(h,t,p),u&&u.m(t,null),H(t,n),l&&l.m(t,null),H(t,r),d[o].m(t,null),e[84](t),a=!0,s||(c=[zt(Hmt,"mousedown",e[51]),zt(t,"keydown",e[43]),zt(t,"mousedown",e[44]),zt(t,"paste",e[35]),zt(t,"contextmenu",e[45])],s=!0)},p:function(h,p){h[1]?u?(u.p(h,p),2&p[0]&&z(u,1)):((u=AA(h)).c(),z(u,1),u.m(t,n)):u&&(Bt(),V(u,1,1,function(){u=null}),Ft()),h[2]?l?(l.p(h,p),4&p[0]&&z(l,1)):((l=PA(h)).c(),z(l,1),l.m(t,r)):l&&(Bt(),V(l,1,1,function(){l=null}),Ft()),i.p(h,p),(!a||2&p[0])&&Dt(t,"no-main-menu",!h[1])},i:function(h){a||(z(u),z(l),z(i),a=!0)},o:function(h){V(u),V(l),V(i),a=!1},d:function(h){h&<(t),u&&u.d(),l&&l.d(),d[o].d(),e[84](null),s=!1,Fn(c)}}}function Xmt(e,t,n){var r,o=po("jsoneditor:TreeMode"),i=typeof window>"u";o("isSSR:",i);var a,s,c,u,l,f=ho("simple-modal").open,d=Zu(),h=Zu(),p=ho("absolute-popup"),v=p.openAbsolutePopup,m=p.closeAbsolutePopup,g=!1,y=yB(),b=t.readOnly,w=t.externalContent,x=t.externalSelection,k=t.mainMenuBar,E=t.navigationBar,_=t.escapeControlCharacters,T=t.escapeUnicodeCharacters,$=t.parser,j=t.parseMemoizeOne,R=t.validator,q=t.validationParser,O=t.pathParser,F=t.indentation,J=t.onError,I=t.onChange,D=t.onChangeMode,C=t.onSelect,M=t.onRenderValue,P=t.onRenderMenu,B=t.onClassName,A=t.onFocus,W=t.onBlur,N=t.onSortModal,dt=t.onTransformModal,et=t.onJSONEditorModal,yt=!1;yj({onMount:Wi,onDestroy:gi,getWindow:function(){return nd(c)},hasFocus:function(){return yt&&document.hasFocus()||mg(c)},onFocus:function(){g=!0,A&&A()},onBlur:function(){g=!1,W&&W()}});var bt=void 0;function jt(nt){o("updateSelection",nt);var St=typeof nt=="function"?nt(X.selection)||null:nt;an(St,X.selection)||(n(17,X=xt(xt({},X),{},{selection:St})),C(St))}var gt,Y,K,rt=!1,X=yg(),_t=!1,L=!1,U=!1,G="";function pt(nt){return mt.apply(this,arguments)}function mt(){return mt=Ae(qt().mark(function nt(St){return qt().wrap(function(Lt){for(;;)switch(Lt.prev=Lt.next){case 0:return o("search text updated",St),n(77,G=St),Lt.next=4,br();case 4:return Lt.next=6,te();case 6:case"end":return Lt.stop()}},nt)})),mt.apply(this,arguments)}function Ot(){return(Ot=Ae(qt().mark(function nt(){return qt().wrap(function(St){for(;;)switch(St.prev=St.next){case 0:return n(18,gt=gt?Vft(gt):void 0),St.next=3,te();case 3:case"end":return St.stop()}},nt)}))).apply(this,arguments)}function Ct(){return(Ct=Ae(qt().mark(function nt(){return qt().wrap(function(St){for(;;)switch(St.prev=St.next){case 0:return n(18,gt=gt?Wft(gt):void 0),St.next=3,te();case 3:case"end":return St.stop()}},nt)}))).apply(this,arguments)}function Vt(){return(Vt=Ae(qt().mark(function nt(St,Lt){var Ut,Wt,Zt,Se,Ee;return qt().wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:if(Wt=(Ut=gt)===null||Ut===void 0?void 0:Ut.activeItem,o("handleReplace",{replacementText:Lt,activeItem:Wt}),Wt&&u!==void 0){Oe.next=4;break}return Oe.abrupt("return");case 4:return Zt=Uft(u,X,Lt,Wt,$),Se=Zt.operations,Ee=Zt.newSelection,de(Se,function(rr,Tr){return{state:xt(xt({},Tr),{},{selection:Ee})}}),Oe.next=8,br();case 8:return Oe.next=10,te();case 10:case"end":return Oe.stop()}},nt)}))).apply(this,arguments)}function Qt(){return Qt=Ae(qt().mark(function nt(St,Lt){var Ut,Wt,Zt;return qt().wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return o("handleReplaceAll",{text:St,replacementText:Lt}),Ut=Kft(u,X,St,Lt,$),Wt=Ut.operations,Zt=Ut.newSelection,de(Wt,function(Ee,Oe){return{state:xt(xt({},Oe),{},{selection:Zt})}}),Se.next=5,br();case 5:return Se.next=7,te();case 7:case"end":return Se.stop()}},nt)})),Qt.apply(this,arguments)}function te(){return Kt.apply(this,arguments)}function Kt(){return(Kt=Ae(qt().mark(function nt(){var St,Lt,Ut;return qt().wrap(function(Wt){for(;;)switch(Wt.prev=Wt.next){case 0:if(Lt=(St=gt)===null||St===void 0?void 0:St.activeItem,o("focusActiveSearchResult",gt),!Lt||u===void 0){Wt.next=9;break}return Ut=Lt.path,n(17,X=xt(xt({},Cw(u,X,Ut)),{},{selection:null})),Wt.next=7,br();case 7:return Wt.next=9,ae(Ut);case 9:case"end":return Wt.stop()}},nt)}))).apply(this,arguments)}var ue=bB({onChange:function(nt){n(23,Me=nt)}}),Me=ue.getState(),en,le,xn=yz(function(nt,St){if(nt==="")return o("clearing search result"),void(gt!==void 0&&n(18,gt=void 0));n(22,U=!0),setTimeout(function(){o("searching...",nt);var Lt=nB(nt,St,JN);n(18,gt=function(Ut,Wt,Zt){var Se=Zt!=null&&Zt.activeItem?d6(Zt.activeItem):void 0,Ee=Wt.findIndex(function(jr){return an(Se,d6(jr))}),Oe=Ee!==-1?Ee:(Zt==null?void 0:Zt.activeIndex)!==void 0&&(Zt==null?void 0:Zt.activeIndex)<Wt.length?Zt==null?void 0:Zt.activeIndex:Wt.length>0?0:-1,rr=Wt.map(function(jr,vo){return xt(xt({},jr),{},{active:vo===Oe})}),Tr=rr[Oe];return{items:rr,itemsMap:jp(rr,function(jr){return oe(jr.path)}),activeItem:Tr,activeIndex:Oe}}(0,Lt,gt)),n(22,U=!1)})},300),Ie=!1,mn=[],Ye=Ap(wB);function Ke(nt,St,Lt,Ut){zl(function(){var Wt;try{Wt=Ye(nt,St,Lt,Ut)}catch(Zt){Wt=[{path:[],message:"Failed to validate: "+Zt.message,severity:Fs.warning}]}an(Wt,mn)||(o("validationErrors changed:",Wt),n(12,mn=Wt))},function(Wt){return o("validationErrors updated in ".concat(Wt," ms"))})}function qn(){return o("validate"),bt?{parseError:bt,isRepairable:!1}:(Ke(u,R,$,q),cn(mn)?null:{validationErrors:mn})}function In(){return u}function Xn(){return X}function $n(nt){nt.json!==void 0&&function(St){if(St!==void 0){var Lt=!an(u,St);if(o("update external json",{isChanged:Lt,currentlyText:u===void 0}),!!Lt){var Ut={json:u,text:l},Wt=X,Zt=u,Se=l,Ee=Ie;n(11,u=St),En(u),n(16,l=void 0),n(24,Ie=!1),bt=void 0,Nn(u),sr({previousJson:Zt,previousState:Wt,previousText:Se,previousTextIsRepaired:Ee}),Ve(Ut,null)}}}(nt.json),nt.text!==void 0&&function(St){if(!(St===void 0||w.json!==void 0)){var Lt=St!==l;if(o("update external text",{isChanged:Lt}),!!Lt){var Ut={json:u,text:l},Wt=u,Zt=X,Se=l,Ee=Ie;try{n(11,u=j(St)),En(u),n(16,l=St),n(24,Ie=!1),bt=void 0}catch(Oe){try{n(11,u=j(Xa(St))),En(u),n(16,l=St),n(24,Ie=!0),bt=void 0,Nn(u)}catch{n(11,u=void 0),n(16,l=w.text),n(24,Ie=!1),bt=l!==void 0&&l!==""?_f(l,Oe.message||String(Oe)):void 0}}Nn(u),sr({previousJson:Wt,previousState:Zt,previousText:Se,previousTextIsRepaired:Ee}),Ve(Ut,null)}}}(nt.text)}function En(nt){rt||(rt=!0,n(17,X=Mi(nt,X,[],function(St){return Az({json:St},GN)?Ja:ih}(nt))))}function Nn(nt){X.selection&&(Bi(nt,zu(X.selection))&&Bi(nt,ge(X.selection))||(o("clearing selection: path does not exist anymore",X.selection),n(17,X=xt(xt({},X),{},{selection:wl(nt,X)}))))}function sr(nt){var St=nt.previousJson,Lt=nt.previousState,Ut=nt.previousText,Wt=nt.previousTextIsRepaired;St===void 0&&Ut===void 0||(u!==void 0?St!==void 0?ue.add({undo:{patch:[{op:"replace",path:"",value:St}],state:Oo(Lt),json:void 0,text:Ut,textIsRepaired:Wt},redo:{patch:[{op:"replace",path:"",value:u}],state:Oo(X),json:void 0,text:l,textIsRepaired:Ie}}):ue.add({undo:{patch:void 0,json:void 0,text:Ut,state:Oo(Lt),textIsRepaired:Wt},redo:{patch:void 0,json:u,state:Oo(X),text:l,textIsRepaired:Ie}}):St!==void 0&&ue.add({undo:{patch:void 0,json:St,state:Oo(Lt),text:Ut,textIsRepaired:Wt},redo:{patch:void 0,json:void 0,text:l,textIsRepaired:Ie,state:Oo(X)}}))}function Pr(nt,St){if(o("patch",nt,St),u===void 0)throw new Error("Cannot apply patch: no JSON");var Lt={json:u,text:l},Ut=u,Wt=X,Zt=l,Se=Ie,Ee=eB(u,nt),Oe=Vz(u,X,nt),rr=Cf(u,nt),Tr=function(Lo,zr){return zr||!(arguments.length>2&&arguments[2]!==void 0)||arguments[2]?xt(xt({},Lo),{},{selection:zr}):Lo}(Oe.documentState,rr,!1);o("patch updatedSelection",rr);var jr=typeof St=="function"?St(Oe.json,Tr):void 0;n(11,u=jr&&jr.json!==void 0?jr.json:Oe.json);var vo=jr&&jr.state!==void 0?jr.state:Tr;n(17,X=vo),n(16,l=void 0),n(24,Ie=!1),n(19,K=void 0),bt=void 0,Nn(u),ue.add({undo:{patch:Ee,json:void 0,text:Zt,state:Oo(Wt),textIsRepaired:Se},redo:{patch:nt,json:void 0,state:Oo(vo),text:l,textIsRepaired:Ie}});var Eo={json:u,previousJson:Ut,undo:Ee,redo:nt};return Ve(Lt,Eo),Eo}function Et(){!b&&X.selection&&jt(Vi(ge(X.selection),!0))}function ie(){if(!b&&X.selection){var nt=ge(X.selection),St=fe(u,nt);xr(St)?function(Lt,Ut){o("openJSONEditorModal",{path:Lt,value:Ut}),yt=!0,et({content:{json:Ut},path:Lt,onPatch:le.onPatch,onClose:function(){yt=!1,tr()}})}(nt,St):jt(We(nt,!0))}}function Be(){if(!b&&dn(X.selection)){var nt=ge(X.selection),St=oe(nt),Lt=fe(u,nt),Ut=!Vs(Lt,X.enforceStringMap,St,$),Wt=Ut?String(Lt):Uf(String(Lt),$);o("handleToggleEnforceString",{enforceString:Ut,value:Lt,updatedValue:Wt}),de([{op:"replace",path:St,value:Wt}],function(Zt,Se){return{state:Hz(Se,St,Ut)}})}}function nn(){return $t.apply(this,arguments)}function $t(){return $t=Ae(qt().mark(function nt(){var St,Lt=arguments;return qt().wrap(function(Ut){for(;;)switch(Ut.prev=Ut.next){case 0:return St=!(Lt.length>0&&Lt[0]!==void 0)||Lt[0],Ut.next=3,MB({json:u,documentState:X,indentation:St?F:void 0,readOnly:b,parser:$,onPatch:de});case 3:case"end":return Ut.stop()}},nt)})),$t.apply(this,arguments)}function Xt(){return Q.apply(this,arguments)}function Q(){return Q=Ae(qt().mark(function nt(){var St,Lt=arguments;return qt().wrap(function(Ut){for(;;)switch(Ut.prev=Ut.next){case 0:if(St=!(Lt.length>0&&Lt[0]!==void 0)||Lt[0],u!==void 0){Ut.next=3;break}return Ut.abrupt("return");case 3:return Ut.next=5,AB({json:u,documentState:X,indentation:St?F:void 0,parser:$});case 5:case"end":return Ut.stop()}},nt)})),Q.apply(this,arguments)}function at(){f(xB,{},xt(xt({},Yu),{},{styleWindow:{width:"450px"}}),{onClose:function(){return tr()}})}function vt(nt,St){f(jB,{text:nt,onParse:V0,onRepair:Oz,onApply:St},xt(xt({},Yu),{},{styleWindow:{width:"600px",height:"500px"},styleContent:{padding:0,height:"100%"}}),{onClose:function(){return tr()}})}function ut(){TB({json:u,text:l,documentState:X,keepSelection:!1,readOnly:b,onChange:I,onPatch:de})}function It(){!b&&u!==void 0&&X.selection&&rd(X.selection)&&!cn(ge(X.selection))&&(o("duplicate",{selection:X.selection}),de(Xz(u,Ec(u,X.selection))))}function ee(){if(!b&&X.selection&&(zn(X.selection)||dn(X.selection))&&!cn(ge(X.selection))){o("extract",{selection:X.selection});var nt=function(St,Lt){if(dn(Lt))return[{op:"move",from:oe(Lt.path),path:""}];if(!zn(Lt))throw new Error("Cannot create extract operations: parent must be an Object or Array");var Ut=fe(St,on(Lt.focusPath));if(Wn(Ut))return[{op:"replace",path:"",value:Ec(St,Lt).map(function(Zt){var Se=So(Re(Zt));return Ut[Se]})}];if(kr(Ut)){var Wt={};return Ec(St,Lt).forEach(function(Zt){var Se=String(Re(Zt));Wt[Se]=Ut[Se]}),[{op:"replace",path:"",value:Wt}]}throw new Error("Cannot extract: unsupported type of selection "+JSON.stringify(Lt))}(u,X.selection);de(nt,function(St,Lt){if(xr(St))return{state:vc(St,Lt,[])}})}}function pe(nt){u!==void 0&&_g({insertType:nt,selectInside:!0,refJsonEditor:c,json:u,selection:X.selection,readOnly:b,parser:$,onPatch:de,onReplaceJson:fn})}function Xe(nt){Fr(X.selection)&&jt(We(X.selection.path,!1)),X.selection||jt(wl(u,X)),pe(nt)}function Fe(nt){if(!b&&X.selection)if(ym(X.selection))try{var St=zu(X.selection),Lt=fe(u,St),Ut=function(Zt,Se,Ee){if(Se==="array"){if(Array.isArray(Zt))return Zt;if(pr(Zt))return LO(Zt);if(typeof Zt=="string")try{var Oe=Ee.parse(Zt);if(Array.isArray(Oe))return Oe;if(pr(Oe))return LO(Oe)}catch{return[Zt]}return[Zt]}if(Se==="object"){if(Array.isArray(Zt))return DO(Zt);if(pr(Zt))return Zt;if(typeof Zt=="string")try{var rr=Ee.parse(Zt);if(pr(rr))return rr;if(Array.isArray(rr))return DO(rr)}catch{return{value:Zt}}return{value:Zt}}if(Se==="value")return xr(Zt)?Ee.stringify(Zt):Zt;throw new Error("Cannot convert ".concat(h2(Zt,Ee)," to ").concat(Se))}(Lt,nt,$);if(Ut===Lt)return;var Wt=[{op:"replace",path:oe(St),value:Ut}];o("handleConvert",{selection:X.selection,path:St,type:nt,operations:Wt}),de(Wt,function(Zt,Se){return{state:X.selection?vc(Zt,Se,ge(X.selection)):X}})}catch(Zt){J(Zt)}else J(new Error("Cannot convert current selection to ".concat(nt)))}function kn(){if(X.selection){var nt=o6(u,X,!1),St=on(ge(X.selection));nt&&!cn(ge(nt))&&an(St,on(ge(nt)))?jt(Ds(ge(nt))):jt(Ws(St)),o("insert before",{selection:X.selection,selectionBefore:nt,parentPath:St}),br().then(Ra)}}function On(){if(X.selection){var nt=Oc(u,X.selection);o("insert after",nt),jt(Ds(nt)),br().then(Ra)}}function ke(nt){return gn.apply(this,arguments)}function gn(){return(gn=Ae(qt().mark(function nt(St){return qt().wrap(function(Lt){for(;;)switch(Lt.prev=Lt.next){case 0:return Lt.next=2,RB({char:St,selectInside:!0,refJsonEditor:c,json:u,selection:X.selection,readOnly:b,parser:$,onPatch:de,onReplaceJson:fn,onSelect:jt});case 2:case"end":return Lt.stop()}},nt)}))).apply(this,arguments)}function pn(){if(!b&&ue.getState().canUndo){var nt=ue.undo();if(nt){var St={json:u,text:l};n(11,u=nt.undo.patch?xa(u,nt.undo.patch):nt.undo.json),n(17,X=nt.undo.state),n(16,l=nt.undo.text),n(24,Ie=nt.undo.textIsRepaired),bt=void 0,o("undo",{item:nt,json:u,documentState:X}),Ve(St,{json:u,previousJson:St.json,redo:nt.undo.patch,undo:nt.redo.patch}),tr(),X.selection&&ae(ge(X.selection),!1)}}}function Zn(){if(!b&&ue.getState().canRedo){var nt=ue.redo();if(nt){var St={json:u,text:l};n(11,u=nt.redo.patch?xa(u,nt.redo.patch):nt.redo.json),n(17,X=nt.redo.state),n(16,l=nt.redo.text),n(24,Ie=nt.redo.textIsRepaired),bt=void 0,o("redo",{item:nt,json:u,documentState:X}),Ve(St,{json:u,previousJson:St.json,redo:nt.redo.patch,undo:nt.undo.patch}),tr(),X.selection&&ae(ge(X.selection),!1)}}}function yn(nt){var St;b||u===void 0||(yt=!0,N({id:d,json:u,rootPath:nt,onSort:(St=Ae(qt().mark(function Lt(Ut){var Wt;return qt().wrap(function(Zt){for(;;)switch(Zt.prev=Zt.next){case 0:Wt=Ut.operations,o("onSort",nt,Wt),de(Wt,function(Se,Ee){return{state:xt(xt({},vc(Se,Ee,nt)),{},{selection:We(nt,!1)})}});case 3:case"end":return Zt.stop()}},Lt)})),function(Lt){return St.apply(this,arguments)}),onClose:function(){yt=!1,tr()}}))}function ct(){X.selection&&yn(a6(u,X.selection))}function Nt(nt){if(u!==void 0){var St=nt.id,Lt=nt.onTransform,Ut=nt.onClose,Wt=nt.rootPath||[];yt=!0,dt({id:St||h,json:u,rootPath:Wt,onTransform:function(Zt){Lt?Lt({operations:Zt,json:u,transformedJson:xa(u,Zt)}):(o("onTransform",Wt,Zt),de(Zt,function(Se,Ee){return{state:xt(xt({},vc(Se,Ee,Wt)),{},{selection:We(Wt,!1)})}}))},onClose:function(){yt=!1,tr(),Ut&&Ut()}})}}function ne(){X.selection&&Nt({rootPath:a6(u,X.selection)})}function ae(nt){return Yt.apply(this,arguments)}function Yt(){return Yt=Ae(qt().mark(function nt(St){var Lt,Ut,Wt,Zt,Se,Ee=arguments;return qt().wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return Lt=!(Ee.length>1&&Ee[1]!==void 0)||Ee[1],n(17,X=Cw(u,X,St)),Oe.next=4,br();case 4:if(!(Ut=Te(St))){Oe.next=16;break}if(o("scrollTo",{path:St,elem:Ut,refContents:a}),Wt=a.getBoundingClientRect(),Zt=Ut.getBoundingClientRect(),Lt){Oe.next=12;break}if(!(Zt.bottom>Wt.top&&Zt.top<Wt.bottom)){Oe.next=12;break}return Oe.abrupt("return",Promise.resolve());case 12:return Se=-Wt.height/4,Oe.abrupt("return",new Promise(function(rr){y(Ut,{container:a,offset:Se,duration:300,callback:function(){return rr()}})}));case 16:return Oe.abrupt("return",Promise.resolve());case 17:case"end":return Oe.stop()}},nt)})),Yt.apply(this,arguments)}function Te(nt){return a?a.querySelector('div[data-path="'.concat($f(nt),'"]')):null}function He(nt){var St=Te(nt);if(St&&a){var Lt=a.getBoundingClientRect(),Ut=St.getBoundingClientRect(),Wt=xr(fe(u,nt))?20:Ut.height;Ut.top<Lt.top+20?y(St,{container:a,offset:-20,duration:0}):Ut.top+Wt>Lt.bottom-20&&y(St,{container:a,offset:-(Lt.height-Wt-20),duration:0})}}function Ve(nt,St){(nt.json!==void 0||(nt==null?void 0:nt.text)!==void 0)&&(l!==void 0?I({text:l,json:void 0},nt,{contentErrors:qn(),patchResult:St}):u!==void 0&&I({text:void 0,json:u},nt,{contentErrors:qn(),patchResult:St}))}function de(nt,St){if(!b)return o("handlePatch",nt,St),Pr(nt,St)}function fn(nt,St){var Lt=X,Ut=u,Wt=l,Zt={json:u,text:l},Se=Ie,Ee=Mi(u,X,[],Ja),Oe=typeof St=="function"?St(nt,Ee):void 0;n(11,u=Oe&&Oe.json!==void 0?Oe.json:nt),n(17,X=Oe&&Oe.state!==void 0?Oe.state:Ee),n(16,l=void 0),n(24,Ie=!1),bt=void 0,Nn(u),sr({previousJson:Ut,previousState:Lt,previousText:Wt,previousTextIsRepaired:Se}),Ve(Zt,null)}function Kn(nt,St){o("handleChangeText");var Lt=X,Ut=u,Wt=l,Zt={json:u,text:l},Se=Ie;try{n(11,u=j(nt)),n(17,X=Mi(u,X,[],Ja)),n(16,l=void 0),n(24,Ie=!1),bt=void 0}catch(Oe){try{n(11,u=j(Xa(nt))),n(17,X=Mi(u,X,[],Ja)),n(16,l=nt),n(24,Ie=!0),bt=void 0}catch{n(11,u=void 0),n(17,X=yg({json:u,expand:Ja})),n(16,l=nt),n(24,Ie=!1),bt=l!==""?_f(l,Oe.message||String(Oe)):void 0}}if(typeof St=="function"){var Ee=St(u,X);n(11,u=Ee&&Ee.json?Ee.json:u),n(17,X=Ee&&Ee.state?Ee.state:X)}Nn(u),sr({previousJson:Ut,previousState:Lt,previousText:Wt,previousTextIsRepaired:Se}),Ve(Zt,null)}function Dn(nt,St){var Lt=arguments.length>2&&arguments[2]!==void 0&&arguments[2];o("expand",{path:nt,expanded:St,recursive:Lt}),n(17,X=St?Lt?Mi(u,X,nt,ih):function(Ut,Wt){return xt(xt({},Ut),{},{expandedMap:xt(xt({},Ut.expandedMap),{},Wo({},oe(Wt),!0))})}(X,nt):e6(X,nt)),X.selection&&!St&&function(Ut,Wt){return qc(ge(Ut),Wt)&&(ge(Ut).length>Wt.length||Wr(Ut))}(X.selection,nt)&&jt(null),setTimeout(function(){mg(c)||tr()})}function Lr(nt){o("openFind",{findAndReplace:nt}),n(20,_t=!1),n(21,L=!1),br().then(function(){n(20,_t=!0),n(21,L=nt)})}function ci(nt,St){o("handleExpandSection",nt,St);var Lt=oe(nt);n(17,X=function(Ut,Wt,Zt,Se){return xt(xt({},Wt),{},{visibleSectionsMap:xt(xt({},Wt.visibleSectionsMap),{},Wo({},Zt,qz(W0(Wt,Zt).concat(Se))))})}(0,X,Lt,St))}function Ta(nt){o("pasted json as text",nt),n(19,K=nt)}function ji(nt){var St=nt.anchor,Lt=nt.left,Ut=nt.top,Wt=nt.width,Zt=nt.height,Se=nt.offsetTop,Ee=nt.offsetLeft,Oe=nt.showTip;yt=!0;var rr=v(tvt,{json:u,documentState:X,parser:$,showTip:Oe,onEditKey:Et,onEditValue:ie,onToggleEnforceString:Be,onCut:nn,onCopy:Xt,onPaste:at,onRemove:ut,onDuplicate:It,onExtract:ee,onInsertBefore:kn,onInsert:Xe,onConvert:Fe,onInsertAfter:On,onSort:ct,onTransform:ne,onCloseContextMenu:function(){m(rr),tr()}},{left:Lt,top:Ut,offsetTop:Se,offsetLeft:Ee,width:Wt,height:Zt,anchor:St,closeOnOuterClick:!0,onClose:function(){yt=!1,tr()}})}function Ra(nt){if(!b&&!Gi(X.selection)){if(nt&&(nt.stopPropagation(),nt.preventDefault()),nt&&nt.type==="contextmenu"&&nt.target!==s)ji({left:nt.clientX,top:nt.clientY,width:Ps,height:As,showTip:!1});else{var St,Lt=(St=a)===null||St===void 0?void 0:St.querySelector(".jse-context-menu-pointer.jse-selected");if(Lt)ji({anchor:Lt,offsetTop:2,width:Ps,height:As,showTip:!1});else{var Ut,Wt=(Ut=a)===null||Ut===void 0?void 0:Ut.getBoundingClientRect();Wt&&ji({top:Wt.top+2,left:Wt.left+2,width:Ps,height:As,showTip:!1})}}return!1}}function _i(){return(_i=Ae(qt().mark(function nt(){var St,Lt,Ut;return qt().wrap(function(Wt){for(;;)switch(Wt.prev=Wt.next){case 0:if(o("apply pasted json",K),K){Wt.next=3;break}return Wt.abrupt("return");case 3:return Lt=(St=K).path,Ut=St.contents,jt(We(Lt,!1)),Wt.next=7,br();case 7:de([{op:"replace",path:oe(Lt),value:Ut}],function(Zt,Se){return{state:vc(Zt,Se,Lt)}});case 9:case"end":return Wt.stop()}},nt)}))).apply(this,arguments)}function tr(){o("focus"),s&&(s.focus(),s.select())}function Lp(nt){return function(St,Lt,Ut){var Wt=on(Ut),Zt=[Re(Ut)],Se=fe(St,Wt),Ee=Se?my(Se,Lt,Zt):void 0;return Ee?We(Wt.concat(Ee),!1):Ds(Ut)}(u,X,nt)}function cd(nt){r&&r.onDrag(nt)}function zp(){r&&r.onDragEnd()}return e.$$set=function(nt){"readOnly"in nt&&n(0,b=nt.readOnly),"externalContent"in nt&&n(52,w=nt.externalContent),"externalSelection"in nt&&n(53,x=nt.externalSelection),"mainMenuBar"in nt&&n(1,k=nt.mainMenuBar),"navigationBar"in nt&&n(2,E=nt.navigationBar),"escapeControlCharacters"in nt&&n(54,_=nt.escapeControlCharacters),"escapeUnicodeCharacters"in nt&&n(55,T=nt.escapeUnicodeCharacters),"parser"in nt&&n(3,$=nt.parser),"parseMemoizeOne"in nt&&n(56,j=nt.parseMemoizeOne),"validator"in nt&&n(57,R=nt.validator),"validationParser"in nt&&n(58,q=nt.validationParser),"pathParser"in nt&&n(4,O=nt.pathParser),"indentation"in nt&&n(5,F=nt.indentation),"onError"in nt&&n(6,J=nt.onError),"onChange"in nt&&n(59,I=nt.onChange),"onChangeMode"in nt&&n(60,D=nt.onChangeMode),"onSelect"in nt&&n(61,C=nt.onSelect),"onRenderValue"in nt&&n(62,M=nt.onRenderValue),"onRenderMenu"in nt&&n(7,P=nt.onRenderMenu),"onClassName"in nt&&n(63,B=nt.onClassName),"onFocus"in nt&&n(64,A=nt.onFocus),"onBlur"in nt&&n(65,W=nt.onBlur),"onSortModal"in nt&&n(66,N=nt.onSortModal),"onTransformModal"in nt&&n(67,dt=nt.onTransformModal),"onJSONEditorModal"in nt&&n(68,et=nt.onJSONEditorModal)},e.$$.update=function(){25165824&e.$$.dirty[1]&&n(76,Y=cj({escapeControlCharacters:_,escapeUnicodeCharacters:T})),2097152&e.$$.dirty[1]&&$n(w),4194304&e.$$.dirty[1]&&function(nt){if(!an(X.selection,nt)){if(o("applyExternalSelection",nt),Ew(nt))return;jt(nt)}}(x),2048&e.$$.dirty[0]|32768&e.$$.dirty[2]&&xn(G,u),2056&e.$$.dirty[0]|201326592&e.$$.dirty[1]&&Ke(u,R,$,q),4096&e.$$.dirty[0]&&n(25,en=function(nt){var St={};return nt.forEach(function(Lt){St[oe(Lt.path)]=Lt}),nt.forEach(function(Lt){for(var Ut=Lt.path;Ut.length>0;){var Wt=oe(Ut=on(Ut));Wt in St||(St[Wt]={isChildError:!0,path:Ut,message:"Contains invalid data",severity:Fs.warning})}}),St}(mn)),1024&e.$$.dirty[0]&&(r=a?function(nt){var St,Lt;function Ut(Ee){return Ee<20?bZ:Ee<50?wZ:xZ}function Wt(){if(nt){var Ee=(St||0)*(fE/1e3);nt.scrollTop+=Ee}}function Zt(Ee){Lt&&Ee===St||(Se(),wy("startAutoScroll",Ee),St=Ee,Lt=setInterval(Wt,fE))}function Se(){Lt&&(wy("stopAutoScroll"),clearInterval(Lt),Lt=void 0,St=void 0)}return wy("createAutoScrollHandler",nt),{onDrag:function(Ee){if(nt){var Oe=Ee.clientY,rr=nt.getBoundingClientRect(),Tr=rr.top,jr=rr.bottom;Oe<Tr?Zt(-Ut(Tr-Oe)):Oe>jr?Zt(Ut(Oe-jr)):Se()}},onDragEnd:function(){Se()}}}(a):void 0),9&e.$$.dirty[0]|16387&e.$$.dirty[2]&&n(13,le={readOnly:b,parser:$,normalization:Y,getJson:In,getDocumentState:Xn,findElement:Te,findNextInside:Lp,focus:tr,onPatch:de,onInsert:pe,onExpand:Dn,onSelect:jt,onFind:Lr,onExpandSection:ci,onPasteJson:Ta,onRenderValue:M,onContextMenu:ji,onClassName:B||function(){},onDrag:cd,onDragEnd:zp}),8192&e.$$.dirty[0]&&o("context changed",le)},[b,k,E,$,O,F,J,P,function(){return Ie&&u!==void 0&&fn(u),{json:u,text:l}},tr,a,u,mn,le,s,c,l,X,gt,K,_t,L,U,Me,Ie,en,i,pt,function(){return Ot.apply(this,arguments)},function(){return Ct.apply(this,arguments)},function(nt,St){return Vt.apply(this,arguments)},function(nt,St){return Qt.apply(this,arguments)},function(){n(20,_t=!1),n(21,L=!1),pt(""),tr()},function(nt){o("select validation error",nt),jt(We(nt.path,!1)),ae(nt.path)},Xt,function(nt){nt.preventDefault(),PB({clipboardText:nt.clipboardData.getData("text/plain"),json:u,selection:X.selection,readOnly:b,parser:$,onPatch:de,onChangeText:Kn,openRepairModal:vt})},ke,pn,Zn,function(){yn([])},function(){Nt({rootPath:[]})},function(){Dn([],!0,!0)},function(){Dn([],!1,!0)},function(nt){var St=ou(nt),Lt=nt.shiftKey;if(o("keydown",{combo:St,key:nt.key}),St==="Ctrl+X"&&(nt.preventDefault(),nn(!0)),St==="Ctrl+Shift+X"&&(nt.preventDefault(),nn(!1)),St==="Ctrl+C"&&(nt.preventDefault(),Xt(!0)),St==="Ctrl+Shift+C"&&(nt.preventDefault(),Xt(!1)),St==="Ctrl+D"&&(nt.preventDefault(),It()),St!=="Delete"&&St!=="Backspace"||(nt.preventDefault(),ut()),St==="Insert"&&(nt.preventDefault(),pe("structure")),St==="Ctrl+A"&&(nt.preventDefault(),jt(We([],!1))),St==="Ctrl+Q"&&Ra(nt),St==="ArrowUp"||St==="Shift+ArrowUp"){nt.preventDefault();var Ut=X.selection?o6(u,X,Lt)||X.selection:wl(u,X);jt(Ut),He(ge(Ut))}if(St==="ArrowDown"||St==="Shift+ArrowDown"){nt.preventDefault();var Wt=X.selection?function(vo,Eo){var Lo=arguments.length>2&&arguments[2]!==void 0&&arguments[2],zr=Eo.selection;if(!zr)return null;var _r=Lo?ge(zr):Oc(vo,zr),ys=xr(fe(vo,_r))?e6(Eo,_r):Eo,Kr=my(vo,Eo,_r),no=my(vo,ys,_r);if(Lo)return Wr(zr)?Kr!==null?Po(Kr,Kr):null:hi(zr)?no!==null?Po(no,no):null:no!==null?Po(zu(zr),no):null;if(hi(zr))return no!==null?We(no,!1):null;if(Wr(zr)||dn(zr))return Kr!==null?We(Kr,!1):null;if(Fr(zr)){if(Kr===null||Kr.length===0)return null;var wt=fe(vo,on(Kr));return Array.isArray(wt)?We(Kr,!1):Vi(Kr,!1)}return zn(zr)?no!==null?We(no,!1):Kr!==null?We(Kr,!1):null:null}(u,X,Lt)||X.selection:wl(u,X);jt(Wt),He(ge(Wt))}if(St==="ArrowLeft"||St==="Shift+ArrowLeft"){nt.preventDefault();var Zt=X.selection?function(vo,Eo){var Lo=arguments.length>2&&arguments[2]!==void 0&&arguments[2],zr=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],_r=Eo.selection;if(!_r)return null;var ys=i6(vo,Eo,zr),Kr=ys.caret,no=ys.previous;if(Lo)return zn(_r)?null:Po(_r.path,_r.path);if(Kr&&no)return Ow(no);var wt=fe(vo,on(ge(_r)));return dn(_r)&&Array.isArray(wt)?Po(_r.path,_r.path):zn(_r)&&!Array.isArray(wt)?Vi(_r.focusPath,!1):null}(u,X,Lt,!b)||X.selection:wl(u,X);jt(Zt),He(ge(Zt))}if(St==="ArrowRight"||St==="Shift+ArrowRight"){nt.preventDefault();var Se=X.selection&&u!==void 0?function(vo,Eo){var Lo=arguments.length>2&&arguments[2]!==void 0&&arguments[2],zr=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],_r=Eo.selection;if(!_r)return null;var ys=i6(vo,Eo,zr),Kr=ys.caret,no=ys.next;return Lo?zn(_r)?null:Po(_r.path,_r.path):Kr&&no?Ow(no):zn(_r)?We(_r.focusPath,!1):null}(u,X,Lt,!b)||X.selection:wl(u,X);jt(Se),He(ge(Se))}if(St==="Enter"&&X.selection){if(!b&&U0(X.selection)){var Ee=X.selection.focusPath,Oe=fe(u,on(Ee));Array.isArray(Oe)&&jt(We(Ee,!1))}!b&&Fr(X.selection)&&(nt.preventDefault(),jt(xt(xt({},X.selection),{},{edit:!0}))),dn(X.selection)&&(nt.preventDefault(),xr(fe(u,X.selection.path))?Dn(X.selection.path,!0):b||jt(xt(xt({},X.selection),{},{edit:!0})))}if(St.replace(/^Shift\+/,"").length===1&&X.selection)return nt.preventDefault(),void ke(nt.key);if(St==="Enter"&&(hi(X.selection)||Wr(X.selection)))return nt.preventDefault(),void ke("");if(St==="Ctrl+Enter"&&dn(X.selection)){var rr=fe(u,X.selection.path);C0(rr)&&window.open(String(rr),"_blank")}if(St==="Escape"&&X.selection&&(nt.preventDefault(),jt(null)),St==="Ctrl+F"&&(nt.preventDefault(),Lr(!1)),St==="Ctrl+H"&&(nt.preventDefault(),Lr(!0)),St==="Ctrl+Z"){nt.preventDefault();var Tr=document.activeElement;Tr&&Tr.blur&&Tr.select?(Tr.blur(),setTimeout(function(){pn(),setTimeout(function(){return Tr==null?void 0:Tr.select()})})):pn()}if(St==="Ctrl+Shift+Z"){nt.preventDefault();var jr=document.activeElement;jr&&jr.blur&&jr.select?(jr.blur(),setTimeout(function(){Zn(),setTimeout(function(){return jr==null?void 0:jr.select()})})):Zn()}},function(nt){o("handleMouseDown",nt),setTimeout(function(){setTimeout(function(){g||uj(nt.target,"BUTTON")||(tr(),X.selection||u!==void 0||l!==""&&l!==void 0||(o("createDefaultSelection"),n(17,X=xt(xt({},X),{},{selection:We([],!1)}))))})})},Ra,function(nt){b||ji({anchor:Lz(nt.target,"BUTTON"),offsetTop:0,width:Ps,height:As,showTip:!0})},function(){return _i.apply(this,arguments)},function(){o("clear pasted json"),n(19,K=void 0)},function(){D(wo.text)},function(nt){jt(nt),tr(),ae(ge(nt))},function(nt){var St=!$p(nt.target,function(Lt){return Lt===c});St&&Gi(X.selection)&&(o("click outside the editor, stop edit mode"),jt(function(Lt){return Fr(Lt)||dn(Lt)?xt(xt({},Lt),{},{edit:!1}):Lt}),g&&s&&(s.focus(),s.blur()),br().then(function(){setTimeout(function(){s&&s.blur()})}))},w,x,_,T,j,R,q,I,D,C,M,B,A,W,N,dt,et,function(){var nt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ih;o("expand");var St=xt(xt({},X),{},{expandedMap:{},visibleSectionsMap:{}});n(17,X=Mi(u,St,[],nt))},qn,In,Pr,Nt,ae,Te,Y,G,function(nt){n(20,_t=nt)},function(nt){Ze[nt?"unshift":"push"](function(){n(14,s=nt)})},function(){tr(),ke("{")},function(){tr(),ke("[")},function(nt){Ze[nt?"unshift":"push"](function(){n(10,a=nt)})},function(){setTimeout(tr)},function(nt){Ze[nt?"unshift":"push"](function(){n(15,c=nt)})}]}var $j=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,Xmt,Ymt,qe,{readOnly:0,externalContent:52,externalSelection:53,mainMenuBar:1,navigationBar:2,escapeControlCharacters:54,escapeUnicodeCharacters:55,parser:3,parseMemoizeOne:56,validator:57,validationParser:58,pathParser:4,indentation:5,onError:6,onChange:59,onChangeMode:60,onSelect:61,onRenderValue:62,onRenderMenu:7,onClassName:63,onFocus:64,onBlur:65,onSortModal:66,onTransformModal:67,onJSONEditorModal:68,expand:69,validate:70,getJson:71,patch:72,acceptAutoRepair:8,openTransformModal:73,scrollTo:74,findElement:75,focus:9},Vmt,[-1,-1,-1,-1,-1]),o}return it(n,[{key:"expand",get:function(){return this.$$.ctx[69]}},{key:"validate",get:function(){return this.$$.ctx[70]}},{key:"getJson",get:function(){return this.$$.ctx[71]}},{key:"patch",get:function(){return this.$$.ctx[72]}},{key:"acceptAutoRepair",get:function(){return this.$$.ctx[8]}},{key:"openTransformModal",get:function(){return this.$$.ctx[73]}},{key:"scrollTo",get:function(){return this.$$.ctx[74]}},{key:"findElement",get:function(){return this.$$.ctx[75]}},{key:"focus",get:function(){return this.$$.ctx[9]}}]),n}();function Zmt(e){Le(e,"svelte-107mggt",".jse-modal.svelte-107mggt.svelte-107mggt{--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px;flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;background:var(--jse-modal-background);color:var(--jse-text-color)}.jse-modal.svelte-107mggt .jse-modal-contents.svelte-107mggt{padding:20px;overflow:auto;min-width:0;min-height:0}.jse-modal.svelte-107mggt .jse-modal-contents .jse-actions.svelte-107mggt{display:flex;flex-direction:row;justify-content:flex-end;padding-top:var(--jse-padding)}.jse-modal.svelte-107mggt .jse-modal-contents .jse-actions button.jse-primary.svelte-107mggt{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px}.jse-modal.svelte-107mggt .jse-modal-contents .jse-actions button.jse-primary.svelte-107mggt:hover{background:var(--jse-button-primary-background-highlight)}.jse-modal.svelte-107mggt .jse-modal-contents .jse-actions button.jse-primary.svelte-107mggt:disabled{background:var(--jse-button-primary-background-disabled)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-modal-overlay-background)}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0}.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;height:auto;min-height:500px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-content{flex:1;display:flex;max-height:calc(100vh - 6rem);padding:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents.svelte-107mggt{flex:1;display:flex;flex-direction:column;color:inherit;min-height:0;padding:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents.svelte-107mggt{flex:1;display:flex;gap:calc(2 * var(--jse-padding));min-height:0;box-sizing:border-box;padding:0 calc(2 * var(--jse-padding)) var(--jse-padding)}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents.svelte-107mggt{flex:1;display:flex;flex-direction:column}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-107mggt p{margin:var(--jse-padding) 0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-107mggt p:first-child{margin-top:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-107mggt p:last-child{margin-bottom:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-107mggt code{background:var(--jse-modal-code-background);font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono)}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents textarea.jse-query.svelte-107mggt{flex:1;outline:none;resize:vertical}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents.svelte-107mggt{flex:1;display:flex;flex-direction:column;gap:calc(2 * var(--jse-padding))}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents .jse-original-data.svelte-107mggt{flex:1;display:flex;flex-direction:column;min-height:0;box-sizing:border-box}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents .jse-original-data.jse-hide.svelte-107mggt{flex:none}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents .jse-preview-data.svelte-107mggt{flex:1;display:flex;flex-direction:column;min-height:0;box-sizing:border-box}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents.jse-hide-original-data.svelte-107mggt{flex-direction:column;gap:0;margin-bottom:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-actions.svelte-107mggt{padding:var(--jse-padding) calc(2 * var(--jse-padding)) calc(2 * var(--jse-padding))}@media screen and (max-width: 1200px){.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents.svelte-107mggt{flex-direction:column;overflow:auto}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents textarea.jse-query.svelte-107mggt{min-height:150px;flex:none}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents.svelte-107mggt .jse-tree-mode{height:300px;flex:none}}.jse-modal.jse-transform.svelte-107mggt .jse-label.svelte-107mggt{font-weight:bold;display:block;box-sizing:border-box}.jse-modal.jse-transform.svelte-107mggt .jse-label .jse-label-inner.svelte-107mggt{margin-top:calc(2 * var(--jse-padding));margin-bottom:calc(0.5 * var(--jse-padding));box-sizing:border-box}.jse-modal.jse-transform.svelte-107mggt .jse-label .jse-label-inner button.svelte-107mggt{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;font-weight:bold;padding:0}.jse-modal.jse-transform.svelte-107mggt .jse-tree-mode{flex:1;background:var(--jse-input-background-readonly);box-shadow:none;box-sizing:border-box;--jse-main-border:var(--jse-input-border)}.jse-modal.jse-transform.svelte-107mggt input.svelte-107mggt,.jse-modal.jse-transform.svelte-107mggt textarea.svelte-107mggt{border:var(--jse-input-border);outline:none;box-sizing:border-box;padding:calc(0.5 * var(--jse-padding));font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);color:inherit;background:var(--jse-input-background)}.jse-modal.jse-transform.svelte-107mggt input.svelte-107mggt:focus,.jse-modal.jse-transform.svelte-107mggt textarea.svelte-107mggt:focus{border:var(--jse-input-border-focus)}.jse-modal.jse-transform.svelte-107mggt input.svelte-107mggt:read-only,.jse-modal.jse-transform.svelte-107mggt textarea.svelte-107mggt:read-only{background:var(--jse-input-background-readonly)}.jse-modal.jse-transform.svelte-107mggt .jse-preview.jse-error.svelte-107mggt{flex:1;background:var(--jse-input-background-readonly);border:var(--jse-input-border);color:var(--jse-error-color);padding:calc(0.5 * var(--jse-padding))}.jse-modal.jse-transform.svelte-107mggt a{color:var(--jse-a-color)}.jse-modal.jse-transform.svelte-107mggt a:hover{color:var(--jse-a-color-highlight)}")}function IA(e){var t,n,r,o,i,a=[egt,tgt],s=[];function c(u,l){return 16384&l[0]&&(t=null),t==null&&(t=!!Array.isArray(u[14])),t?0:1}return n=c(e,[-1,-1]),r=s[n]=a[n](e),{c:function(){r.c(),o=Sn()},m:function(u,l){s[n].m(u,l),ft(u,o,l),i=!0},p:function(u,l){var f=n;(n=c(u,l))===f?s[n].p(u,l):(Bt(),V(s[f],1,1,function(){s[f]=null}),Ft(),(r=s[n])?r.p(u,l):(r=s[n]=a[n](u)).c(),z(r,1),r.m(o.parentNode,o))},i:function(u){i||(z(r),i=!0)},o:function(u){V(r),i=!1},d:function(u){u&<(o),s[n].d(u)}}}function tgt(e){var t;return{c:function(){t=Gt("(Only available for arrays, not for objects)")},m:function(n,r){ft(n,t,r)},p:Ht,i:Ht,o:Ht,d:function(n){n&<(t)}}}function egt(e){var t,n;return t=new _ht({props:{queryOptions:e[12],json:e[14],onChange:e[22]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};4096&o[0]&&(i.queryOptions=r[12]),16384&o[0]&&(i.json=r[14]),t.$set(i)},i:function(r){n||(z(t.$$.fragment,r),n=!0)},o:function(r){V(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function NA(e){var t,n;return t=new $j({props:{externalContent:e[19],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:Qn,onError:console.error,onChange:Qn,onChangeMode:Qn,onSelect:Qn,onFocus:Qn,onBlur:Qn,onSortModal:Qn,onTransformModal:Qn,onJSONEditorModal:Qn,onClassName:e[11],validator:null,validationParser:e[7],pathParser:e[8]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};524288&o[0]&&(i.externalContent=r[19]),4&o[0]&&(i.indentation=r[2]),8&o[0]&&(i.escapeControlCharacters=r[3]),16&o[0]&&(i.escapeUnicodeCharacters=r[4]),32&o[0]&&(i.parser=r[5]),64&o[0]&&(i.parseMemoizeOne=r[6]),1024&o[0]&&(i.onRenderValue=r[10]),2048&o[0]&&(i.onClassName=r[11]),128&o[0]&&(i.validationParser=r[7]),256&o[0]&&(i.pathParser=r[8]),t.$set(i)},i:function(r){n||(z(t.$$.fragment,r),n=!0)},o:function(r){V(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function ngt(e){var t,n;return{c:function(){t=tt("div"),n=Gt(e[17]),S(t,"class","jse-preview jse-error svelte-107mggt")},m:function(r,o){ft(r,t,o),H(t,n)},p:function(r,o){131072&o[0]&&we(n,r[17])},i:Ht,o:Ht,d:function(r){r&<(t)}}}function rgt(e){var t,n;return t=new $j({props:{externalContent:e[18],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:Qn,onError:console.error,onChange:Qn,onChangeMode:Qn,onSelect:Qn,onFocus:Qn,onBlur:Qn,onSortModal:Qn,onTransformModal:Qn,onJSONEditorModal:Qn,onClassName:e[11],validator:null,validationParser:e[7],pathParser:e[8]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};262144&o[0]&&(i.externalContent=r[18]),4&o[0]&&(i.indentation=r[2]),8&o[0]&&(i.escapeControlCharacters=r[3]),16&o[0]&&(i.escapeUnicodeCharacters=r[4]),32&o[0]&&(i.parser=r[5]),64&o[0]&&(i.parseMemoizeOne=r[6]),1024&o[0]&&(i.onRenderValue=r[10]),2048&o[0]&&(i.onClassName=r[11]),128&o[0]&&(i.validationParser=r[7]),256&o[0]&&(i.pathParser=r[8]),t.$set(i)},i:function(r){n||(z(t.$$.fragment,r),n=!0)},o:function(r){V(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function ogt(e){var t,n,r,o,i,a,s,c,u,l,f,d,h,p,v,m,g,y,b,w,x,k,E,_,T,$,j,R,q,O,F,J,I,D,C,M,P,B,A,W,N,dt,et,yt,bt,jt,gt,Y=e[21](e[0]).description+"";t=new Rht({props:{queryLanguages:e[9],queryLanguageId:e[0],onChangeQueryLanguage:e[27]}}),y=new hn({props:{data:e[15]?Ri:bc}});var K=e[15]&&IA(e);F=new hn({props:{data:e[16]?Ri:bc}});var rt=e[16]&&NA(e),X=[rgt,ngt],_t=[];function L(U,G){return U[17]?1:0}return B=L(e),A=_t[B]=X[B](e),{c:function(){Pt(t.$$.fragment),n=kt(),r=tt("div"),o=tt("div"),i=tt("div"),(a=tt("div")).innerHTML='<div class="jse-label-inner svelte-107mggt">Language</div>',s=kt(),c=tt("div"),u=kt(),(l=tt("div")).innerHTML='<div class="jse-label-inner svelte-107mggt">Path</div>',f=kt(),d=tt("input"),p=kt(),v=tt("div"),m=tt("div"),g=tt("button"),Pt(y.$$.fragment),b=Gt(`
|
|
104
|
+
Wizard`),w=kt(),K&&K.c(),x=kt(),(k=tt("div")).innerHTML='<div class="jse-label-inner svelte-107mggt">Query</div>',E=kt(),_=tt("textarea"),T=kt(),$=tt("div"),j=tt("div"),R=tt("div"),q=tt("div"),O=tt("button"),Pt(F.$$.fragment),J=Gt(`
|
|
105
|
+
Original`),I=kt(),rt&&rt.c(),D=kt(),C=tt("div"),(M=tt("div")).innerHTML='<div class="jse-label-inner svelte-107mggt">Preview</div>',P=kt(),A.c(),W=kt(),N=tt("div"),dt=tt("button"),et=Gt("Transform"),S(a,"class","jse-label svelte-107mggt"),S(c,"class","jse-description svelte-107mggt"),S(l,"class","jse-label svelte-107mggt"),S(d,"class","jse-path svelte-107mggt"),S(d,"type","text"),d.readOnly=!0,S(d,"title","Selected path"),d.value=h=cn(e[1])?"(whole document)":ai(e[1]),S(g,"type","button"),S(g,"class","svelte-107mggt"),S(m,"class","jse-label-inner svelte-107mggt"),S(v,"class","jse-label svelte-107mggt"),S(k,"class","jse-label svelte-107mggt"),S(_,"class","jse-query svelte-107mggt"),S(_,"spellcheck","false"),_.value=e[13],S(i,"class","jse-query-contents svelte-107mggt"),S(O,"type","button"),S(O,"class","svelte-107mggt"),S(q,"class","jse-label-inner svelte-107mggt"),S(R,"class","jse-label svelte-107mggt"),S(j,"class","jse-original-data svelte-107mggt"),Dt(j,"jse-hide",!e[16]),S(M,"class","jse-label svelte-107mggt"),S(C,"class","jse-preview-data svelte-107mggt"),S($,"class","jse-data-contents svelte-107mggt"),Dt($,"jse-hide-original-data",!e[16]),S(o,"class","jse-main-contents svelte-107mggt"),S(dt,"type","button"),S(dt,"class","jse-primary svelte-107mggt"),dt.disabled=yt=!!e[17],S(N,"class","jse-actions svelte-107mggt"),S(r,"class","jse-modal-contents svelte-107mggt")},m:function(U,G){Mt(t,U,G),ft(U,n,G),ft(U,r,G),H(r,o),H(o,i),H(i,a),H(i,s),H(i,c),c.innerHTML=Y,H(i,u),H(i,l),H(i,f),H(i,d),H(i,p),H(i,v),H(v,m),H(m,g),Mt(y,g,null),H(g,b),H(i,w),K&&K.m(i,null),H(i,x),H(i,k),H(i,E),H(i,_),H(o,T),H(o,$),H($,j),H(j,R),H(R,q),H(q,O),Mt(F,O,null),H(O,J),H(j,I),rt&&rt.m(j,null),H($,D),H($,C),H(C,M),H(C,P),_t[B].m(C,null),H(r,W),H(r,N),H(N,dt),H(dt,et),bt=!0,jt||(gt=[zt(g,"click",e[25]),zt(_,"input",e[23]),zt(O,"click",e[26]),zt(dt,"click",e[24]),fo(agt.call(null,dt))],jt=!0)},p:function(U,G){var pt={};512&G[0]&&(pt.queryLanguages=U[9]),1&G[0]&&(pt.queryLanguageId=U[0]),t.$set(pt),(!bt||1&G[0])&&Y!==(Y=U[21](U[0]).description+"")&&(c.innerHTML=Y),(!bt||2&G[0]&&h!==(h=cn(U[1])?"(whole document)":ai(U[1]))&&d.value!==h)&&(d.value=h);var mt={};32768&G[0]&&(mt.data=U[15]?Ri:bc),y.$set(mt),U[15]?K?(K.p(U,G),32768&G[0]&&z(K,1)):((K=IA(U)).c(),z(K,1),K.m(i,x)):K&&(Bt(),V(K,1,1,function(){K=null}),Ft()),(!bt||8192&G[0])&&(_.value=U[13]);var Ot={};65536&G[0]&&(Ot.data=U[16]?Ri:bc),F.$set(Ot),U[16]?rt?(rt.p(U,G),65536&G[0]&&z(rt,1)):((rt=NA(U)).c(),z(rt,1),rt.m(j,null)):rt&&(Bt(),V(rt,1,1,function(){rt=null}),Ft()),(!bt||65536&G[0])&&Dt(j,"jse-hide",!U[16]);var Ct=B;(B=L(U))===Ct?_t[B].p(U,G):(Bt(),V(_t[Ct],1,1,function(){_t[Ct]=null}),Ft(),(A=_t[B])?A.p(U,G):(A=_t[B]=X[B](U)).c(),z(A,1),A.m(C,null)),(!bt||65536&G[0])&&Dt($,"jse-hide-original-data",!U[16]),(!bt||131072&G[0]&&yt!==(yt=!!U[17]))&&(dt.disabled=yt)},i:function(U){bt||(z(t.$$.fragment,U),z(y.$$.fragment,U),z(K),z(F.$$.fragment,U),z(rt),z(A),bt=!0)},o:function(U){V(t.$$.fragment,U),V(y.$$.fragment,U),V(K),V(F.$$.fragment,U),V(rt),V(A),bt=!1},d:function(U){U&&(lt(n),lt(r)),At(t,U),At(y),K&&K.d(),At(F),rt&&rt.d(),_t[B].d(),jt=!1,Fn(gt)}}}function igt(e){var t,n,r,o,i;return n=new Bz({props:{$$slots:{default:[ogt]},$$scope:{ctx:e}}}),{c:function(){t=tt("div"),Pt(n.$$.fragment),S(t,"class","jse-modal jse-transform svelte-107mggt")},m:function(a,s){ft(a,t,s),Mt(n,t,null),r=!0,o||(i=fo(n1.call(null,t,e[20])),o=!0)},p:function(a,s){var c={};1048575&s[0]|256&s[1]&&(c.$$scope={dirty:s,ctx:a}),n.$set(c)},i:function(a){r||(z(n.$$.fragment,a),r=!0)},o:function(a){V(n.$$.fragment,a),r=!1},d:function(a){a&<(t),At(n),o=!1,i()}}}function agt(e){e.focus()}function sgt(e,t,n){var r,o,i=po("jsoneditor:TransformModal"),a=t.id,s=a===void 0?"transform-modal-"+eh():a,c=t.json,u=t.rootPath,l=u===void 0?[]:u,f=t.indentation,d=t.escapeControlCharacters,h=t.escapeUnicodeCharacters,p=t.parser,v=t.parseMemoizeOne,m=t.validationParser,g=t.pathParser,y=t.queryLanguages,b=t.queryLanguageId,w=t.onChangeQueryLanguage,x=t.onRenderValue,k=t.onClassName,E=t.onTransform,_=ho("simple-modal").close,T="".concat(s,":").concat(oe(l)),$=ta[T]||{},j=ta.showWizard!==!1,R=ta.showOriginal!==!1,q=$.queryOptions||{},O=b===$.queryLanguageId&&$.query?$.query:D(b).createQuery(c,$.queryOptions||{}),F=$.isManual||!1,J=void 0,I={text:""};function D(M){return y.find(function(P){return P.id===M})||y[0]}var C=wp(function(M,P){try{i("previewTransform",{query:P});var B=D(b).executeQuery(M,P,p);n(18,I={json:B}),n(17,J=void 0)}catch(A){n(18,I={text:""}),n(17,J=String(A))}},300);return e.$$set=function(M){"id"in M&&n(28,s=M.id),"json"in M&&n(29,c=M.json),"rootPath"in M&&n(1,l=M.rootPath),"indentation"in M&&n(2,f=M.indentation),"escapeControlCharacters"in M&&n(3,d=M.escapeControlCharacters),"escapeUnicodeCharacters"in M&&n(4,h=M.escapeUnicodeCharacters),"parser"in M&&n(5,p=M.parser),"parseMemoizeOne"in M&&n(6,v=M.parseMemoizeOne),"validationParser"in M&&n(7,m=M.validationParser),"pathParser"in M&&n(8,g=M.pathParser),"queryLanguages"in M&&n(9,y=M.queryLanguages),"queryLanguageId"in M&&n(0,b=M.queryLanguageId),"onChangeQueryLanguage"in M&&n(30,w=M.onChangeQueryLanguage),"onRenderValue"in M&&n(10,x=M.onRenderValue),"onClassName"in M&&n(11,k=M.onClassName),"onTransform"in M&&n(31,E=M.onTransform)},e.$$.update=function(){536870914&e.$$.dirty[0]&&n(14,r=fe(c,l)),16384&e.$$.dirty[0]&&n(19,o={json:r}),24576&e.$$.dirty[0]&&C(r,O),12289&e.$$.dirty[0]|6&e.$$.dirty[1]&&(n(32,ta[T]={queryOptions:q,query:O,queryLanguageId:b,isManual:F},ta),i("store state in memory",T,ta[T]))},[b,l,f,d,h,p,v,m,g,y,x,k,q,O,r,j,R,J,I,o,_,D,function(M){n(12,q=M),n(13,O=D(b).createQuery(c,M)),n(33,F=!1),i("updateQueryByWizard",{queryOptions:q,query:O,isManual:F})},function(M){n(13,O=M.target.value),n(33,F=!0),i("handleChangeQuery",{query:O,isManual:F})},function(){try{i("handleTransform",{query:O});var M=D(b).executeQuery(r,O,p);E([{op:"replace",path:oe(l),value:M}]),_()}catch(P){console.error(P),n(18,I={text:""}),n(17,J=String(P))}},function(){n(15,j=!j),n(32,ta.showWizard=j,ta)},function(){n(16,R=!R),n(32,ta.showOriginal=R,ta)},function(M){i("handleChangeQueryLanguage",M),n(0,b=M),w(M);var P=D(b);n(13,O=P.createQuery(c,q)),n(33,F=!1)},s,c,w,E,ta,F]}var cgt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,sgt,igt,qe,{id:28,json:29,rootPath:1,indentation:2,escapeControlCharacters:3,escapeUnicodeCharacters:4,parser:5,parseMemoizeOne:6,validationParser:7,pathParser:8,queryLanguages:9,queryLanguageId:0,onChangeQueryLanguage:30,onRenderValue:10,onClassName:11,onTransform:31},Zmt,[-1,-1]),o}return it(n)}(),sc={};function ugt(e){Le(e,"svelte-1y818v2",".jse-modal.svelte-1y818v2.svelte-1y818v2{--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px;flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;background:var(--jse-modal-background);color:var(--jse-text-color)}.jse-modal.svelte-1y818v2 .jse-modal-contents.svelte-1y818v2{padding:20px;overflow:auto;min-width:0;min-height:0}.jse-modal.svelte-1y818v2 .jse-modal-contents .jse-actions.svelte-1y818v2{display:flex;flex-direction:row;justify-content:flex-end;padding-top:var(--jse-padding)}.jse-modal.svelte-1y818v2 .jse-modal-contents .jse-actions button.jse-primary.svelte-1y818v2{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px}.jse-modal.svelte-1y818v2 .jse-modal-contents .jse-actions button.jse-primary.svelte-1y818v2:hover{background:var(--jse-button-primary-background-highlight)}.jse-modal.svelte-1y818v2 .jse-modal-contents .jse-actions button.jse-primary.svelte-1y818v2:disabled{background:var(--jse-button-primary-background-disabled)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-modal-overlay-background)}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0}.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;height:auto;min-height:500px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-content{flex:1;display:flex;max-height:calc(100vh - 6rem);padding:0}.jse-modal.jse-sort.svelte-1y818v2 table.svelte-1y818v2{width:100%;border-collapse:collapse;border-spacing:0}.jse-modal.jse-sort.svelte-1y818v2 table th.svelte-1y818v2,.jse-modal.jse-sort.svelte-1y818v2 table td.svelte-1y818v2{text-align:left;vertical-align:middle;font-weight:normal;padding-bottom:var(--jse-padding)}.jse-modal.jse-sort.svelte-1y818v2 table th input.jse-path.svelte-1y818v2,.jse-modal.jse-sort.svelte-1y818v2 table td input.jse-path.svelte-1y818v2{width:100%;box-sizing:border-box;padding:6px 16px;border:var(--jse-input-border);border-radius:var(--jse-input-radius);font-family:inherit;font-size:inherit;background:inherit;color:inherit;outline:none}.jse-modal.jse-sort.svelte-1y818v2 table th input.jse-path.svelte-1y818v2:read-only,.jse-modal.jse-sort.svelte-1y818v2 table td input.jse-path.svelte-1y818v2:read-only{background:var(--jse-input-background-readonly)}.jse-modal.jse-sort.svelte-1y818v2 table th.svelte-1y818v2 .svelte-select input,.jse-modal.jse-sort.svelte-1y818v2 table td.svelte-1y818v2 .svelte-select input{box-sizing:border-box}.jse-modal.jse-sort.svelte-1y818v2 .jse-space.svelte-1y818v2{height:200px}.jse-modal.jse-sort.svelte-1y818v2 .jse-space .jse-error.svelte-1y818v2{color:var(--jse-error-color)}")}function DA(e){var t,n,r,o,i,a,s;function c(l){e[14](l)}var u={showChevron:!0,items:e[3]};return e[1]!==void 0&&(u.value=e[1]),i=new _u({props:u}),Ze.push(function(){return da(i,"value",c)}),{c:function(){t=tt("tr"),(n=tt("th")).textContent="Property",r=kt(),o=tt("td"),Pt(i.$$.fragment),S(n,"class","svelte-1y818v2"),S(o,"class","svelte-1y818v2")},m:function(l,f){ft(l,t,f),H(t,n),H(t,r),H(t,o),Mt(i,o,null),s=!0},p:function(l,f){var d={};8&f&&(d.items=l[3]),!a&&2&f&&(a=!0,d.value=l[1],fa(function(){return a=!1})),i.$set(d)},i:function(l){s||(z(i.$$.fragment,l),s=!0)},o:function(l){V(i.$$.fragment,l),s=!1},d:function(l){l&<(t),At(i)}}}function LA(e){var t,n;return{c:function(){t=tt("div"),n=Gt(e[5]),S(t,"class","jse-error svelte-1y818v2")},m:function(r,o){ft(r,t,o),H(t,n)},p:function(r,o){32&o&&we(n,r[5])},d:function(r){r&<(t)}}}function lgt(e){var t,n,r,o,i,a,s,c,u,l,f,d,h,p,v,m,g,y,b,w,x,k,E,_,T,$,j,R,q,O,F,J;n=new wj({props:{title:e[4]?"Sort array items":"Sort object keys"}});var I=e[4]&&(e[3].length>1||e[1]===void 0)&&DA(e);function D(P){e[15](P)}var C={showChevron:!0,clearable:!1,items:e[7]};e[2]!==void 0&&(C.value=e[2]),x=new _u({props:C}),Ze.push(function(){return da(x,"value",D)});var M=e[5]&&LA(e);return{c:function(){t=tt("div"),Pt(n.$$.fragment),r=kt(),o=tt("div"),i=tt("table"),(a=tt("colgroup")).innerHTML='<col width="25%"/> <col width="75%"/>',s=kt(),c=tt("tbody"),u=tt("tr"),(l=tt("th")).textContent="Path",f=kt(),d=tt("td"),h=tt("input"),v=kt(),I&&I.c(),m=kt(),g=tt("tr"),(y=tt("th")).textContent="Direction",b=kt(),w=tt("td"),Pt(x.$$.fragment),E=kt(),_=tt("div"),M&&M.c(),T=kt(),$=tt("div"),j=tt("button"),R=Gt("Sort"),S(l,"class","svelte-1y818v2"),S(h,"class","jse-path svelte-1y818v2"),S(h,"type","text"),h.readOnly=!0,S(h,"title","Selected path"),h.value=p=cn(e[0])?"(whole document)":ai(e[0]),S(d,"class","svelte-1y818v2"),S(y,"class","svelte-1y818v2"),S(w,"class","svelte-1y818v2"),S(i,"class","svelte-1y818v2"),S(_,"class","jse-space svelte-1y818v2"),S(j,"type","button"),S(j,"class","jse-primary svelte-1y818v2"),j.disabled=q=!!e[4]&&!e[1],S($,"class","jse-actions svelte-1y818v2"),S(o,"class","jse-modal-contents svelte-1y818v2"),S(t,"class","jse-modal jse-sort svelte-1y818v2")},m:function(P,B){ft(P,t,B),Mt(n,t,null),H(t,r),H(t,o),H(o,i),H(i,a),H(i,s),H(i,c),H(c,u),H(u,l),H(u,f),H(u,d),H(d,h),H(c,v),I&&I.m(c,null),H(c,m),H(c,g),H(g,y),H(g,b),H(g,w),Mt(x,w,null),H(o,E),H(o,_),M&&M.m(_,null),H(o,T),H(o,$),H($,j),H(j,R),O=!0,F||(J=[zt(j,"click",e[8]),fo(fgt.call(null,j)),fo(n1.call(null,t,e[6]))],F=!0)},p:function(P,B){var A=Ce(B,1)[0],W={};16&A&&(W.title=P[4]?"Sort array items":"Sort object keys"),n.$set(W),(!O||1&A&&p!==(p=cn(P[0])?"(whole document)":ai(P[0]))&&h.value!==p)&&(h.value=p),P[4]&&(P[3].length>1||P[1]===void 0)?I?(I.p(P,A),26&A&&z(I,1)):((I=DA(P)).c(),z(I,1),I.m(c,m)):I&&(Bt(),V(I,1,1,function(){I=null}),Ft());var N={};!k&&4&A&&(k=!0,N.value=P[2],fa(function(){return k=!1})),x.$set(N),P[5]?M?M.p(P,A):((M=LA(P)).c(),M.m(_,null)):M&&(M.d(1),M=null),(!O||18&A&&q!==(q=!!P[4]&&!P[1]))&&(j.disabled=q)},i:function(P){O||(z(n.$$.fragment,P),z(I),z(x.$$.fragment,P),O=!0)},o:function(P){V(n.$$.fragment,P),V(I),V(x.$$.fragment,P),O=!1},d:function(P){P&<(t),At(n),I&&I.d(),At(x),M&&M.d(),F=!1,Fn(J)}}}function fgt(e){e.focus()}function dgt(e,t,n){var r,o,i,a=po("jsoneditor:SortModal"),s=t.id,c=t.json,u=t.rootPath,l=t.onSort,f=ho("simple-modal").close,d="".concat(s,":").concat(oe(u)),h=fe(c,u),p={value:1,label:"ascending"},v=[p,{value:-1,label:"descending"}],m=sc[d]&&sc[d].selectedProperty||void 0,g=sc[d]&&sc[d].selectedDirection||p,y=void 0;return e.$$set=function(b){"id"in b&&n(9,s=b.id),"json"in b&&n(10,c=b.json),"rootPath"in b&&n(0,u=b.rootPath),"onSort"in b&&n(11,l=b.onSort)},e.$$.update=function(){16&e.$$.dirty&&n(13,o=r&&h!==void 0?_w(h):void 0),8192&e.$$.dirty&&n(3,i=o?o.map(Ld):void 0),10&e.$$.dirty&&m===void 0&&i&&i.length===1&&n(1,m=i[0]),4102&e.$$.dirty&&(n(12,sc[d]={selectedProperty:m,selectedDirection:g},sc),a("store state in memory",d,sc[d]))},n(4,r=Array.isArray(h)),[u,m,g,i,r,y,f,v,function(){try{var b,w;n(5,y=void 0);var x=(b=m)===null||b===void 0?void 0:b.value,k=(w=g)===null||w===void 0?void 0:w.value,E=$B(c,u,x,k);l({operations:E,rootPath:u,itemPath:x,direction:k}),f()}catch(_){n(5,y=_.toString())}},s,c,l,sc,o,function(b){n(1,m=b),n(3,i),n(13,o),n(4,r)},function(b){n(2,g=b)}]}var hgt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,dgt,lgt,qe,{id:9,json:10,rootPath:0,onSort:11},ugt),o}return it(n)}();function ca(){}function mv(e){var t=arguments.length>1&&arguments[1]!==void 0?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 pgt(e){var t,n;return t=new e1({props:{items:e[0]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};1&Ce(o,1)[0]&&(i.items=r[0]),t.$set(i)},i:function(r){n||(z(t.$$.fragment,r),n=!0)},o:function(r){V(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function vgt(e,t,n){var r,o,i=t.readOnly,a=i!==void 0&&i,s=t.onFormat,c=t.onCompact,u=t.onSort,l=t.onTransform,f=t.onToggleSearch,d=t.onUndo,h=t.onRedo,p=t.canUndo,v=t.canRedo,m=t.canFormat,g=t.canCompact,y=t.canSort,b=t.canTransform,w=t.onRenderMenu,x={type:"button",icon:mj,title:"Search (Ctrl+F)",className:"jse-search",onClick:f};return e.$$set=function(k){"readOnly"in k&&n(1,a=k.readOnly),"onFormat"in k&&n(2,s=k.onFormat),"onCompact"in k&&n(3,c=k.onCompact),"onSort"in k&&n(4,u=k.onSort),"onTransform"in k&&n(5,l=k.onTransform),"onToggleSearch"in k&&n(6,f=k.onToggleSearch),"onUndo"in k&&n(7,d=k.onUndo),"onRedo"in k&&n(8,h=k.onRedo),"canUndo"in k&&n(9,p=k.canUndo),"canRedo"in k&&n(10,v=k.canRedo),"canFormat"in k&&n(11,m=k.canFormat),"canCompact"in k&&n(12,g=k.canCompact),"canSort"in k&&n(13,y=k.canSort),"canTransform"in k&&n(14,b=k.canTransform),"onRenderMenu"in k&&n(15,w=k.onRenderMenu)},e.$$.update=function(){32702&e.$$.dirty&&n(16,o=a?[x,{type:"space"}]:[{type:"button",icon:Lw,title:"Format JSON: add proper indentation and new lines (Ctrl+I)",className:"jse-format",onClick:s,disabled:a||!m},{type:"button",icon:Qvt,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:G0,title:"Sort",className:"jse-sort",onClick:u,disabled:a||!y},{type:"button",icon:K0,title:"Transform contents (filter, sort, project)",className:"jse-transform",onClick:l,disabled:a||!b},x,{type:"separator"},{type:"button",icon:vj,title:"Undo (Ctrl+Z)",className:"jse-undo",onClick:d,disabled:!p},{type:"button",icon:pj,title:"Redo (Ctrl+Shift+Z)",className:"jse-redo",onClick:h,disabled:!v},{type:"space"}]),98304&e.$$.dirty&&n(0,r=w(o)||o)},[r,a,s,c,u,l,f,d,h,p,v,m,g,y,b,w,o]}var mgt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,vgt,pgt,qe,{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}),o}return it(n)}(),Yn=function(){function e(){ot(this,e)}return it(e,[{key:"lineAt",value:function(t){if(t<0||t>this.length)throw new RangeError("Invalid position ".concat(t," in document of length ").concat(this.length));return this.lineInner(t,!1,1,0)}},{key:"line",value:function(t){if(t<1||t>this.lines)throw new RangeError("Invalid line number ".concat(t," in ").concat(this.lines,"-line document"));return this.lineInner(t,!0,1,0)}},{key:"replace",value:function(t,n,r){var o=[];return this.decompose(0,t,o,2),r.length&&r.decompose(0,r.length,o,3),this.decompose(n,this.length,o,1),bm.from(o,this.length-(n-t)+r.length)}},{key:"append",value:function(t){return this.replace(this.length,this.length,t)}},{key:"slice",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.length,r=[];return this.decompose(t,n,r,0),bm.from(r,n-t)}},{key:"eq",value:function(t){if(t==this)return!0;if(t.length!=this.length||t.lines!=this.lines)return!1;for(var n=this.scanIdentical(t,1),r=this.length-this.scanIdentical(t,-1),o=new ch(this),i=new ch(t),a=n,s=n;;){if(o.next(a),i.next(a),a=0,o.lineBreak!=i.lineBreak||o.done!=i.done||o.value!=i.value)return!1;if(s+=o.value.length,o.done||s>=r)return!0}}},{key:"iter",value:function(){return new ch(this,arguments.length>0&&arguments[0]!==void 0?arguments[0]:1)}},{key:"iterRange",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.length;return new NB(this,t,n)}},{key:"iterLines",value:function(t,n){var r;if(t==null)r=this.iter();else{n==null&&(n=this.lines+1);var o=this.line(t).from;r=this.iterRange(o,Math.max(o,n==this.lines+1?this.length:n<=1?0:this.line(n-1).to))}return new DB(r)}},{key:"toString",value:function(){return this.sliceString(0)}},{key:"toJSON",value:function(){var t=[];return this.flatten(t),t}}],[{key:"of",value:function(t){if(t.length==0)throw new RangeError("A document must have at least one line");return t.length!=1||t[0]?t.length<=32?new ma(t):bm.from(ma.split(t,[])):e.empty}}]),e}(),ma=function(e){Tt(n,Yn);var t=Rt(n);function n(r){var o,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(a){var s,c=-1,u=ht(a);try{for(u.s();!(s=u.n()).done;)c+=s.value.length+1}catch(l){u.e(l)}finally{u.f()}return c}(r);return ot(this,n),(o=t.call(this)).text=r,o.length=i,o}return it(n,[{key:"lines",get:function(){return this.text.length}},{key:"children",get:function(){return null}},{key:"lineInner",value:function(r,o,i,a){for(var s=0;;s++){var c=this.text[s],u=a+c.length;if((o?i:u)>=r)return new ggt(a,u,i,c);a=u+1,i++}}},{key:"decompose",value:function(r,o,i,a){var s=r<=0&&o>=this.length?this:new n(zA(this.text,r,o),Math.min(o,this.length)-Math.max(0,r));if(1&a){var c=i.pop(),u=wm(s.text,c.text.slice(),0,s.length);if(u.length<=32)i.push(new n(u,c.length+s.length));else{var l=u.length>>1;i.push(new n(u.slice(0,l)),new n(u.slice(l)))}}else i.push(s)}},{key:"replace",value:function(r,o,i){if(!(i instanceof n))return jn(ln(n.prototype),"replace",this).call(this,r,o,i);var a=wm(this.text,wm(i.text,zA(this.text,0,r)),o),s=this.length+i.length-(o-r);return a.length<=32?new n(a,s):bm.from(n.split(a,[]),s)}},{key:"sliceString",value:function(r){for(var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.length,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`
|
|
106
|
+
`,a="",s=0,c=0;s<=o&&c<this.text.length;c++){var u=this.text[c],l=s+u.length;s>r&&c&&(a+=i),r<l&&o>s&&(a+=u.slice(Math.max(0,r-s),o-s)),s=l+1}return a}},{key:"flatten",value:function(r){var o,i=ht(this.text);try{for(i.s();!(o=i.n()).done;){var a=o.value;r.push(a)}}catch(s){i.e(s)}finally{i.f()}}},{key:"scanIdentical",value:function(){return 0}}],[{key:"split",value:function(r,o){var i,a=[],s=-1,c=ht(r);try{for(c.s();!(i=c.n()).done;){var u=i.value;a.push(u),s+=u.length+1,a.length==32&&(o.push(new n(a,s)),a=[],s=-1)}}catch(l){c.e(l)}finally{c.f()}return s>-1&&o.push(new n(a,s)),o}}]),n}(),bm=function(e){Tt(n,Yn);var t=Rt(n);function n(r,o){var i;ot(this,n),(i=t.call(this)).children=r,i.length=o,i.lines=0;var a,s=ht(r);try{for(s.s();!(a=s.n()).done;){var c=a.value;i.lines+=c.lines}}catch(u){s.e(u)}finally{s.f()}return i}return it(n,[{key:"lineInner",value:function(r,o,i,a){for(var s=0;;s++){var c=this.children[s],u=a+c.length,l=i+c.lines-1;if((o?l:u)>=r)return c.lineInner(r,o,i,a);a=u+1,i=l+1}}},{key:"decompose",value:function(r,o,i,a){for(var s=0,c=0;c<=o&&s<this.children.length;s++){var u=this.children[s],l=c+u.length;if(r<=l&&o>=c){var f=a&((c<=r?1:0)|(l>=o?2:0));c>=r&&l<=o&&!f?i.push(u):u.decompose(r-c,o-c,i,f)}c=l+1}}},{key:"replace",value:function(r,o,i){if(i.lines<this.lines)for(var a=0,s=0;a<this.children.length;a++){var c=this.children[a],u=s+c.length;if(r>=s&&o<=u){var l=c.replace(r-s,o-s,i),f=this.lines-c.lines+l.lines;if(l.lines<f>>4&&l.lines>f>>6){var d=this.children.slice();return d[a]=l,new n(d,this.length-(o-r)+i.length)}return jn(ln(n.prototype),"replace",this).call(this,s,u,l)}s=u+1}return jn(ln(n.prototype),"replace",this).call(this,r,o,i)}},{key:"sliceString",value:function(r){for(var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.length,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`
|
|
107
|
+
`,a="",s=0,c=0;s<this.children.length&&c<=o;s++){var u=this.children[s],l=c+u.length;c>r&&s&&(a+=i),r<l&&o>c&&(a+=u.sliceString(r-c,o-c,i)),c=l+1}return a}},{key:"flatten",value:function(r){var o,i=ht(this.children);try{for(i.s();!(o=i.n()).done;)o.value.flatten(r)}catch(a){i.e(a)}finally{i.f()}}},{key:"scanIdentical",value:function(r,o){if(!(r instanceof n))return 0;for(var i=0,a=Ce(o>0?[0,0,this.children.length,r.children.length]:[this.children.length-1,r.children.length-1,-1,-1],4),s=a[0],c=a[1],u=a[2],l=a[3];;s+=o,c+=o){if(s==u||c==l)return i;var f=this.children[s],d=r.children[c];if(f!=d)return i+f.scanIdentical(d,o);i+=f.length+1}}}],[{key:"from",value:function(r){var o,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r.reduce(function(k,E){return k+E.length+1},-1),a=0,s=ht(r);try{for(s.s();!(o=s.n()).done;)a+=o.value.lines}catch(k){s.e(k)}finally{s.f()}if(a<32){var c,u=[],l=ht(r);try{for(l.s();!(c=l.n()).done;)c.value.flatten(u)}catch(k){l.e(k)}finally{l.f()}return new ma(u,i)}var f=Math.max(32,a>>5),d=f<<1,h=f>>1,p=[],v=0,m=-1,g=[];function y(k){var E;if(k.lines>d&&k instanceof n){var _,T=ht(k.children);try{for(T.s();!(_=T.n()).done;)y(_.value)}catch($){T.e($)}finally{T.f()}}else k.lines>h&&(v>h||!v)?(b(),p.push(k)):k instanceof ma&&v&&(E=g[g.length-1])instanceof ma&&k.lines+E.lines<=32?(v+=k.lines,m+=k.length+1,g[g.length-1]=new ma(E.text.concat(k.text),E.length+1+k.length)):(v+k.lines>f&&b(),v+=k.lines,m+=k.length+1,g.push(k))}function b(){v!=0&&(p.push(g.length==1?g[0]:n.from(g,m)),m=-1,v=g.length=0)}var w,x=ht(r);try{for(x.s();!(w=x.n()).done;)y(w.value)}catch(k){x.e(k)}finally{x.f()}return b(),p.length==1?p[0]:new n(p,i)}}]),n}();function wm(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=arguments.length>3&&arguments[3]!==void 0?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 zA(e,t,n){return wm(e,[""],t,n)}Yn.empty=new ma([""],0);var ch=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;ot(this,e),this.dir=n,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[t],this.offsets=[n>0?1:(t instanceof ma?t.text.length:t.children.length)<<1]}return it(e,[{key:"nextInner",value:function(t,n){for(this.done=this.lineBreak=!1;;){var r=this.nodes.length-1,o=this.nodes[r],i=this.offsets[r],a=i>>1,s=o instanceof ma?o.text.length:o.children.length;if(a==(n>0?s:0)){if(r==0)return this.done=!0,this.value="",this;n>0&&this.offsets[r-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&i)==(n>0?0:1)){if(this.offsets[r]+=n,t==0)return this.lineBreak=!0,this.value=`
|
|
108
|
+
`,this;t--}else if(o instanceof ma){var c=o.text[a+(n<0?-1:0)];if(this.offsets[r]+=n,c.length>Math.max(0,t))return this.value=t==0?c:n>0?c.slice(t):c.slice(0,c.length-t),this;t-=c.length}else{var u=o.children[a+(n<0?-1:0)];t>u.length?(t-=u.length,this.offsets[r]+=n):(n<0&&this.offsets[r]--,this.nodes.push(u),this.offsets.push(n>0?1:(u instanceof ma?u.text.length:u.children.length)<<1))}}}},{key:"next",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return t<0&&(this.nextInner(-t,-this.dir),t=this.value.length),this.nextInner(t,this.dir)}}]),e}(),NB=function(){function e(t,n,r){ot(this,e),this.value="",this.done=!1,this.cursor=new ch(t,n>r?-1:1),this.pos=n>r?t.length:0,this.from=Math.min(n,r),this.to=Math.max(n,r)}return it(e,[{key:"nextInner",value:function(t,n){if(n<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;t+=Math.max(0,n<0?this.pos-this.to:this.from-this.pos);var r=n<0?this.pos-this.from:this.to-this.pos;t>r&&(t=r),r-=t;var o=this.cursor.next(t).value;return this.pos+=(o.length+t)*n,this.value=o.length<=r?o:n<0?o.slice(o.length-r):o.slice(0,r),this.done=!this.value,this}},{key:"next",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return t<0?t=Math.max(t,this.from-this.pos):t>0&&(t=Math.min(t,this.to-this.pos)),this.nextInner(t,this.cursor.dir)}},{key:"lineBreak",get:function(){return this.cursor.lineBreak&&this.value!=""}}]),e}(),DB=function(){function e(t){ot(this,e),this.inner=t,this.afterBreak=!0,this.value="",this.done=!1}return it(e,[{key:"next",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=this.inner.next(t),r=n.done,o=n.lineBreak,i=n.value;return r?(this.done=!0,this.value=""):o?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=i,this.afterBreak=!1),this}},{key:"lineBreak",get:function(){return!1}}]),e}();typeof Symbol<"u"&&(Yn.prototype[Symbol.iterator]=function(){return this.iter()},ch.prototype[Symbol.iterator]=NB.prototype[Symbol.iterator]=DB.prototype[Symbol.iterator]=function(){return this});for(var ggt=function(){function e(t,n,r,o){ot(this,e),this.from=t,this.to=n,this.number=r,this.text=o}return it(e,[{key:"length",get:function(){return this.to-this.from}}]),e}(),of="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}),gv=1;gv<of.length;gv++)of[gv]+=of[gv-1];function ygt(e){for(var t=1;t<of.length;t+=2)if(of[t]>e)return of[t-1]<=e;return!1}function BA(e){return e>=127462&&e<=127487}var FA=8205;function Ro(e,t){return(!(arguments.length>2&&arguments[2]!==void 0)||arguments[2]?LB:bgt)(e,t,!(arguments.length>3&&arguments[3]!==void 0)||arguments[3])}function LB(e,t,n){if(t==e.length)return t;t&&zB(e.charCodeAt(t))&&BB(e.charCodeAt(t-1))&&t--;var r=xo(e,t);for(t+=Pi(r);t<e.length;){var o=xo(e,t);if(r==FA||o==FA||n&&ygt(o))t+=Pi(o),r=o;else{if(!BA(o))break;for(var i=0,a=t-2;a>=0&&BA(xo(e,a));)i++,a-=2;if(i%2==0)break;t+=2}}return t}function bgt(e,t,n){for(;t>0;){var r=LB(e,t-2,n);if(r<t)return r;t--}return 0}function zB(e){return e>=56320&&e<57344}function BB(e){return e>=55296&&e<56320}function xo(e,t){var n=e.charCodeAt(t);if(!BB(n)||t+1==e.length)return n;var r=e.charCodeAt(t+1);return zB(r)?r-56320+(n-55296<<10)+65536:n}function Cj(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}function Pi(e){return e<65536?1:2}var Vw=/\r\n?|\n/,qo=function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e}(qo||(qo={})),af=function(){function e(t){ot(this,e),this.sections=t}return it(e,[{key:"length",get:function(){for(var t=0,n=0;n<this.sections.length;n+=2)t+=this.sections[n];return t}},{key:"newLength",get:function(){for(var t=0,n=0;n<this.sections.length;n+=2){var r=this.sections[n+1];t+=r<0?this.sections[n]:r}return t}},{key:"empty",get:function(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}},{key:"iterGaps",value:function(t){for(var n=0,r=0,o=0;n<this.sections.length;){var i=this.sections[n++],a=this.sections[n++];a<0?(t(r,o,i),o+=i):o+=a,r+=i}}},{key:"iterChangedRanges",value:function(t){Ww(this,t,arguments.length>1&&arguments[1]!==void 0&&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(t){return this.empty?t:t.empty?this:FB(this,t)}},{key:"mapDesc",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return t.empty?this:Uw(this,t,n)}},{key:"mapPos",value:function(t){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:qo.Simple,o=0,i=0,a=0;a<this.sections.length;){var s=this.sections[a++],c=this.sections[a++],u=o+s;if(c<0){if(u>t)return i+(t-o);i+=s}else{if(r!=qo.Simple&&u>=t&&(r==qo.TrackDel&&o<t&&u>t||r==qo.TrackBefore&&o<t||r==qo.TrackAfter&&u>t))return null;if(u>t||u==t&&n<0&&!s)return t==o||n<0?i:i+c;i+=c}o=u}if(t>o)throw new RangeError("Position ".concat(t," is out of range for changeset of length ").concat(o));return i}},{key:"touchesRange",value:function(t){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,r=0,o=0;r<this.sections.length&&o<=n;){var i=o+this.sections[r++];if(this.sections[r++]>=0&&o<=n&&i>=t)return!(o<t&&i>n)||"cover";o=i}return!1}},{key:"toString",value:function(){for(var t="",n=0;n<this.sections.length;){var r=this.sections[n++],o=this.sections[n++];t+=(t?" ":"")+r+(o>=0?":"+o:"")}return t}},{key:"toJSON",value:function(){return this.sections}}],[{key:"fromJSON",value:function(t){if(!Array.isArray(t)||t.length%2||t.some(function(n){return typeof n!="number"}))throw new RangeError("Invalid JSON representation of ChangeDesc");return new e(t)}},{key:"create",value:function(t){return new e(t)}}]),e}(),Oa=function(e){Tt(n,af);var t=Rt(n);function n(r,o){var i;return ot(this,n),(i=t.call(this,r)).inserted=o,i}return it(n,[{key:"apply",value:function(r){if(this.length!=r.length)throw new RangeError("Applying change set to a document with the wrong length");return Ww(this,function(o,i,a,s,c){return r=r.replace(a,a+(i-o),c)},!1),r}},{key:"mapDesc",value:function(r){return Uw(this,r,arguments.length>1&&arguments[1]!==void 0&&arguments[1],!0)}},{key:"invert",value:function(r){for(var o=this.sections.slice(),i=[],a=0,s=0;a<o.length;a+=2){var c=o[a],u=o[a+1];if(u>=0){o[a]=u,o[a+1]=c;for(var l=a>>1;i.length<l;)i.push(Yn.empty);i.push(c?r.slice(s,s+c):Yn.empty)}s+=c}return new n(o,i)}},{key:"compose",value:function(r){return this.empty?r:r.empty?this:FB(this,r,!0)}},{key:"map",value:function(r){var o=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return r.empty?this:Uw(this,r,o,!0)}},{key:"iterChanges",value:function(r){Ww(this,r,arguments.length>1&&arguments[1]!==void 0&&arguments[1])}},{key:"desc",get:function(){return af.create(this.sections)}},{key:"filter",value:function(r){var o=[],i=[],a=[],s=new Hh(this);t:for(var c=0,u=0;;){for(var l=c==r.length?1e9:r[c++];u<l||u==l&&s.len==0;){if(s.done)break t;var f=Math.min(s.len,l-u);Ao(a,f,-1);var d=s.ins==-1?-1:s.off==0?s.ins:0;Ao(o,f,d),d>0&&wc(i,o,s.text),s.forward(f),u+=f}for(var h=r[c++];u<h;){if(s.done)break t;var p=Math.min(s.len,h-u);Ao(o,p,-1),Ao(a,p,s.ins==-1?-1:s.off==0?s.ins:0),s.forward(p),u+=p}}return{changes:new n(o,i),filtered:af.create(a)}}},{key:"toJSON",value:function(){for(var r=[],o=0;o<this.sections.length;o+=2){var i=this.sections[o],a=this.sections[o+1];a<0?r.push(i):a==0?r.push([i]):r.push([i].concat(this.inserted[o>>1].toJSON()))}return r}}],[{key:"of",value:function(r,o,i){var a=[],s=[],c=0,u=null;function l(){if(arguments.length>0&&arguments[0]!==void 0&&arguments[0]||a.length){c<o&&Ao(a,o-c,-1);var f=new n(a,s);u=u?u.compose(f.map(u)):f,a=[],s=[],c=0}}return function f(d){if(Array.isArray(d)){var h,p=ht(d);try{for(p.s();!(h=p.n()).done;)f(h.value)}catch(x){p.e(x)}finally{p.f()}}else if(d instanceof n){if(d.length!=o)throw new RangeError("Mismatched change set length (got ".concat(d.length,", expected ").concat(o,")"));l(),u=u?u.compose(d.map(u)):d}else{var v=d.from,m=d.to,g=m===void 0?v:m,y=d.insert;if(v>g||v<0||g>o)throw new RangeError("Invalid change range ".concat(v," to ").concat(g," (in doc of length ").concat(o,")"));var b=y?typeof y=="string"?Yn.of(y.split(i||Vw)):y:Yn.empty,w=b.length;if(v==g&&w==0)return;v<c&&l(),v>c&&Ao(a,v-c,-1),Ao(a,g-v,w),wc(s,a,b),c=g}}(r),l(!u),u}},{key:"empty",value:function(r){return new n(r?[r,-1]:[],[])}},{key:"fromJSON",value:function(r){if(!Array.isArray(r))throw new RangeError("Invalid JSON representation of ChangeSet");for(var o=[],i=[],a=0;a<r.length;a++){var s=r[a];if(typeof s=="number")o.push(s,-1);else{if(!Array.isArray(s)||typeof s[0]!="number"||s.some(function(c,u){return u&&typeof c!="string"}))throw new RangeError("Invalid JSON representation of ChangeSet");if(s.length==1)o.push(s[0],0);else{for(;i.length<a;)i.push(Yn.empty);i[a]=Yn.of(s.slice(1)),o.push(s[0],i[a].length)}}}return new n(o,i)}},{key:"createSet",value:function(r,o){return new n(r,o)}}]),n}();function Ao(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(!(t==0&&n<=0)){var o=e.length-2;o>=0&&n<=0&&n==e[o+1]?e[o]+=t:t==0&&e[o]==0?e[o+1]+=n:r?(e[o]+=t,e[o+1]+=n):e.push(t,n)}}function wc(e,t,n){if(n.length!=0){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(Yn.empty);e.push(n)}}}function Ww(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=Yn.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 Uw(e,t,n){for(var r=[],o=arguments.length>3&&arguments[3]!==void 0&&arguments[3]?[]:null,i=new Hh(e),a=new Hh(t),s=-1;;)if(i.ins==-1&&a.ins==-1){var c=Math.min(i.len,a.len);Ao(r,c,-1),i.forward(c),a.forward(c)}else if(a.ins>=0&&(i.ins<0||s==i.i||i.off==0&&(a.len<i.len||a.len==i.len&&!n))){var u=a.len;for(Ao(r,a.ins,-1);u;){var l=Math.min(i.len,u);i.ins>=0&&s<i.i&&i.len<=l&&(Ao(r,0,i.ins),o&&wc(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?Oa.createSet(r,o):af.create(r);throw new Error("Mismatched change set lengths")}for(var f=0,d=i.len;d;)if(a.ins==-1){var h=Math.min(d,a.len);f+=h,d-=h,a.forward(h)}else{if(!(a.ins==0&&a.len<d))break;d-=a.len,a.next()}Ao(r,f,s<i.i?i.ins:0),o&&s<i.i&&wc(o,r,i.text),s=i.i,i.forward(i.len-d)}}function FB(e,t){for(var n=[],r=arguments.length>2&&arguments[2]!==void 0&&arguments[2]?[]:null,o=new Hh(e),i=new Hh(t),a=!1;;){if(o.done&&i.done)return r?Oa.createSet(n,r):af.create(n);if(o.ins==0)Ao(n,o.len,0,a),o.next();else if(i.len!=0||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(o.ins==-1){var u=i.ins==-1?-1:i.off?0:i.ins;Ao(n,s,u,a),r&&u&&wc(r,n,i.text)}else i.ins==-1?(Ao(n,o.off?0:o.len,s,a),r&&wc(r,n,o.textBit(s))):(Ao(n,o.off?0:o.len,i.off?0:i.ins,a),r&&!i.off&&wc(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 Ao(n,0,i.ins,a),r&&wc(r,n,i.text),i.next()}}var Hh=function(){function e(t){ot(this,e),this.set=t,this.i=0,this.next()}return it(e,[{key:"next",value:function(){var t=this.set.sections;this.i<t.length?(this.len=t[this.i++],this.ins=t[this.i++]):(this.len=0,this.ins=-2),this.off=0}},{key:"done",get:function(){return this.ins==-2}},{key:"len2",get:function(){return this.ins<0?this.len:this.ins}},{key:"text",get:function(){var t=this.set.inserted,n=this.i-2>>1;return n>=t.length?Yn.empty:t[n]}},{key:"textBit",value:function(t){var n=this.set.inserted,r=this.i-2>>1;return r>=n.length&&!t?Yn.empty:n[r].slice(this.off,t==null?void 0:this.off+t)}},{key:"forward",value:function(t){t==this.len?this.next():(this.len-=t,this.off+=t)}},{key:"forward2",value:function(t){this.ins==-1?this.forward(t):t==this.ins?this.next():(this.ins-=t,this.off+=t)}}]),e}(),yv=function(){function e(t,n,r){ot(this,e),this.from=t,this.to=n,this.flags=r}return it(e,[{key:"anchor",get:function(){return 16&this.flags?this.to:this.from}},{key:"head",get:function(){return 16&this.flags?this.from:this.to}},{key:"empty",get:function(){return this.from==this.to}},{key:"assoc",get:function(){return 4&this.flags?-1:8&this.flags?1:0}},{key:"bidiLevel",get:function(){var t=3&this.flags;return t==3?null:t}},{key:"goalColumn",get:function(){var t=this.flags>>5;return t==33554431?void 0:t}},{key:"map",value:function(t){var n,r,o=arguments.length>1&&arguments[1]!==void 0?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(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t;if(t<=this.anchor&&n>=this.anchor)return Jt.range(t,n);var r=Math.abs(t-this.anchor)>Math.abs(n-this.anchor)?t:n;return Jt.range(this.anchor,r)}},{key:"eq",value:function(t){return this.anchor==t.anchor&&this.head==t.head}},{key:"toJSON",value:function(){return{anchor:this.anchor,head:this.head}}}],[{key:"fromJSON",value:function(t){if(!t||typeof t.anchor!="number"||typeof t.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return Jt.range(t.anchor,t.head)}},{key:"create",value:function(t,n,r){return new e(t,n,r)}}]),e}(),Jt=function(){function e(t,n){ot(this,e),this.ranges=t,this.mainIndex=n}return it(e,[{key:"map",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1;return t.empty?this:e.create(this.ranges.map(function(r){return r.map(t,n)}),this.mainIndex)}},{key:"eq",value:function(t){if(this.ranges.length!=t.ranges.length||this.mainIndex!=t.mainIndex)return!1;for(var n=0;n<this.ranges.length;n++)if(!this.ranges[n].eq(t.ranges[n]))return!1;return!0}},{key:"main",get:function(){return this.ranges[this.mainIndex]}},{key:"asSingle",value:function(){return this.ranges.length==1?this:new e([this.main],0)}},{key:"addRange",value:function(t){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];return e.create([t].concat(this.ranges),n?0:this.mainIndex+1)}},{key:"replaceRange",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?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(t){return t.toJSON()}),main:this.mainIndex}}}],[{key:"fromJSON",value:function(t){if(!t||!Array.isArray(t.ranges)||typeof t.main!="number"||t.main>=t.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new e(t.ranges.map(function(n){return yv.fromJSON(n)}),t.main)}},{key:"single",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t;return new e([e.range(t,n)],0)}},{key:"create",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(t.length==0)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(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0;return yv.create(t,t,(n==0?0:n<0?4:8)|(r==null?3:Math.min(2,r))|(o??33554431)<<5)}},{key:"range",value:function(t,n,r,o){var i=(r??33554431)<<5|(o==null?3:Math.min(2,o));return n<t?yv.create(n,t,24|i):yv.create(t,n,(n>t?4:0)|i)}},{key:"normalized",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=t[n];t.sort(function(u,l){return u.from-l.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)}}]),e}();function qB(e,t){var n,r=ht(e.ranges);try{for(r.s();!(n=r.n()).done;)if(n.value.to>t)throw new RangeError("Selection points outside of document")}catch(o){r.e(o)}finally{r.f()}}var Ej=0,xe=function(){function e(t,n,r,o,i){ot(this,e),this.combine=t,this.compareInput=n,this.compare=r,this.isStatic=o,this.id=Ej++,this.default=t([]),this.extensions=typeof i=="function"?i(this):i}return it(e,[{key:"of",value:function(t){return new xm([],this,0,t)}},{key:"compute",value:function(t,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new xm(t,this,1,n)}},{key:"computeN",value:function(t,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new xm(t,this,2,n)}},{key:"from",value:function(t,n){return n||(n=function(r){return r}),this.compute([t],function(r){return n(r.field(t))})}}],[{key:"define",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return new e(t.combine||function(n){return n},t.compareInput||function(n,r){return n===r},t.compare||(t.combine?function(n,r){return n===r}:Kw),!!t.static,t.enables)}}]),e}();function Kw(e,t){return e==t||e.length==t.length&&e.every(function(n,r){return n===t[r]})}var xm=function(){function e(t,n,r,o){ot(this,e),this.dependencies=t,this.facet=n,this.type=r,this.value=o,this.id=Ej++}return it(e,[{key:"dynamicSlot",value:function(t){var n,r,o=this,i=this.value,a=this.facet.compareInput,s=this.id,c=t[s]>>1,u=this.type==2,l=!1,f=!1,d=[],h=ht(this.dependencies);try{for(h.s();!(r=h.n()).done;){var p=r.value;p=="doc"?l=!0:p=="selection"?f=!0:!(1&((n=t[p.id])!==null&&n!==void 0?n:1))&&d.push(t[p.id])}}catch(v){h.e(v)}finally{h.f()}return{create:function(v){return v.values[c]=i(v),1},update:function(v,m){if(l&&m.docChanged||f&&(m.docChanged||m.selection)||Jw(v,d)){var g=i(v);if(u?!qA(g,v.values[c],a):!a(g,v.values[c]))return v.values[c]=g,1}return 0},reconfigure:function(v,m){var g,y=m.config.address[s];if(y!=null){var b=Cg(m,y);if(o.dependencies.every(function(w){return w instanceof xe?m.facet(w)===v.facet(w):!(w instanceof $o)||m.field(w,!1)==v.field(w,!1)})||(u?qA(g=i(v),b,a):a(g=i(v),b)))return v.values[c]=b,0}else g=i(v);return v.values[c]=g,1}}}}]),e}();function qA(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 Jw(e,t){var n,r=!1,o=ht(t);try{for(o.s();!(n=o.n()).done;)1&uh(e,n.value)&&(r=!0)}catch(i){o.e(i)}finally{o.f()}return r}var HA=xe.define({static:!0}),$o=function(){function e(t,n,r,o,i){ot(this,e),this.id=t,this.createF=n,this.updateF=r,this.compareF=o,this.spec=i,this.provides=void 0}return it(e,[{key:"create",value:function(t){var n=this,r=t.facet(HA).find(function(o){return o.field==n});return((r==null?void 0:r.create)||this.createF)(t)}},{key:"slot",value:function(t){var n=this,r=t[this.id]>>1;return{create:function(o){return o.values[r]=n.create(o),1},update:function(o,i){var a=o.values[r],s=n.updateF(a,i);return n.compareF(a,s)?0:(o.values[r]=s,1)},reconfigure:function(o,i){return i.config.address[n.id]!=null?(o.values[r]=i.field(n),0):(o.values[r]=n.create(o),1)}}}},{key:"init",value:function(t){return[this,HA.of({field:this,create:t})]}},{key:"extension",get:function(){return this}}],[{key:"define",value:function(t){var n=new e(Ej++,t.create,t.update,t.compare||function(r,o){return r===o},t);return t.provide&&(n.provides=t.provide(n)),n}}]),e}(),wgt=4,xgt=3,Gw=2,kgt=1;function md(e){return function(t){return new HB(t,e)}}var id={highest:md(0),high:md(kgt),default:md(Gw),low:md(xgt),lowest:md(wgt)},HB=it(function e(t,n){ot(this,e),this.inner=t,this.prec=n}),Su=function(){function e(){ot(this,e)}return it(e,[{key:"of",value:function(t){return new Qw(this,t)}},{key:"reconfigure",value:function(t){return e.reconfigure.of({compartment:this,extension:t})}},{key:"get",value:function(t){return t.config.compartments.get(this)}}]),e}(),Qw=it(function e(t,n){ot(this,e),this.compartment=t,this.inner=n}),VA=function(){function e(t,n,r,o,i,a){for(ot(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 it(e,[{key:"staticFacet",value:function(t){var n=this.address[t.id];return n==null?t.default:this.staticValues[n>>1]}}],[{key:"resolve",value:function(t,n,r){var o,i=[],a=Object.create(null),s=new Map,c=ht(function(w,x,k){var E=[[],[],[],[],[]],_=new Map;function T($,j){var R=_.get($);if(R!=null){if(R<=j)return;var q=E[R].indexOf($);q>-1&&E[R].splice(q,1),$ instanceof Qw&&k.delete($.compartment)}if(_.set($,j),Array.isArray($)){var O,F=ht($);try{for(F.s();!(O=F.n()).done;)T(O.value,j)}catch(D){F.e(D)}finally{F.f()}}else if($ instanceof Qw){if(k.has($.compartment))throw new RangeError("Duplicate use of compartment in extensions");var J=x.get($.compartment)||$.inner;k.set($.compartment,J),T(J,j)}else if($ instanceof HB)T($.inner,$.prec);else if($ instanceof $o)E[j].push($),$.provides&&T($.provides,j);else if($ instanceof xm)E[j].push($),$.facet.extensions&&T($.facet.extensions,Gw);else{var I=$.extension;if(!I)throw new Error("Unrecognized extension value in extension set (".concat($,"). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks."));T(I,j)}}return T(w,Gw),E.reduce(function($,j){return $.concat(j)})}(t,n,s));try{for(c.s();!(o=c.n()).done;){var u=o.value;u instanceof $o?i.push(u):(a[u.facet.id]||(a[u.facet.id]=[])).push(u)}}catch(w){c.e(w)}finally{c.f()}for(var l=Object.create(null),f=[],d=[],h=function(){var w=v[p];l[w.id]=d.length<<1,d.push(function(x){return w.slot(x)})},p=0,v=i;p<v.length;p++)h();var m=r==null?void 0:r.config.facets,g=function(){var w=a[y],x=w[0].facet,k=m&&m[y]||[];if(w.every(function(j){return j.type==0}))if(l[x.id]=f.length<<1|1,Kw(k,w))f.push(r.facet(x));else{var E=x.combine(w.map(function(j){return j.value}));f.push(r&&x.compare(E,r.facet(x))?r.facet(x):E)}else{var _,T=ht(w);try{var $=function(){var j=_.value;j.type==0?(l[j.id]=f.length<<1|1,f.push(j.value)):(l[j.id]=d.length<<1,d.push(function(R){return j.dynamicSlot(R)}))};for(T.s();!(_=T.n()).done;)$()}catch(j){T.e(j)}finally{T.f()}l[x.id]=d.length<<1,d.push(function(j){return function(R,q,O){var F=O.map(function(M){return R[M.id]}),J=O.map(function(M){return M.type}),I=F.filter(function(M){return!(1&M)}),D=R[q.id]>>1;function C(M){for(var P=[],B=0;B<F.length;B++){var A=Cg(M,F[B]);if(J[B]==2){var W,N=ht(A);try{for(N.s();!(W=N.n()).done;){var dt=W.value;P.push(dt)}}catch(et){N.e(et)}finally{N.f()}}else P.push(A)}return q.combine(P)}return{create:function(M){var P,B=ht(F);try{for(B.s();!(P=B.n()).done;)uh(M,P.value)}catch(A){B.e(A)}finally{B.f()}return M.values[D]=C(M),1},update:function(M,P){if(!Jw(M,I))return 0;var B=C(M);return q.compare(B,M.values[D])?0:(M.values[D]=B,1)},reconfigure:function(M,P){var B=Jw(M,F),A=P.config.facets[q.id],W=P.facet(q);if(A&&!B&&Kw(O,A))return M.values[D]=W,0;var N=C(M);return q.compare(N,W)?(M.values[D]=W,0):(M.values[D]=N,1)}}}(j,x,w)})}};for(var y in a)g();var b=d.map(function(w){return w(l)});return new e(t,s,b,l,f,a)}}]),e}();function uh(e,t){if(1&t)return 2;var n=t>>1,r=e.status[n];if(r==4)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 Cg(e,t){return 1&t?e.config.staticValues[t>>1]:e.values[t>>1]}var VB=xe.define(),WB=xe.define({combine:function(e){return e.some(function(t){return t})},static:!0}),UB=xe.define({combine:function(e){return e.length?e[0]:void 0},static:!0}),KB=xe.define(),JB=xe.define(),GB=xe.define(),QB=xe.define({combine:function(e){return!!e.length&&e[0]}}),Rs=function(){function e(t,n){ot(this,e),this.type=t,this.value=n}return it(e,null,[{key:"define",value:function(){return new jgt}}]),e}(),jgt=function(){function e(){ot(this,e)}return it(e,[{key:"of",value:function(t){return new Rs(this,t)}}]),e}(),_gt=function(){function e(t){ot(this,e),this.map=t}return it(e,[{key:"of",value:function(t){return new wn(this,t)}}]),e}(),wn=function(){function e(t,n){ot(this,e),this.type=t,this.value=n}return it(e,[{key:"map",value:function(t){var n=this.type.map(this.value,t);return n===void 0?void 0:n==this.value?this:new e(this.type,n)}},{key:"is",value:function(t){return this.type==t}}],[{key:"define",value:function(){return new _gt((arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}).map||function(t){return t})}},{key:"mapEffects",value:function(t,n){if(!t.length)return t;var r,o=[],i=ht(t);try{for(i.s();!(r=i.n()).done;){var a=r.value.map(n);a&&o.push(a)}}catch(s){i.e(s)}finally{i.f()}return o}}]),e}();wn.reconfigure=wn.define(),wn.appendConfig=wn.define();var ti=function(){function e(t,n,r,o,i,a){ot(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&&qB(r,n.newLength),i.some(function(s){return s.type==e.time})||(this.annotations=i.concat(e.time.of(Date.now())))}return it(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(t){var n,r=ht(this.annotations);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.type==t)return o.value}}catch(i){r.e(i)}finally{r.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)}}]),e}();function Sgt(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 WA(e,t,n){var r,o,i,a;return n?(o=t.changes,i=Oa.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):(r=e.selection)===null||r===void 0?void 0:r.map(o),effects:wn.mapEffects(e.effects,o).concat(wn.mapEffects(t.effects,i)),annotations:e.annotations.length?e.annotations.concat(t.annotations):t.annotations,scrollIntoView:e.scrollIntoView||t.scrollIntoView}}function jy(e,t,n){var r=t.selection,o=sf(t.annotations);return t.userEvent&&(o=o.concat(ti.userEvent.of(t.userEvent))),{changes:t.changes instanceof Oa?t.changes:Oa.of(t.changes||[],n,e.facet(UB)),selection:r&&(r instanceof Jt?r:Jt.single(r.anchor,r.head)),effects:sf(t.effects),annotations:o,scrollIntoView:!!t.scrollIntoView}}function YB(e,t,n){var r=jy(e,t.length?t[0]:{},e.doc.length);t.length&&t[0].filter===!1&&(n=!1);for(var o=1;o<t.length;o++){t[o].filter===!1&&(n=!1);var i=!!t[o].sequential;r=WA(r,jy(e,t[o],i?r.changes.newLength:e.doc.length),i)}var a=ti.create(e,r.changes,r.selection,r.effects,r.annotations,r.scrollIntoView);return function(s){for(var c=s.startState,u=c.facet(GB),l=s,f=u.length-1;f>=0;f--){var d=u[f](s);d&&Object.keys(d).length&&(l=WA(l,jy(c,d,s.changes.newLength),!0))}return l==s?s:ti.create(c,s.changes,s.selection,l.effects,l.annotations,l.scrollIntoView)}(n?function(s){var c,u=s.startState,l=!0,f=ht(u.facet(KB));try{for(f.s();!(c=f.n()).done;){var d=(0,c.value)(s);if(d===!1){l=!1;break}Array.isArray(d)&&(l=l===!0?d:Sgt(l,d))}}catch(b){f.e(b)}finally{f.f()}if(l!==!0){var h,p;if(l===!1)p=s.changes.invertedDesc,h=Oa.empty(u.doc.length);else{var v=s.changes.filter(l);h=v.changes,p=v.filtered.mapDesc(v.changes).invertedDesc}s=ti.create(u,h,s.selection&&s.selection.map(p),wn.mapEffects(s.effects,p),s.annotations,s.scrollIntoView)}for(var m=u.facet(JB),g=m.length-1;g>=0;g--){var y=m[g](s);s=y instanceof ti?y:Array.isArray(y)&&y.length==1&&y[0]instanceof ti?y[0]:YB(u,sf(y),!1)}return s}(a):a)}ti.time=Rs.define(),ti.userEvent=Rs.define(),ti.addToHistory=Rs.define(),ti.remote=Rs.define();var $gt=[];function sf(e){return e==null?$gt:Array.isArray(e)?e:[e]}var Yw,Sr=function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e}(Sr||(Sr={})),Cgt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;try{Yw=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function Egt(e){return function(t){if(!/\S/.test(t))return Sr.Space;if(function(r){if(Yw)return Yw.test(r);for(var o=0;o<r.length;o++){var i=r[o];if(/\w/.test(i)||i>""&&(i.toUpperCase()!=i.toLowerCase()||Cgt.test(i)))return!0}return!1}(t))return Sr.Word;for(var n=0;n<e.length;n++)if(t.indexOf(e[n])>-1)return Sr.Word;return Sr.Other}}var fr=function(){function e(t,n,r,o,i,a){ot(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++)uh(this,s<<1);this.computeSlot=null}return it(e,[{key:"field",value:function(t){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],r=this.config.address[t.id];if(r!=null)return uh(this,r),Cg(this,r);if(n)throw new RangeError("Field is not present in this state")}},{key:"update",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return YB(this,n,!0)}},{key:"applyTransaction",value:function(t){var n,r,o=this,i=this.config,a=i,s=a.base,c=a.compartments,u=ht(t.effects);try{for(u.s();!(n=u.n()).done;){var l=n.value;l.is(Su.reconfigure)?(i&&(c=new Map,i.compartments.forEach(function(f,d){return c.set(d,f)}),i=null),c.set(l.value.compartment,l.value.extension)):l.is(wn.reconfigure)?(i=null,s=l.value):l.is(wn.appendConfig)&&(i=null,s=sf(s).concat(l.value))}}catch(f){u.e(f)}finally{u.f()}i?r=t.startState.values.slice():r=new e(i=VA.resolve(s,c,this),this.doc,this.selection,i.dynamicSlots.map(function(){return null}),function(f,d){return d.reconfigure(f,o)},null).values,new e(i,t.newDoc,t.newSelection,r,function(f,d){return d.update(f,t)},t)}},{key:"replaceSelection",value:function(t){return typeof t=="string"&&(t=this.toText(t)),this.changeByRange(function(n){return{changes:{from:n.from,to:n.to,insert:t},range:Jt.cursor(n.from+t.length)}})}},{key:"changeByRange",value:function(t){for(var n=this.selection,r=t(n.ranges[0]),o=this.changes(r.changes),i=[r.range],a=sf(r.effects),s=1;s<n.ranges.length;s++){for(var c=t(n.ranges[s]),u=this.changes(c.changes),l=u.map(o),f=0;f<s;f++)i[f]=i[f].map(l);var d=o.mapDesc(u,!0);i.push(c.range.map(d)),o=o.compose(l),a=wn.mapEffects(a,l).concat(wn.mapEffects(sf(c.effects),d))}return{changes:o,selection:Jt.create(i,n.mainIndex),effects:a}}},{key:"changes",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return t instanceof Oa?t:Oa.of(t,this.doc.length,this.facet(e.lineSeparator))}},{key:"toText",value:function(t){return Yn.of(t.split(this.facet(e.lineSeparator)||Vw))}},{key:"sliceDoc",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.doc.length;return this.doc.sliceString(t,n,this.lineBreak)}},{key:"facet",value:function(t){var n=this.config.address[t.id];return n==null?t.default:(uh(this,n),Cg(this,n))}},{key:"toJSON",value:function(t){var n={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(t)for(var r in t){var o=t[r];o instanceof $o&&this.config.address[o.id]!=null&&(n[r]=o.spec.toJSON(this.field(t[r]),this))}return n}},{key:"tabSize",get:function(){return this.facet(e.tabSize)}},{key:"lineBreak",get:function(){return this.facet(e.lineSeparator)||`
|
|
109
|
+
`}},{key:"readOnly",get:function(){return this.facet(QB)}},{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=ht(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(c){a.e(c)}finally{a.f()}return r.length&&(t=t.replace(/\$(\$|\d*)/g,function(c,u){if(u=="$")return"$";var l=+(u||1);return!l||l>r.length?c:r[l-1]})),t}},{key:"languageDataAt",value:function(t,n){var r,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:-1,i=[],a=ht(this.facet(VB));try{for(a.s();!(r=a.n()).done;){var s,c=ht((0,r.value)(this,n,o));try{for(c.s();!(s=c.n()).done;){var u=s.value;Object.prototype.hasOwnProperty.call(u,t)&&i.push(u[t])}}catch(l){c.e(l)}finally{c.f()}}}catch(l){a.e(l)}finally{a.f()}return i}},{key:"charCategorizer",value:function(t){return Egt(this.languageDataAt("wordChars",t).join(""))}},{key:"wordAt",value:function(t){for(var n=this.doc.lineAt(t),r=n.text,o=n.from,i=n.length,a=this.charCategorizer(t),s=t-o,c=t-o;s>0;){var u=Ro(r,s,!1);if(a(r.slice(u,s))!=Sr.Word)break;s=u}for(;c<i;){var l=Ro(r,c);if(a(r.slice(c,l))!=Sr.Word)break;c=l}return s==c?null:Jt.range(s+o,c+o)}}],[{key:"fromJSON",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;if(!t||typeof t.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");var o=[];if(r){var i=function(){if(Object.prototype.hasOwnProperty.call(t,a)){var s=r[a],c=t[a];o.push(s.init(function(u){return s.spec.fromJSON(c,u)}))}};for(var a in r)i()}return e.create({doc:t.doc,selection:Jt.fromJSON(t.selection),extensions:n.extensions?o.concat([n.extensions]):o})}},{key:"create",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=VA.resolve(t.extensions||[],new Map),r=t.doc instanceof Yn?t.doc:Yn.of((t.doc||"").split(n.staticFacet(e.lineSeparator)||Vw)),o=t.selection?t.selection instanceof Jt?t.selection:Jt.single(t.selection.anchor,t.selection.head):Jt.single(0);return qB(o,r.length),n.staticFacet(WB)||(o=o.asSingle()),new e(n,r,o,n.dynamicSlots.map(function(){return null}),function(i,a){return a.create(i)},null)}}]),e}();function Xi(e,t){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={},i=ht(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(f===void 0)o[u]=l;else if(!(f===l||l===void 0)){if(!Object.hasOwnProperty.call(r,u))throw new Error("Config merge conflict for field "+u);o[u]=r[u](f,l)}}}catch(h){i.e(h)}finally{i.f()}for(var d in t)o[d]===void 0&&(o[d]=t[d]);return o}fr.allowMultipleSelections=WB,fr.tabSize=xe.define({combine:function(e){return e.length?e[0]:4}}),fr.lineSeparator=UB,fr.readOnly=QB,fr.phrases=xe.define({compare:function(e,t){var n=Object.keys(e),r=Object.keys(t);return n.length==r.length&&n.every(function(o){return e[o]==t[o]})}}),fr.languageData=VB,fr.changeFilter=KB,fr.transactionFilter=JB,fr.transactionExtender=GB,Su.reconfigure=wn.define();var Pu=function(){function e(){ot(this,e)}return it(e,[{key:"eq",value:function(t){return this==t}},{key:"range",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t;return Xw.create(t,n,this)}}]),e}();Pu.prototype.startSide=Pu.prototype.endSide=0,Pu.prototype.point=!1,Pu.prototype.mapMode=qo.TrackDel;var Xw=function(){function e(t,n,r){ot(this,e),this.from=t,this.to=n,this.value=r}return it(e,null,[{key:"create",value:function(t,n,r){return new e(t,n,r)}}]),e}();function _y(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}var Ogt=function(){function e(t,n,r,o){ot(this,e),this.from=t,this.to=n,this.value=r,this.maxPoint=o}return it(e,[{key:"length",get:function(){return this.to[this.to.length-1]}},{key:"findIndex",value:function(t,n,r){for(var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=r?this.to:this.from,a=o,s=i.length;;){if(a==s)return a;var c=a+s>>1,u=i[c]-t||(r?this.value[c].endSide:this.value[c].startSide)-n;if(c==a)return u>=0?a:s;u>=0?s=c:a=c+1}}},{key:"between",value:function(t,n,r,o){for(var i=this.findIndex(n,-1e9,!0),a=this.findIndex(r,1e9,!1,i);i<a;i++)if(o(this.from[i]+t,this.to[i]+t,this.value[i])===!1)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 p=n.mapPos(l,u.startSide,u.mapMode);if(p==null||(d=h=p,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}}}]),e}(),vr=function(){function e(t,n,r,o){ot(this,e),this.chunkPos=t,this.chunk=n,this.nextLayer=r,this.maxPoint=o}return it(e,[{key:"length",get:function(){var t=this.chunk.length-1;return t<0?0:Math.max(this.chunkEnd(t),this.nextLayer.length)}},{key:"size",get:function(){if(this.isEmpty)return 0;var t,n=this.nextLayer.size,r=ht(this.chunk);try{for(r.s();!(t=r.n()).done;)n+=t.value.value.length}catch(o){r.e(o)}finally{r.f()}return n}},{key:"chunkEnd",value:function(t){return this.chunkPos[t]+this.chunk[t].length}},{key:"update",value:function(t){var n=t.add,r=n===void 0?[]:n,o=t.sort,i=o!==void 0&&o,a=t.filterFrom,s=a===void 0?0:a,c=t.filterTo,u=c===void 0?this.length:c,l=t.filter;if(r.length==0&&!l)return this;if(i&&(r=r.slice().sort(_y)),this.isEmpty)return r.length?e.of(r):this;for(var f=new XB(this,null,-1).goto(0),d=0,h=[],p=new Wc;f.value||d<r.length;)if(d<r.length&&(f.from-r[d].from||f.startSide-r[d].value.startSide)>=0){var v=r[d++];p.addInner(v.from,v.to,v.value)||h.push(v)}else f.rangeIndex==1&&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])&&p.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))&&(p.addInner(f.from,f.to,f.value)||h.push(Xw.create(f.from,f.to,f.value))),f.next());return p.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(c===!1)o=Math.max(o,s.maxPoint),n.push(s),r.push(t.mapPos(a));else if(c===!0){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 n.length==0?d:new e(r,n,d||e.empty,o)}},{key:"between",value:function(t,n,r){if(!this.isEmpty){for(var o=0;o<this.chunk.length;o++){var i=this.chunkPos[o],a=this.chunk[o];if(n>=i&&t<=i+a.length&&a.between(i,t-i,n-i,r)===!1)return}this.nextLayer.between(t,n,r)}}},{key:"iter",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return Zw.from([this]).goto(t)}},{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(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Zw.from(t).goto(n)}},{key:"compare",value:function(t,n,r,o){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1,a=t.filter(function(f){return f.maxPoint>0||!f.isEmpty&&f.maxPoint>=i}),s=n.filter(function(f){return f.maxPoint>0||!f.isEmpty&&f.maxPoint>=i}),c=UA(a,s,r),u=new gd(a,c,i),l=new gd(s,c,i);r.iterGaps(function(f,d,h){return KA(u,f,l,d,h,o)}),r.empty&&r.length==0&&KA(u,0,l,0,0,o)}},{key:"eq",value:function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=arguments.length>3?arguments[3]:void 0;o==null&&(o=999999999);var i=t.filter(function(l){return!l.isEmpty&&n.indexOf(l)<0}),a=n.filter(function(l){return!l.isEmpty&&t.indexOf(l)<0});if(i.length!=a.length)return!1;if(!i.length)return!0;for(var s=UA(i,a),c=new gd(i,s,0).goto(r),u=new gd(a,s,0).goto(r);;){if(c.to!=u.to||!tx(c.active,u.active)||c.point&&(!u.point||!c.point.eq(u.point)))return!1;if(c.to>o)return!0;c.next(),u.next()}}},{key:"spans",value:function(t,n,r,o){for(var i=new gd(t,null,arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1).goto(n),a=n,s=i.openStart;;){var c=Math.min(i.to,r);if(i.point){var u=i.activeForPoint(i.to),l=i.pointFrom<n?u.length+1:Math.min(u.length,s);o.point(a,c,i.point,u,l,i.pointRank),s=Math.min(i.openEnd(c),u.length)}else c>a&&(o.span(a,c,i.active,s),s=i.openEnd(c));if(i.to>r)return s+(i.point&&i.to>r?1:0);a=i.to,i.next()}}},{key:"of",value:function(t){var n,r=arguments.length>1&&arguments[1]!==void 0&&arguments[1],o=new Wc,i=ht(t instanceof Xw?[t]:r?function(s){if(s.length>1)for(var c=s[0],u=1;u<s.length;u++){var l=s[u];if(_y(c,l)>0)return s.slice().sort(_y);c=l}return s}(t):t);try{for(i.s();!(n=i.n()).done;){var a=n.value;o.add(a.from,a.to,a.value)}}catch(s){i.e(s)}finally{i.f()}return o.finish()}}]),e}();vr.empty=new vr([],[],null,-1),vr.empty.nextLayer=vr.empty;var Wc=function(){function e(){ot(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 it(e,[{key:"finishChunk",value:function(t){this.chunks.push(new Ogt(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,t&&(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(t,n,r){var o=t-this.lastTo||r.startSide-this.last.endSide;if(o<=0&&(t-this.lastFrom||r.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(o<0)&&(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=t),this.from.push(t-this.chunkStart),this.to.push(n-this.chunkStart),this.last=r,this.lastFrom=t,this.lastTo=n,this.value.push(r),r.point&&(this.maxPoint=Math.max(this.maxPoint,n-t)),!0)}},{key:"addChunk",value:function(t,n){if((t-this.lastTo||n.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,n.maxPoint),this.chunks.push(n),this.chunkPos.push(t);var r=n.value.length-1;return this.last=n.value[r],this.lastFrom=n.from[r]+t,this.lastTo=n.to[r]+t,!0}},{key:"finish",value:function(){return this.finishInner(vr.empty)}},{key:"finishInner",value:function(t){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return t;var n=vr.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(t):t,this.setMaxPoint);return this.from=null,n}}]),e}();function UA(e,t,n){var r,o=new Map,i=ht(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(p){i.e(p)}finally{i.f()}var c,u=new Set,l=ht(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]);h==null||(n?n.mapPos(h):h)!=f.chunkPos[d]||n!=null&&n.touchesRange(h,h+f.chunk[d].length)||u.add(f.chunk[d])}}catch(p){l.e(p)}finally{l.f()}return u}var XB=function(){function e(t,n,r){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;ot(this,e),this.layer=t,this.skip=n,this.minPoint=r,this.rank=o}return it(e,[{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(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1e9;return this.chunkIndex=this.rangeIndex=0,this.gotoInner(t,n,!1),this}},{key:"gotoInner",value:function(t,n,r){for(;this.chunkIndex<this.layer.chunk.length;){var o=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(o)||this.layer.chunkEnd(this.chunkIndex)<t||o.maxPoint<this.minPoint))break;this.chunkIndex++,r=!1}if(this.chunkIndex<this.layer.chunk.length){var i=this.layer.chunk[this.chunkIndex].findIndex(t-this.layer.chunkPos[this.chunkIndex],n,!0);(!r||this.rangeIndex<i)&&this.setRangeIndex(i)}this.next()}},{key:"forward",value:function(t,n){(this.to-t||this.endSide-n)<0&&this.gotoInner(t,n,!0)}},{key:"next",value:function(){for(;;){if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}var t=this.layer.chunkPos[this.chunkIndex],n=this.layer.chunk[this.chunkIndex],r=t+n.from[this.rangeIndex];if(this.from=r,this.to=t+n.to[this.rangeIndex],this.value=n.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(t){if(t==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=t}},{key:"nextChunk",value:function(){this.chunkIndex++,this.rangeIndex=0,this.next()}},{key:"compare",value:function(t){return this.from-t.from||this.startSide-t.startSide||this.rank-t.rank||this.to-t.to||this.endSide-t.endSide}}]),e}(),Zw=function(){function e(t){ot(this,e),this.heap=t}return it(e,[{key:"startSide",get:function(){return this.value?this.value.startSide:0}},{key:"goto",value:function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1e9,o=ht(this.heap);try{for(o.s();!(n=o.n()).done;)n.value.goto(t,r)}catch(a){o.e(a)}finally{o.f()}for(var i=this.heap.length>>1;i>=0;i--)Sy(this.heap,i);return this.next(),this}},{key:"forward",value:function(t,n){var r,o=ht(this.heap);try{for(o.s();!(r=o.n()).done;)r.value.forward(t,n)}catch(a){o.e(a)}finally{o.f()}for(var i=this.heap.length>>1;i>=0;i--)Sy(this.heap,i);(this.to-t||this.value.endSide-n)<0&&this.next()}},{key:"next",value:function(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{var t=this.heap[0];this.from=t.from,this.to=t.to,this.value=t.value,this.rank=t.rank,t.value&&t.next(),Sy(this.heap,0)}}}],[{key:"from",value:function(t){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r=arguments.length>2&&arguments[2]!==void 0?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 XB(a,n,r,i));return o.length==1?o[0]:new e(o)}}]),e}();function Sy(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 gd=function(){function e(t,n,r){ot(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=Zw.from(t,n,r)}return it(e,[{key:"goto",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1e9;return this.cursor.goto(t,n),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=t,this.endSide=n,this.openStart=-1,this.next(),this}},{key:"forward",value:function(t,n){for(;this.minActive>-1&&(this.activeTo[this.minActive]-t||this.active[this.minActive].endSide-n)<0;)this.removeActive(this.minActive);this.cursor.forward(t,n)}},{key:"removeActive",value:function(t){bv(this.active,t),bv(this.activeTo,t),bv(this.activeRank,t),this.minActive=JA(this.active,this.activeTo)}},{key:"addActive",value:function(t){for(var n=0,r=this.cursor,o=r.value,i=r.to,a=r.rank;n<this.activeRank.length&&this.activeRank[n]<=a;)n++;wv(this.active,n,o),wv(this.activeTo,n,i),wv(this.activeRank,n,a),t&&wv(t,n,this.cursor.from),this.minActive=JA(this.active,this.activeTo)}},{key:"next",value:function(){var t=this.to,n=this.point;this.point=null;for(var r=this.openStart<0?[]:null;;){var o=this.minActive;if(o>-1&&(this.activeTo[o]-this.cursor.from||this.active[o].endSide-this.cursor.startSide)<0){if(this.activeTo[o]>t){this.to=this.activeTo[o],this.endSide=this.active[o].endSide;break}this.removeActive(o),r&&bv(r,o)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>t){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}var i=this.cursor.value;if(i.point){if(!(n&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)){this.point=i,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=i.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}this.cursor.next()}else this.addActive(r),this.cursor.next()}}if(r){this.openStart=0;for(var a=r.length-1;a>=0&&r[a]<t;a--)this.openStart++}}},{key:"activeForPoint",value:function(t){if(!this.active.length)return this.active;for(var n=[],r=this.active.length-1;r>=0&&!(this.activeRank[r]<this.pointRank);r--)(this.activeTo[r]>t||this.activeTo[r]==t&&this.active[r].endSide>=this.point.endSide)&&n.push(this.active[r]);return n.reverse()}},{key:"openEnd",value:function(t){for(var n=0,r=this.activeTo.length-1;r>=0&&this.activeTo[r]>t;r--)n++;return n}}]),e}();function KA(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))&&tx(e.activeForPoint(e.to),n.activeForPoint(n.to))||i.comparePoint(s,f,e.point,n.point):f>s&&!tx(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 tx(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 bv(e,t){for(var n=t,r=e.length-1;n<r;n++)e[n]=e[n+1];e.pop()}function wv(e,t,n){for(var r=e.length-1;r>=t;r--)e[r+1]=e[r];e[t]=n}function JA(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 Pp(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,r=0,o=0;o<n;)e.charCodeAt(o)==9?(r+=t-r%t,o++):(r++,o=Ro(e,o));return r}function ex(e,t,n,r){for(var o=0,i=0;;){if(i>=t)return o;if(o==e.length)break;i+=e.charCodeAt(o)==9?n-i%n:1,o=Ro(e,o)}return r===!0?-1:e.length}for(var GA=typeof Symbol>"u"?"__ͼ":Symbol.for("ͼ"),$y=typeof Symbol>"u"?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),QA=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{},Uc=function(){function e(t,n){ot(this,e),this.rules=[];var r=(n||{}).finish;function o(s){return/^@/.test(s)?[s]:s.split(/,\s*/)}function i(s,c,u,l){var f=[],d=/^@(\w+)\b/.exec(s[0]),h=d&&d[1]=="keyframes";if(d&&c==null)return u.push(s[0]+";");for(var p in c){var v=c[p];if(/&/.test(p))i(p.split(/,\s*/).map(function(m){return s.map(function(g){return m.replace(/&/,g)})}).reduce(function(m,g){return m.concat(g)}),v,u);else if(v&&ce(v)=="object"){if(!d)throw new RangeError("The value of a property ("+p+") should be a primitive value.");i(o(p),v,f,h)}else v!=null&&f.push(p.replace(/_.*/,"").replace(/[A-Z]/g,function(m){return"-"+m.toLowerCase()})+": "+v+";")}(f.length||h)&&u.push((!r||d||l?s:s.map(r)).join(", ")+" {"+f.join(" ")+"}")}for(var a in t)i(o(a),t[a],this.rules)}return it(e,[{key:"getRules",value:function(){return this.rules.join(`
|
|
110
|
+
`)}}],[{key:"newName",value:function(){var t=QA[GA]||1;return QA[GA]=t+1,"ͼ"+t.toString(36)}},{key:"mount",value:function(t,n,r){var o=t[$y],i=r&&r.nonce;o?i&&o.setNonce(i):o=new Mgt(t,i),o.mount(Array.isArray(n)?n:[n])}}]),e}(),YA=new Map,Mgt=function(){function e(t,n){ot(this,e);var r=t.ownerDocument||t,o=r.defaultView;if(!t.head&&t.adoptedStyleSheets&&o.CSSStyleSheet){var i=YA.get(r);if(i)return t.adoptedStyleSheets=[i.sheet].concat($e(t.adoptedStyleSheets)),t[$y]=i;this.sheet=new o.CSSStyleSheet,t.adoptedStyleSheets=[this.sheet].concat($e(t.adoptedStyleSheets)),YA.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[$y]=this}return it(e,[{key:"mount",value:function(t){for(var n=this.sheet,r=0,o=0,i=0;i<t.length;i++){var a=t[i],s=this.modules.indexOf(a);if(s<o&&s>-1&&(this.modules.splice(s,1),o--,s=-1),s==-1){if(this.modules.splice(o++,0,a),n)for(var c=0;c<a.rules.length;c++)n.insertRule(a.rules[c],r++)}else{for(;o<s;)r+=this.modules[o++].rules.length;r+=a.rules.length,o++}}if(!n){for(var u="",l=0;l<this.modules.length;l++)u+=this.modules[l].getRules()+`
|
|
111
|
+
`;this.styleTag.textContent=u}}},{key:"setNonce",value:function(t){this.styleTag&&this.styleTag.getAttribute("nonce")!=t&&this.styleTag.setAttribute("nonce",t)}}]),e}(),Kc={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:"'"},Vh={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},XA=typeof navigator<"u"&&/Chrome\/(\d+)/.exec(navigator.userAgent),Agt=typeof navigator<"u"&&/Mac/.test(navigator.platform),Pgt=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),Tgt=Agt||XA&&+XA[1]<57,yo=0;yo<10;yo++)Kc[48+yo]=Kc[96+yo]=String(yo);for(yo=1;yo<=24;yo++)Kc[yo+111]="F"+yo;for(yo=65;yo<=90;yo++)Kc[yo]=String.fromCharCode(yo+32),Vh[yo]=String.fromCharCode(yo);for(var Cy in Kc)Vh.hasOwnProperty(Cy)||(Vh[Cy]=Kc[Cy]);function Eg(e){return(e.nodeType==11?e.getSelection?e:e.ownerDocument:e).getSelection()}function nx(e,t){return!!t&&(e==t||e.contains(t.nodeType!=1?t.parentNode:t))}function km(e,t){if(!t.anchorNode)return!1;try{return nx(e,t.anchorNode)}catch{return!1}}function Wh(e){return e.nodeType==3?rl(e,0,e.nodeValue.length).getClientRects():e.nodeType==1?e.getClientRects():[]}function Og(e,t,n,r){return!!n&&(ZA(e,t,n,r,-1)||ZA(e,t,n,r,1))}function Mg(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t}function ZA(e,t,n,r,o){for(;;){if(e==n&&t==r)return!0;if(t==(o<0?0:Jc(e))){if(e.nodeName=="DIV")return!1;var i=e.parentNode;if(!i||i.nodeType!=1)return!1;t=Mg(e)+(o<0?0:1),e=i}else{if(e.nodeType!=1||(e=e.childNodes[t+(o<0?-1:0)]).nodeType==1&&e.contentEditable=="false")return!1;t=o<0?Jc(e):0}}}function Jc(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function Oj(e,t){var n=t?e.left:e.right;return{left:n,right:n,top:e.top,bottom:e.bottom}}function Rgt(e){return{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}var tP,Igt=function(){function e(){ot(this,e),this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}return it(e,[{key:"eq",value:function(t){return this.anchorNode==t.anchorNode&&this.anchorOffset==t.anchorOffset&&this.focusNode==t.focusNode&&this.focusOffset==t.focusOffset}},{key:"setRange",value:function(t){var n=t.anchorNode,r=t.focusNode;this.set(n,Math.min(t.anchorOffset,n?Jc(n):0),r,Math.min(t.focusOffset,r?Jc(r):0))}},{key:"set",value:function(t,n,r,o){this.anchorNode=t,this.anchorOffset=n,this.focusNode=r,this.focusOffset=o}}]),e}(),xl=null;function ZB(e){if(e.setActive)return e.setActive();if(xl)return e.focus(xl);for(var t=[],n=e;n&&(t.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(e.focus(xl==null?{get preventScroll(){return xl={preventScroll:!0},!0}}:void 0),!xl){xl=!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 rl(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t,r=tP||(tP=document.createRange());return r.setEnd(e,n),r.setStart(e,t),r}function cf(e,t,n){var r={key:t,code:t,keyCode:n,which:n,cancelable:!0},o=new KeyboardEvent("keydown",r);o.synthetic=!0,e.dispatchEvent(o);var i=new KeyboardEvent("keyup",r);return i.synthetic=!0,e.dispatchEvent(i),o.defaultPrevented||i.defaultPrevented}function tF(e){for(;e.attributes.length;)e.removeAttributeNode(e.attributes[0])}function eF(e){return e.scrollTop>Math.max(1,e.scrollHeight-e.clientHeight-4)}var Ii=function(){function e(t,n){var r=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2];ot(this,e),this.node=t,this.offset=n,this.precise=r}return it(e,null,[{key:"before",value:function(t,n){return new e(t.parentNode,Mg(t),n)}},{key:"after",value:function(t,n){return new e(t.parentNode,Mg(t)+1,n)}}]),e}(),Mj=[],Rr=function(){function e(){ot(this,e),this.parent=null,this.dom=null,this.flags=2}return it(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(t){var n,r=this.posAtStart,o=ht(this.children);try{for(o.s();!(n=o.n()).done;){var i=n.value;if(i==t)return r;r+=i.length+i.breakAfter}}catch(a){o.e(a)}finally{o.f()}throw new RangeError("Invalid child in posBefore")}},{key:"posAfter",value:function(t){return this.posBefore(t)+t.length}},{key:"sync",value:function(t,n){if(2&this.flags){var r,o,i=this.dom,a=null,s=ht(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=eP(r);else i.insertBefore(c.dom,r);a=c.dom}}catch(h){s.e(h)}finally{s.f()}for((r=a?a.nextSibling:i.firstChild)&&n&&n.node==i&&(n.written=!0);r;)r=eP(r)}else if(1&this.flags){var l,f=ht(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(h){f.e(h)}finally{f.f()}}}},{key:"reuseDOM",value:function(t){}},{key:"localPosFromDOM",value:function(t,n){var r;if(t==this.dom)r=this.dom.childNodes[n];else{for(var o=Jc(t)==0?0:n==0?-1:1;;){var i=t.parentNode;if(i==this.dom)break;o==0&&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(t,n){for(var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=-1,i=-1,a=-1,s=-1,c=0,u=r,l=r;c<this.children.length;c++){var f=this.children[c],d=u+f.length;if(u<t&&d>n)return f.domBoundsAround(t,n,u);if(d>=t&&o==-1&&(o=c,i=u),u>n&&f.dom.parentNode==this.dom){a=c,s=l;break}l=d,u=d+f.breakAfter}return{from:i,to:s<0?r+this.length:s,startDOM:(o?this.children[o-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:a<this.children.length&&a>=0?this.children[a].dom:null}}},{key:"markDirty",value:function(){var t=arguments.length>0&&arguments[0]!==void 0&&arguments[0];this.flags|=2,this.markParentsDirty(t)}},{key:"markParentsDirty",value:function(t){for(var n=this.parent;n;n=n.parent){if(t&&(n.flags|=2),1&n.flags)return;n.flags|=1,t=!1}}},{key:"setParent",value:function(t){this.parent!=t&&(this.parent=t,7&this.flags&&this.markParentsDirty(!0))}},{key:"setDOM",value:function(t){this.dom&&(this.dom.cmView=null),this.dom=t,t.cmView=this}},{key:"rootView",get:function(){for(var t=this;;){var n=t.parent;if(!n)return t;t=n}}},{key:"replaceChildren",value:function(t,n){var r,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Mj;this.markDirty();for(var i=t;i<n;i++){var a=this.children[i];a.parent==this&&a.destroy()}(r=this.children).splice.apply(r,[t,n-t].concat($e(o)));for(var s=0;s<o.length;s++)o[s].setParent(this)}},{key:"ignoreMutation",value:function(t){return!1}},{key:"ignoreEvent",value:function(t){return!1}},{key:"childCursor",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.length;return new nF(this.children,t,this.children.length)}},{key:"childPos",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return this.childCursor().findPos(t,n)}},{key:"toString",value:function(){var t=this.constructor.name.replace("View","");return t+(this.children.length?"("+this.children.join()+")":this.length?"["+(t=="Text"?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(t,n,r,o,i,a){return!1}},{key:"become",value:function(t){return!1}},{key:"canReuseDOM",value:function(t){return t.constructor==this.constructor&&!(8&(this.flags|t.flags))}},{key:"getSide",value:function(){return 0}},{key:"destroy",value:function(){this.parent=null}}],[{key:"get",value:function(t){return t.cmView}}]),e}();function eP(e){var t=e.nextSibling;return e.parentNode.removeChild(e),t}Rr.prototype.breakAfter=0;var nF=function(){function e(t,n,r){ot(this,e),this.children=t,this.pos=n,this.i=r,this.off=0}return it(e,[{key:"findPos",value:function(t){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;;){if(t>this.pos||t==this.pos&&(n>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=t-this.pos,this;var r=this.children[--this.i];this.pos-=r.length+r.breakAfter}}}]),e}();function rF(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,n==0,s,c))){if(r<u.length){var h=u[r];h&&o<h.length?(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.merge(0,o,null,!1,0,c),i.push(h))):h!=null&&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&&l.children[l.children.length-1].length==0)&&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 oF(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,p=t-n,v=ht(r);try{for(v.s();!(a=v.n()).done;)p+=a.value.length}catch(m){v.e(m)}finally{v.f()}e.length+=p,rF(e,d,h,u,l,r,0,o,i)}var Bl="",iF=function(){function e(t,n){ot(this,e),this.points=t,this.text="",this.lineSeparator=n.facet(fr.lineSeparator)}return it(e,[{key:"append",value:function(t){this.text+=t}},{key:"lineBreak",value:function(){this.text+=Bl}},{key:"readRange",value:function(t,n){if(!t)return this;for(var r=t.parentNode,o=t;;){this.findPointBefore(r,o);var i=this.text.length;this.readNode(o);var a=o.nextSibling;if(a==n)break;var s=Rr.get(o),c=Rr.get(a);(s&&c?s.breakAfter:(s?s.breakAfter:nP(o))||nP(a)&&(o.nodeName!="BR"||o.cmIgnore)&&this.text.length>i)&&this.lineBreak(),o=a}return this.findPointBefore(r,n),this}},{key:"readTextNode",value:function(t){var n,r=t.nodeValue,o=ht(this.points);try{for(o.s();!(n=o.n()).done;){var i=n.value;i.node==t&&(i.pos=this.text.length+Math.min(i.offset,r.length))}}catch(p){o.e(p)}finally{o.f()}for(var a=0,s=this.lineSeparator?null:/\r\n?|\n/g;;){var c=-1,u=1,l=void 0;if(this.lineSeparator?(c=r.indexOf(this.lineSeparator,a),u=this.lineSeparator.length):(l=s.exec(r))&&(c=l.index,u=l[0].length),this.append(r.slice(a,c<0?r.length:c)),c<0)break;if(this.lineBreak(),u>1){var f,d=ht(this.points);try{for(d.s();!(f=d.n()).done;){var h=f.value;h.node==t&&h.pos>this.text.length&&(h.pos-=u-1)}}catch(p){d.e(p)}finally{d.f()}}a=c+u}}},{key:"readNode",value:function(t){if(!t.cmIgnore){var n=Rr.get(t),r=n&&n.overrideDOMText;if(r!=null){this.findPointInside(t,r.length);for(var o=r.iter();!o.next().done;)o.lineBreak?this.lineBreak():this.append(o.value)}else t.nodeType==3?this.readTextNode(t):t.nodeName=="BR"?t.nextSibling&&this.lineBreak():t.nodeType==1&&this.readRange(t.firstChild,null)}}},{key:"findPointBefore",value:function(t,n){var r,o=ht(this.points);try{for(o.s();!(r=o.n()).done;){var i=r.value;i.node==t&&t.childNodes[i.offset]==n&&(i.pos=this.text.length)}}catch(a){o.e(a)}finally{o.f()}}},{key:"findPointInside",value:function(t,n){var r,o=ht(this.points);try{for(o.s();!(r=o.n()).done;){var i=r.value;(t.nodeType==3?i.node==t:t.contains(i.node))&&(i.pos=this.text.length+Math.min(n,i.offset))}}catch(a){o.e(a)}finally{o.f()}}}]),e}();function nP(e){return e.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(e.nodeName)}var rP=it(function e(t,n){ot(this,e),this.node=t,this.offset=n,this.pos=-1}),di=typeof navigator<"u"?navigator:{userAgent:"",vendor:"",platform:""},rx=typeof document<"u"?document:{documentElement:{style:{}}},ox=/Edge\/(\d+)/.exec(di.userAgent),aF=/MSIE \d/.test(di.userAgent),ix=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(di.userAgent),r1=!!(aF||ix||ox),oP=!r1&&/gecko\/(\d+)/i.test(di.userAgent),Ey=!r1&&/Chrome\/(\d+)/.exec(di.userAgent),iP="webkitFontSmoothing"in rx.documentElement.style,sF=!r1&&/Apple Computer/.test(di.vendor),aP=sF&&(/Mobile\/\w+/.test(di.userAgent)||di.maxTouchPoints>2),_e={mac:aP||/Mac/.test(di.platform),windows:/Win/.test(di.platform),linux:/Linux|X11/.test(di.platform),ie:r1,ie_version:aF?rx.documentMode||6:ix?+ix[1]:ox?+ox[1]:0,gecko:oP,gecko_version:oP?+(/Firefox\/(\d+)/.exec(di.userAgent)||[0,0])[1]:0,chrome:!!Ey,chrome_version:Ey?+Ey[1]:0,ios:aP,android:/Android\b/.test(di.userAgent),webkit:iP,safari:sF,webkit_version:iP?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:rx.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"},ol=function(e){Tt(n,Rr);var t=Rt(n);function n(r){var o;return ot(this,n),(o=t.call(this)).text=r,o}return it(n,[{key:"length",get:function(){return this.text.length}},{key:"createDOM",value:function(r){this.setDOM(r||document.createTextNode(this.text))}},{key:"sync",value:function(r,o){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(o&&o.node==this.dom&&(o.written=!0),this.dom.nodeValue=this.text)}},{key:"reuseDOM",value:function(r){r.nodeType==3&&this.createDOM(r)}},{key:"merge",value:function(r,o,i){return!(8&this.flags||i&&(!(i instanceof n)||this.length-(o-r)+i.length>256||8&i.flags))&&(this.text=this.text.slice(0,r)+(i?i.text:"")+this.text.slice(o),this.markDirty(),!0)}},{key:"split",value:function(r){var o=new n(this.text.slice(r));return this.text=this.text.slice(0,r),this.markDirty(),o.flags|=8&this.flags,o}},{key:"localPosFromDOM",value:function(r,o){return r==this.dom?o:o?this.text.length:0}},{key:"domAtPos",value:function(r){return new Ii(this.dom,r)}},{key:"domBoundsAround",value:function(r,o,i){return{from:i,to:i+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}},{key:"coordsAt",value:function(r,o){return function(i,a,s){var c=i.nodeValue.length;a>c&&(a=c);var u=a,l=a,f=0;a==0&&s<0||a==c&&s>=0?_e.chrome||_e.gecko||(a?(u--,f=1):l<c&&(l++,f=-1)):s<0?u--:l<c&&l++;var d=rl(i,u,l).getClientRects();if(!d.length)return null;var h=d[(f?f<0:s>=0)?0:d.length-1];return _e.safari&&!f&&h.width==0&&(h=Array.prototype.find.call(d,function(p){return p.width})||h),f?Oj(h,f<0):h||null}(this.dom,r,o)}}]),n}(),Af=function(e){Tt(n,Rr);var t=Rt(n);function n(r){var o,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;ot(this,n),(o=t.call(this)).mark=r,o.children=i,o.length=a;var s,c=ht(i);try{for(c.s();!(s=c.n()).done;)s.value.setParent(he(o))}catch(u){c.e(u)}finally{c.f()}return o}return it(n,[{key:"setAttrs",value:function(r){if(tF(r),this.mark.class&&(r.className=this.mark.class),this.mark.attrs)for(var o in this.mark.attrs)r.setAttribute(o,this.mark.attrs[o]);return r}},{key:"canReuseDOM",value:function(r){return jn(ln(n.prototype),"canReuseDOM",this).call(this,r)&&!(8&(this.flags|r.flags))}},{key:"reuseDOM",value:function(r){r.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(r),this.flags|=6)}},{key:"sync",value:function(r,o){this.dom?4&this.flags&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),jn(ln(n.prototype),"sync",this).call(this,r,o)}},{key:"merge",value:function(r,o,i,a,s,c){return(!i||!(!(i instanceof n&&i.mark.eq(this.mark))||r&&s<=0||o<this.length&&c<=0))&&(oF(this,r,o,i?i.children:[],s-1,c-1),this.markDirty(),!0)}},{key:"split",value:function(r){var o,i=[],a=0,s=-1,c=0,u=ht(this.children);try{for(u.s();!(o=u.n()).done;){var l=o.value,f=a+l.length;f>r&&i.push(a<r?l.split(r-a):l),s<0&&a>=r&&(s=c),a=f,c++}}catch(h){u.e(h)}finally{u.f()}var d=this.length-r;return this.length=r,s>-1&&(this.children.length=s,this.markDirty()),new n(this.mark,i,d)}},{key:"domAtPos",value:function(r){return cF(this,r)}},{key:"coordsAt",value:function(r,o){return lF(this,r,o)}}]),n}(),Aj=function(e){Tt(n,Rr);var t=Rt(n);function n(r,o,i){var a;return ot(this,n),(a=t.call(this)).widget=r,a.length=o,a.side=i,a.prevWidget=null,a}return it(n,[{key:"split",value:function(r){var o=n.create(this.widget,this.length-r,this.side);return this.length-=r,o}},{key:"sync",value:function(r){this.dom&&this.widget.updateDOM(this.dom,r)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(r)),this.dom.contentEditable="false")}},{key:"getSide",value:function(){return this.side}},{key:"merge",value:function(r,o,i,a,s,c){return!(i&&(!(i instanceof n&&this.widget.compare(i.widget))||r>0&&s<=0||o<this.length&&c<=0))&&(this.length=r+(i?i.length:0)+(this.length-o),!0)}},{key:"become",value:function(r){return r instanceof n&&r.side==this.side&&this.widget.constructor==r.widget.constructor&&(this.widget.compare(r.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=r.widget,this.length=r.length,!0)}},{key:"ignoreMutation",value:function(){return!0}},{key:"ignoreEvent",value:function(r){return this.widget.ignoreEvent(r)}},{key:"overrideDOMText",get:function(){if(this.length==0)return Yn.empty;for(var r=this;r.parent;)r=r.parent;var o=r.view,i=o&&o.state.doc,a=this.posAtStart;return i?i.slice(a,a+this.length):Yn.empty}},{key:"domAtPos",value:function(r){return(this.length?r==0:this.side>0)?Ii.before(this.dom):Ii.after(this.dom,r==this.length)}},{key:"domBoundsAround",value:function(){return null}},{key:"coordsAt",value:function(r,o){var i=this.widget.coordsAt(this.dom,r,o);if(i)return i;var a=this.dom.getClientRects(),s=null;if(!a.length)return null;for(var c=this.side?this.side<0:r>0,u=c?a.length-1:0;s=a[u],!(r>0?u==0:u==a.length-1||s.top<s.bottom);u+=c?-1:1);return Oj(s,!c)}},{key:"isEditable",get:function(){return!1}},{key:"isWidget",get:function(){return!0}},{key:"isHidden",get:function(){return this.widget.isHidden}},{key:"destroy",value:function(){jn(ln(n.prototype),"destroy",this).call(this),this.dom&&this.widget.destroy(this.dom)}}],[{key:"create",value:function(r,o,i){return new n(r,o,i)}}]),n}(),ax=function(e){Tt(n,Rr);var t=Rt(n);function n(r){var o;return ot(this,n),(o=t.call(this)).side=r,o}return it(n,[{key:"length",get:function(){return 0}},{key:"merge",value:function(){return!1}},{key:"become",value:function(r){return r instanceof n&&r.side==this.side}},{key:"split",value:function(){return new n(this.side)}},{key:"sync",value:function(){if(!this.dom){var r=document.createElement("img");r.className="cm-widgetBuffer",r.setAttribute("aria-hidden","true"),this.setDOM(r)}}},{key:"getSide",value:function(){return this.side}},{key:"domAtPos",value:function(r){return this.side>0?Ii.before(this.dom):Ii.after(this.dom)}},{key:"localPosFromDOM",value:function(){return 0}},{key:"domBoundsAround",value:function(){return null}},{key:"coordsAt",value:function(r){return this.dom.getBoundingClientRect()}},{key:"overrideDOMText",get:function(){return Yn.empty}},{key:"isHidden",get:function(){return!0}}]),n}();function cF(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 Ii(n,0)}function uF(e,t,n){var r,o=e.children;n>0&&t instanceof Af&&o.length&&(r=o[o.length-1])instanceof Af&&r.mark.eq(t.mark)?uF(r,t.children[0],n-1):(o.push(t),t.setParent(e)),e.length+=t.length}function lF(e,t,n){var r=null,o=-1,i=null,a=-1;(function c(u,l){for(var f=0,d=0;f<u.children.length&&d<=l;f++){var h=u.children[f],p=d+h.length;p>=l&&(h.children.length?c(h,l-d):(!i||i.isHidden&&n>0)&&(p>l||d==p&&h.getSide()>0)?(i=h,a=l-d):(d<l||d==p&&h.getSide()<0&&!h.isHidden)&&(r=h,o=l-d)),d=p}})(e,t);var s=(n<0?r:i)||r||i;return s?s.coordsAt(Math.max(0,s==r?o:a),n):function(c){var u=c.dom.lastChild;if(!u)return c.dom.getBoundingClientRect();var l=Wh(u);return l[l.length-1]||null}(e)}function sx(e,t){for(var n in e)n=="class"&&t.class?t.class+=" "+e.class:n=="style"&&t.style?t.style+=";"+e.style:t[n]=e[n];return t}ol.prototype.children=Aj.prototype.children=ax.prototype.children=Mj;var sP=Object.create(null);function Pj(e,t,n){if(e==t)return!0;e||(e=sP),t||(t=sP);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&&(o.indexOf(s)==-1||e[s]!==t[s]))return!1}return!0}function cx(e,t,n){var r=!1;if(t)for(var o in t)n&&o in n||(r=!0,o=="style"?e.style.cssText="":e.removeAttribute(o));if(n)for(var i in n)t&&t[i]==n[i]||(r=!0,i=="style"?e.style.cssText=n[i]:e.setAttribute(i,n[i]));return r}function Ngt(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 au=function(){function e(){ot(this,e)}return it(e,[{key:"eq",value:function(t){return!1}},{key:"updateDOM",value:function(t,n){return!1}},{key:"compare",value:function(t){return this==t||this.constructor==t.constructor&&this.eq(t)}},{key:"estimatedHeight",get:function(){return-1}},{key:"lineBreaks",get:function(){return 0}},{key:"ignoreEvent",value:function(t){return!0}},{key:"coordsAt",value:function(t,n,r){return null}},{key:"isHidden",get:function(){return!1}},{key:"destroy",value:function(t){}}]),e}(),Nr=function(e){return e[e.Text=0]="Text",e[e.WidgetBefore=1]="WidgetBefore",e[e.WidgetAfter=2]="WidgetAfter",e[e.WidgetRange=3]="WidgetRange",e}(Nr||(Nr={})),Ue=function(e){Tt(n,Pu);var t=Rt(n);function n(r,o,i,a){var s;return ot(this,n),(s=t.call(this)).startSide=r,s.endSide=o,s.widget=i,s.spec=a,s}return it(n,[{key:"heightRelevant",get:function(){return!1}},{key:"hasHeight",value:function(){return!!this.widget&&this.widget.estimatedHeight>-1}}],[{key:"mark",value:function(r){return new Tj(r)}},{key:"widget",value:function(r){var o=Math.max(-1e4,Math.min(1e4,r.side||0)),i=!!r.block;return o+=i&&!r.inlineOrder?o>0?3e8:-4e8:o>0?1e8:-1e8,new Pf(r,o,o,i,r.widget||null,!1)}},{key:"replace",value:function(r){var o,i,a=!!r.block;if(r.isBlockGap)o=-5e8,i=4e8;else{var s=fF(r,a);o=(s.start?a?-3e8:-1:5e8)-1,i=1+(s.end?a?2e8:1:-6e8)}return new Pf(r,o,i,a,r.widget||null,!0)}},{key:"line",value:function(r){return new ux(r)}},{key:"set",value:function(r){var o=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return vr.of(r,o)}}]),n}();Ue.none=vr.empty;var Tj=function(e){Tt(n,Ue);var t=Rt(n);function n(r){var o;ot(this,n);var i=fF(r),a=i.start,s=i.end;return(o=t.call(this,a?-1:5e8,s?1:-6e8,null,r)).tagName=r.tagName||"span",o.class=r.class||"",o.attrs=r.attributes||null,o}return it(n,[{key:"eq",value:function(r){var o,i;return this==r||r instanceof n&&this.tagName==r.tagName&&(this.class||((o=this.attrs)===null||o===void 0?void 0:o.class))==(r.class||((i=r.attrs)===null||i===void 0?void 0:i.class))&&Pj(this.attrs,r.attrs,"class")}},{key:"range",value:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r;if(r>=o)throw new RangeError("Mark decorations may not be empty");return jn(ln(n.prototype),"range",this).call(this,r,o)}}]),n}();Tj.prototype.point=!1;var ux=function(e){Tt(n,Ue);var t=Rt(n);function n(r){return ot(this,n),t.call(this,-2e8,-2e8,null,r)}return it(n,[{key:"eq",value:function(r){return r instanceof n&&this.spec.class==r.spec.class&&Pj(this.spec.attributes,r.spec.attributes)}},{key:"range",value:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r;if(o!=r)throw new RangeError("Line decoration ranges must be zero-length");return jn(ln(n.prototype),"range",this).call(this,r,o)}}]),n}();ux.prototype.mapMode=qo.TrackBefore,ux.prototype.point=!0;var Pf=function(e){Tt(n,Ue);var t=Rt(n);function n(r,o,i,a,s,c){var u;return ot(this,n),(u=t.call(this,o,i,s,r)).block=a,u.isReplace=c,u.mapMode=a?o<=0?qo.TrackBefore:qo.TrackAfter:qo.TrackDel,u}return it(n,[{key:"type",get:function(){return this.startSide<this.endSide?Nr.WidgetRange:this.startSide<=0?Nr.WidgetBefore:Nr.WidgetAfter}},{key:"heightRelevant",get:function(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}},{key:"eq",value:function(r){return r instanceof n&&function(o,i){return o==i||!!(o&&i&&o.compare(i))}(this.widget,r.widget)&&this.block==r.block&&this.startSide==r.startSide&&this.endSide==r.endSide}},{key:"range",value:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r;if(this.isReplace&&(r>o||r==o&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&o!=r)throw new RangeError("Widget decorations can only have zero-length ranges");return jn(ln(n.prototype),"range",this).call(this,r,o)}}]),n}();function fF(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=e.inclusiveStart,r=e.inclusiveEnd;return n==null&&(n=e.inclusive),r==null&&(r=e.inclusive),{start:n??t,end:r??t}}function lx(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=n.length-1;o>=0&&n[o]+r>=e?n[o]=Math.max(n[o],t):n.push(e,t)}Pf.prototype.point=!0;var aa=function(e){Tt(n,Rr);var t=Rt(n);function n(){var r;return ot(this,n),(r=t.apply(this,arguments)).children=[],r.length=0,r.prevAttrs=void 0,r.attrs=null,r.breakAfter=0,r}return it(n,[{key:"merge",value:function(r,o,i,a,s,c){if(i){if(!(i instanceof n))return!1;this.dom||i.transferDOM(this)}return a&&this.setDeco(i?i.attrs:null),oF(this,r,o,i?i.children:[],s,c),!0}},{key:"split",value:function(r){var o=new n;if(o.breakAfter=this.breakAfter,this.length==0)return o;var i=this.childPos(r),a=i.i,s=i.off;s&&(o.append(this.children[a].split(s),0),this.children[a].merge(s,this.children[a].length,null,!1,0,0),a++);for(var c=a;c<this.children.length;c++)o.append(this.children[c],0);for(;a>0&&this.children[a-1].length==0;)this.children[--a].destroy();return this.children.length=a,this.markDirty(),this.length=r,o}},{key:"transferDOM",value:function(r){this.dom&&(this.markDirty(),r.setDOM(this.dom),r.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}},{key:"setDeco",value:function(r){Pj(this.attrs,r)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=r)}},{key:"append",value:function(r,o){uF(this,r,o)}},{key:"addLineDeco",value:function(r){var o=r.spec.attributes,i=r.spec.class;o&&(this.attrs=sx(o,this.attrs||{})),i&&(this.attrs=sx({class:i},this.attrs||{}))}},{key:"domAtPos",value:function(r){return cF(this,r)}},{key:"reuseDOM",value:function(r){r.nodeName=="DIV"&&(this.setDOM(r),this.flags|=6)}},{key:"sync",value:function(r,o){var i;this.dom?4&this.flags&&(tF(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),this.prevAttrs!==void 0&&(cx(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),jn(ln(n.prototype),"sync",this).call(this,r,o);for(var a=this.dom.lastChild;a&&Rr.get(a)instanceof Af;)a=a.lastChild;if(!(a&&this.length&&(a.nodeName=="BR"||((i=Rr.get(a))===null||i===void 0?void 0:i.isEditable)!=0||_e.ios&&this.children.some(function(c){return c instanceof ol})))){var s=document.createElement("BR");s.cmIgnore=!0,this.dom.appendChild(s)}}},{key:"measureTextSize",value:function(){if(this.children.length==0||this.length>20)return null;var r,o,i=0,a=ht(this.children);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(!(s instanceof ol)||/[^ -~]/.test(s.text))return null;var c=Wh(s.dom);if(c.length!=1)return null;i+=c[0].width,r=c[0].height}}catch(u){a.e(u)}finally{a.f()}return i?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:i/this.length,textHeight:r}:null}},{key:"coordsAt",value:function(r,o){var i=lF(this,r,o);if(!this.children.length&&i&&this.parent){var a=this.parent.view.viewState.heightOracle,s=i.bottom-i.top;if(Math.abs(s-a.lineHeight)<2&&a.textHeight<s){var c=(s-a.textHeight)/2;return{top:i.top+c,bottom:i.bottom-c,left:i.left,right:i.left}}}return i}},{key:"become",value:function(r){return!1}},{key:"type",get:function(){return Nr.Text}}],[{key:"find",value:function(r,o){for(var i=0,a=0;i<r.children.length;i++){var s=r.children[i],c=a+s.length;if(c>=o){if(s instanceof n)return s;if(c>o)break}a=c+s.breakAfter}return null}}]),n}(),fx=function(e){Tt(n,Rr);var t=Rt(n);function n(r,o,i){var a;return ot(this,n),(a=t.call(this)).widget=r,a.length=o,a.type=i,a.breakAfter=0,a.prevWidget=null,a}return it(n,[{key:"merge",value:function(r,o,i,a,s,c){return!(i&&(!(i instanceof n&&this.widget.compare(i.widget))||r>0&&s<=0||o<this.length&&c<=0))&&(this.length=r+(i?i.length:0)+(this.length-o),!0)}},{key:"domAtPos",value:function(r){return r==0?Ii.before(this.dom):Ii.after(this.dom,r==this.length)}},{key:"split",value:function(r){var o=this.length-r;this.length=r;var i=new n(this.widget,o,this.type);return i.breakAfter=this.breakAfter,i}},{key:"children",get:function(){return Mj}},{key:"sync",value:function(r){this.dom&&this.widget.updateDOM(this.dom,r)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(r)),this.dom.contentEditable="false")}},{key:"overrideDOMText",get:function(){return this.parent?this.parent.view.state.doc.slice(this.posAtStart,this.posAtEnd):Yn.empty}},{key:"domBoundsAround",value:function(){return null}},{key:"become",value:function(r){return r instanceof n&&r.widget.constructor==this.widget.constructor&&(r.widget.compare(this.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=r.widget,this.length=r.length,this.type=r.type,this.breakAfter=r.breakAfter,!0)}},{key:"ignoreMutation",value:function(){return!0}},{key:"ignoreEvent",value:function(r){return this.widget.ignoreEvent(r)}},{key:"isEditable",get:function(){return!1}},{key:"isWidget",get:function(){return!0}},{key:"coordsAt",value:function(r,o){return this.widget.coordsAt(this.dom,r,o)}},{key:"destroy",value:function(){jn(ln(n.prototype),"destroy",this).call(this),this.dom&&this.widget.destroy(this.dom)}}]),n}(),Oy=function(){function e(t,n,r,o){ot(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 it(e,[{key:"posCovered",value:function(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;var t=this.content[this.content.length-1];return!(t.breakAfter||t instanceof fx&&t.type==Nr.WidgetBefore)}},{key:"getLine",value:function(){return this.curLine||(this.content.push(this.curLine=new aa),this.atCursorPos=!0),this.curLine}},{key:"flushBuffer",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.bufferMarks;this.pendingBuffer&&(this.curLine.append(xv(new ax(-1),t),t.length),this.pendingBuffer=0)}},{key:"addBlockWidget",value:function(t){this.flushBuffer(),this.curLine=null,this.content.push(t)}},{key:"finish",value:function(t){this.pendingBuffer&&t<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,this.posCovered()||this.getLine()}},{key:"buildText",value:function(t,n,r){for(;t>0;){if(this.textOff==this.text.length){var o=this.cursor.next(this.skip),i=o.value,a=o.lineBreak,s=o.done;if(this.skip=0,s)throw new Error("Ran out of text content when drawing inline views");if(a){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,t--;continue}this.text=i,this.textOff=0}var c=Math.min(this.text.length-this.textOff,t,512);this.flushBuffer(n.slice(n.length-r)),this.getLine().append(xv(new ol(this.text.slice(this.textOff,this.textOff+c)),n),r),this.atCursorPos=!0,this.textOff+=c,t-=c,r=0}}},{key:"span",value:function(t,n,r,o){this.buildText(n-t,r,o),this.pos=n,this.openStart<0&&(this.openStart=o)}},{key:"point",value:function(t,n,r,o,i,a){if(this.disallowBlockEffectsFor[a]&&r instanceof Pf){if(r.block)throw new RangeError("Block decorations may not be specified via plugins");if(n>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}var s=n-t;if(r instanceof Pf)if(r.block){var c=r.type;c!=Nr.WidgetAfter||this.posCovered()||this.getLine(),this.addBlockWidget(new fx(r.widget||new cP("div"),s,c))}else{var u=Aj.create(r.widget||new cP("span"),s,s?0:r.startSide),l=this.atCursorPos&&!u.isEditable&&i<=o.length&&(t<n||r.startSide>0),f=!u.isEditable&&(t<n||i>o.length||r.startSide<=0),d=this.getLine();this.pendingBuffer!=2||l||u.isEditable||(this.pendingBuffer=0),this.flushBuffer(o),l&&(d.append(xv(new ax(1),o),i),i=o.length+Math.max(0,i-o.length)),d.append(xv(u,o),i),this.atCursorPos=f,this.pendingBuffer=f?t<n||i>o.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=o.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(r);s&&(this.textOff+s<=this.text.length?this.textOff+=s:(this.skip+=s-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=n),this.openStart<0&&(this.openStart=i)}}],[{key:"build",value:function(t,n,r,o,i){var a=new e(t,n,r,i);return a.openEnd=vr.spans(o,n,r,a),a.openStart<0&&(a.openStart=a.openEnd),a.finish(a.openEnd),a}}]),e}();function xv(e,t){var n,r=ht(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;e=new Af(o,[e],e.length)}}catch(i){r.e(i)}finally{r.f()}return e}var cP=function(e){Tt(n,au);var t=Rt(n);function n(r){var o;return ot(this,n),(o=t.call(this)).tag=r,o}return it(n,[{key:"eq",value:function(r){return r.tag==this.tag}},{key:"toDOM",value:function(){return document.createElement(this.tag)}},{key:"updateDOM",value:function(r){return r.nodeName.toLowerCase()==this.tag}},{key:"isHidden",get:function(){return!0}}]),n}(),dF=xe.define(),hF=xe.define(),pF=xe.define(),vF=xe.define(),dx=xe.define(),mF=xe.define(),gF=xe.define(),yF=xe.define({combine:function(e){return e.some(function(t){return t})}}),bF=xe.define({combine:function(e){return e.some(function(t){return t})}}),uP=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"nearest",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"nearest",o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:5,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:5;ot(this,e),this.range=t,this.y=n,this.x=r,this.yMargin=o,this.xMargin=i}return it(e,[{key:"map",value:function(t){return t.empty?this:new e(this.range.map(t),this.y,this.x,this.yMargin,this.xMargin)}}]),e}(),lP=wn.define({map:function(e,t){return e.map(t)}});function yi(e,t,n){var r=e.facet(vF);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 o1=xe.define({combine:function(e){return!e.length||e[0]}}),Dgt=0,Bd=xe.define(),io=function(){function e(t,n,r,o){ot(this,e),this.id=t,this.create=n,this.domEventHandlers=r,this.extension=o(this)}return it(e,null,[{key:"define",value:function(t,n){var r=n||{},o=r.eventHandlers,i=r.provide,a=r.decorations;return new e(Dgt++,t,o,function(s){var c=[Bd.of(s)];return a&&c.push(Uh.of(function(u){var l=u.plugin(s);return l?a(l):Ue.none})),i&&c.push(i(s)),c})}},{key:"fromClass",value:function(t,n){return e.define(function(r){return new t(r)},n)}}]),e}(),My=function(){function e(t){ot(this,e),this.spec=t,this.mustUpdate=null,this.value=null}return it(e,[{key:"update",value:function(t){if(this.value){if(this.mustUpdate){var n=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(n)}catch(r){if(yi(n.state,r,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(t)}catch(r){yi(t.state,r,"CodeMirror plugin crashed"),this.deactivate()}return this}},{key:"destroy",value:function(t){var n;if(!((n=this.value)===null||n===void 0)&&n.destroy)try{this.value.destroy()}catch(r){yi(t.state,r,"CodeMirror plugin crashed")}}},{key:"deactivate",value:function(){this.spec=this.value=null}}]),e}(),wF=xe.define(),Rj=xe.define(),Uh=xe.define(),Ij=xe.define(),xF=xe.define();function fP(e,t,n){var r=e.state.facet(xF);if(!r.length)return r;var o=r.map(function(a){return a instanceof Function?a(e):a}),i=[];return vr.spans(o,t,n,{point:function(){},span:function(a,s,c,u){for(var l=i,f=c.length-1;f>=0;f--,u--){var d=c[f].spec.bidiIsolate,h=void 0;if(d!=null)if(u>0&&l.length&&(h=l[l.length-1]).to==a&&h.direction==d)h.to=s,l=h.inner;else{var p={from:a,to:s,direction:d,inner:[]};l.push(p),l=p.inner}}}}),i}var kF=xe.define();function jF(e){var t,n=0,r=0,o=0,i=0,a=ht(e.state.facet(kF));try{for(a.s();!(t=a.n()).done;){var s=(0,t.value)(e);s&&(s.left!=null&&(n=Math.max(n,s.left)),s.right!=null&&(r=Math.max(r,s.right)),s.top!=null&&(o=Math.max(o,s.top)),s.bottom!=null&&(i=Math.max(i,s.bottom)))}}catch(c){a.e(c)}finally{a.f()}return{left:n,right:r,top:o,bottom:i}}var Fd=xe.define(),xc=function(){function e(t,n,r,o){ot(this,e),this.fromA=t,this.toA=n,this.fromB=r,this.toB=o}return it(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(t){for(var n=t.length,r=this;n>0;n--){var o=t[n-1];if(!(o.fromA>r.toA)){if(o.toA<r.fromA)break;r=r.join(o),t.splice(n-1,1)}}return t.splice(n,0,r),t}}],[{key:"extendWithRanges",value:function(t,n){if(n.length==0)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),p=Math.min(l,d);if(h<=p&&new e(h+u,p+u,h,p).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}}}]),e}(),dP=function(){function e(t,n,r){ot(this,e),this.view=t,this.state=n,this.transactions=r,this.flags=0,this.startState=t.state,this.changes=Oa.empty(this.startState.doc.length);var o,i=ht(r);try{for(i.s();!(o=i.n()).done;){var a=o.value;this.changes=this.changes.compose(a.changes)}}catch(c){i.e(c)}finally{i.f()}var s=[];this.changes.iterChangedRanges(function(c,u,l,f){return s.push(new xc(c,u,l,f))}),this.changedRanges=s}return it(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(t){return t.selection})}},{key:"empty",get:function(){return this.flags==0&&this.transactions.length==0}}],[{key:"create",value:function(t,n,r){return new e(t,n,r)}}]),e}(),Ir=function(e){return e[e.LTR=0]="LTR",e[e.RTL=1]="RTL",e}(Ir||(Ir={})),Kh=Ir.LTR,_F=Ir.RTL;function hP(e){for(var t=[],n=0;n<e.length;n++)t.push(1<<+e[n]);return t}for(var Lgt=hP("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),zgt=hP("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),hx=Object.create(null),Da=[],Ay=0,pP=["()","[]","{}"];Ay<pP.length;Ay++){var vP=pP[Ay],mP=vP.charCodeAt(0),gP=vP.charCodeAt(1);hx[mP]=gP,hx[gP]=-mP}var Bgt=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/,kc=function(){function e(t,n,r){ot(this,e),this.from=t,this.to=n,this.level=r}return it(e,[{key:"dir",get:function(){return this.level%2?_F:Kh}},{key:"side",value:function(t,n){return this.dir==n==t?this.to:this.from}}],[{key:"find",value:function(t,n,r,o){for(var i=-1,a=0;a<t.length;a++){var s=t[a];if(s.from<=n&&s.to>=n){if(s.level==r)return a;(i<0||(o!=0?o<0?s.from<n:s.to>n:t[i].level>s.level))&&(i=a)}}if(i<0)throw new RangeError("Index out of range");return i}}]),e}();function SF(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||!SF(r.inner,o.inner))return!1}return!0}var or=[];function px(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=or[c];d!=s&&(l=!1,f=d==16)}var h=l||s!=1?null:[],p=l?r:r+1,v=c;t:for(;;)if(u<i.length&&v==i[u].from){if(f)break t;var m=i[u];if(!l)for(var g=m.to,y=u+1;;){if(g==n)break t;if(!(y<i.length&&i[y].from==g)){if(or[g]==s)break t;break}g=i[y++].to}u++,h?h.push(m):(m.from>c&&a.push(new kc(c,m.from,p)),vx(e,m.direction==Kh!=!(p%2)?r+1:r,o,m.inner,m.from,m.to,a),c=m.to),v=m.to}else{if(v==n||(l?or[v]!=s:or[v]==s))break;v++}h?px(e,c,v,r+1,o,h,a):c<v&&a.push(new kc(c,v,p)),c=v}else for(var b=n,w=i.length;b>t;){var x=!0,k=!1;if(!w||b>i[w-1].to){var E=or[b-1];E!=s&&(x=!1,k=E==16)}var _=x||s!=1?null:[],T=x?r:r+1,$=b;t:for(;;)if(w&&$==i[w-1].to){if(k)break t;var j=i[--w];if(!x)for(var R=j.from,q=w;;){if(R==t)break t;if(!q||i[q-1].to!=R){if(or[R-1]==s)break t;break}R=i[--q].from}_?_.push(j):(j.to<b&&a.push(new kc(j.to,b,T)),vx(e,j.direction==Kh!=!(T%2)?r+1:r,o,j.inner,j.from,j.to,a),b=j.from),$=j.from}else{if($==t||(x?or[$-1]!=s:or[$-1]==s))break;$--}_?px(e,$,b,r+1,o,_,a):$<b&&a.push(new kc($,b,T)),b=$}}function vx(e,t,n,r,o,i,a){var s=t%2?2:1;(function(c,u,l,f,d){for(var h=0;h<=f.length;h++){for(var p=h?f[h-1].to:u,v=h<f.length?f[h].from:l,m=h?256:d,g=p,y=m,b=m;g<v;g++){var w=(R=c.charCodeAt(g))<=247?Lgt[R]:1424<=R&&R<=1524?2:1536<=R&&R<=1785?zgt[R-1536]:1774<=R&&R<=2220?4:8192<=R&&R<=8203?256:64336<=R&&R<=65023?4:R==8204?256:1;w==512?w=y:w==8&&b==4&&(w=16),or[g]=w==4?2:w,7&w&&(b=w),y=w}for(var x=p,k=m,E=m;x<v;x++){var _=or[x];if(_==128)x<v-1&&k==or[x+1]&&24&k?_=or[x]=k:or[x]=256;else if(_==64){for(var T=x+1;T<v&&or[T]==64;)T++;for(var $=x&&k==8||T<l&&or[T]==8?E==1?1:8:256,j=x;j<T;j++)or[j]=$;x=T-1}else _==8&&E==1&&(or[x]=1);k=_,7&_&&(E=_)}}var R})(e,o,i,r,s),function(c,u,l,f,d){for(var h=d==1?2:1,p=0,v=0,m=0;p<=f.length;p++)for(var g,y,b,w=p?f[p-1].to:u,x=p<f.length?f[p].from:l,k=w;k<x;k++)if(y=hx[g=c.charCodeAt(k)])if(y<0){for(var E=v-3;E>=0;E-=3)if(Da[E+1]==-y){var _=Da[E+2],T=2&_?d:4&_?1&_?h:d:0;T&&(or[k]=or[Da[E]]=T),v=E;break}}else{if(Da.length==189)break;Da[v++]=k,Da[v++]=g,Da[v++]=m}else if((b=or[k])==2||b==1){var $=b==d;m=$?0:1;for(var j=v-3;j>=0;j-=3){var R=Da[j+2];if(2&R)break;if($)Da[j+2]|=2;else{if(4&R)break;Da[j+2]|=4}}}}(e,o,i,r,s),function(c,u,l,f){for(var d=0,h=f;d<=l.length;d++)for(var p=d?l[d-1].to:c,v=d<l.length?l[d].from:u,m=p;m<v;){var g=or[m];if(g==256){for(var y=m+1;;)if(y==v){if(d==l.length)break;y=l[d++].to,v=d<l.length?l[d].from:u}else{if(or[y]!=256)break;y++}for(var b=h==1,w=b==((y<u?or[y]:f)==1)?b?1:2:f,x=y,k=d,E=k?l[k-1].to:c;x>m;)x==E&&(x=l[--k].from,E=k?l[k-1].to:c),or[--x]=w;m=y}else h=g,m++}}(o,i,r,s),px(e,o,i,t,n,r,a)}function yP(e){return[new kc(0,e,0)]}var $F="";function Fgt(e,t,n,r,o){var i,a=r.head-e.from,s=-1;if(a==0){if(!o||!e.length)return null;t[0].level!=n&&(a=t[0].side(!1,n),s=0)}else if(a==e.length){if(o)return null;var c=t[t.length-1];c.level!=n&&(a=c.side(!0,n),s=t.length-1)}s<0&&(s=kc.find(t,a,(i=r.bidiLevel)!==null&&i!==void 0?i:-1,r.assoc));var u=t[s];a==u.side(o,n)&&(a=(u=t[s+=o?1:-1]).side(!o,n));var l=o==(u.dir==n),f=Ro(e.text,a,l);if($F=e.text.slice(Math.min(a,f),Math.max(a,f)),f!=u.side(o,n))return Jt.cursor(f+e.from,l?-1:1,u.level);var d=s==(o?t.length-1:0)?null:t[s+(o?1:-1)];return d||u.level==n?d&&d.level<u.level?Jt.cursor(d.side(!o,n)+e.from,o?1:-1,d.level):Jt.cursor(f+e.from,o?-1:1,u.level):Jt.cursor(o?e.to:e.from,o?-1:1,n)}var bP=function(e){Tt(n,Rr);var t=Rt(n);function n(r){var o;return ot(this,n),(o=t.call(this)).view=r,o.decorations=[],o.dynamicDecorationMap=[],o.hasComposition=null,o.markedForComposition=new Set,o.minWidth=0,o.minWidthFrom=0,o.minWidthTo=0,o.impreciseAnchor=null,o.impreciseHead=null,o.forceSelection=!1,o.lastUpdate=Date.now(),o.setDOM(r.contentDOM),o.children=[new aa],o.children[0].setParent(he(o)),o.updateDeco(),o.updateInner([new xc(0,0,0,r.state.doc.length)],0,null),o}return it(n,[{key:"length",get:function(){return this.view.state.doc.length}},{key:"update",value:function(r){var o=this,i=r.changedRanges;this.minWidth>0&&i.length&&(i.every(function(f){var d=f.fromA;return f.toA<o.minWidthFrom||d>o.minWidthTo})?(this.minWidthFrom=r.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=r.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0);var a=this.view.inputState.composing<0?null:function(f,d){var h=CF(f,d.newLength-d.length);if(!h)return null;var p=h.from,v=h.to,m=h.node,g=d.mapPos(p,-1),y=d.mapPos(v,1),b=m.nodeValue;if(/[\n\r]/.test(b))return null;if(y-g!=b.length){var w=d.mapPos(p,1),x=d.mapPos(v,-1);if(x-w==b.length)g=w,y=x;else if(f.state.doc.sliceString(y-b.length,y)==b)g=y-b.length;else{if(f.state.doc.sliceString(g,g+b.length)!=b)return null;y=g+b.length}}var k=f.state.selection.main;if(f.state.doc.sliceString(g,y)!=b||g>k.head||y<k.head)return null;for(var E=[],_=new xc(p,v,g,y),T=m.parentNode;;T=T.parentNode){var $=Rr.get(T);if($ instanceof Af)E.push({node:T,deco:$.mark});else{if($ instanceof aa||T.nodeName=="DIV"&&T.parentNode==f.contentDOM)return{range:_,text:m,marks:E,line:T};if(T==f.contentDOM)return null;E.push({node:T,deco:new Tj({inclusive:!0,attributes:Ngt(T),tagName:T.tagName.toLowerCase()})})}}}(this.view,r.changes);if(this.hasComposition){this.markedForComposition.clear();var s=this.hasComposition,c=s.from,u=s.to;i=new xc(c,u,r.changes.mapPos(c,-1),r.changes.mapPos(u,1)).addToSet(i.slice())}this.hasComposition=a?{from:a.range.fromB,to:a.range.toB}:null,(_e.ie||_e.chrome)&&!a&&r&&r.state.doc.lines!=r.startState.doc.lines&&(this.forceSelection=!0);var l=function(f,d,h){var p=new qgt;return vr.compare(f,d,h,p),p.changes}(this.decorations,this.updateDeco(),r.changes);return i=xc.extendWithRanges(i,l),!!(7&this.flags||i.length!=0)&&(this.updateInner(i,r.startState.doc.length,a),r.transactions.length&&(this.lastUpdate=Date.now()),!0)}},{key:"updateInner",value:function(r,o,i){var a=this;this.view.viewState.mustMeasureContent=!0,this.updateChildren(r,o,i);var s=this.view.observer;s.ignore(function(){a.dom.style.height=a.view.viewState.contentHeight+"px",a.dom.style.flexBasis=a.minWidth?a.minWidth+"px":"";var d=_e.chrome||_e.ios?{node:s.selectionRange.focusNode,written:!1}:void 0;a.sync(a.view,d),a.flags&=-8,d&&(d.written||s.selectionRange.focusNode!=d.node)&&(a.forceSelection=!0),a.dom.style.height=""}),this.markedForComposition.forEach(function(d){return d.flags&=-9});var c=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length){var u,l=ht(this.children);try{for(l.s();!(u=l.n()).done;){var f=u.value;f instanceof fx&&f.widget instanceof wP&&c.push(f.dom)}}catch(d){l.e(d)}finally{l.f()}}s.updateGaps(c)}},{key:"updateChildren",value:function(r,o,i){for(var a=i?i.range.addToSet(r.slice()):r,s=this.childCursor(o),c=a.length-1;;c--){var u=c>=0?a[c]:null;if(!u)break;var l=u.fromA,f=u.toA,d=u.fromB,h=u.toB,p=void 0,v=void 0,m=void 0,g=void 0;if(i&&i.range.fromB<h&&i.range.toB>d){var y=Oy.build(this.view.state.doc,d,i.range.fromB,this.decorations,this.dynamicDecorationMap),b=Oy.build(this.view.state.doc,i.range.toB,h,this.decorations,this.dynamicDecorationMap);v=y.breakAtStart,m=y.openStart,g=b.openEnd;var w=this.compositionView(i);b.breakAtStart?w.breakAfter=1:b.content.length&&w.merge(w.length,w.length,b.content[0],!1,b.openStart,0)&&(w.breakAfter=b.content[0].breakAfter,b.content.shift()),y.content.length&&w.merge(0,0,y.content[y.content.length-1],!0,0,y.openEnd)&&y.content.pop(),p=y.content.concat(w).concat(b.content)}else{var x=Oy.build(this.view.state.doc,d,h,this.decorations,this.dynamicDecorationMap);p=x.content,v=x.breakAtStart,m=x.openStart,g=x.openEnd}var k=s.findPos(f,1),E=k.i,_=k.off,T=s.findPos(l,-1);rF(this,T.i,T.off,E,_,p,v,m,g)}i&&this.fixCompositionDOM(i)}},{key:"compositionView",value:function(r){var o=new ol(r.text.nodeValue);o.flags|=8;var i,a=ht(r.marks);try{for(a.s();!(i=a.n()).done;){var s=i.value.deco;o=new Af(s,[o],o.length)}}catch(u){a.e(u)}finally{a.f()}var c=new aa;return c.append(o,0),c}},{key:"fixCompositionDOM",value:function(r){var o=this,i=function(u,l){l.flags|=8,o.markedForComposition.add(l);var f=Rr.get(u);f!=l&&(f&&(f.dom=null),l.setDOM(u))},a=this.childPos(r.range.fromB,1),s=this.children[a.i];i(r.line,s);for(var c=r.marks.length-1;c>=-1;c--)a=s.childPos(a.off,1),s=s.children[a.i],i(c>=0?r.marks[c].node:r.text,s)}},{key:"updateSelection",value:function(){var r=this,o=arguments.length>1&&arguments[1]!==void 0&&arguments[1];!(arguments.length>0&&arguments[0]!==void 0&&arguments[0])&&this.view.observer.selectionRange.focusNode||this.view.observer.readSelectionRange();var i=this.view.root.activeElement,a=i==this.dom,s=!a&&km(this.dom,this.view.observer.selectionRange)&&!(i&&this.dom.contains(i));if(a||o||s){var c=this.forceSelection;this.forceSelection=!1;var u,l=this.view.state.selection.main,f=this.domAtPos(l.anchor),d=l.empty?f:this.domAtPos(l.head);if(_e.gecko&&l.empty&&!this.hasComposition&&(u=f).node.nodeType==1&&u.node.firstChild&&(u.offset==0||u.node.childNodes[u.offset-1].contentEditable=="false")&&(u.offset==u.node.childNodes.length||u.node.childNodes[u.offset].contentEditable=="false")){var h=document.createTextNode("");this.view.observer.ignore(function(){return f.node.insertBefore(h,f.node.childNodes[f.offset]||null)}),f=d=new Ii(h,0),c=!0}var p=this.view.observer.selectionRange;!c&&p.focusNode&&Og(f.node,f.offset,p.anchorNode,p.anchorOffset)&&Og(d.node,d.offset,p.focusNode,p.focusOffset)||(this.view.observer.ignore(function(){_e.android&&_e.chrome&&r.dom.contains(p.focusNode)&&function(k,E){for(var _=k;_&&_!=E;_=_.assignedSlot||_.parentNode)if(_.nodeType==1&&_.contentEditable=="false")return!0;return!1}(p.focusNode,r.dom)&&(r.dom.blur(),r.dom.focus({preventScroll:!0}));var v,m,g=Eg(r.view.root);if(g)if(l.empty){if(_e.gecko){var y=(v=f.node,m=f.offset,v.nodeType!=1?0:(m&&v.childNodes[m-1].contentEditable=="false"?1:0)|(m<v.childNodes.length&&v.childNodes[m].contentEditable=="false"?2:0));if(y&&y!=3){var b=EF(f.node,f.offset,y==1?1:-1);b&&(f=new Ii(b,y==1?0:b.nodeValue.length))}}g.collapse(f.node,f.offset),l.bidiLevel!=null&&p.caretBidiLevel!=null&&(p.caretBidiLevel=l.bidiLevel)}else if(g.extend){g.collapse(f.node,f.offset);try{g.extend(d.node,d.offset)}catch{}}else{var w=document.createRange();if(l.anchor>l.head){var x=[d,f];f=x[0],d=x[1]}w.setEnd(d.node,d.offset),w.setStart(f.node,f.offset),g.removeAllRanges(),g.addRange(w)}s&&r.view.root.activeElement==r.dom&&(r.dom.blur(),i&&i.focus())}),this.view.observer.setSelectionRange(f,d)),this.impreciseAnchor=f.precise?null:new Ii(p.anchorNode,p.anchorOffset),this.impreciseHead=d.precise?null:new Ii(p.focusNode,p.focusOffset)}}},{key:"enforceCursorAssoc",value:function(){if(!this.hasComposition){var r=this.view,o=r.state.selection.main,i=Eg(r.root),a=r.observer.selectionRange,s=a.anchorNode,c=a.anchorOffset;if(i&&o.empty&&o.assoc&&i.modify){var u=aa.find(this,o.head);if(u){var l=u.posAtStart;if(o.head!=l&&o.head!=l+u.length){var f=this.coordsAt(o.head,-1),d=this.coordsAt(o.head,1);if(f&&d&&!(f.bottom>d.top)){var h=this.domAtPos(o.head+o.assoc);i.collapse(h.node,h.offset),i.modify("move",o.assoc<0?"forward":"backward","lineboundary"),r.observer.readSelectionRange();var p=r.observer.selectionRange;r.docView.posFromDOM(p.anchorNode,p.anchorOffset)!=o.from&&i.collapse(s,c)}}}}}}},{key:"nearest",value:function(r){for(var o=r;o;){var i=Rr.get(o);if(i&&i.rootView==this)return i;o=o.parentNode}return null}},{key:"posFromDOM",value:function(r,o){var i=this.nearest(r);if(!i)throw new RangeError("Trying to find position for a DOM position outside of the document");return i.localPosFromDOM(r,o)+i.posAtStart}},{key:"domAtPos",value:function(r){for(var o=this.childCursor().findPos(r,-1),i=o.i,a=o.off;i<this.children.length-1;){var s=this.children[i];if(a<s.length||s instanceof aa)break;i++,a=0}return this.children[i].domAtPos(a)}},{key:"coordsAt",value:function(r,o){for(var i=this.length,a=this.children.length-1;;a--){var s=this.children[a],c=i-s.breakAfter-s.length;if(r>c||r==c&&s.type!=Nr.WidgetBefore&&s.type!=Nr.WidgetAfter&&(!a||o==2||this.children[a-1].breakAfter||this.children[a-1].type==Nr.WidgetBefore&&o>-2))return s.coordsAt(r-c,o);i=c}}},{key:"coordsForChar",value:function(r){var o=this.childPos(r,1),i=o.i,a=o.off,s=this.children[i];if(!(s instanceof aa))return null;for(;s.children.length;){for(var c=s.childPos(a,1),u=c.i,l=c.off;;u++){if(u==s.children.length)return null;if((s=s.children[u]).length)break}a=l}if(!(s instanceof ol))return null;var f=Ro(s.text,a);if(f==a)return null;var d=rl(s.dom,a,f).getClientRects();return!d.length||d[0].top>=d[0].bottom?null:d[0]}},{key:"measureVisibleLineHeights",value:function(r){for(var o=[],i=r.from,a=r.to,s=this.view.contentDOM.clientWidth,c=s>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,u=-1,l=this.view.textDirection==Ir.LTR,f=0,d=0;d<this.children.length;d++){var h=this.children[d],p=f+h.length;if(p>a)break;if(f>=i){var v=h.dom.getBoundingClientRect();if(o.push(v.height),c){var m=h.dom.lastChild,g=m?Wh(m):[];if(g.length){var y=g[g.length-1],b=l?y.right-v.left:v.right-y.left;b>u&&(u=b,this.minWidth=s,this.minWidthFrom=f,this.minWidthTo=p)}}}f=p+h.breakAfter}return o}},{key:"textDirectionAt",value:function(r){var o=this.childPos(r,1).i;return getComputedStyle(this.children[o].dom).direction=="rtl"?Ir.RTL:Ir.LTR}},{key:"measureTextSize",value:function(){var r,o=this,i=ht(this.children);try{for(i.s();!(r=i.n()).done;){var a=r.value;if(a instanceof aa){var s=a.measureTextSize();if(s)return s}}}catch(d){i.e(d)}finally{i.f()}var c,u,l,f=document.createElement("div");return f.className="cm-line",f.style.width="99999px",f.style.position="absolute",f.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(function(){o.dom.appendChild(f);var d=Wh(f.firstChild)[0];c=f.getBoundingClientRect().height,u=d?d.width/27:7,l=d?d.height:c,f.remove()}),{lineHeight:c,charWidth:u,textHeight:l}}},{key:"childCursor",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.length,o=this.children.length;return o&&(r-=this.children[--o].length),new nF(this.children,r,o)}},{key:"computeBlockGapDeco",value:function(){for(var r=[],o=this.view.viewState,i=0,a=0;;a++){var s=a==o.viewports.length?null:o.viewports[a],c=s?s.from-1:this.length;if(c>i){var u=o.lineBlockAt(c).bottom-o.lineBlockAt(i).top;r.push(Ue.replace({widget:new wP(u),block:!0,inclusive:!0,isBlockGap:!0}).range(i,c))}if(!s)break;i=s.to+1}return Ue.set(r)}},{key:"updateDeco",value:function(){for(var r=this,o=this.view.state.facet(Uh).map(function(a,s){return(r.dynamicDecorationMap[s]=typeof a=="function")?a(r.view):a}),i=o.length;i<o.length+3;i++)this.dynamicDecorationMap[i]=!1;return this.decorations=[].concat($e(o),[this.computeBlockGapDeco(),this.view.viewState.lineGapDeco])}},{key:"scrollIntoView",value:function(r){var o,i=r.range,a=this.coordsAt(i.head,i.empty?i.assoc:i.head>i.anchor?-1:1);if(a){!i.empty&&(o=this.coordsAt(i.anchor,i.anchor>i.head?-1:1))&&(a={left:Math.min(a.left,o.left),top:Math.min(a.top,o.top),right:Math.max(a.right,o.right),bottom:Math.max(a.bottom,o.bottom)});var s=jF(this.view),c={left:a.left-s.left,top:a.top-s.top,right:a.right+s.right,bottom:a.bottom+s.bottom};(function(u,l,f,d,h,p,v,m){for(var g=u.ownerDocument,y=g.defaultView||window,b=u,w=!1;b&&!w;)if(b.nodeType==1){var x=void 0,k=b==g.body;if(k)x=Rgt(y);else{if(/^(fixed|sticky)$/.test(getComputedStyle(b).position)&&(w=!0),b.scrollHeight<=b.clientHeight&&b.scrollWidth<=b.clientWidth){b=b.assignedSlot||b.parentNode;continue}var E=b.getBoundingClientRect();x={left:E.left,right:E.left+b.clientWidth,top:E.top,bottom:E.top+b.clientHeight}}var _=0,T=0;if(h=="nearest")l.top<x.top?(T=-(x.top-l.top+v),f>0&&l.bottom>x.bottom+T&&(T=l.bottom-x.bottom+T+v)):l.bottom>x.bottom&&(T=l.bottom-x.bottom+v,f<0&&l.top-T<x.top&&(T=-(x.top+T-l.top+v)));else{var $=l.bottom-l.top,j=x.bottom-x.top;T=(h=="center"&&$<=j?l.top+$/2-j/2:h=="start"||h=="center"&&f<0?l.top-v:l.bottom-j+v)-x.top}if(d=="nearest"?l.left<x.left?(_=-(x.left-l.left+p),f>0&&l.right>x.right+_&&(_=l.right-x.right+_+p)):l.right>x.right&&(_=l.right-x.right+p,f<0&&l.left<x.left+_&&(_=-(x.left+_-l.left+p))):_=(d=="center"?l.left+(l.right-l.left)/2-(x.right-x.left)/2:d=="start"==m?l.left-p:l.right-(x.right-x.left)+p)-x.left,_||T)if(k)y.scrollBy(_,T);else{var R=0,q=0;if(T){var O=b.scrollTop;b.scrollTop+=T,q=b.scrollTop-O}if(_){var F=b.scrollLeft;b.scrollLeft+=_,R=b.scrollLeft-F}l={left:l.left-R,top:l.top-q,right:l.right-R,bottom:l.bottom-q},R&&Math.abs(R-_)<1&&(d="nearest"),q&&Math.abs(q-T)<1&&(h="nearest")}if(k)break;b=b.assignedSlot||b.parentNode}else{if(b.nodeType!=11)break;b=b.host}})(this.view.scrollDOM,c,i.head<i.anchor?-1:1,r.x,r.y,r.xMargin,r.yMargin,this.view.textDirection==Ir.LTR)}}}]),n}(),wP=function(e){Tt(n,au);var t=Rt(n);function n(r){var o;return ot(this,n),(o=t.call(this)).height=r,o}return it(n,[{key:"toDOM",value:function(){var r=document.createElement("div");return this.updateDOM(r),r}},{key:"eq",value:function(r){return r.height==this.height}},{key:"updateDOM",value:function(r){return r.style.height=this.height+"px",!0}},{key:"estimatedHeight",get:function(){return this.height}}]),n}();function CF(e,t){var n=e.observer.selectionRange,r=n.focusNode&&EF(n.focusNode,n.focusOffset,0);if(!r)return null;var o,i,a=Rr.get(r);if(a instanceof ol)i=(o=a.posAtStart)+a.length;else{var s=Math.max(0,r.nodeValue.length-t);t:for(var c=0,u=r;;){for(var l,f=u.previousSibling;f;f=f.previousSibling){if(l=Rr.get(f)){i=l.posAtEnd+c,o=Math.max(0,i-s);break t}var d=new iF([],e.state);if(d.readNode(f),d.text.indexOf(Bl)>-1)return null;c+=d.text.length}if(!(u=u.parentNode))return null;var h=Rr.get(u);if(h){i=(o=h.posAtStart+c)+s;break}}}return{from:o,to:i,node:r}}function EF(e,t,n){if(n<=0)for(var r=e,o=t;;){if(r.nodeType==3)return r;if(!(r.nodeType==1&&o>0))break;o=Jc(r=r.childNodes[o-1])}if(n>=0)for(var i=e,a=t;;){if(i.nodeType==3)return i;if(!(i.nodeType==1&&a<i.childNodes.length&&n>=0))break;i=i.childNodes[a],a=0}return null}var qgt=function(){function e(){ot(this,e),this.changes=[]}return it(e,[{key:"compareRange",value:function(t,n){lx(t,n,this.changes)}},{key:"comparePoint",value:function(t,n){lx(t,n,this.changes)}}]),e}();function Hgt(e,t){return t.left>e?t.left-e:Math.max(0,e-t.right)}function Vgt(e,t){return t.top>e?t.top-e:Math.max(0,e-t.bottom)}function Py(e,t){return e.top<t.bottom-1&&e.bottom>t.top+1}function xP(e,t){return t<e.top?{top:t,left:e.left,right:e.right,bottom:e.bottom}:e}function kP(e,t){return t>e.bottom?{top:e.top,left:e.left,right:e.right,bottom:t}:e}function mx(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=Wh(d),p=0;p<h.length;p++){var v=h[p];o&&Py(o,v)&&(v=xP(kP(v,o.bottom),o.top));var m=Hgt(t,v),g=Vgt(n,v);if(m==0&&g==0)return d.nodeType==3?jP(d,t,n):mx(d,t,n);if(!r||a>g||a==g&&i>m){r=d,o=v,i=m,a=g;var y=g?n<v.top?-1:1:m?t<v.left?-1:1:0;f=!y||(y>0?p<h.length-1:p>0)}m==0?n>v.bottom&&(!u||u.bottom<v.bottom)?(s=d,u=v):n<v.top&&(!l||l.top>v.top)&&(c=d,l=v):u&&Py(u,v)?u=kP(u,v.bottom):l&&Py(l,v)&&(l=xP(l,v.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 r.nodeType==3?jP(r,b,n):f&&r.contentEditable!="false"?mx(r,b,n):{node:e,offset:Array.prototype.indexOf.call(e.childNodes,r)+(t>=(o.left+o.right)/2?1:0)}}function jP(e,t,n){for(var r=e.nodeValue.length,o=-1,i=1e9,a=0,s=0;s<r;s++)for(var c=rl(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((_e.chrome||_e.gecko)&&rl(e,s).getBoundingClientRect().left==l.right&&(h=!d),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 _P(e,t,n){var r,o,i,a=arguments.length>3&&arguments[3]!==void 0?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,p=!1;(i=e.elementAtHeight(d)).type!=Nr.Text;)for(;!((d=a>0?i.bottom+h:i.top-h)>=0&&d<=u);){if(p)return n?null:0;p=!0,a=-a}f=c+d;var v=i.from;if(v<e.viewport.from)return e.viewport.from==0?0:n?null:SP(e,s,i,l,f);if(v>e.viewport.to)return e.viewport.to==e.state.doc.length?e.state.doc.length:n?null:SP(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&&((r=e.docView.nearest(y))===null||r===void 0?void 0:r.isEditable)!=0){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)||_e.safari&&function(j,R,q){var O;if(j.nodeType!=3||R!=(O=j.nodeValue.length))return!1;for(var F=j.nextSibling;F;F=F.nextSibling)if(F.nodeType!=1||F.nodeName!="BR")return!1;return rl(j,O-1,O).getBoundingClientRect().left>q}(b,w,l)||_e.chrome&&function(j,R,q){if(R!=0)return!1;for(var O=j;;){var F=O.parentNode;if(!F||F.nodeType!=1||F.firstChild!=O)return!1;if(F.classList.contains("cm-line"))break;O=F}var J=j.nodeType==1?j.getBoundingClientRect():rl(j,0,Math.max(j.nodeValue.length,1)).getBoundingClientRect();return q-J.left>5}(b,w,l))&&(b=void 0))}}if(!b||!e.docView.dom.contains(b)){var E=aa.find(e.docView,v);if(!E)return d>i.top+i.height/2?i.to:i.from;var _=mx(E.dom,l,f);b=_.node,w=_.offset}var T=e.docView.nearest(b);if(!T)return null;if(T.isWidget&&((o=T.dom)===null||o===void 0?void 0:o.nodeType)==1){var $=T.dom.getBoundingClientRect();return t.y<$.top||t.y<=$.bottom&&t.x<=($.left+$.right)/2?T.posAtStart:T.posAtEnd}return T.localPosFromDOM(b,w)+T.posAtStart}function SP(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+ex(s,i,e.state.tabSize)}function gx(e,t){var n=e.lineBlockAt(t);if(Array.isArray(n.type)){var r,o=ht(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==Nr.Text))return i}}catch(a){o.e(a)}finally{o.f()}}return n}function $P(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=Fgt(o,i,a,s,n),l=$F;if(!u){if(o.number==(n?e.state.doc.lines:1))return s;l=`
|
|
112
|
+
`,o=e.state.doc.line(o.number+(n?1:-1)),i=e.bidiSpans(o),u=Jt.cursor(n?o.from:o.to)}if(c){if(!c(l))return s}else{if(!r)return u;c=r(l)}s=u}}function jm(e,t,n){for(var r,o=function(){var i,a=0,s=ht(e);try{for(s.s();!(i=s.n()).done;)i.value.between(t-1,t+1,function(c,u,l){if(t>c&&t<u){var f=a||n||(t-c<u-t?-1:1);t=f<0?c:u,a=f}})}catch(c){s.e(c)}finally{s.f()}if(!a)return{v:t}};;)if(r=o())return r.v}function Ty(e,t,n){var r=jm(e.state.facet(Ij).map(function(o){return o(e)}),n.from,t.head>n.from?-1:1);return r==n.from?n:Jt.cursor(r,r<n.from?1:-1)}var Wgt=function(){function e(t){var n=this;ot(this,e),this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.chromeScrollHack=-1,this.pendingIOSKey=void 0,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastEscPress=0,this.lastContextMenu=0,this.scrollHandlers=[],this.registeredEvents=[],this.customHandlers=[],this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.mouseSelection=null;var r=function(a,s){n.ignoreDuringComposition(s)||s.type=="keydown"&&n.keydown(t,s)||(n.mustFlushObserver(s)&&t.observer.forceFlush(),n.runCustomHandlers(s.type,t,s)?s.preventDefault():a(t,s))},o=function(){var a=Yr[i];t.contentDOM.addEventListener(i,function(s){CP(t,s)&&r(a,s)},yx[i]),n.registeredEvents.push(i)};for(var i in Yr)o();t.scrollDOM.addEventListener("mousedown",function(a){if(a.target==t.scrollDOM&&a.clientY>t.contentDOM.getBoundingClientRect().bottom&&(r(Yr.mousedown,a),!a.defaultPrevented&&a.button==2)){var s=t.contentDOM.style.minHeight;t.contentDOM.style.minHeight="100%",setTimeout(function(){return t.contentDOM.style.minHeight=s},200)}}),t.scrollDOM.addEventListener("drop",function(a){a.target==t.scrollDOM&&a.clientY>t.contentDOM.getBoundingClientRect().bottom&&r(Yr.drop,a)}),_e.chrome&&_e.chrome_version==102&&t.scrollDOM.addEventListener("wheel",function(){n.chromeScrollHack<0?t.contentDOM.style.pointerEvents="none":window.clearTimeout(n.chromeScrollHack),n.chromeScrollHack=setTimeout(function(){n.chromeScrollHack=-1,t.contentDOM.style.pointerEvents=""},100)},{passive:!0}),this.notifiedFocused=t.hasFocus,_e.safari&&t.contentDOM.addEventListener("input",function(){return null}),_e.gecko&&function(a){DP.has(a)||(DP.add(a),a.addEventListener("copy",function(){}),a.addEventListener("cut",function(){}))}(t.contentDOM.ownerDocument)}return it(e,[{key:"setSelectionOrigin",value:function(t){this.lastSelectionOrigin=t,this.lastSelectionTime=Date.now()}},{key:"ensureHandlers",value:function(t,n){var r,o,i=this;this.customHandlers=[];var a,s=ht(n);try{for(s.s();!(a=s.n()).done;){var c=a.value;if(o=(r=c.update(t).spec)===null||r===void 0?void 0:r.domEventHandlers){this.customHandlers.push({plugin:c.value,handlers:o});var u=function(f){i.registeredEvents.indexOf(f)<0&&f!="scroll"&&(i.registeredEvents.push(f),t.contentDOM.addEventListener(f,function(d){CP(t,d)&&i.runCustomHandlers(f,t,d)&&d.preventDefault()}))};for(var l in o)u(l)}}}catch(f){s.e(f)}finally{s.f()}}},{key:"runCustomHandlers",value:function(t,n,r){var o,i=ht(this.customHandlers);try{for(i.s();!(o=i.n()).done;){var a=o.value,s=a.handlers[t];if(s)try{if(s.call(a.plugin,r,n)||r.defaultPrevented)return!0}catch(c){yi(n.state,c)}}}catch(c){i.e(c)}finally{i.f()}return!1}},{key:"runScrollHandlers",value:function(t,n){this.lastScrollTop=t.scrollDOM.scrollTop,this.lastScrollLeft=t.scrollDOM.scrollLeft;var r,o=ht(this.customHandlers);try{for(o.s();!(r=o.n()).done;){var i=r.value,a=i.handlers.scroll;if(a)try{a.call(i.plugin,n,t)}catch(s){yi(t.state,s)}}}catch(s){o.e(s)}finally{o.f()}}},{key:"keydown",value:function(t,n){var r,o=this;return this.lastKeyCode=n.keyCode,this.lastKeyTime=Date.now(),n.keyCode==9&&Date.now()<this.lastEscPress+2e3||(n.keyCode!=27&&MF.indexOf(n.keyCode)<0&&(t.inputState.lastEscPress=0),!_e.android||!_e.chrome||n.synthetic||n.keyCode!=13&&n.keyCode!=8?!(!_e.ios||n.synthetic||n.altKey||n.metaKey||!((r=OF.find(function(i){return i.keyCode==n.keyCode}))&&!n.ctrlKey||Ugt.indexOf(n.key)>-1&&n.ctrlKey&&!n.shiftKey))&&(this.pendingIOSKey=r||n,setTimeout(function(){return o.flushIOSKey(t)},250),!0):(t.observer.delayAndroidKey(n.key,n.keyCode),!0))}},{key:"flushIOSKey",value:function(t){var n=this.pendingIOSKey;return!!n&&(this.pendingIOSKey=void 0,cf(t.contentDOM,n.key,n.keyCode))}},{key:"ignoreDuringComposition",value:function(t){return!!/^key/.test(t.type)&&(this.composing>0||!!(_e.safari&&!_e.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100)&&(this.compositionPendingKey=!1,!0))}},{key:"mustFlushObserver",value:function(t){return t.type=="keydown"&&t.keyCode!=229}},{key:"startMouseSelection",value:function(t){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=t}},{key:"update",value:function(t){this.mouseSelection&&this.mouseSelection.update(t),t.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}},{key:"destroy",value:function(){this.mouseSelection&&this.mouseSelection.destroy()}}]),e}(),OF=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],Ugt="dthko",MF=[16,17,18,20,91,92,224,225];function kv(e){return .7*Math.max(0,e)+8}var Kgt=function(){function e(t,n,r,o){ot(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(a){for(var s=a.ownerDocument,c=a.parentNode;c&&c!=s.body;)if(c.nodeType==1){if(c.scrollHeight>c.clientHeight||c.scrollWidth>c.clientWidth)return c;c=c.assignedSlot||c.parentNode}else{if(c.nodeType!=11)break;c=c.host}return null}(t.contentDOM),this.atoms=t.state.facet(Ij).map(function(a){return a(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(fr.allowMultipleSelections)&&function(a,s){var c=a.state.facet(dF);return c.length?c[0](s):_e.mac?s.metaKey:s.ctrlKey}(t,n),this.dragging=!(!function(a,s){var c=a.state.selection.main;if(c.empty)return!1;var u=Eg(a.root);if(!u||u.rangeCount==0)return!0;for(var l=u.getRangeAt(0).getClientRects(),f=0;f<l.length;f++){var d=l[f];if(d.left<=s.clientX&&d.right>=s.clientX&&d.top<=s.clientY&&d.bottom>=s.clientY)return!0}return!1}(t,n)||TF(n)!=1)&&null}return it(e,[{key:"start",value:function(t){this.dragging===!1&&(t.preventDefault(),this.select(t))}},{key:"move",value:function(t){var n;if(t.buttons==0)return this.destroy();if(!(this.dragging||this.dragging==null&&function(s,c){return Math.max(Math.abs(s.clientX-c.clientX),Math.abs(s.clientY-c.clientY))}(this.startEvent,t)<10)){this.select(this.lastEvent=t);var r=0,o=0,i=((n=this.scrollParent)===null||n===void 0?void 0:n.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},a=jF(this.view);t.clientX-a.left<=i.left+6?r=-kv(i.left-t.clientX):t.clientX+a.right>=i.right-6&&(r=kv(t.clientX-i.right)),t.clientY-a.top<=i.top+6?o=-kv(i.top-t.clientY):t.clientY+a.bottom>=i.bottom-6&&(o=kv(t.clientY-i.bottom)),this.setScrollSpeed(r,o)}}},{key:"up",value:function(t){this.dragging==null&&this.select(this.lastEvent),this.dragging||t.preventDefault(),this.destroy()}},{key:"destroy",value:function(){this.setScrollSpeed(0,0);var t=this.view.contentDOM.ownerDocument;t.removeEventListener("mousemove",this.move),t.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=null}},{key:"setScrollSpeed",value:function(t,n){var r=this;this.scrollSpeed={x:t,y:n},t||n?this.scrolling<0&&(this.scrolling=setInterval(function(){return r.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),this.dragging===!1&&this.select(this.lastEvent)}},{key:"skipAtoms",value:function(t){for(var n=null,r=0;r<t.ranges.length;r++){var o=t.ranges[r],i=null;if(o.empty){var a=jm(this.atoms,o.from,0);a!=o.from&&(i=Jt.cursor(a,-1))}else{var s=jm(this.atoms,o.from,-1),c=jm(this.atoms,o.to,1);s==o.from&&c==o.to||(i=Jt.range(o.from==o.anchor?s:c,o.from==o.head?s:c))}i&&(n||(n=t.ranges.slice()),n[r]=i)}return n?Jt.create(n,t.mainIndex):t}},{key:"select",value:function(t){var n=this.view,r=this.skipAtoms(this.style.get(t,this.extend,this.multiple));(this.mustSelect||!r.eq(n.state.selection)||r.main.assoc!=n.state.selection.main.assoc&&this.dragging===!1)&&this.view.dispatch({selection:r,userEvent:"select.pointer"}),this.mustSelect=!1}},{key:"update",value:function(t){var n=this;t.docChanged&&this.dragging&&(this.dragging=this.dragging.map(t.changes)),this.style.update(t)&&setTimeout(function(){return n.select(n.lastEvent)},20)}}]),e}();function CP(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||r.nodeType==11||(n=Rr.get(r))&&n.ignoreEvent(t))return!1;return!0}var Yr=Object.create(null),yx=Object.create(null),AF=_e.ie&&_e.ie_version<15||_e.ios&&_e.webkit_version<604;function EP(e,t){var n,r=e.state,o=1,i=r.toText(t),a=i.lines==r.selection.ranges.length,s=bx!=null&&r.selection.ranges.every(function(u){return u.empty})&&bx==i.toString();if(s){var c=-1;n=r.changeByRange(function(u){var l=r.doc.lineAt(u.from);if(l.from==c)return{range:u};c=l.from;var f=r.toText((a?i.line(o++).text:t)+r.lineBreak);return{changes:{from:l.from,insert:f},range:Jt.cursor(u.from+f.length)}})}else n=a?r.changeByRange(function(u){var l=i.line(o++);return{changes:{from:u.from,to:u.to,insert:l.text},range:Jt.cursor(u.from+l.length)}}):r.replaceSelection(i);e.dispatch(n,{userEvent:"input.paste",scrollIntoView:!0})}function OP(e,t,n,r){if(r==1)return Jt.cursor(t,n);if(r==2)return function(c,u){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,f=c.charCategorizer(u),d=c.doc.lineAt(u),h=u-d.from;if(d.length==0)return Jt.cursor(u);h==0?l=1:h==d.length&&(l=-1);var p=h,v=h;l<0?p=Ro(d.text,h,!1):v=Ro(d.text,h);for(var m=f(d.text.slice(p,v));p>0;){var g=Ro(d.text,p,!1);if(f(d.text.slice(g,p))!=m)break;p=g}for(;v<d.length;){var y=Ro(d.text,v);if(f(d.text.slice(v,y))!=m)break;v=y}return Jt.range(p+d.from,v+d.from)}(e.state,t,n);var o=aa.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++,Jt.range(a,s)}Yr.keydown=function(e,t){e.inputState.setSelectionOrigin("select"),t.keyCode==27&&(e.inputState.lastEscPress=Date.now())},Yr.touchstart=function(e,t){e.inputState.lastTouchTime=Date.now(),e.inputState.setSelectionOrigin("select.pointer")},Yr.touchmove=function(e){e.inputState.setSelectionOrigin("select.pointer")},yx.touchstart=yx.touchmove={passive:!0},Yr.mousedown=function(e,t){if(e.observer.flush(),!(e.inputState.lastTouchTime>Date.now()-2e3)){var n,r=null,o=ht(e.state.facet(pF));try{for(o.s();!(n=o.n()).done&&!(r=(0,n.value)(e,t)););}catch(a){o.e(a)}finally{o.f()}if(r||t.button!=0||(r=function(a,s){var c=AP(a,s),u=TF(s),l=a.state.selection;return{update:function(f){f.docChanged&&(c.pos=f.changes.mapPos(c.pos),l=l.map(f.changes))},get:function(f,d,h){var p,v=AP(a,f),m=OP(a,v.pos,v.bias,u);if(c.pos!=v.pos&&!d){var g=OP(a,c.pos,c.bias,u),y=Math.min(g.from,m.from),b=Math.max(g.to,m.to);m=y<m.from?Jt.range(y,b):Jt.range(b,y)}return d?l.replaceRange(l.main.extend(m.from,m.to)):h&&u==1&&l.ranges.length>1&&(p=function(w,x){for(var k=0;k<w.ranges.length;k++){var E=w.ranges[k],_=E.from,T=E.to;if(_<=x&&T>=x)return Jt.create(w.ranges.slice(0,k).concat(w.ranges.slice(k+1)),w.mainIndex==k?0:w.mainIndex-(w.mainIndex>k?1:0))}return null}(l,v.pos))?p:h?l.addRange(m):Jt.create([m])}}}(e,t)),r){var i=!e.hasFocus;e.inputState.startMouseSelection(new Kgt(e,t,r,i)),i&&e.observer.ignore(function(){return ZB(e.contentDOM)}),e.inputState.mouseSelection&&e.inputState.mouseSelection.start(t)}}};var PF=function(e,t){return e>=t.top&&e<=t.bottom},MP=function(e,t,n){return PF(t,n)&&e>=n.left&&e<=n.right};function Jgt(e,t,n,r){var o=aa.find(e.docView,t);if(!o)return 1;var i=t-o.posAtStart;if(i==0)return 1;if(i==o.length)return-1;var a=o.coordsAt(i,-1);if(a&&MP(n,r,a))return-1;var s=o.coordsAt(i,1);return s&&MP(n,r,s)?1:a&&PF(r,a)?-1:1}function AP(e,t){var n=e.posAtCoords({x:t.clientX,y:t.clientY},!1);return{pos:n,bias:Jgt(e,n,t.clientX,t.clientY)}}var Ggt=_e.ie&&_e.ie_version<=11,PP=null,TP=0,RP=0;function TF(e){if(!Ggt)return e.detail;var t=PP,n=RP;return PP=e,RP=Date.now(),TP=!t||n>Date.now()-400&&Math.abs(t.clientX-e.clientX)<2&&Math.abs(t.clientY-e.clientY)<2?(TP+1)%3:1}function IP(e,t,n,r){if(n){var o=e.posAtCoords({x:t.clientX,y:t.clientY},!1);t.preventDefault();var i=e.inputState.mouseSelection,a=r&&i&&i.dragging&&function(u,l){var f=u.state.facet(hF);return f.length?f[0](l):_e.mac?!l.altKey:!l.ctrlKey}(e,t)?{from:i.dragging.from,to:i.dragging.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"})}}Yr.dragstart=function(e,t){var n=e.state.selection.main,r=e.inputState.mouseSelection;r&&(r.dragging=n),t.dataTransfer&&(t.dataTransfer.setData("Text",e.state.sliceDoc(n.from,n.to)),t.dataTransfer.effectAllowed="copyMove")},Yr.drop=function(e,t){if(t.dataTransfer){if(e.state.readOnly)return t.preventDefault();var n=t.dataTransfer.files;if(n&&n.length){t.preventDefault();for(var r=Array(n.length),o=0,i=function(){++o==n.length&&IP(e,t,r.filter(function(c){return c!=null}).join(e.state.lineBreak),!1)},a=function(c){var u=new FileReader;u.onerror=i,u.onload=function(){/[\x00-\x08\x0e-\x1f]{2}/.test(u.result)||(r[c]=u.result),i()},u.readAsText(n[c])},s=0;s<n.length;s++)a(s)}else IP(e,t,t.dataTransfer.getData("Text"),!0)}},Yr.paste=function(e,t){if(e.state.readOnly)return t.preventDefault();e.observer.flush();var n=AF?null:t.clipboardData;n?(EP(e,n.getData("text/plain")||n.getData("text/uri-text")),t.preventDefault()):function(r){var o=r.dom.parentNode;if(o){var i=o.appendChild(document.createElement("textarea"));i.style.cssText="position: fixed; left: -10000px; top: 10px",i.focus(),setTimeout(function(){r.focus(),i.remove(),EP(r,i.value)},50)}}(e)};var bx=null;Yr.copy=Yr.cut=function(e,t){var n=function(s){var c,u=[],l=[],f=!1,d=ht(s.selection.ranges);try{for(d.s();!(c=d.n()).done;){var h=c.value;h.empty||(u.push(s.sliceDoc(h.from,h.to)),l.push(h))}}catch(b){d.e(b)}finally{d.f()}if(!u.length){var p,v=-1,m=ht(s.selection.ranges);try{for(m.s();!(p=m.n()).done;){var g=p.value.from,y=s.doc.lineAt(g);y.number>v&&(u.push(y.text),l.push({from:y.from,to:Math.min(s.doc.length,y.to+1)})),v=y.number}}catch(b){m.e(b)}finally{m.f()}f=!0}return{text:u.join(s.lineBreak),ranges:l,linewise:f}}(e.state),r=n.text,o=n.ranges,i=n.linewise;if(r||i){bx=i?r:null;var a=AF?null:t.clipboardData;a?(t.preventDefault(),a.clearData(),a.setData("text/plain",r)):function(s,c){var u=s.dom.parentNode;if(u){var l=u.appendChild(document.createElement("textarea"));l.style.cssText="position: fixed; left: -10000px; top: 10px",l.value=c,l.focus(),l.selectionEnd=c.length,l.selectionStart=0,setTimeout(function(){l.remove(),s.focus()},50)}}(e,r),t.type!="cut"||e.state.readOnly||e.dispatch({changes:o,scrollIntoView:!0,userEvent:"delete.cut"})}};var RF=Rs.define();function IF(e,t){var n,r=[],o=ht(e.facet(gF));try{for(o.s();!(n=o.n()).done;){var i=(0,n.value)(e,t);i&&r.push(i)}}catch(a){o.e(a)}finally{o.f()}return r?e.update({effects:r,annotations:RF.of(!0)}):null}function NP(e){setTimeout(function(){var t=e.hasFocus;if(t!=e.inputState.notifiedFocused){var n=IF(e.state,t);n?e.dispatch(n):e.update([])}},10)}Yr.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),NP(e)},Yr.blur=function(e){e.observer.clearSelectionRange(),NP(e)},Yr.compositionstart=Yr.compositionupdate=function(e){e.inputState.compositionFirstChange==null&&(e.inputState.compositionFirstChange=!0),e.inputState.composing<0&&(e.inputState.composing=0)},Yr.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,_e.chrome&&_e.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)},Yr.contextmenu=function(e){e.inputState.lastContextMenu=Date.now()},Yr.beforeinput=function(e,t){var n,r;if(_e.chrome&&_e.android&&(r=OF.find(function(i){return i.inputType==t.inputType}))&&(e.observer.delayAndroidKey(r.key,r.keyCode),r.key=="Backspace"||r.key=="Delete")){var o=((n=window.visualViewport)===null||n===void 0?void 0:n.height)||0;setTimeout(function(){var i;(((i=window.visualViewport)===null||i===void 0?void 0:i.height)||0)>o+10&&e.hasFocus&&(e.contentDOM.blur(),e.focus())},100)}};var DP=new Set,LP=["pre-wrap","normal","pre-line","break-spaces"],Qgt=function(){function e(t){ot(this,e),this.lineWrapping=t,this.doc=Yn.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}return it(e,[{key:"heightForGap",value:function(t,n){var r=this.doc.lineAt(n).number-this.doc.lineAt(t).number+1;return this.lineWrapping&&(r+=Math.max(0,Math.ceil((n-t-r*this.lineLength*.5)/this.lineLength))),this.lineHeight*r}},{key:"heightForLine",value:function(t){return this.lineWrapping?(1+Math.max(0,Math.ceil((t-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}},{key:"setDoc",value:function(t){return this.doc=t,this}},{key:"mustRefreshForWrapping",value:function(t){return LP.indexOf(t)>-1!=this.lineWrapping}},{key:"mustRefreshForHeights",value:function(t){for(var n=!1,r=0;r<t.length;r++){var o=t[r];o<0?r++:this.heightSamples[Math.floor(10*o)]||(n=!0,this.heightSamples[Math.floor(10*o)]=!0)}return n}},{key:"refresh",value:function(t,n,r,o,i,a){var s=LP.indexOf(t)>-1,c=Math.round(n)!=Math.round(this.lineHeight)||this.lineWrapping!=s;if(this.lineWrapping=s,this.lineHeight=n,this.charWidth=r,this.textHeight=o,this.lineLength=i,c){this.heightSamples={};for(var u=0;u<a.length;u++){var l=a[u];l<0?u++:this.heightSamples[Math.floor(10*l)]=!0}}return c}}]),e}(),Ygt=function(){function e(t,n){ot(this,e),this.from=t,this.heights=n,this.index=0}return it(e,[{key:"more",get:function(){return this.index<this.heights.length}}]),e}(),mc=function(){function e(t,n,r,o,i){ot(this,e),this.from=t,this.length=n,this.top=r,this.height=o,this._content=i}return it(e,[{key:"type",get:function(){return typeof this._content=="number"?Nr.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 Pf?this._content.widget:null}},{key:"widgetLineBreaks",get:function(){return typeof this._content=="number"?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)}}]),e}(),yr=function(e){return e[e.ByPos=0]="ByPos",e[e.ByHeight=1]="ByHeight",e[e.ByPosNoHeight=2]="ByPosNoHeight",e}(yr||(yr={})),_m=.001,_a=function(){function e(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:2;ot(this,e),this.length=t,this.height=n,this.flags=r}return it(e,[{key:"outdated",get:function(){return(2&this.flags)>0},set:function(t){this.flags=(t?2:0)|-3&this.flags}},{key:"setHeight",value:function(t,n){this.height!=n&&(Math.abs(this.height-n)>_m&&(t.heightChanged=!0),this.height=n)}},{key:"replace",value:function(t,n,r){return e.of(r)}},{key:"decomposeLeft",value:function(t,n){n.push(this)}},{key:"decomposeRight",value:function(t,n){n.push(this)}},{key:"applyChanges",value:function(t,n,r,o){for(var i=this,a=r.doc,s=o.length-1;s>=0;s--){var c=o[s],u=c.fromA,l=c.toA,f=c.fromB,d=c.toB,h=i.lineAt(u,yr.ByPosNoHeight,r.setDoc(n),0,0),p=h.to>=l?h:i.lineAt(l,yr.ByPosNoHeight,r,0,0);for(d+=p.to-l,l=p.to;s>0&&h.from<=o[s-1].toA;)u=o[s-1].fromA,f=o[s-1].fromB,s--,u<h.from&&(h=i.lineAt(u,yr.ByPosNoHeight,r,0,0));f+=h.from-u,u=h.from;var v=Zgt.build(r.setDoc(a),t,f,d);i=i.replace(u,l,v)}return i.updateHeight(r,0)}}],[{key:"empty",value:function(){return new Va(0,0)}},{key:"of",value:function(t){if(t.length==1)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 t[n-1]==null?(l=1,n--):t[n]==null&&(l=1,r++),new Xgt(e.of(t.slice(0,n)),l,e.of(t.slice(r)))}}]),e}();_a.prototype.size=1;var NF=function(e){Tt(n,_a);var t=Rt(n);function n(r,o,i){var a;return ot(this,n),(a=t.call(this,r,o)).deco=i,a}return it(n,[{key:"blockAt",value:function(r,o,i,a){return new mc(a,this.length,i,this.height,this.deco||0)}},{key:"lineAt",value:function(r,o,i,a,s){return this.blockAt(0,i,a,s)}},{key:"forEachLine",value:function(r,o,i,a,s,c){r<=s+this.length&&o>=s&&c(this.blockAt(0,i,a,s))}},{key:"updateHeight",value:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=arguments.length>3?arguments[3]:void 0;return i&&i.from<=o&&i.more&&this.setHeight(r,i.heights[i.index++]),this.outdated=!1,this}},{key:"toString",value:function(){return"block(".concat(this.length,")")}}]),n}(),Va=function(e){Tt(n,NF);var t=Rt(n);function n(r,o){var i;return ot(this,n),(i=t.call(this,r,o,null)).collapsed=0,i.widgetHeight=0,i.breaks=0,i}return it(n,[{key:"blockAt",value:function(r,o,i,a){return new mc(a,this.length,i,this.height,this.breaks)}},{key:"replace",value:function(r,o,i){var a=i[0];return i.length==1&&(a instanceof n||a instanceof uf&&4&a.flags)&&Math.abs(this.length-a.length)<10?(a instanceof uf?a=new n(a.length,this.height):a.height=this.height,this.outdated||(a.outdated=!1),a):_a.of(i)}},{key:"updateHeight",value:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=arguments.length>2&&arguments[2]!==void 0&&arguments[2],a=arguments.length>3?arguments[3]:void 0;return a&&a.from<=o&&a.more?this.setHeight(r,a.heights[a.index++]):(i||this.outdated)&&this.setHeight(r,Math.max(this.widgetHeight,r.heightForLine(this.length-this.collapsed))+this.breaks*r.lineHeight),this.outdated=!1,this}},{key:"toString",value:function(){return"line(".concat(this.length).concat(this.collapsed?-this.collapsed:"").concat(this.widgetHeight?":"+this.widgetHeight:"",")")}}]),n}(),uf=function(e){Tt(n,_a);var t=Rt(n);function n(r){return ot(this,n),t.call(this,r,0)}return it(n,[{key:"heightMetrics",value:function(r,o){var i,a=r.doc.lineAt(o).number,s=r.doc.lineAt(o+this.length).number,c=s-a+1,u=0;if(r.lineWrapping){var l=Math.min(this.height,r.lineHeight*c);i=l/c,this.length>c+1&&(u=(this.height-l)/(this.length-c-1))}else i=this.height/c;return{firstLine:a,lastLine:s,perLine:i,perChar:u}}},{key:"blockAt",value:function(r,o,i,a){var s=this.heightMetrics(o,a),c=s.firstLine,u=s.lastLine,l=s.perLine,f=s.perChar;if(o.lineWrapping){var d=a+Math.round(Math.max(0,Math.min(1,(r-i)/this.height))*this.length),h=o.doc.lineAt(d),p=l+h.length*f,v=Math.max(i,r-p/2);return new mc(h.from,h.length,v,p,0)}var m=Math.max(0,Math.min(u-c,Math.floor((r-i)/l))),g=o.doc.line(c+m),y=g.from,b=g.length;return new mc(y,b,i+l*m,l,0)}},{key:"lineAt",value:function(r,o,i,a,s){if(o==yr.ByHeight)return this.blockAt(r,i,a,s);if(o==yr.ByPosNoHeight){var c=i.doc.lineAt(r),u=c.from,l=c.to;return new mc(u,l-u,0,0,0)}var f=this.heightMetrics(i,s),d=f.firstLine,h=f.perLine,p=f.perChar,v=i.doc.lineAt(r),m=h+v.length*p,g=v.number-d,y=a+h*g+p*(v.from-s-g);return new mc(v.from,v.length,Math.max(a,Math.min(y,a+this.height-m)),m,0)}},{key:"forEachLine",value:function(r,o,i,a,s,c){r=Math.max(r,s),o=Math.min(o,s+this.length);for(var u=this.heightMetrics(i,s),l=u.firstLine,f=u.perLine,d=u.perChar,h=r,p=a;h<=o;){var v=i.doc.lineAt(h);if(h==r){var m=v.number-l;p+=f*m+d*(r-s-m)}var g=f+d*v.length;c(new mc(v.from,v.length,p,g,0)),p+=g,h=v.to+1}}},{key:"replace",value:function(r,o,i){var a=this.length-o;if(a>0){var s=i[i.length-1];s instanceof n?i[i.length-1]=new n(s.length+a):i.push(null,new n(a-1))}if(r>0){var c=i[0];c instanceof n?i[0]=new n(r+c.length):i.unshift(new n(r-1),null)}return _a.of(i)}},{key:"decomposeLeft",value:function(r,o){o.push(new n(r-1),null)}},{key:"decomposeRight",value:function(r,o){o.push(null,new n(this.length-r-1))}},{key:"updateHeight",value:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=arguments.length>2&&arguments[2]!==void 0&&arguments[2],a=arguments.length>3?arguments[3]:void 0,s=o+this.length;if(a&&a.from<=o+this.length&&a.more){var c=[],u=Math.max(o,a.from),l=-1;for(a.from>o&&c.push(new n(a.from-o-1).updateHeight(r,o));u<=s&&a.more;){var f=r.doc.lineAt(u).length;c.length&&c.push(null);var d=a.heights[a.index++];l==-1?l=d:Math.abs(d-l)>=_m&&(l=-2);var h=new Va(f,d);h.outdated=!1,c.push(h),u+=f+1}u<=s&&c.push(null,new n(s-u).updateHeight(r,u));var p=_a.of(c);return(l<0||Math.abs(p.height-this.height)>=_m||Math.abs(l-this.heightMetrics(r,o).perLine)>=_m)&&(r.heightChanged=!0),p}return(i||this.outdated)&&(this.setHeight(r,r.heightForGap(o,o+this.length)),this.outdated=!1),this}},{key:"toString",value:function(){return"gap(".concat(this.length,")")}}]),n}(),Xgt=function(e){Tt(n,_a);var t=Rt(n);function n(r,o,i){var a;return ot(this,n),(a=t.call(this,r.length+o+i.length,r.height+i.height,o|(r.outdated||i.outdated?2:0))).left=r,a.right=i,a.size=r.size+i.size,a}return it(n,[{key:"break",get:function(){return 1&this.flags}},{key:"blockAt",value:function(r,o,i,a){var s=i+this.left.height;return r<s?this.left.blockAt(r,o,i,a):this.right.blockAt(r,o,s,a+this.left.length+this.break)}},{key:"lineAt",value:function(r,o,i,a,s){var c=a+this.left.height,u=s+this.left.length+this.break,l=o==yr.ByHeight?r<c:r<u,f=l?this.left.lineAt(r,o,i,a,s):this.right.lineAt(r,o,i,c,u);if(this.break||(l?f.to<u:f.from>u))return f;var d=o==yr.ByPosNoHeight?yr.ByPosNoHeight:yr.ByPos;return l?f.join(this.right.lineAt(u,d,i,c,u)):this.left.lineAt(u,d,i,a,s).join(f)}},{key:"forEachLine",value:function(r,o,i,a,s,c){var u=a+this.left.height,l=s+this.left.length+this.break;if(this.break)r<l&&this.left.forEachLine(r,o,i,a,s,c),o>=l&&this.right.forEachLine(r,o,i,u,l,c);else{var f=this.lineAt(l,yr.ByPos,i,a,s);r<f.from&&this.left.forEachLine(r,f.from-1,i,a,s,c),f.to>=r&&f.from<=o&&c(f),o>f.to&&this.right.forEachLine(f.to+1,o,i,u,l,c)}}},{key:"replace",value:function(r,o,i){var a=this.left.length+this.break;if(o<a)return this.balanced(this.left.replace(r,o,i),this.right);if(r>this.left.length)return this.balanced(this.left,this.right.replace(r-a,o-a,i));var s=[];r>0&&this.decomposeLeft(r,s);var c,u=s.length,l=ht(i);try{for(l.s();!(c=l.n()).done;){var f=c.value;s.push(f)}}catch(h){l.e(h)}finally{l.f()}if(r>0&&zP(s,u-1),o<this.length){var d=s.length;this.decomposeRight(o,s),zP(s,d)}return _a.of(s)}},{key:"decomposeLeft",value:function(r,o){var i=this.left.length;if(r<=i)return this.left.decomposeLeft(r,o);o.push(this.left),this.break&&r>=++i&&o.push(null),r>i&&this.right.decomposeLeft(r-i,o)}},{key:"decomposeRight",value:function(r,o){var i=this.left.length,a=i+this.break;if(r>=a)return this.right.decomposeRight(r-a,o);r<i&&this.left.decomposeRight(r,o),this.break&&r<a&&o.push(null),o.push(this.right)}},{key:"balanced",value:function(r,o){return r.size>2*o.size||o.size>2*r.size?_a.of(this.break?[r,null,o]:[r,o]):(this.left=r,this.right=o,this.height=r.height+o.height,this.outdated=r.outdated||o.outdated,this.size=r.size+o.size,this.length=r.length+this.break+o.length,this)}},{key:"updateHeight",value:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=arguments.length>2&&arguments[2]!==void 0&&arguments[2],a=arguments.length>3?arguments[3]:void 0,s=this.left,c=this.right,u=o+s.length+this.break,l=null;return a&&a.from<=o+s.length&&a.more?l=s=s.updateHeight(r,o,i,a):s.updateHeight(r,o,i),a&&a.from<=u+c.length&&a.more?l=c=c.updateHeight(r,u,i,a):c.updateHeight(r,u,i),l?this.balanced(s,c):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}},{key:"toString",value:function(){return this.left+(this.break?" ":"-")+this.right}}]),n}();function zP(e,t){var n,r;e[t]==null&&(n=e[t-1])instanceof uf&&(r=e[t+1])instanceof uf&&e.splice(t-1,3,new uf(n.length+1+r.length))}var Zgt=function(){function e(t,n){ot(this,e),this.pos=t,this.oracle=n,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=t}return it(e,[{key:"isCovered",get:function(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}},{key:"span",value:function(t,n){if(this.lineStart>-1){var r=Math.min(n,this.lineEnd),o=this.nodes[this.nodes.length-1];o instanceof Va?o.length+=r-this.pos:(r>this.pos||!this.isCovered)&&this.nodes.push(new Va(r-this.pos,-1)),this.writtenTo=r,n>r&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=n}},{key:"point",value:function(t,n,r){if(t<n||r.heightRelevant){var o=r.widget?r.widget.estimatedHeight:0,i=r.widget?r.widget.lineBreaks:0;o<0&&(o=this.oracle.lineHeight);var a=n-t;r.block?this.addBlock(new NF(a,o,r)):(a||i||o>=5)&&this.addLineDeco(o,i,a)}else n>t&&this.span(t,n);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 t=this.oracle.doc.lineAt(this.pos),n=t.from,r=t.to;this.lineStart=n,this.lineEnd=r,this.writtenTo<n&&((this.writtenTo<n-1||this.nodes[this.nodes.length-1]==null)&&this.nodes.push(this.blankContent(this.writtenTo,n-1)),this.nodes.push(null)),this.pos>n&&this.nodes.push(new Va(this.pos-n,-1)),this.writtenTo=this.pos}}},{key:"blankContent",value:function(t,n){var r=new uf(n-t);return this.oracle.doc.lineAt(t).to==n&&(r.flags|=4),r}},{key:"ensureLine",value:function(){this.enterLine();var t=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(t instanceof Va)return t;var n=new Va(0,-1);return this.nodes.push(n),n}},{key:"addBlock",value:function(t){var n;this.enterLine();var r=(n=t.deco)===null||n===void 0?void 0:n.type;r!=Nr.WidgetAfter||this.isCovered||this.ensureLine(),this.nodes.push(t),this.writtenTo=this.pos=this.pos+t.length,r!=Nr.WidgetBefore&&(this.covering=t)}},{key:"addLineDeco",value:function(t,n,r){var o=this.ensureLine();o.length+=r,o.collapsed+=r,o.widgetHeight=Math.max(o.widgetHeight,t),o.breaks+=n,this.writtenTo=this.pos=this.pos+r}},{key:"finish",value:function(t){var n=this.nodes.length==0?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||n instanceof Va||this.isCovered?(this.writtenTo<this.pos||n==null)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos)):this.nodes.push(new Va(0,-1));var r,o=t,i=ht(this.nodes);try{for(i.s();!(r=i.n()).done;){var a=r.value;a instanceof Va&&a.updateHeight(this.oracle,o),o+=a?a.length:1}}catch(s){i.e(s)}finally{i.f()}return this.nodes}}],[{key:"build",value:function(t,n,r,o){var i=new e(r,t);return vr.spans(n,r,o,i,0),i.finish(r)}}]),e}(),t0t=function(){function e(){ot(this,e),this.changes=[]}return it(e,[{key:"compareRange",value:function(){}},{key:"comparePoint",value:function(t,n,r,o){(t<n||r&&r.heightRelevant||o&&o.heightRelevant)&&lx(t,n,this.changes,5)}}]),e}();function e0t(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(u.nodeType==1){var l=u,f=window.getComputedStyle(l);if((l.scrollHeight>l.clientHeight||l.scrollWidth>l.clientWidth)&&f.overflow!="visible"){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=f.position=="absolute"||f.position=="fixed"?l.offsetParent:l.parentNode}else{if(u.nodeType!=11)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 n0t(e,t){var n=e.getBoundingClientRect();return{left:0,right:n.right-n.left,top:t,bottom:n.bottom-(n.top+t)}}var Ry=function(){function e(t,n,r){ot(this,e),this.from=t,this.to=n,this.size=r}return it(e,[{key:"draw",value:function(t){return Ue.replace({widget:new r0t(this.size,t)}).range(this.from,this.to)}}],[{key:"same",value:function(t,n){if(t.length!=n.length)return!1;for(var r=0;r<t.length;r++){var o=t[r],i=n[r];if(o.from!=i.from||o.to!=i.to||o.size!=i.size)return!1}return!0}}]),e}(),r0t=function(e){Tt(n,au);var t=Rt(n);function n(r,o){var i;return ot(this,n),(i=t.call(this)).size=r,i.vertical=o,i}return it(n,[{key:"eq",value:function(r){return r.size==this.size&&r.vertical==this.vertical}},{key:"toDOM",value:function(){var r=document.createElement("div");return this.vertical?r.style.height=this.size+"px":(r.style.width=this.size+"px",r.style.height="2px",r.style.display="inline-block"),r}},{key:"estimatedHeight",get:function(){return this.vertical?this.size:-1}}]),n}(),BP=function(){function e(t){ot(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.scrollAnchorPos=0,this.scrollAnchorHeight=-1,this.scaler=FP,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=Ir.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;var n=t.facet(Rj).some(function(r){return typeof r!="function"&&r.class=="cm-lineWrapping"});this.heightOracle=new Qgt(n),this.stateDeco=t.facet(Uh).filter(function(r){return typeof r!="function"}),this.heightMap=_a.empty().applyChanges(this.stateDeco,Yn.empty,this.heightOracle.setDoc(t.doc),[new xc(0,0,0,t.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=Ue.set(this.lineGaps.map(function(r){return r.draw(!1)})),this.computeVisibleRanges()}return it(e,[{key:"updateForViewport",value:function(){for(var t=this,n=[this.viewport],r=this.state.selection.main,o=function(){var a=i?r.head:r.anchor;if(!n.some(function(l){var f=l.from,d=l.to;return a>=f&&a<=d})){var s=t.lineBlockAt(a),c=s.from,u=s.to;n.push(new jv(c,u))}},i=0;i<=1;i++)o();this.viewports=n.sort(function(a,s){return a.from-s.from}),this.scaler=this.heightMap.height<=7e6?FP:new i0t(this.heightOracle,this.heightMap,this.viewports)}},{key:"updateViewportLines",value:function(){var t=this;this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,function(n){t.viewportLines.push(t.scaler.scale==1?n:qd(n,t.scaler))})}},{key:"update",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.state=t.state;var r=this.stateDeco;this.stateDeco=this.state.facet(Uh).filter(function(l){return typeof l!="function"});var o=t.changedRanges,i=xc.extendWithRanges(o,function(l,f,d){var h=new t0t;return vr.compare(l,f,d,h,0),h.changes}(r,this.stateDeco,t?t.changes:Oa.empty(this.state.doc.length))),a=this.heightMap.height,s=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,t.startState.doc,this.heightOracle.setDoc(this.state.doc),i),this.heightMap.height!=a&&(t.flags|=2),s?(this.scrollAnchorPos=t.changes.mapPos(s.from,-1),this.scrollAnchorHeight=s.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);var c=i.length?this.mapViewport(this.viewport,t.changes):this.viewport;(n&&(n.range.head<c.from||n.range.head>c.to)||!this.viewportIsAppropriate(c))&&(c=this.getViewport(0,n));var u=!t.changes.empty||2&t.flags||c.from!=this.viewport.from||c.to!=this.viewport.to;this.viewport=c,this.updateForViewport(),u&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,t.changes))),t.flags|=this.computeVisibleRanges(),n&&(this.scrollTarget=n),!this.mustEnforceCursorAssoc&&t.selectionSet&&t.view.lineWrapping&&t.state.selection.main.empty&&t.state.selection.main.assoc&&!t.state.facet(bF)&&(this.mustEnforceCursorAssoc=!0)}},{key:"measure",value:function(t){var n=t.contentDOM,r=window.getComputedStyle(n),o=this.heightOracle,i=r.whiteSpace;this.defaultTextDirection=r.direction=="rtl"?Ir.RTL:Ir.LTR;var a=this.heightOracle.mustRefreshForWrapping(i),s=n.getBoundingClientRect(),c=a||this.mustMeasureContent||this.contentDOMHeight!=s.height;this.contentDOMHeight=s.height,this.mustMeasureContent=!1;var u=0,l=0,f=parseInt(r.paddingTop)||0,d=parseInt(r.paddingBottom)||0;this.paddingTop==f&&this.paddingBottom==d||(this.paddingTop=f,this.paddingBottom=d,u|=10),this.editorWidth!=t.scrollDOM.clientWidth&&(o.lineWrapping&&(c=!0),this.editorWidth=t.scrollDOM.clientWidth,u|=8),this.scrollTop!=t.scrollDOM.scrollTop&&(this.scrollAnchorHeight=-1,this.scrollTop=t.scrollDOM.scrollTop),this.scrolledToBottom=eF(t.scrollDOM);var h=(this.printing?n0t:e0t)(n,this.paddingTop),p=h.top-this.pixelViewport.top,v=h.bottom-this.pixelViewport.bottom;this.pixelViewport=h;var m=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(m!=this.inView&&(this.inView=m,m&&(c=!0)),!this.inView&&!this.scrollTarget)return 0;var g=s.width;if(this.contentDOMWidth==g&&this.editorHeight==t.scrollDOM.clientHeight||(this.contentDOMWidth=s.width,this.editorHeight=t.scrollDOM.clientHeight,u|=8),c){var y=t.docView.measureVisibleLineHeights(this.viewport);if(o.mustRefreshForHeights(y)&&(a=!0),a||o.lineWrapping&&Math.abs(g-this.contentDOMWidth)>o.charWidth){var b=t.docView.measureTextSize(),w=b.lineHeight,x=b.charWidth,k=b.textHeight;(a=w>0&&o.refresh(i,w,x,k,g/x,y))&&(t.docView.minWidth=0,u|=8)}p>0&&v>0?l=Math.max(p,v):p<0&&v<0&&(l=Math.min(p,v)),o.heightChanged=!1;var E,_=ht(this.viewports);try{for(_.s();!(E=_.n()).done;){var T=E.value,$=T.from==this.viewport.from?y:t.docView.measureVisibleLineHeights(T);this.heightMap=(a?_a.empty().applyChanges(this.stateDeco,Yn.empty,this.heightOracle,[new xc(0,0,0,t.state.doc.length)]):this.heightMap).updateHeight(o,0,a,new Ygt(T.from,$))}}catch(R){_.e(R)}finally{_.f()}o.heightChanged&&(u|=2)}var j=!this.viewportIsAppropriate(this.viewport,l)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return j&&(this.viewport=this.getViewport(l,this.scrollTarget)),this.updateForViewport(),(2&u||j)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(a?[]:this.lineGaps,t)),u|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,t.docView.enforceCursorAssoc()),u}},{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(t,n){var r=.5-Math.max(-.5,Math.min(.5,t/1e3/2)),o=this.heightMap,i=this.heightOracle,a=this.visibleTop,s=this.visibleBottom,c=new jv(o.lineAt(a-1e3*r,yr.ByHeight,i,0,0).from,o.lineAt(s+1e3*(1-r),yr.ByHeight,i,0,0).to);if(n){var u=n.range.head;if(u<c.from||u>c.to){var l,f=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),d=o.lineAt(u,yr.ByPos,i,0,0);l=n.y=="center"?(d.top+d.bottom)/2-f/2:n.y=="start"||n.y=="nearest"&&u<c.from?d.top:d.bottom-f,c=new jv(o.lineAt(l-500,yr.ByHeight,i,0,0).from,o.lineAt(l+f+500,yr.ByHeight,i,0,0).to)}}return c}},{key:"mapViewport",value:function(t,n){var r=n.mapPos(t.from,-1),o=n.mapPos(t.to,1);return new jv(this.heightMap.lineAt(r,yr.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(o,yr.ByPos,this.heightOracle,0,0).to)}},{key:"viewportIsAppropriate",value:function(t){var n=t.from,r=t.to,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!this.inView)return!0;var i=this.heightMap.lineAt(n,yr.ByPos,this.heightOracle,0,0).top,a=this.heightMap.lineAt(r,yr.ByPos,this.heightOracle,0,0).bottom,s=this.visibleTop,c=this.visibleBottom;return(n==0||i<=s-Math.max(10,Math.min(-o,250)))&&(r==this.state.doc.length||a>=c+Math.max(10,Math.min(o,250)))&&i>s-2e3&&a<c+2e3}},{key:"mapLineGaps",value:function(t,n){if(!t.length||n.empty)return t;var r,o=[],i=ht(t);try{for(i.s();!(r=i.n()).done;){var a=r.value;n.touchesRange(a.from,a.to)||o.push(new Ry(n.mapPos(a.from),n.mapPos(a.to),a.size))}}catch(s){i.e(s)}finally{i.f()}return o}},{key:"ensureLineGaps",value:function(t,n){var r=this,o=this.heightOracle.lineWrapping,i=o?1e4:2e3,a=i>>1,s=i<<1;if(this.defaultTextDirection!=Ir.LTR&&!o)return[];var c,u=[],l=function R(q,O,F,J){if(!(O-q<a)){var I=r.state.selection.main,D=[I.from];I.empty||D.push(I.to);for(var C=0,M=D;C<M.length;C++){var P=M[C];if(P>q&&P<O)return R(q,P-10,F,J),void R(P+10,O,F,J)}var B=function(W,N){var dt,et=ht(W);try{for(et.s();!(dt=et.n()).done;){var yt=dt.value;if(N(yt))return yt}}catch(bt){et.e(bt)}finally{et.f()}}(t,function(W){return W.from>=F.from&&W.to<=F.to&&Math.abs(W.from-q)<a&&Math.abs(W.to-O)<a&&!D.some(function(N){return W.from<N&&W.to>N})});if(!B){if(O<F.to&&n&&o&&n.visibleRanges.some(function(W){return W.from<=O&&W.to>=O})){var A=n.moveToLineBoundary(Jt.cursor(O),!1,!0).head;A>q&&(O=A)}B=new Ry(q,O,r.gapSize(F,q,O,J))}u.push(B)}},f=ht(this.viewportLines);try{for(f.s();!(c=f.n()).done;){var d=c.value;if(!(d.length<s)){var h=o0t(d.from,d.to,this.stateDeco);if(!(h.total<s)){var p=this.scrollTarget?this.scrollTarget.range.head:null,v=void 0,m=void 0;if(o){var g=i/this.heightOracle.lineLength*this.heightOracle.lineHeight,y=void 0,b=void 0;if(p!=null){var w=Sv(h,p),x=((this.visibleBottom-this.visibleTop)/2+g)/d.height;y=w-x,b=w+x}else y=(this.visibleTop-d.top-g)/d.height,b=(this.visibleBottom-d.top+g)/d.height;v=_v(h,y),m=_v(h,b)}else{var k=h.total*this.heightOracle.charWidth,E=i*this.heightOracle.charWidth,_=void 0,T=void 0;if(p!=null){var $=Sv(h,p),j=((this.pixelViewport.right-this.pixelViewport.left)/2+E)/k;_=$-j,T=$+j}else _=(this.pixelViewport.left-E)/k,T=(this.pixelViewport.right+E)/k;v=_v(h,_),m=_v(h,T)}v>d.from&&l(d.from,v,d,h),m<d.to&&l(m,d.to,d,h)}}}}catch(R){f.e(R)}finally{f.f()}return u}},{key:"gapSize",value:function(t,n,r,o){var i=Sv(o,r)-Sv(o,n);return this.heightOracle.lineWrapping?t.height*i:o.total*this.heightOracle.charWidth*i}},{key:"updateLineGaps",value:function(t){var n=this;Ry.same(t,this.lineGaps)||(this.lineGaps=t,this.lineGapDeco=Ue.set(t.map(function(r){return r.draw(n.heightOracle.lineWrapping)})))}},{key:"computeVisibleRanges",value:function(){var t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));var n=[];vr.spans(t,this.viewport.from,this.viewport.to,{span:function(o,i){n.push({from:o,to:i})},point:function(){}},20);var r=n.length!=this.visibleRanges.length||this.visibleRanges.some(function(o,i){return o.from!=n[i].from||o.to!=n[i].to});return this.visibleRanges=n,r?4:0}},{key:"lineBlockAt",value:function(t){return t>=this.viewport.from&&t<=this.viewport.to&&this.viewportLines.find(function(n){return n.from<=t&&n.to>=t})||qd(this.heightMap.lineAt(t,yr.ByPos,this.heightOracle,0,0),this.scaler)}},{key:"lineBlockAtHeight",value:function(t){return qd(this.heightMap.lineAt(this.scaler.fromDOM(t),yr.ByHeight,this.heightOracle,0,0),this.scaler)}},{key:"scrollAnchorAt",value:function(t){var n=this.lineBlockAtHeight(t+8);return n.from>=this.viewport.from||this.viewportLines[0].top-t>200?n:this.viewportLines[0]}},{key:"elementAtHeight",value:function(t){return qd(this.heightMap.blockAt(this.scaler.fromDOM(t),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}}]),e}(),jv=it(function e(t,n){ot(this,e),this.from=t,this.to=n});function o0t(e,t,n){var r=[],o=e,i=0;return vr.spans(n,e,t,{span:function(){},point:function(a,s){a>o&&(r.push({from:o,to:a}),i+=a-o),o=s}},20),o<t&&(r.push({from:o,to:t}),i+=t-o),{total:i,ranges:r}}function _v(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 Sv(e,t){var n,r=0,o=ht(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(c){o.e(c)}finally{o.f()}return r/e.total}var FP={toDOM:function(e){return e},fromDOM:function(e){return e},scale:1},i0t=function(){function e(t,n,r){ot(this,e);var o=0,i=0,a=0;this.viewports=r.map(function(l){var f=l.from,d=l.to,h=n.lineAt(f,yr.ByPos,t,0,0).top,p=n.lineAt(d,yr.ByPos,t,0,0).bottom;return o+=p-h,{from:f,to:d,top:h,bottom:p,domTop:0,domBottom:0}}),this.scale=(7e6-o)/(n.height-o);var s,c=ht(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(l){c.e(l)}finally{c.f()}}return it(e,[{key:"toDOM",value:function(t){for(var n=0,r=0,o=0;;n++){var i=n<this.viewports.length?this.viewports[n]:null;if(!i||t<i.top)return o+(t-r)*this.scale;if(t<=i.bottom)return i.domTop+(t-i.top);r=i.bottom,o=i.domBottom}}},{key:"fromDOM",value:function(t){for(var n=0,r=0,o=0;;n++){var i=n<this.viewports.length?this.viewports[n]:null;if(!i||t<i.domTop)return r+(t-o)/this.scale;if(t<=i.domBottom)return i.top+(t-i.domTop);r=i.bottom,o=i.domBottom}}}]),e}();function qd(e,t){if(t.scale==1)return e;var n=t.toDOM(e.top),r=t.toDOM(e.bottom);return new mc(e.from,e.length,n,r-n,Array.isArray(e._content)?e._content.map(function(o){return qd(o,t)}):e._content)}var $v=xe.define({combine:function(e){return e.join(" ")}}),wx=xe.define({combine:function(e){return e.indexOf(!0)>-1}}),xx=Uc.newName(),DF=Uc.newName(),LF=Uc.newName(),zF={"&light":"."+DF,"&dark":"."+LF};function kx(e,t,n){return new Uc(t,{finish:function(r){return/&/.test(r)?r.replace(/&\w*/,function(o){if(o=="&")return e;if(!n||!n[o])throw new RangeError("Unsupported selector: ".concat(o));return n[o]}):e+" "+r}})}var a0t=kx("."+xx,{"&":{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",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"},"&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"}},zF),s0t=it(function e(t,n,r,o){ot(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(h){var p=[];if(h.root.activeElement!=h.contentDOM)return p;var v=h.observer.selectionRange,m=v.anchorNode,g=v.anchorOffset,y=v.focusNode,b=v.focusOffset;return m&&(p.push(new rP(m,g)),y==m&&b==g||p.push(new rP(y,b))),p}(t),u=new iF(c,t.state);u.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=u.text,this.newSel=function(h,p){if(h.length==0)return null;var v=h[0].pos,m=h.length==2?h[1].pos:v;return v>-1&&m>-1?Jt.single(v+p,m+p):null}(c,this.bounds.from)}else{var l=t.observer.selectionRange,f=a&&a.node==l.focusNode&&a.offset==l.focusOffset||!nx(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||!nx(t.contentDOM,l.anchorNode)?t.state.selection.main.anchor:t.docView.posFromDOM(l.anchorNode,l.anchorOffset);this.newSel=Jt.single(d,f)}});function BF(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;(i===8||_e.android&&t.text.length<c-s)&&(u=o.to,l="end");var f=function(g,y,b,w){for(var x=Math.min(g.length,y.length),k=0;k<x&&g.charCodeAt(k)==y.charCodeAt(k);)k++;if(k==x&&g.length==y.length)return null;for(var E=g.length,_=y.length;E>0&&_>0&&g.charCodeAt(E-1)==y.charCodeAt(_-1);)E--,_--;return w=="end"&&(b-=E+Math.max(0,k-Math.min(E,_))-k),E<k&&g.length<y.length?(_=(k-=b<=k&&b>=E?k-b:0)+(_-E),E=k):_<k&&(E=(k-=b<=k&&b>=_?k-b:0)+(E-_),_=k),{from:k,toA:E,toB:_}}(e.state.doc.sliceString(s,c,Bl),t.text,u-s,l);f&&(_e.chrome&&i==13&&f.toB==f.from+2&&t.text.slice(f.from,f.toB)==Bl+Bl&&f.toB--,n={from:s+f.from,to:s+f.toA,insert:Yn.of(t.text.slice(f.from,f.toB).split(Bl))})}else r&&(!e.hasFocus&&e.state.facet(o1)||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))}:(_e.mac||_e.android)&&n&&n.from==n.to&&n.from==o.head-1&&/^\. ?$/.test(n.insert.toString())&&e.contentDOM.getAttribute("autocorrect")=="off"?(r&&n.insert.length==2&&(r=Jt.single(r.main.anchor-1,r.main.head-1)),n={from:o.from,to:o.to,insert:Yn.of([" "])}):_e.chrome&&n&&n.from==n.to&&n.from==o.head&&n.insert.toString()==`
|
|
113
|
+
`&&e.lineWrapping&&(r&&(r=Jt.single(r.main.anchor-1,r.main.head-1)),n={from:o.from,to:o.to,insert:Yn.of([" "])}),n){if(_e.ios&&e.inputState.flushIOSKey(e)||_e.android&&(n.from==o.from&&n.to==o.to&&n.insert.length==1&&n.insert.lines==2&&cf(e.contentDOM,"Enter",13)||(n.from==o.from-1&&n.to==o.to&&n.insert.length==0||i==8&&n.insert.length<n.to-n.from&&n.to>o.head)&&cf(e.contentDOM,"Backspace",8)||n.from==o.from&&n.to==o.to+1&&n.insert.length==0&&cf(e.contentDOM,"Delete",46)))return!0;var d,h=n.insert.toString();e.inputState.composing>=0&&e.inputState.composing++;var p=function(){return d||(d=function(g,y,b){var w,x=g.state,k=x.selection.main;if(y.from>=k.from&&y.to<=k.to&&y.to-y.from>=(k.to-k.from)/3&&(!b||b.main.empty&&b.main.from==y.from+y.insert.length)&&g.inputState.composing<0){var E=k.from<y.from?x.sliceDoc(k.from,y.from):"",_=k.to>y.to?x.sliceDoc(y.to,k.to):"";w=x.replaceSelection(g.state.toText(E+y.insert.sliceString(0,void 0,g.state.lineBreak)+_))}else{var T=x.changes(y),$=b&&b.main.to<=T.newLength?b.main:void 0;if(x.selection.ranges.length>1&&g.inputState.composing>=0&&y.to<=k.to&&y.to>=k.to-10){var j=g.state.sliceDoc(y.from,y.to),R=CF(g,y.insert.length-(y.to-y.from))||g.state.doc.lineAt(k.head),q=k.to-y.to,O=k.to-k.from;w=x.changeByRange(function(J){if(J.from==k.from&&J.to==k.to)return{changes:T,range:$||J.map(T)};var I=J.to-q,D=I-j.length;if(J.to-J.from!=O||g.state.sliceDoc(D,I)!=j||R&&J.to>=R.from&&J.from<=R.to)return{range:J};var C=x.changes({from:D,to:I,insert:y.insert}),M=J.to-k.to;return{changes:C,range:$?Jt.range(Math.max(0,$.anchor+M),Math.max(0,$.head+M)):J.map(C)}})}else w={changes:T,selection:$&&x.selection.replaceRange($)}}var F="input.type";return(g.composing||g.inputState.compositionPendingChange&&g.inputState.compositionEndedAt>Date.now()-50)&&(g.inputState.compositionPendingChange=!1,F+=".compose",g.inputState.compositionFirstChange&&(F+=".start",g.inputState.compositionFirstChange=!1)),x.update(w,{userEvent:F,scrollIntoView:!0})}(e,n,r))};return e.state.facet(mF).some(function(g){return g(e,n.from,n.to,h,p)})||e.dispatch(p()),!0}if(r&&!r.main.eq(o)){var v=!1,m="select";return e.inputState.lastSelectionTime>Date.now()-50&&(e.inputState.lastSelectionOrigin=="select"&&(v=!0),m=e.inputState.lastSelectionOrigin),e.dispatch({selection:r,scrollIntoView:v,userEvent:m}),!0}return!1}var c0t={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},Iy=_e.ie&&_e.ie_version<=11,u0t=function(){function e(t){var n=this;ot(this,e),this.view=t,this.active=!1,this.selectionRange=new Igt,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.resizeContent=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=t.contentDOM,this.observer=new MutationObserver(function(r){var o,i=ht(r);try{for(i.s();!(o=i.n()).done;){var a=o.value;n.queue.push(a)}}catch(s){i.e(s)}finally{i.f()}(_e.ie&&_e.ie_version<=11||_e.ios&&t.composing)&&r.some(function(s){return s.type=="childList"&&s.removedNodes.length||s.type=="characterData"&&s.oldValue.length>s.target.nodeValue.length})?n.flushSoon():n.flush()}),Iy&&(this.onCharData=function(r){n.queue.push({target:r.target,type:"characterData",oldValue:r.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),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(function(){var r;((r=n.view.docView)===null||r===void 0?void 0:r.lastUpdate)<Date.now()-75&&n.onResize()}),this.resizeScroll.observe(t.scrollDOM),this.resizeContent=new ResizeObserver(function(){return n.view.requestMeasure()}),this.resizeContent.observe(t.contentDOM)),this.addWindowListeners(this.win=t.win),this.start(),typeof IntersectionObserver=="function"&&(this.intersection=new IntersectionObserver(function(r){n.parentCheck<0&&(n.parentCheck=setTimeout(n.listenForScroll.bind(n),1e3)),r.length>0&&r[r.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(r){r.length>0&&r[r.length-1].intersectionRatio>0&&n.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}return it(e,[{key:"onScrollChanged",value:function(t){this.view.inputState.runScrollHandlers(this.view,t),this.intersecting&&this.view.measure()}},{key:"onScroll",value:function(t){this.intersecting&&this.flush(!1),this.onScrollChanged(t)}},{key:"onResize",value:function(){var t=this;this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(function(){t.resizeTimeout=-1,t.view.requestMeasure()},50))}},{key:"onPrint",value:function(){var t=this;this.view.viewState.printing=!0,this.view.measure(),setTimeout(function(){t.view.viewState.printing=!1,t.view.requestMeasure()},500)}},{key:"updateGaps",value:function(t){if(this.gapIntersection&&(t.length!=this.gaps.length||this.gaps.some(function(i,a){return i!=t[a]}))){this.gapIntersection.disconnect();var n,r=ht(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;this.gapIntersection.observe(o)}}catch(i){r.e(i)}finally{r.f()}this.gaps=t}}},{key:"onSelectionChange",value:function(t){var n=this.selectionChanged;if(this.readSelectionRange()&&!this.delayedAndroidKey){var r=this.view,o=this.selectionRange;if(r.state.facet(o1)?r.root.activeElement==this.dom:km(r.dom,o)){var i=o.anchorNode&&r.docView.nearest(o.anchorNode);i&&i.ignoreEvent(t)?n||(this.selectionChanged=!1):(_e.ie&&_e.ie_version<=11||_e.android&&_e.chrome)&&!r.state.selection.main.empty&&o.focusNode&&Og(o.focusNode,o.focusOffset,o.anchorNode,o.anchorOffset)?this.flushSoon():this.flush(!1)}}}},{key:"readSelectionRange",value:function(){var t=this.view,n=_e.safari&&t.root.nodeType==11&&function(o){for(var i=o.activeElement;i&&i.shadowRoot;)i=i.shadowRoot.activeElement;return i}(this.dom.ownerDocument)==this.dom&&function(o){var i=null;function a(h){h.preventDefault(),h.stopImmediatePropagation(),i=h.getTargetRanges()[0]}if(o.contentDOM.addEventListener("beforeinput",a,!0),o.dom.ownerDocument.execCommand("indent"),o.contentDOM.removeEventListener("beforeinput",a,!0),!i)return null;var s=i.startContainer,c=i.startOffset,u=i.endContainer,l=i.endOffset,f=o.docView.domAtPos(o.state.selection.main.anchor);if(Og(f.node,f.offset,u,l)){var d=[u,l,s,c];s=d[0],c=d[1],u=d[2],l=d[3]}return{anchorNode:s,anchorOffset:c,focusNode:u,focusOffset:l}}(this.view)||Eg(t.root);if(!n||this.selectionRange.eq(n))return!1;var r=km(this.dom,n);return r&&!this.selectionChanged&&t.inputState.lastFocusTime>Date.now()-200&&t.inputState.lastTouchTime<Date.now()-300&&function(o,i){var a=i.focusNode,s=i.focusOffset;if(!a||i.anchorNode!=a||i.anchorOffset!=s)return!1;for(s=Math.min(s,Jc(a));;)if(s){if(a.nodeType!=1)return!1;var c=a.childNodes[s-1];c.contentEditable=="false"?s--:s=Jc(a=c)}else{if(a==o)return!0;s=Mg(a),a=a.parentNode}}(this.dom,n)?(this.view.inputState.lastFocusTime=0,t.docView.updateSelection(),!1):(this.selectionRange.setRange(n),r&&(this.selectionChanged=!0),!0)}},{key:"setSelectionRange",value:function(t,n){this.selectionRange.set(t.node,t.offset,n.node,n.offset),this.selectionChanged=!1}},{key:"clearSelectionRange",value:function(){this.selectionRange.set(null,0,null,0)}},{key:"listenForScroll",value:function(){this.parentCheck=-1;for(var t=0,n=null,r=this.dom;r;)if(r.nodeType==1)!n&&t<this.scrollTargets.length&&this.scrollTargets[t]==r?t++:n||(n=this.scrollTargets.slice(0,t)),n&&n.push(r),r=r.assignedSlot||r.parentNode;else{if(r.nodeType!=11)break;r=r.host}if(t<this.scrollTargets.length&&!n&&(n=this.scrollTargets.slice(0,t)),n){var o,i=ht(this.scrollTargets);try{for(i.s();!(o=i.n()).done;)o.value.removeEventListener("scroll",this.onScroll)}catch(c){i.e(c)}finally{i.f()}var a,s=ht(this.scrollTargets=n);try{for(s.s();!(a=s.n()).done;)a.value.addEventListener("scroll",this.onScroll)}catch(c){s.e(c)}finally{s.f()}}}},{key:"ignore",value:function(t){if(!this.active)return t();try{return this.stop(),t()}finally{this.start(),this.clear()}}},{key:"start",value:function(){this.active||(this.observer.observe(this.dom,c0t),Iy&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}},{key:"stop",value:function(){this.active&&(this.active=!1,this.observer.disconnect(),Iy&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}},{key:"clear",value:function(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}},{key:"delayAndroidKey",value:function(t,n){var r,o=this;this.delayedAndroidKey||(this.flushingAndroidKey=this.view.win.requestAnimationFrame(function(){var i=o.delayedAndroidKey;i&&(o.clearDelayedAndroidKey(),o.view.inputState.lastKeyCode=i.keyCode,o.view.inputState.lastKeyTime=Date.now(),!o.flush()&&i.force&&cf(o.dom,i.key,i.keyCode))})),this.delayedAndroidKey&&t!="Enter"||(this.delayedAndroidKey={key:t,keyCode:n,force:this.lastChange<Date.now()-50||!!(!((r=this.delayedAndroidKey)===null||r===void 0)&&r.force)})}},{key:"clearDelayedAndroidKey",value:function(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}},{key:"flushSoon",value:function(){var t=this;this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame(function(){t.delayedFlush=-1,t.flush()}))}},{key:"forceFlush",value:function(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}},{key:"pendingRecords",value:function(){var t,n=ht(this.observer.takeRecords());try{for(n.s();!(t=n.n()).done;){var r=t.value;this.queue.push(r)}}catch(o){n.e(o)}finally{n.f()}return this.queue}},{key:"processRecords",value:function(){var t=this.pendingRecords();t.length&&(this.queue=[]);var n,r=-1,o=-1,i=!1,a=ht(t);try{for(a.s();!(n=a.n()).done;){var s=n.value,c=this.readMutation(s);c&&(c.typeOver&&(i=!0),r==-1?(r=c.from,o=c.to):(r=Math.min(c.from,r),o=Math.max(c.to,o)))}}catch(u){a.e(u)}finally{a.f()}return{from:r,to:o,typeOver:i}}},{key:"readChange",value:function(){var t=this.processRecords(),n=t.from,r=t.to,o=t.typeOver,i=this.selectionChanged&&km(this.dom,this.selectionRange);return n<0&&!i?null:(n>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1,new s0t(this.view,n,r,o))}},{key:"flush",value:function(){var t=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;t&&this.readSelectionRange();var n=this.readChange();if(!n)return!1;var r=this.view.state,o=BF(this.view,n);return this.view.state==r&&this.view.update([]),o}},{key:"readMutation",value:function(t){var n=this.view.docView.nearest(t.target);if(!n||n.ignoreMutation(t))return null;if(n.markDirty(t.type=="attributes"),t.type=="attributes"&&(n.flags|=4),t.type=="childList"){var r=qP(n,t.previousSibling||t.target.previousSibling,-1),o=qP(n,t.nextSibling||t.target.nextSibling,1);return{from:r?n.posAfter(r):n.posAtStart,to:o?n.posBefore(o):n.posAtEnd,typeOver:!1}}return t.type=="characterData"?{from:n.posAtStart,to:n.posAtEnd,typeOver:t.target.nodeValue==t.oldValue}:null}},{key:"setWindow",value:function(t){t!=this.win&&(this.removeWindowListeners(this.win),this.win=t,this.addWindowListeners(this.win))}},{key:"addWindowListeners",value:function(t){t.addEventListener("resize",this.onResize),t.addEventListener("beforeprint",this.onPrint),t.addEventListener("scroll",this.onScroll),t.document.addEventListener("selectionchange",this.onSelectionChange)}},{key:"removeWindowListeners",value:function(t){t.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onResize),t.removeEventListener("beforeprint",this.onPrint),t.document.removeEventListener("selectionchange",this.onSelectionChange)}},{key:"destroy",value:function(){var t,n,r,o;this.stop(),(t=this.intersection)===null||t===void 0||t.disconnect(),(n=this.gapIntersection)===null||n===void 0||n.disconnect(),(r=this.resizeScroll)===null||r===void 0||r.disconnect(),(o=this.resizeContent)===null||o===void 0||o.disconnect();var i,a=ht(this.scrollTargets);try{for(a.s();!(i=a.n()).done;)i.value.removeEventListener("scroll",this.onScroll)}catch(s){a.e(s)}finally{a.f()}this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}]),e}();function qP(e,t,n){for(;t;){var r=Rr.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 ye=function(){function e(){var t=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ot(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.style.cssText="position: fixed; top: -10000px",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM);var r=n.dispatch;this.dispatchTransactions=n.dispatchTransactions||r&&function(a){return a.forEach(function(s){return r(s,t)})}||function(a){return t.update(a)},this.dispatch=this.dispatch.bind(this),this._root=n.root||function(a){for(;a;){if(a&&(a.nodeType==9||a.nodeType==11&&a.host))return a;a=a.assignedSlot||a.parentNode}return null}(n.parent)||document,this.viewState=new BP(n.state||fr.create(n)),this.plugins=this.state.facet(Bd).map(function(a){return new My(a)});var o,i=ht(this.plugins);try{for(i.s();!(o=i.n()).done;)o.value.update(this)}catch(a){i.e(a)}finally{i.f()}this.observer=new u0t(this),this.inputState=new Wgt(this),this.inputState.ensureHandlers(this,this.plugins),this.docView=new bP(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),n.parent&&n.parent.appendChild(this.dom)}return it(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 t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];var i=r.length==1&&r[0]instanceof ti?r:r.length==1&&Array.isArray(r[0])?r[0]:[(t=this.state).update.apply(t,r)];this.dispatchTransactions(i,this)}},{key:"update",value:function(t){var n=this;if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");var r,o,i=!1,a=!1,s=this.state,c=ht(t);try{for(c.s();!(o=c.n()).done;){var u=o.value;if(u.startState!=s)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");s=u.state}}catch(T){c.e(T)}finally{c.f()}if(this.destroyed)this.viewState.state=s;else{var l=this.hasFocus,f=0,d=null;t.some(function(T){return T.annotation(RF)})?(this.inputState.notifiedFocused=l,f=1):l!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=l,(d=IF(s,l))||(f=1));var h=this.observer.delayedAndroidKey,p=null;if(h?(this.observer.clearDelayedAndroidKey(),((p=this.observer.readChange())&&!this.state.doc.eq(s.doc)||!this.state.selection.eq(s.selection))&&(p=null)):this.observer.clear(),s.facet(fr.phrases)!=this.state.facet(fr.phrases))return this.setState(s);r=dP.create(this,s,t),r.flags|=f;var v=this.viewState.scrollTarget;try{this.updateState=2;var m,g=ht(t);try{for(g.s();!(m=g.n()).done;){var y=m.value;if(v&&(v=v.map(y.changes)),y.scrollIntoView){var b=y.state.selection.main;v=new uP(b.empty?b:Jt.cursor(b.head,b.head>b.anchor?-1:1))}var w,x=ht(y.effects);try{for(x.s();!(w=x.n()).done;){var k=w.value;k.is(lP)&&(v=k.value)}}catch(T){x.e(T)}finally{x.f()}}}catch(T){g.e(T)}finally{g.f()}this.viewState.update(r,v),this.bidiCache=VP.update(this.bidiCache,r.changes),r.empty||(this.updatePlugins(r),this.inputState.update(r)),i=this.docView.update(r),this.state.facet(Fd)!=this.styleModules&&this.mountStyles(),a=this.updateAttrs(),this.showAnnouncements(t),this.docView.updateSelection(i,t.some(function(T){return T.isUserEvent("select.pointer")}))}finally{this.updateState=0}if(r.startState.facet($v)!=r.state.facet($v)&&(this.viewState.mustMeasureContent=!0),(i||a||v||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!r.empty){var E,_=ht(this.state.facet(dx));try{for(_.s();!(E=_.n()).done;)(0,E.value)(r)}catch(T){_.e(T)}finally{_.f()}}(d||p)&&Promise.resolve().then(function(){d&&n.state==d.startState&&n.dispatch(d),p&&!BF(n,p)&&h.force&&cf(n.contentDOM,h.key,h.keyCode)})}}},{key:"setState",value:function(t){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed)this.viewState.state=t;else{this.updateState=2;var n=this.hasFocus;try{var r,o=ht(this.plugins);try{for(o.s();!(r=o.n()).done;)r.value.destroy(this)}catch(s){o.e(s)}finally{o.f()}this.viewState=new BP(t),this.plugins=t.facet(Bd).map(function(s){return new My(s)}),this.pluginMap.clear();var i,a=ht(this.plugins);try{for(a.s();!(i=a.n()).done;)i.value.update(this)}catch(s){a.e(s)}finally{a.f()}this.docView=new bP(this),this.inputState.ensureHandlers(this,this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}n&&this.focus(),this.requestMeasure()}}},{key:"updatePlugins",value:function(t){var n=t.startState.facet(Bd),r=t.state.facet(Bd);if(n!=r){var o,i=[],a=ht(r);try{for(a.s();!(o=a.n()).done;){var s=o.value,c=n.indexOf(s);if(c<0)i.push(new My(s));else{var u=this.plugins[c];u.mustUpdate=t,i.push(u)}}}catch(m){a.e(m)}finally{a.f()}var l,f=ht(this.plugins);try{for(f.s();!(l=f.n()).done;){var d=l.value;d.mustUpdate!=t&&d.destroy(this)}}catch(m){f.e(m)}finally{f.f()}this.plugins=i,this.pluginMap.clear(),this.inputState.ensureHandlers(this,this.plugins)}else{var h,p=ht(this.plugins);try{for(p.s();!(h=p.n()).done;)h.value.mustUpdate=t}catch(m){p.e(m)}finally{p.f()}}for(var v=0;v<this.plugins.length;v++)this.plugins[v].update(this)}},{key:"measure",value:function(){var t=this,n=!(arguments.length>0&&arguments[0]!==void 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,n&&this.observer.forceFlush();var r=null,o=this.scrollDOM,i=o.scrollTop,a=this.viewState,s=a.scrollAnchorPos,c=a.scrollAnchorHeight;i!=this.viewState.scrollTop&&(c=-1),this.viewState.scrollAnchorHeight=-1;try{for(var u=0;;u++){if(c<0)if(eF(o))s=-1,c=this.viewState.heightMap.height;else{var l=this.viewState.scrollAnchorAt(i);s=l.from,c=l.top}this.updateState=1;var f=this.viewState.measure(this);if(!f&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(u>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}var d=[];if(!(4&f)){var h=[d,this.measureRequests];this.measureRequests=h[0],d=h[1]}var p=d.map(function(k){try{return k.read(t)}catch(E){return yi(t.state,E),HP}}),v=dP.create(this,this.state,[]),m=!1;v.flags|=f,r?r.flags|=f:r=v,this.updateState=2,v.empty||(this.updatePlugins(v),this.inputState.update(v),this.updateAttrs(),m=this.docView.update(v));for(var g=0;g<d.length;g++)if(p[g]!=HP)try{var y=d[g];y.write&&y.write(p[g],this)}catch(k){yi(this.state,k)}if(m&&this.docView.updateSelection(!0),!v.viewportChanged&&this.measureRequests.length==0){if(this.viewState.editorHeight){if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null;continue}var b=(s<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(s).top)-c;if(b>1||b<-1){i=o.scrollTop=i+b,c=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(r&&!r.empty){var w,x=ht(this.state.facet(dx));try{for(x.s();!(w=x.n()).done;)(0,w.value)(r)}catch(k){x.e(k)}finally{x.f()}}}}},{key:"themeClasses",get:function(){return xx+" "+(this.state.facet(wx)?LF:DF)+" "+this.state.facet($v)}},{key:"updateAttrs",value:function(){var t=this,n=WP(this,wF,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),r={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(o1)?"true":"false",class:"cm-content",style:"".concat(_e.tabSize,": ").concat(this.state.tabSize),role:"textbox","aria-multiline":"true"};this.state.readOnly&&(r["aria-readonly"]="true"),WP(this,Rj,r);var o=this.observer.ignore(function(){var i=cx(t.contentDOM,t.contentAttrs,r),a=cx(t.dom,t.editorAttrs,n);return i||a});return this.editorAttrs=n,this.contentAttrs=r,o}},{key:"showAnnouncements",value:function(t){var n,r=!0,o=ht(t);try{for(o.s();!(n=o.n()).done;){var i,a=ht(n.value.effects);try{for(a.s();!(i=a.n()).done;){var s=i.value;s.is(e.announce)&&(r&&(this.announceDOM.textContent=""),r=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=s.value)}}catch(c){a.e(c)}finally{a.f()}}}catch(c){o.e(c)}finally{o.f()}}},{key:"mountStyles",value:function(){this.styleModules=this.state.facet(Fd);var t=this.state.facet(e.cspNonce);Uc.mount(this.root,this.styleModules.concat(a0t).reverse(),t?{nonce:t}:void 0)}},{key:"readMeasured",value:function(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}},{key:"requestMeasure",value:function(t){var n=this;if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(function(){return n.measure()})),t){if(this.measureRequests.indexOf(t)>-1)return;if(t.key!=null){for(var r=0;r<this.measureRequests.length;r++)if(this.measureRequests[r].key===t.key)return void(this.measureRequests[r]=t)}this.measureRequests.push(t)}}},{key:"plugin",value:function(t){var n=this.pluginMap.get(t);return(n===void 0||n&&n.spec!=t)&&this.pluginMap.set(t,n=this.plugins.find(function(r){return r.spec==t})||null),n&&n.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:"elementAtHeight",value:function(t){return this.readMeasured(),this.viewState.elementAtHeight(t)}},{key:"lineBlockAtHeight",value:function(t){return this.readMeasured(),this.viewState.lineBlockAtHeight(t)}},{key:"viewportLineBlocks",get:function(){return this.viewState.viewportLines}},{key:"lineBlockAt",value:function(t){return this.viewState.lineBlockAt(t)}},{key:"contentHeight",get:function(){return this.viewState.contentHeight}},{key:"moveByChar",value:function(t,n,r){return Ty(this,t,$P(this,t,n,r))}},{key:"moveByGroup",value:function(t,n){var r=this;return Ty(this,t,$P(this,t,n,function(o){return function(i,a,s){var c=i.state.charCategorizer(a),u=c(s);return function(l){var f=c(l);return u==Sr.Space&&(u=f),u==f}}(r,t.head,o)}))}},{key:"moveToLineBoundary",value:function(t,n){return function(r,o,i,a){var s=gx(r,o.head),c=a&&s.type==Nr.Text&&(r.lineWrapping||s.widgetLineBreaks)?r.coordsAtPos(o.assoc<0&&o.head>s.from?o.head-1:o.head):null;if(c){var u=r.dom.getBoundingClientRect(),l=r.textDirectionAt(s.from),f=r.posAtCoords({x:i==(l==Ir.LTR)?u.right-1:u.left+1,y:(c.top+c.bottom)/2});if(f!=null)return Jt.cursor(f,i?-1:1)}return Jt.cursor(i?s.to:s.from,i?-1:1)}(this,t,n,!(arguments.length>2&&arguments[2]!==void 0)||arguments[2])}},{key:"moveVertically",value:function(t,n,r){return Ty(this,t,function(o,i,a,s){var c=i.head,u=a?1:-1;if(c==(a?o.state.doc.length:0))return Jt.cursor(c,i.assoc);var l,f=i.goalColumn,d=o.contentDOM.getBoundingClientRect(),h=o.coordsAtPos(c),p=o.documentTop;if(h)f==null&&(f=h.left-d.left),l=u<0?h.top:h.bottom;else{var v=o.viewState.lineBlockAt(c);f==null&&(f=Math.min(d.right-d.left,o.defaultCharacterWidth*(c-v.from))),l=(u<0?v.top:v.bottom)+p}for(var m=d.left+f,g=s??o.viewState.heightOracle.textHeight>>1,y=0;;y+=10){var b=l+(g+y)*u,w=_P(o,{x:m,y:b},!1,u);if(b<d.top||b>d.bottom||(u<0?w<c:w>c))return Jt.cursor(w,i.assoc,void 0,f)}}(this,t,n,r))}},{key:"domAtPos",value:function(t){return this.docView.domAtPos(t)}},{key:"posAtDOM",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return this.docView.posFromDOM(t,n)}},{key:"posAtCoords",value:function(t){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];return this.readMeasured(),_P(this,t,n)}},{key:"coordsAtPos",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.readMeasured();var r=this.docView.coordsAt(t,n);if(!r||r.left==r.right)return r;var o=this.state.doc.lineAt(t),i=this.bidiSpans(o);return Oj(r,i[kc.find(i,t-o.from,-1,n)].dir==Ir.LTR==n>0)}},{key:"coordsForChar",value:function(t){return this.readMeasured(),this.docView.coordsForChar(t)}},{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(t){return!this.state.facet(yF)||t<this.viewport.from||t>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(t))}},{key:"lineWrapping",get:function(){return this.viewState.heightOracle.lineWrapping}},{key:"bidiSpans",value:function(t){if(t.length>l0t)return yP(t.length);var n,r,o=this.textDirectionAt(t.from),i=ht(this.bidiCache);try{for(i.s();!(r=i.n()).done;){var a=r.value;if(a.from==t.from&&a.dir==o&&(a.fresh||SF(a.isolates,n=fP(this,t.from,t.to))))return a.order}}catch(c){i.e(c)}finally{i.f()}n||(n=fP(this,t.from,t.to));var s=function(c,u,l){if(!c)return[new kc(0,0,u==_F?1:0)];if(u==Kh&&!l.length&&!Bgt.test(c))return yP(c.length);if(l.length)for(;c.length>or.length;)or[or.length]=256;var f=[],d=u==Kh?0:1;return vx(c,d,d,l,0,c.length,f),f}(t.text,o,n);return this.bidiCache.push(new VP(t.from,t.to,o,n,!0,s)),s}},{key:"hasFocus",get:function(){var t;return(this.dom.ownerDocument.hasFocus()||_e.safari&&((t=this.inputState)===null||t===void 0?void 0:t.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}},{key:"focus",value:function(){var t=this;this.observer.ignore(function(){ZB(t.contentDOM),t.docView.updateSelection()})}},{key:"setRoot",value:function(t){this._root!=t&&(this._root=t,this.observer.setWindow((t.nodeType==9?t:t.ownerDocument).defaultView||window),this.mountStyles())}},{key:"destroy",value:function(){var t,n=ht(this.plugins);try{for(n.s();!(t=n.n()).done;)t.value.destroy(this)}catch(r){n.e(r)}finally{n.f()}this.plugins=[],this.inputState.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}}],[{key:"scrollIntoView",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return lP.of(new uP(typeof t=="number"?Jt.cursor(t):t,n.y,n.x,n.yMargin,n.xMargin))}},{key:"domEventHandlers",value:function(t){return io.define(function(){return{}},{eventHandlers:t})}},{key:"theme",value:function(t,n){var r=Uc.newName(),o=[$v.of(r),Fd.of(kx(".".concat(r),t))];return n&&n.dark&&o.push(wx.of(!0)),o}},{key:"baseTheme",value:function(t){return id.lowest(Fd.of(kx("."+xx,t,zF)))}},{key:"findFromDOM",value:function(t){var n,r=t.querySelector(".cm-content"),o=r&&Rr.get(r)||Rr.get(t);return((n=o==null?void 0:o.rootView)===null||n===void 0?void 0:n.view)||null}}]),e}();ye.styleModule=Fd,ye.inputHandler=mF,ye.focusChangeEffect=gF,ye.perLineTextDirection=yF,ye.exceptionSink=vF,ye.updateListener=dx,ye.editable=o1,ye.mouseSelectionStyle=pF,ye.dragMovesSelection=hF,ye.clickAddsSelectionRange=dF,ye.decorations=Uh,ye.atomicRanges=Ij,ye.bidiIsolatedRanges=xF,ye.scrollMargins=kF,ye.darkTheme=wx,ye.cspNonce=xe.define({combine:function(e){return e.length?e[0]:""}}),ye.contentAttributes=Rj,ye.editorAttributes=wF,ye.lineWrapping=ye.contentAttributes.of({class:"cm-lineWrapping"}),ye.announce=wn.define();var l0t=4096,HP={},VP=function(){function e(t,n,r,o,i,a){ot(this,e),this.from=t,this.to=n,this.dir=r,this.isolates=o,this.fresh=i,this.order=a}return it(e,null,[{key:"update",value:function(t,n){if(n.empty&&!t.some(function(s){return s.fresh}))return t;for(var r=[],o=t.length?t[t.length-1].dir:Ir.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}}]),e}();function WP(e,t,n){for(var r=e.state.facet(t),o=r.length-1;o>=0;o--){var i=r[o],a=typeof i=="function"?i(e):i;a&&sx(a,n)}return n}var f0t=_e.mac?"mac":_e.windows?"win":_e.linux?"linux":"key";function Cv(e,t,n){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),n!==!1&&t.shiftKey&&(e="Shift-"+e),e}var d0t=id.default(ye.domEventHandlers({keydown:function(e,t){return qF(FF(t.state),e,t,"editor")}})),Ag=xe.define({enables:d0t}),UP=new WeakMap;function FF(e){var t=e.facet(Ag),n=UP.get(t);return n||UP.set(t,n=function(r){var o,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:f0t,a=Object.create(null),s=Object.create(null),c=function(k,E){var _=s[k];if(_==null)s[k]=E;else if(_!=E)throw new Error("Key binding "+k+" is used both as a regular binding and as a multi-stroke prefix")},u=function(k,E,_,T,$){for(var j,R,q=a[k]||(a[k]=Object.create(null)),O=E.split(/ (?!$)/).map(function(C){return function(M,P){var B,A,W,N,dt=M.split(/-(?!$)/),et=dt[dt.length-1];et=="Space"&&(et=" ");for(var yt=0;yt<dt.length-1;++yt){var bt=dt[yt];if(/^(cmd|meta|m)$/i.test(bt))N=!0;else if(/^a(lt)?$/i.test(bt))B=!0;else if(/^(c|ctrl|control)$/i.test(bt))A=!0;else if(/^s(hift)?$/i.test(bt))W=!0;else{if(!/^mod$/i.test(bt))throw new Error("Unrecognized modifier name: "+bt);P=="mac"?N=!0:A=!0}}return B&&(et="Alt-"+et),A&&(et="Ctrl-"+et),N&&(et="Meta-"+et),W&&(et="Shift-"+et),et}(C,i)}),F=function(){var C=O.slice(0,J).join(" ");c(C,!0),q[C]||(q[C]={preventDefault:!0,stopPropagation:!1,run:[function(M){var P=gc={view:M,prefix:C,scope:k};return setTimeout(function(){gc==P&&(gc=null)},h0t),!0}]})},J=1;J<O.length;J++)F();var I=O.join(" ");c(I,!1);var D=q[I]||(q[I]={preventDefault:!1,stopPropagation:!1,run:((R=(j=q._any)===null||j===void 0?void 0:j.run)===null||R===void 0?void 0:R.slice())||[]});_&&D.run.push(_),T&&(D.preventDefault=!0),$&&(D.stopPropagation=!0)},l=ht(r);try{for(l.s();!(o=l.n()).done;){var f=o.value,d=f.scope?f.scope.split(" "):["editor"];if(f.any){var h,p=ht(d);try{for(p.s();!(h=p.n()).done;){var v=h.value,m=a[v]||(a[v]=Object.create(null));for(var g in m._any||(m._any={preventDefault:!1,stopPropagation:!1,run:[]}),m)m[g].run.push(f.any)}}catch(k){p.e(k)}finally{p.f()}}var y=f[i]||f.key;if(y){var b,w=ht(d);try{for(w.s();!(b=w.n()).done;){var x=b.value;u(x,y,f.run,f.preventDefault,f.stopPropagation),f.shift&&u(x,"Shift-"+y,f.shift,f.preventDefault,f.stopPropagation)}}catch(k){w.e(k)}finally{w.f()}}}}catch(k){l.e(k)}finally{l.f()}return a}(t.reduce(function(r,o){return r.concat(o)},[]))),n}var gc=null,h0t=4e3;function qF(e,t,n,r){var o=function(v){var m=!(Tgt&&(v.ctrlKey||v.altKey||v.metaKey)||Pgt&&v.shiftKey&&v.key&&v.key.length==1||v.key=="Unidentified")&&v.key||(v.shiftKey?Vh:Kc)[v.keyCode]||v.key||"Unidentified";return m=="Esc"&&(m="Escape"),m=="Del"&&(m="Delete"),m=="Left"&&(m="ArrowLeft"),m=="Up"&&(m="ArrowUp"),m=="Right"&&(m="ArrowRight"),m=="Down"&&(m="ArrowDown"),m}(t),i=Pi(xo(o,0))==o.length&&o!=" ",a="",s=!1,c=!1,u=!1;gc&&gc.view==n&&gc.scope==r&&(a=gc.prefix+" ",MF.indexOf(t.keyCode)<0&&(c=!0,gc=null));var l,f,d=new Set,h=function(v){if(v){var m,g=ht(v.run);try{for(g.s();!(m=g.n()).done;){var y=m.value;if(!d.has(y)&&(d.add(y),y(n,t)))return v.stopPropagation&&(u=!0),!0}}catch(b){g.e(b)}finally{g.f()}v.preventDefault&&(v.stopPropagation&&(u=!0),c=!0)}return!1},p=e[r];return p&&(h(p[a+Cv(o,t,!i)])?s=!0:i&&(t.altKey||t.metaKey||t.ctrlKey)&&!(_e.windows&&t.ctrlKey&&t.altKey)&&(l=Kc[t.keyCode])&&l!=o?(h(p[a+Cv(l,t,!0)])||t.shiftKey&&(f=Vh[t.keyCode])!=o&&f!=l&&h(p[a+Cv(f,t,!1)]))&&(s=!0):i&&t.shiftKey&&h(p[a+Cv(o,t,!0)])&&(s=!0),!s&&h(p._any)&&(s=!0)),c&&(s=!0),s&&u&&t.stopPropagation(),s}var Nj=function(){function e(t,n,r,o,i){ot(this,e),this.className=t,this.left=n,this.top=r,this.width=o,this.height=i}return it(e,[{key:"draw",value:function(){var t=document.createElement("div");return t.className=this.className,this.adjust(t),t}},{key:"update",value:function(t,n){return n.className==this.className&&(this.adjust(t),!0)}},{key:"adjust",value:function(t){t.style.left=this.left+"px",t.style.top=this.top+"px",this.width!=null&&(t.style.width=this.width+"px"),t.style.height=this.height+"px"}},{key:"eq",value:function(t){return this.left==t.left&&this.top==t.top&&this.width==t.width&&this.height==t.height&&this.className==t.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=HF(t);return[new e(n,o.left-i.left,o.top-i.top,null,o.bottom-o.top)]}return p0t(t,n,r)}}]),e}();function HF(e){var t=e.scrollDOM.getBoundingClientRect();return{left:(e.textDirection==Ir.LTR?t.left:t.right-e.scrollDOM.clientWidth)-e.scrollDOM.scrollLeft,top:t.top-e.scrollDOM.scrollTop}}function KP(e,t,n){var r=Jt.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:Nr.Text}}function p0t(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==Ir.LTR,a=e.contentDOM,s=a.getBoundingClientRect(),c=HF(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=gx(e,r),p=gx(e,o),v=h.type==Nr.Text?h:null,m=p.type==Nr.Text?p:null;if(v&&(e.lineWrapping||h.widgetLineBreaks)&&(v=KP(e,r,v)),m&&(e.lineWrapping||p.widgetLineBreaks)&&(m=KP(e,o,m)),v&&m&&v.from==m.from)return x(k(n.from,n.to,v));var g=v?k(n.from,null,v):E(h,!1),y=m?k(null,n.to,m):E(p,!0),b=[];return(v||h).to<(m||p).from-(v&&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==Nr.Text&&(g.bottom=y.top=(g.bottom+y.top)/2),x(g).concat(b).concat(x(y));function w(_,T,$,j){return new Nj(t,_-c.left,T-c.top-.01,$-_,j-T+.01)}function x(_){for(var T=_.top,$=_.bottom,j=_.horizontal,R=[],q=0;q<j.length;q+=2)R.push(w(j[q],T,j[q+1],$));return R}function k(_,T,$){var j=1e9,R=-1e9,q=[];function O(yt,bt,jt,gt,Y){var K=e.coordsAtPos(yt,yt==$.to?-2:2),rt=e.coordsAtPos(jt,jt==$.from?2:-2);K&&rt&&(j=Math.min(K.top,rt.top,j),R=Math.max(K.bottom,rt.bottom,R),Y==Ir.LTR?q.push(i&&bt?f:K.left,i&>?d:rt.right):q.push(!i&>?f:rt.left,!i&&bt?d:K.right))}var F,J=_??$.from,I=T??$.to,D=ht(e.visibleRanges);try{for(D.s();!(F=D.n()).done;){var C=F.value;if(C.to>J&&C.from<I)for(var M=Math.max(C.from,J),P=Math.min(C.to,I);;){var B,A=e.state.doc.lineAt(M),W=ht(e.bidiSpans(A));try{for(W.s();!(B=W.n()).done;){var N=B.value,dt=N.from+A.from,et=N.to+A.from;if(dt>=P)break;et>M&&O(Math.max(dt,M),_==null&&dt<=J,Math.min(et,P),T==null&&et>=I,N.dir)}}catch(yt){W.e(yt)}finally{W.f()}if((M=A.to+1)>=P)break}}}catch(yt){D.e(yt)}finally{D.f()}return q.length==0&&O(J,_==null,I,T==null,e.textDirection),{top:j,bottom:R,horizontal:q}}function E(_,T){var $=s.top+(T?_.top:_.bottom);return{top:$,bottom:$,horizontal:[]}}}var v0t=function(){function e(t,n){ot(this,e),this.view=t,this.layer=n,this.drawn=[],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.dom.setAttribute("aria-hidden","true"),this.setOrder(t.state),t.requestMeasure(this.measureReq),n.mount&&n.mount(this.dom,t)}return it(e,[{key:"update",value:function(t){t.startState.facet(Sm)!=t.state.facet(Sm)&&this.setOrder(t.state),(this.layer.update(t,this.dom)||t.geometryChanged)&&t.view.requestMeasure(this.measureReq)}},{key:"setOrder",value:function(t){for(var n=0,r=t.facet(Sm);n<r.length&&r[n]!=this.layer;)n++;this.dom.style.zIndex=String((this.layer.above?150:-1)-n)}},{key:"measure",value:function(){return this.layer.markers(this.view)}},{key:"draw",value:function(t){var n=this;if(t.length!=this.drawn.length||t.some(function(u,l){return!function(f,d){return f.constructor==d.constructor&&f.eq(d)}(u,n.drawn[l])})){var r,o=this.dom.firstChild,i=0,a=ht(t);try{for(a.s();!(r=a.n()).done;){var s=r.value;s.update&&o&&s.constructor&&this.drawn[i].constructor&&s.update(o,this.drawn[i])?(o=o.nextSibling,i++):this.dom.insertBefore(s.draw(),o)}}catch(u){a.e(u)}finally{a.f()}for(;o;){var c=o.nextSibling;o.remove(),o=c}this.drawn=t}}},{key:"destroy",value:function(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}]),e}(),Sm=xe.define();function VF(e){return[io.define(function(t){return new v0t(t,e)}),Sm.of(e)]}var WF=!_e.ios,Jh=xe.define({combine:function(e){return Xi(e,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:function(t,n){return Math.min(t,n)},drawRangeCursor:function(t,n){return t||n}})}});function m0t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return[Jh.of(e),g0t,y0t,b0t,bF.of(!0)]}function UF(e){return e.startState.facet(Jh)!=e.state.facet(Jh)}var g0t=VF({above:!0,markers:function(e){var t,n=e.state,r=n.facet(Jh),o=[],i=ht(n.selection.ranges);try{for(i.s();!(t=i.n()).done;){var a=t.value,s=a==n.selection.main;if(a.empty?!s||WF:r.drawRangeCursor){var c,u=s?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",l=a.empty?a:Jt.cursor(a.head,a.head>a.anchor?-1:1),f=ht(Nj.forRange(e,u,l));try{for(f.s();!(c=f.n()).done;){var d=c.value;o.push(d)}}catch(h){f.e(h)}finally{f.f()}}}}catch(h){i.e(h)}finally{i.f()}return o},update:function(e,t){e.transactions.some(function(r){return r.selection})&&(t.style.animationName=t.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");var n=UF(e);return n&&JP(e.state,t),e.docChanged||e.selectionSet||n},mount:function(e,t){JP(t.state,e)},class:"cm-cursorLayer"});function JP(e,t){t.style.animationDuration=e.facet(Jh).cursorBlinkRate+"ms"}var y0t=VF({above:!1,markers:function(e){return e.state.selection.ranges.map(function(t){return t.empty?[]:Nj.forRange(e,"cm-selectionBackground",t)}).reduce(function(t,n){return t.concat(n)})},update:function(e,t){return e.docChanged||e.selectionSet||e.viewportChanged||UF(e)},class:"cm-selectionLayer"}),KF={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};WF&&(KF[".cm-line"].caretColor="transparent !important");var b0t=id.highest(ye.theme(KF)),JF=wn.define({map:function(e,t){return e==null?null:t.mapPos(e)}}),Hd=$o.define({create:function(){return null},update:function(e,t){return e!=null&&(e=t.changes.mapPos(e)),t.effects.reduce(function(n,r){return r.is(JF)?r.value:n},e)}}),w0t=io.fromClass(function(){function e(t){ot(this,e),this.view=t,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}return it(e,[{key:"update",value:function(t){var n,r=t.state.field(Hd);r==null?this.cursor!=null&&((n=this.cursor)===null||n===void 0||n.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(t.startState.field(Hd)!=r||t.docChanged||t.geometryChanged)&&this.view.requestMeasure(this.measureReq))}},{key:"readPos",value:function(){var t=this.view.state.field(Hd),n=t!=null&&this.view.coordsAtPos(t);if(!n)return null;var r=this.view.scrollDOM.getBoundingClientRect();return{left:n.left-r.left+this.view.scrollDOM.scrollLeft,top:n.top-r.top+this.view.scrollDOM.scrollTop,height:n.bottom-n.top}}},{key:"drawCursor",value:function(t){this.cursor&&(t?(this.cursor.style.left=t.left+"px",this.cursor.style.top=t.top+"px",this.cursor.style.height=t.height+"px"):this.cursor.style.left="-100000px")}},{key:"destroy",value:function(){this.cursor&&this.cursor.remove()}},{key:"setDropPos",value:function(t){this.view.state.field(Hd)!=t&&this.view.dispatch({effects:JF.of(t)})}}]),e}(),{eventHandlers:{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 GP(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 x0t=function(){function e(t){ot(this,e);var n=t.regexp,r=t.decoration,o=t.decorate,i=t.boundary,a=t.maxLength,s=a===void 0?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(c,u,l,f){return o(f,l,l+c[0].length,c,u)};else if(typeof r=="function")this.addMatch=function(c,u,l,f){var d=r(c,u,l);d&&f(l,l+c[0].length,d)};else{if(!r)throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.addMatch=function(c,u,l,f){return f(l,l+c[0].length,r)}}this.boundary=i,this.maxLength=s}return it(e,[{key:"createDeco",value:function(t){var n,r=this,o=new Wc,i=o.add.bind(o),a=ht(function(l,f){var d=l.visibleRanges;if(d.length==1&&d[0].from==l.viewport.from&&d[0].to==l.viewport.to)return d;var h,p=[],v=ht(d);try{for(v.s();!(h=v.n()).done;){var m=h.value,g=m.from,y=m.to;g=Math.max(l.state.doc.lineAt(g).from,g-f),y=Math.min(l.state.doc.lineAt(y).to,y+f),p.length&&p[p.length-1].to>=g?p[p.length-1].to=y:p.push({from:g,to:y})}}catch(b){v.e(b)}finally{v.f()}return p}(t,this.maxLength));try{for(a.s();!(n=a.n()).done;){var s=n.value,c=s.from,u=s.to;GP(t.state.doc,this.regexp,c,u,function(l,f){return r.addMatch(f,t,l,i)})}}catch(l){a.e(l)}finally{a.f()}return o.finish()}},{key:"updateDeco",value:function(t,n){var r=1e9,o=-1;return t.docChanged&&t.changes.iterChanges(function(i,a,s,c){c>t.view.viewport.from&&s<t.view.viewport.to&&(r=Math.min(s,r),o=Math.max(c,o))}),t.viewportChanged||o-r>1e3?this.createDeco(t.view):o>-1?this.updateRange(t.view,n.map(t.changes),r,o):n}},{key:"updateRange",value:function(t,n,r,o){var i,a=this,s=ht(t.visibleRanges);try{var c=function(){var u=i.value,l=Math.max(u.from,r),f=Math.min(u.to,o);if(f>l){var d=t.state.doc.lineAt(l),h=d.to<f?t.state.doc.lineAt(f):d,p=Math.max(u.from,d.from),v=Math.min(u.to,h.to);if(a.boundary){for(;l>d.from;l--)if(a.boundary.test(d.text[l-1-d.from])){p=l;break}for(;f<h.to;f++)if(a.boundary.test(h.text[f-h.from])){v=f;break}}var m,g=[],y=function(b,w,x){return g.push(x.range(b,w))};if(d==h)for(a.regexp.lastIndex=p-d.from;(m=a.regexp.exec(d.text))&&m.index<v-d.from;)a.addMatch(m,t,m.index+d.from,y);else GP(t.state.doc,a.regexp,p,v,function(b,w){return a.addMatch(w,t,b,y)});n=n.update({filterFrom:p,filterTo:v,filter:function(b,w){return b<p||w>v},add:g})}};for(s.s();!(i=s.n()).done;)c()}catch(u){s.e(u)}finally{s.f()}return n}}]),e}(),jx=/x/.unicode!=null?"gu":"g",k0t=new RegExp(`[\0-\b
|
|
114
|
+
--\u2028\u2029\uFEFF-]`,jx),j0t={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"},Ny=null,Ev=xe.define({combine:function(e){var t=Xi(e,{render:null,specialChars:k0t,addSpecialChars:null});return(t.replaceTabs=!function(){var n;if(Ny==null&&typeof document<"u"&&document.body){var r=document.body.style;Ny=((n=r.tabSize)!==null&&n!==void 0?n:r.MozTabSize)!=null}return Ny||!1}())&&(t.specialChars=new RegExp(" |"+t.specialChars.source,jx)),t.addSpecialChars&&(t.specialChars=new RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,jx)),t}});function _0t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return[Ev.of(e),QP||(QP=io.fromClass(function(){function t(n){ot(this,t),this.view=n,this.decorations=Ue.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(n.state.facet(Ev)),this.decorations=this.decorator.createDeco(n)}return it(t,[{key:"makeDecorator",value:function(n){var r=this;return new x0t({regexp:n.specialChars,decoration:function(o,i,a){var s=i.state.doc,c=xo(o[0],0);if(c==9){var u=s.lineAt(a),l=i.state.tabSize,f=Pp(u.text,l,a-u.from);return Ue.replace({widget:new $0t((l-f%l)*r.view.defaultCharacterWidth)})}return r.decorationCache[c]||(r.decorationCache[c]=Ue.replace({widget:new S0t(n,c)}))},boundary:n.replaceTabs?void 0:/[^]/})}},{key:"update",value:function(n){var r=n.state.facet(Ev);n.startState.facet(Ev)!=r?(this.decorator=this.makeDecorator(r),this.decorations=this.decorator.createDeco(n.view)):this.decorations=this.decorator.updateDeco(n,this.decorations)}}]),t}(),{decorations:function(t){return t.decorations}}))]}var QP=null,S0t=function(e){Tt(n,au);var t=Rt(n);function n(r,o){var i;return ot(this,n),(i=t.call(this)).options=r,i.code=o,i}return it(n,[{key:"eq",value:function(r){return r.code==this.code}},{key:"toDOM",value:function(r){var o=function(c){return c>=32?"•":c==10?"":String.fromCharCode(9216+c)}(this.code),i=r.state.phrase("Control character")+" "+(j0t[this.code]||"0x"+this.code.toString(16)),a=this.options.render&&this.options.render(this.code,i,o);if(a)return a;var s=document.createElement("span");return s.textContent=o,s.title=i,s.setAttribute("aria-label",i),s.className="cm-specialChar",s}},{key:"ignoreEvent",value:function(){return!1}}]),n}(),$0t=function(e){Tt(n,au);var t=Rt(n);function n(r){var o;return ot(this,n),(o=t.call(this)).width=r,o}return it(n,[{key:"eq",value:function(r){return r.width==this.width}},{key:"toDOM",value:function(){var r=document.createElement("span");return r.textContent=" ",r.className="cm-tab",r.style.width=this.width+"px",r}},{key:"ignoreEvent",value:function(){return!1}}]),n}(),C0t=Ue.line({class:"cm-activeLine"}),E0t=io.fromClass(function(){function e(t){ot(this,e),this.decorations=this.getDeco(t)}return it(e,[{key:"update",value:function(t){(t.docChanged||t.selectionSet)&&(this.decorations=this.getDeco(t.view))}},{key:"getDeco",value:function(t){var n,r=-1,o=[],i=ht(t.state.selection.ranges);try{for(i.s();!(n=i.n()).done;){var a=n.value,s=t.lineBlockAt(a.head);s.from>r&&(o.push(C0t.range(s.from)),r=s.from)}}catch(c){i.e(c)}finally{i.f()}return Ue.set(o)}}]),e}(),{decorations:function(e){return e.decorations}}),_x=2e3;function YP(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>_x?-1:o==r.length?function(a,s){var c=a.coordsAtPos(a.viewport.from);return c?Math.round(Math.abs((c.left-s)/a.defaultCharacterWidth)):-1}(e,t.clientX):Pp(r.text,e.state.tabSize,n-r.from);return{line:r.number,col:i,off:o}}function O0t(e,t){var n=YP(e,t),r=e.state.selection;return n?{update:function(o){if(o.docChanged){var i=o.changes.mapPos(o.startState.doc.line(n.line).from),a=o.state.doc.lineAt(i);n={line:a.number,col:n.col,off:Math.min(n.off,a.length)},r=r.map(o.changes)}},get:function(o,i,a){var s=YP(e,o);if(!s)return r;var c=function(u,l,f){var d=Math.min(l.line,f.line),h=Math.max(l.line,f.line),p=[];if(l.off>_x||f.off>_x||l.col<0||f.col<0)for(var v=Math.min(l.off,f.off),m=Math.max(l.off,f.off),g=d;g<=h;g++){var y=u.doc.line(g);y.length<=m&&p.push(Jt.range(y.from+v,y.to+m))}else for(var b=Math.min(l.col,f.col),w=Math.max(l.col,f.col),x=d;x<=h;x++){var k=u.doc.line(x),E=ex(k.text,b,u.tabSize,!0);if(E<0)p.push(Jt.cursor(k.to));else{var _=ex(k.text,w,u.tabSize);p.push(Jt.range(k.from+E,k.from+_))}}return p}(e.state,n,s);return c.length?a?Jt.create(c.concat(r.ranges)):Jt.create(c):r}}:null}function M0t(e){var t=(e==null?void 0:e.eventFilter)||function(n){return n.altKey&&n.button==0};return ye.mouseSelectionStyle.of(function(n,r){return t(r)?O0t(n,r):null})}var A0t={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}]},P0t={style:"cursor: crosshair"};function T0t(){var e=Ce(A0t[(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}).key||"Alt"],2),t=e[0],n=e[1],r=io.fromClass(function(){function o(i){ot(this,o),this.view=i,this.isDown=!1}return it(o,[{key:"set",value:function(i){this.isDown!=i&&(this.isDown=i,this.view.update([]))}}]),o}(),{eventHandlers:{keydown:function(o){this.set(o.keyCode==t||n(o))},keyup:function(o){o.keyCode!=t&&n(o)||this.set(!1)},mousemove:function(o){this.set(n(o))}}});return[r,ye.contentAttributes.of(function(o){var i;return!((i=o.plugin(r))===null||i===void 0)&&i.isDown?P0t:null})]}var Ov="-10000px",GF=function(){function e(t,n,r){ot(this,e),this.facet=n,this.createTooltipView=r,this.input=t.state.facet(n),this.tooltips=this.input.filter(function(o){return o}),this.tooltipViews=this.tooltips.map(r)}return it(e,[{key:"update",value:function(t){var n,r=t.state.facet(this.facet),o=r.filter(function(y){return y});if(r===this.input){var i,a=ht(this.tooltipViews);try{for(a.s();!(i=a.n()).done;){var s=i.value;s.update&&s.update(t)}}catch(y){a.e(y)}finally{a.f()}return!1}for(var c=[],u=0;u<o.length;u++){var l=o[u],f=-1;if(l){for(var d=0;d<this.tooltips.length;d++){var h=this.tooltips[d];h&&h.create==l.create&&(f=d)}if(f<0)c[u]=this.createTooltipView(l);else{var p=c[u]=this.tooltipViews[f];p.update&&p.update(t)}}}var v,m=ht(this.tooltipViews);try{for(m.s();!(v=m.n()).done;){var g=v.value;c.indexOf(g)<0&&(g.dom.remove(),(n=g.destroy)===null||n===void 0||n.call(g))}}catch(y){m.e(y)}finally{m.f()}return this.input=r,this.tooltips=o,this.tooltipViews=c,!0}}]),e}();function R0t(e){var t=e.win;return{top:0,left:0,bottom:t.innerHeight,right:t.innerWidth}}var Dy=xe.define({combine:function(e){var t,n,r;return{position:_e.ios?"absolute":((t=e.find(function(o){return o.position}))===null||t===void 0?void 0:t.position)||"fixed",parent:((n=e.find(function(o){return o.parent}))===null||n===void 0?void 0:n.parent)||null,tooltipSpace:((r=e.find(function(o){return o.tooltipSpace}))===null||r===void 0?void 0:r.tooltipSpace)||R0t}}}),XP=new WeakMap,QF=io.fromClass(function(){function e(t){var n=this;ot(this,e),this.view=t,this.inView=!0,this.lastTransaction=0,this.measureTimeout=-1;var r=t.state.facet(Dy);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.manager=new GF(t,i1,function(o){return n.createTooltip(o)}),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(function(o){Date.now()>n.lastTransaction-50&&o.length>0&&o[o.length-1].intersectionRatio<1&&n.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),t.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}return it(e,[{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 t,n=ht(this.manager.tooltipViews);try{for(n.s();!(t=n.n()).done;){var r=t.value;this.intersectionObserver.observe(r.dom)}}catch(o){n.e(o)}finally{n.f()}}}},{key:"measureSoon",value:function(){var t=this;this.measureTimeout<0&&(this.measureTimeout=setTimeout(function(){t.measureTimeout=-1,t.maybeMeasure()},50))}},{key:"update",value:function(t){t.transactions.length&&(this.lastTransaction=Date.now());var n=this.manager.update(t);n&&this.observeIntersection();var r=n||t.geometryChanged,o=t.state.facet(Dy);if(o.position!=this.position){this.position=o.position;var i,a=ht(this.manager.tooltipViews);try{for(a.s();!(i=a.n()).done;)i.value.dom.style.position=this.position}catch(l){a.e(l)}finally{a.f()}r=!0}if(o.parent!=this.parent){this.parent&&this.container.remove(),this.parent=o.parent,this.createContainer();var s,c=ht(this.manager.tooltipViews);try{for(c.s();!(s=c.n()).done;){var u=s.value;this.container.appendChild(u.dom)}}catch(l){c.e(l)}finally{c.f()}r=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);r&&this.maybeMeasure()}},{key:"createTooltip",value:function(t){var n=t.create(this.view);if(n.dom.classList.add("cm-tooltip"),t.arrow&&!n.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){var r=document.createElement("div");r.className="cm-tooltip-arrow",n.dom.appendChild(r)}return n.dom.style.position=this.position,n.dom.style.top=Ov,this.container.appendChild(n.dom),n.mount&&n.mount(this.view),n}},{key:"destroy",value:function(){var t,n;this.view.win.removeEventListener("resize",this.measureSoon);var r,o=ht(this.manager.tooltipViews);try{for(o.s();!(r=o.n()).done;){var i=r.value;i.dom.remove(),(t=i.destroy)===null||t===void 0||t.call(i)}}catch(a){o.e(a)}finally{o.f()}(n=this.intersectionObserver)===null||n===void 0||n.disconnect(),clearTimeout(this.measureTimeout)}},{key:"readMeasure",value:function(){var t=this,n=this.view.dom.getBoundingClientRect();return{editor:n,parent:this.parent?this.container.getBoundingClientRect():n,pos:this.manager.tooltips.map(function(r,o){var i=t.manager.tooltipViews[o];return i.getCoords?i.getCoords(r.pos):t.view.coordsAtPos(r.pos)}),size:this.manager.tooltipViews.map(function(r){return r.dom.getBoundingClientRect()}),space:this.view.state.facet(Dy).tooltipSpace(this.view)}}},{key:"writeMeasure",value:function(t){for(var n,r=t.editor,o=t.space,i=[],a=0;a<this.manager.tooltips.length;a++){var s=this.manager.tooltips[a],c=this.manager.tooltipViews[a],u=c.dom,l=t.pos[a],f=t.size[a];if(!l||l.bottom<=Math.max(r.top,o.top)||l.top>=Math.min(r.bottom,o.bottom)||l.right<Math.max(r.left,o.left)-.1||l.left>Math.min(r.right,o.right)+.1)u.style.top=Ov;else{var d=s.arrow?c.dom.querySelector(".cm-tooltip-arrow"):null,h=d?7:0,p=f.right-f.left,v=(n=XP.get(c))!==null&&n!==void 0?n:f.bottom-f.top,m=c.offset||N0t,g=this.view.textDirection==Ir.LTR,y=f.width>o.right-o.left?g?o.left:o.right-f.width:g?Math.min(l.left-(d?14:0)+m.x,o.right-p):Math.max(o.left,l.left-p+(d?14:0)-m.x),b=!!s.above;!s.strictSide&&(b?l.top-(f.bottom-f.top)-m.y<o.top:l.bottom+(f.bottom-f.top)+m.y>o.bottom)&&b==o.bottom-l.bottom>l.top-o.top&&(b=!b);var w=(b?l.top-o.top:o.bottom-l.bottom)-h;if(w<v&&c.resize!==!1){if(w<this.view.defaultLineHeight){u.style.top=Ov;continue}XP.set(c,v),u.style.height=(v=w)+"px"}else u.style.height&&(u.style.height="");var x=b?l.top-v-h-m.y:l.bottom+h+m.y,k=y+p;if(c.overlap!==!0){var E,_=ht(i);try{for(_.s();!(E=_.n()).done;){var T=E.value;T.left<k&&T.right>y&&T.top<x+v&&T.bottom>x&&(x=b?T.top-v-2-h:T.bottom+h+2)}}catch($){_.e($)}finally{_.f()}}this.position=="absolute"?(u.style.top=x-t.parent.top+"px",u.style.left=y-t.parent.left+"px"):(u.style.top=x+"px",u.style.left=y+"px"),d&&(d.style.left="".concat(l.left+(g?m.x:-m.x)-(y+14-7),"px")),c.overlap!==!0&&i.push({left:y,top:x,right:k,bottom:x+v}),u.classList.toggle("cm-tooltip-above",b),u.classList.toggle("cm-tooltip-below",!b),c.positioned&&c.positioned(t.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 t,n=ht(this.manager.tooltipViews);try{for(n.s();!(t=n.n()).done;)t.value.dom.style.top=Ov}catch(r){n.e(r)}finally{n.f()}}}}]),e}(),{eventHandlers:{scroll:function(){this.maybeMeasure()}}}),I0t=ye.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"}}}),N0t={x:0,y:0},i1=xe.define({enables:[QF,I0t]}),Pg=xe.define(),D0t=function(){function e(t){var n=this;ot(this,e),this.view=t,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new GF(t,Pg,function(r){return n.createHostedView(r)})}return it(e,[{key:"createHostedView",value:function(t){var n=t.create(this.view);return n.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(n.dom),this.mounted&&n.mount&&n.mount(this.view),n}},{key:"mount",value:function(t){var n,r=ht(this.manager.tooltipViews);try{for(r.s();!(n=r.n()).done;){var o=n.value;o.mount&&o.mount(t)}}catch(i){r.e(i)}finally{r.f()}this.mounted=!0}},{key:"positioned",value:function(t){var n,r=ht(this.manager.tooltipViews);try{for(r.s();!(n=r.n()).done;){var o=n.value;o.positioned&&o.positioned(t)}}catch(i){r.e(i)}finally{r.f()}}},{key:"update",value:function(t){this.manager.update(t)}},{key:"destroy",value:function(){var t,n,r=ht(this.manager.tooltipViews);try{for(r.s();!(n=r.n()).done;){var o=n.value;(t=o.destroy)===null||t===void 0||t.call(o)}}catch(i){r.e(i)}finally{r.f()}}}],[{key:"create",value:function(t){return new e(t)}}]),e}(),L0t=i1.compute([Pg],function(e){var t=e.facet(Pg).filter(function(n){return n});return t.length===0?null:{pos:Math.min.apply(Math,$e(t.map(function(n){return n.pos}))),end:Math.max.apply(Math,$e(t.filter(function(n){return n.end!=null}).map(function(n){return n.end}))),create:D0t.create,above:t[0].above,arrow:t.some(function(n){return n.arrow})}}),z0t=function(){function e(t,n,r,o,i){ot(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))}return it(e,[{key:"update",value:function(){var t=this;this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(function(){return t.startHover()},20))}},{key:"active",get:function(){return this.view.state.field(this.field)}},{key:"checkHover",value:function(){if(this.hoverTimeout=-1,!this.active){var t=Date.now()-this.lastMove.time;t<this.hoverTime?this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime-t):this.startHover()}}},{key:"startHover",value:function(){var t=this;clearTimeout(this.restartTimeout);var n=this.view,r=this.lastMove,o=n.docView.nearest(r.target);if(o){var i,a=1;if(o instanceof Aj)i=o.posAtStart;else{if((i=n.posAtCoords(r))==null)return;var s=n.coordsAtPos(i);if(!s||r.y<s.top||r.y>s.bottom||r.x<s.left-n.defaultCharacterWidth||r.x>s.right+n.defaultCharacterWidth)return;var c=n.bidiSpans(n.state.doc.lineAt(i)).find(function(d){return d.from<=i&&d.to>=i}),u=c&&c.dir==Ir.RTL?-1:1;a=r.x<s.left?-u:u}var l=this.source(n,i,a);if(l!=null&&l.then){var f=this.pending={pos:i};l.then(function(d){t.pending==f&&(t.pending=null,d&&n.dispatch({effects:t.setHover.of(d)}))},function(d){return yi(n.state,d,"hover tooltip")})}else l&&n.dispatch({effects:this.setHover.of(l)})}}},{key:"mousemove",value:function(t){var n;this.lastMove={x:t.clientX,y:t.clientY,target:t.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));var r=this.active;if(r&&!ZP(this.lastMove.target)||this.pending){var o=(r||this.pending).pos,i=(n=r==null?void 0:r.end)!==null&&n!==void 0?n:o;(o==i?this.view.posAtCoords(this.lastMove)==o:function(a,s,c,u,l,f){var d=a.scrollDOM.getBoundingClientRect(),h=a.documentTop+a.documentPadding.top+a.contentHeight;if(d.left>u||d.right<u||d.top>l||Math.min(d.bottom,h)<l)return!1;var p=a.posAtCoords({x:u,y:l},!1);return p>=s&&p<=c}(this.view,o,i,t.clientX,t.clientY))||(this.view.dispatch({effects:this.setHover.of(null)}),this.pending=null)}}},{key:"mouseleave",value:function(t){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1,this.active&&!ZP(t.relatedTarget)&&this.view.dispatch({effects:this.setHover.of(null)})}},{key:"destroy",value:function(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}]),e}();function ZP(e){for(var t=e;t;t=t.parentNode)if(t.nodeType==1&&t.classList.contains("cm-tooltip"))return!0;return!1}function B0t(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=wn.define(),r=$o.define({create:function(){return null},update:function(o,i){if(o&&(t.hideOnChange&&(i.docChanged||i.selection)||t.hideOn&&t.hideOn(i,o)))return null;if(o&&i.docChanged){var a=i.changes.mapPos(o.pos,-1,qo.TrackDel);if(a==null)return null;var s=Object.assign(Object.create(null),o);s.pos=a,o.end!=null&&(s.end=i.changes.mapPos(o.end)),o=s}var c,u=ht(i.effects);try{for(u.s();!(c=u.n()).done;){var l=c.value;l.is(n)&&(o=l.value),l.is(F0t)&&(o=null)}}catch(f){u.e(f)}finally{u.f()}return o},provide:function(o){return Pg.from(o)}});return[r,io.define(function(o){return new z0t(o,e,r,n,t.hoverTime||300)}),L0t]}function YF(e,t){var n=e.plugin(QF);if(!n)return null;var r=n.manager.tooltips.indexOf(t);return r<0?null:n.manager.tooltipViews[r]}var F0t=wn.define(),tT=xe.define({combine:function(e){var t,n,r,o=ht(e);try{for(o.s();!(r=o.n()).done;){var i=r.value;t=t||i.topContainer,n=n||i.bottomContainer}}catch(a){o.e(a)}finally{o.f()}return{topContainer:t,bottomContainer:n}}});function Gh(e,t){var n=e.plugin(XF),r=n?n.specs.indexOf(t):-1;return r>-1?n.panels[r]:null}var XF=io.fromClass(function(){function e(t){ot(this,e),this.input=t.state.facet(Qh),this.specs=this.input.filter(function(a){return a}),this.panels=this.specs.map(function(a){return a(t)});var n=t.state.facet(tT);this.top=new Mv(t,!0,n.topContainer),this.bottom=new Mv(t,!1,n.bottomContainer),this.top.sync(this.panels.filter(function(a){return a.top})),this.bottom.sync(this.panels.filter(function(a){return!a.top}));var r,o=ht(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(a){o.e(a)}finally{o.f()}}return it(e,[{key:"update",value:function(t){var n=t.state.facet(tT);this.top.container!=n.topContainer&&(this.top.sync([]),this.top=new Mv(t.view,!0,n.topContainer)),this.bottom.container!=n.bottomContainer&&(this.bottom.sync([]),this.bottom=new Mv(t.view,!1,n.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();var r=t.state.facet(Qh);if(r!=this.input){var o,i=r.filter(function(w){return w}),a=[],s=[],c=[],u=[],l=ht(i);try{for(l.s();!(o=l.n()).done;){var f=o.value,d=this.specs.indexOf(f),h=void 0;d<0?(h=f(t.view),u.push(h)):(h=this.panels[d]).update&&h.update(t),a.push(h),(h.top?s:c).push(h)}}catch(w){l.e(w)}finally{l.f()}this.specs=i,this.panels=a,this.top.sync(s),this.bottom.sync(c);for(var p=0,v=u;p<v.length;p++){var m=v[p];m.dom.classList.add("cm-panel"),m.mount&&m.mount()}}else{var g,y=ht(this.panels);try{for(y.s();!(g=y.n()).done;){var b=g.value;b.update&&b.update(t)}}catch(w){y.e(w)}finally{y.f()}}}},{key:"destroy",value:function(){this.top.sync([]),this.bottom.sync([])}}]),e}(),{provide:function(e){return ye.scrollMargins.of(function(t){var n=t.plugin(e);return n&&{top:n.top.scrollMargin(),bottom:n.bottom.scrollMargin()}})}}),Mv=function(){function e(t,n,r){ot(this,e),this.view=t,this.top=n,this.container=r,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}return it(e,[{key:"sync",value:function(t){var n,r=ht(this.panels);try{for(r.s();!(n=r.n()).done;){var o=n.value;o.destroy&&t.indexOf(o)<0&&o.destroy()}}catch(i){r.e(i)}finally{r.f()}this.panels=t,this.syncDOM()}},{key:"syncDOM",value:function(){if(this.panels.length!=0){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 t=this.container||this.view.dom;t.insertBefore(this.dom,this.top?t.firstChild:null)}var n,r=this.dom.firstChild,o=ht(this.panels);try{for(o.s();!(n=o.n()).done;){var i=n.value;if(i.dom.parentNode==this.dom){for(;r!=i.dom;)r=eT(r);r=r.nextSibling}else this.dom.insertBefore(i.dom,r)}}catch(a){o.e(a)}finally{o.f()}for(;r;)r=eT(r)}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 t,n=ht(this.classes.split(" "));try{for(n.s();!(t=n.n()).done;){var r=t.value;r&&this.container.classList.remove(r)}}catch(s){n.e(s)}finally{n.f()}var o,i=ht((this.classes=this.view.themeClasses).split(" "));try{for(i.s();!(o=i.n()).done;){var a=o.value;a&&this.container.classList.add(a)}}catch(s){i.e(s)}finally{i.f()}}}}]),e}();function eT(e){var t=e.nextSibling;return e.remove(),t}var Qh=xe.define({enables:XF}),Ua=function(e){Tt(n,Pu);var t=Rt(n);function n(){return ot(this,n),t.apply(this,arguments)}return it(n,[{key:"compare",value:function(r){return this==r||this.constructor==r.constructor&&this.eq(r)}},{key:"eq",value:function(r){return!1}},{key:"destroy",value:function(r){}}]),n}();Ua.prototype.elementClass="",Ua.prototype.toDOM=void 0,Ua.prototype.mapMode=qo.TrackBefore,Ua.prototype.startSide=Ua.prototype.endSide=-1,Ua.prototype.point=!0;var $m=xe.define(),q0t={class:"",renderEmptyElements:!1,elementStyle:"",markers:function(){return vr.empty},lineMarker:function(){return null},widgetMarker:function(){return null},lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},lh=xe.define();function ZF(e){return[tq(),lh.of(Object.assign(Object.assign({},q0t),e))]}var Sx=xe.define({combine:function(e){return e.some(function(t){return t})}});function tq(e){var t=[H0t];return e&&e.fixed===!1&&t.push(Sx.of(!0)),t}var H0t=io.fromClass(function(){function e(t){ot(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+"px",this.gutters=t.state.facet(lh).map(function(i){return new rT(t,i)});var n,r=ht(this.gutters);try{for(r.s();!(n=r.n()).done;){var o=n.value;this.dom.appendChild(o.dom)}}catch(i){r.e(i)}finally{r.f()}this.fixed=!t.state.facet(Sx),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),t.scrollDOM.insertBefore(this.dom,t.contentDOM)}return it(e,[{key:"update",value:function(t){if(this.updateGutters(t)){var n=this.prevViewport,r=t.view.viewport,o=Math.min(n.to,r.to)-Math.max(n.from,r.from);this.syncGutters(o<.8*(r.to-r.from))}t.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(Sx)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=t.view.viewport}},{key:"syncGutters",value:function(t){var n=this,r=this.dom.nextSibling;t&&this.dom.remove();var o,i=vr.iter(this.view.state.facet($m),this.view.viewport.from),a=[],s=this.gutters.map(function(k){return new V0t(k,n.view.viewport,-n.view.documentPadding.top)}),c=ht(this.view.viewportLineBlocks);try{for(c.s();!(o=c.n()).done;){var u=o.value;if(a.length&&(a=[]),Array.isArray(u.type)){var l,f=!0,d=ht(u.type);try{for(d.s();!(l=d.n()).done;){var h=l.value;if(h.type==Nr.Text&&f){$x(i,a,h.from);var p,v=ht(s);try{for(v.s();!(p=v.n()).done;)p.value.line(this.view,h,a)}catch(k){v.e(k)}finally{v.f()}f=!1}else if(h.widget){var m,g=ht(s);try{for(g.s();!(m=g.n()).done;)m.value.widget(this.view,h)}catch(k){g.e(k)}finally{g.f()}}}}catch(k){d.e(k)}finally{d.f()}}else if(u.type==Nr.Text){$x(i,a,u.from);var y,b=ht(s);try{for(b.s();!(y=b.n()).done;)y.value.line(this.view,u,a)}catch(k){b.e(k)}finally{b.f()}}}}catch(k){c.e(k)}finally{c.f()}var w,x=ht(s);try{for(x.s();!(w=x.n()).done;)w.value.finish()}catch(k){x.e(k)}finally{x.f()}t&&this.view.scrollDOM.insertBefore(this.dom,r)}},{key:"updateGutters",value:function(t){var n=t.startState.facet(lh),r=t.state.facet(lh),o=t.docChanged||t.heightChanged||t.viewportChanged||!vr.eq(t.startState.facet($m),t.state.facet($m),t.view.viewport.from,t.view.viewport.to);if(n==r){var i,a=ht(this.gutters);try{for(a.s();!(i=a.n()).done;)i.value.update(t)&&(o=!0)}catch(y){a.e(y)}finally{a.f()}}else{o=!0;var s,c=[],u=ht(r);try{for(u.s();!(s=u.n()).done;){var l=s.value,f=n.indexOf(l);f<0?c.push(new rT(this.view,l)):(this.gutters[f].update(t),c.push(this.gutters[f]))}}catch(y){u.e(y)}finally{u.f()}var d,h=ht(this.gutters);try{for(h.s();!(d=h.n()).done;){var p=d.value;p.dom.remove(),c.indexOf(p)<0&&p.destroy()}}catch(y){h.e(y)}finally{h.f()}for(var v=0,m=c;v<m.length;v++){var g=m[v];this.dom.appendChild(g.dom)}this.gutters=c}return o}},{key:"destroy",value:function(){var t,n=ht(this.gutters);try{for(n.s();!(t=n.n()).done;)t.value.destroy()}catch(r){n.e(r)}finally{n.f()}this.dom.remove()}}]),e}(),{provide:function(e){return ye.scrollMargins.of(function(t){var n=t.plugin(e);return n&&n.gutters.length!=0&&n.fixed?t.textDirection==Ir.LTR?{left:n.dom.offsetWidth}:{right:n.dom.offsetWidth}:null})}});function nT(e){return Array.isArray(e)?e:[e]}function $x(e,t,n){for(;e.value&&e.from<=n;)e.from==n&&t.push(e.value),e.next()}var V0t=function(){function e(t,n,r){ot(this,e),this.gutter=t,this.height=r,this.i=0,this.cursor=vr.iter(t.markers,n.from)}return it(e,[{key:"addElement",value:function(t,n,r){var o=this.gutter,i=n.top-this.height;if(this.i==o.elements.length){var a=new eq(t,n.height,i,r);o.elements.push(a),o.dom.appendChild(a.dom)}else o.elements[this.i].update(t,n.height,i,r);this.height=n.bottom,this.i++}},{key:"line",value:function(t,n,r){var o=[];$x(this.cursor,o,n.from),r.length&&(o=o.concat(r));var i=this.gutter.config.lineMarker(t,n,o);i&&o.unshift(i);var a=this.gutter;(o.length!=0||a.config.renderEmptyElements)&&this.addElement(t,n,o)}},{key:"widget",value:function(t,n){var r=this.gutter.config.widgetMarker(t,n.widget,n);r&&this.addElement(t,n,[r])}},{key:"finish",value:function(){for(var t=this.gutter;t.elements.length>this.i;){var n=t.elements.pop();t.dom.removeChild(n.dom),n.destroy()}}}]),e}(),rT=function(){function e(t,n){var r=this;ot(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(a){r.dom.addEventListener(a,function(s){var c,u=s.target;if(u!=r.dom&&r.dom.contains(u)){for(;u.parentNode!=r.dom;)u=u.parentNode;var l=u.getBoundingClientRect();c=(l.top+l.bottom)/2}else c=s.clientY;var f=t.lineBlockAtHeight(c-t.documentTop);n.domEventHandlers[a](t,f,s)&&s.preventDefault()})};for(var i in n.domEventHandlers)o(i);this.markers=nT(n.markers(t)),n.initialSpacer&&(this.spacer=new eq(t,0,0,[n.initialSpacer(t)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}return it(e,[{key:"update",value:function(t){var n=this.markers;if(this.markers=nT(this.config.markers(t.view)),this.spacer&&this.config.updateSpacer){var r=this.config.updateSpacer(this.spacer.markers[0],t);r!=this.spacer.markers[0]&&this.spacer.update(t.view,0,0,[r])}var o=t.view.viewport;return!vr.eq(this.markers,n,o.from,o.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(t)}},{key:"destroy",value:function(){var t,n=ht(this.elements);try{for(n.s();!(t=n.n()).done;)t.value.destroy()}catch(r){n.e(r)}finally{n.f()}}}]),e}(),eq=function(){function e(t,n,r,o){ot(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)}return it(e,[{key:"update",value:function(t,n,r,o){this.height!=n&&(this.dom.style.height=(this.height=n)+"px"),this.above!=r&&(this.dom.style.marginTop=(this.above=r)?r+"px":""),function(i,a){if(i.length!=a.length)return!1;for(var s=0;s<i.length;s++)if(!i[s].compare(a[s]))return!1;return!0}(this.markers,o)||this.setMarkers(t,o)}},{key:"setMarkers",value:function(t,n){for(var r="cm-gutterElement",o=this.dom.firstChild,i=0,a=0;;){var s=a,c=i<n.length?n[i++]:null,u=!1;if(c){var l=c.elementClass;l&&(r+=" "+l);for(var f=a;f<this.markers.length;f++)if(this.markers[f].compare(c)){s=f,u=!0;break}}else s=this.markers.length;for(;a<s;){var d=this.markers[a++];if(d.toDOM){d.destroy(o);var h=o.nextSibling;o.remove(),o=h}}if(!c)break;c.toDOM&&(u?o=o.nextSibling:this.dom.insertBefore(c.toDOM(t),o)),u&&a++}this.dom.className=r,this.markers=n}},{key:"destroy",value:function(){this.setMarkers(null,[])}}]),e}(),W0t=xe.define(),Fl=xe.define({combine:function(e){return Xi(e,{formatNumber:String,domEventHandlers:{}},{domEventHandlers:function(t,n){var r=Object.assign({},t),o=function(){var a=r[i],s=n[i];r[i]=a?function(c,u,l){return a(c,u,l)||s(c,u,l)}:s};for(var i in n)o();return r}})}}),Ly=function(e){Tt(n,Ua);var t=Rt(n);function n(r){var o;return ot(this,n),(o=t.call(this)).number=r,o}return it(n,[{key:"eq",value:function(r){return this.number==r.number}},{key:"toDOM",value:function(){return document.createTextNode(this.number)}}]),n}();function zy(e,t){return e.state.facet(Fl).formatNumber(t,e.state)}var U0t=lh.compute([Fl],function(e){return{class:"cm-lineNumbers",renderEmptyElements:!1,markers:function(t){return t.state.facet(W0t)},lineMarker:function(t,n,r){return r.some(function(o){return o.toDOM})?null:new Ly(zy(t,t.state.doc.lineAt(n.from).number))},widgetMarker:function(){return null},lineMarkerChange:function(t){return t.startState.facet(Fl)!=t.state.facet(Fl)},initialSpacer:function(t){return new Ly(zy(t,oT(t.state.doc.lines)))},updateSpacer:function(t,n){var r=zy(n.view,oT(n.view.state.doc.lines));return r==t.number?t:new Ly(r)},domEventHandlers:e.facet(Fl).domEventHandlers}});function K0t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return[Fl.of(e),tq(),U0t]}function oT(e){for(var t=9;t<e;)t=10*t+9;return t}var J0t=new(function(e){Tt(n,Ua);var t=Rt(n);function n(){var r;return ot(this,n),(r=t.apply(this,arguments)).elementClass="cm-activeLineGutter",r}return it(n)}()),G0t=$m.compute(["selection"],function(e){var t,n=[],r=-1,o=ht(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(J0t.range(a)))}}catch(s){o.e(s)}finally{o.f()}return vr.of(n)}),Q0t=0,By=it(function e(t,n){ot(this,e),this.from=t,this.to=n}),bn=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ot(this,e),this.id=Q0t++,this.perNode=!!t.perNode,this.deserialize=t.deserialize||function(){throw new Error("This node type doesn't define a deserialize function")}}return it(e,[{key:"add",value:function(t){var n=this;if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof t!="function"&&(t=Qi.match(t)),function(r){var o=t(r);return o===void 0?null:[n,o]}}}]),e}();bn.closedBy=new bn({deserialize:function(e){return e.split(" ")}}),bn.openedBy=new bn({deserialize:function(e){return e.split(" ")}}),bn.group=new bn({deserialize:function(e){return e.split(" ")}}),bn.contextHash=new bn({perNode:!0}),bn.lookAhead=new bn({perNode:!0}),bn.mounted=new bn({perNode:!0});var Y0t=Object.create(null),Qi=function(){function e(t,n,r){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;ot(this,e),this.name=t,this.props=n,this.id=r,this.flags=o}return it(e,[{key:"prop",value:function(t){return this.props[t.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(t){if(typeof t=="string"){if(this.name==t)return!0;var n=this.prop(bn.group);return!!n&&n.indexOf(t)>-1}return this.id==t}}],[{key:"define",value:function(t){var n=t.props&&t.props.length?Object.create(null):Y0t,r=(t.top?1:0)|(t.skipped?2:0)|(t.error?4:0)|(t.name==null?8:0),o=new e(t.name||"",n,t.id,r);if(t.props){var i,a=ht(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(c){a.e(c)}finally{a.f()}}return o}},{key:"match",value:function(t){var n=Object.create(null);for(var r in t){var o,i=ht(r.split(" "));try{for(i.s();!(o=i.n()).done;){var a=o.value;n[a]=t[r]}}catch(s){i.e(s)}finally{i.f()}}return function(s){for(var c=s.prop(bn.group),u=-1;u<(c?c.length:0);u++){var l=n[u<0?s.name:c[u]];if(l)return l}}}}]),e}();Qi.none=new Qi("",Object.create(null),0,8);var ko,X0t=function(){function e(t){ot(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 it(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=ht(this.types);try{for(a.s();!(i=a.n()).done;){var s,c=i.value,u=null,l=ht(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(d){l.e(d)}finally{l.f()}t.push(u?new Qi(c.name,u,c.id,c.flags):c)}}catch(d){a.e(d)}finally{a.f()}return new e(t)}}]),e}(),Av=new WeakMap,iT=new WeakMap;(function(e){e[e.ExcludeBuffers=1]="ExcludeBuffers",e[e.IncludeAnonymous=2]="IncludeAnonymous",e[e.IgnoreMounts=4]="IgnoreMounts",e[e.IgnoreOverlays=8]="IgnoreOverlays"})(ko||(ko={}));var _o=function(){function e(t,n,r,o,i){if(ot(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=ht(i);try{for(s.s();!(a=s.n()).done;){var c=Ce(a.value,2),u=c[0],l=c[1];this.props[typeof u=="number"?u:u.id]=l}}catch(f){s.e(f)}finally{s.f()}}}return it(e,[{key:"toString",value:function(){var t=this.prop(bn.mounted);if(t&&!t.overlay)return t.tree.toString();var n,r="",o=ht(this.children);try{for(o.s();!(n=o.n()).done;){var i=n.value.toString();i&&(r&&(r+=","),r+=i)}}catch(a){o.e(a)}finally{o.f()}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(r.length?"("+r+")":""):r}},{key:"cursor",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return new Ig(this.topNode,t)}},{key:"cursorAt",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=Av.get(this)||this.topNode,o=new Ig(r);return o.moveTo(t,n),Av.set(this,o._tree),o}},{key:"topNode",get:function(){return new Yh(this,0,0,null)}},{key:"resolve",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=Tf(Av.get(this)||this.topNode,t,n,!1);return Av.set(this,r),r}},{key:"resolveInner",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=Tf(iT.get(this)||this.topNode,t,n,!0);return iT.set(this,r),r}},{key:"iterate",value:function(t){for(var n=t.enter,r=t.leave,o=t.from,i=o===void 0?0:o,a=t.to,s=a===void 0?this.length:a,c=this.cursor((t.mode||0)|ko.IncludeAnonymous);;){var u=!1;if(c.from<=s&&c.to>=i&&(c.type.isAnonymous||n(c)!==!1)){if(c.firstChild())continue;u=!0}for(;u&&r&&!c.type.isAnonymous&&r(c),!c.nextSibling();){if(!c.parent())return;u=!0}}}},{key:"prop",value:function(t){return t.perNode?this.props?this.props[t.id]:void 0:this.type.prop(t)}},{key:"propValues",get:function(){var t=[];if(this.props)for(var n in this.props)t.push([+n,this.props[n]]);return t}},{key:"balance",value:function(){var t=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.children.length<=8?this:Lj(Qi.none,this.children,this.positions,0,this.children.length,0,this.length,function(r,o,i){return new e(t.type,r,o,i,t.propValues)},n.makeTree||function(r,o,i){return new e(Qi.none,r,o,i)})}}],[{key:"build",value:function(t){return e1t(t)}}]),e}();_o.empty=new _o(Qi.none,[],[],0);var Z0t=function(){function e(t,n){ot(this,e),this.buffer=t,this.index=n}return it(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)}}]),e}(),Tp=function(){function e(t,n,r){ot(this,e),this.buffer=t,this.length=n,this.set=r}return it(e,[{key:"type",get:function(){return Qi.none}},{key:"toString",value:function(){for(var t=[],n=0;n<this.buffer.length;)t.push(this.childString(n)),n=this.buffer[n+3];return t.join(",")}},{key:"childString",value:function(t){var n=this.buffer[t],r=this.buffer[t+3],o=this.set.types[n],i=o.name;if(/\W/.test(i)&&!o.isError&&(i=JSON.stringify(i)),r==(t+=4))return i;for(var a=[];t<r;)a.push(this.childString(t)),t=this.buffer[t+3];return i+"("+a.join(",")+")"}},{key:"findChild",value:function(t,n,r,o,i){for(var a=this.buffer,s=-1,c=t;c!=n&&!(nq(i,o,a[c+1],a[c+2])&&(s=c,r>0));c=a[c+3]);return s}},{key:"slice",value:function(t,n,r,o){for(var i=this.buffer,a=new Uint16Array(n-t),s=t,c=0;s<n;)a[c++]=i[s++],a[c++]=i[s++]-r,a[c++]=i[s++]-r,a[c++]=i[s++]-t;return new e(a,o-r,this.set)}}]),e}();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){for(var n=e.childBefore(t);n;){var r=n.lastChild;if(!r||r.to!=n.to)break;r.type.isError&&r.from==r.to?(e=n,n=r.prevSibling):n=r}return e}function Tf(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 Yh&&e.index<0?null:e.parent;if(!i)return e;e=i}var a=r?0:ko.IgnoreOverlays;if(r)for(var s=e,c=s.parent;c;c=(s=c).parent)s instanceof Yh&&s.index<0&&((o=c.enter(t,n,a))===null||o===void 0?void 0:o.from)!=s.from&&(e=c);for(;;){var u=e.enter(t,n,a);if(!u)return e;e=u}}var Yh=function(){function e(t,n,r,o){ot(this,e),this._tree=t,this.from=n,this.index=r,this._parent=o}return it(e,[{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(t,n,r,o){for(var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,a=this;;){for(var s=a._tree,c=s.children,u=s.positions,l=n>0?c.length:-1;t!=l;t+=n){var f=c[t],d=u[t]+a.from;if(nq(o,r,d,d+f.length)){if(f instanceof Tp){if(i&ko.ExcludeBuffers)continue;var h=f.findChild(0,f.buffer.length,n,r-d,o);if(h>-1)return new Cx(new t1t(a,f,t,d),null,h)}else if(i&ko.IncludeAnonymous||!f.type.isAnonymous||Dj(f)){var p=void 0;if(!(i&ko.IgnoreMounts)&&f.props&&(p=f.prop(bn.mounted))&&!p.overlay)return new e(p.tree,d,t,a);var v=new e(f,d,t,a);return i&ko.IncludeAnonymous||!v.type.isAnonymous?v:v.nextChild(n<0?f.children.length-1:0,n,r,o)}}}if(i&ko.IncludeAnonymous||!a.type.isAnonymous||(t=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(t){return this.nextChild(0,1,t,2)}},{key:"childBefore",value:function(t){return this.nextChild(this._tree.children.length-1,-1,t,-2)}},{key:"enter",value:function(t,n){var r,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(!(o&ko.IgnoreOverlays)&&(r=this._tree.prop(bn.mounted))&&r.overlay){var i,a=t-this.from,s=ht(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 e(r.tree,r.overlay[0].from+this.from,-1,this)}}catch(f){s.e(f)}finally{s.f()}}return this.nextChild(0,1,t,n,o)}},{key:"nextSignificantParent",value:function(){for(var t=this;t.type.isAnonymous&&t._parent;)t=t._parent;return t}},{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:"cursor",value:function(){return new Ig(this,arguments.length>0&&arguments[0]!==void 0?arguments[0]:0)}},{key:"tree",get:function(){return this._tree}},{key:"toTree",value:function(){return this._tree}},{key:"resolve",value:function(t){return Tf(this,t,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,!1)}},{key:"resolveInner",value:function(t){return Tf(this,t,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,!0)}},{key:"enterUnfinishedNodesBefore",value:function(t){return rq(this,t)}},{key:"getChild",value:function(t){var n=Tg(this,t,arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,arguments.length>2&&arguments[2]!==void 0?arguments[2]:null);return n.length?n[0]:null}},{key:"getChildren",value:function(t){return Tg(this,t,arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,arguments.length>2&&arguments[2]!==void 0?arguments[2]:null)}},{key:"toString",value:function(){return this._tree.toString()}},{key:"node",get:function(){return this}},{key:"matchContext",value:function(t){return Rg(this,t)}}]),e}();function Tg(e,t,n,r){var o=e.cursor(),i=[];if(!o.firstChild())return i;if(n!=null){for(;!o.type.is(n);)if(!o.nextSibling())return i}for(;;){if(r!=null&&o.type.is(r))return i;if(o.type.is(t)&&i.push(o.node),!o.nextSibling())return r==null?i:[]}}function Rg(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?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 t1t=it(function e(t,n,r,o){ot(this,e),this.parent=t,this.buffer=n,this.index=r,this.start=o}),Cx=function(){function e(t,n,r){ot(this,e),this.context=t,this._parent=n,this.index=r,this.type=t.buffer.set.types[t.buffer.buffer[r]]}return it(e,[{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(t,n,r){var o=this.context.buffer,i=o.findChild(this.index+4,o.buffer[this.index+3],t,n-this.context.start,r);return i<0?null:new e(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(t){return this.child(1,t,2)}},{key:"childBefore",value:function(t){return this.child(-1,t,-2)}},{key:"enter",value:function(t,n){if((arguments.length>2&&arguments[2]!==void 0?arguments[2]:0)&ko.ExcludeBuffers)return null;var r=this.context.buffer,o=r.findChild(this.index+4,r.buffer[this.index+3],n>0?1:-1,t-this.context.start,n);return o<0?null:new e(this.context,this,o)}},{key:"parent",get:function(){return this._parent||this.context.parent.nextSignificantParent()}},{key:"externalSibling",value:function(t){return this._parent?null:this.context.parent.nextChild(this.context.index+t,t,0,4)}},{key:"nextSibling",get:function(){var t=this.context.buffer,n=t.buffer[this.index+3];return n<(this._parent?t.buffer[this._parent.index+3]:t.buffer.length)?new e(this.context,this._parent,n):this.externalSibling(1)}},{key:"prevSibling",get:function(){var t=this.context.buffer,n=this._parent?this._parent.index+4:0;return this.index==n?this.externalSibling(-1):new e(this.context,this._parent,t.findChild(n,this.index,-1,0,4))}},{key:"cursor",value:function(){return new Ig(this,arguments.length>0&&arguments[0]!==void 0?arguments[0]:0)}},{key:"tree",get:function(){return null}},{key:"toTree",value:function(){var t=[],n=[],r=this.context.buffer,o=this.index+4,i=r.buffer[this.index+3];if(i>o){var a=r.buffer[this.index+1],s=r.buffer[this.index+2];t.push(r.slice(o,i,a,s)),n.push(0)}return new _o(this.type,t,n,this.to-this.from)}},{key:"resolve",value:function(t){return Tf(this,t,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,!1)}},{key:"resolveInner",value:function(t){return Tf(this,t,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,!0)}},{key:"enterUnfinishedNodesBefore",value:function(t){return rq(this,t)}},{key:"toString",value:function(){return this.context.buffer.childString(this.index)}},{key:"getChild",value:function(t){var n=Tg(this,t,arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,arguments.length>2&&arguments[2]!==void 0?arguments[2]:null);return n.length?n[0]:null}},{key:"getChildren",value:function(t){return Tg(this,t,arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,arguments.length>2&&arguments[2]!==void 0?arguments[2]:null)}},{key:"node",get:function(){return this}},{key:"matchContext",value:function(t){return Rg(this,t)}}]),e}(),Ig=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(ot(this,e),this.mode=n,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,t instanceof Yh)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)}}return it(e,[{key:"name",get:function(){return this.type.name}},{key:"yieldNode",value:function(t){return!!t&&(this._tree=t,this.type=t.type,this.from=t.from,this.to=t.to,!0)}},{key:"yieldBuf",value:function(t,n){this.index=t;var r=this.buffer,o=r.start,i=r.buffer;return this.type=n||i.set.types[i.buffer[t]],this.from=o+i.buffer[t+1],this.to=o+i.buffer[t+2],!0}},{key:"yield",value:function(t){return!!t&&(t instanceof Yh?(this.buffer=null,this.yieldNode(t)):(this.buffer=t.context,this.yieldBuf(t.index,t.type)))}},{key:"toString",value:function(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}},{key:"enterChild",value:function(t,n,r){if(!this.buffer)return this.yield(this._tree.nextChild(t<0?this._tree._tree.children.length-1:0,t,n,r,this.mode));var o=this.buffer.buffer,i=o.findChild(this.index+4,o.buffer[this.index+3],t,n-this.buffer.start,r);return!(i<0)&&(this.stack.push(this.index),this.yieldBuf(i))}},{key:"firstChild",value:function(){return this.enterChild(1,0,4)}},{key:"lastChild",value:function(){return this.enterChild(-1,0,4)}},{key:"childAfter",value:function(t){return this.enterChild(1,t,2)}},{key:"childBefore",value:function(t){return this.enterChild(-1,t,-2)}},{key:"enter",value:function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.mode;return this.buffer?!(r&ko.ExcludeBuffers)&&this.enterChild(1,t,n):this.yield(this._tree.enter(t,n,r))}},{key:"parent",value:function(){if(!this.buffer)return this.yieldNode(this.mode&ko.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());var t=this.mode&ko.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(t)}},{key:"sibling",value:function(t){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+t,t,0,4,this.mode));var n=this.buffer.buffer,r=this.stack.length-1;if(t<0){var o=r<0?0:this.stack[r]+4;if(this.index!=o)return this.yieldBuf(n.findChild(o,this.index,-1,0,4))}else{var i=n.buffer[this.index+3];if(i<(r<0?n.buffer.length:n.buffer[this.stack[r]+3]))return this.yieldBuf(i)}return r<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+t,t,0,4,this.mode))}},{key:"nextSibling",value:function(){return this.sibling(1)}},{key:"prevSibling",value:function(){return this.sibling(-1)}},{key:"atLastNode",value:function(t){var n,r,o=this.buffer;if(o){if(t>0){if(this.index<o.buffer.buffer.length)return!1}else for(var i=0;i<this.index;i++)if(o.buffer.buffer[i+3]<this.index)return!1;n=o.index,r=o.parent}else{var a=this._tree;n=a.index,r=a._parent}for(;r;n=(s=r).index,r=s._parent,s){var s;if(n>-1)for(var c=n+t,u=t<0?-1:r._tree.children.length;c!=u;c+=t){var l=r._tree.children[c];if(this.mode&ko.IncludeAnonymous||l instanceof Tp||!l.type.isAnonymous||Dj(l))return!1}}return!0}},{key:"move",value:function(t,n){if(n&&this.enterChild(t,0,4))return!0;for(;;){if(this.sibling(t))return!0;if(this.atLastNode(t)||!this.parent())return!1}}},{key:"next",value:function(){var t=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];return this.move(1,t)}},{key:"prev",value:function(){var t=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];return this.move(-1,t)}},{key:"moveTo",value:function(t){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;(this.from==this.to||(n<1?this.from>=t:this.from>t)||(n>-1?this.to<=t:this.to<t))&&this.parent(););for(;this.enterChild(1,t,n););return this}},{key:"node",get:function(){if(!this.buffer)return this._tree;var t=this.bufferNode,n=null,r=0;if(t&&t.context==this.buffer)t:for(var o=this.index,i=this.stack.length;i>=0;){for(var a=t;a;a=a._parent)if(a.index==o){if(o==this.index)return a;n=a,r=i+1;break t}o=this.stack[--i]}for(var s=r;s<this.stack.length;s++)n=new Cx(this.buffer,n,this.stack[s]);return this.bufferNode=new Cx(this.buffer,n,this.index)}},{key:"tree",get:function(){return this.buffer?null:this._tree._tree}},{key:"iterate",value:function(t,n){for(var r=0;;){var o=!1;if(this.type.isAnonymous||t(this)!==!1){if(this.firstChild()){r++;continue}this.type.isAnonymous||(o=!0)}for(;o&&n&&n(this),o=this.type.isAnonymous,!this.nextSibling();){if(!r)return;this.parent(),r--,o=!0}}}},{key:"matchContext",value:function(t){if(!this.buffer)return Rg(this.node,t);for(var n=this.buffer.buffer,r=n.set.types,o=t.length-1,i=this.stack.length-1;o>=0;i--){if(i<0)return Rg(this.node,t,o);var a=r[n.buffer[this.stack[i]]];if(!a.isAnonymous){if(t[o]&&t[o]!=a.name)return!1;o--}}return!0}}]),e}();function Dj(e){return e.children.some(function(t){return t instanceof Tp||!t.type.isAnonymous||Dj(t)})}function e1t(e){var t,n=e.buffer,r=e.nodeSet,o=e.maxBufferLength,i=o===void 0?1024:o,a=e.reused,s=a===void 0?[]:a,c=e.minRepeatType,u=c===void 0?r.types.length:c,l=Array.isArray(n)?new Z0t(n,n.length):n,f=r.types,d=0,h=0;function p(x,k,E,_,T){for(var $=l.id,j=l.start,R=l.end,q=l.size,O=h;q<0;){if(l.next(),q==-1){var F=s[$];return E.push(F),void _.push(j-x)}if(q==-3)return void(d=$);if(q==-4)return void(h=$);throw new RangeError("Unrecognized record size: ".concat(q))}var J,I,D=f[$],C=j-x;if(R-j<=i&&(I=function(jt,gt){var Y=l.fork(),K=0,rt=0,X=0,_t=Y.end-i,L={size:0,start:0,skip:0};t:for(var U=Y.pos-jt;Y.pos>U;){var G=Y.size;if(Y.id==gt&&G>=0)L.size=K,L.start=rt,L.skip=X,X+=4,K+=4,Y.next();else{var pt=Y.pos-G;if(G<0||pt<U||Y.start<_t)break;var mt=Y.id>=u?4:0,Ot=Y.start;for(Y.next();Y.pos>pt;){if(Y.size<0){if(Y.size!=-3)break t;mt+=4}else Y.id>=u&&(mt+=4);Y.next()}rt=Ot,K+=G,X+=mt}}return(gt<0||K==jt)&&(L.size=K,L.start=rt,L.skip=X),L.size>4?L:void 0}(l.pos-k,T))){for(var M=new Uint16Array(I.size-I.skip),P=l.pos-I.size,B=M.length;l.pos>P;)B=g(I.start,M,B);J=new Tp(M,R-I.start,r),C=I.start-x}else{var A=l.pos-q;l.next();for(var W=[],N=[],dt=$>=u?$:-1,et=0,yt=R;l.pos>A;)dt>=0&&l.id==dt&&l.size>=0?(l.end<=yt-i&&(v(W,N,j,et,l.end,yt,dt,O),et=W.length,yt=l.end),l.next()):p(j,A,W,N,dt);if(dt>=0&&et>0&&et<W.length&&v(W,N,j,et,j,yt,dt,O),W.reverse(),N.reverse(),dt>-1&&et>0){var bt=function(jt){return function(gt,Y,K){var rt,X,_t=0,L=gt.length-1;if(L>=0&&(rt=gt[L])instanceof _o){if(!L&&rt.type==jt&&rt.length==K)return rt;(X=rt.prop(bn.lookAhead))&&(_t=Y[L]+rt.length+X)}return m(jt,gt,Y,K,_t)}}(D);J=Lj(D,W,N,0,W.length,0,R-j,bt,bt)}else J=m(D,W,N,R-j,O-R)}E.push(J),_.push(C)}function v(x,k,E,_,T,$,j,R){for(var q=[],O=[];x.length>_;)q.push(x.pop()),O.push(k.pop()+E-T);x.push(m(r.types[j],q,O,$-T,R-$)),k.push(T-E)}function m(x,k,E,_){var T=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,$=arguments.length>5?arguments[5]:void 0;if(d){var j=[bn.contextHash,d];$=$?[j].concat($):[j]}if(T>25){var R=[bn.lookAhead,T];$=$?[R].concat($):[R]}return new _o(x,k,E,_,$)}function g(x,k,E){var _=l.id,T=l.start,$=l.end,j=l.size;if(l.next(),j>=0&&_<u){var R=E;if(j>4)for(var q=l.pos-(j-4);l.pos>q;)E=g(x,k,E);k[--E]=R,k[--E]=$-x,k[--E]=T-x,k[--E]=_}else j==-3?d=_:j==-4&&(h=_);return E}for(var y=[],b=[];l.pos>0;)p(e.start||0,e.bufferStart||0,y,b,-1);var w=(t=e.length)!==null&&t!==void 0?t:y.length?b[0]+y[0].length:0;return new _o(f[e.topID],y.reverse(),b.reverse(),w)}var aT=new WeakMap;function Cm(e,t){if(!e.isAnonymous||t instanceof Tp||t.type!=e)return 1;var n=aT.get(t);if(n==null){n=1;var r,o=ht(t.children);try{for(o.s();!(r=o.n()).done;){var i=r.value;if(i.type!=e||!(i instanceof _o)){n=1;break}n+=Cm(e,i)}}catch(a){o.e(a)}finally{o.f()}aT.set(t,n)}return n}function Lj(e,t,n,r,o,i,a,s,c){for(var u=0,l=r;l<o;l++)u+=Cm(e,t[l]);var f=Math.ceil(1.5*u/8),d=[],h=[];return function p(v,m,g,y,b){for(var w=g;w<y;){var x=w,k=m[w],E=Cm(e,v[w]);for(w++;w<y;w++){var _=Cm(e,v[w]);if(E+_>=f)break;E+=_}if(w==x+1){if(E>f){var T=v[x];p(T.children,T.positions,0,T.children.length,m[x]+b);continue}d.push(v[x])}else{var $=m[w-1]+v[w-1].length-k;d.push(Lj(e,v,m,x,w,k,$,null,c))}h.push(k+b-i)}}(t,n,r,o,0),(s||c)(d,h,a)}var Em=function(){function e(t,n,r,o){var i=arguments.length>4&&arguments[4]!==void 0&&arguments[4],a=arguments.length>5&&arguments[5]!==void 0&&arguments[5];ot(this,e),this.from=t,this.to=n,this.tree=r,this.offset=o,this.open=(i?1:0)|(a?2:0)}return it(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&&arguments[1]!==void 0?arguments[1]:[],o=arguments.length>2&&arguments[2]!==void 0&&arguments[2],i=[new e(0,t.length,t,0,!1,o)],a=ht(r);try{for(a.s();!(n=a.n()).done;){var s=n.value;s.to>t.length&&i.push(s)}}catch(c){a.e(c)}finally{a.f()}return i}},{key:"applyChanges",value:function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?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,p=Math.min(d.to,f)-u;d=h>=p?null:new e(h,p,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}}]),e}(),oq=function(){function e(){ot(this,e)}return it(e,[{key:"startParse",value:function(t,n,r){return typeof t=="string"&&(t=new n1t(t)),r=r?r.length?r.map(function(o){return new By(o.from,o.to)}):[new By(0,0)]:[new By(0,t.length)],this.createParse(t,n||[],r)}},{key:"parse",value:function(t,n,r){for(var o=this.startParse(t,n,r);;){var i=o.advance();if(i)return i}}}]),e}(),n1t=function(){function e(t){ot(this,e),this.string=t}return it(e,[{key:"length",get:function(){return this.string.length}},{key:"chunk",value:function(t){return this.string.slice(t)}},{key:"lineChunks",get:function(){return!1}},{key:"read",value:function(t,n){return this.string.slice(t,n)}}]),e}();new bn({perNode:!0});var r1t=0,dc=function(){function e(t,n,r){ot(this,e),this.set=t,this.base=n,this.modified=r,this.id=r1t++}return it(e,null,[{key:"define",value:function(t){if(t!=null&&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=ht(t.set);try{for(o.s();!(r=o.n()).done;){var i=r.value;n.set.push(i)}}catch(a){o.e(a)}finally{o.f()}}return n}},{key:"defineModifier",value:function(){var t=new sT;return function(n){return n.modified.indexOf(t)>-1?n:sT.get(n.base||n,n.modified.concat(t).sort(function(r,o){return r.id-o.id}))}}}]),e}(),o1t=0,sT=function(){function e(){ot(this,e),this.instances=[],this.id=o1t++}return it(e,null,[{key:"get",value:function(t,n){if(!n.length)return t;var r=n[0].instances.find(function(v){return v.base==t&&function(m,g){return m.length==g.length&&m.every(function(y,b){return y==g[b]})}(n,v.modified)});if(r)return r;var o,i=[],a=new dc(i,t,n),s=ht(n);try{for(s.s();!(o=s.n()).done;)o.value.instances.push(a)}catch(v){s.e(v)}finally{s.f()}var c,u=iq(n),l=ht(t.set);try{for(l.s();!(c=l.n()).done;){var f,d=c.value,h=ht(u);try{for(h.s();!(f=h.n()).done;){var p=f.value;i.push(e.get(d,p))}}catch(v){h.e(v)}finally{h.f()}}}catch(v){l.e(v)}finally{l.f()}return a}}]),e}();function iq(e){for(var t=[e],n=0;n<e.length;n++){var r,o=ht(iq(e.slice(0,n).concat(e.slice(n+1))));try{for(o.s();!(r=o.n()).done;){var i=r.value;t.push(i)}}catch(a){o.e(a)}finally{o.f()}}return t}function aq(e){var t=Object.create(null);for(var n in e){var r=e[n];Array.isArray(r)||(r=[r]);var o,i=ht(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,p=s[h];if(!p)throw new RangeError("Invalid path: "+a);var v=new i1t(r,c,h>0?s.slice(0,h):null);t[p]=v.sort(t[p])}}}catch(m){i.e(m)}finally{i.f()}}return sq.add(t)}var sq=new bn,i1t=function(){function e(t,n,r,o){ot(this,e),this.tags=t,this.mode=n,this.context=r,this.next=o}return it(e,[{key:"sort",value:function(t){return!t||t.depth<this.depth?(this.next=t,this):(t.next=this.sort(t.next),t)}},{key:"depth",get:function(){return this.context?this.context.length:0}}]),e}();function cq(e,t){var n,r=Object.create(null),o=ht(e);try{for(o.s();!(n=o.n()).done;){var i=n.value;if(Array.isArray(i.tag)){var a,s=ht(i.tag);try{for(s.s();!(a=s.n()).done;){var c=a.value;r[c.id]=i.class}}catch(h){s.e(h)}finally{s.f()}}else r[i.tag.id]=i.class}}catch(h){o.e(h)}finally{o.f()}var u=t||{},l=u.scope,f=u.all,d=f===void 0?null:f;return{style:function(h){var p,v=d,m=ht(h);try{for(m.s();!(p=m.n()).done;){var g,y=ht(p.value.set);try{for(y.s();!(g=y.n()).done;){var b=g.value,w=r[b.id];if(w){v=v?v+" "+w:w;break}}}catch(x){y.e(x)}finally{y.f()}}}catch(x){m.e(x)}finally{m.f()}return v},scope:l}}function a1t(e,t){var n,r=null,o=ht(e);try{for(o.s();!(n=o.n()).done;){var i=n.value.style(t);i&&(r=r?r+" "+i:i)}}catch(a){o.e(a)}finally{o.f()}return r}function s1t(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:e.length,i=new c1t(r,Array.isArray(t)?t:[t],n);i.highlightRange(e.cursor(),r,o,"",i.highlighters),i.flush(o)}var Fy,c1t=function(){function e(t,n,r){ot(this,e),this.at=t,this.highlighters=n,this.span=r,this.class=""}return it(e,[{key:"startSpan",value:function(t,n){n!=this.class&&(this.flush(t),t>this.at&&(this.at=t),this.class=n)}},{key:"flush",value:function(t){t>this.at&&this.class&&this.span(this.at,t,this.class)}},{key:"highlightRange",value:function(t,n,r,o,i){var a=t.type,s=t.from,c=t.to;if(!(s>=r||c<=n)){a.isTop&&(i=this.highlighters.filter(function(E){return!E.scope||E.scope(a)}));for(var u=o,l=a.prop(sq),f=!1;l;){if(!l.context||t.matchContext(l.context)){var d=a1t(i,l.tags);d&&(u&&(u+=" "),u+=d,l.mode==1?o+=(o?" ":"")+d:l.mode==0&&(f=!0));break}l=l.next}if(this.startSpan(t.from,u),!f){var h=t.tree&&t.tree.prop(bn.mounted);if(h&&h.overlay){for(var p=t.node.enter(h.overlay[0].from+s,1),v=this.highlighters.filter(function(E){return!E.scope||E.scope(h.tree.type)}),m=t.firstChild(),g=0,y=s;;g++){var b=g<h.overlay.length?h.overlay[g]:null,w=b?b.from+s:c,x=Math.max(n,y),k=Math.min(r,w);if(x<k&&m)for(;t.from<k&&(this.highlightRange(t,x,k,o,i),this.startSpan(Math.min(r,t.to),u),!(t.to>=w)&&t.nextSibling()););if(!b||w>r)break;(y=b.to+s)>n&&(this.highlightRange(p.cursor(),Math.max(n,b.from+s),Math.min(r,y),o,v),this.startSpan(y,u))}m&&t.parent()}else if(t.firstChild()){do if(!(t.to<=n)){if(t.from>=r)break;this.highlightRange(t,n,r,o,i),this.startSpan(Math.min(r,t.to),u)}while(t.nextSibling());t.parent()}}}}}]),e}(),se=dc.define,Pv=se(),hc=se(),cT=se(hc),uT=se(hc),pc=se(),Tv=se(pc),qy=se(pc),Fa=se(),hu=se(Fa),La=se(),za=se(),Ex=se(),yd=se(Ex),Rv=se(),re={comment:Pv,lineComment:se(Pv),blockComment:se(Pv),docComment:se(Pv),name:hc,variableName:se(hc),typeName:cT,tagName:se(cT),propertyName:uT,attributeName:se(uT),className:se(hc),labelName:se(hc),namespace:se(hc),macroName:se(hc),literal:pc,string:Tv,docString:se(Tv),character:se(Tv),attributeValue:se(Tv),number:qy,integer:se(qy),float:se(qy),bool:se(pc),regexp:se(pc),escape:se(pc),color:se(pc),url:se(pc),keyword:La,self:se(La),null:se(La),atom:se(La),unit:se(La),modifier:se(La),operatorKeyword:se(La),controlKeyword:se(La),definitionKeyword:se(La),moduleKeyword:se(La),operator:za,derefOperator:se(za),arithmeticOperator:se(za),logicOperator:se(za),bitwiseOperator:se(za),compareOperator:se(za),updateOperator:se(za),definitionOperator:se(za),typeOperator:se(za),controlOperator:se(za),punctuation:Ex,separator:se(Ex),bracket:yd,angleBracket:se(yd),squareBracket:se(yd),paren:se(yd),brace:se(yd),content:Fa,heading:hu,heading1:se(hu),heading2:se(hu),heading3:se(hu),heading4:se(hu),heading5:se(hu),heading6:se(hu),contentSeparator:se(Fa),list:se(Fa),quote:se(Fa),emphasis:se(Fa),strong:se(Fa),link:se(Fa),monospace:se(Fa),strikethrough:se(Fa),inserted:se(),deleted:se(),changed:se(),invalid:se(),meta:Rv,documentMeta:se(Rv),annotation:se(Rv),processingInstruction:se(Rv),definition:dc.defineModifier(),constant:dc.defineModifier(),function:dc.defineModifier(),standard:dc.defineModifier(),local:dc.defineModifier(),special:dc.defineModifier()};cq([{tag:re.link,class:"tok-link"},{tag:re.heading,class:"tok-heading"},{tag:re.emphasis,class:"tok-emphasis"},{tag:re.strong,class:"tok-strong"},{tag:re.keyword,class:"tok-keyword"},{tag:re.atom,class:"tok-atom"},{tag:re.bool,class:"tok-bool"},{tag:re.url,class:"tok-url"},{tag:re.labelName,class:"tok-labelName"},{tag:re.inserted,class:"tok-inserted"},{tag:re.deleted,class:"tok-deleted"},{tag:re.literal,class:"tok-literal"},{tag:re.string,class:"tok-string"},{tag:re.number,class:"tok-number"},{tag:[re.regexp,re.escape,re.special(re.string)],class:"tok-string2"},{tag:re.variableName,class:"tok-variableName"},{tag:re.local(re.variableName),class:"tok-variableName tok-local"},{tag:re.definition(re.variableName),class:"tok-variableName tok-definition"},{tag:re.special(re.variableName),class:"tok-variableName2"},{tag:re.definition(re.propertyName),class:"tok-propertyName tok-definition"},{tag:re.typeName,class:"tok-typeName"},{tag:re.namespace,class:"tok-namespace"},{tag:re.className,class:"tok-className"},{tag:re.macroName,class:"tok-macroName"},{tag:re.propertyName,class:"tok-propertyName"},{tag:re.operator,class:"tok-operator"},{tag:re.comment,class:"tok-comment"},{tag:re.meta,class:"tok-meta"},{tag:re.invalid,class:"tok-invalid"},{tag:re.punctuation,class:"tok-punctuation"}]);var ql=new bn,u1t=new bn,ga=function(){function e(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"";ot(this,e),this.data=t,this.name=o,fr.prototype.hasOwnProperty("tree")||Object.defineProperty(fr.prototype,"tree",{get:function(){return Do(this)}}),this.parser=n,this.extension=[Gc.of(this),fr.languageData.of(function(i,a,s){var c=lT(i,a,s),u=c.type.prop(ql);if(!u)return[];var l=i.facet(u),f=c.type.prop(u1t);if(f){var d,h=c.resolve(a-c.from,s),p=ht(f);try{for(p.s();!(d=p.n()).done;){var v=d.value;if(v.test(h,i)){var m=i.facet(v.facet);return v.type=="replace"?m:m.concat(l)}}}catch(g){p.e(g)}finally{p.f()}}return l})].concat(r)}return it(e,[{key:"isActiveAt",value:function(t,n){return lT(t,n,arguments.length>2&&arguments[2]!==void 0?arguments[2]:-1).type.prop(ql)==this.data}},{key:"findRegions",value:function(t){var n=this,r=t.facet(Gc);if((r==null?void 0:r.data)==this.data)return[{from:0,to:t.doc.length}];if(!r||!r.allowsNesting)return[];var o=[];return function i(a,s){if(a.prop(ql)!=n.data){var c=a.prop(bn.mounted);if(c){if(c.tree.prop(ql)==n.data){if(c.overlay){var u,l=ht(c.overlay);try{for(l.s();!(u=l.n()).done;){var f=u.value;o.push({from:f.from+s,to:f.to+s})}}catch(v){l.e(v)}finally{l.f()}}else o.push({from:s,to:s+a.length});return}if(c.overlay){var d=o.length;if(i(c.tree,c.overlay[0].from+s),o.length>d)return}}for(var h=0;h<a.children.length;h++){var p=a.children[h];p instanceof _o&&i(p,a.positions[h]+s)}}else o.push({from:s,to:s+a.length})}(Do(t),0),o}},{key:"allowsNesting",get:function(){return!0}}]),e}();function lT(e,t,n){var r=e.facet(Gc),o=Do(e).topNode;if(!r||r.allowsNesting)for(var i=o;i;i=i.enter(t,n,ko.ExcludeBuffers))i.type.isTop&&(o=i);return o}ga.setState=wn.define();var l1t=function(e){Tt(n,ga);var t=Rt(n);function n(r,o,i){var a;return ot(this,n),(a=t.call(this,r,o,[],i)).parser=o,a}return it(n,[{key:"configure",value:function(r,o){return new n(this.data,this.parser.configure(r),o||this.name)}},{key:"allowsNesting",get:function(){return this.parser.hasWrappers()}}],[{key:"define",value:function(r){var o,i=(o=r.languageData,xe.define({combine:o?function(a){return a.concat(o)}:void 0}));return new n(i,r.parser.configure({props:[ql.add(function(a){return a.isTop?i:void 0})]}),r.name)}}]),n}();function Do(e){var t=e.field(ga.state,!1);return t?t.tree:_o.empty}var f1t=function(){function e(t){ot(this,e),this.doc=t,this.cursorPos=0,this.string="",this.cursor=t.iter()}return it(e,[{key:"length",get:function(){return this.doc.length}},{key:"syncTo",value:function(t){return this.string=this.cursor.next(t-this.cursorPos).value,this.cursorPos=t+this.string.length,this.cursorPos-this.string.length}},{key:"chunk",value:function(t){return this.syncTo(t),this.string}},{key:"lineChunks",get:function(){return!0}},{key:"read",value:function(t,n){var r=this.cursorPos-this.string.length;return t<r||n>=this.cursorPos?this.doc.sliceString(t,n):this.string.slice(t-r,n-r)}}]),e}(),bd=null,d1t=function(){function e(t,n){var r=arguments.length>2&&arguments[2]!==void 0?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;ot(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 it(e,[{key:"startParse",value:function(){return this.parser.startParse(new f1t(this.state.doc),this.fragments)}},{key:"work",value:function(t,n){var r=this;return n!=null&&n>=this.state.doc.length&&(n=void 0),this.tree!=_o.empty&&this.isDone(n??this.state.doc.length)?(this.takeTree(),!0):this.withContext(function(){var o;if(typeof t=="number"){var i=Date.now()+t;t=function(){return Date.now()>i}}for(r.parse||(r.parse=r.startParse()),n!=null&&(r.parse.stoppedAt==null||r.parse.stoppedAt>n)&&n<r.state.doc.length&&r.parse.stopAt(n);;){var a=r.parse.advance();if(a){if(r.fragments=r.withoutTempSkipped(Em.addTree(a,r.fragments,r.parse.stoppedAt!=null)),r.treeLen=(o=r.parse.stoppedAt)!==null&&o!==void 0?o:r.state.doc.length,r.tree=a,r.parse=null,!(r.treeLen<(n??r.state.doc.length)))return!0;r.parse=r.startParse()}if(t())return!1}})}},{key:"takeTree",value:function(){var t,n,r=this;this.parse&&(t=this.parse.parsedPos)>=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>t)&&this.parse.stopAt(t),this.withContext(function(){for(;!(n=r.parse.advance()););}),this.treeLen=t,this.tree=n,this.fragments=this.withoutTempSkipped(Em.addTree(this.tree,this.fragments,!0)),this.parse=null)}},{key:"withContext",value:function(t){var n=bd;bd=this;try{return t()}finally{bd=n}}},{key:"withoutTempSkipped",value:function(t){for(var n;n=this.tempSkipped.pop();)t=fT(t,n.from,n.to);return t}},{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(p,v,m,g){return c.push({fromA:p,toA:v,fromB:m,toB:g})}),r=Em.applyChanges(r,c),o=_o.empty,i=0,a={from:t.mapPos(a.from,-1),to:t.mapPos(a.to,1)},this.skipped.length){s=[];var u,l=ht(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(p){l.e(p)}finally{l.f()}}}return new e(this.parser,n,r,o,i,a,s,this.scheduleOn)}},{key:"updateViewport",value:function(t){if(this.viewport.from==t.from&&this.viewport.to==t.to)return!1;this.viewport=t;for(var n=this.skipped.length,r=0;r<this.skipped.length;r++){var o=this.skipped[r],i=o.from,a=o.to;i<t.to&&a>t.from&&(this.fragments=fT(this.fragments,i,a),this.skipped.splice(r--,1))}return!(this.skipped.length>=n)&&(this.reset(),!0)}},{key:"reset",value:function(){this.parse&&(this.takeTree(),this.parse=null)}},{key:"skipUntilInView",value:function(t,n){this.skipped.push({from:t,to:n})}},{key:"isDone",value:function(t){t=Math.min(t,this.state.doc.length);var n=this.fragments;return this.treeLen>=t&&n.length&&n[0].from==0&&n[0].to>=t}}],[{key:"create",value:function(t,n,r){return new e(t,n,[],_o.empty,0,r,[],null)}},{key:"getSkippingParser",value:function(t){return new(function(n){Tt(o,oq);var r=Rt(o);function o(){return ot(this,o),r.apply(this,arguments)}return it(o,[{key:"createParse",value:function(i,a,s){var c=s[0].from,u=s[s.length-1].to;return{parsedPos:c,advance:function(){var l=bd;if(l){var f,d=ht(s);try{for(d.s();!(f=d.n()).done;){var h=f.value;l.tempSkipped.push(h)}}catch(p){d.e(p)}finally{d.f()}t&&(l.scheduleOn=l.scheduleOn?Promise.all([l.scheduleOn,t]):t)}return this.parsedPos=u,new _o(Qi.none,[],[],u-c)},stoppedAt:null,stopAt:function(){}}}}]),o}())}},{key:"get",value:function(){return bd}}]),e}();function fT(e,t,n){return Em.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}var Ox=function(){function e(t){ot(this,e),this.context=t,this.tree=t.tree}return it(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=d1t.create(t.facet(Gc).parser,t,{from:0,to:n});return r.work(20,n)||r.takeTree(),new e(r)}}]),e}();ga.state=$o.define({create:Ox.init,update:function(e,t){var n,r=ht(t.effects);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.is(ga.setState))return o.value}}catch(i){r.e(i)}finally{r.f()}return t.startState.facet(Gc)!=t.state.facet(Gc)?Ox.init(t.state):e.apply(t)}});var uq=function(e){var t=setTimeout(function(){return e()},500);return function(){return clearTimeout(t)}};typeof requestIdleCallback<"u"&&(uq=function(e){var t=-1,n=setTimeout(function(){t=requestIdleCallback(e,{timeout:400})},100);return function(){return t<0?clearTimeout(n):cancelIdleCallback(t)}});var Hy=typeof navigator<"u"&&(!((Fy=navigator.scheduling)===null||Fy===void 0)&&Fy.isInputPending)?function(){return navigator.scheduling.isInputPending()}:null,h1t=io.fromClass(function(){function e(t){ot(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()}return it(e,[{key:"update",value:function(t){var n=this.view.state.field(ga.state).context;(n.updateViewport(t.view.viewport)||this.view.viewport.to>n.treeLen)&&this.scheduleWork(),t.docChanged&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(n)}},{key:"scheduleWork",value:function(){if(!this.working){var t=this.view.state,n=t.field(ga.state);n.tree==n.context.tree&&n.context.isDone(t.doc.length)||(this.working=uq(this.work))}}},{key:"work",value:function(t){this.working=null;var n=Date.now();if(this.chunkEnd<n&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=n+3e4,this.chunkBudget=3e3),!(this.chunkBudget<=0)){var r=this.view,o=r.state,i=r.viewport.to,a=o.field(ga.state);if(a.tree!=a.context.tree||!a.context.isDone(i+1e5)){var s=Date.now()+Math.min(this.chunkBudget,100,t&&!Hy?Math.max(25,t.timeRemaining()-5):1e9),c=a.context.treeLen<i&&o.doc.length>i+1e3,u=a.context.work(function(){return Hy&&Hy()||Date.now()>s},i+(c?0:1e5));this.chunkBudget-=Date.now()-n,(u||this.chunkBudget<=0)&&(a.context.takeTree(),this.view.dispatch({effects:ga.setState.of(new Ox(a.context))})),this.chunkBudget>0&&(!u||c)&&this.scheduleWork(),this.checkAsyncSchedule(a.context)}}}},{key:"checkAsyncSchedule",value:function(t){var n=this;t.scheduleOn&&(this.workScheduled++,t.scheduleOn.then(function(){return n.scheduleWork()}).catch(function(r){return yi(n.view.state,r)}).then(function(){return n.workScheduled--}),t.scheduleOn=null)}},{key:"destroy",value:function(){this.working&&this.working()}},{key:"isWorking",value:function(){return!!(this.working||this.workScheduled>0)}}]),e}(),{eventHandlers:{focus:function(){this.scheduleWork()}}}),Gc=xe.define({combine:function(e){return e.length?e[0]:null},enables:function(e){return[ga.state,h1t,ye.contentAttributes.compute([e],function(t){var n=t.facet(e);return n&&n.name?{"data-language":n.name}:{}})]}}),p1t=it(function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];ot(this,e),this.language=t,this.support=n,this.extension=[t,n]}),v1t=xe.define(),a1=xe.define({combine:function(e){if(!e.length)return" ";var t=e[0];if(!t||/\S/.test(t)||Array.from(t).some(function(n){return n!=t[0]}))throw new Error("Invalid indent unit: "+JSON.stringify(e[0]));return t}});function Qc(e){var t=e.facet(a1);return t.charCodeAt(0)==9?e.tabSize*t.length:t.length}function Xh(e,t){var n="",r=e.tabSize,o=e.facet(a1)[0];if(o==" "){for(;t>=r;)n+=" ",t-=r;o=" "}for(var i=0;i<t;i++)n+=o;return n}function zj(e,t){e instanceof fr&&(e=new s1(e));var n,r=ht(e.state.facet(v1t));try{for(r.s();!(n=r.n()).done;){var o=(0,n.value)(e,t);if(o!==void 0)return o}}catch(a){r.e(a)}finally{r.f()}var i=Do(e.state);return i.length>=t?function(a,s,c){return fq(s.resolveInner(c).enterUnfinishedNodesBefore(c),c,a)}(e,i,t):null}var s1=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ot(this,e),this.state=t,this.options=n,this.unit=Qc(t)}return it(e,[{key:"lineAt",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,r=this.state.doc.lineAt(t),o=this.options,i=o.simulateBreak,a=o.simulateDoubleBreak;return i!=null&&i>=r.from&&i<=r.to?a&&i==t?{text:"",from:t}:(n<0?i<t:i<=t)?{text:r.text.slice(i-r.from),from:i}:{text:r.text.slice(0,i-r.from),from:r.from}:r}},{key:"textAfterPos",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;if(this.options.simulateDoubleBreak&&t==this.options.simulateBreak)return"";var r=this.lineAt(t,n),o=r.text,i=r.from;return o.slice(t-i,Math.min(o.length,t+100-i))}},{key:"column",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,r=this.lineAt(t,n),o=r.text,i=r.from,a=this.countColumn(o,t-i),s=this.options.overrideIndentation?this.options.overrideIndentation(i):-1;return s>-1&&(a+=s-this.countColumn(o,o.search(/\S|$/))),a}},{key:"countColumn",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.length;return Pp(t,this.state.tabSize,n)}},{key:"lineIndent",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,r=this.lineAt(t,n),o=r.text,i=r.from,a=this.options.overrideIndentation;if(a){var s=a(i);if(s>-1)return s}return this.countColumn(o,o.search(/\S|$/))}},{key:"simulatedBreak",get:function(){return this.options.simulateBreak||null}}]),e}(),lq=new bn;function m1t(e){var t=e.type.prop(lq);if(t)return t;var n,r=e.firstChild;if(r&&(n=r.type.prop(bn.closedBy))){var o=e.lastChild,i=o&&n.indexOf(o.name)>-1;return function(a){return function(s,c,u,l,f){var d=s.textAfter,h=d.match(/^\s*/)[0].length,p=l&&d.slice(h,h+l.length)==l||f==s.pos+h,v=c?function(m){var g=m.node,y=g.childAfter(g.from),b=g.lastChild;if(!y)return null;for(var w=m.options.simulateBreak,x=m.state.doc.lineAt(y.from),k=w==null||w<=x.from?x.to:Math.min(x.to,w),E=y.to;;){var _=g.childAfter(E);if(!_||_==b)return null;if(!_.type.isSkipped)return _.from<k?y:null;E=_.to}}(s):null;return v?p?s.column(v.from):s.column(v.to):s.baseIndent+(p?0:s.unit*u)}(a,!0,1,void 0,i&&!function(s){return s.pos==s.options.simulateBreak&&s.options.simulateDoubleBreak}(a)?o.from:void 0)}}return e.parent==null?g1t:null}function fq(e,t,n){for(;e;e=e.parent){var r=m1t(e);if(r)return r(y1t.create(n,t,e))}return null}function g1t(){return 0}var y1t=function(e){Tt(n,s1);var t=Rt(n);function n(r,o,i){var a;return ot(this,n),(a=t.call(this,r.state,r.options)).base=r,a.pos=o,a.node=i,a}return it(n,[{key:"textAfter",get:function(){return this.textAfterPos(this.pos)}},{key:"baseIndent",get:function(){return this.baseIndentFor(this.node)}},{key:"baseIndentFor",value:function(r){for(var o=this.state.doc.lineAt(r.from);;){for(var i=r.resolve(o.from);i.parent&&i.parent.from==i.from;)i=i.parent;if(b1t(i,r))break;o=this.state.doc.lineAt(i.from)}return this.lineIndent(o.from)}},{key:"continue",value:function(){var r=this.node.parent;return r?fq(r,this.pos,this.base):0}}],[{key:"create",value:function(r,o,i){return new n(r,o,i)}}]),n}();function b1t(e,t){for(var n=t;n;n=n.parent)if(e==n)return!0;return!1}function dT(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.except,n=e.units,r=n===void 0?1:n;return function(o){var i=t&&t.test(o.textAfter);return o.baseIndent+(i?0:r*o.unit)}}var w1t=200,x1t=xe.define(),dq=new bn;function Ng(e,t,n){var r,o=ht(e.facet(x1t));try{for(o.s();!(r=o.n()).done;){var i=(0,r.value)(e,t,n);if(i)return i}}catch(a){o.e(a)}finally{o.f()}return function(a,s,c){var u=Do(a);if(u.length<c)return null;for(var l,f,d=null,h=u.resolveInner(c,1);h;h=h.parent)if(!(h.to<=c||h.from>c)){if(d&&h.from<s)break;var p=h.type.prop(dq);if(p&&(h.to<u.length-50||u.length==a.doc.length||(f=void 0,!(f=(l=h).lastChild)||f.to!=l.to||!f.type.isError))){var v=p(h,a);v&&v.from<=c&&v.from>=s&&v.to>c&&(d=v)}}return d}(e,t,n)}function hq(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 Dg=wn.define({map:hq}),Zh=wn.define({map:hq});function hT(e){var t,n=[],r=ht(e.state.selection.ranges);try{var o=function(){var i=t.value.head;if(n.some(function(a){return a.from<=i&&a.to>=i}))return 1;n.push(e.lineBlockAt(i))};for(r.s();!(t=r.n()).done;)o()}catch(i){r.e(i)}finally{r.f()}return n}var il=$o.define({create:function(){return Ue.none},update:function(e,t){e=e.map(t.changes);var n,r=ht(t.effects);try{var o=function(){var s=n.value;if(s.is(Dg)&&!function(l,f,d){var h=!1;return l.between(f,f,function(p,v){p==f&&v==d&&(h=!0)}),h}(e,s.value.from,s.value.to)){var c=t.state.facet(Bj).preparePlaceholder,u=c?Ue.replace({widget:new _1t(c(t.state,s.value))}):mT;e=e.update({add:[u.range(s.value.from,s.value.to)]})}else s.is(Zh)&&(e=e.update({filter:function(l,f){return s.value.from!=l||s.value.to!=f},filterFrom:s.value.from,filterTo:s.value.to}))};for(r.s();!(n=r.n()).done;)o()}catch(s){r.e(s)}finally{r.f()}if(t.selection){var i=!1,a=t.selection.main.head;e.between(a,a,function(s,c){s<a&&c>a&&(i=!0)}),i&&(e=e.update({filterFrom:a,filterTo:a,filter:function(s,c){return c<=a||s>=a}}))}return e},provide:function(e){return ye.decorations.from(e)},toJSON:function(e,t){var n=[];return e.between(0,t.doc.length,function(r,o){n.push(r,o)}),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(typeof r!="number"||typeof o!="number")throw new RangeError("Invalid JSON for fold state");t.push(mT.range(r,o))}return Ue.set(t,!0)}});function Lg(e,t,n){var r,o=null;return(r=e.field(il,!1))===null||r===void 0||r.between(t,n,function(i,a){(!o||o.from>i)&&(o={from:i,to:a})}),o}function pT(e,t){return e.field(il,!1)?t:t.concat(wn.appendConfig.of(pq()))}function vT(e,t){var n=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],r=e.state.doc.lineAt(t.from).number,o=e.state.doc.lineAt(t.to).number;return ye.announce.of("".concat(e.state.phrase(n?"Folded lines":"Unfolded lines")," ").concat(r," ").concat(e.state.phrase("to")," ").concat(o,"."))}var k1t=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:function(e){var t,n=ht(hT(e));try{for(n.s();!(t=n.n()).done;){var r=t.value,o=Ng(e.state,r.from,r.to);if(o)return e.dispatch({effects:pT(e.state,[Dg.of(o),vT(e,o)])}),!0}}catch(i){n.e(i)}finally{n.f()}return!1}},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:function(e){if(!e.state.field(il,!1))return!1;var t,n=[],r=ht(hT(e));try{for(r.s();!(t=r.n()).done;){var o=t.value,i=Lg(e.state,o.from,o.to);i&&n.push(Zh.of(i),vT(e,i,!1))}}catch(a){r.e(a)}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=Ng(t,o.from,o.to);i&&n.push(Dg.of(i)),r=(i?e.lineBlockAt(i.to):o).to+1}return n.length&&e.dispatch({effects:pT(e.state,n)}),!!n.length}},{key:"Ctrl-Alt-]",run:function(e){var t=e.state.field(il,!1);if(!t||!t.size)return!1;var n=[];return t.between(0,e.state.doc.length,function(r,o){n.push(Zh.of({from:r,to:o}))}),e.dispatch({effects:n}),!0}}],j1t={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},Bj=xe.define({combine:function(e){return Xi(e,j1t)}});function pq(e){var t=[il,C1t];return e&&t.push(Bj.of(e)),t}function vq(e,t){var n=e.state,r=n.facet(Bj),o=function(a){var s=e.lineBlockAt(e.posAtDOM(a.target)),c=Lg(e.state,s.from,s.to);c&&e.dispatch({effects:Zh.of(c)}),a.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 mT=Ue.replace({widget:new(function(e){Tt(n,au);var t=Rt(n);function n(){return ot(this,n),t.apply(this,arguments)}return it(n,[{key:"toDOM",value:function(r){return vq(r,null)}}]),n}())}),_1t=function(e){Tt(n,au);var t=Rt(n);function n(r){var o;return ot(this,n),(o=t.call(this)).value=r,o}return it(n,[{key:"eq",value:function(r){return this.value==r.value}},{key:"toDOM",value:function(r){return vq(r,this.value)}}]),n}(),S1t={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:function(){return!1}},Vy=function(e){Tt(n,Ua);var t=Rt(n);function n(r,o){var i;return ot(this,n),(i=t.call(this)).config=r,i.open=o,i}return it(n,[{key:"eq",value:function(r){return this.config==r.config&&this.open==r.open}},{key:"toDOM",value:function(r){if(this.config.markerDOM)return this.config.markerDOM(this.open);var o=document.createElement("span");return o.textContent=this.open?this.config.openText:this.config.closedText,o.title=r.state.phrase(this.open?"Fold line":"Unfold line"),o}}]),n}();function $1t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Object.assign(Object.assign({},S1t),e),n=new Vy(t,!0),r=new Vy(t,!1),o=io.fromClass(function(){function a(s){ot(this,a),this.from=s.viewport.from,this.markers=this.buildMarkers(s)}return it(a,[{key:"update",value:function(s){(s.docChanged||s.viewportChanged||s.startState.facet(Gc)!=s.state.facet(Gc)||s.startState.field(il,!1)!=s.state.field(il,!1)||Do(s.startState)!=Do(s.state)||t.foldingChanged(s))&&(this.markers=this.buildMarkers(s.view))}},{key:"buildMarkers",value:function(s){var c,u=new Wc,l=ht(s.viewportLineBlocks);try{for(l.s();!(c=l.n()).done;){var f=c.value,d=Lg(s.state,f.from,f.to)?r:Ng(s.state,f.from,f.to)?n:null;d&&u.add(f.from,f.from,d)}}catch(h){l.e(h)}finally{l.f()}return u.finish()}}]),a}()),i=t.domEventHandlers;return[o,ZF({class:"cm-foldGutter",markers:function(a){var s;return((s=a.plugin(o))===null||s===void 0?void 0:s.markers)||vr.empty},initialSpacer:function(){return new Vy(t,!1)},domEventHandlers:Object.assign(Object.assign({},i),{click:function(a,s,c){if(i.click&&i.click(a,s,c))return!0;var u=Lg(a.state,s.from,s.to);if(u)return a.dispatch({effects:Zh.of(u)}),!0;var l=Ng(a.state,s.from,s.to);return!!l&&(a.dispatch({effects:Dg.of(l)}),!0)}})}),pq()]}var C1t=ye.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"}}),Fj=function(){function e(t,n){var r;function o(s){var c=Uc.newName();return(r||(r=Object.create(null)))["."+c]=s,c}ot(this,e),this.specs=t;var i=typeof n.all=="string"?n.all:n.all?o(n.all):void 0,a=n.scope;this.scope=a instanceof ga?function(s){return s.prop(ql)==a.data}:a?function(s){return s==a}:void 0,this.style=cq(t.map(function(s){return{tag:s.tag,class:s.class||o(Object.assign({},s,{tag:null}))}}),{all:i}).style,this.module=r?new Uc(r):null,this.themeType=n.themeType}return it(e,null,[{key:"define",value:function(t,n){return new e(t,n||{})}}]),e}(),Mx=xe.define(),mq=xe.define({combine:function(e){return e.length?[e[0]]:null}});function Wy(e){var t=e.facet(Mx);return t.length?t:e.facet(mq)}function gq(e,t){var n,r=[O1t];return e instanceof Fj&&(e.module&&r.push(ye.styleModule.of(e.module)),n=e.themeType),t!=null&&t.fallback?r.push(mq.of(e)):n?r.push(Mx.computeN([ye.darkTheme],function(o){return o.facet(ye.darkTheme)==(n=="dark")?[e]:[]})):r.push(Mx.of(e)),r}var E1t=function(){function e(t){ot(this,e),this.markCache=Object.create(null),this.tree=Do(t.state),this.decorations=this.buildDeco(t,Wy(t.state))}return it(e,[{key:"update",value:function(t){var n=Do(t.state),r=Wy(t.state),o=r!=Wy(t.startState);n.length<t.view.viewport.to&&!o&&n.type==this.tree.type?this.decorations=this.decorations.map(t.changes):(n!=this.tree||t.viewportChanged||o)&&(this.tree=n,this.decorations=this.buildDeco(t.view,r))}},{key:"buildDeco",value:function(t,n){var r=this;if(!n||!this.tree.length)return Ue.none;var o,i=new Wc,a=ht(t.visibleRanges);try{for(a.s();!(o=a.n()).done;){var s=o.value,c=s.from,u=s.to;s1t(this.tree,n,function(l,f,d){i.add(l,f,r.markCache[d]||(r.markCache[d]=Ue.mark({class:d})))},c,u)}}catch(l){a.e(l)}finally{a.f()}return i.finish()}}]),e}(),O1t=id.high(io.fromClass(E1t,{decorations:function(e){return e.decorations}})),M1t=Fj.define([{tag:re.meta,color:"#404740"},{tag:re.link,textDecoration:"underline"},{tag:re.heading,textDecoration:"underline",fontWeight:"bold"},{tag:re.emphasis,fontStyle:"italic"},{tag:re.strong,fontWeight:"bold"},{tag:re.strikethrough,textDecoration:"line-through"},{tag:re.keyword,color:"#708"},{tag:[re.atom,re.bool,re.url,re.contentSeparator,re.labelName],color:"#219"},{tag:[re.literal,re.inserted],color:"#164"},{tag:[re.string,re.deleted],color:"#a11"},{tag:[re.regexp,re.escape,re.special(re.string)],color:"#e40"},{tag:re.definition(re.variableName),color:"#00f"},{tag:re.local(re.variableName),color:"#30a"},{tag:[re.typeName,re.namespace],color:"#085"},{tag:re.className,color:"#167"},{tag:[re.special(re.variableName),re.macroName],color:"#256"},{tag:re.definition(re.propertyName),color:"#00c"},{tag:re.comment,color:"#940"},{tag:re.invalid,color:"#f00"}]),A1t=ye.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),yq=1e4,bq="()[]{}",wq=xe.define({combine:function(e){return Xi(e,{afterCursor:!0,brackets:bq,maxScanDistance:yq,renderMatch:R1t})}}),P1t=Ue.mark({class:"cm-matchingBracket"}),T1t=Ue.mark({class:"cm-nonmatchingBracket"});function R1t(e){var t=[],n=e.matched?P1t:T1t;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 I1t=$o.define({create:function(){return Ue.none},update:function(e,t){if(!t.docChanged&&!t.selection)return e;var n,r=[],o=t.state.facet(wq),i=ht(t.state.selection.ranges);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(a.empty){var s=Qa(t.state,a.head,-1,o)||a.head>0&&Qa(t.state,a.head-1,1,o)||o.afterCursor&&(Qa(t.state,a.head,1,o)||a.head<t.state.doc.length&&Qa(t.state,a.head+1,-1,o));s&&(r=r.concat(o.renderMatch(s,t.state)))}}}catch(c){i.e(c)}finally{i.f()}return Ue.set(r,!0)},provide:function(e){return ye.decorations.from(e)}}),N1t=[I1t,A1t];function D1t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return[wq.of(e),N1t]}var L1t=new bn;function Ax(e,t,n){var r=e.prop(t<0?bn.openedBy:bn.closedBy);if(r)return r;if(e.name.length==1){var o=n.indexOf(e.name);if(o>-1&&o%2==(t<0?1:0))return[n[o+t]]}return null}function Px(e){var t=e.type.prop(L1t);return t?t(e.node):e}function Qa(e,t,n){for(var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=r.maxScanDistance||yq,i=r.brackets||bq,a=Do(e),s=a.resolveInner(t,n),c=s;c;c=c.parent){var u=Ax(c.type,n,i);if(u&&c.from<c.to){var l=Px(c);if(l&&(n>0?t>=l.from&&t<l.to:t>l.from&&t<=l.to))return z1t(e,t,n,c,l,u,i)}}return function(f,d,h,p,v,m,g){var y=h<0?f.sliceDoc(d-1,d):f.sliceDoc(d,d+1),b=g.indexOf(y);if(b<0||b%2==0!=h>0)return null;for(var w={from:h<0?d-1:d,to:h>0?d+1:d},x=f.doc.iterRange(d,h>0?f.doc.length:0),k=0,E=0;!x.next().done&&E<=m;){var _=x.value;h<0&&(E+=_.length);for(var T=d+E*h,$=h>0?0:_.length-1,j=h>0?_.length:-1;$!=j;$+=h){var R=g.indexOf(_[$]);if(!(R<0||p.resolveInner(T+$,1).type!=v))if(R%2==0==h>0)k++;else{if(k==1)return{start:w,end:{from:T+$,to:T+$+1},matched:R>>1==b>>1};k--}}h>0&&(E+=_.length)}return x.done?{start:w,matched:!1}:null}(e,t,n,a,s.type,o,i)}function z1t(e,t,n,r,o,i,a){var s=r.parent,c={from:o.from,to:o.to},u=0,l=s==null?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(u==0&&i.indexOf(l.type.name)>-1&&l.from<l.to){var f=Px(l);return{start:c,end:f?{from:f.from,to:f.to}:void 0,matched:!0}}if(Ax(l.type,n,a))u++;else if(Ax(l.type,-n,a)){if(u==0){var d=Px(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 B1t=Object.create(null),gT=[Qi.none],yT=[],F1t=Object.create(null),Uy=0,bT=[["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"]];Uy<bT.length;Uy++){var wT=Ce(bT[Uy],2),q1t=wT[0],H1t=wT[1];F1t[q1t]=V1t(B1t,H1t)}function Ky(e,t){yT.indexOf(e)>-1||(yT.push(e),console.warn(t))}function V1t(e,t){var n,r=null,o=ht(t.split("."));try{for(o.s();!(n=o.n()).done;){var i=n.value,a=e[i]||re[i];a?typeof a=="function"?r?r=a(r):Ky(i,"Modifier ".concat(i," used at start of tag")):r?Ky(i,"Tag ".concat(i," used as modifier")):r=a:Ky(i,"Unknown highlighting tag ".concat(i))}}catch(u){o.e(u)}finally{o.f()}if(!r)return 0;var s=t.replace(/ /g,"_"),c=Qi.define({id:gT.length,name:s,props:[aq(Wo({},s,r))]});return gT.push(c),c.id}function qj(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 W1t=qj(J1t,0),U1t=qj(xq,0),K1t=qj(function(e,t){return xq(e,t,function(n){var r,o=[],i=ht(n.selection.ranges);try{for(i.s();!(r=i.n()).done;){var a=r.value,s=n.doc.lineAt(a.from),c=a.to<=s.to?s:n.doc.lineAt(a.to),u=o.length-1;u>=0&&o[u].to>s.from?o[u].to=c.to:o.push({from:s.from+/^\s*/.exec(s.text)[0].length,to:c.to})}}catch(l){i.e(l)}finally{i.f()}return o}(t))},0);function Hj(e,t){var n=e.languageDataAt("commentTokens",t);return n.length?n[0]:{}}var wd=50;function xq(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t.selection.ranges,r=n.map(function(d){return Hj(t,d.from).block});if(!r.every(function(d){return d}))return null;var o=n.map(function(d,h){return function(p,v,m,g){var y,b,w=v.open,x=v.close,k=p.sliceDoc(m-wd,m),E=p.sliceDoc(g,g+wd),_=/\s*$/.exec(k)[0].length,T=/^\s*/.exec(E)[0].length,$=k.length-_;if(k.slice($-w.length,$)==w&&E.slice(T,T+x.length)==x)return{open:{pos:m-_,margin:_&&1},close:{pos:g+T,margin:T&&1}};g-m<=2*wd?y=b=p.sliceDoc(m,g):(y=p.sliceDoc(m,m+wd),b=p.sliceDoc(g-wd,g));var j=/^\s*/.exec(y)[0].length,R=/\s*$/.exec(b)[0].length,q=b.length-R-x.length;return y.slice(j,j+w.length)==w&&b.slice(q,q+x.length)==x?{open:{pos:m+j+w.length,margin:/\s/.test(y.charAt(j+w.length))?1:0},close:{pos:g-R-x.length,margin:/\s/.test(b.charAt(q-1))?1:0}}:null}(t,r[h],d.from,d.to)});if(e!=2&&!o.every(function(d){return d}))return{changes:t.changes(n.map(function(d,h){return o[h]?[]:[{from:d.from,insert:r[h].open+" "},{from:d.to,insert:" "+r[h].close}]}))};if(e!=1&&o.some(function(d){return d})){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 J1t(e,t){var n,r=[],o=-1,i=ht(arguments.length>2&&arguments[2]!==void 0?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=Hj(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 p=/^\s*/.exec(h.text)[0].length,v=p==h.length,m=h.text.slice(p,p+f.length)==f?p:-1;p<h.text.length&&p<l&&(l=p),r.push({line:h,comment:m,token:f,indent:p,empty:v,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(M){i.e(M)}finally{i.f()}if(e!=2&&r.some(function(M){return M.comment<0&&(!M.empty||M.single)})){var y,b=[],w=ht(r);try{for(w.s();!(y=w.n()).done;){var x=y.value,k=x.line,E=x.token,_=x.indent,T=x.empty;!x.single&&T||b.push({from:k.from+_,insert:E+" "})}}catch(M){w.e(M)}finally{w.f()}var $=t.changes(b);return{changes:$,selection:t.selection.map($,1)}}if(e!=1&&r.some(function(M){return M.comment>=0})){var j,R=[],q=ht(r);try{for(q.s();!(j=q.n()).done;){var O=j.value,F=O.line,J=O.comment,I=O.token;if(J>=0){var D=F.from+J,C=D+I.length;F.text[C-F.from]==" "&&C++,R.push({from:D,to:C})}}}catch(M){q.e(M)}finally{q.f()}return{changes:R}}return null}var Tx=Rs.define(),G1t=Rs.define(),Q1t=xe.define(),kq=xe.define({combine:function(e){return Xi(e,{minDepth:100,newGroupDelay:500,joinToEvent:function(t,n){return n}},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:function(t,n){return function(r,o){return t(r,o)||n(r,o)}}})}}),Vj=$o.define({create:function(){return fh.empty},update:function(e,t){var n,r,o=t.state.facet(kq),i=t.annotation(Tx);if(i){var a=t.docChanged?Jt.single((n=t.changes,r=0,n.iterChangedRanges(function(p,v){return r=v}),r)):void 0,s=Is.fromTransaction(t,a),c=i.side,u=c==0?e.undone:e.done;return u=s?Bg(u,u.length,o.minDepth,s):Sq(u,t.startState.selection),new fh(c==0?i.rest:u,c==0?u:i.rest)}var l=t.annotation(G1t);if(l!="full"&&l!="before"||(e=e.isolate()),t.annotation(ti.addToHistory)===!1)return t.changes.empty?e:e.addMapping(t.changes.desc);var f=Is.fromTransaction(t),d=t.annotation(ti.time),h=t.annotation(ti.userEvent);return f?e=e.addChanges(f,d,h,o,t):t.selection&&(e=e.addSelection(t.startState.selection,d,h,o.newGroupDelay)),l!="full"&&l!="after"||(e=e.isolate()),e},toJSON:function(e){return{done:e.done.map(function(t){return t.toJSON()}),undone:e.undone.map(function(t){return t.toJSON()})}},fromJSON:function(e){return new fh(e.done.map(Is.fromJSON),e.undone.map(Is.fromJSON))}});function Y1t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return[Vj,kq.of(e),ye.domEventHandlers({beforeinput:function(t,n){var r=t.inputType=="historyUndo"?Wj:t.inputType=="historyRedo"?zg:null;return!!r&&(t.preventDefault(),r(n))}})]}function c1(e,t){return function(n){var r=n.state,o=n.dispatch;if(!t&&r.readOnly)return!1;var i=r.field(Vj,!1);if(!i)return!1;var a=i.pop(e,r,t);return!!a&&(o(a),!0)}}var Wj=c1(0,!1),zg=c1(1,!1),X1t=c1(0,!0),Z1t=c1(1,!0);function jq(e){return function(t){var n=t.field(Vj,!1);if(!n)return 0;var r=e==0?n.done:n.undone;return r.length-(r.length&&!r[0].changes?1:0)}}var tyt=jq(0),eyt=jq(1),Is=function(){function e(t,n,r,o,i){ot(this,e),this.changes=t,this.effects=n,this.mapped=r,this.startSelection=o,this.selectionsAfter=i}return it(e,[{key:"setSelAfter",value:function(t){return new e(this.changes,this.effects,this.mapped,this.startSelection,t)}},{key:"toJSON",value:function(){var t,n,r;return{changes:(t=this.changes)===null||t===void 0?void 0:t.toJSON(),mapped:(n=this.mapped)===null||n===void 0?void 0:n.toJSON(),startSelection:(r=this.startSelection)===null||r===void 0?void 0:r.toJSON(),selectionsAfter:this.selectionsAfter.map(function(o){return o.toJSON()})}}}],[{key:"fromJSON",value:function(t){return new e(t.changes&&Oa.fromJSON(t.changes),[],t.mapped&&af.fromJSON(t.mapped),t.startSelection&&Jt.fromJSON(t.startSelection),t.selectionsAfter.map(Jt.fromJSON))}},{key:"fromTransaction",value:function(t,n){var r,o=Ni,i=ht(t.startState.facet(Q1t));try{for(i.s();!(r=i.n()).done;){var a=(0,r.value)(t);a.length&&(o=o.concat(a))}}catch(s){i.e(s)}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,Ni)}},{key:"selection",value:function(t){return new e(void 0,Ni,void 0,void 0,t)}}]),e}();function Bg(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 _q(e,t){return e.length?t.length?e.concat(t):e:t}var Ni=[],nyt=200;function Sq(e,t){if(e.length){var n=e[e.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-nyt));return r.length&&r[r.length-1].eq(t)?e:(r.push(t),Bg(e,e.length-1,1e9,n.setSelAfter(r)))}return[Is.selection([t])]}function ryt(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 Jy(e,t){if(!e.length)return e;for(var n=e.length,r=Ni;n;){var o=oyt(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?[Is.selection(r)]:Ni}function oyt(e,t,n){var r=_q(e.selectionsAfter.length?e.selectionsAfter.map(function(s){return s.map(t)}):Ni,n);if(!e.changes)return Is.selection(r);var o=e.changes.map(t),i=t.mapDesc(e.changes,!0),a=e.mapped?e.mapped.composeDesc(i):i;return new Is(o,wn.mapEffects(e.effects,t),a,e.startSelection.map(i),r)}var iyt=/^(input\.type|delete)($|\.)/,fh=function(){function e(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:void 0;ot(this,e),this.done=t,this.undone=n,this.prevTime=r,this.prevUserEvent=o}return it(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||iyt.test(r))&&(!s.selectionsAfter.length&&n-this.prevTime<o.newGroupDelay&&o.joinToEvent(i,function(c,u){var l=[],f=!1;return c.iterChangedRanges(function(d,h){return l.push(d,h)}),u.iterChangedRanges(function(d,h,p,v){for(var m=0;m<l.length;){var g=l[m++],y=l[m++];v>=g&&p<=y&&(f=!0)}}),f}(s.changes,t.changes))||r=="input.type.compose")?Bg(a,a.length-1,o.minDepth,new Is(t.changes.compose(s.changes),_q(t.effects,s.effects),s.mapped,s.startSelection,Ni)):Bg(a,a.length,o.minDepth,t),new e(a,Ni,n,r)}},{key:"addSelection",value:function(t,n,r,o){var i=this.done.length?this.done[this.done.length-1].selectionsAfter:Ni;return i.length>0&&n-this.prevTime<o&&r==this.prevUserEvent&&r&&/^select($|\.)/.test(r)&&function(a,s){return a.ranges.length==s.ranges.length&&a.ranges.filter(function(c,u){return c.empty!=s.ranges[u].empty}).length===0}(i[i.length-1],t)?this:new e(Sq(this.done,t),this.undone,n,r)}},{key:"addMapping",value:function(t){return new e(Jy(this.done,t),Jy(this.undone,t),this.prevTime,this.prevUserEvent)}},{key:"pop",value:function(t,n,r){var o=t==0?this.done:this.undone;if(o.length==0)return null;var i=o[o.length-1];if(r&&i.selectionsAfter.length)return n.update({selection:i.selectionsAfter[i.selectionsAfter.length-1],annotations:Tx.of({side:t,rest:ryt(o)}),userEvent:t==0?"select.undo":"select.redo",scrollIntoView:!0});if(i.changes){var a=o.length==1?Ni:o.slice(0,o.length-1);return i.mapped&&(a=Jy(a,i.mapped)),n.update({changes:i.changes,selection:i.startSelection,effects:i.effects,annotations:Tx.of({side:t,rest:a}),filter:!1,userEvent:t==0?"undo":"redo",scrollIntoView:!0})}return null}}]),e}();fh.empty=new fh(Ni,Ni);var ayt=[{key:"Mod-z",run:Wj,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:zg,preventDefault:!0},{linux:"Ctrl-Shift-z",run:zg,preventDefault:!0},{key:"Mod-u",run:X1t,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:Z1t,preventDefault:!0}];function lf(e,t){return Jt.create(e.ranges.map(t),e.mainIndex)}function rs(e,t){return e.update({selection:t,scrollIntoView:!0,userEvent:"select"})}function ya(e,t){var n=e.state,r=e.dispatch,o=lf(n.selection,t);return!o.eq(n.selection)&&(r(rs(n,o)),!0)}function u1(e,t){return Jt.cursor(t?e.to:e.from)}function $q(e,t){return ya(e,function(n){return n.empty?e.moveByChar(n,t):u1(n,t)})}function Mo(e){return e.textDirectionAt(e.state.selection.main.head)==Ir.LTR}var Cq=function(e){return $q(e,!Mo(e))},Eq=function(e){return $q(e,Mo(e))};function xT(e,t){return ya(e,function(n){return n.empty?e.moveByGroup(n,t):u1(n,t)})}function syt(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 Iv(e,t,n){for(var r=Do(e).resolveInner(t.head),o=n?bn.closedBy:bn.openedBy,i=t.head;;){var a=n?r.childAfter(i):r.childBefore(i);if(!a)break;syt(e,a,o)?r=a:i=n?a.to:a.from}var s,c;return c=r.type.prop(o)&&(s=n?Qa(e,r.from,1):Qa(e,r.to,-1))&&s.matched?n?s.end.to:s.end.from:n?r.to:r.from,Jt.cursor(c,n?-1:1)}function Oq(e,t){return ya(e,function(n){if(!n.empty)return u1(n,t);var r=e.moveVertically(n,t);return r.head!=n.head?r:e.moveToLineBoundary(n,t)})}var Mq=function(e){return Oq(e,!1)},Aq=function(e){return Oq(e,!0)};function Pq(e){var t,n=e.scrollDOM.clientHeight<e.scrollDOM.scrollHeight-2,r=0,o=0;if(n){var i,a=ht(e.state.facet(ye.scrollMargins));try{for(a.s();!(i=a.n()).done;){var s=(0,i.value)(e);s!=null&&s.top&&(r=Math.max(s==null?void 0:s.top,r)),s!=null&&s.bottom&&(o=Math.max(s==null?void 0:s.bottom,o))}}catch(c){a.e(c)}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 Tq(e,t){var n,r=Pq(e),o=e.state,i=lf(o.selection,function(l){return l.empty?e.moveVertically(l,t,r.height):u1(l,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=ye.scrollIntoView(i.main.head,{y:"start",yMargin:a.top-c}))}return e.dispatch(rs(o,i),{effects:n}),!0}var kT=function(e){return Tq(e,!1)},Rx=function(e){return Tq(e,!0)};function cc(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=Jt.cursor(r.from+i))}return o}function Di(e,t){var n=lf(e.state.selection,function(r){var o=t(r);return Jt.range(r.anchor,o.head,o.goalColumn,o.bidiLevel||void 0)});return!n.eq(e.state.selection)&&(e.dispatch(rs(e.state,n)),!0)}function Rq(e,t){return Di(e,function(n){return e.moveByChar(n,t)})}var Iq=function(e){return Rq(e,!Mo(e))},Nq=function(e){return Rq(e,Mo(e))};function jT(e,t){return Di(e,function(n){return e.moveByGroup(n,t)})}function Dq(e,t){return Di(e,function(n){return e.moveVertically(n,t)})}var Lq=function(e){return Dq(e,!1)},zq=function(e){return Dq(e,!0)};function Bq(e,t){return Di(e,function(n){return e.moveVertically(n,t,Pq(e).height)})}var _T=function(e){return Bq(e,!1)},ST=function(e){return Bq(e,!0)},$T=function(e){var t=e.state;return(0,e.dispatch)(rs(t,{anchor:0})),!0},CT=function(e){var t=e.state;return(0,e.dispatch)(rs(t,{anchor:t.doc.length})),!0},ET=function(e){var t=e.state;return(0,e.dispatch)(rs(t,{anchor:t.selection.main.anchor,head:0})),!0},OT=function(e){var t=e.state;return(0,e.dispatch)(rs(t,{anchor:t.selection.main.anchor,head:t.doc.length})),!0};function l1(e,t){if(e.state.readOnly)return!1;var n="delete.selection",r=e.state,o=r.changeByRange(function(i){var a=i.from,s=i.to;if(a==s){var c=t(a);c<a?(n="delete.backward",c=Nv(e,c,!1)):c>a&&(n="delete.forward",c=Nv(e,c,!0)),a=Math.min(a,c),s=Math.max(s,c)}else a=Nv(e,a,!1),s=Nv(e,s,!0);return a==s?{range:i}:{changes:{from:a,to:s},range:Jt.cursor(a)}});return!o.changes.empty&&(e.dispatch(r.update(o,{scrollIntoView:!0,userEvent:n,effects:n=="delete.selection"?ye.announce.of(r.phrase("Selection deleted")):void 0})),!0)}function Nv(e,t,n){if(e instanceof ye){var r,o=ht(e.state.facet(ye.atomicRanges).map(function(i){return i(e)}));try{for(o.s();!(r=o.n()).done;)r.value.between(t,t,function(i,a){i<t&&a>t&&(t=n?a:i)})}catch(i){o.e(i)}finally{o.f()}}return t}var Fq=function(e,t){return l1(e,function(n){var r,o,i=e.state,a=i.doc.lineAt(n);if(!t&&n>a.from&&n<a.from+200&&!/[^ \t]/.test(r=a.text.slice(0,n-a.from))){if(r[r.length-1]==" ")return n-1;for(var s=Pp(r,i.tabSize)%Qc(i)||Qc(i),c=0;c<s&&r[r.length-1-c]==" ";c++)n--;o=n}else(o=Ro(a.text,n-a.from,t,t)+a.from)==n&&a.number!=(t?i.doc.lines:1)&&(o+=t?1:-1);return o})},Ix=function(e){return Fq(e,!1)},qq=function(e){return Fq(e,!0)},Hq=function(e,t){return l1(e,function(n){for(var r=n,o=e.state,i=o.doc.lineAt(r),a=o.charCategorizer(r),s=null;;){if(r==(t?i.to:i.from)){r==n&&i.number!=(t?o.doc.lines:1)&&(r+=t?1:-1);break}var c=Ro(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(s!=null&&l!=s)break;u==" "&&r==n||(s=l),r=c}return r})},Vq=function(e){return Hq(e,!1)},Wq=function(e){return l1(e,function(t){var n=e.lineBlockAt(t).to;return t<n?n:Math.min(e.state.doc.length,t+1)})};function Fg(e){var t,n=[],r=-1,o=ht(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(u){o.e(u)}finally{o.f()}return n}function MT(e,t,n){if(e.readOnly)return!1;var r,o=[],i=[],a=ht(Fg(e));try{for(a.s();!(r=a.n()).done;){var s=r.value;if(n?s.to!=e.doc.length:s.from!=0){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=ht(s.ranges);try{for(f.s();!(l=f.n()).done;){var d=l.value;i.push(Jt.range(Math.min(e.doc.length,d.anchor+u),Math.min(e.doc.length,d.head+u)))}}catch(m){f.e(m)}finally{f.f()}}else{o.push({from:c.from,to:s.from},{from:s.to,insert:e.lineBreak+c.text});var h,p=ht(s.ranges);try{for(p.s();!(h=p.n()).done;){var v=h.value;i.push(Jt.range(v.anchor-u,v.head-u))}}catch(m){p.e(m)}finally{p.f()}}}}}catch(m){a.e(m)}finally{a.f()}return!!o.length&&(t(e.update({changes:o,scrollIntoView:!0,selection:Jt.create(i,e.selection.mainIndex),userEvent:"move.line"})),!0)}function AT(e,t,n){if(e.readOnly)return!1;var r,o=[],i=ht(Fg(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(s){i.e(s)}finally{i.f()}return t(e.update({changes:o,scrollIntoView:!0,userEvent:"input.copyline"})),!0}var cyt=Uq(!1),uyt=Uq(!0);function Uq(e){return function(t){var n=t.state,r=t.dispatch;if(n.readOnly)return!1;var o=n.changeByRange(function(i){var a=i.from,s=i.to,c=n.doc.lineAt(a),u=!e&&a==s&&function(h,p){if(/\(\)|\[\]|\{\}/.test(h.sliceDoc(p-1,p+1)))return{from:p,to:p};var v,m=Do(h).resolveInner(p),g=m.childBefore(p),y=m.childAfter(p);return g&&y&&g.to<=p&&y.from>=p&&(v=g.type.prop(bn.closedBy))&&v.indexOf(y.name)>-1&&h.doc.lineAt(g.to).from==h.doc.lineAt(y.from).from?{from:g.to,to:y.from}:null}(n,a);e&&(a=s=(s<=c.to?c:n.doc.lineAt(s)).to);var l=new s1(n,{simulateBreak:a,simulateDoubleBreak:!!u}),f=zj(l,a);for(f==null&&(f=/^\s*/.exec(n.doc.lineAt(a).text)[0].length);s<c.to&&/\s/.test(c.text[s-c.from]);)s++;u?(a=u.from,s=u.to):a>c.from&&a<c.from+100&&!/\S/.test(c.text.slice(0,a))&&(a=c.from);var d=["",Xh(n,f)];return u&&d.push(Xh(n,l.lineIndent(c.from,-1))),{changes:{from:a,to:s,insert:Yn.of(d)},range:Jt.cursor(a+1+d[1].length)}});return r(n.update(o,{scrollIntoView:!0,userEvent:"input"})),!0}}function Uj(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:Jt.range(s.mapPos(r.anchor,1),s.mapPos(r.head,1))}})}var Kq=function(e){var t=e.state,n=e.dispatch;return!t.readOnly&&(n(t.update(Uj(t,function(r,o){o.push({from:r.from,insert:t.facet(a1)})}),{userEvent:"input.indent"})),!0)},Jq=function(e){var t=e.state,n=e.dispatch;return!t.readOnly&&(n(t.update(Uj(t,function(r,o){var i=/^\s*/.exec(r.text)[0];if(i){for(var a=Pp(i,t.tabSize),s=0,c=Xh(t,Math.max(0,a-Qc(t)));s<i.length&&s<c.length&&i.charCodeAt(s)==c.charCodeAt(s);)s++;o.push({from:r.from+s,to:r.from+i.length,insert:c.slice(s)})}}),{userEvent:"delete.dedent"})),!0)},lyt=[{key:"Ctrl-b",run:Cq,shift:Iq,preventDefault:!0},{key:"Ctrl-f",run:Eq,shift:Nq},{key:"Ctrl-p",run:Mq,shift:Lq},{key:"Ctrl-n",run:Aq,shift:zq},{key:"Ctrl-a",run:function(e){return ya(e,function(t){return Jt.cursor(e.lineBlockAt(t.head).from,1)})},shift:function(e){return Di(e,function(t){return Jt.cursor(e.lineBlockAt(t.head).from)})}},{key:"Ctrl-e",run:function(e){return ya(e,function(t){return Jt.cursor(e.lineBlockAt(t.head).to,-1)})},shift:function(e){return Di(e,function(t){return Jt.cursor(e.lineBlockAt(t.head).to)})}},{key:"Ctrl-d",run:qq},{key:"Ctrl-h",run:Ix},{key:"Ctrl-k",run:Wq},{key:"Ctrl-Alt-h",run:Vq},{key:"Ctrl-o",run:function(e){var t=e.state,n=e.dispatch;if(t.readOnly)return!1;var r=t.changeByRange(function(o){return{changes:{from:o.from,to:o.to,insert:Yn.of(["",""])},range:Jt.cursor(o.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(o){if(!o.empty||o.from==0||o.from==t.doc.length)return{range:o};var i=o.from,a=t.doc.lineAt(i),s=i==a.from?i-1:Ro(a.text,i-a.from,!1)+a.from,c=i==a.to?i+1:Ro(a.text,i-a.from,!0)+a.from;return{changes:{from:s,to:c,insert:t.doc.slice(i,c).append(t.doc.slice(s,i))},range:Jt.cursor(c)}});return!r.changes.empty&&(n(t.update(r,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Ctrl-v",run:Rx}],fyt=[{key:"ArrowLeft",run:Cq,shift:Iq,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:function(e){return xT(e,!Mo(e))},shift:function(e){return jT(e,!Mo(e))},preventDefault:!0},{mac:"Cmd-ArrowLeft",run:function(e){return ya(e,function(t){return cc(e,t,!Mo(e))})},shift:function(e){return Di(e,function(t){return cc(e,t,!Mo(e))})},preventDefault:!0},{key:"ArrowRight",run:Eq,shift:Nq,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:function(e){return xT(e,Mo(e))},shift:function(e){return jT(e,Mo(e))},preventDefault:!0},{mac:"Cmd-ArrowRight",run:function(e){return ya(e,function(t){return cc(e,t,Mo(e))})},shift:function(e){return Di(e,function(t){return cc(e,t,Mo(e))})},preventDefault:!0},{key:"ArrowUp",run:Mq,shift:Lq,preventDefault:!0},{mac:"Cmd-ArrowUp",run:$T,shift:ET},{mac:"Ctrl-ArrowUp",run:kT,shift:_T},{key:"ArrowDown",run:Aq,shift:zq,preventDefault:!0},{mac:"Cmd-ArrowDown",run:CT,shift:OT},{mac:"Ctrl-ArrowDown",run:Rx,shift:ST},{key:"PageUp",run:kT,shift:_T},{key:"PageDown",run:Rx,shift:ST},{key:"Home",run:function(e){return ya(e,function(t){return cc(e,t,!1)})},shift:function(e){return Di(e,function(t){return cc(e,t,!1)})},preventDefault:!0},{key:"Mod-Home",run:$T,shift:ET},{key:"End",run:function(e){return ya(e,function(t){return cc(e,t,!0)})},shift:function(e){return Di(e,function(t){return cc(e,t,!0)})},preventDefault:!0},{key:"Mod-End",run:CT,shift:OT},{key:"Enter",run:cyt},{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:Ix,shift:Ix},{key:"Delete",run:qq},{key:"Mod-Backspace",mac:"Alt-Backspace",run:Vq},{key:"Mod-Delete",mac:"Alt-Delete",run:function(e){return Hq(e,!0)}},{mac:"Mod-Backspace",run:function(e){return l1(e,function(t){var n=e.lineBlockAt(t).from;return t>n?n:Math.max(0,t-1)})}},{mac:"Mod-Delete",run:Wq}].concat(lyt.map(function(e){return{mac:e.key,run:e.run,shift:e.shift}})),dyt=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:function(e){return ya(e,function(t){return Iv(e.state,t,!Mo(e))})},shift:function(e){return Di(e,function(t){return Iv(e.state,t,!Mo(e))})}},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:function(e){return ya(e,function(t){return Iv(e.state,t,Mo(e))})},shift:function(e){return Di(e,function(t){return Iv(e.state,t,Mo(e))})}},{key:"Alt-ArrowUp",run:function(e){return MT(e.state,e.dispatch,!1)}},{key:"Shift-Alt-ArrowUp",run:function(e){return AT(e.state,e.dispatch,!1)}},{key:"Alt-ArrowDown",run:function(e){return MT(e.state,e.dispatch,!0)}},{key:"Shift-Alt-ArrowDown",run:function(e){return AT(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=Jt.create([r.main]):r.main.empty||(o=Jt.create([Jt.cursor(r.main.head)])),!!o&&(n(rs(t,o)),!0)}},{key:"Mod-Enter",run:uyt},{key:"Alt-l",mac:"Ctrl-l",run:function(e){var t=e.state,n=e.dispatch,r=Fg(t).map(function(o){var i=o.from,a=o.to;return Jt.range(i,Math.min(a+1,t.doc.length))});return n(t.update({selection:Jt.create(r),userEvent:"select"})),!0}},{key:"Mod-i",run:function(e){var t=e.state,n=e.dispatch,r=lf(t.selection,function(o){for(var i,a=Do(t).resolveInner(o.head,1);!(a.from<o.from&&a.to>=o.to||a.to>o.to&&a.from<=o.from)&&(!((i=a.parent)===null||i===void 0)&&i.parent);)a=a.parent;return Jt.range(a.to,a.from)});return n(rs(t,r)),!0},preventDefault:!0},{key:"Mod-[",run:Jq},{key:"Mod-]",run:Kq},{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 s1(t,{overrideIndentation:function(a){var s=r[a];return s??-1}}),i=Uj(t,function(a,s,c){var u=zj(o,a.from);if(u!=null){/\S/.test(a.text)||(u=0);var l=/^\s*/.exec(a.text)[0],f=Xh(t,u);(l!=f||c.from<a.from+l.length)&&(r[a.from]=u,s.push({from:a.from,to:a.from+l.length,insert:f}))}});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(Fg(t).map(function(o){var i=o.from,a=o.to;return i>0?i--:a<t.doc.length&&a++,{from:i,to:a}})),r=lf(t.selection,function(o){return e.moveVertically(o,!0)}).map(n);return e.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:"delete.line"}),!0}},{key:"Shift-Mod-\\",run:function(e){return function(t,n,r){var o=!1,i=lf(t.selection,function(a){var s=Qa(t,a.head,-1)||Qa(t,a.head,1)||a.head>0&&Qa(t,a.head-1,1)||a.head<t.doc.length&&Qa(t,a.head+1,-1);if(!s||!s.end)return a;o=!0;var c=s.start.from==a.head?s.end.to:s.end.from;return r?Jt.range(a.anchor,c):Jt.cursor(c)});return!!o&&(n(rs(t,i)),!0)}(e.state,e.dispatch,!1)}},{key:"Mod-/",run:function(e){var t=e.state,n=t.doc.lineAt(t.selection.main.from),r=Hj(e.state,n.from);return r.line?W1t(e):!!r.block&&K1t(e)}},{key:"Alt-A",run:U1t}].concat(fyt),hyt={key:"Tab",run:Kq,shift:Jq};function lr(){var e=arguments[0];typeof e=="string"&&(e=document.createElement(e));var t=1,n=arguments[1];if(n&&ce(n)=="object"&&n.nodeType==null&&!Array.isArray(n)){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var o=n[r];typeof o=="string"?e.setAttribute(r,o):o!=null&&(e[r]=o)}t++}for(;t<arguments.length;t++)Gq(e,arguments[t]);return e}function Gq(e,t){if(typeof t=="string")e.appendChild(document.createTextNode(t));else if(t!=null)if(t.nodeType!=null)e.appendChild(t);else{if(!Array.isArray(t))throw new RangeError("Unsupported child node: "+t);for(var n=0;n<t.length;n++)Gq(e,t[n])}}var pyt=it(function e(t,n,r){ot(this,e),this.from=t,this.to=n,this.diagnostic=r}),xd=function(){function e(t,n,r){ot(this,e),this.diagnostics=t,this.panel=n,this.selected=r}return it(e,null,[{key:"init",value:function(t,n,r){var o=t,i=r.facet(Tu).markerFilter;i&&(o=i(o));var a=Ue.set(o.map(function(s){return s.from==s.to||s.from==s.to-1&&r.doc.lineAt(s.from).to==s.from?Ue.widget({widget:new byt(s),diagnostic:s}).range(s.from):Ue.mark({attributes:{class:"cm-lintRange cm-lintRange-"+s.severity+(s.markClass?" "+s.markClass:"")},diagnostic:s}).range(s.from,s.to)}),!0);return new e(a,n,Rf(a))}}]),e}();function Rf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=null;return e.between(n,1e9,function(o,i,a){var s=a.spec;if(!t||s.diagnostic==t)return r=new pyt(o,i,s.diagnostic),!1}),r}function Qq(e,t){var n=e.startState.doc.lineAt(t.pos);return!(!e.effects.some(function(r){return r.is(f1)})&&!e.changes.touchesRange(n.from,n.to))}function Yq(e,t){return e.field(vi,!1)?t:t.concat(wn.appendConfig.of(iH))}var f1=wn.define(),Kj=wn.define(),Xq=wn.define(),vi=$o.define({create:function(){return new xd(Ue.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=Rf(n,e.selected.diagnostic,o)||Rf(n,null,o)}e=new xd(n,e.panel,r)}var i,a=ht(t.effects);try{for(a.s();!(i=a.n()).done;){var s=i.value;s.is(f1)?e=xd.init(s.value,e.panel,t.state):s.is(Kj)?e=new xd(e.diagnostics,s.value?nH.open:null,e.selected):s.is(Xq)&&(e=new xd(e.diagnostics,e.panel,s.value))}}catch(c){a.e(c)}finally{a.f()}return e},provide:function(e){return[Qh.from(e,function(t){return t.panel}),ye.decorations.from(e,function(t){return t.diagnostics})]}}),vyt=Ue.mark({class:"cm-lintRange cm-lintRange-active"});function myt(e,t,n){var r=e.state.field(vi).diagnostics,o=[],i=2e8,a=0;r.between(t-(n<0?1:0),t+(n>0?1:0),function(c,u,l){var f=l.spec;t>=c&&t<=u&&(c==u||(t>c||n>0)&&(t<u||n<0))&&(o.push(f.diagnostic),i=Math.min(c,i),a=Math.max(u,a))});var s=e.state.facet(Tu).tooltipFilter;return s&&(o=s(o)),o.length?{pos:i,end:a,above:e.state.doc.lineAt(i).to<a,create:function(){return{dom:Zq(e,o)}}}:null}function Zq(e,t){return lr("ul",{class:"cm-tooltip-lint"},t.map(function(n){return eH(e,n,!1)}))}var PT=function(e){var t=e.state.field(vi,!1);return!(!t||!t.panel)&&(e.dispatch({effects:Kj.of(!1)}),!0)},gyt=[{key:"Mod-Shift-m",run:function(e){var t=e.state.field(vi,!1);t&&t.panel||e.dispatch({effects:Yq(e.state,[Kj.of(!0)])});var n=Gh(e,nH.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0},preventDefault:!0},{key:"F8",run:function(e){var t=e.state.field(vi,!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)}}],yyt=io.fromClass(function(){function e(t){ot(this,e),this.view=t,this.timeout=-1,this.set=!0;var n=t.state.facet(Tu).delay;this.lintTime=Date.now()+n,this.run=this.run.bind(this),this.timeout=setTimeout(this.run,n)}return it(e,[{key:"run",value:function(){var t=this,n=Date.now();if(n<this.lintTime-10)setTimeout(this.run,this.lintTime-n);else{this.set=!1;var r=this.view.state,o=r.facet(Tu).sources;Promise.all(o.map(function(i){return Promise.resolve(i(t.view))})).then(function(i){var a=i.reduce(function(s,c){return s.concat(c)});t.view.state.doc==r.doc&&t.view.dispatch(function(s,c){return{effects:Yq(s,[f1.of(c)])}}(t.view.state,a))},function(i){yi(t.view.state,i)})}}},{key:"update",value:function(t){var n=t.state.facet(Tu);(t.docChanged||n!=t.startState.facet(Tu)||n.needsRefresh&&n.needsRefresh(t))&&(this.lintTime=Date.now()+n.delay,this.set||(this.set=!0,this.timeout=setTimeout(this.run,n.delay)))}},{key:"force",value:function(){this.set&&(this.lintTime=Date.now(),this.run())}},{key:"destroy",value:function(){clearTimeout(this.timeout)}}]),e}()),Tu=xe.define({combine:function(e){return Object.assign({sources:e.map(function(t){return t.source})},Xi(e.map(function(t){return t.config}),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null},{needsRefresh:function(t,n){return t?n?function(r){return t(r)||n(r)}:t:n}}))}});function tH(e){var t=[];if(e){var n,r=ht(e);try{t:for(r.s();!(n=r.n()).done;){for(var o=n.value.name,i=function(){var s=o[a];if(/[a-zA-Z]/.test(s)&&!t.some(function(c){return c.toLowerCase()==s.toLowerCase()}))return t.push(s),1},a=0;a<o.length;a++)if(i())continue t;t.push("")}}catch(s){r.e(s)}finally{r.f()}}return t}function eH(e,t,n){var r,o=n?tH(t.actions):[];return lr("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},lr("span",{class:"cm-diagnosticText"},t.renderMessage?t.renderMessage():t.message),(r=t.actions)===null||r===void 0?void 0:r.map(function(i,a){var s=!1,c=function(d){if(d.preventDefault(),!s){s=!0;var h=Rf(e.state.field(vi).diagnostics,t);h&&i.apply(e,h.from,h.to)}},u=i.name,l=o[a]?u.indexOf(o[a]):-1,f=l<0?u:[u.slice(0,l),lr("u",u.slice(l,l+1)),u.slice(l+1)];return lr("button",{type:"button",class:"cm-diagnosticAction",onclick:c,onmousedown:c,"aria-label":" Action: ".concat(u).concat(l<0?"":' (access key "'.concat(o[a],')"'),".")},f)}),t.source&&lr("div",{class:"cm-diagnosticSource"},t.source))}var byt=function(e){Tt(n,au);var t=Rt(n);function n(r){var o;return ot(this,n),(o=t.call(this)).diagnostic=r,o}return it(n,[{key:"eq",value:function(r){return r.diagnostic==this.diagnostic}},{key:"toDOM",value:function(){return lr("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}]),n}(),TT=it(function e(t,n){ot(this,e),this.diagnostic=n,this.id="item_"+Math.floor(4294967295*Math.random()).toString(16),this.dom=eH(t,n,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}),nH=function(){function e(t){var n=this;ot(this,e),this.view=t,this.items=[],this.list=lr("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:function(r){if(r.keyCode==27)PT(n.view),n.view.focus();else if(r.keyCode==38||r.keyCode==33)n.moveSelection((n.selectedIndex-1+n.items.length)%n.items.length);else if(r.keyCode==40||r.keyCode==34)n.moveSelection((n.selectedIndex+1)%n.items.length);else if(r.keyCode==36)n.moveSelection(0);else if(r.keyCode==35)n.moveSelection(n.items.length-1);else if(r.keyCode==13)n.view.focus();else{if(!(r.keyCode>=65&&r.keyCode<=90&&n.selectedIndex>=0))return;for(var o=n.items[n.selectedIndex].diagnostic,i=tH(o.actions),a=0;a<i.length;a++)if(i[a].toUpperCase().charCodeAt(0)==r.keyCode){var s=Rf(n.view.state.field(vi).diagnostics,o);s&&o.actions[a].apply(t,s.from,s.to)}}r.preventDefault()},onclick:function(r){for(var o=0;o<n.items.length;o++)n.items[o].dom.contains(r.target)&&n.moveSelection(o)}}),this.dom=lr("div",{class:"cm-panel-lint"},this.list,lr("button",{type:"button",name:"close","aria-label":this.view.state.phrase("close"),onclick:function(){return PT(n.view)}},"×")),this.update()}return it(e,[{key:"selectedIndex",get:function(){var t=this.view.state.field(vi).selected;if(!t)return-1;for(var n=0;n<this.items.length;n++)if(this.items[n].diagnostic==t.diagnostic)return n;return-1}},{key:"update",value:function(){var t=this,n=this.view.state.field(vi),r=n.diagnostics,o=n.selected,i=0,a=!1,s=null;for(r.between(0,this.view.state.doc.length,function(c,u,l){for(var f,d=l.spec,h=-1,p=i;p<t.items.length;p++)if(t.items[p].diagnostic==d.diagnostic){h=p;break}h<0?(f=new TT(t.view,d.diagnostic),t.items.splice(i,0,f),a=!0):(f=t.items[h],h>i&&(t.items.splice(i,h-i),a=!0)),o&&f.diagnostic==o.diagnostic?f.dom.hasAttribute("aria-selected")||(f.dom.setAttribute("aria-selected","true"),s=f):f.dom.hasAttribute("aria-selected")&&f.dom.removeAttribute("aria-selected"),i++});i<this.items.length&&!(this.items.length==1&&this.items[0].diagnostic.from<0);)a=!0,this.items.pop();this.items.length==0&&(this.items.push(new TT(this.view,{from:-1,to:-1,severity:"info",message:this.view.state.phrase("No diagnostics")})),a=!0),s?(this.list.setAttribute("aria-activedescendant",s.id),this.view.requestMeasure({key:this,read:function(){return{sel:s.dom.getBoundingClientRect(),panel:t.list.getBoundingClientRect()}},write:function(c){var u=c.sel,l=c.panel;u.top<l.top?t.list.scrollTop-=l.top-u.top:u.bottom>l.bottom&&(t.list.scrollTop+=u.bottom-l.bottom)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),a&&this.sync()}},{key:"sync",value:function(){var t=this.list.firstChild;function n(){var a=t;t=a.nextSibling,a.remove()}var r,o=ht(this.items);try{for(o.s();!(r=o.n()).done;){var i=r.value;if(i.dom.parentNode==this.list){for(;t!=i.dom;)n();t=i.dom.nextSibling}else this.list.insertBefore(i.dom,t)}}catch(a){o.e(a)}finally{o.f()}for(;t;)n()}},{key:"moveSelection",value:function(t){if(!(this.selectedIndex<0)){var n=Rf(this.view.state.field(vi).diagnostics,this.items[t].diagnostic);n&&this.view.dispatch({selection:{anchor:n.from,head:n.to},scrollIntoView:!0,effects:Xq.of(n)})}}}],[{key:"open",value:function(t){return new e(t)}}]),e}();function Om(e){return`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" `.concat(arguments.length>1&&arguments[1]!==void 0?arguments[1]:'viewBox="0 0 40 40"',">").concat(encodeURIComponent(e),"</svg>')")}function Dv(e){return Om('<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 wyt=ye.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:Dv("#d11")},".cm-lintRange-warning":{backgroundImage:Dv("orange")},".cm-lintRange-info":{backgroundImage:Dv("#999")},".cm-lintRange-hint":{backgroundImage:Dv("#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 RT(e){return e=="error"?4:e=="warning"?3:e=="info"?2:1}var xyt=function(e){Tt(n,Ua);var t=Rt(n);function n(r){var o;return ot(this,n),(o=t.call(this)).diagnostics=r,o.severity=r.reduce(function(i,a){return RT(i)<RT(a.severity)?a.severity:i},"hint"),o}return it(n,[{key:"toDOM",value:function(r){var o=document.createElement("div");o.className="cm-lint-marker cm-lint-marker-"+this.severity;var i=this.diagnostics,a=r.state.facet(qg).tooltipFilter;return a&&(i=a(i)),i.length&&(o.onmouseover=function(){return function(s,c,u){function l(){var p=s.elementAtHeight(c.getBoundingClientRect().top+5-s.documentTop);s.coordsAtPos(p.from)&&s.dispatch({effects:Nx.of({pos:p.from,above:!1,create:function(){return{dom:Zq(s,u),getCoords:function(){return c.getBoundingClientRect()}}}})}),c.onmouseout=c.onmousemove=null,function(v,m){var g=function y(b){var w=m.getBoundingClientRect();if(!(b.clientX>w.left-10&&b.clientX<w.right+10&&b.clientY>w.top-10&&b.clientY<w.bottom+10)){for(var x=b.target;x;x=x.parentNode)if(x.nodeType==1&&x.classList.contains("cm-tooltip-lint"))return;window.removeEventListener("mousemove",y),v.state.field(oH)&&v.dispatch({effects:Nx.of(null)})}};window.addEventListener("mousemove",g)}(s,c)}var f=s.state.facet(qg),d=f.hoverTime,h=setTimeout(l,d);c.onmouseout=function(){clearTimeout(h),c.onmouseout=c.onmousemove=null},c.onmousemove=function(){clearTimeout(h),h=setTimeout(l,d)}}(r,o,i)}),o}}]),n}();function kyt(e,t){var n,r=Object.create(null),o=ht(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(u){o.e(u)}finally{o.f()}var s=[];for(var c in r)s.push(new xyt(r[c]).range(+c));return vr.of(s,!0)}var jyt=ZF({class:"cm-gutter-lint",markers:function(e){return e.state.field(rH)}}),rH=$o.define({create:function(){return vr.empty},update:function(e,t){e=e.map(t.changes);var n,r=t.state.facet(qg).markerFilter,o=ht(t.effects);try{for(o.s();!(n=o.n()).done;){var i=n.value;if(i.is(f1)){var a=i.value;r&&(a=r(a||[])),e=kyt(t.state.doc,a.slice(0))}}}catch(s){o.e(s)}finally{o.f()}return e}}),Nx=wn.define(),oH=$o.define({create:function(){return null},update:function(e,t){return e&&t.docChanged&&(e=Qq(t,e)?null:Object.assign(Object.assign({},e),{pos:t.changes.mapPos(e.pos)})),t.effects.reduce(function(n,r){return r.is(Nx)?r.value:n},e)},provide:function(e){return i1.from(e)}}),_yt=ye.baseTheme({".cm-gutter-lint":{width:"1.4em","& .cm-gutterElement":{padding:".2em"}},".cm-lint-marker":{width:"1em",height:"1em"},".cm-lint-marker-info":{content:Om('<path fill="#aaf" stroke="#77e" stroke-width="6" stroke-linejoin="round" d="M5 5L35 5L35 35L5 35Z"/>')},".cm-lint-marker-warning":{content:Om('<path fill="#fe8" stroke="#fd7" stroke-width="6" stroke-linejoin="round" d="M20 6L37 35L3 35Z"/>')},".cm-lint-marker-error":{content:Om('<circle cx="20" cy="20" r="15" fill="#f87" stroke="#f43" stroke-width="6"/>')}}),iH=[vi,ye.decorations.compute([vi],function(e){var t=e.field(vi),n=t.selected,r=t.panel;return n&&r&&n.from!=n.to?Ue.set([vyt.range(n.from,n.to)]):Ue.none}),B0t(myt,{hideOn:Qq}),wyt],qg=xe.define({combine:function(e){return Xi(e,{hoverTime:300,markerFilter:null,tooltipFilter:null})}});function Syt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return[qg.of(e),rH,jyt,_yt,oH]}var IT,$yt=function(){function e(t,n,r,o,i,a,s,c,u){var l=arguments.length>9&&arguments[9]!==void 0?arguments[9]:0,f=arguments.length>10?arguments[10]:void 0;ot(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 it(e,[{key:"toString",value:function(){return"[".concat(this.stack.filter(function(t,n){return n%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(t,n){this.stack.push(this.state,n,this.bufferBase+this.buffer.length),this.state=t}},{key:"reduce",value:function(t){var n=t>>19,r=65535&t,o=this.p.parser,i=o.dynamicPrecedence(r);if(i&&(this.score+=i),n==0)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&t?6:0),s=this.stack[a-2],c=this.stack[a-1],u=this.bufferBase+this.buffer.length-c;if(r<o.minRepeatTerm||131072&t){var l=o.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(r,s,l,u+4,!0)}if(262144&t)this.state=this.stack[a];else{var f=this.stack[a-3];this.state=o.getGoto(f,r,!0)}for(;this.stack.length>a;)this.stack.pop();this.reduceContext(r,s)}},{key:"storeNode",value:function(t,n,r){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:4,i=arguments.length>4&&arguments[4]!==void 0&&arguments[4];if(t==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){var a=this,s=this.buffer.length;if(s==0&&a.parent&&(s=a.bufferBase-a.parent.bufferBase,a=a.parent),s>0&&a.buffer[s-4]==0&&a.buffer[s-1]>-1){if(n==r)return;if(a.buffer[s-2]>=n)return void(a.buffer[s-2]=r)}}if(i&&this.pos!=r){var c=this.buffer.length;if(c>0&&this.buffer[c-4]!=0)for(;c>0&&this.buffer[c-2]>r;)this.buffer[c]=this.buffer[c-4],this.buffer[c+1]=this.buffer[c-3],this.buffer[c+2]=this.buffer[c-2],this.buffer[c+3]=this.buffer[c-1],c-=4,o>4&&(o-=4);this.buffer[c]=t,this.buffer[c+1]=n,this.buffer[c+2]=r,this.buffer[c+3]=o}else this.buffer.push(t,n,r,o)}},{key:"shift",value:function(t,n,r){var o=this.pos;if(131072&t)this.pushState(65535&t,this.pos);else if(262144&t)this.pos=r,this.shiftContext(n,o),n<=this.p.parser.maxNode&&this.buffer.push(n,o,r,4);else{var i=t,a=this.p.parser;(r>this.pos||n<=a.maxNode)&&(this.pos=r,a.stateFlag(i,1)||(this.reducePos=r)),this.pushState(i,o),this.shiftContext(n,o),n<=a.maxNode&&this.buffer.push(n,o,r,4)}}},{key:"apply",value:function(t,n,r){65536&t?this.reduce(t):this.shift(t,n,r)}},{key:"useNode",value:function(t,n){var r=this.p.reused.length-1;(r<0||this.p.reused[r]!=t)&&(this.p.reused.push(t),r++);var o=this.pos;this.reducePos=this.pos=o+t.length,this.pushState(n,o),this.buffer.push(r,o,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,t,this,this.p.stream.reset(this.pos-t.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(t,n){var r=t<=this.p.parser.maxNode;r&&this.storeNode(t,this.pos,n,4),this.storeNode(0,this.pos,n,r?8:4),this.pos=this.reducePos=n,this.score-=190}},{key:"canShift",value:function(t){for(var n=new Cyt(this);;){var r=this.p.parser.stateSlot(n.state,4)||this.p.parser.hasAction(n.state,t);if(!(65536&r))return!0;if(r==0)return!1;n.reduce(r)}}},{key:"recoverByInsert",value:function(t){if(this.stack.length>=300)return[];var n=this.p.parser.nextStates(this.state);if(n.length>8||this.stack.length>=120){for(var r,o=[],i=0;i<n.length;i+=2)(r=n[i+1])!=this.state&&this.p.parser.hasAction(r,t)&&o.push(n[i],r);if(this.stack.length<120)for(var a=function(){var d=n[s+1];o.some(function(h,p){return 1&p&&h==d})||o.push(n[s],d)},s=0;o.length<8&&s<n.length;s+=2)a();n=o}for(var c=[],u=0;u<n.length&&c.length<4;u+=2){var l=n[u+1];if(l!=this.state){var f=this.split();f.pushState(l,this.pos),f.storeNode(0,f.pos,f.pos,4,!0),f.shiftContext(n[u],this.pos),f.score-=200,c.push(f)}}return c}},{key:"forceReduce",value:function(){var t=this.p.parser.stateSlot(this.state,5);if(!(65536&t))return!1;var n=this.p.parser;if(!n.validAction(this.state,t)){var r=t>>19,o=65535&t,i=this.stack.length-3*r;if(i<0||n.getGoto(this.stack[i],o,!1)<0)return!1;this.storeNode(0,this.reducePos,this.reducePos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!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(this.stack.length!=3)return!1;var t=this.p.parser;return t.data[t.stateSlot(this.state,1)]==65535&&!t.stateSlot(this.state,4)}},{key:"restart",value:function(){this.state=this.stack[0],this.stack.length=0}},{key:"sameState",value:function(t){if(this.state!=t.state||this.stack.length!=t.stack.length)return!1;for(var n=0;n<this.stack.length;n+=3)if(this.stack[n]!=t.stack[n])return!1;return!0}},{key:"parser",get:function(){return this.p.parser}},{key:"dialectEnabled",value:function(t){return this.p.parser.dialect.flags[t]}},{key:"shiftContext",value:function(t,n){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,t,this,this.p.stream.reset(n)))}},{key:"reduceContext",value:function(t,n){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,t,this,this.p.stream.reset(n)))}},{key:"emitContext",value:function(){var t=this.buffer.length-1;(t<0||this.buffer[t]!=-3)&&this.buffer.push(this.curContext.hash,this.reducePos,this.reducePos,-3)}},{key:"emitLookAhead",value:function(){var t=this.buffer.length-1;(t<0||this.buffer[t]!=-4)&&this.buffer.push(this.lookAhead,this.reducePos,this.reducePos,-4)}},{key:"updateContext",value:function(t){if(t!=this.curContext.context){var n=new NT(this.curContext.tracker,t);n.hash!=this.curContext.hash&&this.emitContext(),this.curContext=n}}},{key:"setLookAhead",value:function(t){t>this.lookAhead&&(this.emitLookAhead(),this.lookAhead=t)}},{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&&arguments[2]!==void 0?arguments[2]:0,o=t.parser.context;return new e(t,[],n,r,r,0,[],0,o?new NT(o,o.start):null,0,null)}}]),e}(),NT=it(function e(t,n){ot(this,e),this.tracker=t,this.context=n,this.hash=t.strict?t.hash(n):0});(function(e){e[e.Insert=200]="Insert",e[e.Delete=190]="Delete",e[e.Reduce=100]="Reduce",e[e.MaxNext=4]="MaxNext",e[e.MaxInsertStackDepth=300]="MaxInsertStackDepth",e[e.DampenInsertStackDepth=120]="DampenInsertStackDepth"})(IT||(IT={}));var Cyt=function(){function e(t){ot(this,e),this.start=t,this.state=t.state,this.stack=t.stack,this.base=this.stack.length}return it(e,[{key:"reduce",value:function(t){var n=65535&t,r=t>>19;r==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=3*(r-1);var o=this.start.p.parser.getGoto(this.stack[this.base-3],n,!0);this.state=o}}]),e}(),Eyt=function(){function e(t,n,r){ot(this,e),this.stack=t,this.pos=n,this.index=r,this.buffer=t.buffer,this.index==0&&this.maybeNext()}return it(e,[{key:"maybeNext",value:function(){var t=this.stack.parent;t!=null&&(this.index=this.stack.bufferBase-t.bufferBase,this.stack=t,this.buffer=t.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,this.index==0&&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&&arguments[1]!==void 0?arguments[1]:t.bufferBase+t.buffer.length;return new e(t,n,n-t.bufferBase)}}]),e}(),Mm=it(function e(){ot(this,e),this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}),DT=new Mm,Oyt=function(){function e(t,n){ot(this,e),this.input=t,this.ranges=n,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=DT,this.rangeIndex=0,this.pos=this.chunkPos=n[0].from,this.range=n[0],this.end=n[n.length-1].to,this.readNext()}return it(e,[{key:"resolveOffset",value:function(t,n){for(var r=this.range,o=this.rangeIndex,i=this.pos+t;i<r.from;){if(!o)return null;var a=this.ranges[--o];i-=r.from-a.to,r=a}for(;n<0?i>r.to:i>=r.to;){if(o==this.ranges.length-1)return null;var s=this.ranges[++o];i+=s.from-r.to,r=s}return i}},{key:"clipPos",value:function(t){if(t>=this.range.from&&t<this.range.to)return t;var n,r=ht(this.ranges);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.to>t)return Math.max(t,o.from)}}catch(i){r.e(i)}finally{r.f()}return this.end}},{key:"peek",value:function(t){var n,r,o=this.chunkOff+t;if(o>=0&&o<this.chunk.length)n=this.pos+t,r=this.chunk.charCodeAt(o);else{var i=this.resolveOffset(t,1);if(i==null)return-1;if((n=i)>=this.chunk2Pos&&n<this.chunk2Pos+this.chunk2.length)r=this.chunk2.charCodeAt(n-this.chunk2Pos);else{for(var a=this.rangeIndex,s=this.range;s.to<=n;)s=this.ranges[++a];this.chunk2=this.input.chunk(this.chunk2Pos=n),n+this.chunk2.length>s.to&&(this.chunk2=this.chunk2.slice(0,s.to-n)),r=this.chunk2.charCodeAt(0)}}return n>=this.token.lookAhead&&(this.token.lookAhead=n+1),r}},{key:"acceptToken",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=n?this.resolveOffset(n,-1):this.pos;if(r==null||r<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=t,this.token.end=r}},{key:"getChunk",value:function(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){var t=this.chunk,n=this.chunkPos;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=t,this.chunk2Pos=n,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;var r=this.input.chunk(this.pos),o=this.pos+r.length;this.chunk=o>this.range.to?r.slice(0,this.range.to-this.pos):r,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 t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;for(this.chunkOff+=t;this.pos+t>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();t-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=t,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(t,n){if(n?(this.token=n,n.start=t,n.lookAhead=t+1,n.value=n.extended=-1):this.token=DT,this.pos!=t){if(this.pos=t,t==this.end)return this.setDone(),this;for(;t<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;t>=this.range.to;)this.range=this.ranges[++this.rangeIndex];t>=this.chunkPos&&t<this.chunkPos+this.chunk.length?this.chunkOff=t-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}},{key:"read",value:function(t,n){if(t>=this.chunkPos&&n<=this.chunkPos+this.chunk.length)return this.chunk.slice(t-this.chunkPos,n-this.chunkPos);if(t>=this.chunk2Pos&&n<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(t-this.chunk2Pos,n-this.chunk2Pos);if(t>=this.range.from&&n<=this.range.to)return this.input.read(t,n);var r,o="",i=ht(this.ranges);try{for(i.s();!(r=i.n()).done;){var a=r.value;if(a.from>=n)break;a.to>t&&(o+=this.input.read(Math.max(a.from,t),Math.min(a.to,n)))}}catch(s){i.e(s)}finally{i.f()}return o}}]),e}(),Am=function(){function e(t,n){ot(this,e),this.data=t,this.id=n}return it(e,[{key:"token",value:function(t,n){(function(r,o,i,a){var s=0,c=1<<a,u=i.p.parser,l=u.dialect;t:for(;c&r[s];){for(var f=r[s+1],d=s+3;d<f;d+=2)if((r[d+1]&c)>0){var h=r[d];if(l.allows(h)&&(o.token.value==-1||o.token.value==h||u.overrides(h,o.token.value))){o.acceptToken(h);break}}var p=o.next,v=0,m=r[s+2];if(!(o.next<0&&m>v&&r[f+3*m-3]==65535)){for(;v<m;){var g=v+m>>1,y=f+g+(g<<1),b=r[y],w=r[y+1];if(p<b)m=g;else{if(!(p>=w)){s=r[y+2],o.advance();continue t}v=g+1}}break}s=r[f+3*m-1]}})(this.data,t,n,this.id)}}]),e}();function Lv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Uint16Array;if(typeof e!="string")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(a==126){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}Am.prototype.contextual=Am.prototype.fallback=Am.prototype.extend=!1;var LT,ea=typeof process<"u"&&process.env&&/\bparse\b/.test({}.LOG),Gy=null;function zT(e,t,n){var r=e.cursor(ko.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}}(function(e){e[e.Margin=25]="Margin"})(LT||(LT={}));var BT,Myt=function(){function e(t,n){ot(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()}return it(e,[{key:"nextFragment",value:function(){var t=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(t){for(this.safeFrom=t.openStart?zT(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?zT(t.tree,t.to+t.offset,-1)-t.offset:t.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(t.tree),this.start.push(-t.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}},{key:"nodeAt",value:function(t){if(t<this.nextStart)return null;for(;this.fragment&&this.safeTo<=t;)this.nextFragment();if(!this.fragment)return null;for(;;){var n=this.trees.length-1;if(n<0)return this.nextFragment(),null;var r=this.trees[n],o=this.index[n];if(o!=r.children.length){var i=r.children[o],a=this.start[n]+r.positions[o];if(a>t)return this.nextStart=a,null;if(i instanceof _o){if(a==t){if(a<this.safeFrom)return null;var s=a+i.length;if(s<=this.safeTo){var c=i.prop(bn.lookAhead);if(!c||s+c<this.fragment.to)return i}}this.index[n]++,a+i.length>=Math.max(this.safeFrom,t)&&(this.trees.push(i),this.start.push(a),this.index.push(0))}else this.index[n]++,this.nextStart=a+i.length}else this.trees.pop(),this.start.pop(),this.index.pop()}}}]),e}(),Ayt=function(){function e(t,n){ot(this,e),this.stream=n,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(function(r){return new Mm})}return it(e,[{key:"getActions",value:function(t){for(var n=0,r=null,o=t.p.parser,i=o.tokenizers,a=o.stateSlot(t.state,3),s=t.curContext?t.curContext.hash:0,c=0,u=0;u<i.length;u++)if(1<<u&a){var l=i[u],f=this.tokens[u];if((!r||l.fallback)&&((l.contextual||f.start!=t.pos||f.mask!=a||f.context!=s)&&(this.updateCachedToken(f,l,t),f.mask=a,f.context=s),f.lookAhead>f.end+25&&(c=Math.max(f.lookAhead,c)),f.value!=0)){var d=n;if(f.extended>-1&&(n=this.addActions(t,f.extended,f.end,n)),n=this.addActions(t,f.value,f.end,n),!l.extend&&(r=f,n>d))break}}for(;this.actions.length>n;)this.actions.pop();return c&&t.setLookAhead(c),r||t.pos!=this.stream.end||((r=new Mm).value=t.p.parser.eofTerm,r.start=r.end=t.pos,n=this.addActions(t,r.value,r.end,n)),this.mainToken=r,this.actions}},{key:"getMainToken",value:function(t){if(this.mainToken)return this.mainToken;var n=new Mm,r=t.pos,o=t.p;return n.start=r,n.end=Math.min(r+1,o.stream.end),n.value=r==o.stream.end?o.parser.eofTerm:0,n}},{key:"updateCachedToken",value:function(t,n,r){var o=this.stream.clipPos(r.pos);if(n.token(this.stream.reset(o,t),r),t.value>-1){for(var i=r.p.parser,a=0;a<i.specialized.length;a++)if(i.specialized[a]==t.value){var s=i.specializers[a](this.stream.read(t.start,t.end),r);if(s>=0&&r.p.parser.dialect.allows(s>>1)){1&s?t.extended=s>>1:t.value=s>>1;break}}}else t.value=0,t.end=this.stream.clipPos(o+1)}},{key:"putAction",value:function(t,n,r,o){for(var i=0;i<o;i+=3)if(this.actions[i]==t)return o;return this.actions[o++]=t,this.actions[o++]=n,this.actions[o++]=r,o}},{key:"addActions",value:function(t,n,r,o){for(var i=t.state,a=t.p.parser,s=a.data,c=0;c<2;c++)for(var u=a.stateSlot(i,c?2:1);;u+=3){if(s[u]==65535){if(s[u+1]!=1){o==0&&s[u+1]==2&&(o=this.putAction(Ss(s,u+2),n,r,o));break}u=Ss(s,u+2)}s[u]==n&&(o=this.putAction(Ss(s,u+1),n,r,o))}return o}}]),e}();(function(e){e[e.Distance=5]="Distance",e[e.MaxRemainingPerStep=3]="MaxRemainingPerStep",e[e.MinBufferLengthPrune=500]="MinBufferLengthPrune",e[e.ForceReduceLimit=10]="ForceReduceLimit",e[e.CutDepth=15e3]="CutDepth",e[e.CutTo=9e3]="CutTo"})(BT||(BT={}));var Pyt=function(){function e(t,n,r,o){ot(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.stream=new Oyt(n,o),this.tokens=new Ayt(t,this.stream),this.topTerm=t.top[1];var i=o[0].from;this.stacks=[$yt.start(this,t.top[0],i)],this.fragments=r.length&&this.stream.end-i>4*t.bufferLength?new Myt(r,t.nodeSet):null}return it(e,[{key:"parsedPos",get:function(){return this.minStackPos}},{key:"advance",value:function(){for(var t,n,r=this.stacks,o=this.minStackPos,i=this.stacks=[],a=0;a<r.length;a++)for(var s=r[a];;){if(this.tokens.mainToken=null,s.pos>o)i.push(s);else{if(this.advanceStack(s,i,r))continue;t||(t=[],n=[]),t.push(s);var c=this.tokens.getMainToken(s);n.push(c.value,c.end)}break}if(!i.length){var u=t&&function(g){var y,b=null,w=ht(g);try{for(w.s();!(y=w.n()).done;){var x=y.value,k=x.p.stoppedAt;(x.pos==x.p.stream.end||k!=null&&x.pos>k)&&x.p.parser.stateFlag(x.state,2)&&(!b||b.score<x.score)&&(b=x)}}catch(E){w.e(E)}finally{w.f()}return b}(t);if(u)return this.stackToTree(u);if(this.parser.strict)throw ea&&t&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+o);this.recovering||(this.recovering=5)}if(this.recovering&&t){var l=this.stoppedAt!=null&&t[0].pos>this.stoppedAt?t[0]:this.runRecovery(t,n,i);if(l)return this.stackToTree(l.forceAll())}if(this.recovering){var f=this.recovering==1?1:3*this.recovering;if(i.length>f)for(i.sort(function(g,y){return y.score-g.score});i.length>f;)i.pop();i.some(function(g){return g.reducePos>o})&&this.recovering--}else if(i.length>1)t:for(var d=0;d<i.length-1;d++)for(var h=i[d],p=d+1;p<i.length;p++){var v=i[p];if(h.sameState(v)||h.buffer.length>500&&v.buffer.length>500){if(!((h.score-v.score||h.buffer.length-v.buffer.length)>0)){i.splice(d--,1);continue t}i.splice(p--,1)}}this.minStackPos=i[0].pos;for(var m=1;m<i.length;m++)i[m].pos<this.minStackPos&&(this.minStackPos=i[m].pos);return null}},{key:"stopAt",value:function(t){if(this.stoppedAt!=null&&this.stoppedAt<t)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=t}},{key:"advanceStack",value:function(t,n,r){var o=t.pos,i=this.parser,a=ea?this.stackID(t)+" -> ":"";if(this.stoppedAt!=null&&o>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments)for(var s=t.curContext&&t.curContext.tracker.strict,c=s?t.curContext.hash:0,u=this.fragments.nodeAt(o);u;){var l=this.parser.nodeSet.types[u.type.id]==u.type?i.getGoto(t.state,u.type.id):-1;if(l>-1&&u.length&&(!s||(u.prop(bn.contextHash)||0)==c))return t.useNode(u,l),ea&&console.log(a+this.stackID(t)+" (via reuse of ".concat(i.getName(u.type.id),")")),!0;if(!(u instanceof _o)||u.children.length==0||u.positions[0]>0)break;var f=u.children[0];if(!(f instanceof _o&&u.positions[0]==0))break;u=f}var d=i.stateSlot(t.state,4);if(d>0)return t.reduce(d),ea&&console.log(a+this.stackID(t)+" (via always-reduce ".concat(i.getName(65535&d),")")),!0;if(t.stack.length>=15e3)for(;t.stack.length>9e3&&t.forceReduce(););for(var h=this.tokens.getActions(t),p=0;p<h.length;){var v=h[p++],m=h[p++],g=h[p++],y=p==h.length||!r,b=y?t:t.split();if(b.apply(v,m,g),ea&&console.log(a+this.stackID(b)+" (via ".concat(65536&v?"reduce of ".concat(i.getName(65535&v)):"shift"," for ").concat(i.getName(m)," @ ").concat(o).concat(b==t?"":", split",")")),y)return!0;b.pos>o?n.push(b):r.push(b)}return!1}},{key:"advanceFully",value:function(t,n){for(var r=t.pos;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>r)return FT(t,n),!0}}},{key:"runRecovery",value:function(t,n,r){for(var o=null,i=!1,a=0;a<t.length;a++){var s=t[a],c=n[a<<1],u=n[1+(a<<1)],l=ea?this.stackID(s)+" -> ":"";if(!(s.deadEnd&&(i||(i=!0,s.restart(),ea&&console.log(l+this.stackID(s)+" (restarted)"),this.advanceFully(s,r))))){for(var f=s.split(),d=l,h=0;f.forceReduce()&&h<10&&(ea&&console.log(d+this.stackID(f)+" (via force-reduce)"),!this.advanceFully(f,r));h++)ea&&(d=this.stackID(f)+" -> ");var p,v=ht(s.recoverByInsert(c));try{for(v.s();!(p=v.n()).done;){var m=p.value;ea&&console.log(l+this.stackID(m)+" (via recover-insert)"),this.advanceFully(m,r)}}catch(g){v.e(g)}finally{v.f()}this.stream.end>s.pos?(u==s.pos&&(u++,c=0),s.recoverByDelete(c,u),ea&&console.log(l+this.stackID(s)+" (via recover-delete ".concat(this.parser.getName(c),")")),FT(s,r)):(!o||o.score<s.score)&&(o=s)}}return o}},{key:"stackToTree",value:function(t){return t.close(),_o.build({buffer:Eyt.create(t),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:t.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}},{key:"stackID",value:function(t){var n=(Gy||(Gy=new WeakMap)).get(t);return n||Gy.set(t,n=String.fromCodePoint(this.nextStackID++)),n+t}}]),e}();function FT(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 Tyt=function(){function e(t,n,r){ot(this,e),this.source=t,this.flags=n,this.disabled=r}return it(e,[{key:"allows",value:function(t){return!this.disabled||this.disabled[t]==0}}]),e}(),Ryt=function(e){Tt(n,oq);var t=Rt(n);function n(r){var o,i;if(ot(this,n),(i=t.call(this)).wrappers=[],r.version!=14)throw new RangeError("Parser version (".concat(r.version,") doesn't match runtime version (",14,")"));var a=r.nodeNames.split(" ");i.minRepeatTerm=a.length;for(var s=0;s<r.repeatNodeCount;s++)a.push("");for(var c=Object.keys(r.topRules).map(function(k){return r.topRules[k][1]}),u=[],l=0;l<a.length;l++)u.push([]);function f(k,E,_){u[k].push([E,E.deserialize(String(_))])}if(r.nodeProps){var d,h=ht(r.nodeProps);try{for(h.s();!(d=h.n()).done;){var p=d.value,v=p[0];typeof v=="string"&&(v=bn[v]);for(var m=1;m<p.length;){var g=p[m++];if(g>=0)f(g,v,p[m++]);else{for(var y=p[m+-g],b=-g;b>0;b--)f(p[m++],v,y);m++}}}}catch(k){h.e(k)}finally{h.f()}}i.nodeSet=new X0t(a.map(function(k,E){return Qi.define({name:E>=i.minRepeatTerm?void 0:k,id:E,props:u[E],top:c.indexOf(E)>-1,error:E==0,skipped:r.skippedNodes&&r.skippedNodes.indexOf(E)>-1})})),r.propSources&&(i.nodeSet=(o=i.nodeSet).extend.apply(o,$e(r.propSources))),i.strict=!1,i.bufferLength=1024;var w=Lv(r.tokenData);i.context=r.context,i.specializerSpecs=r.specialized||[],i.specialized=new Uint16Array(i.specializerSpecs.length);for(var x=0;x<i.specializerSpecs.length;x++)i.specialized[x]=i.specializerSpecs[x].term;return i.specializers=i.specializerSpecs.map(HT),i.states=Lv(r.states,Uint32Array),i.data=Lv(r.stateData),i.goto=Lv(r.goto),i.maxTerm=r.maxTerm,i.tokenizers=r.tokenizers.map(function(k){return typeof k=="number"?new Am(w,k):k}),i.topRules=r.topRules,i.dialects=r.dialects||{},i.dynamicPrecedences=r.dynamicPrecedences||null,i.tokenPrecTable=r.tokenPrec,i.termNames=r.termNames||null,i.maxNode=i.nodeSet.types.length-1,i.dialect=i.parseDialect(),i.top=i.topRules[Object.keys(i.topRules)[0]],i}return it(n,[{key:"createParse",value:function(r,o,i){var a,s=new Pyt(this,r,o,i),c=ht(this.wrappers);try{for(c.s();!(a=c.n()).done;)s=(0,a.value)(s,r,o,i)}catch(u){c.e(u)}finally{c.f()}return s}},{key:"getGoto",value:function(r,o){var i=arguments.length>2&&arguments[2]!==void 0&&arguments[2],a=this.goto;if(o>=a[0])return-1;for(var s=a[o+1];;){var c=a[s++],u=1&c,l=a[s++];if(u&&i)return l;for(var f=s+(c>>1);s<f;s++)if(a[s]==r)return l;if(u)return-1}}},{key:"hasAction",value:function(r,o){for(var i=this.data,a=0;a<2;a++)for(var s,c=this.stateSlot(r,a?2:1);;c+=3){if((s=i[c])==65535){if(i[c+1]!=1){if(i[c+1]==2)return Ss(i,c+2);break}s=i[c=Ss(i,c+2)]}if(s==o||s==0)return Ss(i,c+1)}return 0}},{key:"stateSlot",value:function(r,o){return this.states[6*r+o]}},{key:"stateFlag",value:function(r,o){return(this.stateSlot(r,0)&o)>0}},{key:"validAction",value:function(r,o){if(o==this.stateSlot(r,4))return!0;for(var i=this.stateSlot(r,1);;i+=3){if(this.data[i]==65535){if(this.data[i+1]!=1)return!1;i=Ss(this.data,i+2)}if(o==Ss(this.data,i+1))return!0}}},{key:"nextStates",value:function(r){for(var o=this,i=[],a=function(c){if(o.data[c]==65535){if(o.data[c+1]!=1)return s=c,1;c=Ss(o.data,c+2)}if(!(1&o.data[c+2])){var u=o.data[c+1];i.some(function(l,f){return 1&f&&l==u})||i.push(o.data[c],u)}s=c},s=this.stateSlot(r,1);!a(s);s+=3);return i}},{key:"overrides",value:function(r,o){var i=qT(this.data,this.tokenPrecTable,o);return i<0||qT(this.data,this.tokenPrecTable,r)<i}},{key:"configure",value:function(r){var o,i=Object.assign(Object.create(n.prototype),this);if(r.props&&(i.nodeSet=(o=this.nodeSet).extend.apply(o,$e(r.props))),r.top){var a=this.topRules[r.top];if(!a)throw new RangeError("Invalid top rule name ".concat(r.top));i.top=a}return r.tokenizers&&(i.tokenizers=this.tokenizers.map(function(s){var c=r.tokenizers.find(function(u){return u.from==s});return c?c.to:s})),r.specializers&&(i.specializers=this.specializers.slice(),i.specializerSpecs=this.specializerSpecs.map(function(s,c){var u=r.specializers.find(function(f){return f.from==s.external});if(!u)return s;var l=Object.assign(Object.assign({},s),{external:u.to});return i.specializers[c]=HT(l),l})),r.contextTracker&&(i.context=r.contextTracker),r.dialect&&(i.dialect=this.parseDialect(r.dialect)),r.strict!=null&&(i.strict=r.strict),r.wrap&&(i.wrappers=i.wrappers.concat(r.wrap)),r.bufferLength!=null&&(i.bufferLength=r.bufferLength),i}},{key:"hasWrappers",value:function(){return this.wrappers.length>0}},{key:"getName",value:function(r){return this.termNames?this.termNames[r]:String(r<=this.maxNode&&this.nodeSet.types[r].name||r)}},{key:"eofTerm",get:function(){return this.maxNode+1}},{key:"topNode",get:function(){return this.nodeSet.types[this.top[1]]}},{key:"dynamicPrecedence",value:function(r){var o=this.dynamicPrecedences;return o==null?0:o[r]||0}},{key:"parseDialect",value:function(r){var o=Object.keys(this.dialects),i=o.map(function(){return!1});if(r){var a,s=ht(r.split(" "));try{for(s.s();!(a=s.n()).done;){var c=a.value,u=o.indexOf(c);u>=0&&(i[u]=!0)}}catch(p){s.e(p)}finally{s.f()}}for(var l=null,f=0;f<o.length;f++)if(!i[f])for(var d,h=this.dialects[o[f]];(d=this.data[h++])!=65535;)(l||(l=new Uint8Array(this.maxTerm+1)))[d]=1;return new Tyt(r,i,l)}}],[{key:"deserialize",value:function(r){return new n(r)}}]),n}();function Ss(e,t){return e[t]|e[t+1]<<16}function qT(e,t,n){for(var r,o=t;(r=e[o])!=65535;o++)if(r==n)return o-t;return-1}function HT(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 Iyt=aq({String:re.string,Number:re.number,"True False":re.bool,PropertyName:re.propertyName,Null:re.null,",":re.separator,"[ ]":re.squareBracket,"{ }":re.brace}),Nyt=Ryt.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:[Iyt],skippedNodes:[0],repeatNodeCount:2,tokenData:"(p~RaXY!WYZ!W]^!Wpq!Wrs!]|}$i}!O$n!Q!R$w!R![&V![!]&h!}#O&m#P#Q&r#Y#Z&w#b#c'f#h#i'}#o#p(f#q#r(k~!]Oc~~!`Upq!]qr!]rs!rs#O!]#O#P!w#P~!]~!wOe~~!zXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#g~#jR!Q![#s!c!i#s#T#Z#s~#vR!Q![$P!c!i$P#T#Z$P~$SR!Q![$]!c!i$]#T#Z$]~$`R!Q![!]!c!i!]#T#Z!]~$nOh~~$qQ!Q!R$w!R![&V~$|RT~!O!P%V!g!h%k#X#Y%k~%YP!Q![%]~%bRT~!Q![%]!g!h%k#X#Y%k~%nR{|%w}!O%w!Q![%}~%zP!Q![%}~&SPT~!Q![%}~&[ST~!O!P%V!Q![&V!g!h%k#X#Y%k~&mOg~~&rO]~~&wO[~~&zP#T#U&}~'QP#`#a'T~'WP#g#h'Z~'^P#X#Y'a~'fOR~~'iP#i#j'l~'oP#`#a'r~'uP#`#a'x~'}OS~~(QP#f#g(T~(WP#i#j(Z~(^P#X#Y(a~(fOQ~~(kOW~~(pOV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0}),Dyt=l1t.define({name:"json",parser:Nyt.configure({props:[lq.add({Object:dT({except:/^\s*\}/}),Array:dT({except:/^\s*\]/})}),dq.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*[\}\]]$/}}),VT=typeof String.prototype.normalize=="function"?function(e){return e.normalize("NFKD")}:function(e){return e},ff=function(){function e(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:t.length,i=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0;ot(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(s){return i(VT(s))}:VT,this.query=this.normalize(n)}return it(e,[{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 xo(this.buffer,this.bufferPos)}},{key:"next",value:function(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}},{key:"nextOverlapping",value:function(){for(;;){var t=this.peek();if(t<0)return this.done=!0,this;var n=Cj(t),r=this.bufferStart+this.bufferPos;this.bufferPos+=Pi(t);for(var o=this.normalize(n),i=0,a=r;;i++){var s=o.charCodeAt(i),c=this.match(s,a);if(i==o.length-1){if(c)return this.value=c,this;break}a==r&&i<n.length&&n.charCodeAt(i)==s&&a++}}}},{key:"match",value:function(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)==t&&(i==this.query.length-1?r={from:this.matches[o+1],to:n+1}:(this.matches[o]++,a=!0)),a||(this.matches.splice(o,2),o-=2)}return this.query.charCodeAt(0)==t&&(this.query.length==1?r={from:n,to:n+1}:this.matches.push(1,n)),r&&this.test&&!this.test(r.from,r.to,this.buffer,this.bufferPos)&&(r=null),r}}]),e}();typeof Symbol<"u"&&(ff.prototype[Symbol.iterator]=function(){return this});var aH={from:-1,to:-1,match:/.*/.exec("")},Jj="gm"+(/x/.unicode==null?"":"u"),sH=function(){function e(t,n,r){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:t.length;if(ot(this,e),this.text=t,this.to=i,this.curLine="",this.done=!1,this.value=aH,/\\[sWDnr]|\n|\r|\[\^/.test(n))return new cH(t,n,r,o,i);this.re=new RegExp(n,Jj+(r!=null&&r.ignoreCase?"i":"")),this.test=r==null?void 0:r.test,this.iter=t.iter();var a=t.lineAt(o);this.curLineStart=a.from,this.matchPos=Hg(t,o),this.getLine(this.curLineStart)}return it(e,[{key:"getLine",value:function(t){this.iter.next(t),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 t=this.matchPos-this.curLineStart;;){this.re.lastIndex=t;var n=this.matchPos<=this.to&&this.re.exec(this.curLine);if(n){var r=this.curLineStart+n.index,o=r+n[0].length;if(this.matchPos=Hg(this.text,o+(r==o?1:0)),r==this.curLineStart+this.curLine.length&&this.nextLine(),(r<o||r>this.value.to)&&(!this.test||this.test(r,o,n)))return this.value={from:r,to:o,match:n},this;t=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length<this.to))return this.done=!0,this;this.nextLine(),t=0}}}}]),e}(),Qy=new WeakMap,WT=function(){function e(t,n){ot(this,e),this.from=t,this.text=n}return it(e,[{key:"to",get:function(){return this.from+this.text.length}}],[{key:"get",value:function(t,n,r){var o=Qy.get(t);if(!o||o.from>=r||o.to<=n){var i=new e(n,t.sliceString(n,r));return Qy.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)),Qy.set(t,new e(s,a)),new e(n,a.slice(n-s,r-s))}}]),e}(),cH=function(){function e(t,n,r,o,i){ot(this,e),this.text=t,this.to=i,this.done=!1,this.value=aH,this.matchPos=Hg(t,o),this.re=new RegExp(n,Jj+(r!=null&&r.ignoreCase?"i":"")),this.test=r==null?void 0:r.test,this.flat=WT.get(t,o,this.chunkEnd(o+5e3))}return it(e,[{key:"chunkEnd",value:function(t){return t>=this.to?this.to:this.text.lineAt(t).to}},{key:"next",value:function(){for(;;){var t=this.re.lastIndex=this.matchPos-this.flat.from,n=this.re.exec(this.flat.text);if(n&&!n[0]&&n.index==t&&(this.re.lastIndex=t+1,n=this.re.exec(this.flat.text)),n){var r=this.flat.from+n.index,o=r+n[0].length;if((this.flat.to>=this.to||n.index+n[0].length<=this.flat.text.length-10)&&(!this.test||this.test(r,o,n)))return this.value={from:r,to:o,match:n},this.matchPos=Hg(this.text,o+(r==o?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=WT.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}]),e}();function Hg(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 Dx(e){var t=lr("input",{class:"cm-textfield",name:"line"});function n(){var r=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(t.value);if(r){var o=e.state,i=o.doc.lineAt(o.selection.main.head),a=Ce(r,5),s=a[1],c=a[2],u=a[3],l=a[4],f=u?+u.slice(1):0,d=c?+c:i.number;if(c&&l){var h=d/100;s&&(h=h*(s=="-"?-1:1)+i.number/o.doc.lines),d=Math.round(o.doc.lines*h)}else c&&s&&(d=d*(s=="-"?-1:1)+i.number);var p=o.doc.line(Math.max(1,Math.min(o.doc.lines,d))),v=Jt.cursor(p.from+Math.max(0,Math.min(f,p.length)));e.dispatch({effects:[Vg.of(!1),ye.scrollIntoView(v.from,{y:"center"})],selection:v}),e.focus()}}return{dom:lr("form",{class:"cm-gotoLine",onkeydown:function(r){r.keyCode==27?(r.preventDefault(),e.dispatch({effects:Vg.of(!1)}),e.focus()):r.keyCode==13&&(r.preventDefault(),n())},onsubmit:function(r){r.preventDefault(),n()}},lr("label",e.state.phrase("Go to line"),": ",t)," ",lr("button",{class:"cm-button",type:"submit"},e.state.phrase("go")))}}typeof Symbol<"u"&&(sH.prototype[Symbol.iterator]=cH.prototype[Symbol.iterator]=function(){return this});var Vg=wn.define(),UT=$o.define({create:function(){return!0},update:function(e,t){var n,r=ht(t.effects);try{for(r.s();!(n=r.n()).done;){var o=n.value;o.is(Vg)&&(e=o.value)}}catch(i){r.e(i)}finally{r.f()}return e},provide:function(e){return Qh.from(e,function(t){return t?Dx:null})}}),Lyt=ye.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),zyt={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},Byt=xe.define({combine:function(e){return Xi(e,zyt,{highlightWordAroundCursor:function(t,n){return t||n},minSelectionLength:Math.min,maxMatches:Math.min})}}),Fyt=Ue.mark({class:"cm-selectionMatch"}),qyt=Ue.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function KT(e,t,n,r){return!(n!=0&&e(t.sliceDoc(n-1,n))==Sr.Word||r!=t.doc.length&&e(t.sliceDoc(r,r+1))==Sr.Word)}var Hyt=io.fromClass(function(){function e(t){ot(this,e),this.decorations=this.getDeco(t)}return it(e,[{key:"update",value:function(t){(t.selectionSet||t.docChanged||t.viewportChanged)&&(this.decorations=this.getDeco(t.view))}},{key:"getDeco",value:function(t){var n=t.state.facet(Byt),r=t.state,o=r.selection;if(o.ranges.length>1)return Ue.none;var i,a=o.main,s=null;if(a.empty){if(!n.highlightWordAroundCursor)return Ue.none;var c=r.wordAt(a.head);if(!c)return Ue.none;s=r.charCategorizer(a.head),i=r.sliceDoc(c.from,c.to)}else{var u=a.to-a.from;if(u<n.minSelectionLength||u>200)return Ue.none;if(n.wholeWords){if(i=r.sliceDoc(a.from,a.to),!KT(s=r.charCategorizer(a.head),r,a.from,a.to)||!function(y,b,w,x){return y(b.sliceDoc(w,w+1))==Sr.Word&&y(b.sliceDoc(x-1,x))==Sr.Word}(s,r,a.from,a.to))return Ue.none}else if(!(i=r.sliceDoc(a.from,a.to).trim()))return Ue.none}var l,f=[],d=ht(t.visibleRanges);try{for(d.s();!(l=d.n()).done;)for(var h=l.value,p=new ff(r.doc,i,h.from,h.to);!p.next().done;){var v=p.value,m=v.from,g=v.to;if((!s||KT(s,r,m,g))&&(a.empty&&m<=a.from&&g>=a.to?f.push(qyt.range(m,g)):(m>=a.to||g<=a.from)&&f.push(Fyt.range(m,g)),f.length>n.maxMatches))return Ue.none}}catch(y){d.e(y)}finally{d.f()}return Ue.set(f)}}]),e}(),{decorations:function(e){return e.decorations}}),Vyt=ye.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),hl=xe.define({combine:function(e){return Xi(e,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:function(t){return new tbt(t)},scrollToMatch:function(t){return ye.scrollIntoView(t)}})}});function Wyt(e){return e?[hl.of(e),zx]:zx}var uH=function(){function e(t){ot(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(n){try{return new RegExp(n,Jj),!0}catch{return!1}}(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!t.wholeWord}return it(e,[{key:"unquote",value:function(t){return this.literal?t:t.replace(/\\([nrt\\])/g,function(n,r){return r=="n"?`
|
|
115
|
+
`:r=="r"?"\r":r=="t"?" ":"\\"})}},{key:"eq",value:function(t){return this.search==t.search&&this.replace==t.replace&&this.caseSensitive==t.caseSensitive&&this.regexp==t.regexp&&this.wholeWord==t.wholeWord}},{key:"create",value:function(){return this.regexp?new Kyt(this):new Uyt(this)}},{key:"getCursor",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0,o=t.doc?t:fr.create({doc:t});return r==null&&(r=o.doc.length),this.regexp?Ml(this,o,n,r):Ol(this,o,n,r)}}]),e}(),lH=it(function e(t){ot(this,e),this.spec=t});function Ol(e,t,n,r){return new ff(t.doc,e.unquoted,n,r,e.caseSensitive?void 0:function(o){return o.toLowerCase()},e.wholeWord?function(o,i){return function(a,s,c,u){return(u>a||u+c.length<s)&&(u=Math.max(0,a-2),c=o.sliceString(u,Math.min(o.length,s+2))),!(i(Wg(c,a-u))==Sr.Word&&i(Ug(c,a-u))==Sr.Word||i(Ug(c,s-u))==Sr.Word&&i(Wg(c,s-u))==Sr.Word)}}(t.doc,t.charCategorizer(t.selection.main.head)):void 0)}var Uyt=function(e){Tt(n,lH);var t=Rt(n);function n(r){return ot(this,n),t.call(this,r)}return it(n,[{key:"nextMatch",value:function(r,o,i){var a=Ol(this.spec,r,i,r.doc.length).nextOverlapping();return a.done&&(a=Ol(this.spec,r,0,o).nextOverlapping()),a.done?null:a.value}},{key:"prevMatchInRange",value:function(r,o,i){for(var a=i;;){for(var s=Math.max(o,a-1e4-this.spec.unquoted.length),c=Ol(this.spec,r,s,a),u=null;!c.nextOverlapping().done;)u=c.value;if(u)return u;if(s==o)return null;a-=1e4}}},{key:"prevMatch",value:function(r,o,i){return this.prevMatchInRange(r,0,o)||this.prevMatchInRange(r,i,r.doc.length)}},{key:"getReplacement",value:function(r){return this.spec.unquote(this.spec.replace)}},{key:"matchAll",value:function(r,o){for(var i=Ol(this.spec,r,0,r.doc.length),a=[];!i.next().done;){if(a.length>=o)return null;a.push(i.value)}return a}},{key:"highlight",value:function(r,o,i,a){for(var s=Ol(this.spec,r,Math.max(0,o-this.spec.unquoted.length),Math.min(i+this.spec.unquoted.length,r.doc.length));!s.next().done;)a(s.value.from,s.value.to)}}]),n}();function Ml(e,t,n,r){return new sH(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:e.wholeWord?(o=t.charCategorizer(t.selection.main.head),function(i,a,s){return!s[0].length||(o(Wg(s.input,s.index))!=Sr.Word||o(Ug(s.input,s.index))!=Sr.Word)&&(o(Ug(s.input,s.index+s[0].length))!=Sr.Word||o(Wg(s.input,s.index+s[0].length))!=Sr.Word)}):void 0},n,r);var o}function Wg(e,t){return e.slice(Ro(e,t,!1),t)}function Ug(e,t){return e.slice(t,Ro(e,t))}var Kyt=function(e){Tt(n,lH);var t=Rt(n);function n(){return ot(this,n),t.apply(this,arguments)}return it(n,[{key:"nextMatch",value:function(r,o,i){var a=Ml(this.spec,r,i,r.doc.length).next();return a.done&&(a=Ml(this.spec,r,0,o).next()),a.done?null:a.value}},{key:"prevMatchInRange",value:function(r,o,i){for(var a=1;;a++){for(var s=Math.max(o,i-1e4*a),c=Ml(this.spec,r,s,i),u=null;!c.next().done;)u=c.value;if(u&&(s==o||u.from>s+10))return u;if(s==o)return null}}},{key:"prevMatch",value:function(r,o,i){return this.prevMatchInRange(r,0,o)||this.prevMatchInRange(r,i,r.doc.length)}},{key:"getReplacement",value:function(r){return this.spec.unquote(this.spec.replace.replace(/\$([$&\d+])/g,function(o,i){return i=="$"?"$":i=="&"?r.match[0]:i!="0"&&+i<r.match.length?r.match[i]:o}))}},{key:"matchAll",value:function(r,o){for(var i=Ml(this.spec,r,0,r.doc.length),a=[];!i.next().done;){if(a.length>=o)return null;a.push(i.value)}return a}},{key:"highlight",value:function(r,o,i,a){for(var s=Ml(this.spec,r,Math.max(0,o-250),Math.min(i+250,r.doc.length));!s.next().done;)a(s.value.from,s.value.to)}}]),n}(),tp=wn.define(),Gj=wn.define(),Pc=$o.define({create:function(e){return new Yy(Lx(e).create(),null)},update:function(e,t){var n,r=ht(t.effects);try{for(r.s();!(n=r.n()).done;){var o=n.value;o.is(tp)?e=new Yy(o.value.create(),e.panel):o.is(Gj)&&(e=new Yy(e.query,o.value?Qj:null))}}catch(i){r.e(i)}finally{r.f()}return e},provide:function(e){return Qh.from(e,function(t){return t.panel})}}),Yy=it(function e(t,n){ot(this,e),this.query=t,this.panel=n}),Jyt=Ue.mark({class:"cm-searchMatch"}),Gyt=Ue.mark({class:"cm-searchMatch cm-searchMatch-selected"}),Qyt=io.fromClass(function(){function e(t){ot(this,e),this.view=t,this.decorations=this.highlight(t.state.field(Pc))}return it(e,[{key:"update",value:function(t){var n=t.state.field(Pc);(n!=t.startState.field(Pc)||t.docChanged||t.selectionSet||t.viewportChanged)&&(this.decorations=this.highlight(n))}},{key:"highlight",value:function(t){var n=t.query;if(!t.panel||!n.spec.valid)return Ue.none;for(var r=this.view,o=new Wc,i=0,a=r.visibleRanges,s=a.length;i<s;i++){for(var c=a[i],u=c.from,l=c.to;i<s-1&&l>a[i+1].from-500;)l=a[++i].to;n.highlight(r.state,u,l,function(f,d){var h=r.state.selection.ranges.some(function(p){return p.from==f&&p.to==d});o.add(f,d,h?Gyt:Jyt)})}return o.finish()}}]),e}(),{decorations:function(e){return e.decorations}});function Rp(e){return function(t){var n=t.state.field(Pc,!1);return n&&n.query.spec.valid?e(t,n):Yj(t)}}var Kg=Rp(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=Jt.single(o.from,o.to),a=e.state.facet(hl);return e.dispatch({selection:i,effects:[Zj(e,o),a.scrollToMatch(i.main,e)],userEvent:"select.search"}),dH(e),!0}),Jg=Rp(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=Jt.single(i.from,i.to),s=e.state.facet(hl);return e.dispatch({selection:a,effects:[Zj(e,i),s.scrollToMatch(a.main,e)],userEvent:"select.search"}),dH(e),!0}),Yyt=Rp(function(e,t){var n=t.query.matchAll(e.state,1e3);return!(!n||!n.length)&&(e.dispatch({selection:Jt.create(n.map(function(r){return Jt.range(r.from,r.to)})),userEvent:"select.search.matches"}),!0)}),JT=Rp(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(ye.announce.of(r.phrase("replaced match on line $",r.doc.lineAt(i).number)+"."))),s){var d=l.length==0||l[0].from>=s.to?0:s.to-s.from-u.length;c=Jt.single(s.from-d,s.to-d),f.push(Zj(e,s)),f.push(r.facet(hl).scrollToMatch(c.main,e))}return e.dispatch({changes:l,selection:c,effects:f,userEvent:"input.replace"}),!0}),Xyt=Rp(function(e,t){var n=t.query;if(e.state.readOnly)return!1;var r=n.matchAll(e.state,1e9).map(function(i){return{from:i.from,to:i.to,insert:n.getReplacement(i)}});if(!r.length)return!1;var o=e.state.phrase("replaced $ matches",r.length)+".";return e.dispatch({changes:r,effects:ye.announce.of(o),userEvent:"input.replace.all"}),!0});function Qj(e){return e.state.facet(hl).createPanel(e)}function Lx(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(hl);return new uH({search:((n=t==null?void 0:t.literal)!==null&&n!==void 0?n:u.literal)?c:c.replace(/\n/g,"\\n"),caseSensitive:(r=t==null?void 0:t.caseSensitive)!==null&&r!==void 0?r:u.caseSensitive,literal:(o=t==null?void 0:t.literal)!==null&&o!==void 0?o:u.literal,regexp:(i=t==null?void 0:t.regexp)!==null&&i!==void 0?i:u.regexp,wholeWord:(a=t==null?void 0:t.wholeWord)!==null&&a!==void 0?a:u.wholeWord})}function fH(e){var t=Gh(e,Qj);return t&&t.dom.querySelector("[main-field]")}function dH(e){var t=fH(e);t&&t==e.root.activeElement&&t.select()}var Yj=function(e){var t=e.state.field(Pc,!1);if(t&&t.panel){var n=fH(e);if(n&&n!=e.root.activeElement){var r=Lx(e.state,t.query.spec);r.valid&&e.dispatch({effects:tp.of(r)}),n.focus(),n.select()}}else e.dispatch({effects:[Gj.of(!0),t?tp.of(Lx(e.state,t.query.spec)):wn.appendConfig.of(zx)]});return!0},Xj=function(e){var t=e.state.field(Pc,!1);if(!t||!t.panel)return!1;var n=Gh(e,Qj);return n&&n.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:Gj.of(!1)}),!0},Zyt=[{key:"Mod-f",run:Yj,scope:"editor search-panel"},{key:"F3",run:Kg,shift:Jg,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:Kg,shift:Jg,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:Xj,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 ff(t.doc,t.sliceDoc(i,a));!u.next().done;){if(s.length>1e3)return!1;u.value.from==i&&(c=s.length),s.push(Jt.range(u.value.from,u.value.to))}return n(t.update({selection:Jt.create(s,c),userEvent:"select.search.matches"})),!0}},{key:"Alt-g",run:function(e){var t=Gh(e,Dx);if(!t){var n=[Vg.of(!0)];e.state.field(UT,!1)==null&&n.push(wn.appendConfig.of([UT,Lyt])),e.dispatch({effects:n}),t=Gh(e,Dx)}return t&&t.dom.querySelector("input").focus(),!0}},{key:"Mod-d",run:function(e){var t=e.state,n=e.dispatch,r=t.selection.ranges;if(r.some(function(a){return a.from===a.to}))return function(a){var s=a.state,c=a.dispatch,u=s.selection,l=Jt.create(u.ranges.map(function(f){return s.wordAt(f.head)||Jt.cursor(f.head)}),u.mainIndex);return!l.eq(u)&&(c(s.update({selection:l})),!0)}({state:t,dispatch:n});var o=t.sliceDoc(r[0].from,r[0].to);if(t.selection.ranges.some(function(a){return t.sliceDoc(a.from,a.to)!=o}))return!1;var i=function(a,s){for(var c,u=a.selection,l=u.main,f=u.ranges,d=a.wordAt(l.head),h=d&&d.from==l.from&&d.to==l.to,p=function(g,y){if(y.next(),!y.done){if(g&&f.some(function(w){return w.from==y.value.from}))return v=g,m=y,0;if(h){var b=a.wordAt(y.value.from);if(!b||b.from!=y.value.from||b.to!=y.value.to)return v=g,m=y,0}return{v:y.value}}if(g)return{v:null};y=new ff(a.doc,s,0,Math.max(0,f[f.length-1].from-1)),v=g=!0,m=y},v=!1,m=new ff(a.doc,s,f[f.length-1].to);;)if((c=p(v,m))!==0&&c)return c.v}(t,o);return!!i&&(n(t.update({selection:t.selection.addRange(Jt.range(i.from,i.to),!1),effects:ye.scrollIntoView(i.to)})),!0)},preventDefault:!0}],tbt=function(){function e(t){var n=this;ot(this,e),this.view=t;var r=this.query=t.state.field(Pc).query.spec;function o(i,a,s){return lr("button",{class:"cm-button",name:i,onclick:a,type:"button"},s)}this.commit=this.commit.bind(this),this.searchField=lr("input",{value:r.search,placeholder:ui(t,"Find"),"aria-label":ui(t,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=lr("input",{value:r.replace,placeholder:ui(t,"Replace"),"aria-label":ui(t,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=lr("input",{type:"checkbox",name:"case",form:"",checked:r.caseSensitive,onchange:this.commit}),this.reField=lr("input",{type:"checkbox",name:"re",form:"",checked:r.regexp,onchange:this.commit}),this.wordField=lr("input",{type:"checkbox",name:"word",form:"",checked:r.wholeWord,onchange:this.commit}),this.dom=lr("div",{onkeydown:function(i){return n.keydown(i)},class:"cm-search"},[this.searchField,o("next",function(){return Kg(t)},[ui(t,"next")]),o("prev",function(){return Jg(t)},[ui(t,"previous")]),o("select",function(){return Yyt(t)},[ui(t,"all")]),lr("label",null,[this.caseField,ui(t,"match case")]),lr("label",null,[this.reField,ui(t,"regexp")]),lr("label",null,[this.wordField,ui(t,"by word")])].concat($e(t.state.readOnly?[]:[lr("br"),this.replaceField,o("replace",function(){return JT(t)},[ui(t,"replace")]),o("replaceAll",function(){return Xyt(t)},[ui(t,"replace all")])]),[lr("button",{name:"close",onclick:function(){return Xj(t)},"aria-label":ui(t,"close"),type:"button"},["×"])]))}return it(e,[{key:"commit",value:function(){var t=new uH({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});t.eq(this.query)||(this.query=t,this.view.dispatch({effects:tp.of(t)}))}},{key:"keydown",value:function(t){(function(n,r,o){return qF(FF(n.state),r,n,o)})(this.view,t,"search-panel")?t.preventDefault():t.keyCode==13&&t.target==this.searchField?(t.preventDefault(),(t.shiftKey?Jg:Kg)(this.view)):t.keyCode==13&&t.target==this.replaceField&&(t.preventDefault(),JT(this.view))}},{key:"update",value:function(t){var n,r=ht(t.transactions);try{for(r.s();!(n=r.n()).done;){var o,i=ht(n.value.effects);try{for(i.s();!(o=i.n()).done;){var a=o.value;a.is(tp)&&!a.value.eq(this.query)&&this.setQuery(a.value)}}catch(s){i.e(s)}finally{i.f()}}}catch(s){r.e(s)}finally{r.f()}}},{key:"setQuery",value:function(t){this.query=t,this.searchField.value=t.search,this.replaceField.value=t.replace,this.caseField.checked=t.caseSensitive,this.reField.checked=t.regexp,this.wordField.checked=t.wholeWord}},{key:"mount",value:function(){this.searchField.select()}},{key:"pos",get:function(){return 80}},{key:"top",get:function(){return this.view.state.facet(hl).top}}]),e}();function ui(e,t){return e.state.phrase(t)}var zv=30,Bv=/[\s\.,:;?!]/;function Zj(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-zv),s=Math.min(i,r+zv),c=e.state.sliceDoc(a,s);if(a!=o.from){for(var u=0;u<zv;u++)if(!Bv.test(c[u+1])&&Bv.test(c[u])){c=c.slice(u);break}}if(s!=i){for(var l=c.length-1;l>c.length-zv;l--)if(!Bv.test(c[l-1])&&Bv.test(c[l])){c=c.slice(0,l);break}}return ye.announce.of("".concat(e.state.phrase("current match"),". ").concat(c," ").concat(e.state.phrase("on line")," ").concat(o.number,"."))}var ebt=ye.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"}}),zx=[Pc,id.lowest(Qyt),ebt],hH=function(){function e(t,n,r){ot(this,e),this.state=t,this.pos=n,this.explicit=r,this.abortListeners=[]}return it(e,[{key:"tokenBefore",value:function(t){for(var n=Do(this.state).resolveInner(this.pos,-1);n&&t.indexOf(n.name)<0;)n=n.parent;return n?{from:n.from,to:this.pos,text:this.state.sliceDoc(n.from,this.pos),type:n.type}:null}},{key:"matchBefore",value:function(t){var n=this.state.doc.lineAt(this.pos),r=Math.max(n.from,this.pos-250),o=n.text.slice(r-n.from,this.pos-n.from),i=o.search(pH(t,!1));return i<0?null:{from:r+i,to:this.pos,text:o.slice(i)}}},{key:"aborted",get:function(){return this.abortListeners==null}},{key:"addEventListener",value:function(t,n){t=="abort"&&this.abortListeners&&this.abortListeners.push(n)}}]),e}();function GT(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 nbt(e){var t=e.map(function(a){return typeof a=="string"?{label:a}:a}),n=t.every(function(a){return/^\w+$/.test(a.label)})?[/\w*$/,/\w+$/]:function(a){var s,c=Object.create(null),u=Object.create(null),l=ht(a);try{for(l.s();!(s=l.n()).done;){var f=s.value.label;c[f[0]]=!0;for(var d=1;d<f.length;d++)u[f[d]]=!0}}catch(p){l.e(p)}finally{l.f()}var h=GT(c)+GT(u)+"*$";return[new RegExp("^"+h),new RegExp(h)]}(t),r=Ce(n,2),o=r[0],i=r[1];return function(a){var s=a.matchBefore(i);return s||a.explicit?{from:s?s.from:a.pos,options:t,validFor:o}:null}}var QT=it(function e(t,n,r,o){ot(this,e),this.completion=t,this.source=n,this.match=r,this.score=o});function Tc(e){return e.selection.main.from}function pH(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?"$":""),(n=e.flags)!==null&&n!==void 0?n:e.ignoreCase?"i":""):e}var rbt=Rs.define(),YT=new WeakMap;function obt(e){if(!Array.isArray(e))return e;var t=YT.get(e);return t||YT.set(e,t=nbt(e)),t}var t_=wn.define(),ep=wn.define(),ibt=function(){function e(t){ot(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=xo(t,n),o=Pi(r);this.chars.push(r);var i=t.slice(n,n+o),a=i.toUpperCase();this.folded.push(xo(a==i?i.toLowerCase():a,0)),n+=o}this.astral=t.length!=this.chars.length}return it(e,[{key:"ret",value:function(t,n){return this.score=t,this.matched=n,!0}},{key:"match",value:function(t){if(this.pattern.length==0)return this.ret(-100,[]);if(t.length<this.pattern.length)return!1;var n=this.chars,r=this.folded,o=this.any,i=this.precise,a=this.byWord;if(n.length==1){var s=xo(t,0),c=Pi(s),u=c==t.length?0:-100;if(s!=n[0]){if(s!=r[0])return!1;u+=-200}return this.ret(u,[0,c])}var l=t.indexOf(this.pattern);if(l==0)return this.ret(t.length==this.pattern.length?0:-100,[0,this.pattern.length]);var f=n.length,d=0;if(l<0){for(var h=0,p=Math.min(t.length,200);h<p&&d<f;){var v=xo(t,h);v!=n[d]&&v!=r[d]||(o[d++]=h),h+=Pi(v)}if(d<f)return!1}for(var m=0,g=0,y=!1,b=0,w=-1,x=-1,k=/[a-z]/.test(t),E=!0,_=0,T=Math.min(t.length,200),$=0;_<T&&g<f;){var j=xo(t,_);l<0&&(m<f&&j==n[m]&&(i[m++]=_),b<f&&(j==n[b]||j==r[b]?(b==0&&(w=_),x=_+1,b++):b=0));var R=void 0,q=j<255?j>=48&&j<=57||j>=97&&j<=122?2:j>=65&&j<=90?1:0:(R=Cj(j))!=R.toLowerCase()?1:R!=R.toUpperCase()?2:0;(!_||q==1&&k||$==0&&q!=0)&&(n[g]==j||r[g]==j&&(y=!0)?a[g++]=_:a.length&&(E=!1)),$=q,_+=Pi(j)}return g==f&&a[0]==0&&E?this.result((y?-200:0)-100,a,t):b==f&&w==0?this.ret(-200-t.length+(x==t.length?0:-100),[0,x]):l>-1?this.ret(-700-t.length,[l,l+this.pattern.length]):b==f?this.ret(-900-t.length,[w,x]):g==f?this.result((y?-200:0)-100-700+(E?0:-1100),a,t):n.length!=2&&this.result((o[0]?-700:0)-200-1100,o,t)}},{key:"result",value:function(t,n,r){var o,i=[],a=0,s=ht(n);try{for(s.s();!(o=s.n()).done;){var c=o.value,u=c+(this.astral?Pi(xo(r,c)):1);a&&i[a-1]==c?i[a-1]=u:(i[a++]=c,i[a++]=u)}}catch(l){s.e(l)}finally{s.f()}return this.ret(t-r.length,i)}}]),e}(),ei=xe.define({combine:function(e){return Xi(e,{activateOnTyping:!0,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:function(){return""},optionClass:function(){return""},aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:abt,compareCompletions:function(t,n){return t.label.localeCompare(n.label)},interactionDelay:75},{defaultKeymap:function(t,n){return t&&n},closeOnBlur:function(t,n){return t&&n},icons:function(t,n){return t&&n},tooltipClass:function(t,n){return function(r){return XT(t(r),n(r))}},optionClass:function(t,n){return function(r){return XT(t(r),n(r))}},addToOptions:function(t,n){return t.concat(n)}})}});function XT(e,t){return e?t?e+" "+t:e:t}function abt(e,t,n,r,o){var i,a,s=e.textDirection==Ir.RTL,c=s,u=!1,l="top",f=t.left-o.left,d=o.right-t.right,h=r.right-r.left,p=r.bottom-r.top;if(c&&f<Math.min(h,d)?c=!1:!c&&d<Math.min(h,f)&&(c=!0),h<=(c?f:d))i=Math.max(o.top,Math.min(n.top,o.bottom-p))-t.top,a=Math.min(400,c?f:d);else{u=!0,a=Math.min(400,(s?t.right:o.right-t.left)-30);var v=o.bottom-t.bottom;v>=p||v>t.top?i=n.bottom-t.top:(l="bottom",i=t.bottom-n.top)}return{style:"".concat(l,": ").concat(i,"px; max-width: ").concat(a,"px"),class:"cm-completionInfo-"+(u?s?"left-narrow":"right-narrow":c?"left":"right")}}function ZT(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 sbt=function(){function e(t,n,r){var o=this;ot(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(l){return o.placeInfo(l)},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(ei);this.optionContent=function(l){var f=l.addToOptions.slice();return l.icons&&f.push({render:function(d){var h,p=document.createElement("div");return p.classList.add("cm-completionIcon"),d.type&&(h=p.classList).add.apply(h,$e(d.type.split(/\s+/g).map(function(v){return"cm-completionIcon-"+v}))),p.setAttribute("aria-hidden","true"),p},position:20}),f.push({render:function(d,h,p){var v=document.createElement("span");v.className="cm-completionLabel";for(var m=d.displayLabel||d.label,g=0,y=0;y<p.length;){var b=p[y++],w=p[y++];b>g&&v.appendChild(document.createTextNode(m.slice(g,b)));var x=v.appendChild(document.createElement("span"));x.appendChild(document.createTextNode(m.slice(b,w))),x.className="cm-completionMatchedText",g=w}return g<m.length&&v.appendChild(document.createTextNode(m.slice(g))),v},position:50},{render:function(d){if(!d.detail)return null;var h=document.createElement("span");return h.className="cm-completionDetail",h.textContent=d.detail,h},position:80}),f.sort(function(d,h){return d.position-h.position}).map(function(d){return d.render})}(u),this.optionClass=u.optionClass,this.tooltipClass=u.tooltipClass,this.range=ZT(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(l){for(var f,d=l.target;d&&d!=o.dom;d=d.parentNode)if(d.nodeName=="LI"&&(f=/-(\d+)$/.exec(d.id))&&+f[1]<s.length)return o.applyCompletion(t,s[+f[1]]),void l.preventDefault()}),this.dom.addEventListener("focusout",function(l){var f=t.state.field(o.stateField,!1);f&&f.tooltip&&t.state.facet(ei).closeOnBlur&&l.relatedTarget!=t.contentDOM&&t.dispatch({effects:ep.of(null)})}),this.list=this.dom.appendChild(this.createListBox(s,i.id,this.range)),this.list.addEventListener("scroll",function(){o.info&&o.view.requestMeasure(o.placeInfoReq)})}return it(e,[{key:"mount",value:function(){this.updateSel()}},{key:"update",value:function(t){var n,r,o,i=t.state.field(this.stateField),a=t.startState.field(this.stateField);this.updateTooltipClass(t.state),i!=a&&(this.updateSel(),((n=i.open)===null||n===void 0?void 0:n.disabled)!=((r=a.open)===null||r===void 0?void 0:r.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!(!((o=i.open)===null||o===void 0)&&o.disabled)))}},{key:"updateTooltipClass",value:function(t){var n=this.tooltipClass(t);if(n!=this.currentClass){var r,o=ht(this.currentClass.split(" "));try{for(o.s();!(r=o.n()).done;){var i=r.value;i&&this.dom.classList.remove(i)}}catch(u){o.e(u)}finally{o.f()}var a,s=ht(n.split(" "));try{for(s.s();!(a=s.n()).done;){var c=a.value;c&&this.dom.classList.add(c)}}catch(u){s.e(u)}finally{s.f()}this.currentClass=n}}},{key:"positioned",value:function(t){this.space=t,this.info&&this.view.requestMeasure(this.placeInfoReq)}},{key:"updateSel",value:function(){var t=this,n=this.view.state.field(this.stateField),r=n.open;if((r.selected>-1&&r.selected<this.range.from||r.selected>=this.range.to)&&(this.range=ZT(r.options.length,r.selected,this.view.state.facet(ei).maxRenderedOptions),this.list.remove(),this.list=this.dom.appendChild(this.createListBox(r.options,n.id,this.range)),this.list.addEventListener("scroll",function(){t.info&&t.view.requestMeasure(t.placeInfoReq)})),this.updateSelectedOption(r.selected)){this.destroyInfo();var o=r.options[r.selected].completion,i=o.info;if(!i)return;var a=typeof i=="string"?document.createTextNode(i):i(o);if(!a)return;"then"in a?a.then(function(s){s&&t.view.state.field(t.stateField,!1)==n&&t.addInfoPane(s,o)}).catch(function(s){return yi(t.view.state,s,"completion info")}):this.addInfoPane(a,o)}}},{key:"addInfoPane",value:function(t,n){this.destroyInfo();var r=this.info=document.createElement("div");if(r.className="cm-tooltip cm-completionInfo",t.nodeType!=null)r.appendChild(t),this.infoDestroy=null;else{var o=t.dom,i=t.destroy;r.appendChild(o),this.infoDestroy=i||null}this.dom.appendChild(r),this.view.requestMeasure(this.placeInfoReq)}},{key:"updateSelectedOption",value:function(t){for(var n=null,r=this.list.firstChild,o=this.range.from;r;r=r.nextSibling,o++)r.nodeName=="LI"&&r.id?o==t?r.hasAttribute("aria-selected")||(r.setAttribute("aria-selected","true"),n=r):r.hasAttribute("aria-selected")&&r.removeAttribute("aria-selected"):o--;return n&&function(i,a){var s=i.getBoundingClientRect(),c=a.getBoundingClientRect();c.top<s.top?i.scrollTop-=s.top-c.top:c.bottom>s.bottom&&(i.scrollTop+=c.bottom-s.bottom)}(this.list,n),n}},{key:"measureInfo",value:function(){var t=this.dom.querySelector("[aria-selected]");if(!t||!this.info)return null;var n=this.dom.getBoundingClientRect(),r=this.info.getBoundingClientRect(),o=t.getBoundingClientRect(),i=this.space;if(!i){var a=this.dom.ownerDocument.defaultView||window;i={left:0,top:0,right:a.innerWidth,bottom:a.innerHeight}}return o.top>Math.min(i.bottom,n.bottom)-10||o.bottom<Math.max(i.top,n.top)+10?null:this.view.state.facet(ei).positionInfo(this.view,n,o,r,i)}},{key:"placeInfo",value:function(t){this.info&&(t?(t.style&&(this.info.style.cssText=t.style),this.info.className="cm-tooltip cm-completionInfo "+(t.class||"")):this.info.style.cssText="top: -1e6px")}},{key:"createListBox",value:function(t,n,r){var o=document.createElement("ul");o.id=n,o.setAttribute("role","listbox"),o.setAttribute("aria-expanded","true"),o.setAttribute("aria-label",this.view.state.phrase("Completions"));for(var i=null,a=r.from;a<r.to;a++){var s=t[a],c=s.completion,u=s.match,l=c.section;if(l){var f=typeof l=="string"?l:l.name;f!=i&&(a>r.from||r.from==0)&&(i=f,typeof l!="string"&&l.header?o.appendChild(l.header(l)):o.appendChild(document.createElement("completion-section")).textContent=f)}var d=o.appendChild(document.createElement("li"));d.id=n+"-"+a,d.setAttribute("role","option");var h=this.optionClass(c);h&&(d.className=h);var p,v=ht(this.optionContent);try{for(v.s();!(p=v.n()).done;){var m=(0,p.value)(c,this.view.state,u);m&&d.appendChild(m)}}catch(g){v.e(g)}finally{v.f()}}return r.from&&o.classList.add("cm-completionListIncompleteTop"),r.to<t.length&&o.classList.add("cm-completionListIncompleteBottom"),o}},{key:"destroyInfo",value:function(){this.info&&(this.infoDestroy&&this.infoDestroy(),this.info.remove(),this.info=null)}},{key:"destroy",value:function(){this.destroyInfo()}}]),e}();function cbt(e,t){return function(n){return new sbt(n,e,t)}}function tR(e){return 100*(e.boost||0)+(e.apply?10:0)+(e.info?5:0)+(e.type?1:0)}var ubt=function(){function e(t,n,r,o,i,a){ot(this,e),this.options=t,this.attrs=n,this.tooltip=r,this.timestamp=o,this.selected=i,this.disabled=a}return it(e,[{key:"setSelected",value:function(t,n){return t==this.selected||t>=this.options.length?this:new e(this.options,eR(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(l,f){var d,h=[],p=null,v=function(et){h.push(et);var yt=et.completion.section;if(yt){p||(p=[]);var bt=typeof yt=="string"?yt:yt.name;p.some(function(jt){return jt.name==bt})||p.push(typeof yt=="string"?{name:bt}:yt)}},m=ht(l);try{for(m.s();!(d=m.n()).done;){var g=d.value;if(g.hasResult()){var y=g.result.getMatch;if(g.result.filter===!1){var b,w=ht(g.result.options);try{for(w.s();!(b=w.n()).done;){var x=b.value;v(new QT(x,g.source,y?y(x):[],1e9-h.length))}}catch(et){w.e(et)}finally{w.f()}}else{var k,E=new ibt(f.sliceDoc(g.from,g.to)),_=ht(g.result.options);try{for(_.s();!(k=_.n()).done;){var T=k.value;if(E.match(T.label)){var $=T.displayLabel?y?y(T,E.matched):[]:E.matched;v(new QT(T,g.source,$,E.score+(T.boost||0)))}}}catch(et){_.e(et)}finally{_.f()}}}}}catch(et){m.e(et)}finally{m.f()}if(p){var j,R=Object.create(null),q=0,O=ht(p.sort(function(et,yt){var bt,jt;return((bt=et.rank)!==null&&bt!==void 0?bt:1e9)-((jt=yt.rank)!==null&&jt!==void 0?jt:1e9)||(et.name<yt.name?-1:1)}));try{for(O.s();!(j=O.n()).done;){var F=j.value;q-=1e5,R[F.name]=q}}catch(et){O.e(et)}finally{O.f()}var J,I=ht(h);try{for(I.s();!(J=I.n()).done;){var D=J.value,C=D.completion.section;C&&(D.score+=R[typeof C=="string"?C:C.name])}}catch(et){I.e(et)}finally{I.f()}}var M,P=[],B=null,A=f.facet(ei).compareCompletions,W=ht(h.sort(function(et,yt){return yt.score-et.score||A(et.completion,yt.completion)}));try{for(W.s();!(M=W.n()).done;){var N=M.value,dt=N.completion;!B||B.label!=dt.label||B.detail!=dt.detail||B.type!=null&&dt.type!=null&&B.type!=dt.type||B.apply!=dt.apply||B.boost!=dt.boost?P.push(N):tR(N.completion)>tR(B)&&(P[P.length-1]=N),B=N.completion}}catch(et){W.e(et)}finally{W.f()}return P}(t,n);if(!a.length)return o&&t.some(function(l){return l.state==1})?new e(o.options,o.attrs,o.tooltip,o.timestamp,o.selected,!0):null;var s=n.facet(ei).selectOnOpen?0:-1;if(o&&o.selected!=s&&o.selected!=-1){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,eR(r,s),{pos:t.reduce(function(l,f){return f.hasResult()?Math.min(l,f.from):l},1e8),create:cbt(fi,yH),above:i.aboveCursor},o?o.timestamp:Date.now(),s,!1)}}]),e}(),lbt=function(){function e(t,n,r){ot(this,e),this.active=t,this.id=n,this.open=r}return it(e,[{key:"update",value:function(t){var n=this,r=t.state,o=r.facet(ei),i=(o.override||r.languageDataAt("autocomplete",Tc(r)).map(obt)).map(function(l){var f=n.active.find(function(d){return d.source==l})||new Ru(l,n.active.some(function(d){return d.state!=0})?1:0);return f.update(t,o)});i.length==this.active.length&&i.every(function(l,f){return l==n.active[f]})&&(i=this.active);var a=this.open;a&&t.docChanged&&(a=a.map(t.changes)),t.selection||i.some(function(l){return l.hasResult()&&t.changes.touchesRange(l.from,l.to)})||!function(l,f){if(l==f)return!0;for(var d=0,h=0;;){for(;d<l.length&&!l[d].hasResult;)d++;for(;h<f.length&&!f[h].hasResult;)h++;var p=d==l.length,v=h==f.length;if(p||v)return p==v;if(l[d++].result!=f[h++].result)return!1}}(i,this.active)?a=ubt.build(i,r,this.id,a,o):a&&a.disabled&&!i.some(function(l){return l.state==1})&&(a=null),!a&&i.every(function(l){return l.state!=1})&&i.some(function(l){return l.hasResult()})&&(i=i.map(function(l){return l.hasResult()?new Ru(l.source,0):l}));var s,c=ht(t.effects);try{for(c.s();!(s=c.n()).done;){var u=s.value;u.is(gH)&&(a=a&&a.setSelected(u.value,this.id))}}catch(l){c.e(l)}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:fbt}}],[{key:"start",value:function(){return new e(dbt,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}}]),e}(),fbt={"aria-autocomplete":"list"};function eR(e,t){var n={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":e};return t>-1&&(n["aria-activedescendant"]=e+"-"+t),n}var dbt=[];function Bx(e){return e.isUserEvent("input.type")?"input":e.isUserEvent("delete.backward")?"delete":null}var Ru=function(){function e(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:-1;ot(this,e),this.source=t,this.state=n,this.explicitPos=r}return it(e,[{key:"hasResult",value:function(){return!1}},{key:"update",value:function(t,n){var r=Bx(t),o=this;r?o=o.handleUserEvent(t,r,n):t.docChanged?o=o.handleChange(t):t.selection&&o.state!=0&&(o=new e(o.source,0));var i,a=ht(t.effects);try{for(a.s();!(i=a.n()).done;){var s=i.value;if(s.is(t_))o=new e(o.source,1,s.value?Tc(t.state):-1);else if(s.is(ep))o=new e(o.source,0);else if(s.is(mH)){var c,u=ht(s.value);try{for(u.s();!(c=u.n()).done;){var l=c.value;l.source==o.source&&(o=l)}}catch(f){u.e(f)}finally{u.f()}}}}catch(f){a.e(f)}finally{a.f()}return o}},{key:"handleUserEvent",value:function(t,n,r){return n!="delete"&&r.activateOnTyping?new e(this.source,1):this.map(t.changes)}},{key:"handleChange",value:function(t){return t.changes.touchesRange(Tc(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))}}]),e}(),vH=function(e){Tt(n,Ru);var t=Rt(n);function n(r,o,i,a,s){var c;return ot(this,n),(c=t.call(this,r,2,o)).result=i,c.from=a,c.to=s,c}return it(n,[{key:"hasResult",value:function(){return!0}},{key:"handleUserEvent",value:function(r,o,i){var a,s=r.changes.mapPos(this.from),c=r.changes.mapPos(this.to,1),u=Tc(r.state);if((this.explicitPos<0?u<=s:u<this.from)||u>c||o=="delete"&&Tc(r.startState)==this.from)return new Ru(this.source,o=="input"&&i.activateOnTyping?1:0);var l,f=this.explicitPos<0?-1:r.changes.mapPos(this.explicitPos);return function(d,h,p,v){if(!d)return!1;var m=h.sliceDoc(p,v);return typeof d=="function"?d(m,p,v,h):pH(d,!0).test(m)}(this.result.validFor,r.state,s,c)?new n(this.source,f,this.result,s,c):this.result.update&&(l=this.result.update(this.result,s,c,new hH(r.state,u,f>=0)))?new n(this.source,f,l,l.from,(a=l.to)!==null&&a!==void 0?a:Tc(r.state)):new Ru(this.source,1,f)}},{key:"handleChange",value:function(r){return r.changes.touchesRange(this.from,this.to)?new Ru(this.source,0):this.map(r.changes)}},{key:"map",value:function(r){return r.empty?this:new n(this.source,this.explicitPos<0?-1:r.mapPos(this.explicitPos),this.result,r.mapPos(this.from),r.mapPos(this.to,1))}}]),n}(),mH=wn.define({map:function(e,t){return e.map(function(n){return n.map(t)})}}),gH=wn.define(),fi=$o.define({create:function(){return lbt.start()},update:function(e,t){return e.update(t)},provide:function(e){return[i1.from(e,function(t){return t.tooltip}),ye.contentAttributes.from(e,function(t){return t.attrs})]}});function yH(e,t){var n=t.completion.apply||t.completion.label,r=e.state.field(fi).active.find(function(o){return o.source==t.source});return r instanceof vH&&(typeof n=="string"?e.dispatch(Object.assign(Object.assign({},function(o,i,a,s){var c=o.selection.main,u=a-c.from,l=s-c.from;return Object.assign(Object.assign({},o.changeByRange(function(f){return f!=c&&a!=s&&o.sliceDoc(f.from+u,f.from+l)!=o.sliceDoc(a,s)?{range:f}:{changes:{from:f.from+u,to:s==c.from?f.to:f.from+l,insert:i},range:Jt.cursor(f.from+u+i.length)}})),{userEvent:"input.complete"})}(e.state,n,r.from,r.to)),{annotations:rbt.of(t.completion)})):n(e,t.completion,r.from,r.to),!0)}function Fv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"option";return function(n){var r=n.state.field(fi,!1);if(!r||!r.open||r.open.disabled||Date.now()-r.open.timestamp<n.state.facet(ei).interactionDelay)return!1;var o,i=1;t=="page"&&(o=YF(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=t=="page"?0:a-1:s>=a&&(s=t=="page"?a-1:0),n.dispatch({effects:gH.of(s)}),!0}}var hbt=it(function e(t,n){ot(this,e),this.active=t,this.context=n,this.time=Date.now(),this.updates=[],this.done=void 0}),pbt=io.fromClass(function(){function e(t){ot(this,e),this.view=t,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.composing=0;var n,r=ht(t.state.field(fi).active);try{for(r.s();!(n=r.n()).done;){var o=n.value;o.state==1&&this.startQuery(o)}}catch(i){r.e(i)}finally{r.f()}}return it(e,[{key:"update",value:function(t){var n=this,r=t.state.field(fi);if(t.selectionSet||t.docChanged||t.startState.field(fi)!=r){for(var o=t.transactions.some(function(p){return(p.selection||p.docChanged)&&!Bx(p)}),i=0;i<this.running.length;i++){var a=this.running[i];if(o||a.updates.length+t.transactions.length>50&&Date.now()-a.time>1e3){var s,c=ht(a.context.abortListeners);try{for(c.s();!(s=c.n()).done;){var u=s.value;try{u()}catch(p){yi(this.view.state,p)}}}catch(p){c.e(p)}finally{c.f()}a.context.abortListeners=null,this.running.splice(i--,1)}else{var l;(l=a.updates).push.apply(l,$e(t.transactions))}}if(this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),this.debounceUpdate=r.active.some(function(p){return p.state==1&&!n.running.some(function(v){return v.active.source==p.source})})?setTimeout(function(){return n.startUpdate()},50):-1,this.composing!=0){var f,d=ht(t.transactions);try{for(d.s();!(f=d.n()).done;){var h=f.value;Bx(h)=="input"?this.composing=2:this.composing==2&&h.selection&&(this.composing=3)}}catch(p){d.e(p)}finally{d.f()}}}}},{key:"startUpdate",value:function(){var t=this;this.debounceUpdate=-1;var n,r=ht(this.view.state.field(fi).active);try{var o=function(){var i=n.value;i.state!=1||t.running.some(function(a){return a.active.source==i.source})||t.startQuery(i)};for(r.s();!(n=r.n()).done;)o()}catch(i){r.e(i)}finally{r.f()}}},{key:"startQuery",value:function(t){var n=this,r=this.view.state,o=Tc(r),i=new hH(r,o,t.explicitPos==o),a=new hbt(t,i);this.running.push(a),Promise.resolve(t.source(i)).then(function(s){a.context.aborted||(a.done=s||null,n.scheduleAccept())},function(s){n.view.dispatch({effects:ep.of(null)}),yi(n.view.state,s)})}},{key:"scheduleAccept",value:function(){var t=this;this.running.every(function(n){return n.done!==void 0})?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(function(){return t.accept()},50))}},{key:"accept",value:function(){var t,n=this;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;for(var r=[],o=this.view.state.facet(ei),i=function(s){var c=n.running[s];if(c.done===void 0)return a=s,0;if(n.running.splice(s--,1),c.done){var u,l=new vH(c.active.source,c.active.explicitPos,c.done,c.done.from,(t=c.done.to)!==null&&t!==void 0?t:Tc(c.updates.length?c.updates[0].startState:n.view.state)),f=ht(c.updates);try{for(f.s();!(u=f.n()).done;){var d=u.value;l=l.update(d,o)}}catch(y){f.e(y)}finally{f.f()}if(l.hasResult())return r.push(l),a=s,0}var h=n.view.state.field(fi).active.find(function(y){return y.source==c.active.source});if(h&&h.state==1)if(c.done==null){var p,v=new Ru(c.active.source,0),m=ht(c.updates);try{for(m.s();!(p=m.n()).done;){var g=p.value;v=v.update(g,o)}}catch(y){m.e(y)}finally{m.f()}v.state!=1&&r.push(v)}else n.startQuery(h);a=s},a=0;a<this.running.length;a++)i(a);r.length&&this.view.dispatch({effects:mH.of(r)})}}]),e}(),{eventHandlers:{blur:function(e){var t=this.view.state.field(fi,!1);if(t&&t.tooltip&&this.view.state.facet(ei).closeOnBlur){var n=t.open&&YF(this.view,t.open.tooltip);n&&n.dom.contains(e.relatedTarget)||this.view.dispatch({effects:ep.of(null)})}},compositionstart:function(){this.composing=1},compositionend:function(){var e=this;this.composing==3&&setTimeout(function(){return e.view.dispatch({effects:t_.of(!1)})},20),this.composing=0}}}),vbt=ye.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"}}}),np={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},Iu=wn.define({map:function(e,t){var n=t.mapPos(e,-1,qo.TrackAfter);return n??void 0}}),Fx=new(function(e){Tt(n,Pu);var t=Rt(n);function n(){return ot(this,n),t.apply(this,arguments)}return it(n)}());Fx.startSide=1,Fx.endSide=-1;var bH=$o.define({create:function(){return vr.empty},update:function(e,t){if(t.selection){var n=t.state.doc.lineAt(t.selection.main.head).from,r=t.startState.doc.lineAt(t.startState.selection.main.head).from;n!=t.changes.mapPos(r,-1)&&(e=vr.empty)}e=e.map(t.changes);var o,i=ht(t.effects);try{for(i.s();!(o=i.n()).done;){var a=o.value;a.is(Iu)&&(e=e.update({add:[Fx.range(a.value,a.value+1)]}))}}catch(s){i.e(s)}finally{i.f()}return e}}),Xy="()[]{}<>";function wH(e){for(var t=0;t<Xy.length;t+=2)if(Xy.charCodeAt(t)==e)return Xy.charAt(t+1);return Cj(e<128?e:e+1)}function xH(e,t){return e.languageDataAt("closeBrackets",t)[0]||np}var mbt=(typeof navigator>"u"?"undefined":ce(navigator))=="object"&&/Android\b/.test(navigator.userAgent),gbt=ye.inputHandler.of(function(e,t,n,r){if((mbt?e.composing:e.compositionStarted)||e.state.readOnly)return!1;var o=e.state.selection.main;if(r.length>2||r.length==2&&Pi(xo(r,0))==1||t!=o.from||n!=o.to)return!1;var i=function(a,s){var c,u=xH(a,a.selection.main.head),l=u.brackets||np.brackets,f=ht(l);try{for(f.s();!(c=f.n()).done;){var d=c.value,h=wH(xo(d,0));if(s==d)return h==d?xbt(a,d,l.indexOf(d+d+d)>-1,u):bbt(a,d,h,u.before||np.before);if(s==h&&kH(a,a.selection.main.from))return wbt(a,d,h)}}catch(p){f.e(p)}finally{f.f()}return null}(e.state,r);return!!i&&(e.dispatch(i),!0)}),ybt=[{key:"Backspace",run:function(e){var t=e.state,n=e.dispatch;if(t.readOnly)return!1;var r=xH(t,t.selection.main.head).brackets||np.brackets,o=null,i=t.changeByRange(function(a){if(a.empty){var s,c=function(f,d){var h=f.sliceString(d-2,d);return Pi(xo(h,0))==h.length?h:h.slice(1)}(t.doc,a.head),u=ht(r);try{for(u.s();!(s=u.n()).done;){var l=s.value;if(l==c&&d1(t.doc,a.head)==wH(xo(l,0)))return{changes:{from:a.head-l.length,to:a.head+l.length},range:Jt.cursor(a.head-l.length)}}}catch(f){u.e(f)}finally{u.f()}}return{range:o=a}});return o||n(t.update(i,{scrollIntoView:!0,userEvent:"delete.backward"})),!o}}];function kH(e,t){var n=!1;return e.field(bH).between(0,e.doc.length,function(r){r==t&&(n=!0)}),n}function d1(e,t){var n=e.sliceString(t,t+2);return n.slice(0,Pi(xo(n,0)))}function bbt(e,t,n,r){var o=null,i=e.changeByRange(function(a){if(!a.empty)return{changes:[{insert:t,from:a.from},{insert:n,from:a.to}],effects:Iu.of(a.to+t.length),range:Jt.range(a.anchor+t.length,a.head+t.length)};var s=d1(e.doc,a.head);return!s||/\s/.test(s)||r.indexOf(s)>-1?{changes:{insert:t+n,from:a.head},effects:Iu.of(a.head+t.length),range:Jt.cursor(a.head+t.length)}:{range:o=a}});return o?null:e.update(i,{scrollIntoView:!0,userEvent:"input.type"})}function wbt(e,t,n){var r=null,o=e.changeByRange(function(i){return i.empty&&d1(e.doc,i.head)==n?{changes:{from:i.head,to:i.head+n.length,insert:n},range:Jt.cursor(i.head+n.length)}:r={range:i}});return r?null:e.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function xbt(e,t,n,r){var o=r.stringPrefixes||np.stringPrefixes,i=null,a=e.changeByRange(function(s){if(!s.empty)return{changes:[{insert:t,from:s.from},{insert:t,from:s.to}],effects:Iu.of(s.to+t.length),range:Jt.range(s.anchor+t.length,s.head+t.length)};var c,u=s.head,l=d1(e.doc,u);if(l==t){if(nR(e,u))return{changes:{insert:t+t,from:u},effects:Iu.of(u+t.length),range:Jt.cursor(u+t.length)};if(kH(e,u)){var f=n&&e.sliceDoc(u,u+3*t.length)==t+t+t?t+t+t:t;return{changes:{from:u,to:u+f.length,insert:f},range:Jt.cursor(u+f.length)}}}else{if(n&&e.sliceDoc(u-2*t.length,u)==t+t&&(c=rR(e,u-2*t.length,o))>-1&&nR(e,c))return{changes:{insert:t+t+t+t,from:u},effects:Iu.of(u+t.length),range:Jt.cursor(u+t.length)};if(e.charCategorizer(u)(l)!=Sr.Word&&rR(e,u,o)>-1&&!function(d,h,p,v){for(var m=Do(d).resolveInner(h,-1),g=v.reduce(function(E,_){return Math.max(E,_.length)},0),y=0;y<5;y++){var b=d.sliceDoc(m.from,Math.min(m.to,m.from+p.length+g)),w=b.indexOf(p);if(!w||w>-1&&v.indexOf(b.slice(0,w))>-1){for(var x=m.firstChild;x&&x.from==m.from&&x.to-x.from>p.length+w;){if(d.sliceDoc(x.to-p.length,x.to)==p)return!1;x=x.firstChild}return!0}var k=m.to==h&&m.parent;if(!k)break;m=k}return!1}(e,u,t,o))return{changes:{insert:t+t,from:u},effects:Iu.of(u+t.length),range:Jt.cursor(u+t.length)}}return{range:i=s}});return i?null:e.update(a,{scrollIntoView:!0,userEvent:"input.type"})}function nR(e,t){var n=Do(e).resolveInner(t+1);return n.parent&&n.from==t}function rR(e,t,n){var r=e.charCategorizer(t);if(r(e.sliceDoc(t-1,t))!=Sr.Word)return t;var o,i=ht(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))!=Sr.Word)return s}}catch(c){i.e(c)}finally{i.f()}return-1}function kbt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return[fi,ei.of(e),pbt,jbt,vbt]}var jH=[{key:"Ctrl-Space",run:function(e){return!!e.state.field(fi,!1)&&(e.dispatch({effects:t_.of(!0)}),!0)}},{key:"Escape",run:function(e){var t=e.state.field(fi,!1);return!(!t||!t.active.some(function(n){return n.state!=0}))&&(e.dispatch({effects:ep.of(null)}),!0)}},{key:"ArrowDown",run:Fv(!0)},{key:"ArrowUp",run:Fv(!1)},{key:"PageDown",run:Fv(!0,"page")},{key:"PageUp",run:Fv(!1,"page")},{key:"Enter",run:function(e){var t=e.state.field(fi,!1);return!(e.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestamp<e.state.facet(ei).interactionDelay)&&yH(e,t.open.options[t.open.selected])}}],jbt=id.highest(Ag.computeN([ei],function(e){return e.facet(ei).defaultKeymap?[jH]:[]}));function _bt(e){Le(e,"svelte-1oo7hnc",".jse-status-bar.svelte-1oo7hnc.svelte-1oo7hnc{background:var(--jse-panel-background);color:var(--jse-panel-color-readonly);font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);margin:0;border-top:var(--jse-panel-border);border-left:var(--jse-main-border);border-right:var(--jse-main-border);display:flex;gap:var(--jse-padding)}.jse-status-bar.svelte-1oo7hnc.svelte-1oo7hnc:last-child{border-bottom:var(--jse-main-border)}.jse-status-bar.svelte-1oo7hnc .jse-status-bar-info.svelte-1oo7hnc{padding:2px}")}function oR(e){var t,n,r;return{c:function(){t=tt("div"),n=Gt("Line: "),r=Gt(e[0]),S(t,"class","jse-status-bar-info svelte-1oo7hnc")},m:function(o,i){ft(o,t,i),H(t,n),H(t,r)},p:function(o,i){1&i&&we(r,o[0])},d:function(o){o&<(t)}}}function iR(e){var t,n,r;return{c:function(){t=tt("div"),n=Gt("Column: "),r=Gt(e[1]),S(t,"class","jse-status-bar-info svelte-1oo7hnc")},m:function(o,i){ft(o,t,i),H(t,n),H(t,r)},p:function(o,i){2&i&&we(r,o[1])},d:function(o){o&<(t)}}}function aR(e){var t,n,r,o;return{c:function(){t=tt("div"),n=Gt("Selection: "),r=Gt(e[2]),o=Gt(" characters"),S(t,"class","jse-status-bar-info svelte-1oo7hnc")},m:function(i,a){ft(i,t,a),H(t,n),H(t,r),H(t,o)},p:function(i,a){4&a&&we(r,i[2])},d:function(i){i&<(t)}}}function Sbt(e){var t,n,r,o=e[0]!==void 0&&oR(e),i=e[1]!==void 0&&iR(e),a=e[2]!==void 0&&e[2]>0&&aR(e);return{c:function(){t=tt("div"),o&&o.c(),n=kt(),i&&i.c(),r=kt(),a&&a.c(),S(t,"class","jse-status-bar svelte-1oo7hnc")},m:function(s,c){ft(s,t,c),o&&o.m(t,null),H(t,n),i&&i.m(t,null),H(t,r),a&&a.m(t,null)},p:function(s,c){var u=Ce(c,1)[0];s[0]!==void 0?o?o.p(s,u):((o=oR(s)).c(),o.m(t,n)):o&&(o.d(1),o=null),s[1]!==void 0?i?i.p(s,u):((i=iR(s)).c(),i.m(t,r)):i&&(i.d(1),i=null),s[2]!==void 0&&s[2]>0?a?a.p(s,u):((a=aR(s)).c(),a.m(t,null)):a&&(a.d(1),a=null)},i:Ht,o:Ht,d:function(s){s&<(t),o&&o.d(),i&&i.d(),a&&a.d()}}}function $bt(e,t,n){var r,o,i,a,s,c=t.editorState;return e.$$set=function(u){"editorState"in u&&n(3,c=u.editorState)},e.$$.update=function(){var u,l,f;8&e.$$.dirty&&n(4,r=(u=c)===null||u===void 0||(u=u.selection)===null||u===void 0||(u=u.main)===null||u===void 0?void 0:u.head),24&e.$$.dirty&&n(5,o=(l=c)===null||l===void 0||(l=l.doc)===null||l===void 0?void 0:l.lineAt(r)),32&e.$$.dirty&&n(0,i=o?o.number:void 0),48&e.$$.dirty&&n(1,a=o?r-o.from+1:void 0),8&e.$$.dirty&&n(2,s=(f=c)===null||f===void 0||(f=f.selection)===null||f===void 0||(f=f.ranges)===null||f===void 0?void 0:f.reduce(function(d,h){return d+h.to-h.from},0))},[i,a,s,c,r,o]}var Cbt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,$bt,Sbt,eo,{editorState:3},_bt),o}return it(n)}(),e_=Fj.define([{tag:re.propertyName,color:"var(--jse-key-color)"},{tag:re.number,color:"var(--jse-value-color-number)"},{tag:re.bool,color:"var(--jse-value-color-boolean)"},{tag:re.string,color:"var(--jse-value-color-string)"},{tag:re.keyword,color:"var(--jse-value-color-null)"}]),Ebt=gq(e_),Obt=e_.style;function qx(e){var t=e.selection.main.head;return e.doc.lineAt(t)}function sR(e,t){var n=0;t:for(var r=0;r<e.length;r++)switch(e[r]){case" ":n+=1;continue t;case" ":n+=t-n%t;continue t;case"\r":continue t;default:break t}return n}e_.style=function(e){return Obt(e||[])};var Gg=xe.define({combine:function(e){return Xi(e,{highlightActiveBlock:!0,hideFirstIndent:!1,markerType:"fullScope"})}}),Mbt=function(){function e(t,n,r,o){ot(this,e),this.lines=t,this.state=n,this.map=new Map,this.unitWidth=r,this.markerType=o;var i,a=ht(this.lines);try{for(a.s();!(i=a.n()).done;){var s=i.value;this.add(s)}}catch(c){a.e(c)}finally{a.f()}this.state.facet(Gg).highlightActiveBlock&&this.findAndSetActiveLines()}return it(e,[{key:"has",value:function(t){return this.map.has(typeof t=="number"?t:t.number)}},{key:"get",value:function(t){var n=this.map.get(typeof t=="number"?t:t.number);if(!n)throw new Error("Line not found in indentation map");return n}},{key:"set",value:function(t,n,r){var o=!t.text.trim().length,i={line:t,col:n,level:r,empty:o};return this.map.set(i.line.number,i),i}},{key:"add",value:function(t){if(this.has(t))return this.get(t);if(!t.length||!t.text.trim().length){if(t.number===1)return this.set(t,0,0);if(t.number===this.state.doc.lines){var n=this.closestNonEmpty(t,-1);return this.set(t,0,n.level)}var r=this.closestNonEmpty(t,-1),o=this.closestNonEmpty(t,1);return r.level>=o.level&&this.markerType!=="codeOnly"?this.set(t,0,r.level):r.empty&&r.level===0&&o.level!==0?this.set(t,0,0):o.level>r.level?this.set(t,0,r.level+1):this.set(t,0,o.level)}var i=sR(t.text,this.state.tabSize),a=Math.floor(i/this.unitWidth);return this.set(t,i,a)}},{key:"closestNonEmpty",value:function(t,n){for(var r=t.number+n;n===-1?r>=1:r<=this.state.doc.lines;){if(this.has(r)){var o=this.get(r);if(!o.empty)return o}var i=this.state.doc.line(r);if(i.text.trim().length){var a=sR(i.text,this.state.tabSize),s=Math.floor(a/this.unitWidth);return this.set(i,a,s)}r+=n}var c=this.state.doc.line(n===-1?1:this.state.doc.lines);return this.set(c,0,0)}},{key:"findAndSetActiveLines",value:function(){var t=qx(this.state);if(this.has(t)){var n=this.get(t);if(this.has(n.line.number+1)){var r=this.get(n.line.number+1);r.level>n.level&&(n=r)}if(this.has(n.line.number-1)){var o=this.get(n.line.number-1);o.level>n.level&&(n=o)}if(n.level!==0){var i,a;for(n.active=n.level,i=n.line.number;i>1;i--)if(this.has(i-1)){var s=this.get(i-1);if(s.level<n.level)break;s.active=n.level}for(a=n.line.number;a<this.state.doc.lines;a++)if(this.has(a+1)){var c=this.get(a+1);if(c.level<n.level)break;c.active=n.level}}}}}]),e}(),cR="1px",Abt=ye.baseTheme({"&light":{"--indent-marker-bg-color":"#F0F1F2","--indent-marker-active-bg-color":"#E4E5E6"},"&dark":{"--indent-marker-bg-color":"#2B3245","--indent-marker-active-bg-color":"#3C445C"},".cm-line":{position:"relative"},".cm-indent-markers::before":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,background:"var(--indent-markers)",pointerEvents:"none",zIndex:"-1"}});function qv(e,t,n,r){var o="repeating-linear-gradient(to right, var(".concat(e,") 0 ").concat(cR,", transparent ").concat(cR," ").concat(t,"ch)");return"".concat(o," ").concat(n*t,".5ch/calc(").concat(t*r,"ch - 1px) no-repeat")}function Pbt(e,t,n){var r=e.level,o=e.active;if(n&&r===0)return[];var i=n?1:0,a=[];if(o!==void 0){var s=o-i-1;s>0&&a.push(qv("--indent-marker-bg-color",t,i,s)),a.push(qv("--indent-marker-active-bg-color",t,o-1,1)),o!==r&&a.push(qv("--indent-marker-bg-color",t,o,r-o))}else a.push(qv("--indent-marker-bg-color",t,i,r-i));return a.join(",")}var Tbt=function(){function e(t){ot(this,e),this.view=t,this.unitWidth=Qc(t.state),this.currentLineNumber=qx(t.state).number,this.generate(t.state)}return it(e,[{key:"update",value:function(t){var n=Qc(t.state),r=n!==this.unitWidth;r&&(this.unitWidth=n);var o=qx(t.state).number,i=o!==this.currentLineNumber;this.currentLineNumber=o;var a=t.state.facet(Gg).highlightActiveBlock&&i;(t.docChanged||t.viewportChanged||r||a)&&this.generate(t.state)}},{key:"generate",value:function(t){var n,r=new Wc,o=function(h){var p,v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h.state,m=new Set,g=ht(h.visibleRanges);try{for(g.s();!(p=g.n()).done;)for(var y=p.value,b=y.from,w=y.to,x=b;x<=w;){var k=v.doc.lineAt(x);m.has(k)||m.add(k),x=k.to+1}}catch(E){g.e(E)}finally{g.f()}return m}(this.view,t),i=t.facet(Gg),a=i.hideFirstIndent,s=i.markerType,c=new Mbt(o,t,this.unitWidth,s),u=ht(o);try{for(u.s();!(n=u.n()).done;){var l=n.value,f=c.get(l.number);if(f!=null&&f.level){var d=Pbt(f,this.unitWidth,a);r.add(l.from,l.from,Ue.line({class:"cm-indent-markers",attributes:{style:"--indent-markers: ".concat(d)}}))}}}catch(h){u.e(h)}finally{u.f()}this.decorations=r.finish()}}]),e}();function Rbt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return[Gg.of(e),Abt,io.fromClass(Tbt,{decorations:function(t){return t.decorations}})]}var Ibt=function(){function e(t){ot(this,e),this.view=t,this.indentUnit=Qc(t.state),this.initialPaddingLeft=null,this.generate(t.state)}return it(e,[{key:"update",value:function(t){var n=Qc(t.state);(n!==this.indentUnit||t.docChanged||t.viewportChanged)&&(this.indentUnit=n,this.generate(t.state))}},{key:"generate",value:function(t){var n=this,r=new Wc;this.initialPaddingLeft?this.addStyleToBuilder(r,t,this.initialPaddingLeft):this.view.requestMeasure({read:function(o){var i=o.contentDOM.querySelector(".cm-line");i&&(n.initialPaddingLeft=window.getComputedStyle(i).getPropertyValue("padding-left"),n.addStyleToBuilder(r,t,n.initialPaddingLeft)),n.decorations=r.finish()}}),this.decorations=r.finish()}},{key:"addStyleToBuilder",value:function(t,n,r){var o,i=ht(this.getVisibleLines(n));try{for(i.s();!(o=i.n()).done;){var a=o.value,s=this.getIndentSize(a),c="calc(".concat(s+this.indentUnit,"ch + ").concat(r,")");t.add(a.from,a.from,Ue.line({attributes:{style:"padding-left: ".concat(c,"; text-indent: -").concat(s+this.indentUnit,"ch;")}}))}}catch(u){i.e(u)}finally{i.f()}}},{key:"getVisibleLines",value:function(t){var n,r=new Set,o=null,i=ht(this.view.visibleRanges);try{for(i.s();!(n=i.n()).done;)for(var a=n.value,s=a.from,c=a.to,u=s;u<=c;){var l=t.doc.lineAt(u);o!==l&&(r.add(l),o=l),u=l.to+1}}catch(f){i.e(f)}finally{i.f()}return r}},{key:"getIndentSize",value:function(t){return t.text.length-t.text.trimStart().length}}]),e}(),Nbt=[io.fromClass(Ibt,{decorations:function(e){return e.decorations}})];function Dbt(e){Le(e,"svelte-10sadri",'.jse-text-mode.svelte-10sadri.svelte-10sadri{flex:1;box-sizing:border-box;display:flex;flex-direction:column;background:var(--jse-background-color)}.jse-text-mode.no-main-menu.svelte-10sadri.svelte-10sadri{border-top:var(--jse-main-border)}.jse-text-mode.svelte-10sadri .jse-contents.svelte-10sadri{flex:1;display:flex;position:relative;flex-direction:column;overflow:hidden;min-width:0;min-height:0;border-left:var(--jse-main-border);border-right:var(--jse-main-border)}.jse-text-mode.svelte-10sadri .jse-contents.svelte-10sadri:last-child{border-bottom:var(--jse-main-border)}.jse-text-mode.svelte-10sadri .jse-contents.jse-hidden.svelte-10sadri{visibility:hidden;position:absolute;top:0;left:0}.jse-text-mode.svelte-10sadri .jse-contents.svelte-10sadri .cm-editor{flex:1;overflow:hidden}.jse-text-mode.svelte-10sadri .jse-contents.svelte-10sadri .cm-editor .cm-scroller{font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);line-height:var(--jse-line-height);color:var(--jse-delimiter-color)}.jse-text-mode.svelte-10sadri .jse-contents.svelte-10sadri .cm-editor .cm-gutters{background:var(--jse-panel-background);color:var(--jse-panel-color-readonly);border-right:var(--jse-panel-border)}.jse-text-mode.svelte-10sadri .jse-contents.svelte-10sadri .cm-editor .cm-activeLine,.jse-text-mode.svelte-10sadri .jse-contents.svelte-10sadri .cm-editor .cm-activeLineGutter{background:var(--jse-active-line-background-color)}.jse-text-mode.svelte-10sadri .jse-contents.svelte-10sadri .cm-editor .cm-selectionBackground{background:var(--jse-selection-background-color)}.jse-text-mode.svelte-10sadri .jse-contents.svelte-10sadri .cm-editor .cm-searchMatch{background-color:var(--jse-search-match-color);outline:var(--jse-search-match-outline)}.jse-text-mode.svelte-10sadri .jse-contents.svelte-10sadri .cm-editor .cm-searchMatch.cm-searchMatch-selected{background-color:var(--jse-search-match-active-color);outline:var(--jse-search-match-active-outline)}.jse-text-mode.svelte-10sadri .jse-contents.svelte-10sadri .cm-editor .cm-selectionMatch{background-color:var(--jse-search-match-background-color)}.jse-text-mode.svelte-10sadri .jse-contents.svelte-10sadri .cm-editor .cm-foldPlaceholder{background:var(--jse-tag-background);color:var(--jse-tag-color);border:none;padding:0 var(--jse-padding)}.jse-text-mode.svelte-10sadri .jse-contents.svelte-10sadri .cm-editor .cm-tooltip{font-size:var(--jse-font-size);font-family:var(--jse-font-family);color:var(--jse-tooltip-color);background:var(--jse-tooltip-background);border:var(--jse-tooltip-border)}.jse-text-mode.svelte-10sadri .jse-contents.svelte-10sadri .cm-editor .cm-diagnosticAction{background:var(--jse-tooltip-action-button-color);background:var(--jse-tooltip-action-button-background)}.jse-text-mode.svelte-10sadri .jse-contents.svelte-10sadri .cm-editor .cm-panels{border-bottom:var(--jse-panel-border)}.jse-text-mode.svelte-10sadri .jse-contents.svelte-10sadri .cm-editor .cm-search{background:var(--jse-panel-background);color:var(--jse-panel-color);font-family:var(--jse-font-family);font-size:var(--jse-font-size)}.jse-text-mode.svelte-10sadri .jse-contents.svelte-10sadri .cm-editor .cm-search input{font-family:var(--jse-font-family);font-size:var(--jse-font-size-text-mode-search);color:var(--jse-input-color);border:var(--jse-input-border);background:var(--jse-input-background);margin-right:2px}.jse-text-mode.svelte-10sadri .jse-contents.svelte-10sadri .cm-editor .cm-search button{font-family:var(--jse-font-family);font-size:var(--jse-font-size-text-mode-search);color:var(--jse-panel-button-color);background:var(--jse-panel-button-background);border:none;cursor:pointer;text-transform:capitalize;padding:calc(0.5 * var(--jse-padding)) var(--jse-padding);margin:0}.jse-text-mode.svelte-10sadri .jse-contents.svelte-10sadri .cm-editor .cm-search button:hover{color:var(--jse-panel-button-color-highlight);background:var(--jse-panel-button-background-highlight)}.jse-text-mode.svelte-10sadri .jse-contents.svelte-10sadri .cm-editor .cm-search label{font-family:var(--jse-font-family);font-size:var(--jse-font-size-text-mode-search);padding-left:var(--jse-padding)}.jse-text-mode.svelte-10sadri .jse-contents.svelte-10sadri .cm-editor .cm-search label input{margin-right:2px}.jse-text-mode.svelte-10sadri .jse-contents.svelte-10sadri .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-10sadri .jse-contents.svelte-10sadri .cm-editor .cm-cursor-primary{border-color:var(--jse-text-color)}.jse-text-mode.svelte-10sadri .jse-contents .jse-loading-space.svelte-10sadri{flex:1}.jse-text-mode.svelte-10sadri .jse-contents .jse-loading.svelte-10sadri{flex:2;text-align:center;color:var(--jse-panel-color-readonly);box-sizing:border-box;font-family:var(--jse-font-family);font-size:var(--jse-font-size)}.jse-text-mode.svelte-10sadri .jse-contents.jse-preview.svelte-10sadri{flex:1;font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);color:var(--jse-panel-color-readonly);overflow:auto;white-space:pre-wrap;word-break:break-word;padding:2px}')}function Zy(e){var t=e.slice(),n=t[11].length===0;return t[98]=n,t}function uR(e){var t,n;return t=new mgt({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[98],canCompact:!e[98],canSort:!e[98],canTransform:!e[98],canUndo:e[12],canRedo:e[13],onRenderMenu:e[4]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};2&o[0]&&(i.readOnly=r[1]),2048&o[0]&&(i.canFormat=!r[98]),2048&o[0]&&(i.canCompact=!r[98]),2048&o[0]&&(i.canSort=!r[98]),2048&o[0]&&(i.canTransform=!r[98]),4096&o[0]&&(i.canUndo=r[12]),8192&o[0]&&(i.canRedo=r[13]),16&o[0]&&(i.onRenderMenu=r[4]),t.$set(i)},i:function(r){n||(z(t.$$.fragment,r),n=!0)},o:function(r){V(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function Lbt(e){var t;return{c:function(){(t=tt("div")).innerHTML='<div class="jse-loading-space svelte-10sadri"></div> <div class="jse-loading svelte-10sadri">loading...</div>',S(t,"class","jse-contents svelte-10sadri")},m:function(n,r){ft(n,t,r)},p:Ht,i:Ht,o:Ht,d:function(n){n&<(t)}}}function zbt(e){var t,n,r,o,i,a=e[97]&&lR(e),s=!e[97]&&fR(e);return{c:function(){t=tt("div"),n=kt(),a&&a.c(),r=kt(),s&&s.c(),o=Sn(),S(t,"class","jse-contents svelte-10sadri"),Dt(t,"jse-hidden",e[97])},m:function(c,u){ft(c,t,u),e[52](t),ft(c,n,u),a&&a.m(c,u),ft(c,r,u),s&&s.m(c,u),ft(c,o,u),i=!0},p:function(c,u){(!i||268438016&u[0])&&Dt(t,"jse-hidden",c[97]),c[97]?a?(a.p(c,u),2560&u[0]&&z(a,1)):((a=lR(c)).c(),z(a,1),a.m(r.parentNode,r)):a&&(Bt(),V(a,1,1,function(){a=null}),Ft()),c[97]?s&&(Bt(),V(s,1,1,function(){s=null}),Ft()):s?(s.p(c,u),2560&u[0]&&z(s,1)):((s=fR(c)).c(),z(s,1),s.m(o.parentNode,o))},i:function(c){i||(z(a),z(s),i=!0)},o:function(c){V(a),V(s),i=!1},d:function(c){c&&(lt(t),lt(n),lt(r),lt(o)),e[52](null),a&&a.d(c),s&&s.d(c)}}}function lR(e){var t,n,r,o,i,a=Hs(e[11]||"",rw)+"";return t=new Aa({props:{icon:dl,type:"error",message:"The JSON document is larger than ".concat(mv(ow,1024),", ")+"and may crash your browser when loading it in text mode. Actual size: ".concat(mv(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(){Pt(t.$$.fragment),n=kt(),r=tt("div"),o=Gt(a),S(r,"class","jse-contents jse-preview svelte-10sadri")},m:function(s,c){Mt(t,s,c),ft(s,n,c),ft(s,r,c),H(r,o),i=!0},p:function(s,c){var u={};2048&c[0]&&(u.message="The JSON document is larger than ".concat(mv(ow,1024),", ")+"and may crash your browser when loading it in text mode. Actual size: ".concat(mv(s[11].length,1024),".")),t.$set(u),(!i||2048&c[0])&&a!==(a=Hs(s[11]||"",rw)+"")&&we(o,a)},i:function(s){i||(z(t.$$.fragment,s),i=!0)},o:function(s){V(t.$$.fragment,s),i=!1},d:function(s){s&&(lt(n),lt(r)),At(t,s)}}}function fR(e){var t,n,r,o,i,a=!e[14]&&e[0]&&qO(e[11]),s=e[3]&&dR(e),c=e[14]&&hR(e),u=a&&pR(e);return o=new bj({props:{validationErrors:e[10],selectError:e[27]}}),{c:function(){s&&s.c(),t=kt(),c&&c.c(),n=kt(),u&&u.c(),r=kt(),Pt(o.$$.fragment)},m:function(l,f){s&&s.m(l,f),ft(l,t,f),c&&c.m(l,f),ft(l,n,f),u&&u.m(l,f),ft(l,r,f),Mt(o,l,f),i=!0},p:function(l,f){l[3]?s?(s.p(l,f),8&f[0]&&z(s,1)):((s=dR(l)).c(),z(s,1),s.m(t.parentNode,t)):s&&(Bt(),V(s,1,1,function(){s=null}),Ft()),l[14]?c?(c.p(l,f),16384&f[0]&&z(c,1)):((c=hR(l)).c(),z(c,1),c.m(n.parentNode,n)):c&&(Bt(),V(c,1,1,function(){c=null}),Ft()),18433&f[0]&&(a=!l[14]&&l[0]&&qO(l[11])),a?u?(u.p(l,f),18433&f[0]&&z(u,1)):((u=pR(l)).c(),z(u,1),u.m(r.parentNode,r)):u&&(Bt(),V(u,1,1,function(){u=null}),Ft());var d={};1024&f[0]&&(d.validationErrors=l[10]),o.$set(d)},i:function(l){i||(z(s),z(c),z(u),z(o.$$.fragment,l),i=!0)},o:function(l){V(s),V(c),V(u),V(o.$$.fragment,l),i=!1},d:function(l){l&&(lt(t),lt(n),lt(r)),s&&s.d(l),c&&c.d(l),u&&u.d(l),At(o,l)}}}function dR(e){var t,n;return t=new Cbt({props:{editorState:e[8]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};256&o[0]&&(i.editorState=r[8]),t.$set(i)},i:function(r){n||(z(t.$$.fragment,r),n=!0)},o:function(r){V(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function hR(e){var t,n;return t=new Aa({props:{type:"error",icon:dl,message:e[14].message,actions:e[15],onClick:e[29],onClose:e[5]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};16384&o[0]&&(i.message=r[14].message),32768&o[0]&&(i.actions=r[15]),t.$set(i)},i:function(r){n||(z(t.$$.fragment,r),n=!0)},o:function(r){V(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function pR(e){var t,n;return t=new Aa({props:{type:"success",message:"Do you want to format the JSON?",actions:[{icon:Lw,text:"Format",title:"Format JSON: add proper indentation and new lines (Ctrl+I)",onClick:e[17]},{icon:Ef,text:"No thanks",title:"Close this message",onClick:e[53]}],onClose:e[5]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};1&o[0]&&(i.actions=[{icon:Lw,text:"Format",title:"Format JSON: add proper indentation and new lines (Ctrl+I)",onClick:r[17]},{icon:Ef,text:"No thanks",title:"Close this message",onClick:r[53]}]),t.$set(i)},i:function(r){n||(z(t.$$.fragment,r),n=!0)},o:function(r){V(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function Bbt(e){var t,n,r,o,i,a=e[2]&&uR(Zy(e)),s=[zbt,Lbt],c=[];function u(l,f){return f===0?function(d){var h=d.slice(),p=h[28](h[11],h[9]);return h[97]=p,h}(l):l}return r=function(l,f){return l[16]?1:0}(e),o=c[r]=s[r](u(e,r)),{c:function(){t=tt("div"),a&&a.c(),n=kt(),o.c(),S(t,"class","jse-text-mode svelte-10sadri"),Dt(t,"no-main-menu",!e[2])},m:function(l,f){ft(l,t,f),a&&a.m(t,null),H(t,n),c[r].m(t,null),e[54](t),i=!0},p:function(l,f){l[2]?a?(a.p(Zy(l),f),4&f[0]&&z(a,1)):((a=uR(Zy(l))).c(),z(a,1),a.m(t,n)):a&&(Bt(),V(a,1,1,function(){a=null}),Ft()),o.p(u(l,r),f),(!i||4&f[0])&&Dt(t,"no-main-menu",!l[2])},i:function(l){i||(z(a),z(o),i=!0)},o:function(l){V(a),V(o),i=!1},d:function(l){l&<(t),a&&a.d(),c[r].d(),e[54](null)}}}function vR(e){return{from:e.from||0,to:e.to||0,message:e.message||"",actions:e.actions,severity:e.severity}}function Fbt(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,p=t.externalSelection,v=t.indentation,m=t.tabSize,g=t.escapeUnicodeCharacters,y=t.parser,b=t.validator,w=t.validationParser,x=t.onChange,k=t.onChangeMode,E=t.onSelect,_=t.onError,T=t.onFocus,$=t.onBlur,j=t.onRenderMenu,R=t.onSortModal,q=t.onTransformModal,O=po("jsoneditor:TextMode"),F={key:"Mod-i",run:rt,shift:X,preventDefault:!0},J=typeof window>"u";O("isSSR:",J);var I=!1,D=[],C=new Su,M=new Su,P=new Su,B=new Su,A=new Su,W=h,N=Sw(W,v,y),dt=g;Wi(Ae(qt().mark(function Et(){return qt().wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:if(!J){ie.next=2;break}return ie.abrupt("return");case 2:try{s=mt({target:i,initialText:qn(N,I)?"":r.escapeValue(N),readOnly:u,indentation:v})}catch(Be){console.error(Be)}case 3:case"end":return ie.stop()}},Et)}))),gi(function(){s&&(O("Destroy CodeMirror editor"),s.destroy())});var et=!1,yt=!1,bt=Zu(),jt=Zu();function gt(){s&&(O("focus"),s.focus())}var Y=!1;function K(Et){O("patch",Et);var ie=y.parse(N),Be=xa(ie,Et),nn=nD(ie,Et);return Qt({text:y.stringify(Be,null,v)}),{json:Be,previousJson:ie,undo:nn,redo:Et}}function rt(){if(O("format"),u)return!1;try{var Et=y.parse(N);return Qt({text:y.stringify(Et,null,v)}),n(0,d=!0),!0}catch(ie){_(ie)}return!1}function X(){if(O("compact"),u)return!1;try{var Et=y.parse(N);return Qt({text:y.stringify(Et)}),n(0,d=!1),!0}catch(ie){_(ie)}return!1}function _t(){if(O("repair"),!u)try{Qt({text:Xa(N)}),n(51,In=V1),n(14,Xn=null)}catch(Et){_(Et)}}function L(Et){var ie=Et.id,Be=Et.rootPath,nn=Et.onTransform,$t=Et.onClose;try{var Xt=y.parse(N);Y=!0,q({id:ie||jt,json:Xt,rootPath:Be||[],onTransform:function(Q){nn?nn({operations:Q,json:Xt,transformedJson:xa(Xt,Q)}):(O("onTransform",Q),K(Q))},onClose:function(){Y=!1,gt(),$t&&$t()}})}catch(Q){_(Q)}}function U(Et,ie){O("setSelection",{anchor:Et,head:ie}),s&&s.dispatch(s.state.update({selection:{anchor:Et,head:ie},scrollIntoView:!0}))}function G(Et,ie){if(ie.state.selection.ranges.length===1){var Be=ie.state.selection.ranges[0],nn=N.slice(Be.from,Be.to);if(nn==="{"||nn==="["){var $t=ag.parse(N),Xt=Object.keys($t.pointers).find(function(at){var vt;return((vt=$t.pointers[at].value)===null||vt===void 0?void 0:vt.pos)===Be.from}),Q=$t.pointers[Xt];Xt&&Q&&Q.value&&Q.valueEnd&&(O("pointer found, selecting inner contents of path:",Xt,Q),U(Q.value.pos+1,Q.valueEnd.pos-1))}}}function pt(){return function(Et){var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return[Tu.of({source:Et,config:ie}),yyt,iH]}($n,{delay:300})}function mt(Et){var ie=Et.target,Be=Et.initialText,nn=Et.readOnly,$t=Et.indentation;O("Create CodeMirror editor",{readOnly:nn,indentation:$t});var Xt,Q=fr.create({doc:Be,selection:te(p),extensions:[Ag.of([hyt,F]),C.of(pt()),Syt(),K0t(),G0t,_0t(),Y1t(),$1t(),m0t(),[Hd,w0t],fr.allowMultipleSelections.of(!0),fr.transactionFilter.of(function(at){if(!at.docChanged||!at.isUserEvent("input.type")&&!at.isUserEvent("input.complete"))return at;var vt=at.startState.languageDataAt("indentOnInput",at.startState.selection.main.head);if(!vt.length)return at;var ut=at.newDoc,It=at.newSelection.main.head,ee=ut.lineAt(It);if(It>ee.from+w1t)return at;var pe=ut.sliceString(ee.from,It);if(!vt.some(function(Nt){return Nt.test(pe)}))return at;var Xe,Fe=at.state,kn=-1,On=[],ke=ht(Fe.selection.ranges);try{for(ke.s();!(Xe=ke.n()).done;){var gn=Xe.value.head,pn=Fe.doc.lineAt(gn);if(pn.from!=kn){kn=pn.from;var Zn=zj(Fe,pn.from);if(Zn!=null){var yn=/^\s*/.exec(pn.text)[0],ct=Xh(Fe,Zn);yn!=ct&&On.push({from:pn.from,to:pn.from+yn.length,insert:ct})}}}}catch(Nt){ke.e(Nt)}finally{ke.f()}return On.length?[at,{changes:On,sequential:!0}]:at}),gq(M1t,{fallback:!0}),D1t(),[gbt,bH],kbt(),M0t(),T0t(),E0t,(Xt=[Vyt,Hyt],Xt),Ag.of([].concat(ybt,$e(dyt),Zyt,ayt,k1t,jH,gyt)),Ebt,Rbt({hideFirstIndent:!0}),ye.domEventHandlers({dblclick:G}),ye.updateListener.of(function(at){n(8,c=at.state),at.docChanged?Ie():at.selectionSet&&Ke()}),new p1t(Dyt),Wyt({top:!0}),M.of(fr.readOnly.of(nn)),B.of(fr.tabSize.of(m)),P.of(le($t)),A.of(ye.theme({},{dark:Ot()})),ye.lineWrapping,Nbt]});return s=new ye({state:Q,parent:ie})}function Ot(){return!!i&&getComputedStyle(i).getPropertyValue("--jse-theme").includes("dark")}function Ct(Et){var ie=Et.path,Be=Et.message,nn=function($t,Xt){try{var Q=ag.parse($t),at=oe(Xt),vt=Q.pointers[at];if(vt)return{path:Xt,line:vt.key?vt.key.line:vt.value?vt.value.line:0,column:vt.key?vt.key.column:vt.value?vt.value.column:0,from:vt.key?vt.key.pos:vt.value?vt.value.pos:0,to:vt.keyEnd?vt.keyEnd.pos:vt.valueEnd?vt.valueEnd.pos:0}}catch(ut){console.error(ut)}return null}(r.escapeValue(N),ie);return{path:ie,line:nn.line,column:nn.column,from:nn.from,to:nn.to,message:Be,severity:Fs.warning,actions:[]}}function Vt(Et,ie){var Be=Et.line,nn=Et.column,$t=Et.position,Xt=Et.message;return{path:[],line:Be,column:nn,from:$t,to:$t,severity:Fs.error,message:Xt,actions:ie&&!u?[{name:"Auto repair",apply:function(){return _t()}}]:null}}function Qt(Et){var ie=arguments.length>1&&arguments[1]!==void 0&&arguments[1],Be=Sw(Et,v,y),nn=!an(Et,W),$t=W;W=Et,n(11,N=Be),O("setCodeMirrorContent",{isChanged:nn,forceUpdate:ie}),s&&(nn||ie)&&(qn(N,I)||s.dispatch({changes:{from:0,to:s.state.doc.length,insert:r.escapeValue(N)}}),xn(),nn&&Ye(W,$t))}function te(Et){return Ew(Et)?Jt.fromJSON(Et):void 0}function Kt(){return(Kt=Ae(qt().mark(function Et(){return qt().wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:return O("refresh"),ie.next=3,Me();case 3:case"end":return ie.stop()}},Et)}))).apply(this,arguments)}function ue(){if(s){var Et=s?r.unescapeValue(s.state.doc.toString()):"",ie=Et!==N;if(O("onChangeCodeMirrorValue",{isChanged:ie}),ie){var Be=W;n(11,N=Et),W={text:N},xn(),Ye(W,Be),Ke()}}}function Me(){return en.apply(this,arguments)}function en(){return(en=Ae(qt().mark(function Et(){var ie;return qt().wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:return Be.next=2,br();case 2:s&&(ie=Ot(),O("updateTheme",{dark:ie}),s.dispatch({effects:[A.reconfigure(ye.theme({},{dark:ie}))]}));case 3:case"end":return Be.stop()}},Et)}))).apply(this,arguments)}function le(Et){return a1.of(typeof Et=="number"?" ".repeat(Et):Et)}function xn(){n(12,et=tyt(s.state)>0),n(13,yt=eyt(s.state)>0),O({canUndo:et,canRedo:yt})}gi(function(){mn()}),yj({onMount:Wi,onDestroy:gi,getWindow:function(){return nd(a)},hasFocus:function(){return Y&&document.hasFocus()||mg(a)},onFocus:T,onBlur:function(){mn(),$()}});var Ie=wp(ue,300);function mn(){Ie.flush()}function Ye(Et,ie){x&&x(Et,ie,{contentErrors:En(),patchResult:null})}function Ke(){E(xt({type:Bn.text},c.selection.toJSON()))}function qn(Et,ie){return!!Et&&Et.length>ow&&!ie}var In=V1,Xn=null;function $n(){if(qn(N,I))return[];var Et=En();return hM(Et)?[vR(Vt(Et.parseError,Et.isRepairable))]:npt(Et)?Et.validationErrors.map(Ct).map(vR):[]}function En(){O("validate:start"),mn();var Et=Nn(r.escapeValue(N),b,y,w);return hM(Et)?(n(51,In=Et.isRepairable?dE:"invalid"),n(14,Xn=Et.parseError),n(10,D=[])):(n(51,In=V1),n(14,Xn=null),n(10,D=(Et==null?void 0:Et.validationErrors)||[])),O("validate:end"),Et}var Nn=Ap(Dht);function sr(){Xn&&function(Et){O("select parse error",Et);var ie=Vt(Et,!1);U(ie.from,ie.to),gt()}(Xn)}var Pr={icon:wdt,text:"Show me",title:"Move to the parse error location",onClick:sr};return e.$$set=function(Et){"readOnly"in Et&&n(1,u=Et.readOnly),"mainMenuBar"in Et&&n(2,l=Et.mainMenuBar),"statusBar"in Et&&n(3,f=Et.statusBar),"askToFormat"in Et&&n(0,d=Et.askToFormat),"externalContent"in Et&&n(30,h=Et.externalContent),"externalSelection"in Et&&n(31,p=Et.externalSelection),"indentation"in Et&&n(32,v=Et.indentation),"tabSize"in Et&&n(33,m=Et.tabSize),"escapeUnicodeCharacters"in Et&&n(34,g=Et.escapeUnicodeCharacters),"parser"in Et&&n(35,y=Et.parser),"validator"in Et&&n(36,b=Et.validator),"validationParser"in Et&&n(37,w=Et.validationParser),"onChange"in Et&&n(38,x=Et.onChange),"onChangeMode"in Et&&n(39,k=Et.onChangeMode),"onSelect"in Et&&n(40,E=Et.onSelect),"onError"in Et&&n(41,_=Et.onError),"onFocus"in Et&&n(42,T=Et.onFocus),"onBlur"in Et&&n(43,$=Et.onBlur),"onRenderMenu"in Et&&n(4,j=Et.onRenderMenu),"onSortModal"in Et&&n(44,R=Et.onSortModal),"onTransformModal"in Et&&n(45,q=Et.onTransformModal)},e.$$.update=function(){8&e.$$.dirty[1]&&(r=cj({escapeControlCharacters:!1,escapeUnicodeCharacters:g})),1073741824&e.$$.dirty[0]&&Qt(h),1&e.$$.dirty[1]&&function(Et){if(Ew(Et)){var ie=te(Et);!s||!ie||c&&c.selection.eq(ie)||(O("applyExternalSelection",ie),s.dispatch({selection:ie}))}}(p),32&e.$$.dirty[1]&&function(Et){O("updateLinter",Et),s&&s.dispatch({effects:C.reconfigure(pt())})}(b),2&e.$$.dirty[1]&&function(Et){s&&(O("updateIndentation",Et),s.dispatch({effects:P.reconfigure(le(Et))}))}(v),4&e.$$.dirty[1]&&function(Et){s&&(O("updateTabSize",Et),s.dispatch({effects:B.reconfigure(fr.tabSize.of(Et))}))}(m),2&e.$$.dirty[0]&&function(Et){s&&(O("updateReadOnly",Et),s.dispatch({effects:[M.reconfigure(fr.readOnly.of(Et))]}))}(u),524296&e.$$.dirty[1]&&dt!==g&&(n(50,dt=g),O("forceUpdateText",{escapeUnicodeCharacters:g}),s&&s.dispatch({changes:{from:0,to:s.state.doc.length,insert:r.escapeValue(N)}})),2&e.$$.dirty[0]|1048576&e.$$.dirty[1]&&n(15,o=In!==dE||u?[Pr]:[{icon:J0,text:"Auto repair",title:"Automatically repair JSON",onClick:_t},Pr])},[d,u,l,f,j,gt,i,a,c,I,D,N,et,yt,Xn,o,J,rt,X,function(){var Et;if(!u)try{var ie=y.parse(N);Y=!0,R({id:bt,json:ie,rootPath:[],onSort:(Et=Ae(qt().mark(function Be(nn){var $t;return qt().wrap(function(Xt){for(;;)switch(Xt.prev=Xt.next){case 0:$t=nn.operations,O("onSort",$t),K($t);case 3:case"end":return Xt.stop()}},Be)})),function(Be){return Et.apply(this,arguments)}),onClose:function(){Y=!1,gt()}})}catch(Be){_(Be)}},function(){u||L({rootPath:[]})},function(){s&&(i&&i.querySelector(".cm-search")?Xj(s):Yj(s))},function(){u||s&&(Wj(s),gt())},function(){u||s&&(zg(s),gt())},function(){n(9,I=!0),Qt(h,!0)},function(){k(wo.tree)},function(){ue()},function(Et){O("select validation error",Et);var ie=Ct(Et);U(ie.from,ie.to),gt()},qn,sr,h,p,v,m,g,y,b,w,x,k,E,_,T,$,R,q,K,L,function(){return Kt.apply(this,arguments)},En,dt,In,function(Et){Ze[Et?"unshift":"push"](function(){n(6,i=Et)})},function(){return n(0,d=!1)},function(Et){Ze[Et?"unshift":"push"](function(){n(7,a=Et)})}]}var qbt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,Fbt,Bbt,qe,{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,openTransformModal:47,refresh:48,validate:49},Dbt,[-1,-1,-1,-1]),o}return it(n,[{key:"focus",get:function(){return this.$$.ctx[5]}},{key:"patch",get:function(){return this.$$.ctx[46]}},{key:"openTransformModal",get:function(){return this.$$.ctx[47]}},{key:"refresh",get:function(){return this.$$.ctx[48]}},{key:"validate",get:function(){return this.$$.ctx[49]}}]),n}();function Hbt(e){var t,n;return t=new e1({props:{items:e[0]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};1&Ce(o,1)[0]&&(i.items=r[0]),t.$set(i)},i:function(r){n||(z(t.$$.fragment,r),n=!0)},o:function(r){V(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function Vbt(e,t,n){var r,o,i=t.json,a=t.readOnly,s=t.historyState,c=t.onSort,u=t.onTransform,l=t.onContextMenu,f=t.onUndo,d=t.onRedo,h=t.onRenderMenu;return e.$$set=function(p){"json"in p&&n(1,i=p.json),"readOnly"in p&&n(2,a=p.readOnly),"historyState"in p&&n(3,s=p.historyState),"onSort"in p&&n(4,c=p.onSort),"onTransform"in p&&n(5,u=p.onTransform),"onContextMenu"in p&&n(6,l=p.onContextMenu),"onUndo"in p&&n(7,f=p.onUndo),"onRedo"in p&&n(8,d=p.onRedo),"onRenderMenu"in p&&n(9,h=p.onRenderMenu)},e.$$.update=function(){510&e.$$.dirty&&n(10,r=a?[{type:"space"}]:[{type:"button",icon:G0,title:"Sort",className:"jse-sort",onClick:c,disabled:a||i===void 0},{type:"button",icon:K0,title:"Transform contents (filter, sort, project)",className:"jse-transform",onClick:u,disabled:a||i===void 0},{type:"button",icon:aB,title:Zk,className:"jse-contextmenu",onClick:l},{type:"separator"},{type:"button",icon:vj,title:"Undo (Ctrl+Z)",className:"jse-undo",onClick:f,disabled:!s.canUndo},{type:"button",icon:pj,title:"Redo (Ctrl+Shift+Z)",className:"jse-redo",onClick:d,disabled:!s.canRedo},{type:"space"}]),1536&e.$$.dirty&&n(0,o=h(r)||r)},[o,i,a,s,c,u,l,f,d,h,r]}var Wbt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,Vbt,Hbt,qe,{json:1,readOnly:2,historyState:3,onSort:4,onTransform:5,onContextMenu:6,onUndo:7,onRedo:8,onRenderMenu:9}),o}return it(n)}();function mR(e,t,n){var r=e.slice();return r[9]=t[n],r}function gR(e){var t,n,r,o=[e[9].props],i=e[9].component;function a(s,c){var u={};if(c!==void 0&&1&c)u=Ui(o,[Gu(s[9].props)]);else for(var l=0;l<o.length;l+=1)u=oi(u,o[l]);return{props:u}}return i&&(t=cs(i,a(e))),{c:function(){t&&Pt(t.$$.fragment),n=Sn()},m:function(s,c){t&&Mt(t,s,c),ft(s,n,c),r=!0},p:function(s,c){if(1&c&&i!==(i=s[9].component)){if(t){Bt();var u=t;V(u.$$.fragment,1,0,function(){At(u,1)}),Ft()}i?(Pt((t=cs(i,a(s,c))).$$.fragment),z(t.$$.fragment,1),Mt(t,n.parentNode,n)):t=null}else if(i){var l=1&c?Ui(o,[Gu(s[9].props)]):{};t.$set(l)}},i:function(s){r||(t&&z(t.$$.fragment,s),r=!0)},o:function(s){t&&V(t.$$.fragment,s),r=!1},d:function(s){s&<(n),t&&At(t,s)}}}function Ubt(e){for(var t,n,r=De(e[0]),o=[],i=0;i<r.length;i+=1)o[i]=gR(mR(e,r,i));var a=function(s){return V(o[s],1,1,function(){o[s]=null})};return{c:function(){for(var s=0;s<o.length;s+=1)o[s].c();t=Sn()},m:function(s,c){for(var u=0;u<o.length;u+=1)o[u]&&o[u].m(s,c);ft(s,t,c),n=!0},p:function(s,c){var u=Ce(c,1)[0];if(1&u){var l;for(r=De(s[0]),l=0;l<r.length;l+=1){var f=mR(s,r,l);o[l]?(o[l].p(f,u),z(o[l],1)):(o[l]=gR(f),o[l].c(),z(o[l],1),o[l].m(t.parentNode,t))}for(Bt(),l=r.length;l<o.length;l+=1)a(l);Ft()}},i:function(s){if(!n){for(var c=0;c<r.length;c+=1)z(o[c]);n=!0}},o:function(s){o=o.filter(Boolean);for(var c=0;c<o.length;c+=1)V(o[c]);n=!1},d:function(s){s&<(t),Dr(o,s)}}}function Kbt(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(d,h){return s.onPatch(function(p,v){return p.flatMap(function(m){if(n2(m)){var g=Ca(m.path);if(g.length>0){for(var y=[m],b=on(g);b.length>0&&!Bi(v,b);)y.unshift({op:"add",path:oe(b),value:{}}),b=on(b);return y}}return m})}(d,s.getJson()),h)}return e.$$set=function(d){"path"in d&&n(1,i=d.path),"value"in d&&n(2,a=d.value),"context"in d&&n(3,s=d.context),"enforceString"in d&&n(4,c=d.enforceString),"selection"in d&&n(5,u=d.selection),"searchResultItems"in d&&n(6,l=d.searchResultItems)},e.$$.update=function(){40&e.$$.dirty&&n(7,r=!s.readOnly&&dn(u)&&Gi(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 Jbt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,Kbt,Ubt,qe,{path:1,value:2,context:3,enforceString:4,selection:5,searchResultItems:6}),o}return it(n)}();function Gbt(e){Le(e,"svelte-l28mqd",".jse-inline-value.svelte-l28mqd{font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);line-height:var(--jse-line-height);border:none;padding:0 calc(0.5 * var(--jse-padding));background:transparent;color:inherit;cursor:pointer}.jse-inline-value.svelte-l28mqd:hover{background:var(--jse-hover-background-color)}.jse-inline-value.jse-selected.svelte-l28mqd{background:var(--jse-selection-background-color)}")}function Qbt(e){var t,n,r,o,i=Hs(e[2].stringify(e[1]),50)+"";return{c:function(){t=tt("button"),n=Gt(i),S(t,"type","button"),S(t,"class","jse-inline-value svelte-l28mqd"),Dt(t,"jse-selected",e[3])},m:function(a,s){ft(a,t,s),H(t,n),r||(o=zt(t,"dblclick",e[5]),r=!0)},p:function(a,s){var c=Ce(s,1)[0];6&c&&i!==(i=Hs(a[2].stringify(a[1]),50)+"")&&we(n,i),8&c&&Dt(t,"jse-selected",a[3])},i:Ht,o:Ht,d:function(a){a&<(t),r=!1,o()}}}function Ybt(e,t,n){var r=t.path,o=t.value,i=t.parser,a=t.isSelected,s=t.onEdit;return e.$$set=function(c){"path"in c&&n(0,r=c.path),"value"in c&&n(1,o=c.value),"parser"in c&&n(2,i=c.parser),"isSelected"in c&&n(3,a=c.isSelected),"onEdit"in c&&n(4,s=c.onEdit)},[r,o,i,a,s,function(){return s(r)}]}var Xbt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,Ybt,Qbt,qe,{path:0,value:1,parser:2,isSelected:3,onEdit:4},Gbt),o}return it(n)}();function Zbt(e){Le(e,"svelte-h4fort",".jse-column-header.svelte-h4fort.svelte-h4fort{background:none;border:none;font-family:inherit;font-size:inherit;color:inherit;display:flex;gap:var(--jse-padding);padding:calc(0.5 * var(--jse-padding)) var(--jse-padding) calc(0.5 * var(--jse-padding)) calc(0.5 * var(--jse-padding));width:100%}.jse-column-header.svelte-h4fort.svelte-h4fort:hover{background:var(--jse-table-header-background-highlight)}.jse-column-header.svelte-h4fort.svelte-h4fort:not(.jse-column-header.jse-readonly){cursor:pointer}.jse-column-header.svelte-h4fort span.jse-column-sort-icon.svelte-h4fort{height:1em}")}function yR(e){var t,n,r,o;return n=new hn({props:{data:e[1]===zi.asc?Ri:g6}}),{c:function(){t=tt("span"),Pt(n.$$.fragment),S(t,"class","jse-column-sort-icon svelte-h4fort"),S(t,"title",r="Currently sorted in ".concat(e[2]," order"))},m:function(i,a){ft(i,t,a),Mt(n,t,null),o=!0},p:function(i,a){var s={};2&a&&(s.data=i[1]===zi.asc?Ri:g6),n.$set(s),(!o||4&a&&r!==(r="Currently sorted in ".concat(i[2]," order")))&&S(t,"title",r)},i:function(i){o||(z(n.$$.fragment,i),o=!0)},o:function(i){V(n.$$.fragment,i),o=!1},d:function(i){i&<(t),At(n)}}}function twt(e){var t,n,r,o,i,a,s,c,u=Hs(e[3],50)+"",l=e[1]!==void 0&&yR(e);return{c:function(){t=tt("button"),n=tt("span"),r=Gt(u),o=kt(),l&&l.c(),S(n,"class","jse-column-name"),S(t,"type","button"),S(t,"class","jse-column-header svelte-h4fort"),S(t,"title",i=e[0]?e[3]:e[3]+" (Click to sort the data by this column)"),Dt(t,"jse-readonly",e[0])},m:function(f,d){ft(f,t,d),H(t,n),H(n,r),H(t,o),l&&l.m(t,null),a=!0,s||(c=zt(t,"click",e[4]),s=!0)},p:function(f,d){var h=Ce(d,1)[0];(!a||8&h)&&u!==(u=Hs(f[3],50)+"")&&we(r,u),f[1]!==void 0?l?(l.p(f,h),2&h&&z(l,1)):((l=yR(f)).c(),z(l,1),l.m(t,null)):l&&(Bt(),V(l,1,1,function(){l=null}),Ft()),(!a||9&h&&i!==(i=f[0]?f[3]:f[3]+" (Click to sort the data by this column)"))&&S(t,"title",i),(!a||1&h)&&Dt(t,"jse-readonly",f[0])},i:function(f){a||(z(l),a=!0)},o:function(f){V(l),a=!1},d:function(f){f&<(t),l&&l.d(),s=!1,c()}}}function ewt(e,t,n){var r,o,i,a=t.path,s=t.sortedColumn,c=t.readOnly,u=t.onSort;return e.$$set=function(l){"path"in l&&n(5,a=l.path),"sortedColumn"in l&&n(6,s=l.sortedColumn),"readOnly"in l&&n(0,c=l.readOnly),"onSort"in l&&n(7,u=l.onSort)},e.$$.update=function(){var l;32&e.$$.dirty&&n(3,r=cn(a)?"values":ai(a)),96&e.$$.dirty&&n(1,o=s&&an(a,(l=s)===null||l===void 0?void 0:l.path)?s.sortDirection:void 0),2&e.$$.dirty&&n(2,i=o?EZ[o]:void 0)},[c,o,i,r,function(){c||u({path:a,sortDirection:o===zi.asc?zi.desc:zi.asc})},a,s,u]}var Hv,Vv,nwt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,ewt,twt,qe,{path:5,sortedColumn:6,readOnly:0,onSort:7},Zbt),o}return it(n)}();function _H(e,t){return Hv||(Vv=new WeakMap,Hv=new ResizeObserver(function(n){var r,o=ht(n);try{for(o.s();!(r=o.n()).done;){var i=r.value,a=Vv.get(i.target);a&&a(i.target)}}catch(s){o.e(s)}finally{o.f()}})),Vv.set(e,t),Hv.observe(e),{destroy:function(){Vv.delete(e),Hv.unobserve(e)}}}function rwt(e){var t,n;return t=new _B({props:{items:e[1],tip:e[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};2&o[0]&&(i.items=r[1]),1&o[0]&&(i.tip=r[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0),t.$set(i)},i:function(r){n||(z(t.$$.fragment,r),n=!0)},o:function(r){V(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function owt(e,t,n){var r,o,i,a,s,c,u,l,f,d=t.json,h=t.documentState,p=t.parser,v=t.showTip,m=t.onCloseContextMenu,g=t.onEditValue,y=t.onEditRow,b=t.onToggleEnforceString,w=t.onCut,x=t.onCopy,k=t.onPaste,E=t.onRemove,_=t.onDuplicateRow,T=t.onInsertBeforeRow,$=t.onInsertAfterRow,j=t.onRemoveRow;function R(){m(),g()}function q(){m(),y()}function O(){m(),b()}function F(){m(),w(!0)}function J(){m(),w(!1)}function I(){m(),x(!0)}function D(){m(),x(!1)}function C(){m(),k()}function M(){m(),E()}function P(){m(),_()}function B(){m(),T()}function A(){m(),$()}function W(){m(),j()}return e.$$set=function(N){"json"in N&&n(2,d=N.json),"documentState"in N&&n(3,h=N.documentState),"parser"in N&&n(4,p=N.parser),"showTip"in N&&n(0,v=N.showTip),"onCloseContextMenu"in N&&n(5,m=N.onCloseContextMenu),"onEditValue"in N&&n(6,g=N.onEditValue),"onEditRow"in N&&n(7,y=N.onEditRow),"onToggleEnforceString"in N&&n(8,b=N.onToggleEnforceString),"onCut"in N&&n(9,w=N.onCut),"onCopy"in N&&n(10,x=N.onCopy),"onPaste"in N&&n(11,k=N.onPaste),"onRemove"in N&&n(12,E=N.onRemove),"onDuplicateRow"in N&&n(13,_=N.onDuplicateRow),"onInsertBeforeRow"in N&&n(14,T=N.onInsertBeforeRow),"onInsertAfterRow"in N&&n(15,$=N.onInsertAfterRow),"onRemoveRow"in N&&n(16,j=N.onRemoveRow)},e.$$.update=function(){8&e.$$.dirty[0]&&n(22,r=h.selection),4&e.$$.dirty[0]&&n(24,o=d!==void 0),4194304&e.$$.dirty[0]&&n(17,i=!!r),4194308&e.$$.dirty[0]&&n(23,a=d!==void 0&&r?fe(d,ge(r)):void 0),20971520&e.$$.dirty[0]&&n(18,s=o&&(zn(r)||Fr(r)||dn(r))),20971520&e.$$.dirty[0]&&n(21,c=o&&r!=null&&bg(r)),10485760&e.$$.dirty[0]&&n(19,u=c&&!xr(a)),12582936&e.$$.dirty[0]&&n(20,l=r!=null&&Vs(a,h.enforceStringMap,oe(ge(r)),p)),4063232&e.$$.dirty[0]&&n(1,f=[{type:"separator"},{type:"row",items:[{type:"column",items:[{type:"label",text:"Table cell:"},{type:"dropdown-button",main:{type:"button",onClick:R,icon:nf,text:"Edit",title:"Edit the value (Double-click on the value)",disabled:!c},width:"11em",items:[{type:"button",icon:nf,text:"Edit",title:"Edit the value (Double-click on the value)",onClick:R,disabled:!c},{type:"button",icon:l?Ih:Nh,text:"Enforce string",title:"Enforce keeping the value as string when it contains a numeric value",onClick:O,disabled:!u}]},{type:"dropdown-button",main:{type:"button",onClick:F,icon:ef,text:"Cut",title:"Cut selected contents, formatted with indentation (Ctrl+X)",disabled:!s},width:"10em",items:[{type:"button",icon:ef,text:"Cut formatted",title:"Cut selected contents, formatted with indentation (Ctrl+X)",onClick:F,disabled:!s},{type:"button",icon:ef,text:"Cut compacted",title:"Cut selected contents, without indentation (Ctrl+Shift+X)",onClick:J,disabled:!s}]},{type:"dropdown-button",main:{type:"button",onClick:I,icon:Mc,text:"Copy",title:"Copy selected contents, formatted with indentation (Ctrl+C)",disabled:!s},width:"12em",items:[{type:"button",icon:Mc,text:"Copy formatted",title:"Copy selected contents, formatted with indentation (Ctrl+C)",onClick:I,disabled:!s},{type:"button",icon:Mc,text:"Copy compacted",title:"Copy selected contents, without indentation (Ctrl+Shift+C)",onClick:D,disabled:!s}]},{type:"button",onClick:C,icon:oB,text:"Paste",title:"Paste clipboard contents (Ctrl+V)",disabled:!i},{type:"button",onClick:M,icon:Pw,text:"Remove",title:"Remove selected contents (Delete)",disabled:!s}]},{type:"column",items:[{type:"label",text:"Table row:"},{type:"button",onClick:q,icon:nf,text:"Edit row",title:"Edit the current row",disabled:!s},{type:"button",onClick:P,icon:cB,text:"Duplicate row",title:"Duplicate the current row",disabled:!i},{type:"button",onClick:B,icon:Ll,text:"Insert before",title:"Insert a row before the current row",disabled:!i},{type:"button",onClick:A,icon:Ll,text:"Insert after",title:"Insert a row after the current row",disabled:!i},{type:"button",onClick:W,icon:Pw,text:"Remove row",title:"Remove current row",disabled:!i}]}]}])},[v,f,d,h,p,m,g,y,b,w,x,k,E,_,T,$,j,i,s,u,l,c,r,a,o]}var iwt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,owt,rwt,qe,{json:2,documentState:3,parser:4,showTip:0,onCloseContextMenu:5,onEditValue:6,onEditRow:7,onToggleEnforceString:8,onCut:9,onCopy:10,onPaste:11,onRemove:12,onDuplicateRow:13,onInsertBeforeRow:14,onInsertAfterRow:15,onRemoveRow:16},null,[-1,-1]),o}return it(n)}();function awt(e){Le(e,"svelte-1te5h1h",".jse-table-mode-welcome.svelte-1te5h1h.svelte-1te5h1h{flex:1;display:flex;flex-direction:column;overflow:auto;align-items:center;border-left:var(--jse-main-border);border-right:var(--jse-main-border)}.jse-table-mode-welcome.svelte-1te5h1h.svelte-1te5h1h:last-child{border-bottom:var(--jse-main-border)}.jse-table-mode-welcome.svelte-1te5h1h .jse-space.jse-before.svelte-1te5h1h{flex:1}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays.svelte-1te5h1h{display:flex;flex-direction:column;gap:var(--jse-padding);max-width:300px;margin:var(--jse-padding);font-family:var(--jse-font-family);font-size:var(--jse-font-size)}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays .jse-nested-arrays-info.svelte-1te5h1h{color:var(--jse-panel-color-readonly)}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays button.jse-nested-array-action.svelte-1te5h1h{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px;text-align:left}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays button.jse-nested-array-action.svelte-1te5h1h:hover{background:var(--jse-button-primary-background-highlight)}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays button.jse-nested-array-action.svelte-1te5h1h:disabled{background:var(--jse-button-primary-background-disabled)}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays button.jse-nested-array-action .jse-nested-array-count.svelte-1te5h1h{opacity:0.5;white-space:nowrap}.jse-table-mode-welcome.svelte-1te5h1h .jse-space.jse-after.svelte-1te5h1h{flex:2}")}function bR(e,t,n){var r=e.slice();r[13]=t[n];var o=fe(r[0],r[13]).length;return r[14]=o,r}function swt(e){var t,n;return{c:function(){t=Gt(e[7]),n=Gt(" cannot be opened in table mode.")},m:function(r,o){ft(r,t,o),ft(r,n,o)},p:function(r,o){128&o&&we(t,r[7])},d:function(r){r&&(lt(t),lt(n))}}}function cwt(e){var t;return{c:function(){t=Gt(`An object cannot be opened in table mode. You can open a nested array instead, or open the
|
|
116
|
+
document in tree mode.`)},m:function(n,r){ft(n,t,r)},p:Ht,d:function(n){n&<(t)}}}function uwt(e){var t;return{c:function(){t=Gt("You can open the document in tree mode instead.")},m:function(n,r){ft(n,t,r)},d:function(n){n&<(t)}}}function lwt(e){var t,n,r;return{c:function(){t=Gt("You can open the document in tree mode instead, or paste a JSON Array using "),(n=tt("b")).textContent="Ctrl+V",r=Gt(".")},m:function(o,i){ft(o,t,i),ft(o,n,i),ft(o,r,i)},d:function(o){o&&(lt(t),lt(n),lt(r))}}}function wR(e){var t,n,r,o,i,a,s,c,u,l,f,d,h,p=ai(e[13])+"",v=e[14]+"",m=e[14]!==1?"items":"item";function g(){return e[11](e[13])}return{c:function(){t=tt("button"),n=Gt(e[8]),r=Gt(' "'),o=Gt(p),i=Gt(`"
|
|
117
|
+
`),a=tt("span"),s=Gt("("),c=Gt(v),u=kt(),l=Gt(m),f=Gt(")"),S(a,"class","jse-nested-array-count svelte-1te5h1h"),S(t,"type","button"),S(t,"class","jse-nested-array-action svelte-1te5h1h")},m:function(y,b){ft(y,t,b),H(t,n),H(t,r),H(t,o),H(t,i),H(t,a),H(a,s),H(a,c),H(a,u),H(a,l),H(a,f),d||(h=zt(t,"click",g),d=!0)},p:function(y,b){e=y,256&b&&we(n,e[8]),16&b&&p!==(p=ai(e[13])+"")&&we(o,p),17&b&&v!==(v=e[14]+"")&&we(c,v),17&b&&m!==(m=e[14]!==1?"items":"item")&&we(l,m)},d:function(y){y&<(t),d=!1,h()}}}function fwt(e){var t,n,r,o,i,a,s,c,u,l,f,d,h,p,v,m,g,y;function b(R,q){return R[6]?cwt:swt}var w=b(e),x=w(e);function k(R,q){return R[5]&&!R[1]?lwt:uwt}for(var E=k(e),_=E(e),T=De(e[4]),$=[],j=0;j<T.length;j+=1)$[j]=wR(bR(e,T,j));return{c:function(){t=tt("div"),n=tt("div"),r=kt(),o=tt("div"),i=tt("div"),a=Gt(e[7]),s=kt(),c=tt("div"),x.c(),u=kt(),_.c(),l=kt();for(var R=0;R<$.length;R+=1)$[R].c();f=kt(),d=tt("button"),h=Gt(e[8]),p=Gt(" in tree mode"),v=kt(),m=tt("div"),S(n,"class","jse-space jse-before svelte-1te5h1h"),S(i,"class","jse-nested-arrays-title"),S(c,"class","jse-nested-arrays-info svelte-1te5h1h"),S(d,"type","button"),S(d,"class","jse-nested-array-action svelte-1te5h1h"),S(o,"class","jse-nested-arrays svelte-1te5h1h"),S(m,"class","jse-space jse-after svelte-1te5h1h"),S(t,"class","jse-table-mode-welcome svelte-1te5h1h")},m:function(R,q){ft(R,t,q),H(t,n),H(t,r),H(t,o),H(o,i),H(i,a),H(o,s),H(o,c),x.m(c,null),H(c,u),_.m(c,null),H(o,l);for(var O=0;O<$.length;O+=1)$[O]&&$[O].m(o,null);H(o,f),H(o,d),H(d,h),H(d,p),H(t,v),H(t,m),g||(y=zt(d,"click",e[12]),g=!0)},p:function(R,q){var O=Ce(q,1)[0];if(128&O&&we(a,R[7]),w===(w=b(R))&&x?x.p(R,O):(x.d(1),(x=w(R))&&(x.c(),x.m(c,u))),E!==(E=k(R))&&(_.d(1),(_=E(R))&&(_.c(),_.m(c,null))),277&O){var F;for(T=De(R[4]),F=0;F<T.length;F+=1){var J=bR(R,T,F);$[F]?$[F].p(J,O):($[F]=wR(J),$[F].c(),$[F].m(o,f))}for(;F<$.length;F+=1)$[F].d(1);$.length=T.length}256&O&&we(h,R[8])},i:Ht,o:Ht,d:function(R){R&<(t),x.d(),_.d(),Dr($,R),g=!1,y()}}}function dwt(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;return e.$$set=function(p){"text"in p&&n(9,c=p.text),"json"in p&&n(0,u=p.json),"readOnly"in p&&n(1,l=p.readOnly),"parser"in p&&n(10,f=p.parser),"openJSONEditorModal"in p&&n(2,d=p.openJSONEditorModal),"onChangeMode"in p&&n(3,h=p.onChangeMode)},e.$$.update=function(){2&e.$$.dirty&&n(8,r=l?"View":"Edit"),1&e.$$.dirty&&n(4,s=u?function(p){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2,m=[];return function g(y,b){kr(y)&&b.length<v&&Object.keys(y).forEach(function(w){g(y[w],b.concat(w))}),Wn(y)&&m.push(b)}(p,[]),m}(u).slice(0,99).filter(function(p){return p.length>0}):[]),16&e.$$.dirty&&n(6,o=!cn(s)),513&e.$$.dirty&&n(5,i=u===void 0&&(c===""||c===void 0)),1121&e.$$.dirty&&n(7,a=o?"Object with nested arrays":i?"An empty document":kr(u)?"An object":Wn(u)?"An empty array":"A ".concat(h2(u,f)))},[u,l,d,h,s,i,o,a,r,c,f,function(p){return d(p)},function(){return h(wo.tree)}]}var hwt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,dwt,fwt,qe,{text:9,json:0,readOnly:1,parser:10,openJSONEditorModal:2,onChangeMode:3},awt),o}return it(n)}();function pwt(e){Le(e,"svelte-py7l9h",".jse-column-header.svelte-py7l9h{background:none;border:none;font-family:inherit;font-size:inherit;color:inherit;display:flex;gap:var(--jse-padding);padding:calc(0.5 * var(--jse-padding)) var(--jse-padding) calc(0.5 * var(--jse-padding)) calc(0.5 * var(--jse-padding));width:100%}.jse-column-header.svelte-py7l9h:hover{background:var(--jse-table-header-background-highlight)}.jse-column-header.svelte-py7l9h:not(.jse-column-header.jse-readonly){cursor:pointer}")}function vwt(e){var t,n,r,o,i,a;return n=new hn({props:{data:$dt}}),{c:function(){t=tt("button"),Pt(n.$$.fragment),S(t,"type","button"),S(t,"class","jse-column-header svelte-py7l9h"),S(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(s,c){ft(s,t,c),Mt(n,t,null),o=!0,i||(a=zt(t,"click",e[3]),i=!0)},p:function(s,c){var u=Ce(c,1)[0];(!o||3&u&&r!==(r="The Columns are created by sampling ".concat(s[1]," items out of ").concat(s[0],". ")+"If you're missing a column, click here to sample all of the items instead of a subset. This is slower."))&&S(t,"title",r)},i:function(s){o||(z(n.$$.fragment,s),o=!0)},o:function(s){V(n.$$.fragment,s),o=!1},d:function(s){s&<(t),At(n),i=!1,a()}}}function mwt(e,t,n){var r=t.count,o=t.maxSampleCount,i=t.onRefresh;return e.$$set=function(a){"count"in a&&n(0,r=a.count),"maxSampleCount"in a&&n(1,o=a.maxSampleCount),"onRefresh"in a&&n(2,i=a.onRefresh)},[r,o,i,function(){return i()}]}var gwt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,mwt,vwt,qe,{count:0,maxSampleCount:1,onRefresh:2},pwt),o}return it(n)}();function ywt(e){Le(e,"svelte-hs49xj",".jse-table-mode.svelte-hs49xj.svelte-hs49xj{flex:1;display:flex;flex-direction:column;position:relative;background:var(--jse-background-color);min-width:0;min-height:0;font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);color:var(--jse-text-color)}.jse-table-mode.no-main-menu.svelte-hs49xj.svelte-hs49xj{border-top:var(--jse-main-border)}.jse-table-mode.svelte-hs49xj .jse-hidden-input-label.svelte-hs49xj{position:fixed;right:0;top:0;width:0;height:0}.jse-table-mode.svelte-hs49xj .jse-hidden-input-label .jse-hidden-input.svelte-hs49xj{width:0;height:0;padding:0;border:0;outline:none}.jse-table-mode.svelte-hs49xj .jse-contents.svelte-hs49xj{flex:1;align-items:start;flex-direction:column;display:flex;overflow:auto;overflow-anchor:none;border-left:var(--jse-main-border);border-right:var(--jse-main-border)}.jse-table-mode.svelte-hs49xj .jse-contents.svelte-hs49xj:last-child{border-bottom:var(--jse-main-border)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main.svelte-hs49xj{border-collapse:collapse;border-spacing:0}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-invisible-start-section td.svelte-hs49xj,.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-invisible-end-section td.svelte-hs49xj{margin:0;padding:0}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-invisible-end-section td.svelte-hs49xj{padding-bottom:var(--jse-padding)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row.svelte-hs49xj:hover{background-color:var(--jse-table-row-odd-background)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.svelte-hs49xj{padding:0 var(--jse-padding) 0 0;vertical-align:top;white-space:nowrap;height:var(--jse-line-height)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-header.svelte-hs49xj,.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-gutter.svelte-hs49xj{font-weight:normal;text-align:left;color:var(--jse-text-readonly);background:var(--jse-table-header-background)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-header.svelte-hs49xj{padding:0;position:sticky;top:0}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-header .jse-table-root-error.svelte-hs49xj{padding:calc(0.5 * var(--jse-padding)) var(--jse-padding) calc(0.5 * var(--jse-padding)) calc(0.5 * var(--jse-padding))}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-gutter.svelte-hs49xj{padding:0 var(--jse-padding) 0 calc(0.5 * var(--jse-padding))}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-selected-value.svelte-hs49xj>.jse-value{background:var(--jse-selection-background-color)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.svelte-hs49xj div{display:inline-flex}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.svelte-hs49xj div.jse-value{overflow-wrap:normal;white-space:nowrap;vertical-align:top;display:inline-block}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell .jse-context-menu-anchor.svelte-hs49xj{position:relative;vertical-align:top}.jse-table-mode.svelte-hs49xj .jse-contents.jse-contents-loading.svelte-hs49xj{align-items:unset}.jse-table-mode.svelte-hs49xj .jse-contents.jse-contents-loading .jse-loading-space.svelte-hs49xj{flex:1}.jse-table-mode.svelte-hs49xj .jse-contents.jse-contents-loading .jse-loading.svelte-hs49xj{flex:2;text-align:center;color:var(--jse-panel-color-readonly);box-sizing:border-box;font-family:var(--jse-font-family);font-size:var(--jse-font-size)}")}function xR(e,t,n){var r=e.slice();r[123]=t[n],r[127]=n;var o=r[23].startIndex+r[127];r[124]=o;var i=r[22].rows[r[124]];return r[125]=i,r}function kR(e,t,n){var r,o=e.slice();o[128]=t[n],o[134]=n;var i=[String(o[124])].concat(o[128]);o[129]=i;var a=fe(o[123],o[128]);o[130]=a;var s=dn(o[11].selection)&&qc(o[11].selection.path,o[129]);o[131]=s;var c=(r=o[125])===null||r===void 0?void 0:r.columns[o[134]];return o[132]=c,o}function jR(e,t,n){var r=e.slice();return r[128]=t[n],r}function _R(e){var t,n;return t=new Wbt({props:{json:e[8],readOnly:e[0],historyState:e[20],onSort:e[41],onTransform:e[42],onUndo:e[43],onRedo:e[44],onContextMenu:e[33],onRenderMenu:e[5]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};256&o[0]&&(i.json=r[8]),1&o[0]&&(i.readOnly=r[0]),1048576&o[0]&&(i.historyState=r[20]),32&o[0]&&(i.onRenderMenu=r[5]),t.$set(i)},i:function(r){n||(z(t.$$.fragment,r),n=!0)},o:function(r){V(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function bwt(e){var t;return{c:function(){(t=tt("div")).innerHTML='<div class="jse-loading-space svelte-hs49xj"></div> <div class="jse-loading svelte-hs49xj">loading...</div>',S(t,"class","jse-contents jse-contents-loading svelte-hs49xj")},m:function(n,r){ft(n,t,r)},p:Ht,i:Ht,o:Ht,d:function(n){n&<(t)}}}function wwt(e){var t,n,r,o,i,a,s,c=[jwt,kwt,xwt],u=[];function l(f,d){return f[25]?0:f[17]&&f[16]!==void 0&&f[16]!==""?1:2}return o=l(e),i=u[o]=c[o](e),{c:function(){t=tt("label"),n=tt("input"),r=kt(),i.c(),a=Sn(),S(n,"type","text"),n.readOnly="readonly",S(n,"tabindex","-1"),S(n,"class","jse-hidden-input svelte-hs49xj"),S(t,"class","jse-hidden-input-label svelte-hs49xj")},m:function(f,d){ft(f,t,d),H(t,n),e[72](n),ft(f,r,d),u[o].m(f,d),ft(f,a,d),s=!0},p:function(f,d){var h=o;(o=l(f))===h?u[o].p(f,d):(Bt(),V(u[h],1,1,function(){u[h]=null}),Ft(),(i=u[o])?i.p(f,d):(i=u[o]=c[o](f)).c(),z(i,1),i.m(a.parentNode,a))},i:function(f){s||(z(i),s=!0)},o:function(f){V(i),s=!1},d:function(f){f&&(lt(t),lt(r),lt(a)),e[72](null),u[o].d(f)}}}function xwt(e){var t,n;return t=new hwt({props:{text:e[16],json:e[8],readOnly:e[0],parser:e[2],openJSONEditorModal:e[40],onChangeMode:e[4]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};65536&o[0]&&(i.text=r[16]),256&o[0]&&(i.json=r[8]),1&o[0]&&(i.readOnly=r[0]),4&o[0]&&(i.parser=r[2]),16&o[0]&&(i.onChangeMode=r[4]),t.$set(i)},i:function(r){n||(z(t.$$.fragment,r),n=!0)},o:function(r){V(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function kwt(e){var t,n,r,o;return t=new Aa({props:{type:"error",message:"The loaded JSON document is invalid and could not be repaired automatically.",actions:e[0]?[]:[{icon:Hc,text:"Repair manually",onClick:e[36]}]}}),r=new IB({props:{text:e[16],json:e[8],indentation:e[3],parser:e[2]}}),{c:function(){Pt(t.$$.fragment),n=kt(),Pt(r.$$.fragment)},m:function(i,a){Mt(t,i,a),ft(i,n,a),Mt(r,i,a),o=!0},p:function(i,a){var s={};1&a[0]&&(s.actions=i[0]?[]:[{icon:Hc,text:"Repair manually",onClick:i[36]}]),t.$set(s);var c={};65536&a[0]&&(c.text=i[16]),256&a[0]&&(c.json=i[8]),8&a[0]&&(c.indentation=i[3]),4&a[0]&&(c.parser=i[2]),r.$set(c)},i:function(i){o||(z(t.$$.fragment,i),z(r.$$.fragment,i),o=!0)},o:function(i){V(t.$$.fragment,i),V(r.$$.fragment,i),o=!1},d:function(i){i&<(n),At(t,i),At(r,i)}}}function jwt(e){for(var t,n,r,o,i,a,s,c,u,l,f,d,h,p,v,m,g,y,b,w,x,k,E,_,T=!cn((t=e[22])===null||t===void 0?void 0:t.root),$=T&&SR(e),j=De(e[10]),R=[],q=0;q<j.length;q+=1)R[q]=$R(jR(e,j,q));for(var O=function(B){return V(R[B],1,1,function(){R[B]=null})},F=e[24]&&CR(e),J=De(e[23].visibleItems),I=[],D=0;D<J.length;D+=1)I[D]=RR(xR(e,J,D));var C=function(B){return V(I[B],1,1,function(){I[B]=null})},M=e[18]&&IR(e),P=e[19]&&NR(e);return x=new bj({props:{validationErrors:e[12],selectError:e[39]}}),{c:function(){n=tt("div"),r=tt("table"),o=tt("tbody"),i=tt("tr"),a=tt("th"),$&&$.c(),s=kt();for(var B=0;B<R.length;B+=1)R[B].c();c=kt(),F&&F.c(),u=kt(),l=tt("tr"),f=tt("td"),h=kt();for(var A=0;A<I.length;A+=1)I[A].c();p=kt(),v=tt("tr"),m=tt("td"),y=kt(),M&&M.c(),b=kt(),P&&P.c(),w=kt(),Pt(x.$$.fragment),S(a,"class","jse-table-cell jse-table-cell-header svelte-hs49xj"),S(i,"class","jse-table-row jse-table-row-header svelte-hs49xj"),S(f,"colspan",d=e[10].length),S(f,"class","svelte-hs49xj"),yc(f,"height",e[23].startHeight+"px"),S(l,"class","jse-table-invisible-start-section"),S(m,"colspan",g=e[10].length),S(m,"class","svelte-hs49xj"),yc(m,"height",e[23].endHeight+"px"),S(v,"class","jse-table-invisible-end-section"),S(r,"class","jse-table-main svelte-hs49xj"),S(r,"cellpadding","0"),S(r,"cellspacing","0"),S(n,"class","jse-contents svelte-hs49xj")},m:function(B,A){ft(B,n,A),H(n,r),H(r,o),H(o,i),H(i,a),$&&$.m(a,null),H(i,s);for(var W=0;W<R.length;W+=1)R[W]&&R[W].m(i,null);H(i,c),F&&F.m(i,null),H(o,u),H(o,l),H(l,f),H(o,h);for(var N=0;N<I.length;N+=1)I[N]&&I[N].m(o,null);H(o,p),H(o,v),H(v,m),e[75](n),ft(B,y,A),M&&M.m(B,A),ft(B,b,A),P&&P.m(B,A),ft(B,w,A),Mt(x,B,A),k=!0,E||(_=[fo(_H.call(null,n,e[45])),zt(n,"scroll",e[29])],E=!0)},p:function(B,A){var W;if(4194304&A[0]&&(T=!cn((W=B[22])===null||W===void 0?void 0:W.root)),T?$?($.p(B,A),4194304&A[0]&&z($,1)):(($=SR(B)).c(),z($,1),$.m(a,null)):$&&(Bt(),V($,1,1,function(){$=null}),Ft()),268438529&A[0]){var N;for(j=De(B[10]),N=0;N<j.length;N+=1){var dt=jR(B,j,N);R[N]?(R[N].p(dt,A),z(R[N],1)):(R[N]=$R(dt),R[N].c(),z(R[N],1),R[N].m(i,c))}for(Bt(),N=j.length;N<R.length;N+=1)O(N);Ft()}if(B[24]?F?(F.p(B,A),16777216&A[0]&&z(F,1)):((F=CR(B)).c(),z(F,1),F.m(i,null)):F&&(Bt(),V(F,1,1,function(){F=null}),Ft()),(!k||1024&A[0]&&d!==(d=B[10].length))&&S(f,"colspan",d),8388608&A[0]&&yc(f,"height",B[23].startHeight+"px"),165678085&A[0]|33281&A[1]){var et;for(J=De(B[23].visibleItems),et=0;et<J.length;et+=1){var yt=xR(B,J,et);I[et]?(I[et].p(yt,A),z(I[et],1)):(I[et]=RR(yt),I[et].c(),z(I[et],1),I[et].m(o,p))}for(Bt(),et=J.length;et<I.length;et+=1)C(et);Ft()}(!k||1024&A[0]&&g!==(g=B[10].length))&&S(m,"colspan",g),8388608&A[0]&&yc(m,"height",B[23].endHeight+"px"),B[18]?M?(M.p(B,A),262144&A[0]&&z(M,1)):((M=IR(B)).c(),z(M,1),M.m(b.parentNode,b)):M&&(Bt(),V(M,1,1,function(){M=null}),Ft()),B[19]?P?(P.p(B,A),524288&A[0]&&z(P,1)):((P=NR(B)).c(),z(P,1),P.m(w.parentNode,w)):P&&(Bt(),V(P,1,1,function(){P=null}),Ft());var bt={};4096&A[0]&&(bt.validationErrors=B[12]),x.$set(bt)},i:function(B){if(!k){z($);for(var A=0;A<j.length;A+=1)z(R[A]);z(F);for(var W=0;W<J.length;W+=1)z(I[W]);z(M),z(P),z(x.$$.fragment,B),k=!0}},o:function(B){V($),R=R.filter(Boolean);for(var A=0;A<R.length;A+=1)V(R[A]);V(F),I=I.filter(Boolean);for(var W=0;W<I.length;W+=1)V(I[W]);V(M),V(P),V(x.$$.fragment,B),k=!1},d:function(B){B&&(lt(n),lt(y),lt(b),lt(w)),$&&$.d(),Dr(R,B),F&&F.d(),Dr(I,B),e[75](null),M&&M.d(B),P&&P.d(B),At(x,B),E=!1,Fn(_)}}}function SR(e){var t,n,r,o;return r=new od({props:{validationError:Mf([],(t=e[22])===null||t===void 0?void 0:t.root),onExpand:ca}}),{c:function(){n=tt("div"),Pt(r.$$.fragment),S(n,"class","jse-table-root-error svelte-hs49xj")},m:function(i,a){ft(i,n,a),Mt(r,n,null),o=!0},p:function(i,a){var s,c={};4194304&a[0]&&(c.validationError=Mf([],(s=i[22])===null||s===void 0?void 0:s.root)),r.$set(c)},i:function(i){o||(z(r.$$.fragment,i),o=!0)},o:function(i){V(r.$$.fragment,i),o=!1},d:function(i){i&<(n),At(r)}}}function $R(e){var t,n,r;return n=new nwt({props:{path:e[128],sortedColumn:e[11].sortedColumn,readOnly:e[0],onSort:e[28]}}),{c:function(){t=tt("th"),Pt(n.$$.fragment),S(t,"class","jse-table-cell jse-table-cell-header svelte-hs49xj")},m:function(o,i){ft(o,t,i),Mt(n,t,null),r=!0},p:function(o,i){var a={};1024&i[0]&&(a.path=o[128]),2048&i[0]&&(a.sortedColumn=o[11].sortedColumn),1&i[0]&&(a.readOnly=o[0]),n.$set(a)},i:function(o){r||(z(n.$$.fragment,o),r=!0)},o:function(o){V(n.$$.fragment,o),r=!1},d:function(o){o&<(t),At(n)}}}function CR(e){var t,n,r;return n=new gwt({props:{count:e[8].length,maxSampleCount:e[9],onRefresh:e[73]}}),{c:function(){t=tt("th"),Pt(n.$$.fragment),S(t,"class","jse-table-cell jse-table-cell-header svelte-hs49xj")},m:function(o,i){ft(o,t,i),Mt(n,t,null),r=!0},p:function(o,i){var a={};256&i[0]&&(a.count=o[8].length),512&i[0]&&(a.maxSampleCount=o[9]),512&i[0]&&(a.onRefresh=o[73]),n.$set(a)},i:function(o){r||(z(n.$$.fragment,o),r=!0)},o:function(o){V(n.$$.fragment,o),r=!1},d:function(o){o&<(t),At(n)}}}function ER(e){var t,n;return t=new od({props:{validationError:Mf([String(e[124])],e[125].row),onExpand:ca}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};12582912&o[0]&&(i.validationError=Mf([String(r[124])],r[125].row)),t.$set(i)},i:function(r){n||(z(t.$$.fragment,r),n=!0)},o:function(r){V(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function OR(e){var t,n,r,o,i,a,s,c,u=e[124]+"",l=!cn((t=e[125])===null||t===void 0?void 0:t.row),f=l&&ER(e);function d(){for(var h,p=arguments.length,v=new Array(p),m=0;m<p;m++)v[m]=arguments[m];return(h=e)[74].apply(h,[e[124]].concat(v))}return{c:function(){n=tt("th"),r=Gt(u),o=kt(),f&&f.c(),S(n,"class","jse-table-cell jse-table-cell-gutter svelte-hs49xj")},m:function(h,p){ft(h,n,p),H(n,r),H(n,o),f&&f.m(n,null),a=!0,s||(c=fo(i=_H.call(null,n,d)),s=!0)},p:function(h,p){var v;e=h,(!a||8388608&p[0])&&u!==(u=e[124]+"")&&we(r,u),12582912&p[0]&&(l=!cn((v=e[125])===null||v===void 0?void 0:v.row)),l?f?(f.p(e,p),12582912&p[0]&&z(f,1)):((f=ER(e)).c(),z(f,1),f.m(n,null)):f&&(Bt(),V(f,1,1,function(){f=null}),Ft()),i&&uo(i.update)&&8388608&p[0]&&i.update.call(null,d)},i:function(h){a||(z(f),a=!0)},o:function(h){V(f),a=!1},d:function(h){h&<(n),f&&f.d(),s=!1,c()}}}function _wt(e){var t,n;return t=new Jbt({props:{path:e[129],value:e[130]!==void 0?e[130]:"",enforceString:Vs(e[130],e[11].enforceStringMap,oe(e[129]),e[21].parser),selection:e[131]?e[11].selection:null,searchResultItems:e[27],context:e[21]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};8389632&o[0]&&(i.path=r[129]),8389632&o[0]&&(i.value=r[130]!==void 0?r[130]:""),10488832&o[0]&&(i.enforceString=Vs(r[130],r[11].enforceStringMap,oe(r[129]),r[21].parser)),8391680&o[0]&&(i.selection=r[131]?r[11].selection:null),2097152&o[0]&&(i.context=r[21]),t.$set(i)},i:function(r){n||(z(t.$$.fragment,r),n=!0)},o:function(r){V(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function Swt(e){var t,n;return t=new Xbt({props:{path:e[129],value:e[130],parser:e[2],isSelected:e[131],onEdit:e[40]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};8389632&o[0]&&(i.path=r[129]),8389632&o[0]&&(i.value=r[130]),4&o[0]&&(i.parser=r[2]),8391680&o[0]&&(i.isSelected=r[131]),t.$set(i)},i:function(r){n||(z(t.$$.fragment,r),n=!0)},o:function(r){V(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function MR(e){var t,n,r,o;return n=new iu({props:{selected:!0,onContextMenu:e[31]}}),{c:function(){t=tt("div"),Pt(n.$$.fragment),r=kt(),S(t,"class","jse-context-menu-anchor svelte-hs49xj")},m:function(i,a){ft(i,t,a),Mt(n,t,null),ft(i,r,a),o=!0},p:Ht,i:function(i){o||(z(n.$$.fragment,i),o=!0)},o:function(i){V(n.$$.fragment,i),o=!1},d:function(i){i&&(lt(t),lt(r)),At(n)}}}function AR(e){var t,n;return t=new od({props:{validationError:Mf(e[129],e[132]),onExpand:ca}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};12583936&o[0]&&(i.validationError=Mf(r[129],r[132])),t.$set(i)},i:function(r){n||(z(t.$$.fragment,r),n=!0)},o:function(r){V(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function PR(e){var t,n,r,o,i,a,s,c,u=!e[0]&&e[131]&&!Gi(e[11].selection),l=!cn(e[132]),f=[Swt,_wt],d=[];function h(m,g){return 8389632&g[0]&&(n=null),n==null&&(n=!!xr(m[130])),n?0:1}r=h(e,[-1,-1,-1,-1,-1]),o=d[r]=f[r](e);var p=u&&MR(e),v=l&&AR(e);return{c:function(){t=tt("td"),o.c(),i=Sn(),p&&p.c(),a=Sn(),v&&v.c(),S(t,"class","jse-table-cell svelte-hs49xj"),S(t,"data-path",s=$f(e[129])),Dt(t,"jse-selected-value",e[131])},m:function(m,g){ft(m,t,g),d[r].m(t,null),H(t,i),p&&p.m(t,null),H(t,a),v&&v.m(t,null),c=!0},p:function(m,g){var y=r;(r=h(m,g))===y?d[r].p(m,g):(Bt(),V(d[y],1,1,function(){d[y]=null}),Ft(),(o=d[r])?o.p(m,g):(o=d[r]=f[r](m)).c(),z(o,1),o.m(t,i)),8391681&g[0]&&(u=!m[0]&&m[131]&&!Gi(m[11].selection)),u?p?(p.p(m,g),8391681&g[0]&&z(p,1)):((p=MR(m)).c(),z(p,1),p.m(t,a)):p&&(Bt(),V(p,1,1,function(){p=null}),Ft()),12582912&g[0]&&(l=!cn(m[132])),l?v?(v.p(m,g),12582912&g[0]&&z(v,1)):((v=AR(m)).c(),z(v,1),v.m(t,null)):v&&(Bt(),V(v,1,1,function(){v=null}),Ft()),(!c||8389632&g[0]&&s!==(s=$f(m[129])))&&S(t,"data-path",s),(!c||8391680&g[0])&&Dt(t,"jse-selected-value",m[131])},i:function(m){c||(z(o),z(p),z(v),c=!0)},o:function(m){V(o),V(p),V(v),c=!1},d:function(m){m&<(t),d[r].d(),p&&p.d(),v&&v.d()}}}function TR(e){var t;return{c:function(){S(t=tt("td"),"class","jse-table-cell svelte-hs49xj")},m:function(n,r){ft(n,t,r)},d:function(n){n&<(t)}}}function RR(e){for(var t,n,r,o,i=e[124],a=OR(e),s=De(e[10]),c=[],u=0;u<s.length;u+=1)c[u]=PR(kR(e,s,u));var l=function(d){return V(c[d],1,1,function(){c[d]=null})},f=e[24]&&TR();return{c:function(){t=tt("tr"),a.c(),n=kt();for(var d=0;d<c.length;d+=1)c[d].c();r=kt(),f&&f.c(),S(t,"class","jse-table-row svelte-hs49xj")},m:function(d,h){ft(d,t,h),a.m(t,null),H(t,n);for(var p=0;p<c.length;p+=1)c[p]&&c[p].m(t,null);H(t,r),f&&f.m(t,null),o=!0},p:function(d,h){if(8388608&h[0]&&qe(i,i=d[124])?(Bt(),V(a,1,1,Ht),Ft(),(a=OR(d)).c(),z(a,1),a.m(t,n)):a.p(d,h),148900869&h[0]|513&h[1]){var p;for(s=De(d[10]),p=0;p<s.length;p+=1){var v=kR(d,s,p);c[p]?(c[p].p(v,h),z(c[p],1)):(c[p]=PR(v),c[p].c(),z(c[p],1),c[p].m(t,r))}for(Bt(),p=s.length;p<c.length;p+=1)l(p);Ft()}d[24]?f||((f=TR()).c(),f.m(t,null)):f&&(f.d(1),f=null)},i:function(d){if(!o){z(a);for(var h=0;h<s.length;h+=1)z(c[h]);o=!0}},o:function(d){V(a),c=c.filter(Boolean);for(var h=0;h<c.length;h+=1)V(c[h]);o=!1},d:function(d){d&<(t),a.d(d),Dr(c,d),f&&f.d()}}}function IR(e){var t,n;return t=new Aa({props:{type:"info",message:"You pasted a JSON ".concat(Array.isArray(e[18].contents)?"array":"object"," as text"),actions:[{icon:J0,text:"Paste as JSON instead",onMouseDown:e[34]},{text:"Leave as is",onClick:e[35]}],onClose:e[76]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};262144&o[0]&&(i.message="You pasted a JSON ".concat(Array.isArray(r[18].contents)?"array":"object"," as text")),t.$set(i)},i:function(r){n||(z(t.$$.fragment,r),n=!0)},o:function(r){V(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function NR(e){var t,n;return t=new Aa({props:{type:"success",message:"The loaded JSON document was invalid but is successfully repaired.",actions:e[0]?[]:[{icon:zh,text:"Ok",onClick:e[7]},{icon:Hc,text:"Repair manually instead",onClick:e[36]}],onClose:e[6]}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};1&o[0]&&(i.actions=r[0]?[]:[{icon:zh,text:"Ok",onClick:r[7]},{icon:Hc,text:"Repair manually instead",onClick:r[36]}]),t.$set(i)},i:function(r){n||(z(t.$$.fragment,r),n=!0)},o:function(r){V(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function $wt(e){var t,n,r,o,i,a,s,c=e[1]&&_R(e),u=[wwt,bwt],l=[];return r=function(f,d){return f[26]?1:0}(e),o=l[r]=u[r](e),{c:function(){t=tt("div"),c&&c.c(),n=kt(),o.c(),S(t,"role","table"),S(t,"class","jse-table-mode svelte-hs49xj"),Dt(t,"no-main-menu",!e[1])},m:function(f,d){ft(f,t,d),c&&c.m(t,null),H(t,n),l[r].m(t,null),e[77](t),i=!0,a||(s=[zt(t,"mousedown",e[30]),zt(t,"keydown",e[37]),zt(t,"paste",e[38]),zt(t,"contextmenu",e[32])],a=!0)},p:function(f,d){f[1]?c?(c.p(f,d),2&d[0]&&z(c,1)):((c=_R(f)).c(),z(c,1),c.m(t,n)):c&&(Bt(),V(c,1,1,function(){c=null}),Ft()),o.p(f,d),(!i||2&d[0])&&Dt(t,"no-main-menu",!f[1])},i:function(f){i||(z(c),z(o),i=!0)},o:function(f){V(c),V(o),i=!1},d:function(f){f&<(t),c&&c.d(),l[r].d(),e[77](null),a=!1,Fn(s)}}}var kd=18;function Cwt(e,t,n){var r,o,i,a,s=po("jsoneditor:TableMode"),c=ho("simple-modal").open,u=ho("absolute-popup"),l=u.openAbsolutePopup,f=u.closeAbsolutePopup,d=yB(),h=Zu(),p=Zu(),v=typeof window>"u";s("isSSR:",v);var m,g,y,b,w,x,k=t.readOnly,E=t.externalContent,_=t.externalSelection,T=t.mainMenuBar,$=t.escapeControlCharacters,j=t.escapeUnicodeCharacters,R=t.flattenColumns,q=t.parser,O=t.parseMemoizeOne,F=t.validator,J=t.validationParser,I=t.indentation,D=t.onChange,C=t.onChangeMode,M=t.onSelect,P=t.onRenderValue,B=t.onRenderMenu,A=t.onFocus,W=t.onBlur,N=t.onSortModal,dt=t.onTransformModal,et=t.onJSONEditorModal;yj({onMount:Wi,onDestroy:gi,getWindow:function(){return nd(g)},hasFocus:function(){return Y&&document.hasFocus()||mg(g)},onFocus:function(){K=!0,A&&A()},onBlur:function(){K=!1,W&&W()}});var yt,bt=void 0,jt=1e4,gt=[],Y=!1,K=!1,rt={},X=600,_t=0;function L(ct){s("updateSelection",ct);var Nt=typeof ct=="function"?ct(G.selection)||null:ct;an(Nt,G.selection)||(n(11,G=xt(xt({},G),{},{selection:Nt})),M(Nt))}function U(ct){G.selection&&ct!==void 0&&(Bi(ct,zu(G.selection))&&Bi(ct,ge(G.selection))||(s("clearing selection: path does not exist anymore",G.selection),n(11,G=xt(xt({},G),{},{selection:null}))))}var G=yg(),pt=!1,mt,Ot=bB({onChange:function(ct){n(20,Ct=ct)}}),Ct=Ot.getState();function Vt(ct){var Nt=w,ne=Sf(ct)?ct.text!==x:!an(Nt,ct.json);if(s("update external content",{isChanged:ne}),ne){var ae={json:w,text:x},Yt=w,Te=G,He=x,Ve=pt;if(Sf(ct))try{n(8,w=O(ct.text)),n(16,x=ct.text),n(19,pt=!1),n(17,bt=void 0)}catch(de){try{n(8,w=O(Xa(ct.text))),n(16,x=ct.text),n(19,pt=!0),n(17,bt=void 0)}catch{n(8,w=void 0),n(16,x=E.text),n(19,pt=!1),n(17,bt=x!==void 0&&x!==""?_f(x,de.message||de.toString()):void 0)}}else n(8,w=ct.json),n(16,x=void 0),n(19,pt=!1),n(17,bt=void 0);U(w),G.sortedColumn&&n(11,G=xt(xt({},G),{},{sortedColumn:null})),Qt({previousJson:Yt,previousState:Te,previousText:He,previousTextIsRepaired:Ve}),xn(ae,null)}}function Qt(ct){var Nt=ct.previousJson,ne=ct.previousState,ae=ct.previousText,Yt=ct.previousTextIsRepaired;Nt===void 0&&ae===void 0||(w!==void 0?Nt!==void 0?Ot.add({undo:{patch:[{op:"replace",path:"",value:Nt}],state:Oo(ne),json:void 0,text:ae,textIsRepaired:Yt},redo:{patch:[{op:"replace",path:"",value:w}],state:Oo(G),json:void 0,text:x,textIsRepaired:pt}}):Ot.add({undo:{patch:void 0,json:void 0,text:ae,state:Oo(ne),textIsRepaired:Yt},redo:{patch:void 0,json:w,state:Oo(G),text:x,textIsRepaired:pt}}):Nt!==void 0&&Ot.add({undo:{patch:void 0,json:Nt,state:Oo(ne),text:ae,textIsRepaired:Yt},redo:{patch:void 0,json:void 0,text:x,textIsRepaired:pt,state:Oo(G)}}))}var te=[],Kt=Ap(wB);function ue(ct,Nt,ne,ae){zl(function(){var Yt;try{Yt=Kt(ct,Nt,ne,ae)}catch(Te){Yt=[{path:[],message:"Failed to validate: "+Te.message,severity:Fs.warning}]}an(Yt,te)||(s("validationErrors changed:",Yt),n(12,te=Yt))},function(Yt){return s("validationErrors updated in ".concat(Yt," ms"))})}function Me(){return s("validate"),bt?{parseError:bt,isRepairable:!1}:(ue(w,F,q,J),cn(te)?null:{validationErrors:te})}function en(ct,Nt){if(s("patch",ct,Nt),w===void 0)throw new Error("Cannot apply patch: no JSON");var ne={json:w},ae=w,Yt=G,Te=pt,He=eB(w,ct),Ve=Vz(w,G,ct).json,de=Rmt(G,ct,gt),fn=typeof Nt=="function"?Nt(Ve,de):void 0;n(8,w=fn&&fn.json!==void 0?fn.json:Ve);var Kn=fn&&fn.state!==void 0?fn.state:de;n(11,G=Kn),n(16,x=void 0),n(19,pt=!1),n(18,yt=void 0),n(17,bt=void 0),Ot.add({undo:{patch:He,json:void 0,text:void 0,state:Oo(Yt),textIsRepaired:Te},redo:{patch:ct,json:void 0,state:Oo(Kn),text:void 0,textIsRepaired:pt}});var Dn={json:w,previousJson:ae,undo:He,redo:ct};return xn(ne,Dn),Dn}function le(ct,Nt){if(!k)return en(ct,Nt)}function xn(ct,Nt){(ct.json!==void 0||(ct==null?void 0:ct.text)!==void 0)&&(x!==void 0?D({text:x,json:void 0},ct,{contentErrors:Me(),patchResult:Nt}):w!==void 0&&D({text:void 0,json:w},ct,{contentErrors:Me(),patchResult:Nt}))}function Ie(ct){s("handleFind",ct)}function mn(ct){s("pasted json as text",ct),n(18,yt=ct)}function Ye(ct){var Nt=parseInt(ct[0]),ne=[String(Nt+1)].concat($e(ct.slice(1)));return Bi(w,ne)?We(ne,!1):We(ct,!1)}function Ke(){b&&(b.focus(),b.select())}function qn(){G.selection||L(!Wn(w)||cn(w)||cn(gt)?null:We(["0"].concat($e(gt[0])),!1))}function In(ct){var Nt=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],ne=ky(ct,gt,rt,kd),ae=ne-_t,Yt=En(ct);s("scrollTo",{path:ct,top:ne,scrollTop:_t,elem:Yt});var Te=y.getBoundingClientRect();if(Yt&&!Nt){var He=Yt.getBoundingClientRect();if(He.bottom>Te.top&&He.top<Te.bottom)return}var Ve=-Te.height/4;return new Promise(Yt?function(de){d(Yt,{container:y,offset:Ve,duration:300,callback:function(){Xn(ct),de()}})}:function(de){var fn;d(ae,{container:y,offset:Ve,duration:300,callback:(fn=Ae(qt().mark(function Kn(){return qt().wrap(function(Dn){for(;;)switch(Dn.prev=Dn.next){case 0:return Dn.next=2,br();case 2:if(ky(ct,gt,rt,kd)===ne){Dn.next=8;break}return Dn.next=6,In(ct,Nt);case 6:Dn.next=9;break;case 8:Xn(ct);case 9:de();case 10:case"end":return Dn.stop()}},Kn)})),function(){return fn.apply(this,arguments)})})})}function Xn(ct){var Nt=En(ct);if(Nt){var ne=y.getBoundingClientRect(),ae=Nt.getBoundingClientRect();if(ae.right>ne.right){var Yt=ae.right-ne.right;n(14,y.scrollLeft+=Yt,y)}if(ae.left<ne.left){var Te=ne.left-ae.left;n(14,y.scrollLeft-=Te,y)}}}function $n(ct){(function(Nt){var ne=Ai(Nt,gt).rowIndex,ae=ky(Nt,gt,rt,kd),Yt=ae+(rt[ne]||kd),Te=y.getBoundingClientRect(),He=_t,Ve=_t+Te.height-18;if(Yt>Ve){var de=Yt-Ve;n(14,y.scrollTop+=de,y)}if(ae<He){var fn=He-ae;n(14,y.scrollTop-=fn,y)}})(ct),Xn(ct)}function En(ct){return y?y.querySelector('td[data-path="'.concat($f(ct),'"]')):null}function Nn(ct){var Nt=ct.anchor,ne=ct.left,ae=ct.top,Yt=ct.width,Te=ct.height,He=ct.offsetTop,Ve=ct.offsetLeft,de=ct.showTip;Y=!0;var fn=l(iwt,{json:w,documentState:G,parser:q,showTip:de,onEditValue:Pr,onEditRow:Et,onToggleEnforceString:ie,onCut:$t,onCopy:Q,onPaste:nn,onRemove:vt,onDuplicateRow:ut,onInsertBeforeRow:It,onInsertAfterRow:ee,onRemoveRow:pe,onCloseContextMenu:function(){f(fn),Ke()}},{left:ne,top:ae,offsetTop:He,offsetLeft:Ve,width:Yt,height:Te,anchor:Nt,closeOnOuterClick:!0,onClose:function(){Y=!1,Ke()}})}function sr(ct){if(!k&&!Gi(G.selection)){if(ct&&(ct.stopPropagation(),ct.preventDefault()),ct&&ct.type==="contextmenu"&&ct.target!==b)Nn({left:ct.clientX,top:ct.clientY,width:Ps,height:As,showTip:!1});else{var Nt,ne=(Nt=y)===null||Nt===void 0?void 0:Nt.querySelector(".jse-table-cell.jse-selected-value");if(ne)Nn({anchor:ne,offsetTop:2,width:Ps,height:As,showTip:!1});else{var ae,Yt=(ae=y)===null||ae===void 0?void 0:ae.getBoundingClientRect();Yt&&Nn({top:Yt.top+2,left:Yt.left+2,width:Ps,height:As,showTip:!1})}}return!1}}function Pr(){if(!k&&G.selection){var ct=ge(G.selection);xr(fe(w,ct))?ke(ct):L(We(ct,!0))}}function Et(){!k&&G.selection&&ke(ge(G.selection).slice(0,1))}function ie(){if(!k&&dn(G.selection)){var ct=G.selection.path,Nt=oe(ct),ne=fe(w,ct),ae=!Vs(ne,G.enforceStringMap,Nt,q),Yt=ae?String(ne):Uf(String(ne),q);s("handleToggleEnforceString",{enforceString:ae,value:ne,updatedValue:Yt}),le([{op:"replace",path:Nt,value:Yt}],function(Te,He){return{state:Hz(He,Nt,ae)}})}}function Be(){return(Be=Ae(qt().mark(function ct(){var Nt,ne,ae;return qt().wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:return s("apply pasted json",yt),ne=(Nt=yt).path,ae=Nt.contents,L(We(ne,!1)),Yt.next=5,br();case 5:le([{op:"replace",path:oe(ne),value:ae}]);case 7:case"end":return Yt.stop()}},ct)}))).apply(this,arguments)}function nn(){c(xB,{},xt(xt({},Yu),{},{styleWindow:{width:"450px"}}),{onClose:function(){return Ke()}})}function $t(ct){return Xt.apply(this,arguments)}function Xt(){return(Xt=Ae(qt().mark(function ct(Nt){return qt().wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return ne.next=2,MB({json:w,documentState:G,indentation:Nt?I:void 0,readOnly:k,parser:q,onPatch:le});case 2:case"end":return ne.stop()}},ct)}))).apply(this,arguments)}function Q(){return at.apply(this,arguments)}function at(){return at=Ae(qt().mark(function ct(){var Nt,ne=arguments;return qt().wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:if(Nt=!(ne.length>0&&ne[0]!==void 0)||ne[0],w!==void 0){ae.next=3;break}return ae.abrupt("return");case 3:return ae.next=5,AB({json:w,documentState:G,indentation:Nt?I:void 0,parser:q});case 5:case"end":return ae.stop()}},ct)})),at.apply(this,arguments)}function vt(){TB({json:w,text:x,documentState:G,keepSelection:!0,readOnly:k,onChange:D,onPatch:le})}function ut(){Imt({json:w,documentState:G,columns:gt,readOnly:k,onPatch:le})}function It(){Nmt({json:w,documentState:G,columns:gt,readOnly:k,onPatch:le})}function ee(){Dmt({json:w,documentState:G,columns:gt,readOnly:k,onPatch:le})}function pe(){Lmt({json:w,documentState:G,columns:gt,readOnly:k,onPatch:le})}function Xe(){return(Xe=Ae(qt().mark(function ct(Nt){return qt().wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return ne.next=2,RB({char:Nt,selectInside:!1,refJsonEditor:g,json:w,selection:G.selection,readOnly:k,parser:q,onPatch:le,onReplaceJson:Fe,onSelect:L});case 2:case"end":return ne.stop()}},ct)}))).apply(this,arguments)}function Fe(ct,Nt){var ne=G,ae=w,Yt=x,Te={json:w,text:x},He=pt,Ve=Mi(w,G,[],Ja),de=typeof Nt=="function"?Nt(ct,Ve):void 0;n(8,w=de&&de.json!==void 0?de.json:ct),n(11,G=de&&de.state!==void 0?de.state:Ve),n(16,x=void 0),n(19,pt=!1),n(17,bt=void 0),U(w),Qt({previousJson:ae,previousState:ne,previousText:Yt,previousTextIsRepaired:He}),xn(Te,null)}function kn(ct,Nt){s("handleChangeText");var ne=G,ae=w,Yt=x,Te={json:w,text:x},He=pt;try{n(8,w=O(ct)),n(11,G=Mi(w,G,[],Ja)),n(16,x=void 0),n(19,pt=!1),n(17,bt=void 0)}catch(de){try{n(8,w=O(Xa(ct))),n(11,G=Mi(w,G,[],Ja)),n(16,x=ct),n(19,pt=!0),n(17,bt=void 0)}catch{n(8,w=void 0),n(11,G=yg({json:w,expand:Ja})),n(16,x=ct),n(19,pt=!1),n(17,bt=x!==""?_f(x,de.message||de.toString()):void 0)}}if(typeof Nt=="function"){var Ve=Nt(w,G);n(8,w=Ve&&Ve.json?Ve.json:w),n(11,G=Ve&&Ve.state?Ve.state:G)}U(w),Qt({previousJson:ae,previousState:ne,previousText:Yt,previousTextIsRepaired:He}),xn(Te,null)}function On(ct){if(w!==void 0){var Nt=ct.id,ne=ct.onTransform,ae=ct.onClose,Yt=ct.rootPath||[];Y=!0,dt({id:Nt||p,json:w,rootPath:Yt||[],onTransform:function(Te){ne?ne({operations:Te,json:w,transformedJson:xa(w,Te)}):(s("onTransform",Yt,Te),le(Te))},onClose:function(){Y=!1,Ke(),ae&&ae()}})}}function ke(ct){s("openJSONEditorModal",{path:ct}),Y=!0,et({content:{json:fe(w,ct)},path:ct,onPatch:mt.onPatch,onClose:function(){Y=!1,Ke()}})}function gn(ct,Nt){c(jB,{text:ct,onParse:V0,onRepair:Oz,onApply:Nt},xt(xt({},Yu),{},{styleWindow:{width:"600px",height:"500px"},styleContent:{padding:0,height:"100%"}}),{onClose:function(){return Ke()}})}function pn(){if(!k&&Ot.getState().canUndo){var ct=Ot.undo();if(ct){var Nt={json:w,text:x};n(8,w=ct.undo.patch?xa(w,ct.undo.patch):ct.undo.json),n(11,G=ct.undo.state),n(16,x=ct.undo.text),n(19,pt=ct.undo.textIsRepaired),n(17,bt=void 0),s("undo",{item:ct,json:w}),xn(Nt,{json:w,previousJson:Nt.json,redo:ct.undo.patch,undo:ct.redo.patch}),Ke(),G.selection&&In(ge(G.selection),!1)}}}function Zn(){if(!k&&Ot.getState().canRedo){var ct=Ot.redo();if(ct){var Nt={json:w,text:x};n(8,w=ct.redo.patch?xa(w,ct.redo.patch):ct.redo.json),n(11,G=ct.redo.state),n(16,x=ct.redo.text),n(19,pt=ct.redo.textIsRepaired),n(17,bt=void 0),s("redo",{item:ct,json:w}),xn(Nt,{json:w,previousJson:Nt.json,redo:ct.redo.patch,undo:ct.undo.patch}),Ke(),G.selection&&In(ge(G.selection),!1)}}}function yn(ct,Nt){n(69,rt[Nt]=ct.getBoundingClientRect().height,rt)}return e.$$set=function(ct){"readOnly"in ct&&n(0,k=ct.readOnly),"externalContent"in ct&&n(47,E=ct.externalContent),"externalSelection"in ct&&n(48,_=ct.externalSelection),"mainMenuBar"in ct&&n(1,T=ct.mainMenuBar),"escapeControlCharacters"in ct&&n(49,$=ct.escapeControlCharacters),"escapeUnicodeCharacters"in ct&&n(50,j=ct.escapeUnicodeCharacters),"flattenColumns"in ct&&n(51,R=ct.flattenColumns),"parser"in ct&&n(2,q=ct.parser),"parseMemoizeOne"in ct&&n(52,O=ct.parseMemoizeOne),"validator"in ct&&n(53,F=ct.validator),"validationParser"in ct&&n(54,J=ct.validationParser),"indentation"in ct&&n(3,I=ct.indentation),"onChange"in ct&&n(55,D=ct.onChange),"onChangeMode"in ct&&n(4,C=ct.onChangeMode),"onSelect"in ct&&n(56,M=ct.onSelect),"onRenderValue"in ct&&n(57,P=ct.onRenderValue),"onRenderMenu"in ct&&n(5,B=ct.onRenderMenu),"onFocus"in ct&&n(58,A=ct.onFocus),"onBlur"in ct&&n(59,W=ct.onBlur),"onSortModal"in ct&&n(60,N=ct.onSortModal),"onTransformModal"in ct&&n(61,dt=ct.onTransformModal),"onJSONEditorModal"in ct&&n(62,et=ct.onJSONEditorModal)},e.$$.update=function(){786432&e.$$.dirty[1]&&n(68,m=cj({escapeControlCharacters:$,escapeUnicodeCharacters:j})),65536&e.$$.dirty[1]&&Vt(E),131072&e.$$.dirty[1]&&function(ct){an(G.selection,ct)||(s("applyExternalSelection",ct),L(ct))}(_),1792&e.$$.dirty[0]|1048576&e.$$.dirty[1]&&n(10,gt=Wn(w)?function(ct,Nt){var ne,ae=new Set(Nt.map(oe)),Yt=new Set(ct.map(oe)),Te=ht(ae);try{for(Te.s();!(ne=Te.n()).done;){var He=ne.value;Yt.has(He)||ae.delete(He)}}catch(Kn){Te.e(Kn)}finally{Te.f()}var Ve,de=ht(Yt);try{for(de.s();!(Ve=de.n()).done;){var fn=Ve.value;ae.has(fn)||ae.add(fn)}}catch(Kn){de.e(Kn)}finally{de.f()}return $e(ae).map(Ca)}(Mmt(w,R,jt),gt):[]),1280&e.$$.dirty[0]&&n(25,r=w&&!cn(gt)),768&e.$$.dirty[0]&&n(24,o=Array.isArray(w)&&w.length>jt),256&e.$$.dirty[0]|896&e.$$.dirty[2]&&n(23,i=Amt(_t,X,w,rt,kd)),256&e.$$.dirty[0]&&y&&y.scrollTo({top:y.scrollTop,left:y.scrollLeft}),2309&e.$$.dirty[0]|67108864&e.$$.dirty[1]|64&e.$$.dirty[2]&&n(21,mt={readOnly:k,parser:q,normalization:m,getJson:function(){return w},getDocumentState:function(){return G},findElement:En,findNextInside:Ye,focus:Ke,onPatch:le,onSelect:L,onFind:Ie,onPasteJson:mn,onRenderValue:P}),260&e.$$.dirty[0]|12582912&e.$$.dirty[1]&&ue(w,F,q,J),5120&e.$$.dirty[0]&&n(22,a=Pmt(te,gt))},[k,T,q,I,C,B,Ke,function(){if(pt&&w!==void 0){var ct=G,Nt=w,ne=x,ae={json:w,text:x},Yt=pt;n(16,x=void 0),n(19,pt=!1),U(w),Qt({previousJson:Nt,previousState:ct,previousText:ne,previousTextIsRepaired:Yt}),xn(ae,null)}return{json:w,text:x}},w,jt,gt,G,te,g,y,b,x,bt,yt,pt,Ct,mt,a,i,o,r,v,void 0,function(ct){if(!k){s("onSortByHeader",ct);var Nt=ct.sortDirection===zi.desc?-1:1;le($B(w,[],ct.path,Nt),function(ne,ae){return{state:xt(xt({},ae),{},{sortedColumn:ct})}})}},function(ct){n(71,_t=ct.target.scrollTop)},function(ct){var Nt=ct!=null&&ct.target?zz(ct.target):void 0;if(Nt){if(Gi(G.selection)&&Dh(w,G.selection,Nt))return;L(We(Nt,!1)),ct.preventDefault()}setTimeout(function(){setTimeout(function(){K||uj(ct.target,"BUTTON")||Ke()})})},Nn,sr,function(ct){k||Nn({anchor:Lz(ct.target,"BUTTON"),offsetTop:0,width:Ps,height:As,showTip:!0})},function(){return Be.apply(this,arguments)},function(){s("clear pasted json"),n(18,yt=void 0)},function(){C(wo.text)},function(ct){var Nt=ou(ct);if(s("keydown",{combo:Nt,key:ct.key}),Nt==="Ctrl+X"&&(ct.preventDefault(),$t(!0)),Nt==="Ctrl+Shift+X"&&(ct.preventDefault(),$t(!1)),Nt==="Ctrl+C"&&(ct.preventDefault(),Q(!0)),Nt==="Ctrl+Shift+C"&&(ct.preventDefault(),Q(!1)),Nt==="Ctrl+D"&&ct.preventDefault(),Nt!=="Delete"&&Nt!=="Backspace"||(ct.preventDefault(),vt()),Nt==="Insert"&&ct.preventDefault(),Nt==="Ctrl+A"&&ct.preventDefault(),Nt==="Ctrl+Q"&&sr(ct),Nt==="ArrowLeft"&&(ct.preventDefault(),qn(),G.selection)){var ne=function(de,fn){var Kn=Ai(ge(fn),de),Dn=Kn.rowIndex,Lr=Kn.columnIndex;return Lr>0?We(Au({rowIndex:Dn,columnIndex:Lr-1},de),!1):fn}(gt,G.selection);L(ne),$n(ge(ne))}if(Nt==="ArrowRight"&&(ct.preventDefault(),qn(),G.selection)){var ae=function(de,fn){var Kn=Ai(ge(fn),de),Dn=Kn.rowIndex,Lr=Kn.columnIndex;return Lr<de.length-1?We(Au({rowIndex:Dn,columnIndex:Lr+1},de),!1):fn}(gt,G.selection);L(ae),$n(ge(ae))}if(Nt==="ArrowUp"&&(ct.preventDefault(),qn(),G.selection)){var Yt=function(de,fn){var Kn=Ai(ge(fn),de),Dn=Kn.rowIndex,Lr=Kn.columnIndex;return Dn>0?We(Au({rowIndex:Dn-1,columnIndex:Lr},de),!1):fn}(gt,G.selection);L(Yt),$n(ge(Yt))}if(Nt==="ArrowDown"&&(ct.preventDefault(),qn(),G.selection)){var Te=function(de,fn,Kn){var Dn=Ai(ge(Kn),fn),Lr=Dn.rowIndex,ci=Dn.columnIndex;return Lr<de.length-1?We(Au({rowIndex:Lr+1,columnIndex:ci},fn),!1):Kn}(w,gt,G.selection);L(Te),$n(ge(Te))}if(Nt==="Enter"&&G.selection&&dn(G.selection)){ct.preventDefault();var He=G.selection.path;xr(fe(w,He))?ke(He):k||L(xt(xt({},G.selection),{},{edit:!0}))}if(Nt.replace(/^Shift\+/,"").length===1&&G.selection)return ct.preventDefault(),void function(de){Xe.apply(this,arguments)}(ct.key);if(Nt==="Ctrl+Enter"&&dn(G.selection)){var Ve=fe(w,G.selection.path);C0(Ve)&&window.open(String(Ve),"_blank")}Nt==="Escape"&&G.selection&&(ct.preventDefault(),L(null)),Nt==="Ctrl+F"&&ct.preventDefault(),Nt==="Ctrl+H"&&ct.preventDefault(),Nt==="Ctrl+Z"&&(ct.preventDefault(),pn()),Nt==="Ctrl+Shift+Z"&&(ct.preventDefault(),Zn())},function(ct){ct.preventDefault(),PB({clipboardText:ct.clipboardData.getData("text/plain"),json:w,selection:G.selection,readOnly:k,parser:q,onPatch:le,onChangeText:kn,openRepairModal:gn})},function(ct){s("select validation error",ct),L(We(ct.path,!1)),In(ct.path)},ke,function(){(function(ct){k||w===void 0||(Y=!0,N({id:h,json:w,rootPath:ct,onSort:function(Nt){var ne=Nt.operations,ae=Nt.itemPath,Yt=Nt.direction;s("onSort",ne,ct,ae,Yt),le(ne,function(Te,He){return{state:xt(xt({},He),{},{sortedColumn:{path:ae,sortDirection:Yt===-1?zi.desc:zi.asc}})}})},onClose:function(){Y=!1,Ke()}}))})([])},function(){On({rootPath:[]})},pn,Zn,function(ct){n(70,X=ct.getBoundingClientRect().height)},yn,E,_,$,j,R,O,F,J,D,M,P,A,W,N,dt,et,Me,en,In,En,On,m,rt,X,_t,function(ct){Ze[ct?"unshift":"push"](function(){n(15,b=ct)})},function(){return n(9,jt=1/0)},function(ct,Nt){return yn(Nt,ct)},function(ct){Ze[ct?"unshift":"push"](function(){n(14,y=ct)})},function(){setTimeout(Ke)},function(ct){Ze[ct?"unshift":"push"](function(){n(13,g=ct)})}]}var Ewt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,Cwt,$wt,qe,{readOnly:0,externalContent:47,externalSelection:48,mainMenuBar:1,escapeControlCharacters:49,escapeUnicodeCharacters:50,flattenColumns:51,parser:2,parseMemoizeOne:52,validator:53,validationParser:54,indentation:3,onChange:55,onChangeMode:4,onSelect:56,onRenderValue:57,onRenderMenu:5,onFocus:58,onBlur:59,onSortModal:60,onTransformModal:61,onJSONEditorModal:62,validate:63,patch:64,focus:6,acceptAutoRepair:7,scrollTo:65,findElement:66,openTransformModal:67},ywt,[-1,-1,-1,-1,-1]),o}return it(n,[{key:"validate",get:function(){return this.$$.ctx[63]}},{key:"patch",get:function(){return this.$$.ctx[64]}},{key:"focus",get:function(){return this.$$.ctx[6]}},{key:"acceptAutoRepair",get:function(){return this.$$.ctx[7]}},{key:"scrollTo",get:function(){return this.$$.ctx[65]}},{key:"findElement",get:function(){return this.$$.ctx[66]}},{key:"openTransformModal",get:function(){return this.$$.ctx[67]}}]),n}();function Owt(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],onSortModal:e[26],onTransformModal:e[27],onJSONEditorModal:e[28]};return t=new $j({props:r}),e[47](t),{c:function(){Pt(t.$$.fragment)},m:function(o,i){Mt(t,o,i),n=!0},p:function(o,i){var a={};1&i[0]&&(a.externalContent=o[0]),2&i[0]&&(a.externalSelection=o[1]),4&i[0]&&(a.readOnly=o[2]),8&i[0]&&(a.indentation=o[3]),64&i[0]&&(a.mainMenuBar=o[6]),128&i[0]&&(a.navigationBar=o[7]),1024&i[0]&&(a.escapeControlCharacters=o[10]),2048&i[0]&&(a.escapeUnicodeCharacters=o[11]),8192&i[0]&&(a.parser=o[13]),16384&i[0]&&(a.parseMemoizeOne=o[14]),32768&i[0]&&(a.validator=o[15]),65536&i[0]&&(a.validationParser=o[16]),131072&i[0]&&(a.pathParser=o[17]),8388608&i[0]&&(a.onError=o[23]),262144&i[0]&&(a.onChange=o[18]),524288&i[0]&&(a.onChangeMode=o[19]),1048576&i[0]&&(a.onSelect=o[20]),2097152&i[0]&&(a.onRenderValue=o[21]),4194304&i[0]&&(a.onClassName=o[22]),16777216&i[0]&&(a.onFocus=o[24]),33554432&i[0]&&(a.onBlur=o[25]),2&i[1]&&(a.onRenderMenu=o[32]),67108864&i[0]&&(a.onSortModal=o[26]),134217728&i[0]&&(a.onTransformModal=o[27]),268435456&i[0]&&(a.onJSONEditorModal=o[28]),t.$set(a)},i:function(o){n||(z(t.$$.fragment,o),n=!0)},o:function(o){V(t.$$.fragment,o),n=!1},d:function(o){e[47](null),At(t,o)}}}function Mwt(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],onSortModal:e[26],onTransformModal:e[27],onJSONEditorModal:e[28]};return t=new Ewt({props:r}),e[46](t),{c:function(){Pt(t.$$.fragment)},m:function(o,i){Mt(t,o,i),n=!0},p:function(o,i){var a={};1&i[0]&&(a.externalContent=o[0]),2&i[0]&&(a.externalSelection=o[1]),4&i[0]&&(a.readOnly=o[2]),64&i[0]&&(a.mainMenuBar=o[6]),1024&i[0]&&(a.escapeControlCharacters=o[10]),2048&i[0]&&(a.escapeUnicodeCharacters=o[11]),4096&i[0]&&(a.flattenColumns=o[12]),8192&i[0]&&(a.parser=o[13]),16384&i[0]&&(a.parseMemoizeOne=o[14]),32768&i[0]&&(a.validator=o[15]),65536&i[0]&&(a.validationParser=o[16]),8&i[0]&&(a.indentation=o[3]),262144&i[0]&&(a.onChange=o[18]),524288&i[0]&&(a.onChangeMode=o[19]),1048576&i[0]&&(a.onSelect=o[20]),2097152&i[0]&&(a.onRenderValue=o[21]),16777216&i[0]&&(a.onFocus=o[24]),33554432&i[0]&&(a.onBlur=o[25]),2&i[1]&&(a.onRenderMenu=o[32]),67108864&i[0]&&(a.onSortModal=o[26]),134217728&i[0]&&(a.onTransformModal=o[27]),268435456&i[0]&&(a.onJSONEditorModal=o[28]),t.$set(a)},i:function(o){n||(z(t.$$.fragment,o),n=!0)},o:function(o){V(t.$$.fragment,o),n=!1},d:function(o){e[46](null),At(t,o)}}}function Awt(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 qbt({props:r}),e[45](t),{c:function(){Pt(t.$$.fragment)},m:function(o,i){Mt(t,o,i),n=!0},p:function(o,i){var a={};1&i[0]&&(a.externalContent=o[0]),2&i[0]&&(a.externalSelection=o[1]),4&i[0]&&(a.readOnly=o[2]),8&i[0]&&(a.indentation=o[3]),16&i[0]&&(a.tabSize=o[4]),64&i[0]&&(a.mainMenuBar=o[6]),256&i[0]&&(a.statusBar=o[8]),512&i[0]&&(a.askToFormat=o[9]),2048&i[0]&&(a.escapeUnicodeCharacters=o[11]),8192&i[0]&&(a.parser=o[13]),32768&i[0]&&(a.validator=o[15]),65536&i[0]&&(a.validationParser=o[16]),262144&i[0]&&(a.onChange=o[18]),1048576&i[0]&&(a.onSelect=o[20]),524288&i[0]&&(a.onChangeMode=o[19]),8388608&i[0]&&(a.onError=o[23]),16777216&i[0]&&(a.onFocus=o[24]),33554432&i[0]&&(a.onBlur=o[25]),2&i[1]&&(a.onRenderMenu=o[32]),67108864&i[0]&&(a.onSortModal=o[26]),134217728&i[0]&&(a.onTransformModal=o[27]),t.$set(a)},i:function(o){n||(z(t.$$.fragment,o),n=!0)},o:function(o){V(t.$$.fragment,o),n=!1},d:function(o){e[45](null),At(t,o)}}}function Pwt(e){var t,n,r,o,i=[Awt,Mwt,Owt],a=[];function s(c,u){return c[5]===wo.text||c[5]==="code"?0:c[5]===wo.table?1:2}return t=s(e),n=a[t]=i[t](e),{c:function(){n.c(),r=Sn()},m:function(c,u){a[t].m(c,u),ft(c,r,u),o=!0},p:function(c,u){var l=t;(t=s(c))===l?a[t].p(c,u):(Bt(),V(a[l],1,1,function(){a[l]=null}),Ft(),(n=a[t])?n.p(c,u):(n=a[t]=i[t](c)).c(),z(n,1),n.m(r.parentNode,r))},i:function(c){o||(z(n),o=!0)},o:function(c){V(n),o=!1},d:function(c){c&<(r),a[t].d(c)}}}function Twt(e,t,n){var r,o,i,a,s,c=t.content,u=t.selection,l=t.readOnly,f=t.indentation,d=t.tabSize,h=t.mode,p=t.mainMenuBar,v=t.navigationBar,m=t.statusBar,g=t.askToFormat,y=t.escapeControlCharacters,b=t.escapeUnicodeCharacters,w=t.flattenColumns,x=t.parser,k=t.parseMemoizeOne,E=t.validator,_=t.validationParser,T=t.pathParser,$=t.insideModal,j=t.onChange,R=t.onChangeMode,q=t.onSelect,O=t.onRenderValue,F=t.onClassName,J=t.onRenderMenu,I=t.onError,D=t.onFocus,C=t.onBlur,M=t.onSortModal,P=t.onTransformModal,B=t.onJSONEditorModal,A={type:"separator"};function W(){return(W=Ae(qt().mark(function N(){return qt().wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:if(!i){dt.next=3;break}return dt.next=3,i.refresh();case 3:case"end":return dt.stop()}},N)}))).apply(this,arguments)}return e.$$set=function(N){"content"in N&&n(0,c=N.content),"selection"in N&&n(1,u=N.selection),"readOnly"in N&&n(2,l=N.readOnly),"indentation"in N&&n(3,f=N.indentation),"tabSize"in N&&n(4,d=N.tabSize),"mode"in N&&n(5,h=N.mode),"mainMenuBar"in N&&n(6,p=N.mainMenuBar),"navigationBar"in N&&n(7,v=N.navigationBar),"statusBar"in N&&n(8,m=N.statusBar),"askToFormat"in N&&n(9,g=N.askToFormat),"escapeControlCharacters"in N&&n(10,y=N.escapeControlCharacters),"escapeUnicodeCharacters"in N&&n(11,b=N.escapeUnicodeCharacters),"flattenColumns"in N&&n(12,w=N.flattenColumns),"parser"in N&&n(13,x=N.parser),"parseMemoizeOne"in N&&n(14,k=N.parseMemoizeOne),"validator"in N&&n(15,E=N.validator),"validationParser"in N&&n(16,_=N.validationParser),"pathParser"in N&&n(17,T=N.pathParser),"insideModal"in N&&n(33,$=N.insideModal),"onChange"in N&&n(18,j=N.onChange),"onChangeMode"in N&&n(19,R=N.onChangeMode),"onSelect"in N&&n(20,q=N.onSelect),"onRenderValue"in N&&n(21,O=N.onRenderValue),"onClassName"in N&&n(22,F=N.onClassName),"onRenderMenu"in N&&n(34,J=N.onRenderMenu),"onError"in N&&n(23,I=N.onError),"onFocus"in N&&n(24,D=N.onFocus),"onBlur"in N&&n(25,C=N.onBlur),"onSortModal"in N&&n(26,M=N.onSortModal),"onTransformModal"in N&&n(27,P=N.onTransformModal),"onJSONEditorModal"in N&&n(28,B=N.onJSONEditorModal)},e.$$.update=function(){524320&e.$$.dirty[0]&&n(44,a=[{type:"button",text:"text",title:"Switch to text mode (current mode: ".concat(h,")"),className:"jse-group-button jse-first"+(h===wo.text||h==="code"?" jse-selected":""),onClick:function(){return R(wo.text)}},{type:"button",text:"tree",title:"Switch to tree mode (current mode: ".concat(h,")"),className:"jse-group-button "+(h===wo.tree?" jse-selected":""),onClick:function(){return R(wo.tree)}},{type:"button",text:"table",title:"Switch to table mode (current mode: ".concat(h,")"),className:"jse-group-button jse-last"+(h===wo.table?" jse-selected":""),onClick:function(){return R(wo.table)}}]),32&e.$$.dirty[0]|8204&e.$$.dirty[1]&&n(32,s=function(N){var dt=kB(N[0])?a.concat(N):a.concat(A,N);return J(dt,{mode:h,modal:$})||dt})},[c,u,l,f,d,h,p,v,m,g,y,b,w,x,k,E,_,T,j,R,q,O,F,I,D,C,M,P,B,r,o,i,s,$,J,function(N){return r?r.patch(N):o?o.patch(N):i?i.patch(N):void 0},function(N){if(r)return r.expand(N);throw new Error('Method expand is not available in mode "'.concat(h,'"'))},function(N){if(i)i.openTransformModal(N);else if(r)r.openTransformModal(N);else{if(!o)throw new Error('Method transform is not available in mode "'.concat(h,'"'));o.openTransformModal(N)}},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(h,'"'))},function(){return r?r.acceptAutoRepair():c},function(N){if(r)return r.scrollTo(N);if(o)return o.scrollTo(N);throw new Error('Method scrollTo is not available in mode "'.concat(h,'"'))},function(N){if(r)return r.findElement(N);if(o)return o.findElement(N);throw new Error('Method findElement is not available in mode "'.concat(h,'"'))},function(){i?i.focus():r?r.focus():o&&o.focus()},function(){return W.apply(this,arguments)},a,function(N){Ze[N?"unshift":"push"](function(){n(31,i=N)})},function(N){Ze[N?"unshift":"push"](function(){n(30,o=N)})},function(N){Ze[N?"unshift":"push"](function(){n(29,r=N)})}]}var SH=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,Twt,Pwt,eo,{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:33,onChange:18,onChangeMode:19,onSelect:20,onRenderValue:21,onClassName:22,onRenderMenu:34,onError:23,onFocus:24,onBlur:25,onSortModal:26,onTransformModal:27,onJSONEditorModal:28,patch:35,expand:36,transform:37,validate:38,acceptAutoRepair:39,scrollTo:40,findElement:41,focus:42,refresh:43},null,[-1,-1]),o}return it(n,[{key:"patch",get:function(){return this.$$.ctx[35]}},{key:"expand",get:function(){return this.$$.ctx[36]}},{key:"transform",get:function(){return this.$$.ctx[37]}},{key:"validate",get:function(){return this.$$.ctx[38]}},{key:"acceptAutoRepair",get:function(){return this.$$.ctx[39]}},{key:"scrollTo",get:function(){return this.$$.ctx[40]}},{key:"findElement",get:function(){return this.$$.ctx[41]}},{key:"focus",get:function(){return this.$$.ctx[42]}},{key:"refresh",get:function(){return this.$$.ctx[43]}}]),n}();function Rwt(e){Le(e,"svelte-1hibiw3",".jse-modal.svelte-1hibiw3.svelte-1hibiw3{--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px;flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;background:var(--jse-modal-background);color:var(--jse-text-color)}.jse-modal.svelte-1hibiw3 .jse-modal-contents.svelte-1hibiw3{padding:20px;overflow:auto;min-width:0;min-height:0}.jse-modal.svelte-1hibiw3 .jse-modal-contents .jse-actions.svelte-1hibiw3{display:flex;flex-direction:row;justify-content:flex-end;padding-top:var(--jse-padding)}.jse-modal.svelte-1hibiw3 .jse-modal-contents .jse-actions button.jse-primary.svelte-1hibiw3{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px}.jse-modal.svelte-1hibiw3 .jse-modal-contents .jse-actions button.jse-primary.svelte-1hibiw3:hover{background:var(--jse-button-primary-background-highlight)}.jse-modal.svelte-1hibiw3 .jse-modal-contents .jse-actions button.jse-primary.svelte-1hibiw3:disabled{background:var(--jse-button-primary-background-disabled)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-modal-overlay-background)}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0}.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;height:auto;min-height:500px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-content{flex:1;display:flex;max-height:calc(100vh - 6rem);padding:0}.jse-modal.jse-jsoneditor-modal.svelte-1hibiw3 .jse-modal-contents.svelte-1hibiw3{flex:1;display:flex;flex-direction:column;padding-top:0;--jse-theme-color:var(--jse-modal-theme-color);--jse-theme-color-highlight:var(--jse-modal-theme-color-highlight)}.jse-modal.jse-jsoneditor-modal.svelte-1hibiw3 .jse-modal-contents .jse-label.svelte-1hibiw3{font-weight:bold;display:block;box-sizing:border-box}.jse-modal.jse-jsoneditor-modal.svelte-1hibiw3 .jse-modal-contents .jse-label .jse-label-inner.svelte-1hibiw3{margin-top:calc(2 * var(--jse-padding));margin-bottom:calc(0.5 * var(--jse-padding));box-sizing:border-box}.jse-modal.jse-jsoneditor-modal.svelte-1hibiw3 .jse-modal-contents .jse-label .jse-label-inner button.svelte-1hibiw3{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;font-weight:bold;padding:0}.jse-modal.jse-jsoneditor-modal.svelte-1hibiw3 .jse-modal-contents .jse-modal-inline-editor.svelte-1hibiw3{flex:1;min-height:0;min-width:0;display:flex}.jse-modal.jse-jsoneditor-modal.svelte-1hibiw3 .jse-actions.svelte-1hibiw3{gap:var(--jse-padding);align-items:center}.jse-modal.jse-jsoneditor-modal.svelte-1hibiw3 .jse-actions .jse-error.svelte-1hibiw3{flex:1;color:var(--jse-error-color)}.jse-modal.jse-jsoneditor-modal.svelte-1hibiw3 .jse-actions button.jse-secondary.svelte-1hibiw3{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-secondary-background);color:var(--jse-button-secondary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px}.jse-modal.jse-jsoneditor-modal.svelte-1hibiw3 .jse-actions button.jse-secondary.svelte-1hibiw3:hover{background:var(--jse-button-secondary-background-highlight)}.jse-modal.jse-jsoneditor-modal.svelte-1hibiw3 .jse-actions button.jse-secondary.svelte-1hibiw3:disabled{background:var(--jse-button-secondary-background-disabled)}.jse-modal.jse-jsoneditor-modal.svelte-1hibiw3 input.svelte-1hibiw3{border:var(--jse-input-border);outline:none;box-sizing:border-box;padding:calc(0.5 * var(--jse-padding));font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);color:inherit;background:var(--jse-input-background)}.jse-modal.jse-jsoneditor-modal.svelte-1hibiw3 input.svelte-1hibiw3:focus{border:var(--jse-input-border-focus)}.jse-modal.jse-jsoneditor-modal.svelte-1hibiw3 input.svelte-1hibiw3:read-only{background:var(--jse-input-background-readonly)}")}function DR(e){var t,n;return{c:function(){t=tt("div"),n=Gt(e[21]),S(t,"class","jse-error svelte-1hibiw3")},m:function(r,o){ft(r,t,o),H(t,n)},p:function(r,o){2097152&o[0]&&we(n,r[21])},d:function(r){r&<(t)}}}function LR(e){var t,n,r,o,i,a;return n=new hn({props:{data:gdt}}),{c:function(){t=tt("button"),Pt(n.$$.fragment),r=Gt(" Back"),S(t,"type","button"),S(t,"class","jse-secondary svelte-1hibiw3")},m:function(s,c){ft(s,t,c),Mt(n,t,null),H(t,r),o=!0,i||(a=zt(t,"click",e[26]),i=!0)},p:Ht,i:function(s){o||(z(n.$$.fragment,s),o=!0)},o:function(s){V(n.$$.fragment,s),o=!1},d:function(s){s&<(t),At(n),i=!1,a()}}}function Iwt(e){var t,n,r;return{c:function(){(t=tt("button")).textContent="Close",S(t,"type","button"),S(t,"class","jse-primary svelte-1hibiw3")},m:function(o,i){ft(o,t,i),n||(r=[zt(t,"click",e[26]),fo($H.call(null,t))],n=!0)},p:Ht,d:function(o){o&<(t),n=!1,Fn(r)}}}function Nwt(e){var t,n,r;return{c:function(){(t=tt("button")).textContent="Apply",S(t,"type","button"),S(t,"class","jse-primary svelte-1hibiw3")},m:function(o,i){ft(o,t,i),n||(r=[zt(t,"click",e[25]),fo($H.call(null,t))],n=!0)},p:Ht,d:function(o){o&<(t),n=!1,Fn(r)}}}function Dwt(e){var t,n,r,o,i,a,s,c,u,l,f,d,h,p,v,m,g,y,b;n=new wj({props:{title:"Edit nested content "+(e[19].length>1?" (".concat(e[19].length,")"):""),onClose:e[26]}});var w={mode:e[22].mode,content:e[22].content,selection:e[22].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[23],validator:e[11],validationParser:e[12],pathParser:e[13],insideModal:!0,onError:e[30],onChange:e[27],onChangeMode:e[29],onSelect:e[28],onRenderValue:e[14],onClassName:e[15],onFocus:ca,onBlur:ca,onRenderMenu:e[16],onSortModal:e[17],onTransformModal:e[18],onJSONEditorModal:e[31]};d=new SH({props:w}),e[36](d);var x=e[21]&&DR(e),k=e[19].length>1&&LR(e);function E($,j){return $[0]?Iwt:Nwt}var _=E(e),T=_(e);return{c:function(){t=tt("div"),Pt(n.$$.fragment),r=kt(),o=tt("div"),(i=tt("div")).innerHTML='<div class="jse-label-inner svelte-1hibiw3">Path</div>',a=kt(),s=tt("input"),c=kt(),(u=tt("div")).innerHTML='<div class="jse-label-inner svelte-1hibiw3">Contents</div>',l=kt(),f=tt("div"),Pt(d.$$.fragment),h=kt(),p=tt("div"),x&&x.c(),v=kt(),k&&k.c(),m=kt(),T.c(),S(i,"class","jse-label svelte-1hibiw3"),S(s,"class","jse-path svelte-1hibiw3"),S(s,"type","text"),s.readOnly=!0,S(s,"title","Selected path"),s.value=e[24],S(u,"class","jse-label svelte-1hibiw3"),S(f,"class","jse-modal-inline-editor svelte-1hibiw3"),S(p,"class","jse-actions svelte-1hibiw3"),S(o,"class","jse-modal-contents svelte-1hibiw3"),S(t,"class","jse-modal jse-jsoneditor-modal svelte-1hibiw3")},m:function($,j){ft($,t,j),Mt(n,t,null),H(t,r),H(t,o),H(o,i),H(o,a),H(o,s),H(o,c),H(o,u),H(o,l),H(o,f),Mt(d,f,null),H(o,h),H(o,p),x&&x.m(p,null),H(p,v),k&&k.m(p,null),H(p,m),T.m(p,null),g=!0,y||(b=fo(n1.call(null,t,e[26])),y=!0)},p:function($,j){var R={};524288&j[0]&&(R.title="Edit nested content "+($[19].length>1?" (".concat($[19].length,")"):"")),n.$set(R),(!g||16777216&j[0]&&s.value!==$[24])&&(s.value=$[24]);var q={};4194304&j[0]&&(q.mode=$[22].mode),4194304&j[0]&&(q.content=$[22].content),4194304&j[0]&&(q.selection=$[22].selection),1&j[0]&&(q.readOnly=$[0]),2&j[0]&&(q.indentation=$[1]),4&j[0]&&(q.tabSize=$[2]),32&j[0]&&(q.statusBar=$[5]),64&j[0]&&(q.askToFormat=$[6]),8&j[0]&&(q.mainMenuBar=$[3]),16&j[0]&&(q.navigationBar=$[4]),128&j[0]&&(q.escapeControlCharacters=$[7]),256&j[0]&&(q.escapeUnicodeCharacters=$[8]),512&j[0]&&(q.flattenColumns=$[9]),1024&j[0]&&(q.parser=$[10]),8388608&j[0]&&(q.parseMemoizeOne=$[23]),2048&j[0]&&(q.validator=$[11]),4096&j[0]&&(q.validationParser=$[12]),8192&j[0]&&(q.pathParser=$[13]),16384&j[0]&&(q.onRenderValue=$[14]),32768&j[0]&&(q.onClassName=$[15]),65536&j[0]&&(q.onRenderMenu=$[16]),131072&j[0]&&(q.onSortModal=$[17]),262144&j[0]&&(q.onTransformModal=$[18]),d.$set(q),$[21]?x?x.p($,j):((x=DR($)).c(),x.m(p,v)):x&&(x.d(1),x=null),$[19].length>1?k?(k.p($,j),524288&j[0]&&z(k,1)):((k=LR($)).c(),z(k,1),k.m(p,m)):k&&(Bt(),V(k,1,1,function(){k=null}),Ft()),_===(_=E($))&&T?T.p($,j):(T.d(1),(T=_($))&&(T.c(),T.m(p,null)))},i:function($){g||(z(n.$$.fragment,$),z(d.$$.fragment,$),z(k),g=!0)},o:function($){V(n.$$.fragment,$),V(d.$$.fragment,$),V(k),g=!1},d:function($){$&<(t),At(n),e[36](null),At(d),x&&x.d(),k&&k.d(),T.d(),y=!1,b()}}}function $H(e){e.focus()}function Lwt(e,t,n){var r,o,i,a,s,c=po("jsoneditor:JSONEditorModal"),u=t.content,l=t.path,f=t.onPatch,d=t.readOnly,h=t.indentation,p=t.tabSize,v=t.mainMenuBar,m=t.navigationBar,g=t.statusBar,y=t.askToFormat,b=t.escapeControlCharacters,w=t.escapeUnicodeCharacters,x=t.flattenColumns,k=t.parser,E=t.validator,_=t.validationParser,T=t.pathParser,$=t.onRenderValue,j=t.onClassName,R=t.onRenderMenu,q=t.onSortModal,O=t.onTransformModal,F=ho("simple-modal").close,J={mode:C(u),content:u,selection:null,relativePath:l},I=[J],D=void 0;function C(P){return sj(P)&&Wn(P.json)?wo.table:wo.tree}function M(){var P,B=((P=Re(I))===null||P===void 0?void 0:P.selection)||null;B&&s.scrollTo(ge(B))}return e.$$set=function(P){"content"in P&&n(32,u=P.content),"path"in P&&n(33,l=P.path),"onPatch"in P&&n(34,f=P.onPatch),"readOnly"in P&&n(0,d=P.readOnly),"indentation"in P&&n(1,h=P.indentation),"tabSize"in P&&n(2,p=P.tabSize),"mainMenuBar"in P&&n(3,v=P.mainMenuBar),"navigationBar"in P&&n(4,m=P.navigationBar),"statusBar"in P&&n(5,g=P.statusBar),"askToFormat"in P&&n(6,y=P.askToFormat),"escapeControlCharacters"in P&&n(7,b=P.escapeControlCharacters),"escapeUnicodeCharacters"in P&&n(8,w=P.escapeUnicodeCharacters),"flattenColumns"in P&&n(9,x=P.flattenColumns),"parser"in P&&n(10,k=P.parser),"validator"in P&&n(11,E=P.validator),"validationParser"in P&&n(12,_=P.validationParser),"pathParser"in P&&n(13,T=P.pathParser),"onRenderValue"in P&&n(14,$=P.onRenderValue),"onClassName"in P&&n(15,j=P.onClassName),"onRenderMenu"in P&&n(16,R=P.onRenderMenu),"onSortModal"in P&&n(17,q=P.onSortModal),"onTransformModal"in P&&n(18,O=P.onTransformModal)},e.$$.update=function(){524288&e.$$.dirty[0]&&n(22,r=Re(I)||J),524288&e.$$.dirty[0]&&n(35,o=I.flatMap(function(P){return P.relativePath})),16&e.$$.dirty[1]&&n(24,i=cn(o)?"(whole document)":ai(o)),1024&e.$$.dirty[0]&&n(23,a=Ap(k.parse))},[d,h,p,v,m,g,y,b,w,x,k,E,_,T,$,j,R,q,O,I,s,D,r,a,i,function(){if(c("handleApply"),!d)try{n(21,D=void 0);var P=r.relativePath,B=r.content,A=[{op:"replace",path:oe(P),value:BO(B,k).json}];if(I.length>1){var W={json:xa(BO(I[I.length-2].content,k).json,A)},N=xt(xt({},I[I.length-2]||J),{},{content:W});n(19,I=[].concat($e(I.slice(0,I.length-2)),[N])),br().then(M)}else f(A),F()}catch(dt){n(21,D=String(dt))}},function(){c("handleClose"),I.length>1?(n(19,I=on(I)),br().then(M),n(21,D=void 0)):F()},function(P){c("handleChange",P);var B=xt(xt({},r),{},{content:P});n(19,I=[].concat($e(on(I)),[B]))},function(P){c("handleChangeSelection",P);var B=xt(xt({},r),{},{selection:P});n(19,I=[].concat($e(on(I)),[B]))},function(P){c("handleChangeMode",P);var B=xt(xt({},r),{},{mode:P});n(19,I=[].concat($e(on(I)),[B]))},function(P){n(21,D=P.toString()),console.error(P)},function(P){var B=P.content,A=P.path;c("handleJSONEditorModal",{content:B,path:A});var W={mode:C(B),content:B,selection:null,relativePath:A};n(19,I=[].concat($e(I),[W]))},u,l,f,o,function(P){Ze[P?"unshift":"push"](function(){n(20,s=P)})}]}var zwt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,Lwt,Dwt,qe,{content:32,path:33,onPatch:34,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,onSortModal:17,onTransformModal:18},Rwt,[-1,-1]),o}return it(n)}();function Bwt(e,t,n){var r=ho("simple-modal");return[r.open,r.close]}var Fwt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,Bwt,null,qe,{open:0,close:1}),o}return it(n,[{key:"open",get:function(){return this.$$.ctx[0]}},{key:"close",get:function(){return this.$$.ctx[1]}}]),n}();function qwt(e){Le(e,"svelte-sxaskb",`:root{--jse-theme:light;--jse-font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,
|
|
118
|
+
Cantarell, "Helvetica Neue", sans-serif;--jse-font-family-mono:consolas, menlo, monaco, "Ubuntu Mono", "source-code-pro", monospace;--jse-font-size-mono:14px;--jse-font-size:16px;--jse-font-size-text-mode-search:80%;--jse-line-height:calc(1em + 4px);--jse-indent-size:calc(1em + 4px);--jse-color-picker-button-size:1em;--jse-padding:10px;--jse-theme-color:#3883fa;--jse-theme-color-highlight:#5f9dff;--jse-background-color:#fff;--jse-text-color:#4d4d4d;--jse-text-readonly:#8d8d8d;--jse-text-color-inverse:#fff;--jse-error-color:#ee5341;--jse-warning-color:#fdc539;--jse-main-border:1px solid #d7d7d7;--jse-menu-color:var(--jse-text-color-inverse);--jse-menu-button-size:32px;--jse-modal-background:#f5f5f5;--jse-modal-overlay-background:rgba(0, 0, 0, 0.3);--jse-modal-code-background:rgba(0, 0, 0, 0.05);--jse-modal-theme-color:#707070;--jse-modal-theme-color-highlight:#646464;--jse-tooltip-color:var(--jse-text-color);--jse-tooltip-background:var(--jse-modal-background);--jse-tooltip-border:var(--jse-main-border);--jse-tooltip-action-button-color:var(--jse-text-color-inverse);--jse-tooltip-action-button-background:#4d4d4d;--jse-panel-background:#ebebeb;--jse-panel-color:var(--jse-text-color);--jse-panel-color-readonly:#b2b2b2;--jse-panel-border:var(--jse-main-border);--jse-panel-button-color:inherit;--jse-panel-button-background:transparent;--jse-panel-button-color-highlight:var(--jse-text-color);--jse-panel-button-background-highlight:#e0e0e0;--jse-navigation-bar-background:var(--jse-background-color);--jse-navigation-bar-background-highlight:#e5e5e5;--jse-navigation-bar-dropdown-color:#656565;--jse-context-menu-background:#656565;--jse-context-menu-background-highlight:#7a7a7a;--jse-context-menu-color:var(--jse-text-color-inverse);--jse-context-menu-color-disabled:#9d9d9d;--jse-context-menu-separator-color:#7a7a7a;--jse-context-menu-pointer-hover-background:#b2b2b2;--jse-context-menu-pointer-background:var(--jse-context-menu-background);--jse-context-menu-pointer-background-highlight:var(--jse-context-menu-background-highlight);--jse-context-menu-pointer-color:var(--jse-context-menu-color);--jse-context-menu-pointer-size:calc(1em + 4px);--jse-context-menu-tip-background:rgba(255, 255, 255, 0.2);--jse-context-menu-tip-color:inherit;--jse-key-color:#1a1a1a;--jse-value-color:#1a1a1a;--jse-value-color-number:#ee422e;--jse-value-color-boolean:#ff8c00;--jse-value-color-null:#004ed0;--jse-value-color-string:#008000;--jse-value-color-url:#008000;--jse-delimiter-color:rgba(0, 0, 0, 0.38);--jse-edit-outline:2px solid #656565;--jse-contents-background-color:transparent;--jse-contents-cursor:pointer;--jse-contents-selected-cursor:grab;--jse-selection-background-color:#d3d3d3;--jse-selection-background-inactive-color:#e8e8e8;--jse-hover-background-color:rgba(0, 0, 0, 0.06);--jse-active-line-background-color:rgba(0, 0, 0, 0.06);--jse-search-match-background-color:#99ff7780;--jse-collapsed-items-background-color:#f5f5f5;--jse-collapsed-items-selected-background-color:#c2c2c2;--jse-collapsed-items-link-color:rgba(0, 0, 0, 0.38);--jse-collapsed-items-link-color-highlight:#ee5341;--jse-search-match-color:#ffe665;--jse-search-match-outline:1px solid #ffd700;--jse-search-match-active-color:#ffd700;--jse-search-match-active-outline:1px solid #e1be00;--jse-tag-background:rgba(0, 0, 0, 0.2);--jse-tag-color:var(--jse-text-color-inverse);--jse-table-header-background:#f5f5f5;--jse-table-header-background-highlight:#e8e8e8;--jse-table-row-odd-background:rgba(0, 0, 0, 0.05);--jse-controls-box-shadow:0 2px 6px 0 rgba(0, 0, 0, 0.24);--jse-input-background:var(--jse-background-color);--jse-input-background-readonly:transparent;--jse-input-border:1px solid #d8dbdf;--jse-input-border-focus:1px solid var(--jse-theme-color);--jse-input-radius:3px;--jse-button-background:#e0e0e0;--jse-button-background-highlight:#e7e7e7;--jse-button-color:var(--jse-text-color);--jse-button-primary-background:var(--jse-theme-color);--jse-button-primary-background-highlight:var(--jse-theme-color-highlight);--jse-button-primary-background-disabled:#9d9d9d;--jse-button-primary-color:var(--jse-text-color-inverse);--jse-button-secondary-background:#d3d3d3;--jse-button-secondary-background-highlight:#e1e1e1;--jse-button-secondary-background-disabled:#9d9d9d;--jse-button-secondary-color:var(--jse-text-color);--jse-a-color:#156fc5;--jse-a-color-highlight:#0f508d;--jse-message-error-background:var(--jse-error-color);--jse-message-error-color:var(--jse-text-color-inverse);--jse-message-warning-background:#ffde5c;--jse-message-warning-color:var(--jse-text-color);--jse-message-success-background:#9ac45d;--jse-message-success-color:var(--jse-text-color-inverse);--jse-message-info-background:#4f91ff;--jse-message-info-color:var(--jse-text-color-inverse);--jse-message-action-background:rgba(255, 255, 255, 0.2);--jse-message-action-background-highlight:rgba(255, 255, 255, 0.3);--item-is-active-bg:#3883fa;--border:1px solid #d8dbdf;--border-radius:3px;--background:#fff;--padding:0 10px;--multi-select-padding:0 10px;--jse-color-picker-background:var(--jse-panel-background);--jse-color-picker-border-box-shadow:#cbcbcb 0 0 0 1px}.jse-main.svelte-sxaskb{width:100%;height:100%;min-width:0;min-height:150px;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;position:relative;display:flex;flex-direction:row}`)}function zR(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[26],validator:e[14],validationParser:e[15],pathParser:e[16],insideModal:!1,onError:e[20],onChange:e[27],onChangeMode:e[31],onSelect:e[28],onRenderValue:e[17],onClassName:e[18],onFocus:e[29],onBlur:e[30],onRenderMenu:e[19],onSortModal:e[33],onTransformModal:e[32],onJSONEditorModal:e[34]};return t=new SH({props:r}),e[61](t),{c:function(){Pt(t.$$.fragment)},m:function(o,i){Mt(t,o,i),n=!0},p:function(o,i){var a={};2&i[0]&&(a.mode=o[1]),1&i[0]&&(a.content=o[0]),4&i[0]&&(a.selection=o[2]),8&i[0]&&(a.readOnly=o[3]),16&i[0]&&(a.indentation=o[4]),32&i[0]&&(a.tabSize=o[5]),256&i[0]&&(a.statusBar=o[8]),512&i[0]&&(a.askToFormat=o[9]),64&i[0]&&(a.mainMenuBar=o[6]),128&i[0]&&(a.navigationBar=o[7]),1024&i[0]&&(a.escapeControlCharacters=o[10]),2048&i[0]&&(a.escapeUnicodeCharacters=o[11]),4096&i[0]&&(a.flattenColumns=o[12]),8192&i[0]&&(a.parser=o[13]),67108864&i[0]&&(a.parseMemoizeOne=o[26]),16384&i[0]&&(a.validator=o[14]),32768&i[0]&&(a.validationParser=o[15]),65536&i[0]&&(a.pathParser=o[16]),1048576&i[0]&&(a.onError=o[20]),131072&i[0]&&(a.onRenderValue=o[17]),262144&i[0]&&(a.onClassName=o[18]),524288&i[0]&&(a.onRenderMenu=o[19]),t.$set(a)},i:function(o){n||(z(t.$$.fragment,o),n=!0)},o:function(o){V(t.$$.fragment,o),n=!1},d:function(o){e[61](null),At(t,o)}}}function Hwt(e){var t,n,r,o,i,a=e[21];function s(l){e[60](l)}var c={};e[24]!==void 0&&(c.open=e[24]),t=new Fwt({props:c}),Ze.push(function(){return da(t,"open",s)});var u=zR(e);return{c:function(){Pt(t.$$.fragment),r=kt(),o=tt("div"),u.c(),S(o,"class","jse-main svelte-sxaskb"),Dt(o,"jse-focus",e[22])},m:function(l,f){Mt(t,l,f),ft(l,r,f),ft(l,o,f),u.m(o,null),i=!0},p:function(l,f){var d={};!n&&16777216&f[0]&&(n=!0,d.open=l[24],fa(function(){return n=!1})),t.$set(d),2097152&f[0]&&qe(a,a=l[21])?(Bt(),V(u,1,1,Ht),Ft(),(u=zR(l)).c(),z(u,1),u.m(o,null)):u.p(l,f),(!i||4194304&f[0])&&Dt(o,"jse-focus",l[22])},i:function(l){i||(z(t.$$.fragment,l),z(u),i=!0)},o:function(l){V(t.$$.fragment,l),V(u),i=!1},d:function(l){l&&(lt(r),lt(o)),At(t,l),u.d(l)}}}function Vwt(e){var t,n;return t=new KN({props:{closeOnEsc:!1,$$slots:{default:[Hwt]},$$scope:{ctx:e}}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};100663295&o[0]|4&o[2]&&(i.$$scope={dirty:o,ctx:r}),t.$set(i)},i:function(r){n||(z(t.$$.fragment,r),n=!0)},o:function(r){V(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function Wwt(e){for(var t,n,r,o=[{show:(t=e[25])===null||t===void 0?void 0:t.component},$Z,{closeOnEsc:!1}],i={$$slots:{default:[Vwt]},$$scope:{ctx:e}},a=0;a<o.length;a+=1)i=oi(i,o[a]);return(n=new KN({props:i})).$on("close",e[35]),{c:function(){Pt(n.$$.fragment)},m:function(s,c){Mt(n,s,c),r=!0},p:function(s,c){var u,l=33554432&c[0]?Ui(o,[{show:(u=s[25])===null||u===void 0?void 0:u.component},o[1],o[2]]):{};100663295&c[0]|4&c[2]&&(l.$$scope={dirty:c,ctx:s}),n.$set(l)},i:function(s){r||(z(n.$$.fragment,s),r=!0)},o:function(s){V(n.$$.fragment,s),r=!1},d:function(s){At(n,s)}}}function Uwt(e){var t,n;return t=new Bz({props:{$$slots:{default:[Wwt]},$$scope:{ctx:e}}}),{c:function(){Pt(t.$$.fragment)},m:function(r,o){Mt(t,r,o),n=!0},p:function(r,o){var i={};134217727&o[0]|4&o[2]&&(i.$$scope={dirty:o,ctx:r}),t.$set(i)},i:function(r){n||(z(t.$$.fragment,r),n=!0)},o:function(r){V(t.$$.fragment,r),n=!1},d:function(r){At(t,r)}}}function Kwt(e,t,n){var r,o,i,a=po("jsoneditor:JSONEditor"),s=t.content,c=s===void 0?{text:""}:s,u=t.selection,l=u===void 0?null:u,f=t.readOnly,d=f!==void 0&&f,h=t.indentation,p=h===void 0?2:h,v=t.tabSize,m=v===void 0?4:v,g=t.mode,y=g===void 0?wo.tree:g,b=t.mainMenuBar,w=b===void 0||b,x=t.navigationBar,k=x===void 0||x,E=t.statusBar,_=E===void 0||E,T=t.askToFormat,$=T===void 0||T,j=t.escapeControlCharacters,R=j!==void 0&&j,q=t.escapeUnicodeCharacters,O=q!==void 0&&q,F=t.flattenColumns,J=F===void 0||F,I=t.parser,D=I===void 0?JSON:I,C=t.validator,M=C===void 0?null:C,P=t.validationParser,B=P===void 0?JSON:P,A=t.pathParser,W=A===void 0?{parse:uft,stringify:ai}:A,N=t.queryLanguages,dt=N===void 0?[dft]:N,et=t.queryLanguageId,yt=et===void 0?dt[0].id:et,bt=t.onChangeQueryLanguage,jt=bt===void 0?ca:bt,gt=t.onChange,Y=gt===void 0?null:gt,K=t.onSelect,rt=K===void 0?ca:K,X=t.onRenderValue,_t=X===void 0?pdt:X,L=t.onClassName,U=L===void 0?function(){}:L,G=t.onRenderMenu,pt=G===void 0?ca:G,mt=t.onChangeMode,Ot=mt===void 0?ca:mt,Ct=t.onError,Vt=Ct===void 0?function($t){console.error($t),alert($t.toString())}:Ct,Qt=t.onFocus,te=Qt===void 0?ca:Qt,Kt=t.onBlur,ue=Kt===void 0?ca:Kt,Me=eh(),en=!1,le=null,xn=D;function Ie(){return(Ie=Ae(qt().mark(function $t(Xt){var Q;return qt().wrap(function(at){for(;;)switch(at.prev=at.next){case 0:if(a("set"),!(Q=uy(Xt))){at.next=4;break}throw new Error(Q);case 4:return n(21,Me=eh()),n(0,c=Xt),at.next=8,br();case 8:case"end":return at.stop()}},$t)}))).apply(this,arguments)}function mn(){return(mn=Ae(qt().mark(function $t(Xt){var Q;return qt().wrap(function(at){for(;;)switch(at.prev=at.next){case 0:if(a("update"),!(Q=uy(Xt))){at.next=4;break}throw new Error(Q);case 4:return n(0,c=Xt),at.next=7,br();case 7:case"end":return at.stop()}},$t)}))).apply(this,arguments)}function Ye(){return Ye=Ae(qt().mark(function $t(Xt){var Q;return qt().wrap(function(at){for(;;)switch(at.prev=at.next){case 0:if(!Sf(c)){at.next=8;break}at.prev=1,n(0,c={json:D.parse(c.text),text:void 0}),at.next=8;break;case 5:throw at.prev=5,at.t0=at.catch(1),new Error("Cannot apply patch: current document contains invalid JSON");case 8:return Q=o.patch(Xt),at.next=11,br();case 11:return at.abrupt("return",Q);case 12:case"end":return at.stop()}},$t,null,[[1,5]])})),Ye.apply(this,arguments)}function Ke(){return(Ke=Ae(qt().mark(function $t(Xt){return qt().wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return n(2,l=Xt),Q.next=3,br();case 3:case"end":return Q.stop()}},$t)}))).apply(this,arguments)}function qn(){return(qn=Ae(qt().mark(function $t(Xt){return qt().wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return o.expand(Xt),Q.next=3,br();case 3:case"end":return Q.stop()}},$t)}))).apply(this,arguments)}function In(){return In=Ae(qt().mark(function $t(){var Xt;return qt().wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return Xt=o.acceptAutoRepair(),Q.next=3,br();case 3:return Q.abrupt("return",Xt);case 4:case"end":return Q.stop()}},$t)})),In.apply(this,arguments)}function Xn(){return(Xn=Ae(qt().mark(function $t(Xt){return qt().wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return Q.next=2,o.scrollTo(Xt);case 2:case"end":return Q.stop()}},$t)}))).apply(this,arguments)}function $n(){return En.apply(this,arguments)}function En(){return(En=Ae(qt().mark(function $t(){return qt().wrap(function(Xt){for(;;)switch(Xt.prev=Xt.next){case 0:return o.focus(),Xt.next=3,br();case 3:case"end":return Xt.stop()}},$t)}))).apply(this,arguments)}function Nn(){return(Nn=Ae(qt().mark(function $t(){return qt().wrap(function(Xt){for(;;)switch(Xt.prev=Xt.next){case 0:return Xt.next=2,o.refresh();case 2:case"end":return Xt.stop()}},$t)}))).apply(this,arguments)}function sr(){return(sr=Ae(qt().mark(function $t(Xt){return qt().wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return this.$set(Xt),Q.next=3,br();case 3:case"end":return Q.stop()}},$t,this)}))).apply(this,arguments)}function Pr(){return(Pr=Ae(qt().mark(function $t(){return qt().wrap(function(Xt){for(;;)switch(Xt.prev=Xt.next){case 0:return this.$destroy(),Xt.next=3,br();case 3:case"end":return Xt.stop()}},$t,this)}))).apply(this,arguments)}function Et(){return(Et=Ae(qt().mark(function $t(Xt){return qt().wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:if(y!==Xt){Q.next=2;break}return Q.abrupt("return");case 2:return n(1,y=Xt),Q.next=5,br();case 5:$n(),Ot(Xt);case 7:case"end":return Q.stop()}},$t)}))).apply(this,arguments)}function ie($t){a("handleChangeQueryLanguage",$t),n(36,yt=$t),jt($t)}function Be($t){var Xt=$t.id,Q=$t.json,at=$t.rootPath,vt=$t.onTransform,ut=$t.onClose;d||i(cgt,{id:Xt,json:Q,rootPath:at,indentation:p,escapeControlCharacters:R,escapeUnicodeCharacters:O,parser:D,parseMemoizeOne:r,validationParser:B,pathParser:W,queryLanguages:dt,queryLanguageId:yt,onChangeQueryLanguage:ie,onRenderValue:_t,onClassName:U,onTransform:vt},SZ,{onClose:ut})}function nn($t){var Xt=$t.id,Q=$t.json,at=$t.rootPath,vt=$t.onSort,ut=$t.onClose;d||i(hgt,{id:Xt,json:Q,rootPath:at,onSort:vt},_Z,{onClose:ut})}return e.$$set=function($t){"content"in $t&&n(0,c=$t.content),"selection"in $t&&n(2,l=$t.selection),"readOnly"in $t&&n(3,d=$t.readOnly),"indentation"in $t&&n(4,p=$t.indentation),"tabSize"in $t&&n(5,m=$t.tabSize),"mode"in $t&&n(1,y=$t.mode),"mainMenuBar"in $t&&n(6,w=$t.mainMenuBar),"navigationBar"in $t&&n(7,k=$t.navigationBar),"statusBar"in $t&&n(8,_=$t.statusBar),"askToFormat"in $t&&n(9,$=$t.askToFormat),"escapeControlCharacters"in $t&&n(10,R=$t.escapeControlCharacters),"escapeUnicodeCharacters"in $t&&n(11,O=$t.escapeUnicodeCharacters),"flattenColumns"in $t&&n(12,J=$t.flattenColumns),"parser"in $t&&n(13,D=$t.parser),"validator"in $t&&n(14,M=$t.validator),"validationParser"in $t&&n(15,B=$t.validationParser),"pathParser"in $t&&n(16,W=$t.pathParser),"queryLanguages"in $t&&n(37,dt=$t.queryLanguages),"queryLanguageId"in $t&&n(36,yt=$t.queryLanguageId),"onChangeQueryLanguage"in $t&&n(38,jt=$t.onChangeQueryLanguage),"onChange"in $t&&n(39,Y=$t.onChange),"onSelect"in $t&&n(40,rt=$t.onSelect),"onRenderValue"in $t&&n(17,_t=$t.onRenderValue),"onClassName"in $t&&n(18,U=$t.onClassName),"onRenderMenu"in $t&&n(19,pt=$t.onRenderMenu),"onChangeMode"in $t&&n(41,Ot=$t.onChangeMode),"onError"in $t&&n(20,Vt=$t.onError),"onFocus"in $t&&n(42,te=$t.onFocus),"onBlur"in $t&&n(43,ue=$t.onBlur)},e.$$.update=function(){if(8193&e.$$.dirty[0]|268435456&e.$$.dirty[1]&&(Klt(D,xn)||(a("parser changed, recreate editor"),sj(c)&&n(0,c={json:D.parse(xn.stringify(c.json))}),n(59,xn=D),n(21,Me=eh()))),1&e.$$.dirty[0]){var $t=uy(c);$t&&console.error("Error: "+$t)}8192&e.$$.dirty[0]&&n(26,r=Ap(D.parse)),2&e.$$.dirty[0]&&(a("mode changed to",y),y==="code"&&console.warn('Deprecation warning: "code" mode is renamed to "text". Please use mode="text" instead.'))},[c,y,l,d,p,m,w,k,_,$,R,O,J,D,M,B,W,_t,U,pt,Vt,Me,en,o,i,le,r,function($t,Xt,Q){n(0,c=$t),Y&&Y($t,Xt,Q)},function($t){n(2,l=$t),rt($t)},function(){n(22,en=!0),te&&te()},function(){n(22,en=!1),ue&&ue()},function($t){return Et.apply(this,arguments)},Be,nn,function($t){var Xt=$t.content,Q=$t.path,at=$t.onPatch,vt=$t.onClose;a("onJSONEditorModal",{content:Xt,path:Q}),n(25,le={component:UN(zwt,{content:Xt,path:Q,onPatch:at,readOnly:d,indentation:p,tabSize:m,mainMenuBar:w,navigationBar:k,statusBar:_,askToFormat:$,escapeControlCharacters:R,escapeUnicodeCharacters:O,flattenColumns:J,parser:D,validator:void 0,validationParser:B,pathParser:W,onRenderValue:_t,onClassName:U,onRenderMenu:pt,onSortModal:nn,onTransformModal:Be}),callbacks:{onClose:vt}})},function(){var $t,Xt;($t=le)===null||$t===void 0||($t=$t.callbacks)===null||$t===void 0||(Xt=$t.onClose)===null||Xt===void 0||Xt.call($t),n(25,le=null)},yt,dt,jt,Y,rt,Ot,te,ue,function(){return c},function($t){return Ie.apply(this,arguments)},function($t){return mn.apply(this,arguments)},function($t){return Ye.apply(this,arguments)},function($t){return Ke.apply(this,arguments)},function($t){return qn.apply(this,arguments)},function($t){o.transform($t)},function(){return o.validate()},function(){return In.apply(this,arguments)},function($t){return Xn.apply(this,arguments)},function($t){return o.findElement($t)},$n,function(){return Nn.apply(this,arguments)},function($t){return sr.apply(this,arguments)},function(){return Pr.apply(this,arguments)},xn,function($t){n(24,i=$t)},function($t){Ze[$t?"unshift":"push"](function(){n(23,o=$t)})}]}var Jwt=function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,Kwt,Uwt,qe,{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:37,queryLanguageId:36,onChangeQueryLanguage:38,onChange:39,onSelect:40,onRenderValue:17,onClassName:18,onRenderMenu:19,onChangeMode:41,onError:20,onFocus:42,onBlur:43,get:44,set:45,update:46,patch:47,select:48,expand:49,transform:50,validate:51,acceptAutoRepair:52,scrollTo:53,findElement:54,focus:55,refresh:56,updateProps:57,destroy:58},qwt,[-1,-1,-1]),o}return it(n,[{key:"get",get:function(){return this.$$.ctx[44]}},{key:"set",get:function(){return this.$$.ctx[45]}},{key:"update",get:function(){return this.$$.ctx[46]}},{key:"patch",get:function(){return this.$$.ctx[47]}},{key:"select",get:function(){return this.$$.ctx[48]}},{key:"expand",get:function(){return this.$$.ctx[49]}},{key:"transform",get:function(){return this.$$.ctx[50]}},{key:"validate",get:function(){return this.$$.ctx[51]}},{key:"acceptAutoRepair",get:function(){return this.$$.ctx[52]}},{key:"scrollTo",get:function(){return this.$$.ctx[53]}},{key:"findElement",get:function(){return this.$$.ctx[54]}},{key:"focus",get:function(){return this.$$.ctx[55]}},{key:"refresh",get:function(){return this.$$.ctx[56]}},{key:"updateProps",get:function(){return this.$$.ctx[57]}},{key:"destroy",get:function(){return this.$$.ctx[58]}}]),n}();function Gwt(e){Le(e,"svelte-rc6e9m",".jse-value.jse-string.svelte-rc6e9m{color:var(--jse-value-color-string)}.jse-value.jse-object.svelte-rc6e9m,.jse-value.jse-array.svelte-rc6e9m{min-width:16px;color:var(--jse-delimiter-color)}.jse-value.jse-number.svelte-rc6e9m{color:var(--jse-value-color-number)}.jse-value.jse-boolean.svelte-rc6e9m{color:var(--jse-value-color-boolean)}.jse-value.jse-null.svelte-rc6e9m{color:var(--jse-value-color-null)}.jse-value.jse-invalid.svelte-rc6e9m{color:var(--jse-text-color)}.jse-value.jse-url.svelte-rc6e9m{color:var(--jse-value-color-url);text-decoration:underline}.jse-enum-value.svelte-rc6e9m{background:var(--jse-hover-background-color);border:none;padding:0;font-family:inherit;font-size:inherit;cursor:pointer;outline:none}.jse-enum-value.jse-selected.svelte-rc6e9m{background:var(--jse-selection-background-color);color:inherit}.jse-enum-value.jse-value.svelte-rc6e9m:focus{color:var(--jse-text-color)}.jse-json-node.jse-selected .jse-enum-value.svelte-rc6e9m{background:transparent}")}function BR(e,t,n){var r=e.slice();return r[13]=t[n],r}function FR(e){var t,n,r,o=e[13].text+"";return{c:function(){t=tt("option"),n=Gt(o),t.__value=r=e[13].value,ss(t,t.__value)},m:function(i,a){ft(i,t,a),H(t,n)},p:function(i,a){4&a&&o!==(o=i[13].text+"")&&we(n,o),4&a&&r!==(r=i[13].value)&&(t.__value=r,ss(t,t.__value))},d:function(i){i&<(t)}}}function Qwt(e){for(var t,n,r,o,i=De(e[2]),a=[],s=0;s<i.length;s+=1)a[s]=FR(BR(e,i,s));return{c:function(){t=tt("select");for(var c=0;c<a.length;c+=1)a[c].c();S(t,"class",n=dr("jse-enum-value ".concat(Lh(e[4],e[0])))+" svelte-rc6e9m"),e[4]===void 0&&Ju(function(){return e[10].call(t)}),Dt(t,"jse-selected",dn(e[1]))},m:function(c,u){ft(c,t,u);for(var l=0;l<a.length;l+=1)a[l]&&a[l].m(t,null);aE(t,e[4],!0),e[11](t),r||(o=[zt(t,"change",e[10]),zt(t,"change",e[5]),zt(t,"mousedown",Ywt)],r=!0)},p:function(c,u){var l=Ce(u,1)[0];if(4&l){var f;for(i=De(c[2]),f=0;f<i.length;f+=1){var d=BR(c,i,f);a[f]?a[f].p(d,l):(a[f]=FR(d),a[f].c(),a[f].m(t,null))}for(;f<a.length;f+=1)a[f].d(1);a.length=i.length}17&l&&n!==(n=dr("jse-enum-value ".concat(Lh(c[4],c[0])))+" svelte-rc6e9m")&&S(t,"class",n),16&l&&aE(t,c[4]),19&l&&Dt(t,"jse-selected",dn(c[1]))},i:Ht,o:Ht,d:function(c){c&<(t),Dr(a,c),e[11](null),r=!1,Fn(o)}}}function Ywt(e){e.stopPropagation()}function Xwt(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(d){"path"in d&&n(6,o=d.path),"value"in d&&n(7,i=d.value),"parser"in d&&n(0,a=d.parser),"readOnly"in d&&n(8,s=d.readOnly),"selection"in d&&n(1,c=d.selection),"onPatch"in d&&n(9,u=d.onPatch),"options"in d&&n(2,l=d.options)},e.$$.update=function(){128&e.$$.dirty&&n(4,f=i),2&e.$$.dirty&&function(d){d&&r&&r.focus()}(c)},[a,c,l,r,f,function(d){d.stopPropagation(),s||u([{op:"replace",path:oe(o),value:f}])},o,i,s,u,function(){var d;d=this.querySelector(":checked"),f=d&&d.__value,n(4,f),n(7,i)},function(d){Ze[d?"unshift":"push"](function(){n(3,r=d),n(2,l)})}]}(function(e){Tt(n,me);var t=Rt(n);function n(r){var o;return ot(this,n),ve(he(o=t.call(this)),r,Xwt,Qwt,qe,{path:6,value:7,parser:0,readOnly:8,selection:1,onPatch:9,options:2},Gwt),o}return it(n)})();var qR,Hx={exports:{}},CH={},xs={},pu={},HR={},VR={},WR={};function Qg(){return qR||(qR=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;var t=it(function l(){ot(this,l)});e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var n=function(l){Tt(d,l);var f=Rt(d);function d(h){var p;if(ot(this,d),p=f.call(this),!e.IDENTIFIER.test(h))throw new Error("CodeGen: name must be a valid identifier");return p.str=h,p}return it(d,[{key:"toString",value:function(){return this.str}},{key:"emptyStr",value:function(){return!1}},{key:"names",get:function(){return Wo({},this.str,1)}}]),d}(t);e.Name=n;var r=function(l){Tt(d,l);var f=Rt(d);function d(h){var p;return ot(this,d),(p=f.call(this))._items=typeof h=="string"?[h]:h,p}return it(d,[{key:"toString",value:function(){return this.str}},{key:"emptyStr",value:function(){if(this._items.length>1)return!1;var h=this._items[0];return h===""||h==='""'}},{key:"str",get:function(){var h;return(h=this._str)!==null&&h!==void 0?h:this._str=this._items.reduce(function(p,v){return"".concat(p).concat(v)},"")}},{key:"names",get:function(){var h;return(h=this._names)!==null&&h!==void 0?h:this._names=this._items.reduce(function(p,v){return v instanceof n&&(p[v.str]=(p[v.str]||0)+1),p},{})}}]),d}(t);function o(l){for(var f=[l[0]],d=0,h=arguments.length,p=new Array(h>1?h-1:0),v=1;v<h;v++)p[v-1]=arguments[v];for(;d<p.length;)s(f,p[d]),f.push(l[++d]);return new r(f)}e._Code=r,e.nil=new r(""),e._=o;var i=new r("+");function a(l){for(var f=[u(l[0])],d=0,h=arguments.length,p=new Array(h>1?h-1:0),v=1;v<h;v++)p[v-1]=arguments[v];for(;d<p.length;)f.push(i),s(f,p[d]),f.push(i,u(l[++d]));return function(m){for(var g=1;g<m.length-1;){if(m[g]===i){var y=c(m[g-1],m[g+1]);if(y!==void 0){m.splice(g-1,3,y);continue}m[g++]="+"}g++}}(f),new r(f)}function s(l,f){f instanceof r?l.push.apply(l,$e(f._items)):f instanceof n?l.push(f):l.push(function(d){return typeof d=="number"||typeof d=="boolean"||d===null?d:u(Array.isArray(d)?d.join(","):d)}(f))}function c(l,f){return f==='""'?l:l==='""'?f:typeof l=="string"?f instanceof n||l[l.length-1]!=='"'?void 0:typeof f!="string"?"".concat(l.slice(0,-1)).concat(f,'"'):f[0]==='"'?l.slice(0,-1)+f.slice(1):void 0:typeof f!="string"||f[0]!=='"'||l instanceof n?void 0:'"'.concat(l).concat(f.slice(1))}function u(l){return JSON.stringify(l).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.str=a,e.addCodeArg=s,e.strConcat=function(l,f){return f.emptyStr()?l:l.emptyStr()?f:a(H$||(H$=st(["","",""])),l,f)},e.stringify=function(l){return new r(u(l))},e.safeStringify=u,e.getProperty=function(l){return typeof l=="string"&&e.IDENTIFIER.test(l)?new r(".".concat(l)):o(V$||(V$=st(["[","]"])),l)},e.getEsmExportName=function(l){if(typeof l=="string"&&e.IDENTIFIER.test(l))return new r("".concat(l));throw new Error("CodeGen: invalid export name: ".concat(l,", use explicit $id name mapping"))},e.regexpCode=function(l){return new r(l.toString())}}(WR)),WR}var UR,KR,JR={};function GR(){return UR||(UR=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;var t,n=Qg(),r=function(c){Tt(l,kf(Error));var u=Rt(l);function l(f){var d;return ot(this,l),(d=u.call(this,'CodeGen: "code" for '.concat(f," not defined"))).value=f.value,d}return it(l)}();(function(c){c[c.Started=0]="Started",c[c.Completed=1]="Completed"})(t=e.UsedValueState||(e.UsedValueState={})),e.varKinds={const:new n.Name("const"),let:new n.Name("let"),var:new n.Name("var")};var o=function(){function c(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=u.prefixes,f=u.parent;ot(this,c),this._names={},this._prefixes=l,this._parent=f}return it(c,[{key:"toName",value:function(u){return u instanceof n.Name?u:this.name(u)}},{key:"name",value:function(u){return new n.Name(this._newName(u))}},{key:"_newName",value:function(u){var l=this._names[u]||this._nameGroup(u);return"".concat(u).concat(l.index++)}},{key:"_nameGroup",value:function(u){var l,f;if(!((f=(l=this._parent)===null||l===void 0?void 0:l._prefixes)===null||f===void 0)&&f.has(u)||this._prefixes&&!this._prefixes.has(u))throw new Error('CodeGen: prefix "'.concat(u,'" is not allowed in this scope'));return this._names[u]={prefix:u,index:0}}}]),c}();e.Scope=o;var i=function(c){Tt(l,c);var u=Rt(l);function l(f,d){var h;return ot(this,l),(h=u.call(this,d)).prefix=f,h}return it(l,[{key:"setValue",value:function(f,d){var h=d.property,p=d.itemIndex;this.value=f,this.scopePath=(0,n._)(W$||(W$=st([".","[","]"])),new n.Name(h),p)}}]),l}(n.Name);e.ValueScopeName=i;var a=(0,n._)(U$||(U$=st([`
|
|
119
|
+
`],["\\n"]))),s=function(c){Tt(l,c);var u=Rt(l);function l(f){var d;return ot(this,l),(d=u.call(this,f))._values={},d._scope=f.scope,d.opts=xt(xt({},f),{},{_n:f.lines?a:n.nil}),d}return it(l,[{key:"get",value:function(){return this._scope}},{key:"name",value:function(f){return new i(f,this._newName(f))}},{key:"value",value:function(f,d){var h;if(d.ref===void 0)throw new Error("CodeGen: ref must be passed in value");var p=this.toName(f),v=p.prefix,m=(h=d.key)!==null&&h!==void 0?h:d.ref,g=this._values[v];if(g){var y=g.get(m);if(y)return y}else g=this._values[v]=new Map;g.set(m,p);var b=this._scope[v]||(this._scope[v]=[]),w=b.length;return b[w]=d.ref,p.setValue(d,{property:v,itemIndex:w}),p}},{key:"getValue",value:function(f,d){var h=this._values[f];if(h)return h.get(d)}},{key:"scopeRefs",value:function(f){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._values;return this._reduceValues(d,function(h){if(h.scopePath===void 0)throw new Error('CodeGen: name "'.concat(h,'" has no value'));return(0,n._)(K$||(K$=st(["","",""])),f,h.scopePath)})}},{key:"scopeCode",value:function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this._values,d=arguments.length>1?arguments[1]:void 0,h=arguments.length>2?arguments[2]:void 0;return this._reduceValues(f,function(p){if(p.value===void 0)throw new Error('CodeGen: name "'.concat(p,'" has no value'));return p.value.code},d,h)}},{key:"_reduceValues",value:function(f,d){var h=this,p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},v=arguments.length>3?arguments[3]:void 0,m=n.nil,g=function(){var b=f[y];if(!b)return 1;var w=p[y]=p[y]||new Map;b.forEach(function(x){if(!w.has(x)){w.set(x,t.Started);var k=d(x);if(k){var E=h.opts.es5?e.varKinds.var:e.varKinds.const;m=(0,n._)(J$||(J$=st(["",""," "," = ",";",""])),m,E,x,k,h.opts._n)}else{if(!(k=v==null?void 0:v(x)))throw new r(x);m=(0,n._)(G$||(G$=st(["","","",""])),m,k,h.opts._n)}w.set(x,t.Completed)}})};for(var y in f)g();return m}}]),l}(o);e.ValueScope=s}(JR)),JR}function _n(){return KR||(KR=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=Qg(),n=GR(),r=Qg();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=GR();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(){function P(){ot(this,P)}return it(P,[{key:"optimizeNodes",value:function(){return this}},{key:"optimizeNames",value:function(B,A){return this}}]),P}(),a=function(P){Tt(A,P);var B=Rt(A);function A(W,N,dt){var et;return ot(this,A),(et=B.call(this)).varKind=W,et.name=N,et.rhs=dt,et}return it(A,[{key:"render",value:function(W){var N=W.es5,dt=W._n,et=N?n.varKinds.var:this.varKind,yt=this.rhs===void 0?"":" = ".concat(this.rhs);return"".concat(et," ").concat(this.name).concat(yt,";")+dt}},{key:"optimizeNames",value:function(W,N){if(W[this.name.str])return this.rhs&&(this.rhs=O(this.rhs,W,N)),this}},{key:"names",get:function(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}]),A}(i),s=function(P){Tt(A,P);var B=Rt(A);function A(W,N,dt){var et;return ot(this,A),(et=B.call(this)).lhs=W,et.rhs=N,et.sideEffects=dt,et}return it(A,[{key:"render",value:function(W){var N=W._n;return"".concat(this.lhs," = ").concat(this.rhs,";")+N}},{key:"optimizeNames",value:function(W,N){if(!(this.lhs instanceof t.Name)||W[this.lhs.str]||this.sideEffects)return this.rhs=O(this.rhs,W,N),this}},{key:"names",get:function(){return q(this.lhs instanceof t.Name?{}:xt({},this.lhs.names),this.rhs)}}]),A}(i),c=function(P){Tt(A,P);var B=Rt(A);function A(W,N,dt,et){var yt;return ot(this,A),(yt=B.call(this,W,dt,et)).op=N,yt}return it(A,[{key:"render",value:function(W){var N=W._n;return"".concat(this.lhs," ").concat(this.op,"= ").concat(this.rhs,";")+N}}]),A}(s),u=function(P){Tt(A,P);var B=Rt(A);function A(W){var N;return ot(this,A),(N=B.call(this)).label=W,N.names={},N}return it(A,[{key:"render",value:function(W){var N=W._n;return"".concat(this.label,":")+N}}]),A}(i),l=function(P){Tt(A,P);var B=Rt(A);function A(W){var N;return ot(this,A),(N=B.call(this)).label=W,N.names={},N}return it(A,[{key:"render",value:function(W){var N=W._n,dt=this.label?" ".concat(this.label):"";return"break".concat(dt,";")+N}}]),A}(i),f=function(P){Tt(A,P);var B=Rt(A);function A(W){var N;return ot(this,A),(N=B.call(this)).error=W,N}return it(A,[{key:"render",value:function(W){var N=W._n;return"throw ".concat(this.error,";")+N}},{key:"names",get:function(){return this.error.names}}]),A}(i),d=function(P){Tt(A,P);var B=Rt(A);function A(W){var N;return ot(this,A),(N=B.call(this)).code=W,N}return it(A,[{key:"render",value:function(W){var N=W._n;return"".concat(this.code,";")+N}},{key:"optimizeNodes",value:function(){return"".concat(this.code)?this:void 0}},{key:"optimizeNames",value:function(W,N){return this.code=O(this.code,W,N),this}},{key:"names",get:function(){return this.code instanceof t._CodeOrName?this.code.names:{}}}]),A}(i),h=function(P){Tt(A,P);var B=Rt(A);function A(){var W,N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return ot(this,A),(W=B.call(this)).nodes=N,W}return it(A,[{key:"render",value:function(W){return this.nodes.reduce(function(N,dt){return N+dt.render(W)},"")}},{key:"optimizeNodes",value:function(){for(var W=this.nodes,N=W.length;N--;){var dt=W[N].optimizeNodes();Array.isArray(dt)?W.splice.apply(W,[N,1].concat($e(dt))):dt?W[N]=dt:W.splice(N,1)}return W.length>0?this:void 0}},{key:"optimizeNames",value:function(W,N){for(var dt=this.nodes,et=dt.length;et--;){var yt=dt[et];yt.optimizeNames(W,N)||(F(W,yt.names),dt.splice(et,1))}return dt.length>0?this:void 0}},{key:"names",get:function(){return this.nodes.reduce(function(W,N){return R(W,N.names)},{})}}]),A}(i),p=function(P){Tt(A,P);var B=Rt(A);function A(){return ot(this,A),B.apply(this,arguments)}return it(A,[{key:"render",value:function(W){return"{"+W._n+jn(ln(A.prototype),"render",this).call(this,W)+"}"+W._n}}]),A}(h),v=function(P){Tt(A,P);var B=Rt(A);function A(){return ot(this,A),B.apply(this,arguments)}return it(A)}(h),m=function(P){Tt(A,P);var B=Rt(A);function A(){return ot(this,A),B.apply(this,arguments)}return it(A)}(p);m.kind="else";var g=function(P){Tt(A,P);var B=Rt(A);function A(W,N){var dt;return ot(this,A),(dt=B.call(this,N)).condition=W,dt}return it(A,[{key:"render",value:function(W){var N="if(".concat(this.condition,")")+jn(ln(A.prototype),"render",this).call(this,W);return this.else&&(N+="else "+this.else.render(W)),N}},{key:"optimizeNodes",value:function(){jn(ln(A.prototype),"optimizeNodes",this).call(this);var W=this.condition;if(W===!0)return this.nodes;var N=this.else;if(N){var dt=N.optimizeNodes();N=this.else=Array.isArray(dt)?new m(dt):dt}return N?W===!1?N instanceof A?N:N.nodes:this.nodes.length?this:new A(J(W),N instanceof A?[N]:N.nodes):W!==!1&&this.nodes.length?this:void 0}},{key:"optimizeNames",value:function(W,N){var dt;if(this.else=(dt=this.else)===null||dt===void 0?void 0:dt.optimizeNames(W,N),jn(ln(A.prototype),"optimizeNames",this).call(this,W,N)||this.else)return this.condition=O(this.condition,W,N),this}},{key:"names",get:function(){var W=jn(ln(A.prototype),"names",this);return q(W,this.condition),this.else&&R(W,this.else.names),W}}]),A}(p);g.kind="if";var y=function(P){Tt(A,P);var B=Rt(A);function A(){return ot(this,A),B.apply(this,arguments)}return it(A)}(p);y.kind="for";var b=function(P){Tt(A,P);var B=Rt(A);function A(W){var N;return ot(this,A),(N=B.call(this)).iteration=W,N}return it(A,[{key:"render",value:function(W){return"for(".concat(this.iteration,")")+jn(ln(A.prototype),"render",this).call(this,W)}},{key:"optimizeNames",value:function(W,N){if(jn(ln(A.prototype),"optimizeNames",this).call(this,W,N))return this.iteration=O(this.iteration,W,N),this}},{key:"names",get:function(){return R(jn(ln(A.prototype),"names",this),this.iteration.names)}}]),A}(y),w=function(P){Tt(A,P);var B=Rt(A);function A(W,N,dt,et){var yt;return ot(this,A),(yt=B.call(this)).varKind=W,yt.name=N,yt.from=dt,yt.to=et,yt}return it(A,[{key:"render",value:function(W){var N=W.es5?n.varKinds.var:this.varKind,dt=this.name,et=this.from,yt=this.to;return"for(".concat(N," ").concat(dt,"=").concat(et,"; ").concat(dt,"<").concat(yt,"; ").concat(dt,"++)")+jn(ln(A.prototype),"render",this).call(this,W)}},{key:"names",get:function(){var W=q(jn(ln(A.prototype),"names",this),this.from);return q(W,this.to)}}]),A}(y),x=function(P){Tt(A,P);var B=Rt(A);function A(W,N,dt,et){var yt;return ot(this,A),(yt=B.call(this)).loop=W,yt.varKind=N,yt.name=dt,yt.iterable=et,yt}return it(A,[{key:"render",value:function(W){return"for(".concat(this.varKind," ").concat(this.name," ").concat(this.loop," ").concat(this.iterable,")")+jn(ln(A.prototype),"render",this).call(this,W)}},{key:"optimizeNames",value:function(W,N){if(jn(ln(A.prototype),"optimizeNames",this).call(this,W,N))return this.iterable=O(this.iterable,W,N),this}},{key:"names",get:function(){return R(jn(ln(A.prototype),"names",this),this.iterable.names)}}]),A}(y),k=function(P){Tt(A,P);var B=Rt(A);function A(W,N,dt){var et;return ot(this,A),(et=B.call(this)).name=W,et.args=N,et.async=dt,et}return it(A,[{key:"render",value:function(W){var N=this.async?"async ":"";return"".concat(N,"function ").concat(this.name,"(").concat(this.args,")")+jn(ln(A.prototype),"render",this).call(this,W)}}]),A}(p);k.kind="func";var E=function(P){Tt(A,P);var B=Rt(A);function A(){return ot(this,A),B.apply(this,arguments)}return it(A,[{key:"render",value:function(W){return"return "+jn(ln(A.prototype),"render",this).call(this,W)}}]),A}(h);E.kind="return";var _=function(P){Tt(A,P);var B=Rt(A);function A(){return ot(this,A),B.apply(this,arguments)}return it(A,[{key:"render",value:function(W){var N="try"+jn(ln(A.prototype),"render",this).call(this,W);return this.catch&&(N+=this.catch.render(W)),this.finally&&(N+=this.finally.render(W)),N}},{key:"optimizeNodes",value:function(){var W,N;return jn(ln(A.prototype),"optimizeNodes",this).call(this),(W=this.catch)===null||W===void 0||W.optimizeNodes(),(N=this.finally)===null||N===void 0||N.optimizeNodes(),this}},{key:"optimizeNames",value:function(W,N){var dt,et;return jn(ln(A.prototype),"optimizeNames",this).call(this,W,N),(dt=this.catch)===null||dt===void 0||dt.optimizeNames(W,N),(et=this.finally)===null||et===void 0||et.optimizeNames(W,N),this}},{key:"names",get:function(){var W=jn(ln(A.prototype),"names",this);return this.catch&&R(W,this.catch.names),this.finally&&R(W,this.finally.names),W}}]),A}(p),T=function(P){Tt(A,P);var B=Rt(A);function A(W){var N;return ot(this,A),(N=B.call(this)).error=W,N}return it(A,[{key:"render",value:function(W){return"catch(".concat(this.error,")")+jn(ln(A.prototype),"render",this).call(this,W)}}]),A}(p);T.kind="catch";var $=function(P){Tt(A,P);var B=Rt(A);function A(){return ot(this,A),B.apply(this,arguments)}return it(A,[{key:"render",value:function(W){return"finally"+jn(ln(A.prototype),"render",this).call(this,W)}}]),A}(p);$.kind="finally";var j=function(){function P(B){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ot(this,P),this._values={},this._blockStarts=[],this._constants={},this.opts=xt(xt({},A),{},{_n:A.lines?`
|
|
120
|
+
`:""}),this._extScope=B,this._scope=new n.Scope({parent:B}),this._nodes=[new v]}return it(P,[{key:"toString",value:function(){return this._root.render(this.opts)}},{key:"name",value:function(B){return this._scope.name(B)}},{key:"scopeName",value:function(B){return this._extScope.name(B)}},{key:"scopeValue",value:function(B,A){var W=this._extScope.value(B,A);return(this._values[W.prefix]||(this._values[W.prefix]=new Set)).add(W),W}},{key:"getScopeValue",value:function(B,A){return this._extScope.getValue(B,A)}},{key:"scopeRefs",value:function(B){return this._extScope.scopeRefs(B,this._values)}},{key:"scopeCode",value:function(){return this._extScope.scopeCode(this._values)}},{key:"_def",value:function(B,A,W,N){var dt=this._scope.toName(A);return W!==void 0&&N&&(this._constants[dt.str]=W),this._leafNode(new a(B,dt,W)),dt}},{key:"const",value:function(B,A,W){return this._def(n.varKinds.const,B,A,W)}},{key:"let",value:function(B,A,W){return this._def(n.varKinds.let,B,A,W)}},{key:"var",value:function(B,A,W){return this._def(n.varKinds.var,B,A,W)}},{key:"assign",value:function(B,A,W){return this._leafNode(new s(B,A,W))}},{key:"add",value:function(B,A){return this._leafNode(new c(B,e.operators.ADD,A))}},{key:"code",value:function(B){return typeof B=="function"?B():B!==t.nil&&this._leafNode(new d(B)),this}},{key:"object",value:function(){for(var B=["{"],A=arguments.length,W=new Array(A),N=0;N<A;N++)W[N]=arguments[N];for(var dt=0,et=W;dt<et.length;dt++){var yt=Ce(et[dt],2),bt=yt[0],jt=yt[1];B.length>1&&B.push(","),B.push(bt),(bt!==jt||this.opts.es5)&&(B.push(":"),(0,t.addCodeArg)(B,jt))}return B.push("}"),new t._Code(B)}},{key:"if",value:function(B,A,W){if(this._blockNode(new g(B)),A&&W)this.code(A).else().code(W).endIf();else if(A)this.code(A).endIf();else if(W)throw new Error('CodeGen: "else" body without "then" body');return this}},{key:"elseIf",value:function(B){return this._elseNode(new g(B))}},{key:"else",value:function(){return this._elseNode(new m)}},{key:"endIf",value:function(){return this._endBlockNode(g,m)}},{key:"_for",value:function(B,A){return this._blockNode(B),A&&this.code(A).endFor(),this}},{key:"for",value:function(B,A){return this._for(new b(B),A)}},{key:"forRange",value:function(B,A,W,N){var dt=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.opts.es5?n.varKinds.var:n.varKinds.let,et=this._scope.toName(B);return this._for(new w(dt,et,A,W),function(){return N(et)})}},{key:"forOf",value:function(B,A,W){var N=this,dt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:n.varKinds.const,et=this._scope.toName(B);if(this.opts.es5){var yt=A instanceof t.Name?A:this.var("_arr",A);return this.forRange("_i",0,(0,t._)(Q$||(Q$=st(["",".length"])),yt),function(bt){N.var(et,(0,t._)(Y$||(Y$=st(["","[","]"])),yt,bt)),W(et)})}return this._for(new x("of",dt,et,A),function(){return W(et)})}},{key:"forIn",value:function(B,A,W){var N=arguments.length>3&&arguments[3]!==void 0?arguments[3]:this.opts.es5?n.varKinds.var:n.varKinds.const;if(this.opts.ownProperties)return this.forOf(B,(0,t._)(X$||(X$=st(["Object.keys(",")"])),A),W);var dt=this._scope.toName(B);return this._for(new x("in",N,dt,A),function(){return W(dt)})}},{key:"endFor",value:function(){return this._endBlockNode(y)}},{key:"label",value:function(B){return this._leafNode(new u(B))}},{key:"break",value:function(B){return this._leafNode(new l(B))}},{key:"return",value:function(B){var A=new E;if(this._blockNode(A),this.code(B),A.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(E)}},{key:"try",value:function(B,A,W){if(!A&&!W)throw new Error('CodeGen: "try" without "catch" and "finally"');var N=new _;if(this._blockNode(N),this.code(B),A){var dt=this.name("e");this._currNode=N.catch=new T(dt),A(dt)}return W&&(this._currNode=N.finally=new $,this.code(W)),this._endBlockNode(T,$)}},{key:"throw",value:function(B){return this._leafNode(new f(B))}},{key:"block",value:function(B,A){return this._blockStarts.push(this._nodes.length),B&&this.code(B).endBlock(A),this}},{key:"endBlock",value:function(B){var A=this._blockStarts.pop();if(A===void 0)throw new Error("CodeGen: not in self-balancing block");var W=this._nodes.length-A;if(W<0||B!==void 0&&W!==B)throw new Error("CodeGen: wrong number of nodes: ".concat(W," vs ").concat(B," expected"));return this._nodes.length=A,this}},{key:"func",value:function(B){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.nil,W=arguments.length>2?arguments[2]:void 0,N=arguments.length>3?arguments[3]:void 0;return this._blockNode(new k(B,A,W)),N&&this.code(N).endFunc(),this}},{key:"endFunc",value:function(){return this._endBlockNode(k)}},{key:"optimize",value:function(){for(var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;B-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}},{key:"_leafNode",value:function(B){return this._currNode.nodes.push(B),this}},{key:"_blockNode",value:function(B){this._currNode.nodes.push(B),this._nodes.push(B)}},{key:"_endBlockNode",value:function(B,A){var W=this._currNode;if(W instanceof B||A&&W instanceof A)return this._nodes.pop(),this;throw new Error('CodeGen: not in block "'.concat(A?"".concat(B.kind,"/").concat(A.kind):B.kind,'"'))}},{key:"_elseNode",value:function(B){var A=this._currNode;if(!(A instanceof g))throw new Error('CodeGen: "else" without "if"');return this._currNode=A.else=B,this}},{key:"_root",get:function(){return this._nodes[0]}},{key:"_currNode",get:function(){var B=this._nodes;return B[B.length-1]},set:function(B){var A=this._nodes;A[A.length-1]=B}}]),P}();function R(P,B){for(var A in B)P[A]=(P[A]||0)+(B[A]||0);return P}function q(P,B){return B instanceof t._CodeOrName?R(P,B.names):P}function O(P,B,A){return P instanceof t.Name?W(P):function(N){return N instanceof t._Code&&N._items.some(function(dt){return dt instanceof t.Name&&B[dt.str]===1&&A[dt.str]!==void 0})}(P)?new t._Code(P._items.reduce(function(N,dt){return dt instanceof t.Name&&(dt=W(dt)),dt instanceof t._Code?N.push.apply(N,$e(dt._items)):N.push(dt),N},[])):P;function W(N){var dt=A[N.str];return dt===void 0||B[N.str]!==1?N:(delete B[N.str],dt)}}function F(P,B){for(var A in B)P[A]=(P[A]||0)-(B[A]||0)}function J(P){return typeof P=="boolean"||typeof P=="number"||P===null?!P:(0,t._)(Z$||(Z$=st(["!",""])),M(P))}e.CodeGen=j,e.not=J;var I=C(e.operators.AND);e.and=function(){for(var P=arguments.length,B=new Array(P),A=0;A<P;A++)B[A]=arguments[A];return B.reduce(I)};var D=C(e.operators.OR);function C(P){return function(B,A){return B===t.nil?A:A===t.nil?B:(0,t._)(tC||(tC=st([""," "," ",""])),M(B),P,M(A))}}function M(P){return P instanceof t.Name?P:(0,t._)(eC||(eC=st(["(",")"])),P)}e.or=function(){for(var P=arguments.length,B=new Array(P),A=0;A<P;A++)B[A]=arguments[A];return B.reduce(D)}}(VR)),VR}var Rn={};(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=_n(),n=Qg();function r(h){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h.schema,v=h.opts,m=h.self;if(v.strictSchema&&typeof p!="boolean"){var g=m.RULES.keywords;for(var y in p)g[y]||d(h,'unknown keyword: "'.concat(y,'"'))}}function o(h,p){if(typeof h=="boolean")return!h;for(var v in h)if(p[v])return!0;return!1}function i(h){return typeof h=="number"?"".concat(h):h.replace(/~/g,"~0").replace(/\//g,"~1")}function a(h){return h.replace(/~1/g,"/").replace(/~0/g,"~")}function s(h){var p=h.mergeNames,v=h.mergeToName,m=h.mergeValues,g=h.resultToName;return function(y,b,w,x){var k=w===void 0?b:w instanceof t.Name?(b instanceof t.Name?p(y,b,w):v(y,b,w),w):b instanceof t.Name?(v(y,w,b),b):m(b,w);return x!==t.Name||k instanceof t.Name?k:g(y,k)}}function c(h,p){if(p===!0)return h.var("props",!0);var v=h.var("props",(0,t._)(pC||(pC=st(["{}"]))));return p!==void 0&&u(h,v,p),v}function u(h,p,v){Object.keys(v).forEach(function(m){return h.assign((0,t._)(vC||(vC=st(["","",""])),p,(0,t.getProperty)(m)),!0)})}e.toHash=function(h){var p,v={},m=ht(h);try{for(m.s();!(p=m.n()).done;)v[p.value]=!0}catch(g){m.e(g)}finally{m.f()}return v},e.alwaysValidSchema=function(h,p){return typeof p=="boolean"?p:Object.keys(p).length===0||(r(h,p),!o(p,h.self.RULES.all))},e.checkUnknownRules=r,e.schemaHasRules=o,e.schemaHasRulesButRef=function(h,p){if(typeof h=="boolean")return!h;for(var v in h)if(v!=="$ref"&&p.all[v])return!0;return!1},e.schemaRefOrVal=function(h,p,v,m){var g=h.topSchemaRef,y=h.schemaPath;if(!m){if(typeof p=="number"||typeof p=="boolean")return p;if(typeof p=="string")return(0,t._)(nC||(nC=st(["",""])),p)}return(0,t._)(rC||(rC=st(["","","",""])),g,y,(0,t.getProperty)(v))},e.unescapeFragment=function(h){return a(decodeURIComponent(h))},e.escapeFragment=function(h){return encodeURIComponent(i(h))},e.escapeJsonPointer=i,e.unescapeJsonPointer=a,e.eachItem=function(h,p){if(Array.isArray(h)){var v,m=ht(h);try{for(m.s();!(v=m.n()).done;)p(v.value)}catch(g){m.e(g)}finally{m.f()}}else p(h)},e.mergeEvaluated={props:s({mergeNames:function(h,p,v){return h.if((0,t._)(oC||(oC=st([""," !== true && "," !== undefined"])),v,p),function(){h.if((0,t._)(iC||(iC=st([""," === true"])),p),function(){return h.assign(v,!0)},function(){return h.assign(v,(0,t._)(aC||(aC=st([""," || {}"])),v)).code((0,t._)(sC||(sC=st(["Object.assign(",", ",")"])),v,p))})})},mergeToName:function(h,p,v){return h.if((0,t._)(cC||(cC=st([""," !== true"])),v),function(){p===!0?h.assign(v,!0):(h.assign(v,(0,t._)(uC||(uC=st([""," || {}"])),v)),u(h,v,p))})},mergeValues:function(h,p){return h===!0||xt(xt({},h),p)},resultToName:c}),items:s({mergeNames:function(h,p,v){return h.if((0,t._)(lC||(lC=st([""," !== true && "," !== undefined"])),v,p),function(){return h.assign(v,(0,t._)(fC||(fC=st([""," === true ? true : "," > "," ? "," : ",""])),p,v,p,v,p))})},mergeToName:function(h,p,v){return h.if((0,t._)(dC||(dC=st([""," !== true"])),v),function(){return h.assign(v,p===!0||(0,t._)(hC||(hC=st([""," > "," ? "," : ",""])),v,p,v,p))})},mergeValues:function(h,p){return h===!0||Math.max(h,p)},resultToName:function(h,p){return h.var("items",p)}})},e.evaluatedPropsToName=c,e.setEvaluated=u;var l,f={};function d(h,p){var v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:h.opts.strictSchema;if(v){if(p="strict mode: ".concat(p),v===!0)throw new Error(p);h.self.logger.warn(p)}}e.useFunc=function(h,p){return h.scopeValue("func",{ref:p,code:f[p.code]||(f[p.code]=new n._Code(p.code))})},function(h){h[h.Num=0]="Num",h[h.Str=1]="Str"}(l=e.Type||(e.Type={})),e.getErrorPath=function(h,p,v){if(h instanceof t.Name){var m=p===l.Num;return v?m?(0,t._)(mC||(mC=st(['"[" + ',' + "]"'])),h):(0,t._)(gC||(gC=st([`"['" + `,` + "']"`])),h):m?(0,t._)(yC||(yC=st(['"/" + ',""])),h):(0,t._)(bC||(bC=st(['"/" + ','.replace(/~/g, "~0").replace(/\\//g, "~1")'],['"/" + ','.replace(/~/g, "~0").replace(/\\\\//g, "~1")'])),h)}return v?(0,t.getProperty)(h).toString():"/"+i(h)},e.checkStrictMode=d})(Rn);var QR,YR,XR,Wv={};function Yc(){if(QR)return Wv;QR=1,Object.defineProperty(Wv,"__esModule",{value:!0});var e=_n(),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 Wv.default=t,Wv}function Yg(){return YR||(YR=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=_n(),n=Rn,r=Yc();function o(l,f){var d=l.const("err",f);l.if((0,t._)(TC||(TC=st([""," === null"])),r.default.vErrors),function(){return l.assign(r.default.vErrors,(0,t._)(RC||(RC=st(["[","]"])),d))},(0,t._)(IC||(IC=st(["",".push(",")"])),r.default.vErrors,d)),l.code((0,t._)(NC||(NC=st(["","++"])),r.default.errors))}function i(l,f){var d=l.gen,h=l.validateName;l.schemaEnv.$async?d.throw((0,t._)(DC||(DC=st(["new ","(",")"])),l.ValidationError,f)):(d.assign((0,t._)(LC||(LC=st(["",".errors"])),h),f),d.return(!1))}e.keywordError={message:function(l){var f=l.keyword;return(0,t.str)(wC||(wC=st(['must pass "','" keyword validation'])),f)}},e.keyword$DataError={message:function(l){var f=l.keyword,d=l.schemaType;return d?(0,t.str)(xC||(xC=st(['"','" keyword must be '," ($data)"])),f,d):(0,t.str)(kC||(kC=st(['"','" keyword is invalid ($data)'])),f)}},e.reportError=function(l){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.keywordError,d=arguments.length>2?arguments[2]:void 0,h=arguments.length>3?arguments[3]:void 0,p=l.it,v=p.gen,m=p.compositeRule,g=p.allErrors,y=s(l,f,d);h??(m||g)?o(v,y):i(p,(0,t._)(jC||(jC=st(["[","]"])),y))},e.reportExtraError=function(l){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.keywordError,d=arguments.length>2?arguments[2]:void 0,h=l.it,p=h.gen,v=h.compositeRule,m=h.allErrors;o(p,s(l,f,d)),v||m||i(h,r.default.vErrors)},e.resetErrorsCount=function(l,f){l.assign(r.default.errors,f),l.if((0,t._)(_C||(_C=st([""," !== null"])),r.default.vErrors),function(){return l.if(f,function(){return l.assign((0,t._)(SC||(SC=st(["",".length"])),r.default.vErrors),f)},function(){return l.assign(r.default.vErrors,null)})})},e.extendErrors=function(l){var f=l.gen,d=l.keyword,h=l.schemaValue,p=l.data,v=l.errsCount,m=l.it;if(v===void 0)throw new Error("ajv implementation error");var g=f.name("err");f.forRange("i",v,r.default.errors,function(y){f.const(g,(0,t._)($C||($C=st(["","[","]"])),r.default.vErrors,y)),f.if((0,t._)(CC||(CC=st(["",".instancePath === undefined"])),g),function(){return f.assign((0,t._)(EC||(EC=st(["",".instancePath"])),g),(0,t.strConcat)(r.default.instancePath,m.errorPath))}),f.assign((0,t._)(OC||(OC=st(["",".schemaPath"])),g),(0,t.str)(MC||(MC=st(["","/",""])),m.errSchemaPath,d)),m.opts.verbose&&(f.assign((0,t._)(AC||(AC=st(["",".schema"])),g),h),f.assign((0,t._)(PC||(PC=st(["",".data"])),g),p))})};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(l,f,d){return l.it.createErrors===!1?(0,t._)(zC||(zC=st(["{}"]))):function(h,p){var v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},m=h.gen,g=h.it,y=[c(g,v),u(h,v)];return function(b,w,x){var k=w.params,E=w.message,_=b.keyword,T=b.data,$=b.schemaValue,j=b.it,R=j.opts,q=j.propertyName,O=j.topSchemaRef,F=j.schemaPath;x.push([a.keyword,_],[a.params,typeof k=="function"?k(b):k||(0,t._)(HC||(HC=st(["{}"])))]),R.messages&&x.push([a.message,typeof E=="function"?E(b):E]),R.verbose&&x.push([a.schema,$],[a.parentSchema,(0,t._)(VC||(VC=st(["","",""])),O,F)],[r.default.data,T]),q&&x.push([a.propertyName,q])}(h,p,y),m.object.apply(m,y)}(l,f,d)}function c(l,f){var d=l.errorPath,h=f.instancePath,p=h?(0,t.str)(BC||(BC=st(["","",""])),d,(0,n.getErrorPath)(h,n.Type.Str)):d;return[r.default.instancePath,(0,t.strConcat)(r.default.instancePath,p)]}function u(l,f){var d=l.keyword,h=l.it.errSchemaPath,p=f.schemaPath,v=f.parentSchema?h:(0,t.str)(FC||(FC=st(["","/",""])),h,d);return p&&(v=(0,t.str)(qC||(qC=st(["","",""])),v,(0,n.getErrorPath)(p,n.Type.Str))),[a.schemaPath,v]}}(HR)),HR}var rp={},Fu={};Object.defineProperty(Fu,"__esModule",{value:!0}),Fu.getRules=Fu.isJSONType=void 0;var Zwt=new Set(["string","number","integer","boolean","null","object","array"]);Fu.isJSONType=function(e){return typeof e=="string"&&Zwt.has(e)},Fu.getRules=function(){var e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:xt(xt({},e),{},{integer:!0,boolean:!0,null:!0}),rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}};var ZR,ks={};function EH(){if(ZR)return ks;function e(n,r){return r.rules.some(function(o){return t(n,o)})}function t(n,r){var o;return n[r.keyword]!==void 0||((o=r.definition.implements)===null||o===void 0?void 0:o.some(function(i){return n[i]!==void 0}))}return ZR=1,Object.defineProperty(ks,"__esModule",{value:!0}),ks.shouldUseRule=ks.shouldUseGroup=ks.schemaHasRulesForType=void 0,ks.schemaHasRulesForType=function(n,r){var o=n.schema,i=n.self.RULES.types[r];return i&&i!==!0&&e(o,i)},ks.shouldUseGroup=e,ks.shouldUseRule=t,ks}(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=Fu,r=EH(),o=Yg(),i=_n(),a=Rn;function s(h){var p=Array.isArray(h)?h:h?[h]:[];if(p.every(n.isJSONType))return p;throw new Error("type must be JSONType or JSONType[]: "+p.join(","))}(function(h){h[h.Correct=0]="Correct",h[h.Wrong=1]="Wrong"})(t=e.DataType||(e.DataType={})),e.getSchemaTypes=function(h){var p=s(h.type);if(p.includes("null")){if(h.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!p.length&&h.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');h.nullable===!0&&p.push("null")}return p},e.getJSONTypes=s,e.coerceAndCheckDataType=function(h,p){var v=h.gen,m=h.data,g=h.opts,y=function(x,k){return k?x.filter(function(E){return c.has(E)||k==="array"&&E==="array"}):[]}(p,g.coerceTypes),b=p.length>0&&!(y.length===0&&p.length===1&&(0,r.schemaHasRulesForType)(h,p[0]));if(b){var w=l(p,m,g.strictNumbers,t.Wrong);v.if(w,function(){y.length?function(x,k,E){var _=x.gen,T=x.data,$=x.opts,j=_.let("dataType",(0,i._)(UC||(UC=st(["typeof ",""])),T)),R=_.let("coerced",(0,i._)(KC||(KC=st(["undefined"]))));$.coerceTypes==="array"&&_.if((0,i._)(JC||(JC=st([""," == 'object' && Array.isArray(",") && ",".length == 1"])),j,T,T),function(){return _.assign(T,(0,i._)(GC||(GC=st(["","[0]"])),T)).assign(j,(0,i._)(QC||(QC=st(["typeof ",""])),T)).if(l(k,T,$.strictNumbers),function(){return _.assign(R,T)})}),_.if((0,i._)(YC||(YC=st([""," !== undefined"])),R));var q,O=ht(E);try{for(O.s();!(q=O.n()).done;){var F=q.value;(c.has(F)||F==="array"&&$.coerceTypes==="array")&&J(F)}}catch(I){O.e(I)}finally{O.f()}function J(I){switch(I){case"string":return void _.elseIf((0,i._)(ZC||(ZC=st(["",' == "number" || ',' == "boolean"'])),j,j)).assign(R,(0,i._)(t3||(t3=st(['"" + ',""])),T)).elseIf((0,i._)(e3||(e3=st([""," === null"])),T)).assign(R,(0,i._)(n3||(n3=st(['""']))));case"number":return void _.elseIf((0,i._)(r3||(r3=st(["",' == "boolean" || ',` === null
|
|
121
|
+
|| (`,' == "string" && '," && "," == +",")"])),j,T,j,T,T,T)).assign(R,(0,i._)(o3||(o3=st(["+",""])),T));case"integer":return void _.elseIf((0,i._)(i3||(i3=st(["",' === "boolean" || ',` === null
|
|
122
|
+
|| (`,' === "string" && '," && "," == +"," && !("," % 1))"])),j,T,j,T,T,T,T)).assign(R,(0,i._)(a3||(a3=st(["+",""])),T));case"boolean":return void _.elseIf((0,i._)(s3||(s3=st(["",' === "false" || '," === 0 || "," === null"])),T,T,T)).assign(R,!1).elseIf((0,i._)(c3||(c3=st(["",' === "true" || '," === 1"])),T,T)).assign(R,!0);case"null":return _.elseIf((0,i._)(u3||(u3=st(["",' === "" || '," === 0 || "," === false"])),T,T,T)),void _.assign(R,null);case"array":_.elseIf((0,i._)(l3||(l3=st(["",' === "string" || ',` === "number"
|
|
123
|
+
|| `,' === "boolean" || '," === null"])),j,j,j,T)).assign(R,(0,i._)(f3||(f3=st(["[","]"])),T))}}_.else(),d(x),_.endIf(),_.if((0,i._)(XC||(XC=st([""," !== undefined"])),R),function(){_.assign(T,R),function(I,D){var C=I.gen,M=I.parentData,P=I.parentDataProperty;C.if((0,i._)(d3||(d3=st([""," !== undefined"])),M),function(){return C.assign((0,i._)(h3||(h3=st(["","[","]"])),M,P),D)})}(x,R)})}(h,p,y):d(h)})}return b};var c=new Set(["string","number","integer","boolean","null"]);function u(h,p,v){var m,g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:t.Correct,y=g===t.Correct?i.operators.EQ:i.operators.NEQ;switch(h){case"null":return(0,i._)(p3||(p3=st([""," "," null"])),p,y);case"array":m=(0,i._)(v3||(v3=st(["Array.isArray(",")"])),p);break;case"object":m=(0,i._)(m3||(m3=st([""," && typeof ",' == "object" && !Array.isArray(',")"])),p,p,p);break;case"integer":m=b((0,i._)(g3||(g3=st(["!("," % 1) && !isNaN(",")"])),p,p));break;case"number":m=b();break;default:return(0,i._)(y3||(y3=st(["typeof "," "," ",""])),p,y,h)}return g===t.Correct?m:(0,i.not)(m);function b(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i.nil;return(0,i.and)((0,i._)(b3||(b3=st(["typeof ",' == "number"'])),p),w,v?(0,i._)(w3||(w3=st(["isFinite(",")"])),p):i.nil)}}function l(h,p,v,m){if(h.length===1)return u(h[0],p,v,m);var g,y=(0,a.toHash)(h);if(y.array&&y.object){var b=(0,i._)(x3||(x3=st(["typeof ",' != "object"'])),p);g=y.null?b:(0,i._)(k3||(k3=st(["!"," || ",""])),p,b),delete y.null,delete y.array,delete y.object}else g=i.nil;for(var w in y.number&&delete y.integer,y)g=(0,i.and)(g,u(w,p,v,m));return g}e.checkDataType=u,e.checkDataTypes=l;var f={message:function(h){var p=h.schema;return"must be ".concat(p)},params:function(h){var p=h.schema,v=h.schemaValue;return typeof p=="string"?(0,i._)(j3||(j3=st(["{type: ","}"])),p):(0,i._)(_3||(_3=st(["{type: ","}"])),v)}};function d(h){var p=function(v){var m=v.gen,g=v.data,y=v.schema,b=(0,a.schemaRefOrVal)(v,y,"type");return{gen:m,keyword:"type",data:g,schema:y.type,schemaCode:b,schemaValue:b,parentSchema:y,params:{},it:v}}(h);(0,o.reportError)(p,f)}e.reportTypeError=d})(rp);var t7,jd={},e7,n7,na={},Jn={};function Pa(){if(e7)return Jn;e7=1,Object.defineProperty(Jn,"__esModule",{value:!0}),Jn.validateUnion=Jn.validateArray=Jn.usePattern=Jn.callValidateCode=Jn.schemaProperties=Jn.allSchemaProperties=Jn.noPropertyInData=Jn.propertyInData=Jn.isOwnProperty=Jn.hasPropFunc=Jn.reportMissingProp=Jn.checkMissingProp=Jn.checkReportMissingProp=void 0;var e=_n(),t=Rn,n=Yc(),r=Rn;function o(u){return u.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)(A3||(A3=st(["Object.prototype.hasOwnProperty"])))})}function i(u,l,f){return(0,e._)(P3||(P3=st(["",".call(",", ",")"])),o(u),l,f)}function a(u,l,f,d){var h=(0,e._)(I3||(I3=st(["",""," === undefined"])),l,(0,e.getProperty)(f));return d?(0,e.or)(h,(0,e.not)(i(u,l,f))):h}function s(u){return u?Object.keys(u).filter(function(l){return l!=="__proto__"}):[]}Jn.checkReportMissingProp=function(u,l){var f=u.gen,d=u.data,h=u.it;f.if(a(f,d,l,h.opts.ownProperties),function(){u.setParams({missingProperty:(0,e._)(O3||(O3=st(["",""])),l)},!0),u.error()})},Jn.checkMissingProp=function(u,l,f){var d=u.gen,h=u.data,p=u.it.opts;return e.or.apply(void 0,$e(l.map(function(v){return(0,e.and)(a(d,h,v,p.ownProperties),(0,e._)(M3||(M3=st([""," = ",""])),f,v))})))},Jn.reportMissingProp=function(u,l){u.setParams({missingProperty:l},!0),u.error()},Jn.hasPropFunc=o,Jn.isOwnProperty=i,Jn.propertyInData=function(u,l,f,d){var h=(0,e._)(T3||(T3=st(["",""," !== undefined"])),l,(0,e.getProperty)(f));return d?(0,e._)(R3||(R3=st([""," && ",""])),h,i(u,l,f)):h},Jn.noPropertyInData=a,Jn.allSchemaProperties=s,Jn.schemaProperties=function(u,l){return s(l).filter(function(f){return!(0,t.alwaysValidSchema)(u,l[f])})},Jn.callValidateCode=function(u,l,f,d){var h=u.schemaCode,p=u.data,v=u.it,m=v.gen,g=v.topSchemaRef,y=v.schemaPath,b=v.errorPath,w=u.it,x=d?(0,e._)(N3||(N3=st(["",", ",", ","",""])),h,p,g,y):p,k=[[n.default.instancePath,(0,e.strConcat)(n.default.instancePath,b)],[n.default.parentData,w.parentData],[n.default.parentDataProperty,w.parentDataProperty],[n.default.rootData,n.default.rootData]];w.opts.dynamicRef&&k.push([n.default.dynamicAnchors,n.default.dynamicAnchors]);var E=(0,e._)(D3||(D3=st(["",", ",""])),x,m.object.apply(m,k));return f!==e.nil?(0,e._)(L3||(L3=st(["",".call(",", ",")"])),l,f,E):(0,e._)(z3||(z3=st(["","(",")"])),l,E)};var c=(0,e._)(B3||(B3=st(["new RegExp"])));return Jn.usePattern=function(u,l){var f=u.gen,d=u.it.opts,h=d.unicodeRegExp?"u":"",p=d.code.regExp,v=p(l,h);return f.scopeValue("pattern",{key:v.toString(),ref:v,code:(0,e._)(F3||(F3=st(["","(",", ",")"])),p.code==="new RegExp"?c:(0,r.useFunc)(f,p),l,h)})},Jn.validateArray=function(u){var l=u.gen,f=u.data,d=u.keyword,h=u.it,p=l.name("valid");if(h.allErrors){var v=l.let("valid",!0);return m(function(){return l.assign(v,!1)}),v}return l.var(p,!0),m(function(){return l.break()}),p;function m(g){var y=l.const("len",(0,e._)(q3||(q3=st(["",".length"])),f));l.forRange("i",0,y,function(b){u.subschema({keyword:d,dataProp:b,dataPropType:t.Type.Num},p),l.if((0,e.not)(p),g)})}},Jn.validateUnion=function(u){var l=u.gen,f=u.schema,d=u.keyword,h=u.it;if(!Array.isArray(f))throw new Error("ajv implementation error");if(!f.some(function(m){return(0,t.alwaysValidSchema)(h,m)})||h.opts.unevaluated){var p=l.let("valid",!1),v=l.name("_valid");l.block(function(){return f.forEach(function(m,g){var y=u.subschema({keyword:d,schemaProp:g,compositeRule:!0},v);l.assign(p,(0,e._)(H3||(H3=st([""," || ",""])),p,v)),u.mergeValidEvaluated(y,v)||l.if((0,e.not)(p))})}),u.result(p,function(){return u.reset()},function(){return u.error(!0)})}},Jn}function txt(){if(n7)return na;n7=1,Object.defineProperty(na,"__esModule",{value:!0}),na.validateKeywordUsage=na.validSchemaType=na.funcKeywordCode=na.macroKeywordCode=void 0;var e=_n(),t=Yc(),n=Pa(),r=Yg();function o(a){var s=a.gen,c=a.data,u=a.it;s.if(u.parentData,function(){return s.assign(c,(0,e._)(Q3||(Q3=st(["","[","]"])),u.parentData,u.parentDataProperty))})}function i(a,s,c){if(c===void 0)throw new Error('keyword "'.concat(s,'" failed to compile'));return a.scopeValue("keyword",typeof c=="function"?{ref:c}:{ref:c,code:(0,e.stringify)(c)})}return na.macroKeywordCode=function(a,s){var c=a.gen,u=a.keyword,l=a.schema,f=a.parentSchema,d=a.it,h=s.macro.call(d.self,l,f,d),p=i(c,u,h);d.opts.validateSchema!==!1&&d.self.validateSchema(h,!0);var v=c.name("valid");a.subschema({schema:h,schemaPath:e.nil,errSchemaPath:"".concat(d.errSchemaPath,"/").concat(u),topSchemaRef:p,compositeRule:!0},v),a.pass(v,function(){return a.error(!0)})},na.funcKeywordCode=function(a,s){var c,u=a.gen,l=a.keyword,f=a.schema,d=a.parentSchema,h=a.$data,p=a.it;(function(w,x){var k=w.schemaEnv;if(x.async&&!k.$async)throw new Error("async keyword in sync schema")})(p,s);var v=!h&&s.compile?s.compile.call(p.self,f,d,p):s.validate,m=i(u,l,v),g=u.let("valid");function y(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:s.async?(0,e._)(J3||(J3=st(["await "]))):e.nil,x=p.opts.passContext?t.default.this:t.default.self,k=!("compile"in s&&!h||s.schema===!1);u.assign(g,(0,e._)(G3||(G3=st(["","",""])),w,(0,n.callValidateCode)(a,m,x,k)),s.modifying)}function b(w){var x;u.if((0,e.not)((x=s.valid)!==null&&x!==void 0?x:g),w)}a.block$data(g,function(){if(s.errors===!1)y(),s.modifying&&o(a),b(function(){return a.error()});else{var w=s.async?function(){var k=u.let("ruleErrs",null);return u.try(function(){return y((0,e._)(V3||(V3=st(["await "]))))},function(E){return u.assign(g,!1).if((0,e._)(W3||(W3=st([""," instanceof ",""])),E,p.ValidationError),function(){return u.assign(k,(0,e._)(U3||(U3=st(["",".errors"])),E))},function(){return u.throw(E)})}),k}():(x=(0,e._)(K3||(K3=st(["",".errors"])),m),u.assign(x,null),y(e.nil),x);s.modifying&&o(a),b(function(){return function(k,E){var _=k.gen;_.if((0,e._)(Y3||(Y3=st(["Array.isArray(",")"])),E),function(){_.assign(t.default.vErrors,(0,e._)(X3||(X3=st([""," === null ? "," : ",".concat(",")"])),t.default.vErrors,E,t.default.vErrors,E)).assign(t.default.errors,(0,e._)(Z3||(Z3=st(["",".length"])),t.default.vErrors)),(0,r.extendErrors)(k)},function(){return k.error()})}(a,w)})}var x}),a.ok((c=s.valid)!==null&&c!==void 0?c:g)},na.validSchemaType=function(a,s){var c=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return!s.length||s.some(function(u){return u==="array"?Array.isArray(a):u==="object"?a&&ce(a)=="object"&&!Array.isArray(a):ce(a)==u||c&&a===void 0})},na.validateKeywordUsage=function(a,s,c){var u=a.schema,l=a.opts,f=a.self,d=a.errSchemaPath;if(Array.isArray(s.keyword)?!s.keyword.includes(c):s.keyword!==c)throw new Error("ajv implementation error");var h=s.dependencies;if(h!=null&&h.some(function(v){return!Object.prototype.hasOwnProperty.call(u,v)}))throw new Error("parent schema must have dependencies of ".concat(c,": ").concat(h.join(",")));if(s.validateSchema&&!s.validateSchema(u[c])){var p='keyword "'.concat(c,'" value is invalid at path "').concat(d,'": ')+f.errorsText(s.validateSchema.errors);if(l.validateSchema!=="log")throw new Error(p);f.logger.error(p)}},na}var r7,js={},bo={},OH=function e(t,n){if(t===n)return!0;if(t&&n&&ce(t)=="object"&&ce(n)=="object"){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;o--!=0;)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;o--!=0;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;o--!=0;){var a=i[o];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n},MH={exports:{}},jc=MH.exports=function(e,t,n){typeof t=="function"&&(n=t,t={}),Pm(t,typeof(n=t.cb||n)=="function"?n:n.pre||function(){},n.post||function(){},e,"",e)};function Pm(e,t,n,r,o,i,a,s,c,u){if(r&&ce(r)=="object"&&!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 jc.arrayKeywords)for(var d=0;d<f.length;d++)Pm(e,t,n,f[d],o+"/"+l+"/"+d,i,o,l,r,d)}else if(l in jc.propsKeywords){if(f&&ce(f)=="object")for(var h in f)Pm(e,t,n,f[h],o+"/"+l+"/"+h.replace(/~/g,"~0").replace(/\//g,"~1"),i,o,l,r,h)}else(l in jc.keywords||e.allKeys&&!(l in jc.skipKeywords))&&Pm(e,t,n,f,o+"/"+l,i,o,l,r)}n(r,o,i,a,s,c,u)}}jc.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},jc.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},jc.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},jc.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 ext=MH.exports;Object.defineProperty(bo,"__esModule",{value:!0}),bo.getSchemaRefs=bo.resolveUrl=bo.normalizeId=bo._getFullPath=bo.getFullPath=bo.inlineRef=void 0;var nxt=Rn,rxt=OH,oxt=ext,ixt=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);bo.inlineRef=function(e){var t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];return typeof e=="boolean"||(t===!0?!Vx(e):!!t&&AH(e)<=t)};var axt=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Vx(e){for(var t in e){if(axt.has(t))return!0;var n=e[t];if(Array.isArray(n)&&n.some(Vx)||ce(n)=="object"&&Vx(n))return!0}return!1}function AH(e){var t=0;for(var n in e)if(n==="$ref"||(t++,!ixt.has(n)&&(ce(e[n])=="object"&&(0,nxt.eachItem)(e[n],function(r){return t+=AH(r)}),t===1/0)))return 1/0;return t}function PH(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(arguments.length>2?arguments[2]:void 0)!==!1&&(t=df(t));var n=e.parse(t);return TH(e,n)}function TH(e,t){return e.serialize(t).split("#")[0]+"#"}bo.getFullPath=PH,bo._getFullPath=TH;var sxt=/#\/?$/;function df(e){return e?e.replace(sxt,""):""}bo.normalizeId=df,bo.resolveUrl=function(e,t,n){return n=df(n),e.resolve(t,n)};var o7,cxt=/^[a-z_][-a-z0-9._]*$/i;function h1(){if(o7)return xs;o7=1,Object.defineProperty(xs,"__esModule",{value:!0}),xs.getData=xs.KeywordCxt=xs.validateFunctionCode=void 0;var e=function(){if(XR)return pu;XR=1,Object.defineProperty(pu,"__esModule",{value:!0}),pu.boolOrEmptySchema=pu.topBoolOrEmptySchema=void 0;var O=Yg(),F=_n(),J=Yc(),I={message:"boolean schema is false"};function D(C,M){var P={gen:C.gen,keyword:"false schema",data:C.data,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:C};(0,O.reportError)(P,I,void 0,M)}return pu.topBoolOrEmptySchema=function(C){var M=C.gen,P=C.schema,B=C.validateName;P===!1?D(C,!1):ce(P)=="object"&&P.$async===!0?M.return(J.default.data):(M.assign((0,F._)(WC||(WC=st(["",".errors"])),B),null),M.return(!0))},pu.boolOrEmptySchema=function(C,M){var P=C.gen;C.schema===!1?(P.var(M,!1),D(C)):P.var(M,!0)},pu}(),t=rp,n=EH(),r=rp,o=function(){if(t7)return jd;t7=1,Object.defineProperty(jd,"__esModule",{value:!0}),jd.assignDefaults=void 0;var O=_n(),F=Rn;function J(I,D,C){var M=I.gen,P=I.compositeRule,B=I.data,A=I.opts;if(C!==void 0){var W=(0,O._)(S3||(S3=st(["","",""])),B,(0,O.getProperty)(D));if(P)(0,F.checkStrictMode)(I,"default is ignored for: ".concat(W));else{var N=(0,O._)($3||($3=st([""," === undefined"])),W);A.useDefaults==="empty"&&(N=(0,O._)(C3||(C3=st([""," || "," === null || ",' === ""'])),N,W,W)),M.if(N,(0,O._)(E3||(E3=st([""," = ",""])),W,(0,O.stringify)(C)))}}}return jd.assignDefaults=function(I,D){var C=I.schema,M=C.properties,P=C.items;if(D==="object"&&M)for(var B in M)J(I,B,M[B].default);else D==="array"&&Array.isArray(P)&&P.forEach(function(A,W){return J(I,W,A.default)})},jd}(),i=txt(),a=function(){if(r7)return js;r7=1,Object.defineProperty(js,"__esModule",{value:!0}),js.extendSubschemaMode=js.extendSubschemaData=js.getSubschema=void 0;var O=_n(),F=Rn;return js.getSubschema=function(J,I){var D=I.keyword,C=I.schemaProp,M=I.schema,P=I.schemaPath,B=I.errSchemaPath,A=I.topSchemaRef;if(D!==void 0&&M!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(D!==void 0){var W=J.schema[D];return C===void 0?{schema:W,schemaPath:(0,O._)(t4||(t4=st(["","",""])),J.schemaPath,(0,O.getProperty)(D)),errSchemaPath:"".concat(J.errSchemaPath,"/").concat(D)}:{schema:W[C],schemaPath:(0,O._)(e4||(e4=st(["","","",""])),J.schemaPath,(0,O.getProperty)(D),(0,O.getProperty)(C)),errSchemaPath:"".concat(J.errSchemaPath,"/").concat(D,"/").concat((0,F.escapeFragment)(C))}}if(M!==void 0){if(P===void 0||B===void 0||A===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:M,schemaPath:P,topSchemaRef:A,errSchemaPath:B}}throw new Error('either "keyword" or "schema" must be passed')},js.extendSubschemaData=function(J,I,D){var C=D.dataProp,M=D.dataPropType,P=D.data,B=D.dataTypes,A=D.propertyName;if(P!==void 0&&C!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');var W=I.gen;if(C!==void 0){var N=I.errorPath,dt=I.dataPathArr,et=I.opts;yt(W.let("data",(0,O._)(n4||(n4=st(["","",""])),I.data,(0,O.getProperty)(C)),!0)),J.errorPath=(0,O.str)(r4||(r4=st(["","",""])),N,(0,F.getErrorPath)(C,M,et.jsPropertySyntax)),J.parentDataProperty=(0,O._)(o4||(o4=st(["",""])),C),J.dataPathArr=[].concat($e(dt),[J.parentDataProperty])}function yt(bt){J.data=bt,J.dataLevel=I.dataLevel+1,J.dataTypes=[],I.definedProperties=new Set,J.parentData=I.data,J.dataNames=[].concat($e(I.dataNames),[bt])}P!==void 0&&(yt(P instanceof O.Name?P:W.let("data",P,!0)),A!==void 0&&(J.propertyName=A)),B&&(J.dataTypes=B)},js.extendSubschemaMode=function(J,I){var D=I.jtdDiscriminator,C=I.jtdMetadata,M=I.compositeRule,P=I.createErrors,B=I.allErrors;M!==void 0&&(J.compositeRule=M),P!==void 0&&(J.createErrors=P),B!==void 0&&(J.allErrors=B),J.jtdDiscriminator=D,J.jtdMetadata=C},js}(),s=_n(),c=Yc(),u=bo,l=Rn,f=Yg();function d(O,F){var J=O.gen,I=O.validateName,D=O.schema,C=O.schemaEnv,M=O.opts;M.code.es5?J.func(I,(0,s._)(i4||(i4=st(["",", ",""])),c.default.data,c.default.valCxt),C.$async,function(){J.code((0,s._)(a4||(a4=st(['"use strict"; ',""])),h(D,M))),function(P,B){P.if(c.default.valCxt,function(){P.var(c.default.instancePath,(0,s._)(l4||(l4=st(["",".",""])),c.default.valCxt,c.default.instancePath)),P.var(c.default.parentData,(0,s._)(f4||(f4=st(["",".",""])),c.default.valCxt,c.default.parentData)),P.var(c.default.parentDataProperty,(0,s._)(d4||(d4=st(["",".",""])),c.default.valCxt,c.default.parentDataProperty)),P.var(c.default.rootData,(0,s._)(h4||(h4=st(["",".",""])),c.default.valCxt,c.default.rootData)),B.dynamicRef&&P.var(c.default.dynamicAnchors,(0,s._)(p4||(p4=st(["",".",""])),c.default.valCxt,c.default.dynamicAnchors))},function(){P.var(c.default.instancePath,(0,s._)(v4||(v4=st(['""'])))),P.var(c.default.parentData,(0,s._)(m4||(m4=st(["undefined"])))),P.var(c.default.parentDataProperty,(0,s._)(g4||(g4=st(["undefined"])))),P.var(c.default.rootData,c.default.data),B.dynamicRef&&P.var(c.default.dynamicAnchors,(0,s._)(y4||(y4=st(["{}"]))))})}(J,M),J.code(F)}):J.func(I,(0,s._)(s4||(s4=st(["",", ",""])),c.default.data,function(P){return(0,s._)(c4||(c4=st(["{",'="", ',", ",", ","=","","}={}"])),c.default.instancePath,c.default.parentData,c.default.parentDataProperty,c.default.rootData,c.default.data,P.dynamicRef?(0,s._)(u4||(u4=st([", ","={}"])),c.default.dynamicAnchors):s.nil)}(M)),C.$async,function(){return J.code(h(D,M)).code(F)})}function h(O,F){var J=ce(O)=="object"&&O[F.schemaId];return J&&(F.code.source||F.code.process)?(0,s._)($4||($4=st(["/*# sourceURL="," */"])),J):s.nil}function p(O,F){m(O)&&(g(O),v(O))?function(J,I){var D=J.schema,C=J.gen,M=J.opts;M.$comment&&D.$comment&&b(J),function(B){var A=B.schema[B.opts.schemaId];A&&(B.baseId=(0,u.resolveUrl)(B.opts.uriResolver,B.baseId,A))}(J),function(B){if(B.schema.$async&&!B.schemaEnv.$async)throw new Error("async schema in sync schema")}(J);var P=C.const("_errs",c.default.errors);y(J,P),C.var(I,(0,s._)(C4||(C4=st([""," === ",""])),P,c.default.errors))}(O,F):(0,e.boolOrEmptySchema)(O,F)}function v(O){var F=O.schema,J=O.self;if(typeof F=="boolean")return!F;for(var I in F)if(J.RULES.all[I])return!0;return!1}function m(O){return typeof O.schema!="boolean"}function g(O){(0,l.checkUnknownRules)(O),function(F){var J=F.schema,I=F.errSchemaPath,D=F.opts,C=F.self;J.$ref&&D.ignoreKeywordsWithRef&&(0,l.schemaHasRulesButRef)(J,C.RULES)&&C.logger.warn('$ref: keywords ignored in schema at path "'.concat(I,'"'))}(O)}function y(O,F){if(O.opts.jtd)return w(O,[],!1,F);var J=(0,t.getSchemaTypes)(O.schema);w(O,J,!(0,t.coerceAndCheckDataType)(O,J),F)}function b(O){var F=O.gen,J=O.schemaEnv,I=O.schema,D=O.errSchemaPath,C=O.opts,M=I.$comment;if(C.$comment===!0)F.code((0,s._)(E4||(E4=st(["",".logger.log(",")"])),c.default.self,M));else if(typeof C.$comment=="function"){var P=(0,s.str)(O4||(O4=st(["","/$comment"])),D),B=F.scopeValue("root",{ref:J.root});F.code((0,s._)(M4||(M4=st(["",".opts.$comment(",", ",", ",".schema)"])),c.default.self,M,P,B))}}function w(O,F,J,I){var D=O.gen,C=O.schema,M=O.data,P=O.allErrors,B=O.opts,A=O.self.RULES;function W(N){(0,n.shouldUseGroup)(C,N)&&(N.type?(D.if((0,r.checkDataType)(N.type,M,B.strictNumbers)),x(O,N),F.length===1&&F[0]===N.type&&J&&(D.else(),(0,r.reportTypeError)(O)),D.endIf()):x(O,N),P||D.if((0,s._)(D4||(D4=st([""," === ",""])),c.default.errors,I||0)))}!C.$ref||!B.ignoreKeywordsWithRef&&(0,l.schemaHasRulesButRef)(C,A)?(B.jtd||function(N,dt){N.schemaEnv.meta||!N.opts.strictTypes||(function(et,yt){if(yt.length){if(!et.dataTypes.length)return void(et.dataTypes=yt);yt.forEach(function(bt){E(et.dataTypes,bt)||_(et,'type "'.concat(bt,'" not allowed by context "').concat(et.dataTypes.join(","),'"'))}),function(bt,jt){var gt,Y=[],K=ht(bt.dataTypes);try{for(K.s();!(gt=K.n()).done;){var rt=gt.value;E(jt,rt)?Y.push(rt):jt.includes("integer")&&rt==="number"&&Y.push("integer")}}catch(X){K.e(X)}finally{K.f()}bt.dataTypes=Y}(et,yt)}}(N,dt),N.opts.allowUnionTypes||function(et,yt){yt.length>1&&(yt.length!==2||!yt.includes("null"))&&_(et,"use allowUnionTypes to allow union type keyword")}(N,dt),function(et,yt){var bt=et.self.RULES.all;for(var jt in bt){var gt=bt[jt];if(ce(gt)=="object"&&(0,n.shouldUseRule)(et.schema,gt)){var Y=gt.definition.type;Y.length&&!Y.some(function(K){return k(yt,K)})&&_(et,'missing type "'.concat(Y.join(","),'" for keyword "').concat(jt,'"'))}}}(N,N.dataTypes))}(O,F),D.block(function(){var N,dt=ht(A.rules);try{for(dt.s();!(N=dt.n()).done;)W(N.value)}catch(et){dt.e(et)}finally{dt.f()}W(A.post)})):D.block(function(){return $(O,"$ref",A.all.$ref.definition)})}function x(O,F){var J=O.gen,I=O.schema;O.opts.useDefaults&&(0,o.assignDefaults)(O,F.type),J.block(function(){var D,C=ht(F.rules);try{for(C.s();!(D=C.n()).done;){var M=D.value;(0,n.shouldUseRule)(I,M)&&$(O,M.keyword,M.definition,F.type)}}catch(P){C.e(P)}finally{C.f()}})}function k(O,F){return O.includes(F)||F==="number"&&O.includes("integer")}function E(O,F){return O.includes(F)||F==="integer"&&O.includes("number")}function _(O,F){var J=O.schemaEnv.baseId+O.errSchemaPath;F+=' at "'.concat(J,'" (strictTypes)'),(0,l.checkStrictMode)(O,F,O.opts.strictTypes)}xs.validateFunctionCode=function(O){m(O)&&(g(O),v(O))?function(F){var J=F.schema,I=F.opts,D=F.gen;d(F,function(){I.$comment&&J.$comment&&b(F),function(C){var M=C.schema,P=C.opts;M.default!==void 0&&P.useDefaults&&P.strictSchema&&(0,l.checkStrictMode)(C,"default is ignored in the schema root")}(F),D.let(c.default.vErrors,null),D.let(c.default.errors,0),I.unevaluated&&function(C){var M=C.gen,P=C.validateName;C.evaluated=M.const("evaluated",(0,s._)(b4||(b4=st(["",".evaluated"])),P)),M.if((0,s._)(w4||(w4=st(["",".dynamicProps"])),C.evaluated),function(){return M.assign((0,s._)(x4||(x4=st(["",".props"])),C.evaluated),(0,s._)(k4||(k4=st(["undefined"]))))}),M.if((0,s._)(j4||(j4=st(["",".dynamicItems"])),C.evaluated),function(){return M.assign((0,s._)(_4||(_4=st(["",".items"])),C.evaluated),(0,s._)(S4||(S4=st(["undefined"]))))})}(F),y(F),function(C){var M=C.gen,P=C.schemaEnv,B=C.validateName,A=C.ValidationError,W=C.opts;P.$async?M.if((0,s._)(A4||(A4=st([""," === 0"])),c.default.errors),function(){return M.return(c.default.data)},function(){return M.throw((0,s._)(P4||(P4=st(["new ","(",")"])),A,c.default.vErrors))}):(M.assign((0,s._)(T4||(T4=st(["",".errors"])),B),c.default.vErrors),W.unevaluated&&function(N){var dt=N.gen,et=N.evaluated,yt=N.props,bt=N.items;yt instanceof s.Name&&dt.assign((0,s._)(I4||(I4=st(["",".props"])),et),yt),bt instanceof s.Name&&dt.assign((0,s._)(N4||(N4=st(["",".items"])),et),bt)}(C),M.return((0,s._)(R4||(R4=st([""," === 0"])),c.default.errors)))}(F)})}(O):d(O,function(){return(0,e.topBoolOrEmptySchema)(O)})};var T=function(){function O(F,J,I){if(ot(this,O),(0,i.validateKeywordUsage)(F,J,I),this.gen=F.gen,this.allErrors=F.allErrors,this.keyword=I,this.data=F.data,this.schema=F.schema[I],this.$data=J.$data&&F.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,l.schemaRefOrVal)(F,this.schema,I,this.$data),this.schemaType=J.schemaType,this.parentSchema=F.schema,this.params={},this.it=F,this.def=J,this.$data)this.schemaCode=F.gen.const("vSchema",q(this.$data,F));else if(this.schemaCode=this.schemaValue,!(0,i.validSchemaType)(this.schema,J.schemaType,J.allowUndefined))throw new Error("".concat(I," value must be ").concat(JSON.stringify(J.schemaType)));("code"in J?J.trackErrors:J.errors!==!1)&&(this.errsCount=F.gen.const("_errs",c.default.errors))}return it(O,[{key:"result",value:function(F,J,I){this.failResult((0,s.not)(F),J,I)}},{key:"failResult",value:function(F,J,I){this.gen.if(F),I?I():this.error(),J?(this.gen.else(),J(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}},{key:"pass",value:function(F,J){this.failResult((0,s.not)(F),void 0,J)}},{key:"fail",value:function(F){if(F===void 0)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(F),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}},{key:"fail$data",value:function(F){if(!this.$data)return this.fail(F);var J=this.schemaCode;this.fail((0,s._)(L4||(L4=st([""," !== undefined && (",")"])),J,(0,s.or)(this.invalid$data(),F)))}},{key:"error",value:function(F,J,I){if(J)return this.setParams(J),this._error(F,I),void this.setParams({});this._error(F,I)}},{key:"_error",value:function(F,J){(F?f.reportExtraError:f.reportError)(this,this.def.error,J)}},{key:"$dataError",value:function(){(0,f.reportError)(this,this.def.$dataError||f.keyword$DataError)}},{key:"reset",value:function(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,f.resetErrorsCount)(this.gen,this.errsCount)}},{key:"ok",value:function(F){this.allErrors||this.gen.if(F)}},{key:"setParams",value:function(F,J){J?Object.assign(this.params,F):this.params=F}},{key:"block$data",value:function(F,J){var I=this,D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:s.nil;this.gen.block(function(){I.check$data(F,D),J()})}},{key:"check$data",value:function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:s.nil,J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:s.nil;if(this.$data){var I=this.gen,D=this.schemaCode,C=this.schemaType,M=this.def;I.if((0,s.or)((0,s._)(z4||(z4=st([""," === undefined"])),D),J)),F!==s.nil&&I.assign(F,!0),(C.length||M.validateSchema)&&(I.elseIf(this.invalid$data()),this.$dataError(),F!==s.nil&&I.assign(F,!1)),I.else()}}},{key:"invalid$data",value:function(){var F=this.gen,J=this.schemaCode,I=this.schemaType,D=this.def,C=this.it;return(0,s.or)(function(){if(I.length){if(!(J instanceof s.Name))throw new Error("ajv implementation error");var M=Array.isArray(I)?I:[I];return(0,s._)(B4||(B4=st(["",""])),(0,r.checkDataTypes)(M,J,C.opts.strictNumbers,r.DataType.Wrong))}return s.nil}(),function(){if(D.validateSchema){var M=F.scopeValue("validate$data",{ref:D.validateSchema});return(0,s._)(F4||(F4=st(["!","(",")"])),M,J)}return s.nil}())}},{key:"subschema",value:function(F,J){var I=(0,a.getSubschema)(this.it,F);(0,a.extendSubschemaData)(I,this.it,F),(0,a.extendSubschemaMode)(I,F);var D=xt(xt(xt({},this.it),I),{},{items:void 0,props:void 0});return p(D,J),D}},{key:"mergeEvaluated",value:function(F,J){var I=this.it,D=this.gen;I.opts.unevaluated&&(I.props!==!0&&F.props!==void 0&&(I.props=l.mergeEvaluated.props(D,F.props,I.props,J)),I.items!==!0&&F.items!==void 0&&(I.items=l.mergeEvaluated.items(D,F.items,I.items,J)))}},{key:"mergeValidEvaluated",value:function(F,J){var I=this,D=this.it,C=this.gen;if(D.opts.unevaluated&&(D.props!==!0||D.items!==!0))return C.if(J,function(){return I.mergeEvaluated(F,s.Name)}),!0}}]),O}();function $(O,F,J,I){var D=new T(O,J,F);"code"in J?J.code(D,I):D.$data&&J.validate?(0,i.funcKeywordCode)(D,J):"macro"in J?(0,i.macroKeywordCode)(D,J):(J.compile||J.validate)&&(0,i.funcKeywordCode)(D,J)}xs.KeywordCxt=T;var j=/^\/(?:[^~]|~0|~1)*$/,R=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function q(O,F){var J,I,D=F.dataLevel,C=F.dataNames,M=F.dataPathArr;if(O==="")return c.default.rootData;if(O[0]==="/"){if(!j.test(O))throw new Error("Invalid JSON-pointer: ".concat(O));J=O,I=c.default.rootData}else{var P=R.exec(O);if(!P)throw new Error("Invalid JSON-pointer: ".concat(O));var B=+P[1];if((J=P[2])==="#"){if(B>=D)throw new Error(et("property/index",B));return M[D-B]}if(B>D)throw new Error(et("data",B));if(I=C[D-B],!J)return I}var A,W=I,N=ht(J.split("/"));try{for(N.s();!(A=N.n()).done;){var dt=A.value;dt&&(I=(0,s._)(q4||(q4=st(["","",""])),I,(0,s.getProperty)((0,l.unescapeJsonPointer)(dt))),W=(0,s._)(H4||(H4=st([""," && ",""])),W,I))}}catch(yt){N.e(yt)}finally{N.f()}return W;function et(yt,bt){return"Cannot access ".concat(yt," ").concat(bt," levels up, current level is ").concat(D)}}return xs.getData=q,xs}bo.getSchemaRefs=function(e,t){var n=this;if(typeof e=="boolean")return{};var r=this.opts,o=r.schemaId,i=r.uriResolver,a=df(e[o]||t),s={"":a},c=PH(i,a,!1),u={},l=new Set;return oxt(e,{allKeys:!0},function(h,p,v,m){if(m!==void 0){var g=c+p,y=s[m];typeof h[o]=="string"&&(y=b.call(n,h[o])),w.call(n,h.$anchor),w.call(n,h.$dynamicAnchor),s[p]=y}function b(x){var k=this.opts.uriResolver.resolve;if(x=df(y?k(y,x):x),l.has(x))throw d(x);l.add(x);var E=this.refs[x];return typeof E=="string"&&(E=this.refs[E]),ce(E)=="object"?f(h,E.schema,x):x!==df(g)&&(x[0]==="#"?(f(h,u[x],x),u[x]=h):this.refs[x]=g),x}function w(x){if(typeof x=="string"){if(!cxt.test(x))throw new Error('invalid anchor "'.concat(x,'"'));b.call(this,"#".concat(x))}}}),u;function f(h,p,v){if(p!==void 0&&!rxt(h,p))throw d(v)}function d(h){return new Error('reference "'.concat(h,'" resolves to more than one schema'))}};var i7,Uv={};function n_(){if(i7)return Uv;i7=1,Object.defineProperty(Uv,"__esModule",{value:!0});var e=function(t){Tt(r,kf(Error));var n=Rt(r);function r(o){var i;return ot(this,r),(i=n.call(this,"validation failed")).errors=o,i.ajv=i.validation=!0,i}return it(r)}();return Uv.default=e,Uv}var a7,Kv={};function r_(){if(a7)return Kv;a7=1,Object.defineProperty(Kv,"__esModule",{value:!0});var e=bo,t=function(n){Tt(o,kf(Error));var r=Rt(o);function o(i,a,s,c){var u;return ot(this,o),(u=r.call(this,c||"can't resolve reference ".concat(s," from id ").concat(a))).missingRef=(0,e.resolveUrl)(i,a,s),u.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(i,u.missingRef)),u}return it(o)}();return Kv.default=t,Kv}var Zo={};Object.defineProperty(Zo,"__esModule",{value:!0}),Zo.resolveSchema=Zo.getCompilingSchema=Zo.resolveRef=Zo.compileSchema=Zo.SchemaEnv=void 0;var ra=_n(),uxt=n_(),vu=Yc(),va=bo,s7=Rn,lxt=h1(),Xg=it(function e(t){var n,r;ot(this,e),this.refs={},this.dynamicAnchors={},ce(t.schema)=="object"&&(r=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(n=t.baseId)!==null&&n!==void 0?n:(0,va.normalizeId)(r==null?void 0:r[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=r==null?void 0:r.$async,this.refs={}});function o_(e){var t=RH.call(this,e);if(t)return t;var n,r=(0,va.getFullPath)(this.opts.uriResolver,e.root.baseId),o=this.opts.code,i=o.es5,a=o.lines,s=this.opts.ownProperties,c=new ra.CodeGen(this.scope,{es5:i,lines:a,ownProperties:s});e.$async&&(n=c.scopeValue("Error",{ref:uxt.default,code:(0,ra._)(V4||(V4=st(['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:vu.default.data,parentData:vu.default.parentData,parentDataProperty:vu.default.parentDataProperty,dataNames:[vu.default.data],dataPathArr:[ra.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:c.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,ra.stringify)(e.schema)}:{ref:e.schema}),validateName:u,ValidationError:n,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:ra.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,ra._)(W4||(W4=st(['""']))),opts:this.opts,self:this};try{this._compilations.add(e),(0,lxt.validateFunctionCode)(f),c.optimize(this.opts.code.optimize);var d=c.toString();l="".concat(c.scopeRefs(vu.default.scope),"return ").concat(d),this.opts.code.process&&(l=this.opts.code.process(l,e));var h=new Function("".concat(vu.default.self),"".concat(vu.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),this.opts.code.source===!0&&(h.source={validateName:u,validateCode:d,scopeValues:c._values}),this.opts.unevaluated){var p=f.props,v=f.items;h.evaluated={props:p instanceof ra.Name?void 0:p,items:v instanceof ra.Name?void 0:v,dynamicProps:p instanceof ra.Name,dynamicItems:v instanceof ra.Name},h.source&&(h.source.evaluated=(0,ra.stringify)(h.evaluated))}return e.validate=h,e}catch(m){throw delete e.validate,delete e.validateName,l&&this.logger.error("Error compiling schema, function code:",l),m}finally{this._compilations.delete(e)}}function fxt(e){return(0,va.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:o_.call(this,e)}function RH(e){var t,n,r,o=ht(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(a){o.e(a)}finally{o.f()}}function dxt(e,t){for(var n;typeof(n=this.refs[t])=="string";)t=n;return n||this.schemas[t]||p1.call(this,e,t)}function p1(e,t){var n=this.opts.uriResolver.parse(t),r=(0,va._getFullPath)(this.opts.uriResolver,n),o=(0,va.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&r===o)return tb.call(this,n,e);var i=(0,va.normalizeId)(r),a=this.refs[i]||this.schemas[i];if(typeof a=="string"){var s=p1.call(this,e,a);return ce(s==null?void 0:s.schema)!=="object"?void 0:tb.call(this,n,s)}if(ce(a==null?void 0:a.schema)==="object"){if(a.validate||o_.call(this,a),i===(0,va.normalizeId)(t)){var c=a.schema,u=this.opts.schemaId,l=c[u];return l&&(o=(0,va.resolveUrl)(this.opts.uriResolver,o,l)),new Xg({schema:c,schemaId:u,root:e,baseId:o})}return tb.call(this,n,a)}}Zo.SchemaEnv=Xg,Zo.compileSchema=o_,Zo.resolveRef=function(e,t,n){var r;n=(0,va.resolveUrl)(this.opts.uriResolver,t,n);var o=e.refs[n];if(o)return o;var i=dxt.call(this,e,n);if(i===void 0){var a=(r=e.localRefs)===null||r===void 0?void 0:r[n],s=this.opts.schemaId;a&&(i=new Xg({schema:a,schemaId:s,root:e,baseId:t}))}return i!==void 0?e.refs[n]=fxt.call(this,i):void 0},Zo.getCompilingSchema=RH,Zo.resolveSchema=p1;var hxt=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function tb(e,t){var n,r=t.baseId,o=t.schema,i=t.root;if(((n=e.fragment)===null||n===void 0?void 0:n[0])==="/"){var a,s,c=ht(e.fragment.slice(1).split("/"));try{for(c.s();!(a=c.n()).done;){var u=a.value;if(typeof o=="boolean")return;var l=o[(0,s7.unescapeFragment)(u)];if(l===void 0)return;var f=ce(o=l)==="object"&&o[this.opts.schemaId];!hxt.has(u)&&f&&(r=(0,va.resolveUrl)(this.opts.uriResolver,r,f))}}catch(p){c.e(p)}finally{c.f()}if(typeof o!="boolean"&&o.$ref&&!(0,s7.schemaHasRulesButRef)(o,this.RULES)){var d=(0,va.resolveUrl)(this.opts.uriResolver,r,o.$ref);s=p1.call(this,i,d)}var h=this.opts.schemaId;return(s=s||new Xg({schema:o,schemaId:h,root:i,baseId:r})).schema!==s.root.schema?s:void 0}}var pxt={$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},Wx={},IH={exports:{}};(function(e){function t(){for(var Q=arguments.length,at=Array(Q),vt=0;vt<Q;vt++)at[vt]=arguments[vt];if(at.length>1){at[0]=at[0].slice(0,-1);for(var ut=at.length-1,It=1;It<ut;++It)at[It]=at[It].slice(1,-1);return at[ut]=at[ut].slice(1),at.join("")}return at[0]}function n(Q){return"(?:"+Q+")"}function r(Q){return Q===void 0?"undefined":Q===null?"null":Object.prototype.toString.call(Q).split(" ").pop().split("]").shift().toLowerCase()}function o(Q){return Q.toUpperCase()}function i(Q){return Q!=null?Q instanceof Array?Q:typeof Q.length!="number"||Q.split||Q.setInterval||Q.call?[Q]:Array.prototype.slice.call(Q):[]}function a(Q,at){var vt=Q;if(at)for(var ut in at)vt[ut]=at[ut];return vt}function s(Q){var at="[A-Za-z]",vt="[0-9]",ut=t(vt,"[A-Fa-f]"),It=n(n("%[EFef]"+ut+"%"+ut+ut+"%"+ut+ut)+"|"+n("%[89A-Fa-f]"+ut+"%"+ut+ut)+"|"+n("%"+ut+ut)),ee="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",pe=t("[\\:\\/\\?\\#\\[\\]\\@]",ee),Xe=Q?"[\\uE000-\\uF8FF]":"[]",Fe=t(at,vt,"[\\-\\.\\_\\~]",Q?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]");n(at+t(at,vt,"[\\+\\-\\.]")+"*"),n(n(It+"|"+t(Fe,ee,"[\\:]"))+"*");var kn=n(n("25[0-5]")+"|"+n("2[0-4]"+vt)+"|"+n("1"+vt+vt)+"|"+n("0?[1-9]"+vt)+"|0?0?"+vt),On=n(kn+"\\."+kn+"\\."+kn+"\\."+kn),ke=n(ut+"{1,4}"),gn=n(n(ke+"\\:"+ke)+"|"+On),pn=n(n(ke+"\\:")+"{6}"+gn),Zn=n("\\:\\:"+n(ke+"\\:")+"{5}"+gn),yn=n(n(ke)+"?\\:\\:"+n(ke+"\\:")+"{4}"+gn),ct=n(n(n(ke+"\\:")+"{0,1}"+ke)+"?\\:\\:"+n(ke+"\\:")+"{3}"+gn),Nt=n(n(n(ke+"\\:")+"{0,2}"+ke)+"?\\:\\:"+n(ke+"\\:")+"{2}"+gn),ne=n(n(n(ke+"\\:")+"{0,3}"+ke)+"?\\:\\:"+ke+"\\:"+gn),ae=n(n(n(ke+"\\:")+"{0,4}"+ke)+"?\\:\\:"+gn),Yt=n(n(n(ke+"\\:")+"{0,5}"+ke)+"?\\:\\:"+ke),Te=n(n(n(ke+"\\:")+"{0,6}"+ke)+"?\\:\\:"),He=n([pn,Zn,yn,ct,Nt,ne,ae,Yt,Te].join("|")),Ve=n(n(Fe+"|"+It)+"+");n("[vV]"+ut+"+\\."+t(Fe,ee,"[\\:]")+"+"),n(n(It+"|"+t(Fe,ee))+"*");var de=n(It+"|"+t(Fe,ee,"[\\:\\@]"));return n(n(It+"|"+t(Fe,ee,"[\\@]"))+"+"),n(n(de+"|"+t("[\\/\\?]",Xe))+"*"),{NOT_SCHEME:new RegExp(t("[^]",at,vt,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(t("[^\\%\\:]",Fe,ee),"g"),NOT_HOST:new RegExp(t("[^\\%\\[\\]\\:]",Fe,ee),"g"),NOT_PATH:new RegExp(t("[^\\%\\/\\:\\@]",Fe,ee),"g"),NOT_PATH_NOSCHEME:new RegExp(t("[^\\%\\/\\@]",Fe,ee),"g"),NOT_QUERY:new RegExp(t("[^\\%]",Fe,ee,"[\\:\\@\\/\\?]",Xe),"g"),NOT_FRAGMENT:new RegExp(t("[^\\%]",Fe,ee,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(t("[^]",Fe,ee),"g"),UNRESERVED:new RegExp(Fe,"g"),OTHER_CHARS:new RegExp(t("[^\\%]",Fe,pe),"g"),PCT_ENCODED:new RegExp(It,"g"),IPV4ADDRESS:new RegExp("^("+On+")$"),IPV6ADDRESS:new RegExp("^\\[?("+He+")"+n(n("\\%25|\\%(?!"+ut+"{2})")+"("+Ve+")")+"?\\]?$")}}var c=s(!1),u=s(!0),l=function(){function Q(at,vt){var ut=[],It=!0,ee=!1,pe=void 0;try{for(var Xe,Fe=at[Symbol.iterator]();!(It=(Xe=Fe.next()).done)&&(ut.push(Xe.value),!vt||ut.length!==vt);It=!0);}catch(kn){ee=!0,pe=kn}finally{try{!It&&Fe.return&&Fe.return()}finally{if(ee)throw pe}}return ut}return function(at,vt){if(Array.isArray(at))return at;if(Symbol.iterator in Object(at))return Q(at,vt);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),f=function(Q){if(Array.isArray(Q)){for(var at=0,vt=Array(Q.length);at<Q.length;at++)vt[at]=Q[at];return vt}return Array.from(Q)},d=2147483647,h=36,p=1,v=26,m=38,g=700,y=72,b=128,w="-",x=/^xn--/,k=/[^\0-\x7E]/,E=/[\x2E\u3002\uFF0E\uFF61]/g,_={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},T=h-p,$=Math.floor,j=String.fromCharCode;function R(Q){throw new RangeError(_[Q])}function q(Q,at){for(var vt=[],ut=Q.length;ut--;)vt[ut]=at(Q[ut]);return vt}function O(Q,at){var vt=Q.split("@"),ut="";return vt.length>1&&(ut=vt[0]+"@",Q=vt[1]),ut+q((Q=Q.replace(E,".")).split("."),at).join(".")}function F(Q){for(var at=[],vt=0,ut=Q.length;vt<ut;){var It=Q.charCodeAt(vt++);if(It>=55296&&It<=56319&&vt<ut){var ee=Q.charCodeAt(vt++);(64512&ee)==56320?at.push(((1023&It)<<10)+(1023&ee)+65536):(at.push(It),vt--)}else at.push(It)}return at}var J=function(Q){return String.fromCodePoint.apply(String,f(Q))},I=function(Q){return Q-48<10?Q-22:Q-65<26?Q-65:Q-97<26?Q-97:h},D=function(Q,at){return Q+22+75*(Q<26)-((at!=0)<<5)},C=function(Q,at,vt){var ut=0;for(Q=vt?$(Q/g):Q>>1,Q+=$(Q/at);Q>T*v>>1;ut+=h)Q=$(Q/T);return $(ut+(T+1)*Q/(Q+m))},M=function(Q){var at=[],vt=Q.length,ut=0,It=b,ee=y,pe=Q.lastIndexOf(w);pe<0&&(pe=0);for(var Xe=0;Xe<pe;++Xe)Q.charCodeAt(Xe)>=128&&R("not-basic"),at.push(Q.charCodeAt(Xe));for(var Fe=pe>0?pe+1:0;Fe<vt;){for(var kn=ut,On=1,ke=h;;ke+=h){Fe>=vt&&R("invalid-input");var gn=I(Q.charCodeAt(Fe++));(gn>=h||gn>$((d-ut)/On))&&R("overflow"),ut+=gn*On;var pn=ke<=ee?p:ke>=ee+v?v:ke-ee;if(gn<pn)break;var Zn=h-pn;On>$(d/Zn)&&R("overflow"),On*=Zn}var yn=at.length+1;ee=C(ut-kn,yn,kn==0),$(ut/yn)>d-It&&R("overflow"),It+=$(ut/yn),ut%=yn,at.splice(ut++,0,It)}return String.fromCodePoint.apply(String,at)},P=function(Q){var at=[],vt=(Q=F(Q)).length,ut=b,It=0,ee=y,pe=!0,Xe=!1,Fe=void 0;try{for(var kn,On=Q[Symbol.iterator]();!(pe=(kn=On.next()).done);pe=!0){var ke=kn.value;ke<128&&at.push(j(ke))}}catch(_i){Xe=!0,Fe=_i}finally{try{!pe&&On.return&&On.return()}finally{if(Xe)throw Fe}}var gn=at.length,pn=gn;for(gn&&at.push(w);pn<vt;){var Zn=d,yn=!0,ct=!1,Nt=void 0;try{for(var ne,ae=Q[Symbol.iterator]();!(yn=(ne=ae.next()).done);yn=!0){var Yt=ne.value;Yt>=ut&&Yt<Zn&&(Zn=Yt)}}catch(_i){ct=!0,Nt=_i}finally{try{!yn&&ae.return&&ae.return()}finally{if(ct)throw Nt}}var Te=pn+1;Zn-ut>$((d-It)/Te)&&R("overflow"),It+=(Zn-ut)*Te,ut=Zn;var He=!0,Ve=!1,de=void 0;try{for(var fn,Kn=Q[Symbol.iterator]();!(He=(fn=Kn.next()).done);He=!0){var Dn=fn.value;if(Dn<ut&&++It>d&&R("overflow"),Dn==ut){for(var Lr=It,ci=h;;ci+=h){var Ta=ci<=ee?p:ci>=ee+v?v:ci-ee;if(Lr<Ta)break;var ji=Lr-Ta,Ra=h-Ta;at.push(j(D(Ta+ji%Ra,0))),Lr=$(ji/Ra)}at.push(j(D(Lr,0))),ee=C(It,Te,pn==gn),It=0,++pn}}}catch(_i){Ve=!0,de=_i}finally{try{!He&&Kn.return&&Kn.return()}finally{if(Ve)throw de}}++It,++ut}return at.join("")},B=function(Q){return O(Q,function(at){return x.test(at)?M(at.slice(4).toLowerCase()):at})},A=function(Q){return O(Q,function(at){return k.test(at)?"xn--"+P(at):at})},W={version:"2.1.0",ucs2:{decode:F,encode:J},decode:M,encode:P,toASCII:A,toUnicode:B},N={};function dt(Q){var at=Q.charCodeAt(0);return at<16?"%0"+at.toString(16).toUpperCase():at<128?"%"+at.toString(16).toUpperCase():at<2048?"%"+(at>>6|192).toString(16).toUpperCase()+"%"+(63&at|128).toString(16).toUpperCase():"%"+(at>>12|224).toString(16).toUpperCase()+"%"+(at>>6&63|128).toString(16).toUpperCase()+"%"+(63&at|128).toString(16).toUpperCase()}function et(Q){for(var at="",vt=0,ut=Q.length;vt<ut;){var It=parseInt(Q.substr(vt+1,2),16);if(It<128)at+=String.fromCharCode(It),vt+=3;else if(It>=194&&It<224){if(ut-vt>=6){var ee=parseInt(Q.substr(vt+4,2),16);at+=String.fromCharCode((31&It)<<6|63&ee)}else at+=Q.substr(vt,6);vt+=6}else if(It>=224){if(ut-vt>=9){var pe=parseInt(Q.substr(vt+4,2),16),Xe=parseInt(Q.substr(vt+7,2),16);at+=String.fromCharCode((15&It)<<12|(63&pe)<<6|63&Xe)}else at+=Q.substr(vt,9);vt+=9}else at+=Q.substr(vt,3),vt+=3}return at}function yt(Q,at){function vt(ut){var It=et(ut);return It.match(at.UNRESERVED)?It:ut}return Q.scheme&&(Q.scheme=String(Q.scheme).replace(at.PCT_ENCODED,vt).toLowerCase().replace(at.NOT_SCHEME,"")),Q.userinfo!==void 0&&(Q.userinfo=String(Q.userinfo).replace(at.PCT_ENCODED,vt).replace(at.NOT_USERINFO,dt).replace(at.PCT_ENCODED,o)),Q.host!==void 0&&(Q.host=String(Q.host).replace(at.PCT_ENCODED,vt).toLowerCase().replace(at.NOT_HOST,dt).replace(at.PCT_ENCODED,o)),Q.path!==void 0&&(Q.path=String(Q.path).replace(at.PCT_ENCODED,vt).replace(Q.scheme?at.NOT_PATH:at.NOT_PATH_NOSCHEME,dt).replace(at.PCT_ENCODED,o)),Q.query!==void 0&&(Q.query=String(Q.query).replace(at.PCT_ENCODED,vt).replace(at.NOT_QUERY,dt).replace(at.PCT_ENCODED,o)),Q.fragment!==void 0&&(Q.fragment=String(Q.fragment).replace(at.PCT_ENCODED,vt).replace(at.NOT_FRAGMENT,dt).replace(at.PCT_ENCODED,o)),Q}function bt(Q){return Q.replace(/^0*(.*)/,"$1")||"0"}function jt(Q,at){var vt=Q.match(at.IPV4ADDRESS)||[],ut=l(vt,2)[1];return ut?ut.split(".").map(bt).join("."):Q}function gt(Q,at){var vt=Q.match(at.IPV6ADDRESS)||[],ut=l(vt,3),It=ut[1],ee=ut[2];if(It){for(var pe=It.toLowerCase().split("::").reverse(),Xe=l(pe,2),Fe=Xe[0],kn=Xe[1],On=kn?kn.split(":").map(bt):[],ke=Fe.split(":").map(bt),gn=at.IPV4ADDRESS.test(ke[ke.length-1]),pn=gn?7:8,Zn=ke.length-pn,yn=Array(pn),ct=0;ct<pn;++ct)yn[ct]=On[ct]||ke[Zn+ct]||"";gn&&(yn[pn-1]=jt(yn[pn-1],at));var Nt=yn.reduce(function(Te,He,Ve){if(!He||He==="0"){var de=Te[Te.length-1];de&&de.index+de.length===Ve?de.length++:Te.push({index:Ve,length:1})}return Te},[]).sort(function(Te,He){return He.length-Te.length})[0],ne=void 0;if(Nt&&Nt.length>1){var ae=yn.slice(0,Nt.index),Yt=yn.slice(Nt.index+Nt.length);ne=ae.join(":")+"::"+Yt.join(":")}else ne=yn.join(":");return ee&&(ne+="%"+ee),ne}return Q}var Y=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,K="".match(/(){0}/)[1]===void 0;function rt(Q){var at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},vt={},ut=at.iri!==!1?u:c;at.reference==="suffix"&&(Q=(at.scheme?at.scheme+":":"")+"//"+Q);var It=Q.match(Y);if(It){K?(vt.scheme=It[1],vt.userinfo=It[3],vt.host=It[4],vt.port=parseInt(It[5],10),vt.path=It[6]||"",vt.query=It[7],vt.fragment=It[8],isNaN(vt.port)&&(vt.port=It[5])):(vt.scheme=It[1]||void 0,vt.userinfo=Q.indexOf("@")!==-1?It[3]:void 0,vt.host=Q.indexOf("//")!==-1?It[4]:void 0,vt.port=parseInt(It[5],10),vt.path=It[6]||"",vt.query=Q.indexOf("?")!==-1?It[7]:void 0,vt.fragment=Q.indexOf("#")!==-1?It[8]:void 0,isNaN(vt.port)&&(vt.port=Q.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?It[4]:void 0)),vt.host&&(vt.host=gt(jt(vt.host,ut),ut)),vt.scheme!==void 0||vt.userinfo!==void 0||vt.host!==void 0||vt.port!==void 0||vt.path||vt.query!==void 0?vt.scheme===void 0?vt.reference="relative":vt.fragment===void 0?vt.reference="absolute":vt.reference="uri":vt.reference="same-document",at.reference&&at.reference!=="suffix"&&at.reference!==vt.reference&&(vt.error=vt.error||"URI is not a "+at.reference+" reference.");var ee=N[(at.scheme||vt.scheme||"").toLowerCase()];if(at.unicodeSupport||ee&&ee.unicodeSupport)yt(vt,ut);else{if(vt.host&&(at.domainHost||ee&&ee.domainHost))try{vt.host=W.toASCII(vt.host.replace(ut.PCT_ENCODED,et).toLowerCase())}catch(pe){vt.error=vt.error||"Host's domain name can not be converted to ASCII via punycode: "+pe}yt(vt,c)}ee&&ee.parse&&ee.parse(vt,at)}else vt.error=vt.error||"URI can not be parsed.";return vt}function X(Q,at){var vt=at.iri!==!1?u:c,ut=[];return Q.userinfo!==void 0&&(ut.push(Q.userinfo),ut.push("@")),Q.host!==void 0&&ut.push(gt(jt(String(Q.host),vt),vt).replace(vt.IPV6ADDRESS,function(It,ee,pe){return"["+ee+(pe?"%25"+pe:"")+"]"})),typeof Q.port!="number"&&typeof Q.port!="string"||(ut.push(":"),ut.push(String(Q.port))),ut.length?ut.join(""):void 0}var _t=/^\.\.?\//,L=/^\/\.(\/|$)/,U=/^\/\.\.(\/|$)/,G=/^\/?(?:.|\n)*?(?=\/|$)/;function pt(Q){for(var at=[];Q.length;)if(Q.match(_t))Q=Q.replace(_t,"");else if(Q.match(L))Q=Q.replace(L,"/");else if(Q.match(U))Q=Q.replace(U,"/"),at.pop();else if(Q==="."||Q==="..")Q="";else{var vt=Q.match(G);if(!vt)throw new Error("Unexpected dot segment condition");var ut=vt[0];Q=Q.slice(ut.length),at.push(ut)}return at.join("")}function mt(Q){var at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},vt=at.iri?u:c,ut=[],It=N[(at.scheme||Q.scheme||"").toLowerCase()];if(It&&It.serialize&&It.serialize(Q,at),Q.host&&!vt.IPV6ADDRESS.test(Q.host)){if(at.domainHost||It&&It.domainHost)try{Q.host=at.iri?W.toUnicode(Q.host):W.toASCII(Q.host.replace(vt.PCT_ENCODED,et).toLowerCase())}catch(Xe){Q.error=Q.error||"Host's domain name can not be converted to "+(at.iri?"Unicode":"ASCII")+" via punycode: "+Xe}}yt(Q,vt),at.reference!=="suffix"&&Q.scheme&&(ut.push(Q.scheme),ut.push(":"));var ee=X(Q,at);if(ee!==void 0&&(at.reference!=="suffix"&&ut.push("//"),ut.push(ee),Q.path&&Q.path.charAt(0)!=="/"&&ut.push("/")),Q.path!==void 0){var pe=Q.path;at.absolutePath||It&&It.absolutePath||(pe=pt(pe)),ee===void 0&&(pe=pe.replace(/^\/\//,"/%2F")),ut.push(pe)}return Q.query!==void 0&&(ut.push("?"),ut.push(Q.query)),Q.fragment!==void 0&&(ut.push("#"),ut.push(Q.fragment)),ut.join("")}function Ot(Q,at){var vt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ut={};return arguments[3]||(Q=rt(mt(Q,vt),vt),at=rt(mt(at,vt),vt)),!(vt=vt||{}).tolerant&&at.scheme?(ut.scheme=at.scheme,ut.userinfo=at.userinfo,ut.host=at.host,ut.port=at.port,ut.path=pt(at.path||""),ut.query=at.query):(at.userinfo!==void 0||at.host!==void 0||at.port!==void 0?(ut.userinfo=at.userinfo,ut.host=at.host,ut.port=at.port,ut.path=pt(at.path||""),ut.query=at.query):(at.path?(at.path.charAt(0)==="/"?ut.path=pt(at.path):(Q.userinfo===void 0&&Q.host===void 0&&Q.port===void 0||Q.path?Q.path?ut.path=Q.path.slice(0,Q.path.lastIndexOf("/")+1)+at.path:ut.path=at.path:ut.path="/"+at.path,ut.path=pt(ut.path)),ut.query=at.query):(ut.path=Q.path,at.query!==void 0?ut.query=at.query:ut.query=Q.query),ut.userinfo=Q.userinfo,ut.host=Q.host,ut.port=Q.port),ut.scheme=Q.scheme),ut.fragment=at.fragment,ut}function Ct(Q,at,vt){var ut=a({scheme:"null"},vt);return mt(Ot(rt(Q,ut),rt(at,ut),ut,!0),ut)}function Vt(Q,at){return typeof Q=="string"?Q=mt(rt(Q,at),at):r(Q)==="object"&&(Q=rt(mt(Q,at),at)),Q}function Qt(Q,at,vt){return typeof Q=="string"?Q=mt(rt(Q,vt),vt):r(Q)==="object"&&(Q=mt(Q,vt)),typeof at=="string"?at=mt(rt(at,vt),vt):r(at)==="object"&&(at=mt(at,vt)),Q===at}function te(Q,at){return Q&&Q.toString().replace(at&&at.iri?u.ESCAPE:c.ESCAPE,dt)}function Kt(Q,at){return Q&&Q.toString().replace(at&&at.iri?u.PCT_ENCODED:c.PCT_ENCODED,et)}var ue={scheme:"http",domainHost:!0,parse:function(Q,at){return Q.host||(Q.error=Q.error||"HTTP URIs must have a host."),Q},serialize:function(Q,at){var vt=String(Q.scheme).toLowerCase()==="https";return Q.port!==(vt?443:80)&&Q.port!==""||(Q.port=void 0),Q.path||(Q.path="/"),Q}},Me={scheme:"https",domainHost:ue.domainHost,parse:ue.parse,serialize:ue.serialize};function en(Q){return typeof Q.secure=="boolean"?Q.secure:String(Q.scheme).toLowerCase()==="wss"}var le={scheme:"ws",domainHost:!0,parse:function(Q,at){var vt=Q;return vt.secure=en(vt),vt.resourceName=(vt.path||"/")+(vt.query?"?"+vt.query:""),vt.path=void 0,vt.query=void 0,vt},serialize:function(Q,at){if(Q.port!==(en(Q)?443:80)&&Q.port!==""||(Q.port=void 0),typeof Q.secure=="boolean"&&(Q.scheme=Q.secure?"wss":"ws",Q.secure=void 0),Q.resourceName){var vt=Q.resourceName.split("?"),ut=l(vt,2),It=ut[0],ee=ut[1];Q.path=It&&It!=="/"?It:void 0,Q.query=ee,Q.resourceName=void 0}return Q.fragment=void 0,Q}},xn={scheme:"wss",domainHost:le.domainHost,parse:le.parse,serialize:le.serialize},Ie={},mn="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",Ye="[0-9A-Fa-f]",Ke=n(n("%[EFef]"+Ye+"%"+Ye+Ye+"%"+Ye+Ye)+"|"+n("%[89A-Fa-f]"+Ye+"%"+Ye+Ye)+"|"+n("%"+Ye+Ye)),qn="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",In=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),Xn="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",$n=new RegExp(mn,"g"),En=new RegExp(Ke,"g"),Nn=new RegExp(t("[^]",qn,"[\\.]",'[\\"]',In),"g"),sr=new RegExp(t("[^]",mn,Xn),"g"),Pr=sr;function Et(Q){var at=et(Q);return at.match($n)?at:Q}var ie={scheme:"mailto",parse:function(Q,at){var vt=Q,ut=vt.to=vt.path?vt.path.split(","):[];if(vt.path=void 0,vt.query){for(var It=!1,ee={},pe=vt.query.split("&"),Xe=0,Fe=pe.length;Xe<Fe;++Xe){var kn=pe[Xe].split("=");switch(kn[0]){case"to":for(var On=kn[1].split(","),ke=0,gn=On.length;ke<gn;++ke)ut.push(On[ke]);break;case"subject":vt.subject=Kt(kn[1],at);break;case"body":vt.body=Kt(kn[1],at);break;default:It=!0,ee[Kt(kn[0],at)]=Kt(kn[1],at)}}It&&(vt.headers=ee)}vt.query=void 0;for(var pn=0,Zn=ut.length;pn<Zn;++pn){var yn=ut[pn].split("@");if(yn[0]=Kt(yn[0]),at.unicodeSupport)yn[1]=Kt(yn[1],at).toLowerCase();else try{yn[1]=W.toASCII(Kt(yn[1],at).toLowerCase())}catch(ct){vt.error=vt.error||"Email address's domain name can not be converted to ASCII via punycode: "+ct}ut[pn]=yn.join("@")}return vt},serialize:function(Q,at){var vt=Q,ut=i(Q.to);if(ut){for(var It=0,ee=ut.length;It<ee;++It){var pe=String(ut[It]),Xe=pe.lastIndexOf("@"),Fe=pe.slice(0,Xe).replace(En,Et).replace(En,o).replace(Nn,dt),kn=pe.slice(Xe+1);try{kn=at.iri?W.toUnicode(kn):W.toASCII(Kt(kn,at).toLowerCase())}catch(pn){vt.error=vt.error||"Email address's domain name can not be converted to "+(at.iri?"Unicode":"ASCII")+" via punycode: "+pn}ut[It]=Fe+"@"+kn}vt.path=ut.join(",")}var On=Q.headers=Q.headers||{};Q.subject&&(On.subject=Q.subject),Q.body&&(On.body=Q.body);var ke=[];for(var gn in On)On[gn]!==Ie[gn]&&ke.push(gn.replace(En,Et).replace(En,o).replace(sr,dt)+"="+On[gn].replace(En,Et).replace(En,o).replace(Pr,dt));return ke.length&&(vt.query=ke.join("&")),vt}},Be=/^([^\:]+)\:(.*)/,nn={scheme:"urn",parse:function(Q,at){var vt=Q.path&&Q.path.match(Be),ut=Q;if(vt){var It=at.scheme||ut.scheme||"urn",ee=vt[1].toLowerCase(),pe=vt[2],Xe=It+":"+(at.nid||ee),Fe=N[Xe];ut.nid=ee,ut.nss=pe,ut.path=void 0,Fe&&(ut=Fe.parse(ut,at))}else ut.error=ut.error||"URN can not be parsed.";return ut},serialize:function(Q,at){var vt=at.scheme||Q.scheme||"urn",ut=Q.nid,It=vt+":"+(at.nid||ut),ee=N[It];ee&&(Q=ee.serialize(Q,at));var pe=Q,Xe=Q.nss;return pe.path=(ut||at.nid)+":"+Xe,pe}},$t=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Xt={scheme:"urn:uuid",parse:function(Q,at){var vt=Q;return vt.uuid=vt.nss,vt.nss=void 0,at.tolerant||vt.uuid&&vt.uuid.match($t)||(vt.error=vt.error||"UUID is not valid."),vt},serialize:function(Q,at){var vt=Q;return vt.nss=(Q.uuid||"").toLowerCase(),vt}};N[ue.scheme]=ue,N[Me.scheme]=Me,N[le.scheme]=le,N[xn.scheme]=xn,N[ie.scheme]=ie,N[nn.scheme]=nn,N[Xt.scheme]=Xt,e.SCHEMES=N,e.pctEncChar=dt,e.pctDecChars=et,e.parse=rt,e.removeDotSegments=pt,e.serialize=mt,e.resolveComponents=Ot,e.resolve=Ct,e.normalize=Vt,e.equal=Qt,e.escapeComponent=te,e.unescapeComponent=Kt,Object.defineProperty(e,"__esModule",{value:!0})})(IH.exports);var vxt=IH.exports;Object.defineProperty(Wx,"__esModule",{value:!0});var c7=vxt;c7.code='require("ajv/dist/runtime/uri").default',Wx.default=c7,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=h1();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var n=_n();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=n_(),o=r_(),i=Fu,a=Zo,s=_n(),c=bo,u=rp,l=Rn,f=pxt,d=Wx,h=function(I,D){return new RegExp(I,D)};h.code="new RegExp";var p=["removeAdditional","useDefaults","coerceTypes"],v=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.'},y=function(){function I(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ot(this,I),this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,D=this.opts=xt(xt({},D),function(A){var W,N,dt,et,yt,bt,jt,gt,Y,K,rt,X,_t,L,U,G,pt,mt,Ot,Ct,Vt,Qt,te,Kt,ue,Me=A.strict,en=(W=A.code)===null||W===void 0?void 0:W.optimize,le=en===!0||en===void 0?1:en||0,xn=(dt=(N=A.code)===null||N===void 0?void 0:N.regExp)!==null&&dt!==void 0?dt:h,Ie=(et=A.uriResolver)!==null&&et!==void 0?et:d.default;return{strictSchema:(bt=(yt=A.strictSchema)!==null&&yt!==void 0?yt:Me)===null||bt===void 0||bt,strictNumbers:(gt=(jt=A.strictNumbers)!==null&&jt!==void 0?jt:Me)===null||gt===void 0||gt,strictTypes:(K=(Y=A.strictTypes)!==null&&Y!==void 0?Y:Me)!==null&&K!==void 0?K:"log",strictTuples:(X=(rt=A.strictTuples)!==null&&rt!==void 0?rt:Me)!==null&&X!==void 0?X:"log",strictRequired:(L=(_t=A.strictRequired)!==null&&_t!==void 0?_t:Me)!==null&&L!==void 0&&L,code:A.code?xt(xt({},A.code),{},{optimize:le,regExp:xn}):{optimize:le,regExp:xn},loopRequired:(U=A.loopRequired)!==null&&U!==void 0?U:200,loopEnum:(G=A.loopEnum)!==null&&G!==void 0?G:200,meta:(pt=A.meta)===null||pt===void 0||pt,messages:(mt=A.messages)===null||mt===void 0||mt,inlineRefs:(Ot=A.inlineRefs)===null||Ot===void 0||Ot,schemaId:(Ct=A.schemaId)!==null&&Ct!==void 0?Ct:"$id",addUsedSchema:(Vt=A.addUsedSchema)===null||Vt===void 0||Vt,validateSchema:(Qt=A.validateSchema)===null||Qt===void 0||Qt,validateFormats:(te=A.validateFormats)===null||te===void 0||te,unicodeRegExp:(Kt=A.unicodeRegExp)===null||Kt===void 0||Kt,int32range:(ue=A.int32range)===null||ue===void 0||ue,uriResolver:Ie}}(D));var C=this.opts.code,M=C.es5,P=C.lines;this.scope=new s.ValueScope({scope:{},prefixes:v,es5:M,lines:P}),this.logger=function(A){if(A===!1)return T;if(A===void 0)return console;if(A.log&&A.warn&&A.error)return A;throw new Error("logger must implement log, warn and error methods")}(D.logger);var B=D.validateFormats;D.validateFormats=!1,this.RULES=(0,i.getRules)(),b.call(this,m,D,"NOT SUPPORTED"),b.call(this,g,D,"DEPRECATED","warn"),this._metaOpts=_.call(this),D.formats&&k.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),D.keywords&&E.call(this,D.keywords),ce(D.meta)=="object"&&this.addMetaSchema(D.meta),x.call(this),D.validateFormats=B}return it(I,[{key:"_addVocabularies",value:function(){this.addKeyword("$async")}},{key:"_addDefaultMetaSchema",value:function(){var D=this.opts,C=D.$data,M=D.meta,P=D.schemaId,B=f;P==="id"&&((B=xt({},f)).id=B.$id,delete B.$id),M&&C&&this.addMetaSchema(B,B[P],!1)}},{key:"defaultMeta",value:function(){var D=this.opts,C=D.meta,M=D.schemaId;return this.opts.defaultMeta=ce(C)=="object"?C[M]||C:void 0}},{key:"validate",value:function(D,C){var M;if(typeof D=="string"){if(!(M=this.getSchema(D)))throw new Error('no schema with key or ref "'.concat(D,'"'))}else M=this.compile(D);var P=M(C);return"$async"in M||(this.errors=M.errors),P}},{key:"compile",value:function(D,C){var M=this._addSchema(D,C);return M.validate||this._compileSchemaEnv(M)}},{key:"compileAsync",value:function(D,C){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");var M=this.opts.loadSchema;return P.call(this,D,C);function P(Y,K){return B.apply(this,arguments)}function B(){return(B=Ae(qt().mark(function Y(K,rt){var X;return qt().wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:return _t.next=2,A.call(this,K.$schema);case 2:return X=this._addSchema(K,rt),_t.abrupt("return",X.validate||N.call(this,X));case 4:case"end":return _t.stop()}},Y,this)}))).apply(this,arguments)}function A(Y){return W.apply(this,arguments)}function W(){return(W=Ae(qt().mark(function Y(K){return qt().wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:if(!K||this.getSchema(K)){rt.next=3;break}return rt.next=3,P.call(this,{$ref:K},!0);case 3:case"end":return rt.stop()}},Y,this)}))).apply(this,arguments)}function N(Y){return dt.apply(this,arguments)}function dt(){return(dt=Ae(qt().mark(function Y(K){return qt().wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:return rt.prev=0,rt.abrupt("return",this._compileSchemaEnv(K));case 4:if(rt.prev=4,rt.t0=rt.catch(0),rt.t0 instanceof o.default){rt.next=8;break}throw rt.t0;case 8:return et.call(this,rt.t0),rt.next=11,yt.call(this,rt.t0.missingSchema);case 11:return rt.abrupt("return",N.call(this,K));case 12:case"end":return rt.stop()}},Y,this,[[0,4]])}))).apply(this,arguments)}function et(Y){var K=Y.missingSchema,rt=Y.missingRef;if(this.refs[K])throw new Error("AnySchema ".concat(K," is loaded but ").concat(rt," cannot be resolved"))}function yt(Y){return bt.apply(this,arguments)}function bt(){return bt=Ae(qt().mark(function Y(K){var rt;return qt().wrap(function(X){for(;;)switch(X.prev=X.next){case 0:return X.next=2,jt.call(this,K);case 2:if(rt=X.sent,this.refs[K]){X.next=6;break}return X.next=6,A.call(this,rt.$schema);case 6:this.refs[K]||this.addSchema(rt,K,C);case 7:case"end":return X.stop()}},Y,this)})),bt.apply(this,arguments)}function jt(Y){return gt.apply(this,arguments)}function gt(){return gt=Ae(qt().mark(function Y(K){var rt;return qt().wrap(function(X){for(;;)switch(X.prev=X.next){case 0:if(!(rt=this._loading[K])){X.next=3;break}return X.abrupt("return",rt);case 3:return X.prev=3,X.next=6,this._loading[K]=M(K);case 6:return X.abrupt("return",X.sent);case 7:return X.prev=7,delete this._loading[K],X.finish(7);case 10:case"end":return X.stop()}},Y,this,[[3,,7,10]])})),gt.apply(this,arguments)}}},{key:"addSchema",value:function(D,C,M){var P,B=arguments.length>3&&arguments[3]!==void 0?arguments[3]:this.opts.validateSchema;if(Array.isArray(D)){var A,W=ht(D);try{for(W.s();!(A=W.n()).done;){var N=A.value;this.addSchema(N,void 0,M,B)}}catch(et){W.e(et)}finally{W.f()}return this}if(ce(D)==="object"){var dt=this.opts.schemaId;if((P=D[dt])!==void 0&&typeof P!="string")throw new Error("schema ".concat(dt," must be string"))}return C=(0,c.normalizeId)(C||P),this._checkUnique(C),this.schemas[C]=this._addSchema(D,M,C,B,!0),this}},{key:"addMetaSchema",value:function(D,C){var M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.opts.validateSchema;return this.addSchema(D,C,!0,M),this}},{key:"validateSchema",value:function(D,C){if(typeof D=="boolean")return!0;var M;if((M=D.$schema)!==void 0&&typeof M!="string")throw new Error("$schema must be a string");if(!(M=M||this.opts.defaultMeta||this.defaultMeta()))return this.logger.warn("meta-schema not available"),this.errors=null,!0;var P=this.validate(M,D);if(!P&&C){var B="schema is invalid: "+this.errorsText();if(this.opts.validateSchema!=="log")throw new Error(B);this.logger.error(B)}return P}},{key:"getSchema",value:function(D){for(var C;typeof(C=w.call(this,D))=="string";)D=C;if(C===void 0){var M=this.opts.schemaId,P=new a.SchemaEnv({schema:{},schemaId:M});if(!(C=a.resolveSchema.call(this,P,D)))return;this.refs[D]=C}return C.validate||this._compileSchemaEnv(C)}},{key:"removeSchema",value:function(D){if(D instanceof RegExp)return this._removeAllSchemas(this.schemas,D),this._removeAllSchemas(this.refs,D),this;switch(ce(D)){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":var C=w.call(this,D);return ce(C)=="object"&&this._cache.delete(C.schema),delete this.schemas[D],delete this.refs[D],this;case"object":var M=D;this._cache.delete(M);var P=D[this.opts.schemaId];return P&&(P=(0,c.normalizeId)(P),delete this.schemas[P],delete this.refs[P]),this;default:throw new Error("ajv.removeSchema: invalid parameter")}}},{key:"addVocabulary",value:function(D){var C,M=ht(D);try{for(M.s();!(C=M.n()).done;){var P=C.value;this.addKeyword(P)}}catch(B){M.e(B)}finally{M.f()}return this}},{key:"addKeyword",value:function(D,C){var M,P=this;if(typeof D=="string")M=D,ce(C)=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),C.keyword=M);else{if(ce(D)!="object"||C!==void 0)throw new Error("invalid addKeywords parameters");if(M=(C=D).keyword,Array.isArray(M)&&!M.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(j.call(this,M,C),!C)return(0,l.eachItem)(M,function(A){return R.call(P,A)}),this;O.call(this,C);var B=xt(xt({},C),{},{type:(0,u.getJSONTypes)(C.type),schemaType:(0,u.getJSONTypes)(C.schemaType)});return(0,l.eachItem)(M,B.type.length===0?function(A){return R.call(P,A,B)}:function(A){return B.type.forEach(function(W){return R.call(P,A,B,W)})}),this}},{key:"getKeyword",value:function(D){var C=this.RULES.all[D];return ce(C)=="object"?C.definition:!!C}},{key:"removeKeyword",value:function(D){var C=this.RULES;delete C.keywords[D],delete C.all[D];var M,P=ht(C.rules);try{for(P.s();!(M=P.n()).done;){var B=M.value,A=B.rules.findIndex(function(W){return W.keyword===D});A>=0&&B.rules.splice(A,1)}}catch(W){P.e(W)}finally{P.f()}return this}},{key:"addFormat",value:function(D,C){return typeof C=="string"&&(C=new RegExp(C)),this.formats[D]=C,this}},{key:"errorsText",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.errors,C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},M=C.separator,P=M===void 0?", ":M,B=C.dataVar,A=B===void 0?"data":B;return D&&D.length!==0?D.map(function(W){return"".concat(A).concat(W.instancePath," ").concat(W.message)}).reduce(function(W,N){return W+P+N}):"No errors"}},{key:"$dataMetaSchema",value:function(D,C){var M=this.RULES.all;D=JSON.parse(JSON.stringify(D));var P,B=ht(C);try{for(B.s();!(P=B.n()).done;){var A,W=P.value.split("/").slice(1),N=D,dt=ht(W);try{for(dt.s();!(A=dt.n()).done;)N=N[A.value]}catch(gt){dt.e(gt)}finally{dt.f()}for(var et in M){var yt=M[et];if(ce(yt)=="object"){var bt=yt.definition.$data,jt=N[et];bt&&jt&&(N[et]=J(jt))}}}}catch(gt){B.e(gt)}finally{B.f()}return D}},{key:"_removeAllSchemas",value:function(D,C){for(var M in D){var P=D[M];C&&!C.test(M)||(typeof P=="string"?delete D[M]:P&&!P.meta&&(this._cache.delete(P.schema),delete D[M]))}}},{key:"_addSchema",value:function(D,C,M){var P,B=arguments.length>3&&arguments[3]!==void 0?arguments[3]:this.opts.validateSchema,A=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.opts.addUsedSchema,W=this.opts.schemaId;if(ce(D)=="object")P=D[W];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof D!="boolean")throw new Error("schema must be object or boolean")}var N=this._cache.get(D);if(N!==void 0)return N;M=(0,c.normalizeId)(P||M);var dt=c.getSchemaRefs.call(this,D,M);return N=new a.SchemaEnv({schema:D,schemaId:W,meta:C,baseId:M,localRefs:dt}),this._cache.set(N.schema,N),A&&!M.startsWith("#")&&(M&&this._checkUnique(M),this.refs[M]=N),B&&this.validateSchema(D,!0),N}},{key:"_checkUnique",value:function(D){if(this.schemas[D]||this.refs[D])throw new Error('schema with key or id "'.concat(D,'" already exists'))}},{key:"_compileSchemaEnv",value:function(D){if(D.meta?this._compileMetaSchema(D):a.compileSchema.call(this,D),!D.validate)throw new Error("ajv implementation error");return D.validate}},{key:"_compileMetaSchema",value:function(D){var C=this.opts;this.opts=this._metaOpts;try{a.compileSchema.call(this,D)}finally{this.opts=C}}}]),I}();function b(I,D,C){var M=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"error";for(var P in I){var B=P;B in D&&this.logger[M]("".concat(C,": option ").concat(P,". ").concat(I[B]))}}function w(I){return I=(0,c.normalizeId)(I),this.schemas[I]||this.refs[I]}function x(){var I=this.opts.schemas;if(I)if(Array.isArray(I))this.addSchema(I);else for(var D in I)this.addSchema(I[D],D)}function k(){for(var I in this.opts.formats){var D=this.opts.formats[I];D&&this.addFormat(I,D)}}function E(I){if(Array.isArray(I))this.addVocabulary(I);else for(var D in this.logger.warn("keywords option as map is deprecated, pass array"),I){var C=I[D];C.keyword||(C.keyword=D),this.addKeyword(C)}}function _(){var I,D=xt({},this.opts),C=ht(p);try{for(C.s();!(I=C.n()).done;)delete D[I.value]}catch(M){C.e(M)}finally{C.f()}return D}e.default=y,y.ValidationError=r.default,y.MissingRefError=o.default;var T={log:function(){},warn:function(){},error:function(){}},$=/^[a-z_$][a-z0-9_$:-]*$/i;function j(I,D){var C=this.RULES;if((0,l.eachItem)(I,function(M){if(C.keywords[M])throw new Error("Keyword ".concat(M," is already defined"));if(!$.test(M))throw new Error("Keyword ".concat(M," has invalid name"))}),D&&D.$data&&!("code"in D)&&!("validate"in D))throw new Error('$data keyword must have "code" or "validate" function')}function R(I,D,C){var M,P=this,B=D==null?void 0:D.post;if(C&&B)throw new Error('keyword with "post" flag cannot have "type"');var A=this.RULES,W=B?A.post:A.rules.find(function(dt){return dt.type===C});if(W||(W={type:C,rules:[]},A.rules.push(W)),A.keywords[I]=!0,D){var N={keyword:I,definition:xt(xt({},D),{},{type:(0,u.getJSONTypes)(D.type),schemaType:(0,u.getJSONTypes)(D.schemaType)})};D.before?q.call(this,W,N,D.before):W.rules.push(N),A.all[I]=N,(M=D.implements)===null||M===void 0||M.forEach(function(dt){return P.addKeyword(dt)})}}function q(I,D,C){var M=I.rules.findIndex(function(P){return P.keyword===C});M>=0?I.rules.splice(M,0,D):(I.rules.push(D),this.logger.warn("rule ".concat(C," is not defined")))}function O(I){var D=I.metaSchema;D!==void 0&&(I.$data&&this.opts.$data&&(D=J(D)),I.validateSchema=this.compile(D,!0))}var F={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function J(I){return{anyOf:[I,F]}}}(CH);var i_={},a_={},s_={};Object.defineProperty(s_,"__esModule",{value:!0});var mxt={keyword:"id",code:function(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};s_.default=mxt;var qu={};Object.defineProperty(qu,"__esModule",{value:!0}),qu.callRef=qu.getValidate=void 0;var gxt=r_(),u7=Pa(),Xo=_n(),kl=Yc(),l7=Zo,Jv=Rn,yxt={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 Tm(e,a,i,i.$async);var v=t.scopeValue("root",{ref:u});return Tm(e,(0,Xo._)(U4||(U4=st(["",".validate"])),v),u,u.$async)}();var l,f,d,h,p=l7.resolveRef.call(c,u,o,n);if(p===void 0)throw new gxt.default(r.opts.uriResolver,o,n);return p instanceof l7.SchemaEnv?function(v){var m=NH(e,v);Tm(e,m,v,v.$async)}(p):(l=p,f=t.scopeValue("schema",s.code.source===!0?{ref:l,code:(0,Xo.stringify)(l)}:{ref:l}),d=t.name("valid"),h=e.subschema({schema:l,dataTypes:[],schemaPath:Xo.nil,topSchemaRef:f,errSchemaPath:n},d),e.mergeEvaluated(h),void e.ok(d))}};function NH(e,t){var n=e.gen;return t.validate?n.scopeValue("validate",{ref:t.validate}):(0,Xo._)(K4||(K4=st(["",".validate"])),n.scopeValue("wrapper",{ref:t}))}function Tm(e,t,n,r){var o=e.gen,i=e.it,a=i.allErrors,s=i.schemaEnv,c=i.opts.passContext?kl.default.this:Xo.nil;function u(f){var d=(0,Xo._)(Q4||(Q4=st(["",".errors"])),f);o.assign(kl.default.vErrors,(0,Xo._)(Y4||(Y4=st([""," === null ? "," : ",".concat(",")"])),kl.default.vErrors,d,kl.default.vErrors,d)),o.assign(kl.default.errors,(0,Xo._)(X4||(X4=st(["",".length"])),kl.default.vErrors))}function l(f){var d;if(i.opts.unevaluated){var h=(d=n==null?void 0:n.validate)===null||d===void 0?void 0:d.evaluated;if(i.props!==!0)if(h&&!h.dynamicProps)h.props!==void 0&&(i.props=Jv.mergeEvaluated.props(o,h.props,i.props));else{var p=o.var("props",(0,Xo._)(Z4||(Z4=st(["",".evaluated.props"])),f));i.props=Jv.mergeEvaluated.props(o,p,i.props,Xo.Name)}if(i.items!==!0)if(h&&!h.dynamicItems)h.items!==void 0&&(i.items=Jv.mergeEvaluated.items(o,h.items,i.items));else{var v=o.var("items",(0,Xo._)(t8||(t8=st(["",".evaluated.items"])),f));i.items=Jv.mergeEvaluated.items(o,v,i.items,Xo.Name)}}}r?function(){if(!s.$async)throw new Error("async schema referenced by sync schema");var f=o.let("valid");o.try(function(){o.code((0,Xo._)(J4||(J4=st(["await ",""])),(0,u7.callValidateCode)(e,t,c))),l(t),a||o.assign(f,!0)},function(d){o.if((0,Xo._)(G4||(G4=st(["!("," instanceof ",")"])),d,i.ValidationError),function(){return o.throw(d)}),u(d),a||o.assign(f,!1)}),e.ok(f)}():e.result((0,u7.callValidateCode)(e,t,c),function(){return l(t)},function(){return u(t)})}qu.getValidate=NH,qu.callRef=Tm,qu.default=yxt,Object.defineProperty(a_,"__esModule",{value:!0});var bxt=qu,wxt=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",s_.default,bxt.default];a_.default=wxt;var c_={},u_={};Object.defineProperty(u_,"__esModule",{value:!0});var Zg=_n(),uc=Zg.operators,t0={maximum:{okStr:"<=",ok:uc.LTE,fail:uc.GT},minimum:{okStr:">=",ok:uc.GTE,fail:uc.LT},exclusiveMaximum:{okStr:"<",ok:uc.LT,fail:uc.GTE},exclusiveMinimum:{okStr:">",ok:uc.GT,fail:uc.LTE}},xxt={message:function(e){var t=e.keyword,n=e.schemaCode;return(0,Zg.str)(e8||(e8=st(["must be "," ",""])),t0[t].okStr,n)},params:function(e){var t=e.keyword,n=e.schemaCode;return(0,Zg._)(n8||(n8=st(["{comparison: ",", limit: ","}"])),t0[t].okStr,n)}},kxt={keyword:Object.keys(t0),type:"number",schemaType:"number",$data:!0,error:xxt,code:function(e){var t=e.keyword,n=e.data,r=e.schemaCode;e.fail$data((0,Zg._)(r8||(r8=st([""," "," "," || isNaN(",")"])),n,t0[t].fail,r,n))}};u_.default=kxt;var l_={};Object.defineProperty(l_,"__esModule",{value:!0});var _d=_n(),jxt={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:function(e){var t=e.schemaCode;return(0,_d.str)(o8||(o8=st(["must be multiple of ",""])),t)},params:function(e){var t=e.schemaCode;return(0,_d._)(i8||(i8=st(["{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,_d._)(a8||(a8=st(["Math.abs(Math.round(",") - ",") > 1e-",""])),i,i,o):(0,_d._)(s8||(s8=st([""," !== parseInt(",")"])),i,i);e.fail$data((0,_d._)(c8||(c8=st(["("," === 0 || ("," = ","/",", ","))"])),r,i,n,r,a))}};l_.default=jxt;var f_={},Ux={};function f7(e){for(var t,n=e.length,r=0,o=0;o<n;)r++,(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<n&&(64512&(t=e.charCodeAt(o)))==56320&&o++;return r}Object.defineProperty(Ux,"__esModule",{value:!0}),Ux.default=f7,f7.code='require("ajv/dist/runtime/ucs2length").default',Object.defineProperty(f_,"__esModule",{value:!0});var $u=_n(),_xt=Rn,Sxt=Ux,$xt={message:function(e){var t=e.keyword,n=e.schemaCode,r=t==="maxLength"?"more":"fewer";return(0,$u.str)(u8||(u8=st(["must NOT have "," than "," characters"])),r,n)},params:function(e){var t=e.schemaCode;return(0,$u._)(l8||(l8=st(["{limit: ","}"])),t)}},Cxt={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:$xt,code:function(e){var t=e.keyword,n=e.data,r=e.schemaCode,o=e.it,i=t==="maxLength"?$u.operators.GT:$u.operators.LT,a=o.opts.unicode===!1?(0,$u._)(f8||(f8=st(["",".length"])),n):(0,$u._)(d8||(d8=st(["","(",")"])),(0,_xt.useFunc)(e.gen,Sxt.default),n);e.fail$data((0,$u._)(h8||(h8=st([""," "," ",""])),a,i,r))}};f_.default=Cxt;var d_={};Object.defineProperty(d_,"__esModule",{value:!0});var Ext=Pa(),Gv=_n(),Oxt={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:function(e){var t=e.schemaCode;return(0,Gv.str)(p8||(p8=st(['must match pattern "','"'])),t)},params:function(e){var t=e.schemaCode;return(0,Gv._)(v8||(v8=st(["{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,Gv._)(m8||(m8=st(["(new RegExp(",", ","))"])),o,i):(0,Ext.usePattern)(e,r);e.fail$data((0,Gv._)(g8||(g8=st(["!",".test(",")"])),a,t))}};d_.default=Oxt;var h_={};Object.defineProperty(h_,"__esModule",{value:!0});var dh=_n(),Mxt={message:function(e){var t=e.keyword,n=e.schemaCode,r=t==="maxProperties"?"more":"fewer";return(0,dh.str)(y8||(y8=st(["must NOT have "," than "," properties"])),r,n)},params:function(e){var t=e.schemaCode;return(0,dh._)(b8||(b8=st(["{limit: ","}"])),t)}},Axt={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:Mxt,code:function(e){var t=e.keyword,n=e.data,r=e.schemaCode,o=t==="maxProperties"?dh.operators.GT:dh.operators.LT;e.fail$data((0,dh._)(w8||(w8=st(["Object.keys(",").length "," ",""])),n,o,r))}};h_.default=Axt;var p_={};Object.defineProperty(p_,"__esModule",{value:!0});var Sd=Pa(),$d=_n(),Pxt=Rn,Txt={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:function(e){var t=e.params.missingProperty;return(0,$d.str)(x8||(x8=st(["must have required property '","'"])),t)},params:function(e){var t=e.params.missingProperty;return(0,$d._)(k8||(k8=st(["{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||n.length!==0){var c=n.length>=s.loopRequired;if(a.allErrors?function(){if(c||i)e.block$data($d.nil,m);else{var g,y=ht(n);try{for(y.s();!(g=y.n()).done;){var b=g.value;(0,Sd.checkReportMissingProp)(e,b)}}catch(w){y.e(w)}finally{y.f()}}}():function(){var g=t.let("missing");if(c||i){var y=t.let("valid",!0);e.block$data(y,function(){return function(b,w){e.setParams({missingProperty:b}),t.forOf(b,r,function(){t.assign(w,(0,Sd.propertyInData)(t,o,b,s.ownProperties)),t.if((0,$d.not)(w),function(){e.error(),t.break()})},$d.nil)}(g,y)}),e.ok(y)}else t.if((0,Sd.checkMissingProp)(e,n,g)),(0,Sd.reportMissingProp)(e,g),t.else()}(),s.strictRequired){var u,l=e.parentSchema.properties,f=e.it.definedProperties,d=ht(n);try{for(d.s();!(u=d.n()).done;){var h=u.value;if((l==null?void 0:l[h])===void 0&&!f.has(h)){var p=a.schemaEnv.baseId+a.errSchemaPath,v='required property "'.concat(h,'" is not defined at "').concat(p,'" (strictRequired)');(0,Pxt.checkStrictMode)(a,v,a.opts.strictRequired)}}}catch(g){d.e(g)}finally{d.f()}}}function m(){t.forOf("prop",r,function(g){e.setParams({missingProperty:g}),t.if((0,Sd.noPropertyInData)(t,o,g,s.ownProperties),function(){return e.error()})})}}};p_.default=Txt;var v_={};Object.defineProperty(v_,"__esModule",{value:!0});var hh=_n(),Rxt={message:function(e){var t=e.keyword,n=e.schemaCode,r=t==="maxItems"?"more":"fewer";return(0,hh.str)(j8||(j8=st(["must NOT have "," than "," items"])),r,n)},params:function(e){var t=e.schemaCode;return(0,hh._)(_8||(_8=st(["{limit: ","}"])),t)}},Ixt={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:Rxt,code:function(e){var t=e.keyword,n=e.data,r=e.schemaCode,o=t==="maxItems"?hh.operators.GT:hh.operators.LT;e.fail$data((0,hh._)(S8||(S8=st(["",".length "," ",""])),n,o,r))}};v_.default=Ixt;var m_={},Ip={};Object.defineProperty(Ip,"__esModule",{value:!0});var d7=OH;d7.code='require("ajv/dist/runtime/equal").default',Ip.default=d7,Object.defineProperty(m_,"__esModule",{value:!0});var eb=rp,mo=_n(),Nxt=Rn,Dxt=Ip,Lxt={message:function(e){var t=e.params,n=t.i,r=t.j;return(0,mo.str)($8||($8=st(["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,mo._)(C8||(C8=st(["{i: ",", j: ","}"])),n,r)}},zxt={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:Lxt,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,eb.getSchemaTypes)(i.items):[];e.block$data(c,function(){var d=t.let("i",(0,mo._)(O8||(O8=st(["",".length"])),n)),h=t.let("j");e.setParams({i:d,j:h}),t.assign(c,!0),t.if((0,mo._)(M8||(M8=st([""," > 1"])),d),function(){return(u.length>0&&!u.some(function(p){return p==="object"||p==="array"})?l:f)(d,h)})},(0,mo._)(E8||(E8=st([""," === false"])),a)),e.ok(c)}function l(d,h){var p=t.name("item"),v=(0,eb.checkDataTypes)(u,p,s.opts.strictNumbers,eb.DataType.Wrong),m=t.const("indices",(0,mo._)(A8||(A8=st(["{}"]))));t.for((0,mo._)(P8||(P8=st([";","--;"])),d),function(){t.let(p,(0,mo._)(T8||(T8=st(["","[","]"])),n,d)),t.if(v,(0,mo._)(R8||(R8=st(["continue"])))),u.length>1&&t.if((0,mo._)(I8||(I8=st(["typeof ",' == "string"'])),p),(0,mo._)(N8||(N8=st(["",' += "_"'])),p)),t.if((0,mo._)(D8||(D8=st(["typeof ","[",'] == "number"'])),m,p),function(){t.assign(h,(0,mo._)(L8||(L8=st(["","[","]"])),m,p)),e.error(),t.assign(c,!1).break()}).code((0,mo._)(z8||(z8=st(["","[","] = ",""])),m,p,d))})}function f(d,h){var p=(0,Nxt.useFunc)(t,Dxt.default),v=t.name("outer");t.label(v).for((0,mo._)(B8||(B8=st([";","--;"])),d),function(){return t.for((0,mo._)(F8||(F8=st([""," = ","; ","--;"])),h,d,h),function(){return t.if((0,mo._)(q8||(q8=st(["","(","[","], ","[","])"])),p,n,d,n,h),function(){e.error(),t.assign(c,!1).break(v)})})})}}};m_.default=zxt;var g_={};Object.defineProperty(g_,"__esModule",{value:!0});var nb=_n(),Bxt=Rn,Fxt=Ip,qxt={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:function(e){var t=e.schemaCode;return(0,nb._)(H8||(H8=st(["{allowedValue: ","}"])),t)}},code:function(e){var t=e.gen,n=e.data,r=e.$data,o=e.schemaCode,i=e.schema;r||i&&ce(i)=="object"?e.fail$data((0,nb._)(V8||(V8=st(["!","(",", ",")"])),(0,Bxt.useFunc)(t,Fxt.default),n,o)):e.fail((0,nb._)(W8||(W8=st([""," !== ",""])),i,n))}};g_.default=qxt;var y_={};Object.defineProperty(y_,"__esModule",{value:!0});var Cd=_n(),Hxt=Rn,Vxt=Ip,Wxt={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,Cd._)(U8||(U8=st(["{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&&o.length===0)throw new Error("enum must have non-empty array");var s,c,u=o.length>=a.opts.loopEnum,l=function(){return s??(s=(0,Hxt.useFunc)(t,Vxt.default))};if(u||r)c=t.let("valid"),e.block$data(c,function(){t.assign(c,!1),t.forOf("v",i,function(d){return t.if((0,Cd._)(K8||(K8=st(["","(",", ",")"])),l(),n,d),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=Cd.or.apply(void 0,$e(o.map(function(d,h){return function(p,v){var m=o[v];return ce(m)==="object"&&m!==null?(0,Cd._)(J8||(J8=st(["","(",", ","[","])"])),l(),n,p,v):(0,Cd._)(G8||(G8=st([""," === ",""])),n,m)}(f,h)})))}e.pass(c)}};y_.default=Wxt,Object.defineProperty(c_,"__esModule",{value:!0});var Uxt=l_,Kxt=f_,Jxt=d_,Gxt=h_,Qxt=p_,Yxt=v_,Xxt=m_,Zxt=g_,tkt=y_,ekt=[u_.default,Uxt.default,Kxt.default,Jxt.default,Gxt.default,Qxt.default,Yxt.default,Xxt.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},Zxt.default,tkt.default];c_.default=ekt;var b_={},If={};Object.defineProperty(If,"__esModule",{value:!0}),If.validateAdditionalItems=void 0;var Cu=_n(),Kx=Rn,nkt={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:function(e){var t=e.params.len;return(0,Cu.str)(Q8||(Q8=st(["must NOT have more than "," items"])),t)},params:function(e){var t=e.params.len;return(0,Cu._)(Y8||(Y8=st(["{limit: ","}"])),t)}},code:function(e){var t=e.parentSchema,n=e.it,r=t.items;Array.isArray(r)?DH(e,r):(0,Kx.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas')}};function DH(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,Cu._)(X8||(X8=st(["",".length"])),o));if(r===!1)e.setParams({len:t.length}),e.pass((0,Cu._)(Z8||(Z8=st([""," <= ",""])),s,t.length));else if(ce(r)=="object"&&!(0,Kx.alwaysValidSchema)(a,r)){var c=n.var("valid",(0,Cu._)(t5||(t5=st([""," <= ",""])),s,t.length));n.if((0,Cu.not)(c),function(){return function(u){n.forRange("i",t.length,s,function(l){e.subschema({keyword:i,dataProp:l,dataPropType:Kx.Type.Num},u),a.allErrors||n.if((0,Cu.not)(u),function(){return n.break()})})}(c)}),e.ok(c)}}If.validateAdditionalItems=DH,If.default=nkt;var w_={},Nf={};Object.defineProperty(Nf,"__esModule",{value:!0}),Nf.validateTuple=void 0;var h7=_n(),Rm=Rn,rkt=Pa(),okt={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 LH(e,"additionalItems",t);n.items=!0,(0,Rm.alwaysValidSchema)(n,t)||e.ok((0,rkt.validateArray)(e))}};function LH(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.schema,r=e.gen,o=e.parentSchema,i=e.data,a=e.keyword,s=e.it;(function(l){var f=s.opts,d=s.errSchemaPath,h=n.length,p=h===l.minItems&&(h===l.maxItems||l[t]===!1);if(f.strictTuples&&!p){var v='"'.concat(a,'" is ').concat(h,"-tuple, but minItems or maxItems/").concat(t,' are not specified or different at path "').concat(d,'"');(0,Rm.checkStrictMode)(s,v,f.strictTuples)}})(o),s.opts.unevaluated&&n.length&&s.items!==!0&&(s.items=Rm.mergeEvaluated.items(r,n.length,s.items));var c=r.name("valid"),u=r.const("len",(0,h7._)(e5||(e5=st(["",".length"])),i));n.forEach(function(l,f){(0,Rm.alwaysValidSchema)(s,l)||(r.if((0,h7._)(n5||(n5=st([""," > ",""])),u,f),function(){return e.subschema({keyword:a,schemaProp:f,dataProp:f},c)}),e.ok(c))})}Nf.validateTuple=LH,Nf.default=okt,Object.defineProperty(w_,"__esModule",{value:!0});var ikt=Nf,akt={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:function(e){return(0,ikt.validateTuple)(e,"items")}};w_.default=akt;var x_={};Object.defineProperty(x_,"__esModule",{value:!0});var p7=_n(),skt=Rn,ckt=Pa(),ukt=If,lkt={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:function(e){var t=e.params.len;return(0,p7.str)(r5||(r5=st(["must NOT have more than "," items"])),t)},params:function(e){var t=e.params.len;return(0,p7._)(o5||(o5=st(["{limit: ","}"])),t)}},code:function(e){var t=e.schema,n=e.parentSchema,r=e.it,o=n.prefixItems;r.items=!0,(0,skt.alwaysValidSchema)(r,t)||(o?(0,ukt.validateAdditionalItems)(e,o):e.ok((0,ckt.validateArray)(e)))}};x_.default=lkt;var k_={};Object.defineProperty(k_,"__esModule",{value:!0});var Ci=_n(),Qv=Rn,fkt={message:function(e){var t=e.params,n=t.min,r=t.max;return r===void 0?(0,Ci.str)(i5||(i5=st(["must contain at least "," valid item(s)"])),n):(0,Ci.str)(a5||(a5=st(["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 r===void 0?(0,Ci._)(s5||(s5=st(["{minContains: ","}"])),n):(0,Ci._)(c5||(c5=st(["{minContains: ",", maxContains: ","}"])),n,r)}},dkt={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:fkt,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=c===void 0?1:c,n=u):t=1;var l=r.const("len",(0,Ci._)(u5||(u5=st(["",".length"])),a));if(e.setParams({min:t,max:n}),n!==void 0||t!==0){if(n!==void 0&&t>n)return(0,Qv.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),void e.fail();if((0,Qv.alwaysValidSchema)(s,o)){var f=(0,Ci._)(l5||(l5=st([""," >= ",""])),l,t);return n!==void 0&&(f=(0,Ci._)(f5||(f5=st([""," && "," <= ",""])),f,l,n)),void e.pass(f)}s.items=!0;var d=r.name("valid");n===void 0&&t===1?p(d,function(){return r.if(d,function(){return r.break()})}):t===0?(r.let(d,!0),n!==void 0&&r.if((0,Ci._)(d5||(d5=st(["",".length > 0"])),a),h)):(r.let(d,!1),h()),e.result(d,function(){return e.reset()})}else(0,Qv.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');function h(){var v=r.name("_valid"),m=r.let("count",0);p(v,function(){return r.if(v,function(){return function(g){r.code((0,Ci._)(h5||(h5=st(["","++"])),g)),n===void 0?r.if((0,Ci._)(p5||(p5=st([""," >= ",""])),g,t),function(){return r.assign(d,!0).break()}):(r.if((0,Ci._)(v5||(v5=st([""," > ",""])),g,n),function(){return r.assign(d,!1).break()}),t===1?r.assign(d,!0):r.if((0,Ci._)(m5||(m5=st([""," >= ",""])),g,t),function(){return r.assign(d,!0)}))}(m)})})}function p(v,m){r.forRange("i",0,l,function(g){e.subschema({keyword:"contains",dataProp:g,dataPropType:Qv.Type.Num,compositeRule:!0},v),m()})}}};k_.default=dkt;var zH={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;var t=_n(),n=Rn,r=Pa();e.error={message:function(s){var c=s.params,u=c.property,l=c.depsCount,f=c.deps,d=l===1?"property":"properties";return(0,t.str)(g5||(g5=st(["must have "," "," when property "," is present"])),d,f,u)},params:function(s){var c=s.params,u=c.property,l=c.depsCount,f=c.deps,d=c.missingProperty;return(0,t._)(y5||(y5=st(["{property: ",`,
|
|
124
|
+
missingProperty: `,`,
|
|
125
|
+
depsCount: `,`,
|
|
126
|
+
deps: `,"}"])),u,d,l,f)}};var o={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code:function(s){var c=Ce(function(f){var d=f.schema,h={},p={};for(var v in d)v!=="__proto__"&&((Array.isArray(d[v])?h:p)[v]=d[v]);return[h,p]}(s),2),u=c[0],l=c[1];i(s,u),a(s,l)}};function i(s){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:s.schema,u=s.gen,l=s.data,f=s.it;if(Object.keys(c).length!==0){var d=u.let("missing"),h=function(){var v=c[p];if(v.length===0)return 1;var m=(0,r.propertyInData)(u,l,p,f.opts.ownProperties);s.setParams({property:p,depsCount:v.length,deps:v.join(", ")}),f.allErrors?u.if(m,function(){var g,y=ht(v);try{for(y.s();!(g=y.n()).done;){var b=g.value;(0,r.checkReportMissingProp)(s,b)}}catch(w){y.e(w)}finally{y.f()}}):(u.if((0,t._)(b5||(b5=st([""," && (",")"])),m,(0,r.checkMissingProp)(s,v,d))),(0,r.reportMissingProp)(s,d),u.else())};for(var p in c)h()}}function a(s){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:s.schema,u=s.gen,l=s.data,f=s.keyword,d=s.it,h=u.name("valid"),p=function(m){if((0,n.alwaysValidSchema)(d,c[m]))return 1;u.if((0,r.propertyInData)(u,l,m,d.opts.ownProperties),function(){var g=s.subschema({keyword:f,schemaProp:m},h);s.mergeValidEvaluated(g,h)},function(){return u.var(h,!0)}),s.ok(h)};for(var v in c)p(v)}e.validatePropertyDeps=i,e.validateSchemaDeps=a,e.default=o})(zH);var j_={};Object.defineProperty(j_,"__esModule",{value:!0});var v7=_n(),hkt=Rn,pkt={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:function(e){var t=e.params;return(0,v7._)(w5||(w5=st(["{propertyName: ","}"])),t.propertyName)}},code:function(e){var t=e.gen,n=e.schema,r=e.data,o=e.it;if(!(0,hkt.alwaysValidSchema)(o,n)){var i=t.name("valid");t.forIn("key",r,function(a){e.setParams({propertyName:a}),e.subschema({keyword:"propertyNames",data:a,dataTypes:["string"],propertyName:a,compositeRule:!0},i),t.if((0,v7.not)(i),function(){e.error(!0),o.allErrors||t.break()})}),e.ok(i)}}};j_.default=pkt;var v1={};Object.defineProperty(v1,"__esModule",{value:!0});var Yv=Pa(),oa=_n(),vkt=Yc(),Xv=Rn,mkt={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,oa._)(x5||(x5=st(["{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,c.removeAdditional==="all"||!(0,Xv.alwaysValidSchema)(a,n)){var u=(0,Yv.allSchemaProperties)(r.properties),l=(0,Yv.allSchemaProperties)(r.patternProperties);t.forIn("key",o,function(p){u.length||l.length?t.if(function(v){var m;if(u.length>8){var g=(0,Xv.schemaRefOrVal)(a,r.properties,"properties");m=(0,Yv.isOwnProperty)(t,g,v)}else m=u.length?oa.or.apply(void 0,$e(u.map(function(y){return(0,oa._)(j5||(j5=st([""," === ",""])),v,y)}))):oa.nil;return l.length&&(m=oa.or.apply(void 0,[m].concat($e(l.map(function(y){return(0,oa._)(_5||(_5=st(["",".test(",")"])),(0,Yv.usePattern)(e,y),v)}))))),(0,oa.not)(m)}(p),function(){return d(p)}):d(p)}),e.ok((0,oa._)(k5||(k5=st([""," === ",""])),i,vkt.default.errors))}function f(p){t.code((0,oa._)(S5||(S5=st(["delete ","[","]"])),o,p))}function d(p){if(c.removeAdditional==="all"||c.removeAdditional&&n===!1)f(p);else{if(n===!1)return e.setParams({additionalProperty:p}),e.error(),void(s||t.break());if(ce(n)=="object"&&!(0,Xv.alwaysValidSchema)(a,n)){var v=t.name("valid");c.removeAdditional==="failing"?(h(p,v,!1),t.if((0,oa.not)(v),function(){e.reset(),f(p)})):(h(p,v),s||t.if((0,oa.not)(v),function(){return t.break()}))}}}function h(p,v,m){var g={keyword:"additionalProperties",dataProp:p,dataPropType:Xv.Type.Str};m===!1&&Object.assign(g,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(g,v)}}};v1.default=mkt;var __={};Object.defineProperty(__,"__esModule",{value:!0});var gkt=h1(),m7=Pa(),rb=Rn,g7=v1,ykt={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;i.opts.removeAdditional==="all"&&r.additionalProperties===void 0&&g7.default.code(new gkt.KeywordCxt(i,g7.default,"additionalProperties"));var a,s=(0,m7.allSchemaProperties)(n),c=ht(s);try{for(c.s();!(a=c.n()).done;){var u=a.value;i.definedProperties.add(u)}}catch(g){c.e(g)}finally{c.f()}i.opts.unevaluated&&s.length&&i.props!==!0&&(i.props=rb.mergeEvaluated.props(t,(0,rb.toHash)(s),i.props));var l=s.filter(function(g){return!(0,rb.alwaysValidSchema)(i,n[g])});if(l.length!==0){var f,d=t.name("valid"),h=ht(l);try{for(h.s();!(f=h.n()).done;){var p=f.value;v(p)?m(p):(t.if((0,m7.propertyInData)(t,o,p,i.opts.ownProperties)),m(p),i.allErrors||t.else().var(d,!0),t.endIf()),e.it.definedProperties.add(p),e.ok(d)}}catch(g){h.e(g)}finally{h.f()}}function v(g){return i.opts.useDefaults&&!i.compositeRule&&n[g].default!==void 0}function m(g){e.subschema({keyword:"properties",schemaProp:g,dataProp:g},d)}}};__.default=ykt;var S_={};Object.defineProperty(S_,"__esModule",{value:!0});var y7=Pa(),Zv=_n(),b7=Rn,w7=Rn,bkt={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,y7.allSchemaProperties)(n),c=s.filter(function(p){return(0,b7.alwaysValidSchema)(i,n[p])});if(s.length!==0&&(c.length!==s.length||i.opts.unevaluated&&i.props!==!0)){var u=a.strictSchema&&!a.allowMatchingProperties&&o.properties,l=t.name("valid");i.props===!0||i.props instanceof Zv.Name||(i.props=(0,w7.evaluatedPropsToName)(t,i.props));var f=i.props;(function(){var p,v=ht(s);try{for(v.s();!(p=v.n()).done;){var m=p.value;u&&d(m),i.allErrors?h(m):(t.var(l,!0),h(m),t.if(l))}}catch(g){v.e(g)}finally{v.f()}})()}function d(p){for(var v in u)new RegExp(p).test(v)&&(0,b7.checkStrictMode)(i,"property ".concat(v," matches pattern ").concat(p," (use allowMatchingProperties)"))}function h(p){t.forIn("key",r,function(v){t.if((0,Zv._)($5||($5=st(["",".test(",")"])),(0,y7.usePattern)(e,p),v),function(){var m=c.includes(p);m||e.subschema({keyword:"patternProperties",schemaProp:p,dataProp:v,dataPropType:w7.Type.Str},l),i.opts.unevaluated&&f!==!0?t.assign((0,Zv._)(C5||(C5=st(["","[","]"])),f,v),!0):m||i.allErrors||t.if((0,Zv.not)(l),function(){return t.break()})})})}}};S_.default=bkt;var $_={};Object.defineProperty($_,"__esModule",{value:!0});var wkt=Rn,xkt={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code:function(e){var t=e.gen,n=e.schema,r=e.it;if((0,wkt.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"}};$_.default=xkt;var C_={};Object.defineProperty(C_,"__esModule",{value:!0});var kkt={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Pa().validateUnion,error:{message:"must match a schema in anyOf"}};C_.default=kkt;var E_={};Object.defineProperty(E_,"__esModule",{value:!0});var tm=_n(),jkt=Rn,_kt={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:function(e){var t=e.params;return(0,tm._)(E5||(E5=st(["{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(u,l){var f;(0,jkt.alwaysValidSchema)(o,u)?t.var(c,!0):f=e.subschema({keyword:"oneOf",schemaProp:l,compositeRule:!0},c),l>0&&t.if((0,tm._)(O5||(O5=st([""," && ",""])),c,a)).assign(a,!1).assign(s,(0,tm._)(M5||(M5=st(["[",", ","]"])),s,l)).else(),t.if(c,function(){t.assign(a,!0),t.assign(s,l),f&&e.mergeEvaluated(f,tm.Name)})})}),e.result(a,function(){return e.reset()},function(){return e.error(!0)})}}};E_.default=_kt;var O_={};Object.defineProperty(O_,"__esModule",{value:!0});var Skt=Rn,$kt={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(i,a){if(!(0,Skt.alwaysValidSchema)(r,i)){var s=e.subschema({keyword:"allOf",schemaProp:a},o);e.ok(o),e.mergeEvaluated(s)}})}};O_.default=$kt;var M_={};Object.defineProperty(M_,"__esModule",{value:!0});var em=_n(),BH=Rn,Ckt={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:function(e){var t=e.params;return(0,em.str)(A5||(A5=st(['must match "','" schema'])),t.ifClause)},params:function(e){var t=e.params;return(0,em._)(P5||(P5=st(["{failingKeyword: ","}"])),t.ifClause)}},code:function(e){var t=e.gen,n=e.parentSchema,r=e.it;n.then===void 0&&n.else===void 0&&(0,BH.checkStrictMode)(r,'"if" without "then" and "else" is ignored');var o=x7(r,"then"),i=x7(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,em.not)(c),l("else"));e.pass(s,function(){return e.error(!0)})}function l(f,d){return function(){var h=e.subschema({keyword:f},c);t.assign(s,c),e.mergeValidEvaluated(h,s),d?t.assign(d,(0,em._)(T5||(T5=st(["",""])),f)):e.setParams({ifClause:f})}}}};function x7(e,t){var n=e.schema[t];return n!==void 0&&!(0,BH.alwaysValidSchema)(e,n)}M_.default=Ckt;var A_={};Object.defineProperty(A_,"__esModule",{value:!0});var Ekt=Rn,Okt={keyword:["then","else"],schemaType:["object","boolean"],code:function(e){var t=e.keyword,n=e.parentSchema,r=e.it;n.if===void 0&&(0,Ekt.checkStrictMode)(r,'"'.concat(t,'" without "if" is ignored'))}};A_.default=Okt,Object.defineProperty(b_,"__esModule",{value:!0});var Mkt=If,Akt=w_,Pkt=Nf,Tkt=x_,Rkt=k_,Ikt=zH,Nkt=j_,Dkt=v1,Lkt=__,zkt=S_,Bkt=$_,Fkt=C_,qkt=E_,Hkt=O_,Vkt=M_,Wkt=A_;b_.default=function(){var e=arguments.length>0&&arguments[0]!==void 0&&arguments[0],t=[Bkt.default,Fkt.default,qkt.default,Hkt.default,Vkt.default,Wkt.default,Nkt.default,Dkt.default,Ikt.default,Lkt.default,zkt.default];return e?t.push(Akt.default,Tkt.default):t.push(Mkt.default,Pkt.default),t.push(Rkt.default),t};var P_={},T_={};Object.defineProperty(T_,"__esModule",{value:!0});var Vr=_n(),Ukt={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:function(e){var t=e.schemaCode;return(0,Vr.str)(R5||(R5=st(['must match format "','"'])),t)},params:function(e){var t=e.schemaCode;return(0,Vr._)(I5||(I5=st(["{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 d=n.scopeValue("formats",{ref:f.formats,code:c.code.formats}),h=n.const("fDef",(0,Vr._)(N5||(N5=st(["","[","]"])),d,a)),p=n.let("fType"),v=n.let("format");n.if((0,Vr._)(D5||(D5=st(["typeof ",' == "object" && !('," instanceof RegExp)"])),h,h),function(){return n.assign(p,(0,Vr._)(L5||(L5=st(["",'.type || "string"'])),h)).assign(v,(0,Vr._)(z5||(z5=st(["",".validate"])),h))},function(){return n.assign(p,(0,Vr._)(B5||(B5=st(['"string"'])))).assign(v,h)}),e.fail$data((0,Vr.or)(c.strictSchema===!1?Vr.nil:(0,Vr._)(F5||(F5=st([""," && !",""])),a,v),(m=l.$async?(0,Vr._)(q5||(q5=st(["(",".async ? await ","(",") : ","(","))"])),h,v,r,v,r):(0,Vr._)(H5||(H5=st(["","(",")"])),v,r),g=(0,Vr._)(V5||(V5=st(["(typeof ",' == "function" ? '," : ",".test(","))"])),v,m,v,r),(0,Vr._)(W5||(W5=st([""," && "," !== true && "," === "," && !",""])),v,v,p,t,g))));var m,g}():function(){var d=f.formats[i];if(!d)return void function(){if(c.strictSchema===!1)return void f.logger.warn(g());throw new Error(g());function g(){return'unknown format "'.concat(i,'" ignored in schema at path "').concat(u,'"')}}();if(d!==!0){var h=Ce(function(g){var y=g instanceof RegExp?(0,Vr.regexpCode)(g):c.code.formats?(0,Vr._)(U5||(U5=st(["","",""])),c.code.formats,(0,Vr.getProperty)(i)):void 0,b=n.scopeValue("formats",{key:i,ref:g,code:y});return ce(g)=="object"&&!(g instanceof RegExp)?[g.type||"string",g.validate,(0,Vr._)(K5||(K5=st(["",".validate"])),b)]:["string",g,b]}(d),3),p=h[0],v=h[1],m=h[2];p===t&&e.pass(function(){if(ce(d)=="object"&&!(d instanceof RegExp)&&d.async){if(!l.$async)throw new Error("async format in sync schema");return(0,Vr._)(J5||(J5=st(["await ","(",")"])),m,r)}return typeof v=="function"?(0,Vr._)(G5||(G5=st(["","(",")"])),m,r):(0,Vr._)(Q5||(Q5=st(["",".test(",")"])),m,r)}())}}())}};T_.default=Ukt,Object.defineProperty(P_,"__esModule",{value:!0});var Kkt=[T_.default];P_.default=Kkt;var Al={};Object.defineProperty(Al,"__esModule",{value:!0}),Al.contentVocabulary=Al.metadataVocabulary=void 0,Al.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],Al.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"],Object.defineProperty(i_,"__esModule",{value:!0});var Jkt=c_,Gkt=b_,Qkt=P_,k7=Al,Ykt=[a_.default,Jkt.default,(0,Gkt.default)(),Qkt.default,k7.metadataVocabulary,k7.contentVocabulary];i_.default=Ykt;var R_={},FH={};(function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,(t=e.DiscrError||(e.DiscrError={})).Tag="tag",t.Mapping="mapping"})(FH),Object.defineProperty(R_,"__esModule",{value:!0});var jl=_n(),ob=FH,j7=Zo,Xkt=Rn,Zkt={keyword:"discriminator",type:"object",schemaType:"object",error:{message:function(e){var t=e.params,n=t.discrError,r=t.tagName;return n===ob.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,jl._)(Y5||(Y5=st(["{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(typeof s!="string")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,jl._)(X5||(X5=st(["","",""])),n,(0,jl.getProperty)(s)));function l(f){var d=t.name("valid"),h=e.subschema({keyword:"oneOf",schemaProp:f},d);return e.mergeEvaluated(h,jl.Name),d}t.if((0,jl._)(Z5||(Z5=st(["typeof ",' == "string"'])),u),function(){return function(){var f=function(){for(var h,p={},v=w(o),m=!0,g=0;g<a.length;g++){var y=a[g];y!=null&&y.$ref&&!(0,Xkt.schemaHasRulesButRef)(y,i.self.RULES)&&(y=j7.resolveRef.call(i.self,i.schemaEnv.root,i.baseId,y==null?void 0:y.$ref))instanceof j7.SchemaEnv&&(y=y.schema);var b=(h=y==null?void 0:y.properties)===null||h===void 0?void 0:h[s];if(ce(b)!="object")throw new Error('discriminator: oneOf subschemas (or referenced schemas) must have "properties/'.concat(s,'"'));m=m&&(v||w(y)),x(b,g)}if(!m)throw new Error('discriminator: "'.concat(s,'" must be required'));return p;function w(E){var _=E.required;return Array.isArray(_)&&_.includes(s)}function x(E,_){if(E.const)k(E.const,_);else{if(!E.enum)throw new Error('discriminator: "properties/'.concat(s,'" must have "const" or "enum"'));var T,$=ht(E.enum);try{for($.s();!(T=$.n()).done;)k(T.value,_)}catch(j){$.e(j)}finally{$.f()}}}function k(E,_){if(typeof E!="string"||E in p)throw new Error('discriminator: "'.concat(s,'" values must be unique strings'));p[E]=_}}();for(var d in t.if(!1),f)t.elseIf((0,jl._)(tE||(tE=st([""," === ",""])),u,d)),t.assign(c,l(f[d]));t.else(),e.error(!1,{discrError:ob.DiscrError.Mapping,tag:u,tagName:s}),t.endIf()}()},function(){return e.error(!1,{discrError:ob.DiscrError.Tag,tag:u,tagName:s})}),e.ok(c)}};R_.default=Zkt;var t2t={$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=i_,r=R_,o=t2t,i=["/properties"],a="http://json-schema.org/draft-07/schema",s=function(d){Tt(p,d);var h=Rt(p);function p(){return ot(this,p),h.apply(this,arguments)}return it(p,[{key:"_addVocabularies",value:function(){var v=this;jn(ln(p.prototype),"_addVocabularies",this).call(this),n.default.forEach(function(m){return v.addVocabulary(m)}),this.opts.discriminator&&this.addKeyword(r.default)}},{key:"_addDefaultMetaSchema",value:function(){if(jn(ln(p.prototype),"_addDefaultMetaSchema",this).call(this),this.opts.meta){var v=this.opts.$data?this.$dataMetaSchema(o,i):o;this.addMetaSchema(v,a,!1),this.refs["http://json-schema.org/schema"]=a}}},{key:"defaultMeta",value:function(){return this.opts.defaultMeta=jn(ln(p.prototype),"defaultMeta",this).call(this)||(this.getSchema(a)?a:void 0)}}]),p}(CH.default);e.exports=t=s,Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var c=h1();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var u=_n();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=n_();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return l.default}});var f=r_();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return f.default}})})(Hx,Hx.exports);s2(Hx.exports);var qH={};(function(e){function t(L){return L!==null&&Object.prototype.toString.call(L)==="[object Array]"}function n(L){return L!==null&&Object.prototype.toString.call(L)==="[object Object]"}function r(L,U){if(L===U)return!0;if(Object.prototype.toString.call(L)!==Object.prototype.toString.call(U))return!1;if(t(L)===!0){if(L.length!==U.length)return!1;for(var G=0;G<L.length;G++)if(r(L[G],U[G])===!1)return!1;return!0}if(n(L)===!0){var pt={};for(var mt in L)if(hasOwnProperty.call(L,mt)){if(r(L[mt],U[mt])===!1)return!1;pt[mt]=!0}for(var Ot in U)if(hasOwnProperty.call(U,Ot)&&pt[Ot]!==!0)return!1;return!0}return!1}function o(L){if(L===""||L===!1||L===null||t(L)&&L.length===0)return!0;if(n(L)){for(var U in L)if(L.hasOwnProperty(U))return!1;return!0}return!1}var i;i=typeof String.prototype.trimLeft=="function"?function(L){return L.trimLeft()}:function(L){return L.match(/^\s*(.*)/)[1]};var a=0,s=1,c=2,u=3,l=4,f=6,d=8,h=9,p={0:"number",1:"any",2:"string",3:"array",4:"object",5:"boolean",6:"expression",7:"null",8:"Array<number>",9:"Array<string>"},v="EOF",m="UnquotedIdentifier",g="QuotedIdentifier",y="Rbracket",b="Rparen",w="Comma",x="Colon",k="Rbrace",E="Number",_="Current",T="Expref",$="Pipe",j="Or",R="And",q="EQ",O="GT",F="LT",J="GTE",I="LTE",D="NE",C="Flatten",M="Star",P="Filter",B="Dot",A="Not",W="Lbrace",N="Lbracket",dt="Lparen",et="Literal",yt={".":B,"*":M,",":w,":":x,"{":W,"}":k,"]":y,"(":dt,")":b,"@":_},bt={"<":!0,">":!0,"=":!0,"!":!0},jt={" ":!0," ":!0,"\n":!0};function gt(L){return L>="0"&&L<="9"||L==="-"}function Y(){}Y.prototype={tokenize:function(L){var U,G,pt,mt,Ot=[];for(this._current=0;this._current<L.length;)if((mt=L[this._current])>="a"&&mt<="z"||mt>="A"&&mt<="Z"||mt==="_")U=this._current,G=this._consumeUnquotedIdentifier(L),Ot.push({type:m,value:G,start:U});else if(yt[L[this._current]]!==void 0)Ot.push({type:yt[L[this._current]],value:L[this._current],start:this._current}),this._current++;else if(gt(L[this._current]))pt=this._consumeNumber(L),Ot.push(pt);else if(L[this._current]==="[")pt=this._consumeLBracket(L),Ot.push(pt);else if(L[this._current]==='"')U=this._current,G=this._consumeQuotedIdentifier(L),Ot.push({type:g,value:G,start:U});else if(L[this._current]==="'")U=this._current,G=this._consumeRawStringLiteral(L),Ot.push({type:et,value:G,start:U});else if(L[this._current]==="`"){U=this._current;var Ct=this._consumeLiteral(L);Ot.push({type:et,value:Ct,start:U})}else if(bt[L[this._current]]!==void 0)Ot.push(this._consumeOperator(L));else if(jt[L[this._current]]!==void 0)this._current++;else if(L[this._current]==="&")U=this._current,this._current++,L[this._current]==="&"?(this._current++,Ot.push({type:R,value:"&&",start:U})):Ot.push({type:T,value:"&",start:U});else{if(L[this._current]!=="|"){var Vt=new Error("Unknown character:"+L[this._current]);throw Vt.name="LexerError",Vt}U=this._current,this._current++,L[this._current]==="|"?(this._current++,Ot.push({type:j,value:"||",start:U})):Ot.push({type:$,value:"|",start:U})}return Ot},_consumeUnquotedIdentifier:function(L){var U,G=this._current;for(this._current++;this._current<L.length&&((U=L[this._current])>="a"&&U<="z"||U>="A"&&U<="Z"||U>="0"&&U<="9"||U==="_");)this._current++;return L.slice(G,this._current)},_consumeQuotedIdentifier:function(L){var U=this._current;this._current++;for(var G=L.length;L[this._current]!=='"'&&this._current<G;){var pt=this._current;L[pt]!=="\\"||L[pt+1]!=="\\"&&L[pt+1]!=='"'?pt++:pt+=2,this._current=pt}return this._current++,JSON.parse(L.slice(U,this._current))},_consumeRawStringLiteral:function(L){var U=this._current;this._current++;for(var G=L.length;L[this._current]!=="'"&&this._current<G;){var pt=this._current;L[pt]!=="\\"||L[pt+1]!=="\\"&&L[pt+1]!=="'"?pt++:pt+=2,this._current=pt}return this._current++,L.slice(U+1,this._current-1).replace("\\'","'")},_consumeNumber:function(L){var U=this._current;this._current++;for(var G=L.length;gt(L[this._current])&&this._current<G;)this._current++;var pt=parseInt(L.slice(U,this._current));return{type:E,value:pt,start:U}},_consumeLBracket:function(L){var U=this._current;return this._current++,L[this._current]==="?"?(this._current++,{type:P,value:"[?",start:U}):L[this._current]==="]"?(this._current++,{type:C,value:"[]",start:U}):{type:N,value:"[",start:U}},_consumeOperator:function(L){var U=this._current,G=L[U];return this._current++,G==="!"?L[this._current]==="="?(this._current++,{type:D,value:"!=",start:U}):{type:A,value:"!",start:U}:G==="<"?L[this._current]==="="?(this._current++,{type:I,value:"<=",start:U}):{type:F,value:"<",start:U}:G===">"?L[this._current]==="="?(this._current++,{type:J,value:">=",start:U}):{type:O,value:">",start:U}:G==="="&&L[this._current]==="="?(this._current++,{type:q,value:"==",start:U}):void 0},_consumeLiteral:function(L){this._current++;for(var U,G=this._current,pt=L.length;L[this._current]!=="`"&&this._current<pt;){var mt=this._current;L[mt]!=="\\"||L[mt+1]!=="\\"&&L[mt+1]!=="`"?mt++:mt+=2,this._current=mt}var Ot=i(L.slice(G,this._current));return Ot=Ot.replace("\\`","`"),U=this._looksLikeJSON(Ot)?JSON.parse(Ot):JSON.parse('"'+Ot+'"'),this._current++,U},_looksLikeJSON:function(L){if(L==="")return!1;if('[{"'.indexOf(L[0])>=0||["true","false","null"].indexOf(L)>=0)return!0;if(!("-0123456789".indexOf(L[0])>=0))return!1;try{return JSON.parse(L),!0}catch{return!1}}};var K={};function rt(){}function X(L){this.runtime=L}function _t(L){this._interpreter=L,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}]}}}K[v]=0,K[m]=0,K[g]=0,K[y]=0,K[b]=0,K[w]=0,K[k]=0,K[E]=0,K[_]=0,K[T]=0,K[$]=1,K[j]=2,K[R]=3,K[q]=5,K[O]=5,K[F]=5,K[J]=5,K[I]=5,K[D]=5,K[C]=9,K[M]=20,K[P]=21,K[B]=40,K[A]=45,K[W]=50,K[N]=55,K[dt]=60,rt.prototype={parse:function(L){this._loadTokens(L),this.index=0;var U=this.expression(0);if(this._lookahead(0)!==v){var G=this._lookaheadToken(0),pt=new Error("Unexpected token type: "+G.type+", value: "+G.value);throw pt.name="ParserError",pt}return U},_loadTokens:function(L){var U=new Y().tokenize(L);U.push({type:v,value:"",start:L.length}),this.tokens=U},expression:function(L){var U=this._lookaheadToken(0);this._advance();for(var G=this.nud(U),pt=this._lookahead(0);L<K[pt];)this._advance(),G=this.led(pt,G),pt=this._lookahead(0);return G},_lookahead:function(L){return this.tokens[this.index+L].type},_lookaheadToken:function(L){return this.tokens[this.index+L]},_advance:function(){this.index++},nud:function(L){var U,G;switch(L.type){case et:return{type:"Literal",value:L.value};case m:return{type:"Field",name:L.value};case g:var pt={type:"Field",name:L.value};if(this._lookahead(0)===dt)throw new Error("Quoted identifier not allowed for function names.");return pt;case A:return{type:"NotExpression",children:[U=this.expression(K.Not)]};case M:return U=null,{type:"ValueProjection",children:[{type:"Identity"},U=this._lookahead(0)===y?{type:"Identity"}:this._parseProjectionRHS(K.Star)]};case P:return this.led(L.type,{type:"Identity"});case W:return this._parseMultiselectHash();case C:return{type:"Projection",children:[{type:C,children:[{type:"Identity"}]},U=this._parseProjectionRHS(K.Flatten)]};case N:return this._lookahead(0)===E||this._lookahead(0)===x?(U=this._parseIndexExpression(),this._projectIfSlice({type:"Identity"},U)):this._lookahead(0)===M&&this._lookahead(1)===y?(this._advance(),this._advance(),{type:"Projection",children:[{type:"Identity"},U=this._parseProjectionRHS(K.Star)]}):this._parseMultiselectList();case _:return{type:_};case T:return{type:"ExpressionReference",children:[G=this.expression(K.Expref)]};case dt:for(var mt=[];this._lookahead(0)!==b;)this._lookahead(0)===_?(G={type:_},this._advance()):G=this.expression(0),mt.push(G);return this._match(b),mt[0];default:this._errorToken(L)}},led:function(L,U){var G;switch(L){case B:var pt=K.Dot;return this._lookahead(0)!==M?{type:"Subexpression",children:[U,G=this._parseDotRHS(pt)]}:(this._advance(),{type:"ValueProjection",children:[U,G=this._parseProjectionRHS(pt)]});case $:return G=this.expression(K.Pipe),{type:$,children:[U,G]};case j:return{type:"OrExpression",children:[U,G=this.expression(K.Or)]};case R:return{type:"AndExpression",children:[U,G=this.expression(K.And)]};case dt:for(var mt,Ot=U.name,Ct=[];this._lookahead(0)!==b;)this._lookahead(0)===_?(mt={type:_},this._advance()):mt=this.expression(0),this._lookahead(0)===w&&this._match(w),Ct.push(mt);return this._match(b),{type:"Function",name:Ot,children:Ct};case P:var Vt=this.expression(0);return this._match(y),{type:"FilterProjection",children:[U,G=this._lookahead(0)===C?{type:"Identity"}:this._parseProjectionRHS(K.Filter),Vt]};case C:return{type:"Projection",children:[{type:C,children:[U]},this._parseProjectionRHS(K.Flatten)]};case q:case D:case O:case J:case F:case I:return this._parseComparator(U,L);case N:var Qt=this._lookaheadToken(0);return Qt.type===E||Qt.type===x?(G=this._parseIndexExpression(),this._projectIfSlice(U,G)):(this._match(M),this._match(y),{type:"Projection",children:[U,G=this._parseProjectionRHS(K.Star)]});default:this._errorToken(this._lookaheadToken(0))}},_match:function(L){if(this._lookahead(0)!==L){var U=this._lookaheadToken(0),G=new Error("Expected "+L+", got: "+U.type);throw G.name="ParserError",G}this._advance()},_errorToken:function(L){var U=new Error("Invalid token ("+L.type+'): "'+L.value+'"');throw U.name="ParserError",U},_parseIndexExpression:function(){if(this._lookahead(0)===x||this._lookahead(1)===x)return this._parseSliceExpression();var L={type:"Index",value:this._lookaheadToken(0).value};return this._advance(),this._match(y),L},_projectIfSlice:function(L,U){var G={type:"IndexExpression",children:[L,U]};return U.type==="Slice"?{type:"Projection",children:[G,this._parseProjectionRHS(K.Star)]}:G},_parseSliceExpression:function(){for(var L=[null,null,null],U=0,G=this._lookahead(0);G!==y&&U<3;){if(G===x)U++,this._advance();else{if(G!==E){var pt=this._lookahead(0),mt=new Error("Syntax error, unexpected token: "+pt.value+"("+pt.type+")");throw mt.name="Parsererror",mt}L[U]=this._lookaheadToken(0).value,this._advance()}G=this._lookahead(0)}return this._match(y),{type:"Slice",children:L}},_parseComparator:function(L,U){return{type:"Comparator",name:U,children:[L,this.expression(K[U])]}},_parseDotRHS:function(L){var U=this._lookahead(0);return[m,g,M].indexOf(U)>=0?this.expression(L):U===N?(this._match(N),this._parseMultiselectList()):U===W?(this._match(W),this._parseMultiselectHash()):void 0},_parseProjectionRHS:function(L){var U;if(K[this._lookahead(0)]<10)U={type:"Identity"};else if(this._lookahead(0)===N)U=this.expression(L);else if(this._lookahead(0)===P)U=this.expression(L);else{if(this._lookahead(0)!==B){var G=this._lookaheadToken(0),pt=new Error("Sytanx error, unexpected token: "+G.value+"("+G.type+")");throw pt.name="ParserError",pt}this._match(B),U=this._parseDotRHS(L)}return U},_parseMultiselectList:function(){for(var L=[];this._lookahead(0)!==y;){var U=this.expression(0);if(L.push(U),this._lookahead(0)===w&&(this._match(w),this._lookahead(0)===y))throw new Error("Unexpected token Rbracket")}return this._match(y),{type:"MultiSelectList",children:L}},_parseMultiselectHash:function(){for(var L,U,G,pt=[],mt=[m,g];;){if(L=this._lookaheadToken(0),mt.indexOf(L.type)<0)throw new Error("Expecting an identifier token, got: "+L.type);if(U=L.value,this._advance(),this._match(x),G={type:"KeyValuePair",name:U,value:this.expression(0)},pt.push(G),this._lookahead(0)===w)this._match(w);else if(this._lookahead(0)===k){this._match(k);break}}return{type:"MultiSelectHash",children:pt}}},X.prototype={search:function(L,U){return this.visit(L,U)},visit:function(L,U){var G,pt,mt,Ot,Ct,Vt,Qt,te,Kt;switch(L.type){case"Field":return U!==null&&n(U)?(Vt=U[L.name])===void 0?null:Vt:null;case"Subexpression":for(mt=this.visit(L.children[0],U),Kt=1;Kt<L.children.length;Kt++)if((mt=this.visit(L.children[1],mt))===null)return null;return mt;case"IndexExpression":return Qt=this.visit(L.children[0],U),this.visit(L.children[1],Qt);case"Index":if(!t(U))return null;var ue=L.value;return ue<0&&(ue=U.length+ue),(mt=U[ue])===void 0&&(mt=null),mt;case"Slice":if(!t(U))return null;var Me=L.children.slice(0),en=this.computeSliceParams(U.length,Me),le=en[0],xn=en[1],Ie=en[2];if(mt=[],Ie>0)for(Kt=le;Kt<xn;Kt+=Ie)mt.push(U[Kt]);else for(Kt=le;Kt>xn;Kt+=Ie)mt.push(U[Kt]);return mt;case"Projection":var mn=this.visit(L.children[0],U);if(!t(mn))return null;for(te=[],Kt=0;Kt<mn.length;Kt++)(pt=this.visit(L.children[1],mn[Kt]))!==null&&te.push(pt);return te;case"ValueProjection":if(!n(mn=this.visit(L.children[0],U)))return null;te=[];var Ye=function(Pr){for(var Et=Object.keys(Pr),ie=[],Be=0;Be<Et.length;Be++)ie.push(Pr[Et[Be]]);return ie}(mn);for(Kt=0;Kt<Ye.length;Kt++)(pt=this.visit(L.children[1],Ye[Kt]))!==null&&te.push(pt);return te;case"FilterProjection":if(!t(mn=this.visit(L.children[0],U)))return null;var Ke=[],qn=[];for(Kt=0;Kt<mn.length;Kt++)o(G=this.visit(L.children[2],mn[Kt]))||Ke.push(mn[Kt]);for(var In=0;In<Ke.length;In++)(pt=this.visit(L.children[1],Ke[In]))!==null&&qn.push(pt);return qn;case"Comparator":switch(Ot=this.visit(L.children[0],U),Ct=this.visit(L.children[1],U),L.name){case q:mt=r(Ot,Ct);break;case D:mt=!r(Ot,Ct);break;case O:mt=Ot>Ct;break;case J:mt=Ot>=Ct;break;case F:mt=Ot<Ct;break;case I:mt=Ot<=Ct;break;default:throw new Error("Unknown comparator: "+L.name)}return mt;case C:var Xn=this.visit(L.children[0],U);if(!t(Xn))return null;var $n=[];for(Kt=0;Kt<Xn.length;Kt++)t(pt=Xn[Kt])?$n.push.apply($n,pt):$n.push(pt);return $n;case"Identity":return U;case"MultiSelectList":if(U===null)return null;for(te=[],Kt=0;Kt<L.children.length;Kt++)te.push(this.visit(L.children[Kt],U));return te;case"MultiSelectHash":if(U===null)return null;var En;for(te={},Kt=0;Kt<L.children.length;Kt++)te[(En=L.children[Kt]).name]=this.visit(En.value,U);return te;case"OrExpression":return o(G=this.visit(L.children[0],U))&&(G=this.visit(L.children[1],U)),G;case"AndExpression":return o(Ot=this.visit(L.children[0],U))===!0?Ot:this.visit(L.children[1],U);case"NotExpression":return o(Ot=this.visit(L.children[0],U));case"Literal":return L.value;case $:return Qt=this.visit(L.children[0],U),this.visit(L.children[1],Qt);case _:return U;case"Function":var Nn=[];for(Kt=0;Kt<L.children.length;Kt++)Nn.push(this.visit(L.children[Kt],U));return this.runtime.callFunction(L.name,Nn);case"ExpressionReference":var sr=L.children[0];return sr.jmespathType=T,sr;default:throw new Error("Unknown node type: "+L.type)}},computeSliceParams:function(L,U){var G=U[0],pt=U[1],mt=U[2],Ot=[null,null,null];if(mt===null)mt=1;else if(mt===0){var Ct=new Error("Invalid slice, step cannot be 0");throw Ct.name="RuntimeError",Ct}var Vt=mt<0;return G=G===null?Vt?L-1:0:this.capSliceRange(L,G,mt),pt=pt===null?Vt?-1:L:this.capSliceRange(L,pt,mt),Ot[0]=G,Ot[1]=pt,Ot[2]=mt,Ot},capSliceRange:function(L,U,G){return U<0?(U+=L)<0&&(U=G<0?-1:0):U>=L&&(U=G<0?L-1:L),U}},_t.prototype={callFunction:function(L,U){var G=this.functionTable[L];if(G===void 0)throw new Error("Unknown function: "+L+"()");return this._validateArgs(L,U,G._signature),G._func.call(this,U)},_validateArgs:function(L,U,G){var pt,mt,Ot,Ct;if(G[G.length-1].variadic){if(U.length<G.length)throw pt=G.length===1?" argument":" arguments",new Error("ArgumentError: "+L+"() takes at least"+G.length+pt+" but received "+U.length)}else if(U.length!==G.length)throw pt=G.length===1?" argument":" arguments",new Error("ArgumentError: "+L+"() takes "+G.length+pt+" but received "+U.length);for(var Vt=0;Vt<G.length;Vt++){Ct=!1,mt=G[Vt].types,Ot=this._getTypeName(U[Vt]);for(var Qt=0;Qt<mt.length;Qt++)if(this._typeMatches(Ot,mt[Qt],U[Vt])){Ct=!0;break}if(!Ct){var te=mt.map(function(Kt){return p[Kt]}).join(",");throw new Error("TypeError: "+L+"() expected argument "+(Vt+1)+" to be type "+te+" but received type "+p[Ot]+" instead.")}}},_typeMatches:function(L,U,G){if(U===s)return!0;if(U!==h&&U!==d&&U!==u)return L===U;if(U===u)return L===u;if(L===u){var pt;U===d?pt=a:U===h&&(pt=c);for(var mt=0;mt<G.length;mt++)if(!this._typeMatches(this._getTypeName(G[mt]),pt,G[mt]))return!1;return!0}},_getTypeName:function(L){switch(Object.prototype.toString.call(L)){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 L.jmespathType===T?f:l}},_functionStartsWith:function(L){return L[0].lastIndexOf(L[1])===0},_functionEndsWith:function(L){var U=L[0],G=L[1];return U.indexOf(G,U.length-G.length)!==-1},_functionReverse:function(L){if(this._getTypeName(L[0])===c){for(var U=L[0],G="",pt=U.length-1;pt>=0;pt--)G+=U[pt];return G}var mt=L[0].slice(0);return mt.reverse(),mt},_functionAbs:function(L){return Math.abs(L[0])},_functionCeil:function(L){return Math.ceil(L[0])},_functionAvg:function(L){for(var U=0,G=L[0],pt=0;pt<G.length;pt++)U+=G[pt];return U/G.length},_functionContains:function(L){return L[0].indexOf(L[1])>=0},_functionFloor:function(L){return Math.floor(L[0])},_functionLength:function(L){return n(L[0])?Object.keys(L[0]).length:L[0].length},_functionMap:function(L){for(var U=[],G=this._interpreter,pt=L[0],mt=L[1],Ot=0;Ot<mt.length;Ot++)U.push(G.visit(pt,mt[Ot]));return U},_functionMerge:function(L){for(var U={},G=0;G<L.length;G++){var pt=L[G];for(var mt in pt)U[mt]=pt[mt]}return U},_functionMax:function(L){if(L[0].length>0){if(this._getTypeName(L[0][0])===a)return Math.max.apply(Math,L[0]);for(var U=L[0],G=U[0],pt=1;pt<U.length;pt++)G.localeCompare(U[pt])<0&&(G=U[pt]);return G}return null},_functionMin:function(L){if(L[0].length>0){if(this._getTypeName(L[0][0])===a)return Math.min.apply(Math,L[0]);for(var U=L[0],G=U[0],pt=1;pt<U.length;pt++)U[pt].localeCompare(G)<0&&(G=U[pt]);return G}return null},_functionSum:function(L){for(var U=0,G=L[0],pt=0;pt<G.length;pt++)U+=G[pt];return U},_functionType:function(L){switch(this._getTypeName(L[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(L){return Object.keys(L[0])},_functionValues:function(L){for(var U=L[0],G=Object.keys(U),pt=[],mt=0;mt<G.length;mt++)pt.push(U[G[mt]]);return pt},_functionJoin:function(L){var U=L[0];return L[1].join(U)},_functionToArray:function(L){return this._getTypeName(L[0])===u?L[0]:[L[0]]},_functionToString:function(L){return this._getTypeName(L[0])===c?L[0]:JSON.stringify(L[0])},_functionToNumber:function(L){var U,G=this._getTypeName(L[0]);return G===a?L[0]:G!==c||(U=+L[0],isNaN(U))?null:U},_functionNotNull:function(L){for(var U=0;U<L.length;U++)if(this._getTypeName(L[U])!==7)return L[U];return null},_functionSort:function(L){var U=L[0].slice(0);return U.sort(),U},_functionSortBy:function(L){var U=L[0].slice(0);if(U.length===0)return U;var G=this._interpreter,pt=L[1],mt=this._getTypeName(G.visit(pt,U[0]));if([a,c].indexOf(mt)<0)throw new Error("TypeError");for(var Ot=this,Ct=[],Vt=0;Vt<U.length;Vt++)Ct.push([Vt,U[Vt]]);Ct.sort(function(te,Kt){var ue=G.visit(pt,te[1]),Me=G.visit(pt,Kt[1]);if(Ot._getTypeName(ue)!==mt)throw new Error("TypeError: expected "+mt+", received "+Ot._getTypeName(ue));if(Ot._getTypeName(Me)!==mt)throw new Error("TypeError: expected "+mt+", received "+Ot._getTypeName(Me));return ue>Me?1:ue<Me?-1:te[0]-Kt[0]});for(var Qt=0;Qt<Ct.length;Qt++)U[Qt]=Ct[Qt][1];return U},_functionMaxBy:function(L){for(var U,G,pt=L[1],mt=L[0],Ot=this.createKeyFunction(pt,[a,c]),Ct=-1/0,Vt=0;Vt<mt.length;Vt++)(G=Ot(mt[Vt]))>Ct&&(Ct=G,U=mt[Vt]);return U},_functionMinBy:function(L){for(var U,G,pt=L[1],mt=L[0],Ot=this.createKeyFunction(pt,[a,c]),Ct=1/0,Vt=0;Vt<mt.length;Vt++)(G=Ot(mt[Vt]))<Ct&&(Ct=G,U=mt[Vt]);return U},createKeyFunction:function(L,U){var G=this,pt=this._interpreter;return function(mt){var Ot=pt.visit(L,mt);if(U.indexOf(G._getTypeName(Ot))<0){var Ct="TypeError: expected one of "+U+", received "+G._getTypeName(Ot);throw new Error(Ct)}return Ot}}},e.tokenize=function(L){return new Y().tokenize(L)},e.compile=function(L){return new rt().parse(L)},e.search=function(L,U){var G=new rt,pt=new _t,mt=new X(pt);pt._interpreter=mt;var Ot=G.parse(U);return mt.search(Ot,L)},e.strictDeepEqual=r})(qH);s2(qH);/*!
|
|
127
|
+
* vanilla-picker v2.12.2
|
|
128
|
+
* https://vanilla-picker.js.org
|
|
129
|
+
*
|
|
130
|
+
* Copyright 2017-2023 Andreas Borgen (https://github.com/Sphinxxxx), Adam Brooks (https://github.com/dissimulate)
|
|
131
|
+
* Released under the ISC license.
|
|
132
|
+
*/var I_=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},N_=function(){function e(t,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),nm=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(n,r){var o=[],i=!0,a=!1,s=void 0;try{for(var c,u=n[Symbol.iterator]();!(i=(c=u.next()).done)&&(o.push(c.value),!r||o.length!==r);i=!0);}catch(l){a=!0,s=l}finally{try{!i&&u.return&&u.return()}finally{if(a)throw s}}return o}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};String.prototype.startsWith=String.prototype.startsWith||function(e){return this.indexOf(e)===0},String.prototype.padStart=String.prototype.padStart||function(e,t){for(var n=this;n.length<e;)n=t+n;return n};var e2t={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 _7(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return(t>0?e.toFixed(t).replace(/0+$/,"").replace(/\.$/,""):e.toString())||"0"}var n2t=function(){function e(t,n,r,o){I_(this,e);var i=this;if(t!==void 0)if(Array.isArray(t))this.rgba=t;else if(r===void 0){var a=t&&""+t;a&&function(s){if(s.startsWith("hsl")){var c=s.match(/([\-\d\.e]+)/g).map(Number),u=nm(c,4),l=u[0],f=u[1],d=u[2],h=u[3];h===void 0&&(h=1),l/=360,f/=100,d/=100,i.hsla=[l,f,d,h]}else if(s.startsWith("rgb")){var p=s.match(/([\-\d\.e]+)/g).map(Number),v=nm(p,4),m=v[0],g=v[1],y=v[2],b=v[3];b===void 0&&(b=1),i.rgba=[m,g,y,b]}else s.startsWith("#")?i.rgba=e.hexToRgb(s):i.rgba=e.nameToRgb(s)||e.hexToRgb(s)}(a.toLowerCase())}else this.rgba=[t,n,r,o===void 0?1:o]}return N_(e,[{key:"printRGB",value:function(t){var n=(t?this.rgba:this.rgba.slice(0,3)).map(function(r,o){return _7(r,o===3?3:0)});return t?"rgba("+n+")":"rgb("+n+")"}},{key:"printHSL",value:function(t){var n=[360,100,100,1],r=["","%","%",""],o=(t?this.hsla:this.hsla.slice(0,3)).map(function(i,a){return _7(i*n[a],a===3?3:1)+r[a]});return t?"hsla("+o+")":"hsl("+o+")"}},{key:"printHex",value:function(t){var n=this.hex;return t?n:n.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(t){t.length===3&&(t[3]=1),this._rgba=t,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(t){t.length===3&&(t[3]=1),this._hsla=t,this._rgba=null}},{key:"hslString",get:function(){return this.printHSL()}},{key:"hslaString",get:function(){return this.printHSL(!0)}},{key:"hex",get:function(){var t=this.rgba.map(function(n,r){return r<3?n.toString(16):Math.round(255*n).toString(16)});return"#"+t.map(function(n){return n.padStart(2,"0")}).join("")},set:function(t){this.rgba=e.hexToRgb(t)}}],[{key:"hexToRgb",value:function(t){var n=(t.startsWith("#")?t.slice(1):t).replace(/^(\w{3})$/,"$1F").replace(/^(\w)(\w)(\w)(\w)$/,"$1$1$2$2$3$3$4$4").replace(/^(\w{6})$/,"$1FF");if(!n.match(/^([0-9a-fA-F]{8})$/))throw new Error("Unknown hex color; "+t);var r=n.match(/^(\w\w)(\w\w)(\w\w)(\w\w)$/).slice(1).map(function(o){return parseInt(o,16)});return r[3]=r[3]/255,r}},{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=e2t[n];return r===void 0?r:e.hexToRgb(r.replace(/\-/g,"00").padStart(6,"f"))}},{key:"rgbToHsl",value:function(t){var n=nm(t,4),r=n[0],o=n[1],i=n[2],a=n[3];r/=255,o/=255,i/=255;var s=Math.max(r,o,i),c=Math.min(r,o,i),u=void 0,l=void 0,f=(s+c)/2;if(s===c)u=l=0;else{var d=s-c;switch(l=f>.5?d/(2-s-c):d/(s+c),s){case r:u=(o-i)/d+(o<i?6:0);break;case o:u=(i-r)/d+2;break;case i:u=(r-o)/d+4}u/=6}return[u,l,f,a]}},{key:"hslToRgb",value:function(t){var n=nm(t,4),r=n[0],o=n[1],i=n[2],a=n[3],s=void 0,c=void 0,u=void 0;if(o===0)s=c=u=i;else{var l=function(p,v,m){return m<0&&(m+=1),m>1&&(m-=1),m<.16666666666666666?p+6*(v-p)*m:m<.5?v:m<.6666666666666666?p+(v-p)*(.6666666666666666-m)*6:p},f=i<.5?i*(1+o):i+o-i*o,d=2*i-f;s=l(d,f,r+1/3),c=l(d,f,r),u=l(d,f,r-1/3)}var h=[255*s,255*c,255*u].map(Math.round);return h[3]=a,h}}]),e}(),r2t=function(){function e(){I_(this,e),this._events=[]}return N_(e,[{key:"add",value:function(t,n,r){t.addEventListener(n,r,!1),this._events.push({target:t,type:n,handler:r})}},{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(t,n,r){t.removeEventListener(n,r,!1)}}]),e}();function ib(e,t,n){var r=!1;function o(c,u,l){return Math.max(u,Math.min(c,l))}function i(c,u,l){if(l&&(r=!0),r){c.preventDefault();var f=t.getBoundingClientRect(),d=f.width,h=f.height,p=u.clientX,v=u.clientY,m=o(p-f.left,0,d),g=o(v-f.top,0,h);n(m/d,g/h)}}function a(c,u){(c.buttons===void 0?c.which:c.buttons)===1?i(c,c,u):r=!1}function s(c,u){c.touches.length===1?i(c,c.touches[0],u):r=!1}e.add(t,"mousedown",function(c){a(c,!0)}),e.add(t,"touchstart",function(c){s(c,!0)}),e.add(window,"mousemove",a),e.add(t,"touchmove",s),e.add(window,"mouseup",function(c){r=!1}),e.add(t,"touchend",function(c){r=!1}),e.add(t,"touchcancel",function(c){r=!1})}var HH="keydown",rm="mousedown",ab="focusin";function Ba(e,t){return(t||document).querySelector(e)}function VH(e){e.preventDefault(),e.stopPropagation()}function sb(e,t,n,r,o){e.add(t,HH,function(i){n.indexOf(i.key)>=0&&(o&&VH(i),r(i))})}var WH=function(){function e(t){I_(this,e),this.settings={popup:"right",layout:"default",alpha:!0,editor:!0,editorFormat:"hex",cancelButton:!1,defaultColor:"#0cf"},this._events=new r2t,this.onChange=null,this.onDone=null,this.onOpen=null,this.onClose=null,this.setOptions(t)}return N_(e,[{key:"setOptions",value:function(t){var n=this;if(t){var r=this.settings;if(t instanceof HTMLElement)r.parent=t;else{r.parent&&t.parent&&r.parent!==t.parent&&(this._events.remove(r.parent),this._popupInited=!1),function(s,c,u){for(var l in s)u&&u.indexOf(l)>=0||(c[l]=s[l])}(t,r),t.onChange&&(this.onChange=t.onChange),t.onDone&&(this.onDone=t.onDone),t.onOpen&&(this.onOpen=t.onOpen),t.onClose&&(this.onClose=t.onClose);var o=t.color||t.colour;o&&this._setColor(o)}var i=r.parent;if(i&&r.popup&&!this._popupInited){var a=function(s){return n.openHandler(s)};this._events.add(i,"click",a),sb(this._events,i,[" ","Spacebar","Enter"],a),this._popupInited=!0}else t.parent&&!r.popup&&this.show()}}},{key:"openHandler",value:function(t){if(this.show()){t&&t.preventDefault(),this.settings.parent.style.pointerEvents="none";var n=t&&t.type===HH?this._domEdit:this.domElement;setTimeout(function(){return n.focus()},100),this.onOpen&&this.onOpen(this.colour)}}},{key:"closeHandler",value:function(t){var n=t&&t.type,r=!1;if(t)if(n===rm||n===ab){var o=(this.__containedEvent||0)+100;t.timeStamp>o&&(r=!0)}else VH(t),r=!0;else r=!0;r&&this.hide()&&(this.settings.parent.style.pointerEvents="",n!==rm&&this.settings.parent.focus(),this.onClose&&this.onClose(this.colour))}},{key:"movePopup",value:function(t,n){this.closeHandler(),this.setOptions(t),n&&this.openHandler()}},{key:"setColor",value:function(t,n){this._setColor(t,{silent:n})}},{key:"_setColor",value:function(t,n){if(typeof t=="string"&&(t=t.trim()),t){n=n||{};var r=void 0;try{r=new n2t(t)}catch(i){if(n.failSilently)return;throw i}if(!this.settings.alpha){var o=r.hsla;o[3]=1,r.hsla=o}this.colour=this.color=r,this._setHSLA(null,null,null,null,n)}}},{key:"setColour",value:function(t,n){this.setColor(t,n)}},{key:"show",value:function(){if(!this.settings.parent)return!1;if(this.domElement){var t=this._toggleDOM(!0);return this._setPosition(),t}var n,r,o=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>',i=(n=o,(r=document.createElement("div")).innerHTML=n,r.firstElementChild);return this.domElement=i,this._domH=Ba(".picker_hue",i),this._domSL=Ba(".picker_sl",i),this._domA=Ba(".picker_alpha",i),this._domEdit=Ba(".picker_editor input",i),this._domSample=Ba(".picker_sample",i),this._domOkay=Ba(".picker_done button",i),this._domCancel=Ba(".picker_cancel button",i),i.classList.add("layout_"+this.settings.layout),this.settings.alpha||i.classList.add("no_alpha"),this.settings.editor||i.classList.add("no_editor"),this.settings.cancelButton||i.classList.add("no_cancel"),this._ifPopup(function(){return i.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 t=this,n=this,r=this.domElement,o=this._events;function i(c,u,l){o.add(c,u,l)}i(r,"click",function(c){return c.preventDefault()}),ib(o,this._domH,function(c,u){return n._setHSLA(c)}),ib(o,this._domSL,function(c,u){return n._setHSLA(null,c,1-u)}),this.settings.alpha&&ib(o,this._domA,function(c,u){return n._setHSLA(null,null,null,1-u)});var a=this._domEdit;i(a,"input",function(c){n._setColor(this.value,{fromEditor:!0,failSilently:!0})}),i(a,"focus",function(c){var u=this;u.selectionStart===u.selectionEnd&&u.select()}),this._ifPopup(function(){var c=function(l){return t.closeHandler(l)};i(window,rm,c),i(window,ab,c),sb(o,r,["Esc","Escape"],c);var u=function(l){t.__containedEvent=l.timeStamp};i(r,rm,u),i(r,ab,u),i(t._domCancel,"click",c)});var s=function(c){t._ifPopup(function(){return t.closeHandler(c)}),t.onDone&&t.onDone(t.colour)};i(this._domOkay,"click",s),sb(o,r,["Enter"],s)}},{key:"_setPosition",value:function(){var t=this.settings.parent,n=this.domElement;t!==n.parentNode&&t.appendChild(n),this._ifPopup(function(r){getComputedStyle(t).position==="static"&&(t.style.position="relative");var o=r===!0?"popup_right":"popup_"+r;["popup_top","popup_bottom","popup_left","popup_right"].forEach(function(i){i===o?n.classList.add(i):n.classList.remove(i)}),n.classList.add(o)})}},{key:"_setHSLA",value:function(t,n,r,o,i){i=i||{};var a=this.colour,s=a.hsla;[t,n,r,o].forEach(function(c,u){(c||c===0)&&(s[u]=c)}),a.hsla=s,this._updateUI(i),this.onChange&&!i.silent&&this.onChange(a)}},{key:"_updateUI",value:function(t){if(this.domElement){t=t||{};var n=this.colour,r=n.hsla,o="hsl("+360*r[0]+", 100%, 50%)",i=n.hslString,a=n.hslaString,s=this._domH,c=this._domSL,u=this._domA,l=Ba(".picker_selector",s),f=Ba(".picker_selector",c),d=Ba(".picker_selector",u);b(0,l,r[0]),this._domSL.style.backgroundColor=this._domH.style.color=o,b(0,f,r[1]),w(0,f,1-r[2]),c.style.color=i,w(0,d,1-r[3]);var h=i,p=h.replace("hsl","hsla").replace(")",", 0)"),v="linear-gradient("+[h,p]+")";if(this._domA.style.background=v+`, linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0 / 2em 2em,
|
|
133
|
+
linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em / 2em 2em`,!t.fromEditor){var m=this.settings.editorFormat,g=this.settings.alpha,y=void 0;switch(m){case"rgb":y=n.printRGB(g);break;case"hsl":y=n.printHSL(g);break;default:y=n.printHex(g)}this._domEdit.value=y}this._domSample.style.color=a}function b(x,k,E){k.style.left=100*E+"%"}function w(x,k,E){k.style.top=100*E+"%"}}},{key:"_ifPopup",value:function(t,n){this.settings.parent&&this.settings.popup?t&&t(this.settings.popup):n&&n()}},{key:"_toggleDOM",value:function(t){var n=this.domElement;if(!n)return!1;var r=t?"":"none",o=n.style.display!==r;return o&&(n.style.display=r),o}}]),e}(),cb=document.createElement("style");cb.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(cb),WH.StyleElement=cb;var o2t=Object.freeze({__proto__:null,default:WH}),i2t=typeof global=="object"&&global&&global.Object===Object&&global;const UH=i2t;var a2t=typeof self=="object"&&self&&self.Object===Object&&self,s2t=UH||a2t||Function("return this")();const ms=s2t;var c2t=ms.Symbol;const fs=c2t;var KH=Object.prototype,u2t=KH.hasOwnProperty,l2t=KH.toString,Ed=fs?fs.toStringTag:void 0;function f2t(e){var t=u2t.call(e,Ed),n=e[Ed];try{e[Ed]=void 0;var r=!0}catch{}var o=l2t.call(e);return r&&(t?e[Ed]=n:delete e[Ed]),o}var d2t=Object.prototype,h2t=d2t.toString;function p2t(e){return h2t.call(e)}var v2t="[object Null]",m2t="[object Undefined]",S7=fs?fs.toStringTag:void 0;function pl(e){return e==null?e===void 0?m2t:v2t:S7&&S7 in Object(e)?f2t(e):p2t(e)}function ds(e){return e!=null&&typeof e=="object"}var g2t="[object Symbol]";function D_(e){return typeof e=="symbol"||ds(e)&&pl(e)==g2t}function y2t(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var b2t=Array.isArray;const Yi=b2t;var w2t=1/0,$7=fs?fs.prototype:void 0,C7=$7?$7.toString:void 0;function JH(e){if(typeof e=="string")return e;if(Yi(e))return y2t(e,JH)+"";if(D_(e))return C7?C7.call(e):"";var t=e+"";return t=="0"&&1/e==-w2t?"-0":t}function gs(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function L_(e){return e}var x2t="[object AsyncFunction]",k2t="[object Function]",j2t="[object GeneratorFunction]",_2t="[object Proxy]";function z_(e){if(!gs(e))return!1;var t=pl(e);return t==k2t||t==j2t||t==x2t||t==_2t}var S2t=ms["__core-js_shared__"];const ub=S2t;var E7=function(){var e=/[^.]+$/.exec(ub&&ub.keys&&ub.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function $2t(e){return!!E7&&E7 in e}var C2t=Function.prototype,E2t=C2t.toString;function vl(e){if(e!=null){try{return E2t.call(e)}catch{}try{return e+""}catch{}}return""}var O2t=/[\\^$.*+?()[\]{}|]/g,M2t=/^\[object .+?Constructor\]$/,A2t=Function.prototype,P2t=Object.prototype,T2t=A2t.toString,R2t=P2t.hasOwnProperty,I2t=RegExp("^"+T2t.call(R2t).replace(O2t,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function N2t(e){if(!gs(e)||$2t(e))return!1;var t=z_(e)?I2t:M2t;return t.test(vl(e))}function D2t(e,t){return e==null?void 0:e[t]}function ml(e,t){var n=D2t(e,t);return N2t(n)?n:void 0}var L2t=ml(ms,"WeakMap");const Jx=L2t;var O7=Object.create,z2t=function(){function e(){}return function(t){if(!gs(t))return{};if(O7)return O7(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const B2t=z2t;function F2t(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)}function GH(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var q2t=800,H2t=16,V2t=Date.now;function W2t(e){var t=0,n=0;return function(){var r=V2t(),o=H2t-(r-n);if(n=r,o>0){if(++t>=q2t)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function U2t(e){return function(){return e}}var K2t=function(){try{var e=ml(Object,"defineProperty");return e({},"",{}),e}catch{}}();const e0=K2t;var J2t=e0?function(e,t){return e0(e,"toString",{configurable:!0,enumerable:!1,value:U2t(t),writable:!0})}:L_;const G2t=J2t;var Q2t=W2t(G2t);const Y2t=Q2t;function X2t(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var Z2t=9007199254740991,tjt=/^(?:0|[1-9]\d*)$/;function B_(e,t){var n=typeof e;return t=t??Z2t,!!t&&(n=="number"||n!="symbol"&&tjt.test(e))&&e>-1&&e%1==0&&e<t}function m1(e,t,n){t=="__proto__"&&e0?e0(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Np(e,t){return e===t||e!==e&&t!==t}var ejt=Object.prototype,njt=ejt.hasOwnProperty;function QH(e,t,n){var r=e[t];(!(njt.call(e,t)&&Np(r,n))||n===void 0&&!(t in e))&&m1(e,t,n)}function ad(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;c===void 0&&(c=e[s]),o?m1(n,s,c):QH(n,s,c)}return n}var M7=Math.max;function rjt(e,t,n){return t=M7(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=M7(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),F2t(e,this,s)}}function ojt(e,t){return Y2t(rjt(e,t,L_),e+"")}var ijt=9007199254740991;function F_(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ijt}function g1(e){return e!=null&&F_(e.length)&&!z_(e)}function ajt(e,t,n){if(!gs(n))return!1;var r=typeof t;return(r=="number"?g1(n)&&B_(t,n.length):r=="string"&&t in n)?Np(n[t],e):!1}function YH(e){return ojt(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&&typeof i=="function"?(o--,i):void 0,a&&ajt(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 sjt=Object.prototype;function q_(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||sjt;return e===n}function cjt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var ujt="[object Arguments]";function A7(e){return ds(e)&&pl(e)==ujt}var XH=Object.prototype,ljt=XH.hasOwnProperty,fjt=XH.propertyIsEnumerable,djt=A7(function(){return arguments}())?A7:function(e){return ds(e)&&ljt.call(e,"callee")&&!fjt.call(e,"callee")};const n0=djt;function hjt(){return!1}var ZH=typeof exports=="object"&&exports&&!exports.nodeType&&exports,P7=ZH&&typeof module=="object"&&module&&!module.nodeType&&module,pjt=P7&&P7.exports===ZH,T7=pjt?ms.Buffer:void 0,vjt=T7?T7.isBuffer:void 0,mjt=vjt||hjt;const op=mjt;var gjt="[object Arguments]",yjt="[object Array]",bjt="[object Boolean]",wjt="[object Date]",xjt="[object Error]",kjt="[object Function]",jjt="[object Map]",_jt="[object Number]",Sjt="[object Object]",$jt="[object RegExp]",Cjt="[object Set]",Ejt="[object String]",Ojt="[object WeakMap]",Mjt="[object ArrayBuffer]",Ajt="[object DataView]",Pjt="[object Float32Array]",Tjt="[object Float64Array]",Rjt="[object Int8Array]",Ijt="[object Int16Array]",Njt="[object Int32Array]",Djt="[object Uint8Array]",Ljt="[object Uint8ClampedArray]",zjt="[object Uint16Array]",Bjt="[object Uint32Array]",gr={};gr[Pjt]=gr[Tjt]=gr[Rjt]=gr[Ijt]=gr[Njt]=gr[Djt]=gr[Ljt]=gr[zjt]=gr[Bjt]=!0;gr[gjt]=gr[yjt]=gr[Mjt]=gr[bjt]=gr[Ajt]=gr[wjt]=gr[xjt]=gr[kjt]=gr[jjt]=gr[_jt]=gr[Sjt]=gr[$jt]=gr[Cjt]=gr[Ejt]=gr[Ojt]=!1;function Fjt(e){return ds(e)&&F_(e.length)&&!!gr[pl(e)]}function H_(e){return function(t){return e(t)}}var tV=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ph=tV&&typeof module=="object"&&module&&!module.nodeType&&module,qjt=ph&&ph.exports===tV,lb=qjt&&UH.process,Hjt=function(){try{var e=ph&&ph.require&&ph.require("util").types;return e||lb&&lb.binding&&lb.binding("util")}catch{}}();const Df=Hjt;var R7=Df&&Df.isTypedArray,Vjt=R7?H_(R7):Fjt;const V_=Vjt;var Wjt=Object.prototype,Ujt=Wjt.hasOwnProperty;function eV(e,t){var n=Yi(e),r=!n&&n0(e),o=!n&&!r&&op(e),i=!n&&!r&&!o&&V_(e),a=n||r||o||i,s=a?cjt(e.length,String):[],c=s.length;for(var u in e)(t||Ujt.call(e,u))&&!(a&&(u=="length"||o&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||B_(u,c)))&&s.push(u);return s}function nV(e,t){return function(n){return e(t(n))}}var Kjt=nV(Object.keys,Object);const Jjt=Kjt;var Gjt=Object.prototype,Qjt=Gjt.hasOwnProperty;function Yjt(e){if(!q_(e))return Jjt(e);var t=[];for(var n in Object(e))Qjt.call(e,n)&&n!="constructor"&&t.push(n);return t}function Dp(e){return g1(e)?eV(e):Yjt(e)}function Xjt(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Zjt=Object.prototype,t_t=Zjt.hasOwnProperty;function e_t(e){if(!gs(e))return Xjt(e);var t=q_(e),n=[];for(var r in e)r=="constructor"&&(t||!t_t.call(e,r))||n.push(r);return n}function sd(e){return g1(e)?eV(e,!0):e_t(e)}var n_t=YH(function(e,t,n,r){ad(t,sd(t),e,r)});const r_t=n_t;var o_t=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i_t=/^\w*$/;function W_(e,t){if(Yi(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||D_(e)?!0:i_t.test(e)||!o_t.test(e)||t!=null&&e in Object(t)}var a_t=ml(Object,"create");const ip=a_t;function s_t(){this.__data__=ip?ip(null):{},this.size=0}function c_t(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var u_t="__lodash_hash_undefined__",l_t=Object.prototype,f_t=l_t.hasOwnProperty;function d_t(e){var t=this.__data__;if(ip){var n=t[e];return n===u_t?void 0:n}return f_t.call(t,e)?t[e]:void 0}var h_t=Object.prototype,p_t=h_t.hasOwnProperty;function v_t(e){var t=this.__data__;return ip?t[e]!==void 0:p_t.call(t,e)}var m_t="__lodash_hash_undefined__";function g_t(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ip&&t===void 0?m_t:t,this}function al(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}al.prototype.clear=s_t;al.prototype.delete=c_t;al.prototype.get=d_t;al.prototype.has=v_t;al.prototype.set=g_t;function y_t(){this.__data__=[],this.size=0}function y1(e,t){for(var n=e.length;n--;)if(Np(e[n][0],t))return n;return-1}var b_t=Array.prototype,w_t=b_t.splice;function x_t(e){var t=this.__data__,n=y1(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():w_t.call(t,n,1),--this.size,!0}function k_t(e){var t=this.__data__,n=y1(t,e);return n<0?void 0:t[n][1]}function j_t(e){return y1(this.__data__,e)>-1}function __t(e,t){var n=this.__data__,r=y1(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function tc(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}tc.prototype.clear=y_t;tc.prototype.delete=x_t;tc.prototype.get=k_t;tc.prototype.has=j_t;tc.prototype.set=__t;var S_t=ml(ms,"Map");const ap=S_t;function $_t(){this.size=0,this.__data__={hash:new al,map:new(ap||tc),string:new al}}function C_t(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function b1(e,t){var n=e.__data__;return C_t(t)?n[typeof t=="string"?"string":"hash"]:n.map}function E_t(e){var t=b1(this,e).delete(e);return this.size-=t?1:0,t}function O_t(e){return b1(this,e).get(e)}function M_t(e){return b1(this,e).has(e)}function A_t(e,t){var n=b1(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function ec(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ec.prototype.clear=$_t;ec.prototype.delete=E_t;ec.prototype.get=O_t;ec.prototype.has=M_t;ec.prototype.set=A_t;var P_t="Expected a function";function U_(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(P_t);var n=function(){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(U_.Cache||ec),n}U_.Cache=ec;var T_t=500;function R_t(e){var t=U_(e,function(r){return n.size===T_t&&n.clear(),r}),n=t.cache;return t}var I_t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,N_t=/\\(\\)?/g,D_t=R_t(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(I_t,function(n,r,o,i){t.push(o?i.replace(N_t,"$1"):r||n)}),t});const L_t=D_t;function z_t(e){return e==null?"":JH(e)}function rV(e,t){return Yi(e)?e:W_(e,t)?[e]:L_t(z_t(e))}var B_t=1/0;function w1(e){if(typeof e=="string"||D_(e))return e;var t=e+"";return t=="0"&&1/e==-B_t?"-0":t}function oV(e,t){t=rV(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[w1(t[n++])];return n&&n==r?e:void 0}function F_t(e,t,n){var r=e==null?void 0:oV(e,t);return r===void 0?n:r}function iV(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var q_t=nV(Object.getPrototypeOf,Object);const K_=q_t;var H_t="[object Object]",V_t=Function.prototype,W_t=Object.prototype,aV=V_t.toString,U_t=W_t.hasOwnProperty,K_t=aV.call(Object);function sV(e){if(!ds(e)||pl(e)!=H_t)return!1;var t=K_(e);if(t===null)return!0;var n=U_t.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&aV.call(n)==K_t}function J_t(){this.__data__=new tc,this.size=0}function G_t(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Q_t(e){return this.__data__.get(e)}function Y_t(e){return this.__data__.has(e)}var X_t=200;function Z_t(e,t){var n=this.__data__;if(n instanceof tc){var r=n.__data__;if(!ap||r.length<X_t-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ec(r)}return n.set(e,t),this.size=n.size,this}function Sa(e){var t=this.__data__=new tc(e);this.size=t.size}Sa.prototype.clear=J_t;Sa.prototype.delete=G_t;Sa.prototype.get=Q_t;Sa.prototype.has=Y_t;Sa.prototype.set=Z_t;function tSt(e,t){return e&&ad(t,Dp(t),e)}function eSt(e,t){return e&&ad(t,sd(t),e)}var cV=typeof exports=="object"&&exports&&!exports.nodeType&&exports,I7=cV&&typeof module=="object"&&module&&!module.nodeType&&module,nSt=I7&&I7.exports===cV,N7=nSt?ms.Buffer:void 0,D7=N7?N7.allocUnsafe:void 0;function uV(e,t){if(t)return e.slice();var n=e.length,r=D7?D7(n):new e.constructor(n);return e.copy(r),r}function rSt(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function lV(){return[]}var oSt=Object.prototype,iSt=oSt.propertyIsEnumerable,L7=Object.getOwnPropertySymbols,aSt=L7?function(e){return e==null?[]:(e=Object(e),rSt(L7(e),function(t){return iSt.call(e,t)}))}:lV;const J_=aSt;function sSt(e,t){return ad(e,J_(e),t)}var cSt=Object.getOwnPropertySymbols,uSt=cSt?function(e){for(var t=[];e;)iV(t,J_(e)),e=K_(e);return t}:lV;const fV=uSt;function lSt(e,t){return ad(e,fV(e),t)}function dV(e,t,n){var r=t(e);return Yi(e)?r:iV(r,n(e))}function Gx(e){return dV(e,Dp,J_)}function fSt(e){return dV(e,sd,fV)}var dSt=ml(ms,"DataView");const Qx=dSt;var hSt=ml(ms,"Promise");const Yx=hSt;var pSt=ml(ms,"Set");const Xx=pSt;var z7="[object Map]",vSt="[object Object]",B7="[object Promise]",F7="[object Set]",q7="[object WeakMap]",H7="[object DataView]",mSt=vl(Qx),gSt=vl(ap),ySt=vl(Yx),bSt=vl(Xx),wSt=vl(Jx),wu=pl;(Qx&&wu(new Qx(new ArrayBuffer(1)))!=H7||ap&&wu(new ap)!=z7||Yx&&wu(Yx.resolve())!=B7||Xx&&wu(new Xx)!=F7||Jx&&wu(new Jx)!=q7)&&(wu=function(e){var t=pl(e),n=t==vSt?e.constructor:void 0,r=n?vl(n):"";if(r)switch(r){case mSt:return H7;case gSt:return z7;case ySt:return B7;case bSt:return F7;case wSt:return q7}return t});const sp=wu;var xSt=Object.prototype,kSt=xSt.hasOwnProperty;function jSt(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&kSt.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var _St=ms.Uint8Array;const r0=_St;function G_(e){var t=new e.constructor(e.byteLength);return new r0(t).set(new r0(e)),t}function SSt(e,t){var n=t?G_(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var $St=/\w*$/;function CSt(e){var t=new e.constructor(e.source,$St.exec(e));return t.lastIndex=e.lastIndex,t}var V7=fs?fs.prototype:void 0,W7=V7?V7.valueOf:void 0;function ESt(e){return W7?Object(W7.call(e)):{}}function hV(e,t){var n=t?G_(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var OSt="[object Boolean]",MSt="[object Date]",ASt="[object Map]",PSt="[object Number]",TSt="[object RegExp]",RSt="[object Set]",ISt="[object String]",NSt="[object Symbol]",DSt="[object ArrayBuffer]",LSt="[object DataView]",zSt="[object Float32Array]",BSt="[object Float64Array]",FSt="[object Int8Array]",qSt="[object Int16Array]",HSt="[object Int32Array]",VSt="[object Uint8Array]",WSt="[object Uint8ClampedArray]",USt="[object Uint16Array]",KSt="[object Uint32Array]";function JSt(e,t,n){var r=e.constructor;switch(t){case DSt:return G_(e);case OSt:case MSt:return new r(+e);case LSt:return SSt(e,n);case zSt:case BSt:case FSt:case qSt:case HSt:case VSt:case WSt:case USt:case KSt:return hV(e,n);case ASt:return new r;case PSt:case ISt:return new r(e);case TSt:return CSt(e);case RSt:return new r;case NSt:return ESt(e)}}function pV(e){return typeof e.constructor=="function"&&!q_(e)?B2t(K_(e)):{}}var GSt="[object Map]";function QSt(e){return ds(e)&&sp(e)==GSt}var U7=Df&&Df.isMap,YSt=U7?H_(U7):QSt;const XSt=YSt;var ZSt="[object Set]";function t$t(e){return ds(e)&&sp(e)==ZSt}var K7=Df&&Df.isSet,e$t=K7?H_(K7):t$t;const n$t=e$t;var r$t=1,o$t=2,i$t=4,vV="[object Arguments]",a$t="[object Array]",s$t="[object Boolean]",c$t="[object Date]",u$t="[object Error]",mV="[object Function]",l$t="[object GeneratorFunction]",f$t="[object Map]",d$t="[object Number]",gV="[object Object]",h$t="[object RegExp]",p$t="[object Set]",v$t="[object String]",m$t="[object Symbol]",g$t="[object WeakMap]",y$t="[object ArrayBuffer]",b$t="[object DataView]",w$t="[object Float32Array]",x$t="[object Float64Array]",k$t="[object Int8Array]",j$t="[object Int16Array]",_$t="[object Int32Array]",S$t="[object Uint8Array]",$$t="[object Uint8ClampedArray]",C$t="[object Uint16Array]",E$t="[object Uint32Array]",ur={};ur[vV]=ur[a$t]=ur[y$t]=ur[b$t]=ur[s$t]=ur[c$t]=ur[w$t]=ur[x$t]=ur[k$t]=ur[j$t]=ur[_$t]=ur[f$t]=ur[d$t]=ur[gV]=ur[h$t]=ur[p$t]=ur[v$t]=ur[m$t]=ur[S$t]=ur[$$t]=ur[C$t]=ur[E$t]=!0;ur[u$t]=ur[mV]=ur[g$t]=!1;function Im(e,t,n,r,o,i){var a,s=t&r$t,c=t&o$t,u=t&i$t;if(n&&(a=o?n(e,r,o,i):n(e)),a!==void 0)return a;if(!gs(e))return e;var l=Yi(e);if(l){if(a=jSt(e),!s)return GH(e,a)}else{var f=sp(e),d=f==mV||f==l$t;if(op(e))return uV(e,s);if(f==gV||f==vV||d&&!o){if(a=c||d?{}:pV(e),!s)return c?lSt(e,eSt(a,e)):sSt(e,tSt(a,e))}else{if(!ur[f])return o?e:{};a=JSt(e,f,s)}}i||(i=new Sa);var h=i.get(e);if(h)return h;i.set(e,a),n$t(e)?e.forEach(function(m){a.add(Im(m,t,n,m,e,i))}):XSt(e)&&e.forEach(function(m,g){a.set(g,Im(m,t,n,g,e,i))});var p=u?c?fSt:Gx:c?sd:Dp,v=l?void 0:p(e);return X2t(v||e,function(m,g){v&&(g=m,m=e[g]),QH(a,g,Im(m,t,n,g,e,i))}),a}var O$t=1,M$t=4;function A$t(e){return Im(e,O$t|M$t)}var P$t="__lodash_hash_undefined__";function T$t(e){return this.__data__.set(e,P$t),this}function R$t(e){return this.__data__.has(e)}function o0(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new ec;++t<n;)this.add(e[t])}o0.prototype.add=o0.prototype.push=T$t;o0.prototype.has=R$t;function I$t(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function N$t(e,t){return e.has(t)}var D$t=1,L$t=2;function yV(e,t,n,r,o,i){var a=n&D$t,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&L$t?new o0:void 0;for(i.set(e,t),i.set(t,e);++f<s;){var p=e[f],v=t[f];if(r)var m=a?r(v,p,f,t,e,i):r(p,v,f,e,t,i);if(m!==void 0){if(m)continue;d=!1;break}if(h){if(!I$t(t,function(g,y){if(!N$t(h,y)&&(p===g||o(p,g,n,r,i)))return h.push(y)})){d=!1;break}}else if(!(p===v||o(p,v,n,r,i))){d=!1;break}}return i.delete(e),i.delete(t),d}function z$t(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}function B$t(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var F$t=1,q$t=2,H$t="[object Boolean]",V$t="[object Date]",W$t="[object Error]",U$t="[object Map]",K$t="[object Number]",J$t="[object RegExp]",G$t="[object Set]",Q$t="[object String]",Y$t="[object Symbol]",X$t="[object ArrayBuffer]",Z$t="[object DataView]",J7=fs?fs.prototype:void 0,fb=J7?J7.valueOf:void 0;function tCt(e,t,n,r,o,i,a){switch(n){case Z$t:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case X$t:return!(e.byteLength!=t.byteLength||!i(new r0(e),new r0(t)));case H$t:case V$t:case K$t:return Np(+e,+t);case W$t:return e.name==t.name&&e.message==t.message;case J$t:case Q$t:return e==t+"";case U$t:var s=z$t;case G$t:var c=r&F$t;if(s||(s=B$t),e.size!=t.size&&!c)return!1;var u=a.get(e);if(u)return u==t;r|=q$t,a.set(e,t);var l=yV(s(e),s(t),r,o,i,a);return a.delete(e),l;case Y$t:if(fb)return fb.call(e)==fb.call(t)}return!1}var eCt=1,nCt=Object.prototype,rCt=nCt.hasOwnProperty;function oCt(e,t,n,r,o,i){var a=n&eCt,s=Gx(e),c=s.length,u=Gx(t),l=u.length;if(c!=l&&!a)return!1;for(var f=c;f--;){var d=s[f];if(!(a?d in t:rCt.call(t,d)))return!1}var h=i.get(e),p=i.get(t);if(h&&p)return h==t&&p==e;var v=!0;i.set(e,t),i.set(t,e);for(var m=a;++f<c;){d=s[f];var g=e[d],y=t[d];if(r)var b=a?r(y,g,d,t,e,i):r(g,y,d,e,t,i);if(!(b===void 0?g===y||o(g,y,n,r,i):b)){v=!1;break}m||(m=d=="constructor")}if(v&&!m){var w=e.constructor,x=t.constructor;w!=x&&"constructor"in e&&"constructor"in t&&!(typeof w=="function"&&w instanceof w&&typeof x=="function"&&x instanceof x)&&(v=!1)}return i.delete(e),i.delete(t),v}var iCt=1,G7="[object Arguments]",Q7="[object Array]",om="[object Object]",aCt=Object.prototype,Y7=aCt.hasOwnProperty;function sCt(e,t,n,r,o,i){var a=Yi(e),s=Yi(t),c=a?Q7:sp(e),u=s?Q7:sp(t);c=c==G7?om:c,u=u==G7?om:u;var l=c==om,f=u==om,d=c==u;if(d&&op(e)){if(!op(t))return!1;a=!0,l=!1}if(d&&!l)return i||(i=new Sa),a||V_(e)?yV(e,t,n,r,o,i):tCt(e,t,c,n,r,o,i);if(!(n&iCt)){var h=l&&Y7.call(e,"__wrapped__"),p=f&&Y7.call(t,"__wrapped__");if(h||p){var v=h?e.value():e,m=p?t.value():t;return i||(i=new Sa),o(v,m,n,r,i)}}return d?(i||(i=new Sa),oCt(e,t,n,r,o,i)):!1}function Q_(e,t,n,r,o){return e===t?!0:e==null||t==null||!ds(e)&&!ds(t)?e!==e&&t!==t:sCt(e,t,n,r,Q_,o)}var cCt=1,uCt=2;function lCt(e,t,n,r){var o=n.length,i=o,a=!r;if(e==null)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;){s=n[o];var c=s[0],u=e[c],l=s[1];if(a&&s[2]){if(u===void 0&&!(c in e))return!1}else{var f=new Sa;if(r)var d=r(u,l,c,e,t,f);if(!(d===void 0?Q_(l,u,cCt|uCt,r,f):d))return!1}}return!0}function bV(e){return e===e&&!gs(e)}function fCt(e){for(var t=Dp(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,bV(o)]}return t}function wV(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function dCt(e){var t=fCt(e);return t.length==1&&t[0][2]?wV(t[0][0],t[0][1]):function(n){return n===e||lCt(n,e,t)}}function hCt(e,t){return e!=null&&t in Object(e)}function pCt(e,t,n){t=rV(t,e);for(var r=-1,o=t.length,i=!1;++r<o;){var a=w1(t[r]);if(!(i=e!=null&&n(e,a)))break;e=e[a]}return i||++r!=o?i:(o=e==null?0:e.length,!!o&&F_(o)&&B_(a,o)&&(Yi(e)||n0(e)))}function vCt(e,t){return e!=null&&pCt(e,t,hCt)}var mCt=1,gCt=2;function yCt(e,t){return W_(e)&&bV(t)?wV(w1(e),t):function(n){var r=F_t(n,e);return r===void 0&&r===t?vCt(n,e):Q_(t,r,mCt|gCt)}}function bCt(e){return function(t){return t==null?void 0:t[e]}}function wCt(e){return function(t){return oV(t,e)}}function xCt(e){return W_(e)?bCt(w1(e)):wCt(e)}function kCt(e){return typeof e=="function"?e:e==null?L_:typeof e=="object"?Yi(e)?yCt(e[0],e[1]):dCt(e):xCt(e)}function jCt(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(n(i[c],c,i)===!1)break}return t}}var _Ct=jCt();const xV=_Ct;function SCt(e,t){return e&&xV(e,t,Dp)}function Zx(e,t,n){(n!==void 0&&!Np(e[t],n)||n===void 0&&!(t in e))&&m1(e,t,n)}function $Ct(e){return ds(e)&&g1(e)}function tk(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function CCt(e){return ad(e,sd(e))}function ECt(e,t,n,r,o,i,a){var s=tk(e,n),c=tk(t,n),u=a.get(c);if(u){Zx(e,n,u);return}var l=i?i(s,c,n+"",e,t,a):void 0,f=l===void 0;if(f){var d=Yi(c),h=!d&&op(c),p=!d&&!h&&V_(c);l=c,d||h||p?Yi(s)?l=s:$Ct(s)?l=GH(s):h?(f=!1,l=uV(c,!0)):p?(f=!1,l=hV(c,!0)):l=[]:sV(c)||n0(c)?(l=s,n0(s)?l=CCt(s):(!gs(s)||z_(s))&&(l=pV(c))):f=!1}f&&(a.set(c,l),o(l,c,r,i,a),a.delete(c)),Zx(e,n,l)}function kV(e,t,n,r,o){e!==t&&xV(t,function(i,a){if(o||(o=new Sa),gs(i))ECt(e,t,a,n,kV,r,o);else{var s=r?r(tk(e,a),i,a+"",e,t,o):void 0;s===void 0&&(s=i),Zx(e,a,s)}},sd)}var OCt=YH(function(e,t,n,r){kV(e,t,n,r)});const MCt=OCt;function ACt(e,t){var n={};return t=kCt(t),SCt(e,function(r,o,i){m1(n,t(r,o,i),r)}),n}var i0=function(){return i0=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},i0.apply(this,arguments)};function PCt(e){return e.toLowerCase()}var TCt=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],RCt=/[^A-Z0-9]+/gi;function ICt(e,t){t===void 0&&(t={});for(var n=t.splitRegexp,r=n===void 0?TCt:n,o=t.stripRegexp,i=o===void 0?RCt:o,a=t.transform,s=a===void 0?PCt:a,c=t.delimiter,u=c===void 0?" ":c,l=X7(X7(e,r,"$1\0$2"),i,"\0"),f=0,d=l.length;l.charAt(f)==="\0";)f++;for(;l.charAt(d-1)==="\0";)d--;return l.slice(f,d).split("\0").map(s).join(u)}function X7(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce(function(r,o){return r.replace(o,n)},e)}function jV(e,t){var n=e.charAt(0),r=e.substr(1).toLowerCase();return t>0&&n>="0"&&n<="9"?"_"+n+r:""+n.toUpperCase()+r}function NCt(e,t){return t===void 0&&(t={}),ICt(e,i0({delimiter:"",transform:jV},t))}function DCt(e,t){return t===0?e.toLowerCase():jV(e,t)}function LCt(e,t){return t===void 0&&(t={}),NCt(e,i0({transform:DCt},t))}function zCt(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return t?o=>!!n[o.toLowerCase()]:o=>!!n[o]}const BCt=zCt("String,Number,Boolean,Function,Symbol,BigInt");function FCt(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function qCt(e,t){let n;const r=FCt(t);if(BCt(r)){const o=typeof e;n=o===r.toLowerCase(),!n&&o==="object"&&(n=e instanceof t)}else r==="Object"?n=gs(e):r==="Array"?n=Array.isArray(e):r==="null"?n=e===null:n=e instanceof t;return{valid:n,expectedType:r}}function HCt({prop:e,type:t,validator:n}){if(![void 0,null].includes(e)&&t){let r=!1;const o=Array.isArray(t)?t:[t],i=[];for(let a=0;a<o.length&&!r;a++){const{valid:s,expectedType:c}=qCt(e,o[a]);i.push(c||""),r=s}if(!r)throw new Error(`Invalid prop: type check failed, expecting [${i.join(", ")}], receiving: ${e}`)}if(n&&!n(e))throw new Error(`Invalid prop: validator check failed, receiving: ${e}`)}function VCt(e,{mergeObject:t,mergeFunction:n}){const r=[];for(let i=e.length-1;i>=0;i--)r.push(e[i]);const o=n?(i,a)=>typeof i=="function"&&typeof a=="function"?n(a,i):void 0:void 0;return t==="deep"?MCt(...r,o):r_t(...r,o)}function WCt(e,{mergeFunction:t}){return e.reduce(t,()=>{})}function Pl(e,t={}){const{type:n,default:r,defaultIsDynamic:o=!1,required:i=!1,validator:a,camelizeObjectKeys:s=!1,mergeObjectApplyOnlyToDefault:c=!1,mergeFunctionApplyOnlyToDefault:u=!0}=t;let{mergeObject:l="deep",mergeFunction:f=!1}=t;const d=[];let h,p=!1,v=!1;const m=g=>{if(g!==void 0){HCt({type:n,prop:g,validator:a});const y=sV(g),b=typeof g=="function";return p=y,v=b,y?(g=A$t(g),s?ACt(g,(w,x)=>LCt(x,{stripRegexp:/-/g})):g):g}};for(const g of e)d.push(m(g));if(!o)d.push(m(r));else if(typeof r!="function")throw new TypeError(`Invalid option: config.default should be Function when config.defaultIsDynamic enabled, receiving: ${r}`);p||(l=!1,v||(f=!1));for(let g=0;g<d.length;g++){const y=d[g];if(y!==void 0){g===d.length-1?h=y:l?h=VCt(c?[y,r]:d,{mergeObject:l,mergeFunction:f}):f?h=WCt(u?[y,r]:d,{mergeFunction:f}):h=y;break}}if(i&&[void 0,null].includes(h))throw new Error("Missing required prop");return o?Pl(e,{...t,default:r(h),defaultIsDynamic:!1}):h}function Z7(e){const t=Array.from(e);return t[0]=t[0].toUpperCase(),t.unshift("n"),t.unshift("o"),t.join("")}function UCt(e,t=[]){const n={props:{},attrs:{},listeners:{},hooks:{},slots:{}},r=Array.isArray(t)?t:Object.keys(t);for(const o in e)if(o.startsWith("@")){const i=o.substring(1);i.startsWith("vnode")?n.hooks[Z7(i)]=e[o]:n.listeners[Z7(i)]=e[o]}else if(o.startsWith("#")){const i=o.substring(1);i&&(n.slots[i]=e[o])}else r.includes(o)?n.props[o]=e[o]:n.attrs[o]=e[o];return n}var KCt=typeof global=="object"&&global&&global.Object===Object&&global;const JCt=KCt;var GCt=typeof self=="object"&&self&&self.Object===Object&&self,QCt=JCt||GCt||Function("return this")();const _V=QCt;var YCt=_V.Symbol;const a0=YCt;var SV=Object.prototype,XCt=SV.hasOwnProperty,ZCt=SV.toString,Od=a0?a0.toStringTag:void 0;function t3t(e){var t=XCt.call(e,Od),n=e[Od];try{e[Od]=void 0;var r=!0}catch{}var o=ZCt.call(e);return r&&(t?e[Od]=n:delete e[Od]),o}var e3t=Object.prototype,n3t=e3t.toString;function r3t(e){return n3t.call(e)}var o3t="[object Null]",i3t="[object Undefined]",t9=a0?a0.toStringTag:void 0;function a3t(e){return e==null?e===void 0?i3t:o3t:t9&&t9 in Object(e)?t3t(e):r3t(e)}function s3t(e){return e!=null&&typeof e=="object"}var c3t="[object Symbol]";function u3t(e){return typeof e=="symbol"||s3t(e)&&a3t(e)==c3t}var l3t=/\s/;function f3t(e){for(var t=e.length;t--&&l3t.test(e.charAt(t)););return t}var d3t=/^\s+/;function h3t(e){return e&&e.slice(0,f3t(e)+1).replace(d3t,"")}function ek(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var e9=0/0,p3t=/^[-+]0x[0-9a-f]+$/i,v3t=/^0b[01]+$/i,m3t=/^0o[0-7]+$/i,g3t=parseInt;function n9(e){if(typeof e=="number")return e;if(u3t(e))return e9;if(ek(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ek(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=h3t(e);var n=v3t.test(e);return n||m3t.test(e)?g3t(e.slice(2),n?2:8):p3t.test(e)?e9:+e}var y3t=function(){return _V.Date.now()};const db=y3t;var b3t="Expected a function",w3t=Math.max,x3t=Math.min;function k3t(e,t,n){var r,o,i,a,s,c,u=0,l=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(b3t);t=n9(t)||0,ek(n)&&(l=!!n.leading,f="maxWait"in n,i=f?w3t(n9(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d);function h(k){var E=r,_=o;return r=o=void 0,u=k,a=e.apply(_,E),a}function p(k){return u=k,s=setTimeout(g,t),l?h(k):a}function v(k){var E=k-c,_=k-u,T=t-E;return f?x3t(T,i-_):T}function m(k){var E=k-c,_=k-u;return c===void 0||E>=t||E<0||f&&_>=i}function g(){var k=db();if(m(k))return y(k);s=setTimeout(g,v(k))}function y(k){return s=void 0,d&&r?h(k):(r=o=void 0,a)}function b(){s!==void 0&&clearTimeout(s),u=0,r=c=o=s=void 0}function w(){return s===void 0?a:y(db())}function x(){var k=db(),E=m(k);if(r=arguments,o=this,c=k,E){if(s===void 0)return p(c);if(f)return clearTimeout(s),s=setTimeout(g,t),h(c)}return s===void 0&&(s=setTimeout(g,t)),a}return x.cancel=b,x.flush=w,x}const j3t="JsonEditorVue",im="modelValue",r9="update:modelValue",am=["mainMenuBar","navigationBar","statusBar","askToFormat","readOnly","escapeControlCharacters","escapeUnicodeCharacters","flattenColumns"],$V=Jo({name:j3t,props:{[im]:{},mode:{type:String},...Object.fromEntries(am.map(e=>[e,{type:Boolean,default:void 0}]))},emits:{[r9](e){return!0},"update:mode":function(e){return!0}},setup(e,{attrs:t,emit:n,expose:r}){var o;const i=(o=Ks())==null?void 0:o.proxy,a=Tn(),s=Tn(!1),c=Tn(!1),u=Pl([e.mode,Nm.mode],{type:String}),l=Pl([e[im],Nm[im]]),f=Object.fromEntries(Array.from(am,m=>[m,Pl([e[m],Nm[m]])]).filter(([,m])=>m!==void 0)),d=k3t(m=>{if(c.value){c.value=!1;return}s.value=!0,n(r9,m.text===void 0?m.json:m.text)},100),h=m=>{n("update:mode",m)},p=(m,g)=>(...y)=>{m(...y),g(...y)},v=Pl([t,CV,{onChange:d,onChangeMode:h,mode:u,...f,...l!==void 0&&{content:{json:l}}}],{type:Object,mergeFunction:p});return co(()=>e[im],m=>{var g;if(s.value){s.value=!1;return}c.value=!0,(g=a.value)==null||g.update([void 0,""].includes(m)?{text:""}:{json:m})},{deep:!0}),co(()=>e.mode,m=>{var g;(g=a.value)==null||g.updateProps({mode:m})}),co(()=>Array.from(am,m=>e[m]),m=>{var g;(g=a.value)==null||g.updateProps(Object.fromEntries(Array.from(m,(y,b)=>[am[b],y]).filter(([,y])=>y!==void 0)))}),co(()=>t,m=>{var g;const y={};m.onChange&&(y.onChange=d),m.onChangeMode&&(y.onChangeMode=h),(g=a.value)==null||g.updateProps(Object.getOwnPropertyNames(y).length>0?Pl([m,y],{type:Object,mergeFunction:p}):m)},{deep:!0}),r==null||r({jsonEditor:a}),pf(()=>{var m;(m=a.value)==null||m.destroy()}),sl(()=>{a.value=new Jwt({target:i==null?void 0:i.$refs.jsonEditorRef,props:v}),r||(r=m=>{for(const g in m)i[g]=Ne(m[g])},r({jsonEditor:a}))}),()=>Vo("div",{ref:"jsonEditorRef"})}}),Nm={},CV={};function _3t(e){return e.install=(t,n={})=>{const{props:r,attrs:o}=UCt(n,$V.props);Object.assign(Nm,r),Object.assign(CV,o),t.component(e.name,e)},e}const S3t=_3t($V);const $3t={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((e,t)=>(e[t.id]=t)&&e,{})}},methods:{updatePaneComponents(){this.panes.forEach(e=>{e.update&&e.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[e.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(e,t){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=t},onMouseMove(e){this.touch.mouseDown&&(e.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(e)),this.$emit("resize",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(e,t){"ontouchstart"in window&&(e.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===t?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(e,t),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=t,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[t])},onSplitterDblClick(e,t){let n=0;this.panes=this.panes.map((r,o)=>(r.size=o===t?r.max:r.min,o!==t&&(n+=r.min),r)),this.panes[t].size-=n,this.$emit("pane-maximize",this.panes[t]),this.$emit("resized",this.panes.map(r=>({min:r.min,max:r.max,size:r.size})))},onPaneClick(e,t){this.$emit("pane-click",this.indexedPanes[t])},getCurrentMouseDrag(e){const t=this.container.getBoundingClientRect(),{clientX:n,clientY:r}="ontouchstart"in window&&e.touches?e.touches[0]:e;return{x:n-t.left,y:r-t.top}},getCurrentDragPercentage(e){e=e[this.horizontal?"y":"x"];const t=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(e=t-e),e*100/t},calculatePanesSize(e){const t=this.touch.activeSplitter;let n={prevPanesSize:this.sumPrevPanesSize(t),nextPanesSize:this.sumNextPanesSize(t),prevReachedMinPanes:0,nextReachedMinPanes:0};const r=0+(this.pushOtherPanes?0:n.prevPanesSize),o=100-(this.pushOtherPanes?0:n.nextPanesSize),i=Math.max(Math.min(this.getCurrentDragPercentage(e),o),r);let a=[t,t+1],s=this.panes[a[0]]||null,c=this.panes[a[1]]||null;const u=s.max<100&&i>=s.max+n.prevPanesSize,l=c.max<100&&i<=100-(c.max+this.sumNextPanesSize(t+1));if(u||l){u?(s.size=s.max,c.size=Math.max(100-s.max-n.prevPanesSize-n.nextPanesSize,0)):(s.size=Math.max(100-c.max-n.prevPanesSize-this.sumNextPanesSize(t+1),0),c.size=c.max);return}if(this.pushOtherPanes){const f=this.doPushOtherPanes(n,i);if(!f)return;({sums:n,panesToResize:a}=f),s=this.panes[a[0]]||null,c=this.panes[a[1]]||null}s!==null&&(s.size=Math.min(Math.max(i-n.prevPanesSize-n.prevReachedMinPanes,s.min),s.max)),c!==null&&(c.size=Math.min(Math.max(100-i-n.nextPanesSize-n.nextReachedMinPanes,c.min),c.max))},doPushOtherPanes(e,t){const n=this.touch.activeSplitter,r=[n,n+1];return t<e.prevPanesSize+this.panes[r[0]].min&&(r[0]=this.findPrevExpandedPane(n).index,e.prevReachedMinPanes=0,r[0]<n&&this.panes.forEach((o,i)=>{i>r[0]&&i<=n&&(o.size=o.min,e.prevReachedMinPanes+=o.min)}),e.prevPanesSize=this.sumPrevPanesSize(r[0]),r[0]===void 0)?(e.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((o,i)=>{i>0&&i<=n&&(o.size=o.min,e.prevReachedMinPanes+=o.min)}),this.panes[r[1]].size=100-e.prevReachedMinPanes-this.panes[0].min-e.prevPanesSize-e.nextPanesSize,null):t>100-e.nextPanesSize-this.panes[r[1]].min&&(r[1]=this.findNextExpandedPane(n).index,e.nextReachedMinPanes=0,r[1]>n+1&&this.panes.forEach((o,i)=>{i>n&&i<r[1]&&(o.size=o.min,e.nextReachedMinPanes+=o.min)}),e.nextPanesSize=this.sumNextPanesSize(r[1]-1),r[1]===void 0)?(e.nextReachedMinPanes=0,this.panes[this.panesCount-1].size=this.panes[this.panesCount-1].min,this.panes.forEach((o,i)=>{i<this.panesCount-1&&i>=n+1&&(o.size=o.min,e.nextReachedMinPanes+=o.min)}),this.panes[r[0]].size=100-e.prevPanesSize-e.nextReachedMinPanes-this.panes[this.panesCount-1].min-e.nextPanesSize,null):{sums:e,panesToResize:r}},sumPrevPanesSize(e){return this.panes.reduce((t,n,r)=>t+(r<e?n.size:0),0)},sumNextPanesSize(e){return this.panes.reduce((t,n,r)=>t+(r>e+1?n.size:0),0)},findPrevExpandedPane(e){return[...this.panes].reverse().find(t=>t.index<e&&t.size>t.min)||{}},findNextExpandedPane(e){return this.panes.find(t=>t.index>e+1&&t.size>t.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(e=>{const t=e.classList.contains("splitpanes__pane"),n=e.classList.contains("splitpanes__splitter");!t&&!n&&(e.parentNode.removeChild(e),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))})},addSplitter(e,t,n=!1){const r=e-1,o=document.createElement("div");o.classList.add("splitpanes__splitter"),n||(o.onmousedown=i=>this.onMouseDown(i,r),typeof window<"u"&&"ontouchstart"in window&&(o.ontouchstart=i=>this.onMouseDown(i,r)),o.onclick=i=>this.onSplitterClick(i,r+1)),this.dblClickSplitter&&(o.ondblclick=i=>this.onSplitterDblClick(i,r+1)),t.parentNode.insertBefore(o,t)},removeSplitter(e){e.onmousedown=void 0,e.onclick=void 0,e.ondblclick=void 0,e.parentNode.removeChild(e)},redoSplitters(){const e=Array.from(this.container.children);e.forEach(n=>{n.className.includes("splitpanes__splitter")&&this.removeSplitter(n)});let t=0;e.forEach(n=>{n.className.includes("splitpanes__pane")&&(!t&&this.firstSplitter?this.addSplitter(t,n,!0):t&&this.addSplitter(t,n),t++)})},requestUpdate({target:e,...t}){const n=this.indexedPanes[e._.uid];Object.entries(t).forEach(([r,o])=>n[r]=o)},onPaneAdd(e){let t=-1;Array.from(e.$el.parentNode.children).some(o=>(o.className.includes("splitpanes__pane")&&t++,o===e.$el));const n=parseFloat(e.minSize),r=parseFloat(e.maxSize);this.panes.splice(t,0,{id:e._.uid,index:t,min:isNaN(n)?0:n,max:isNaN(r)?100:r,size:e.size===null?null:parseFloat(e.size),givenSize:e.size,update:e.update}),this.panes.forEach((o,i)=>o.index=i),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[t]}),this.$emit("pane-add",{index:t,panes:this.panes.map(o=>({min:o.min,max:o.max,size:o.size}))})})},onPaneRemove(e){const t=this.panes.findIndex(r=>r.id===e._.uid),n=this.panes.splice(t,1)[0];this.panes.forEach((r,o)=>r.index=o),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...n,index:t}}),this.$emit("pane-remove",{removed:n,panes:this.panes.map(r=>({min:r.min,max:r.max,size:r.size}))})})},resetPaneSizes(e={}){!e.addedPane&&!e.removedPane?this.initialPanesSizing():this.panes.some(t=>t.givenSize!==null||t.min||t.max<100)?this.equalizeAfterAddOrRemove(e):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size})))},equalize(){const e=100/this.panesCount;let t=0;const n=[],r=[];this.panes.forEach(o=>{o.size=Math.max(Math.min(e,o.max),o.min),t-=o.size,o.size>=o.max&&n.push(o.id),o.size<=o.min&&r.push(o.id)}),t>.1&&this.readjustSizes(t,n,r)},initialPanesSizing(){let e=100;const t=[],n=[];let r=0;this.panes.forEach(i=>{e-=i.size,i.size!==null&&r++,i.size>=i.max&&t.push(i.id),i.size<=i.min&&n.push(i.id)});let o=100;e>.1&&(this.panes.forEach(i=>{i.size===null&&(i.size=Math.max(Math.min(e/(this.panesCount-r),i.max),i.min)),o-=i.size}),o>.1&&this.readjustSizes(e,t,n))},equalizeAfterAddOrRemove({addedPane:e,removedPane:t}={}){let n=100/this.panesCount,r=0;const o=[],i=[];e&&e.givenSize!==null&&(n=(100-e.givenSize)/(this.panesCount-1)),this.panes.forEach(a=>{r-=a.size,a.size>=a.max&&o.push(a.id),a.size<=a.min&&i.push(a.id)}),!(Math.abs(r)<.1)&&(this.panes.forEach(a=>{e&&e.givenSize!==null&&e.id===a.id||(a.size=Math.max(Math.min(n,a.max),a.min)),r-=a.size,a.size>=a.max&&o.push(a.id),a.size<=a.min&&i.push(a.id)}),r>.1&&this.readjustSizes(r,o,i))},readjustSizes(e,t,n){let r;e>0?r=e/(this.panesCount-t.length):r=e/(this.panesCount-n.length),this.panes.forEach((o,i)=>{if(e>0&&!t.includes(o.id)){const a=Math.max(Math.min(o.size+r,o.max),o.min),s=a-o.size;e-=s,o.size=a}else if(!n.includes(o.id)){const a=Math.max(Math.min(o.size+r,o.max),o.min),s=a-o.size;e-=s,o.size=a}o.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[o.id].size}%`})}),Math.abs(e)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(e){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((t,n)=>{t.ondblclick=e?r=>this.onSplitterDblClick(r,n):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return Vo("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},C3t=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},E3t={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(e){this.style=e}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(e){this.requestUpdate({target:this,size:e})},minSizeNumber(e){this.requestUpdate({target:this,min:e})},maxSizeNumber(e){this.requestUpdate({target:this,max:e})}}};function O3t(e,t,n,r,o,i){return Vn(),li("div",{class:"splitpanes__pane",onClick:t[0]||(t[0]=a=>i.onPaneClick(a,e._.uid)),style:Rc(e.style)},[Wu(e.$slots,"default")],4)}const o9=C3t(E3t,[["render",O3t]]);let Tl;const Md=[];function M3t(e){if(Md.push(e),!(typeof window>"u"))return window.__NUXT_DEVTOOLS__&&Md.forEach(t=>t(window.__NUXT_DEVTOOLS__)),Object.defineProperty(window,"__NUXT_DEVTOOLS__",{set(t){t&&Md.forEach(n=>n(t))},get(){return Tl.value},configurable:!0}),()=>{Md.splice(Md.indexOf(e),1)}}function A3t(){Tl||(Tl=hf(),M3t(t));function e(){bW(Tl)}function t(n){Tl.value=n,n.host&&n.host.hooks.hook("host:update:reactivity",e)}return Tl}const i9=A3t();const P3t={class:"flex-row flex h-screen"},T3t={class:"border-r-1 border-light-400 dark:border-dark-400 dark:bg-dark-900 dark:text-light bg-white text-dark-800 flex flex-col justify-between h-screen z-5"},R3t={class:"flex-grow hidden md:block"},I3t={class:"py-3 w-full flex items-start px-5 justify-between space-x-5"},N3t=nr("h1",{class:"text-base w-40"}," OG Image Playground ",-1),D3t=nr("hr",{class:"border-1 border-light-400 dark:border-dark-400"},null,-1),L3t={class:"py-7 px-5 text-sm flex flex-col space-y-3"},z3t=nr("hr",{class:"border-1 border-light-400 dark:border-dark-400"},null,-1),B3t={key:0,class:"py-7 px-5 text-sm flex flex-col space-y-3"},F3t={class:"p-3 text-gray-400 text-sm text-center"},q3t={class:"mx-auto flex flex-col w-full bg-white dark:bg-black max-h-screen overflow-hidden dark:bg-dark-700 bg-light-200"},H3t={class:"py-9px dark:bg-dark-800 bg-light-200 px-10 opacity-80 flex items-center max-w-full block space-x-5"},V3t={class:"text-sm flex items-center space-x-5"},W3t=nr("div",{class:"text-xs opacity-40"}," Path ",-1),U3t={class:"flex items-center space-x-1"},K3t={key:0,class:"text-xs opacity-70"},J3t=nr("hr",{class:"border-1 border-light-400 dark:border-dark-400"},null,-1),G3t=nr("h2",{class:"font-semibold text-lg mb-5"}," Props ",-1),Q3t={class:"relative"},Y3t={key:0,class:"absolute top-1 right-1 text-10px ml-1 bg-blue-100 text-blue-700 px-1 py-2px rounded"},X3t={key:0,class:"text-xs p-2 text-gray-300"},Z3t=Jo({__name:"app",async setup(e){let t,n;oG({title:"OG Image Playground"}),_N(SN);const r=hr(()=>!!i9.value),o=hr(()=>{var d,h,p,v;return((v=(p=(h=(d=i9.value)==null?void 0:d.host.nuxt.vueApp.config)==null?void 0:h.globalProperties)==null?void 0:p.$route)==null?void 0:v.path)||void 0});Ga.value=o.value||Rd().query.path||"/",$N.value=Rd().query.base||"/",co(()=>o,d=>{Id.value={},yu.value=!1,Ga.value=d});const i=hr(()=>Rd().path!=="/vnodes"&&Rd().path!=="/options"),a=([t,n]=wb(()=>q$()),t=await t,n(),t);co(a,d=>{Zp.value=Ne(d),d={...Ne(d)},delete d.path,delete d.cache,delete d.cacheTtl,delete d.component,delete d.provider,delete d.componentHash,B1.value=d},{immediate:!0});const s=Uk(d=>{Id.value={},yu.value=!1,Ga.value=d.target.value,Nd()},1e3),c=ZI();function u(d){Id.value=d,yu.value=!0,Nd()}const l=hr(()=>c.value==="dark");async function f(d=!0){d&&await q$(),Id.value={},yu.value=!1;const h={...Zp.value};delete h.path,delete h.cache,delete h.cacheTtl,delete h.component,delete h.provider,delete h.componentHash,B1.value=h,d&&Nd()}return[t,n]=wb(()=>f(!1)),await t,n(),(d,h)=>{var x;const p=Dk,v=uY,m=pY,g=gN,y=LI,b=EX,w=TX;return Vn(),li("div",P3t,[nr("header",T3t,[nr("div",R3t,[nr("div",I3t,[N3t,Ne(r)?qa("",!0):(Vn(),jo(m,{key:0},{default:ao(({toggle:k})=>[rn(v,{n:"borderless lg m-0","p-0":"",op50:"",onClick:k},{default:ao(()=>[rn(p,{icon:"dark:carbon-moon carbon-sun"})]),_:2},1032,["onClick"])]),_:1}))]),D3t,nr("div",L3t,[rn(y,{to:"/",class:"transition-all hover:ml-1 whitespace-nowrap"},{default:ao(({isActive:k})=>[rn(g,{name:"carbon:image-search",class:Qr(["mr-1",[k?"opacity-90":"opacity-60"]])},null,8,["class"]),nr("span",{class:Qr([k?"underline":"opacity-60"])}," Template HTML ",2)]),_:1}),((x=Ne(Zp))==null?void 0:x.provider)==="satori"?(Vn(),jo(y,{key:0,to:"/svg",class:"transition-all hover:ml-1 whitespace-nowrap"},{default:ao(({isActive:k})=>[rn(g,{name:"carbon:svg",class:Qr(["mr-1",[k?"opacity-90":"opacity-60"]])},null,8,["class"]),nr("span",{class:Qr([k?"underline":"opacity-60"])}," Preview SVG ",2)]),_:1})):qa("",!0),rn(y,{to:"/png",class:"transition-all hover:ml-1 whitespace-nowrap"},{default:ao(({isActive:k})=>[rn(g,{name:"carbon:png",class:Qr(["mr-1",[k?"opacity-90":"opacity-60"]])},null,8,["class"]),nr("span",{class:Qr([k?"underline":"opacity-60"])}," Preview PNG ",2)]),_:1}),rn(y,{to:"/options",class:"transition-all hover:ml-1 whitespace-nowrap"},{default:ao(({isActive:k})=>[rn(g,{name:"carbon:operations-record",class:Qr(["mr-1",[k?"opacity-90":"opacity-60"]])},null,8,["class"]),nr("span",{class:Qr([k?"underline":"opacity-60"])}," Options ",2)]),_:1}),rn(y,{to:"/vnodes",class:"transition-all hover:ml-1 whitespace-nowrap"},{default:ao(({isActive:k})=>[rn(g,{name:"carbon:ibm-cloud-pak-manta-automated-data-lineage",class:Qr(["mr-1",[k?"opacity-90":"opacity-60"]])},null,8,["class"]),nr("span",{class:Qr([k?"underline":"opacity-60"])}," vNodes ",2)]),_:1})]),z3t,Ne(i)?(Vn(),li("div",B3t,[Ne(yl)!==504?(Vn(),li("div",{key:0,onClick:h[0]||(h[0]=k=>yl.value=504)},[rn(v,null,{default:ao(()=>[rn(g,{name:"carbon:mobile"}),Ou(" Small ")]),_:1})])):qa("",!0),Ne(yl)!==null?(Vn(),li("div",{key:1,onClick:h[1]||(h[1]=k=>yl.value=null)},[rn(v,null,{default:ao(()=>[rn(g,{name:"carbon:laptop"}),Ou(" Full width ")]),_:1})])):qa("",!0),nr("div",null,[rn(v,{onClick:Ne(Nd)},{default:ao(()=>[Ou(" Refresh ")]),_:1},8,["onClick"])])])):qa("",!0)]),nr("div",F3t," v"+sm(d.version),1)]),nr("main",q3t,[nr("div",H3t,[nr("div",V3t,[W3t,nr("div",U3t,[rn(b,{"model-value":Ne(Ga),placeholder:"Search...",n:"primary",onInput:Ne(s)},null,8,["model-value","onInput"])])]),Ne(F$)?(Vn(),li("div",K3t,sm(Ne(F$)),1)):qa("",!0)]),J3t,nr("div",{class:"h-full max-h-full overflow-hidden lg:p-5 p-2",style:Rc({width:Ne(yl)&&Ne(i)?`${Ne(yl)}px`:"100%"})},[rn(Ne($3t),{class:"default-theme",onResize:Ne(tZ)},{default:ao(()=>[rn(Ne(o9),{size:"80"},{default:ao(()=>[rn(w)]),_:1}),rn(Ne(o9),{size:"20"},{default:ao(()=>[G3t,nr("div",Q3t,[rn(Ne(S3t),{"model-value":Ne(B1),class:Qr(Ne(l)?["jse-theme-dark"]:[]),"main-menu-bar":!1,"navigation-bar":!1,"onUpdate:modelValue":u},null,8,["model-value","class"]),Ne(yu)?(Vn(),li("span",Y3t,"modified")):qa("",!0)]),Ne(yu)?(Vn(),li("div",X3t,[nr("div",null,[Ou(" Update "+sm(Ne(Zp).component)+" to persist the changes. ",1),nr("button",{type:"button",class:"underline",onClick:h[2]||(h[2]=k=>f(!0))}," Reset ")])])):qa("",!0)]),_:1})]),_:1},8,["onResize"])],4)])])}}});const t4t={__name:"nuxt-error-page",props:{error:Object},setup(e){const n=e.error;(n.stack||"").split(`
|
|
134
|
+
`).splice(1).map(f=>({text:f.replace("webpack:/","").replace(".vue",".js").trim(),internal:f.includes("node_modules")&&!f.includes(".cache")||f.includes("internal")||f.includes("new Promise")})).map(f=>`<span class="stack${f.internal?" internal":""}">${f.text}</span>`).join(`
|
|
135
|
+
`);const r=Number(n.statusCode||500),o=r===404,i=n.statusMessage??(o?"Page Not Found":"Internal Server Error"),a=n.message||n.toString(),s=void 0,l=o?Vm(()=>Cs(()=>import("./error-404.3dee6d7e.js"),["./error-404.3dee6d7e.js","./error-404.b751fa02.css"],import.meta.url).then(f=>f.default||f)):Vm(()=>Cs(()=>import("./error-500.8daad474.js"),["./error-500.8daad474.js","./error-500.69009e70.css"],import.meta.url).then(f=>f.default||f));return(f,d)=>(Vn(),jo(Ne(l),f9(_k({statusCode:Ne(r),statusMessage:Ne(i),description:Ne(a),stack:Ne(s)})),null,16))}},a9={__name:"nuxt-root",setup(e){const t=()=>null,n=ar(),r=n.deferHydration(),o=!1;Gl(g0,Rd()),n.hooks.callHookWith(s=>s.map(c=>c()),"vue:setup");const i=y0();K9((s,c,u)=>{if(n.hooks.callHook("vue:error",s,c,u).catch(l=>console.error("[nuxt] Error in `vue:error` hook",l)),jG(s)&&(s.fatal||s.unhandled))return n.runWithContext(()=>Rl(s)),!1});const a=!1;return(s,c)=>(Vn(),jo(N9,{onResolve:Ne(r)},{default:ao(()=>[Ne(i)?(Vn(),jo(Ne(t4t),{key:0,error:Ne(i)},null,8,["error"])):Ne(a)?(Vn(),jo(Ne(t),{key:1,context:Ne(a)},null,8,["context"])):Ne(o)?(Vn(),jo(xk(Ne(o)),{key:2})):(Vn(),jo(Ne(Z3t),{key:3}))]),_:1},8,["onResolve"]))}};globalThis.$fetch||(globalThis.$fetch=QK.create({baseURL:XK()}));let s9;{let e;s9=async function(){var i,a;if(e)return e;const r=!!((i=window.__NUXT__)!=null&&i.serverRendered||((a=document.getElementById("__NUXT_DATA__"))==null?void 0:a.dataset.ssr)==="true")?sK(a9):aK(a9),o=fJ({vueApp:r});try{await hJ(o,cY)}catch(s){await o.callHook("app:error",s),o.payload.error=o.payload.error||s}try{await o.hooks.callHook("app:created",r),await o.hooks.callHook("app:beforeMount",r),r.mount(sG),await o.hooks.callHook("app:mounted",r),await Xc()}catch(s){await o.callHook("app:error",s),o.payload.error=o.payload.error||s}return r},e=s9().catch(t=>{console.error("Error while mounting app:",t)})}export{j0 as A,Kk as B,Nd as C,o4t as D,jo as E,wb as F,i4t as G,r4t as H,LG as I,XI as _,nr as a,rn as b,li as c,Ou as d,LI as e,n4t as f,Jo as g,ZI as h,Uk as i,Zp as j,sl as k,co as l,yl as m,hr as n,Vn as o,e4t as p,F$ as q,Tn as r,Rc as s,sm as t,oG as u,Ne as v,ao as w,bI as x,Id as y,Ga as z};
|