All Downloads are FREE. Search and download functionalities are using the official Maven repository.

static.kuangkie.hydrogen.bundle.46adbaad737d54b3aa41.js Maven / Gradle / Ivy

The newest version!
/*! For license information please see bundle.46adbaad737d54b3aa41.js.LICENSE.txt */
(self.webpackChunkhydrogen_react=self.webpackChunkhydrogen_react||[]).push([[2414],{33771:function(t,e,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(t){for(var e=1;e1?e-1:0),r=1;r=i)return t;switch(t){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(t){return"[Circular]"}break;default:return t}})):t}function f(t,e){return null==t||!("array"!==e||!Array.isArray(t)||t.length)||!(!function(t){return"string"===t||"url"===t||"hex"===t||"email"===t||"date"===t||"pattern"===t}(e)||"string"!=typeof t||t)}function h(t,e,n){var r=0,o=t.length;!function i(s){if(s&&s.length)n(s);else{var a=r;r+=1,a()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,b=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,w={integer:function(t){return w.number(t)&&parseInt(t,10)===t},float:function(t){return w.number(t)&&!w.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch(t){return!1}},date:function(t){return"function"==typeof t.getTime&&"function"==typeof t.getMonth&&"function"==typeof t.getYear&&!isNaN(t.getTime())},number:function(t){return!isNaN(t)&&"number"==typeof t},object:function(t){return"object"==typeof t&&!w.array(t)},method:function(t){return"function"==typeof t},email:function(t){return"string"==typeof t&&t.length<=320&&!!t.match(v)},url:function(t){return"string"==typeof t&&t.length<=2048&&!!t.match(function(){if(g)return g;var t="[a-fA-F\\d:]",e=function(e){return e&&e.includeBoundaries?"(?:(?<=\\s|^)(?="+t+")|(?<="+t+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=("\n(?:\n(?:"+r+":){7}(?:"+r+"|:)|                                    // 1:2:3:4:5:6:7::  1:2:3:4:5:6:7:8\n(?:"+r+":){6}(?:"+n+"|:"+r+"|:)|                             // 1:2:3:4:5:6::    1:2:3:4:5:6::8   1:2:3:4:5:6::8  1:2:3:4:5:6::1.2.3.4\n(?:"+r+":){5}(?::"+n+"|(?::"+r+"){1,2}|:)|                   // 1:2:3:4:5::      1:2:3:4:5::7:8   1:2:3:4:5::8    1:2:3:4:5::7:1.2.3.4\n(?:"+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+"){1,3}|:)| // 1:2:3:4::        1:2:3:4::6:7:8   1:2:3:4::8      1:2:3:4::6:7:1.2.3.4\n(?:"+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+"){1,4}|:)| // 1:2:3::          1:2:3::5:6:7:8   1:2:3::8        1:2:3::5:6:7:1.2.3.4\n(?:"+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+"){1,5}|:)| // 1:2::            1:2::4:5:6:7:8   1:2::8          1:2::4:5:6:7:1.2.3.4\n(?:"+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+"){1,6}|:)| // 1::              1::3:4:5:6:7:8   1::8            1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::"+r+"){0,5}:"+n+"|(?::"+r+"){1,7}|:))             // ::2:3:4:5:6:7:8  ::2:3:4:5:6:7:8  ::8             ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})?                                             // %eth0            %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),s=new RegExp("^"+n+"$"),a=new RegExp("^"+o+"$"),l=function(t){return t&&t.exact?i:new RegExp("(?:"+e(t)+n+e(t)+")|(?:"+e(t)+o+e(t)+")","g")};l.v4=function(t){return t&&t.exact?s:new RegExp(""+e(t)+n+e(t),"g")},l.v6=function(t){return t&&t.exact?a:new RegExp(""+e(t)+o+e(t),"g")};var c=l.v4().source,u=l.v6().source;return g=new RegExp("(?:^(?:(?:(?:[a-z]+:)?//)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|"+c+"|"+u+'|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?$)',"i")}())},hex:function(t){return"string"==typeof t&&!!t.match(b)}},x="enum",k=y,O=function(t,e,n,r,o){(/^\s+$/.test(e)||""===e)&&r.push(u(o.messages.whitespace,t.fullField))},A=function(t,e,n,r,o){if(t.required&&void 0===e)y(t,e,n,r,o);else{var i=t.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?w[i](e)||r.push(u(o.messages.types[i],t.fullField,t.type)):i&&typeof e!==t.type&&r.push(u(o.messages.types[i],t.fullField,t.type))}},S=function(t,e,n,r,o){var i="number"==typeof t.len,s="number"==typeof t.min,a="number"==typeof t.max,l=e,c=null,f="number"==typeof e,h="string"==typeof e,d=Array.isArray(e);if(f?c="number":h?c="string":d&&(c="array"),!c)return!1;d&&(l=e.length),h&&(l=e.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?l!==t.len&&r.push(u(o.messages[c].len,t.fullField,t.len)):s&&!a&&lt.max?r.push(u(o.messages[c].max,t.fullField,t.max)):s&&a&&(lt.max)&&r.push(u(o.messages[c].range,t.fullField,t.min,t.max))},C=function(t,e,n,r,o){t[x]=Array.isArray(t[x])?t[x]:[],-1===t[x].indexOf(e)&&r.push(u(o.messages[x],t.fullField,t[x].join(", ")))},j=function(t,e,n,r,o){t.pattern&&(t.pattern instanceof RegExp?(t.pattern.lastIndex=0,t.pattern.test(e)||r.push(u(o.messages.pattern.mismatch,t.fullField,e,t.pattern))):"string"==typeof t.pattern&&(new RegExp(t.pattern).test(e)||r.push(u(o.messages.pattern.mismatch,t.fullField,e,t.pattern))))},P=function(t,e,n,r,o){var i=t.type,s=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(f(e,i)&&!t.required)return n();k(t,e,r,s,o,i),f(e,i)||A(t,e,r,s,o)}n(s)},D={string:function(t,e,n,r,o){var i=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(f(e,"string")&&!t.required)return n();k(t,e,r,i,o,"string"),f(e,"string")||(A(t,e,r,i,o),S(t,e,r,i,o),j(t,e,r,i,o),!0===t.whitespace&&O(t,e,r,i,o))}n(i)},method:function(t,e,n,r,o){var i=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(f(e)&&!t.required)return n();k(t,e,r,i,o),void 0!==e&&A(t,e,r,i,o)}n(i)},number:function(t,e,n,r,o){var i=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(""===e&&(e=void 0),f(e)&&!t.required)return n();k(t,e,r,i,o),void 0!==e&&(A(t,e,r,i,o),S(t,e,r,i,o))}n(i)},boolean:function(t,e,n,r,o){var i=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(f(e)&&!t.required)return n();k(t,e,r,i,o),void 0!==e&&A(t,e,r,i,o)}n(i)},regexp:function(t,e,n,r,o){var i=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(f(e)&&!t.required)return n();k(t,e,r,i,o),f(e)||A(t,e,r,i,o)}n(i)},integer:function(t,e,n,r,o){var i=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(f(e)&&!t.required)return n();k(t,e,r,i,o),void 0!==e&&(A(t,e,r,i,o),S(t,e,r,i,o))}n(i)},float:function(t,e,n,r,o){var i=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(f(e)&&!t.required)return n();k(t,e,r,i,o),void 0!==e&&(A(t,e,r,i,o),S(t,e,r,i,o))}n(i)},array:function(t,e,n,r,o){var i=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(null==e&&!t.required)return n();k(t,e,r,i,o,"array"),null!=e&&(A(t,e,r,i,o),S(t,e,r,i,o))}n(i)},object:function(t,e,n,r,o){var i=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(f(e)&&!t.required)return n();k(t,e,r,i,o),void 0!==e&&A(t,e,r,i,o)}n(i)},enum:function(t,e,n,r,o){var i=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(f(e)&&!t.required)return n();k(t,e,r,i,o),void 0!==e&&C(t,e,r,i,o)}n(i)},pattern:function(t,e,n,r,o){var i=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(f(e,"string")&&!t.required)return n();k(t,e,r,i,o),f(e,"string")||j(t,e,r,i,o)}n(i)},date:function(t,e,n,r,o){var i=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(f(e,"date")&&!t.required)return n();var s;k(t,e,r,i,o),f(e,"date")||(s=e instanceof Date?e:new Date(e),A(t,s,r,i,o),s&&S(t,s.getTime(),r,i,o))}n(i)},url:P,hex:P,email:P,required:function(t,e,n,r,o){var i=[],s=Array.isArray(e)?"array":typeof e;k(t,e,r,i,o,s),n(i)},any:function(t,e,n,r,o){var i=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(f(e)&&!t.required)return n();k(t,e,r,i,o)}n(i)}};function T(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var E=T(),I=function(){function t(t){this.rules=null,this._messages=E,this.define(t)}var e=t.prototype;return e.define=function(t){var e=this;if(!t)throw new Error("Cannot configure a schema with no rules");if("object"!=typeof t||Array.isArray(t))throw new Error("Rules must be an object");this.rules={},Object.keys(t).forEach((function(n){var r=t[n];e.rules[n]=Array.isArray(r)?r:[r]}))},e.messages=function(t){return t&&(this._messages=m(T(),t)),this._messages},e.validate=function(e,n,o){var i=this;void 0===n&&(n={}),void 0===o&&(o=function(){});var s=e,a=n,l=o;if("function"==typeof a&&(l=a,a={}),!this.rules||0===Object.keys(this.rules).length)return l&&l(null,s),Promise.resolve(s);if(a.messages){var f=this.messages();f===E&&(f=T()),m(f,a.messages),a.messages=f}else a.messages=this.messages();var g={};(a.keys||Object.keys(this.rules)).forEach((function(t){var n=i.rules[t],o=s[t];n.forEach((function(n){var a=n;"function"==typeof a.transform&&(s===e&&(s=r({},s)),o=s[t]=a.transform(o)),(a="function"==typeof a?{validator:a}:r({},a)).validator=i.getValidationMethod(a),a.validator&&(a.field=t,a.fullField=a.fullField||t,a.type=i.getType(a),g[t]=g[t]||[],g[t].push({rule:a,value:o,source:s,field:t}))}))}));var y={};return function(t,e,n,r,o){if(e.first){var i=new Promise((function(e,i){var s=function(t){var e=[];return Object.keys(t).forEach((function(n){e.push.apply(e,t[n]||[])})),e}(t);h(s,n,(function(t){return r(t),t.length?i(new d(t,c(t))):e(o)}))}));return i.catch((function(t){return t})),i}var s=!0===e.firstFields?Object.keys(t):e.firstFields||[],a=Object.keys(t),l=a.length,u=0,f=[],p=new Promise((function(e,i){var p=function(t){if(f.push.apply(f,t),++u===l)return r(f),f.length?i(new d(f,c(f))):e(o)};a.length||(r(f),e(o)),a.forEach((function(e){var r=t[e];-1!==s.indexOf(e)?h(r,n,p):function(t,e,n){var r=[],o=0,i=t.length;function s(t){r.push.apply(r,t||[]),++o===i&&n(r)}t.forEach((function(t){e(t,s)}))}(r,n,p)}))}));return p.catch((function(t){return t})),p}(g,a,(function(e,n){var o,i=e.rule,l=!("object"!==i.type&&"array"!==i.type||"object"!=typeof i.fields&&"object"!=typeof i.defaultField);function c(t,e){return r({},e,{fullField:i.fullField+"."+t,fullFields:i.fullFields?[].concat(i.fullFields,[t]):[t]})}function f(o){void 0===o&&(o=[]);var f=Array.isArray(o)?o:[o];!a.suppressWarning&&f.length&&t.warning("async-validator:",f),f.length&&void 0!==i.message&&(f=[].concat(i.message));var h=f.map(p(i,s));if(a.first&&h.length)return y[i.field]=1,n(h);if(l){if(i.required&&!e.value)return void 0!==i.message?h=[].concat(i.message).map(p(i,s)):a.error&&(h=[a.error(i,u(a.messages.required,i.field))]),n(h);var d={};i.defaultField&&Object.keys(e.value).map((function(t){d[t]=i.defaultField})),d=r({},d,e.rule.fields);var m={};Object.keys(d).forEach((function(t){var e=d[t],n=Array.isArray(e)?e:[e];m[t]=n.map(c.bind(null,t))}));var g=new t(m);g.messages(a.messages),e.rule.options&&(e.rule.options.messages=a.messages,e.rule.options.error=a.error),g.validate(e.value,e.rule.options||a,(function(t){var e=[];h&&h.length&&e.push.apply(e,h),t&&t.length&&e.push.apply(e,t),n(e.length?e:null)}))}else n(h)}if(l=l&&(i.required||!i.required&&e.value),i.field=e.field,i.asyncValidator)o=i.asyncValidator(i,e.value,f,e.source,a);else if(i.validator){try{o=i.validator(i,e.value,f,e.source,a)}catch(t){null==console.error||console.error(t),a.suppressValidatorError||setTimeout((function(){throw t}),0),f(t.message)}!0===o?f():!1===o?f("function"==typeof i.message?i.message(i.fullField||i.field):i.message||(i.fullField||i.field)+" fails"):o instanceof Array?f(o):o instanceof Error&&f(o.message)}o&&o.then&&o.then((function(){return f()}),(function(t){return f(t)}))}),(function(t){!function(t){for(var e,n,r=[],o={},i=0;i=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}n.d(e,{Z:function(){return r}})},38399:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(20237),o=n(64882);function i(t,e){return!e||"object"!==(0,r.Z)(e)&&"function"!=typeof e?(0,o.Z)(t):e}},47637:function(t,e,n){"use strict";function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}n.d(e,{Z:function(){return r}})},4636:function(t,e,n){"use strict";function r(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);et.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}},97958:function(t,e,n){"use strict";function r(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r=0||(o[n]=t[n]);return o}n.d(e,{Z:function(){return r}})},88503:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(31311),o=n(76464);function i(t,e){if(e&&("object"===(0,r.Z)(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.Z)(t)}},63319:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(31311);function o(){o=function(){return e};var t,e={},n=Object.prototype,i=n.hasOwnProperty,s=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},l=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function f(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,n){return t[e]=n}}function h(t,e,n,r){var o=e&&e.prototype instanceof b?e:b,i=Object.create(o.prototype),a=new I(r||[]);return s(i,"_invoke",{value:P(t,n,a)}),i}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var p="suspendedStart",m="suspendedYield",g="executing",y="completed",v={};function b(){}function w(){}function x(){}var k={};f(k,l,(function(){return this}));var O=Object.getPrototypeOf,A=O&&O(O(M([])));A&&A!==n&&i.call(A,l)&&(k=A);var S=x.prototype=b.prototype=Object.create(k);function C(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function n(o,s,a,l){var c=d(t[o],t,s);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==(0,r.Z)(f)&&i.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,a,l)}),(function(t){n("throw",t,a,l)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,l)}))}l(c.arg)}var o;s(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}})}function P(e,n,r){var o=p;return function(i,s){if(o===g)throw new Error("Generator is already running");if(o===y){if("throw"===i)throw s;return{value:t,done:!0}}for(r.method=i,r.arg=s;;){var a=r.delegate;if(a){var l=D(a,r);if(l){if(l===v)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=g;var c=d(e,n,r);if("normal"===c.type){if(o=r.done?y:m,c.arg===v)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=y,r.method="throw",r.arg=c.arg)}}}function D(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,D(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var i=d(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var s=i.arg;return s?s.done?(n[e.resultName]=s.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):s:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function M(e){if(e||""===e){var n=e[l];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,s=function n(){for(;++o=0;--o){var s=this.tryEntries[o],a=s.completion;if("root"===s.tryLoc)return r("end");if(s.tryLoc<=this.prev){var l=i.call(s,"catchLoc"),c=i.call(s,"finallyLoc");if(l&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),E(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:M(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}},2717:function(t,e,n){"use strict";function r(t,e){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},r(t,e)}n.d(e,{Z:function(){return r}})},55043:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var r=n(15754),o=n(71883),i=n(90514);function s(t,e){return(0,r.Z)(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(t,e)||(0,o.Z)(t,e)||(0,i.Z)()}},28478:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});var r=n(15754),o=n(27012),i=n(71883),s=n(90514);function a(t){return(0,r.Z)(t)||(0,o.Z)(t)||(0,i.Z)(t)||(0,s.Z)()}},25206:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var r=n(38211),o=n(27012),i=n(71883);function s(t){return function(t){if(Array.isArray(t))return(0,r.Z)(t)}(t)||(0,o.Z)(t)||(0,i.Z)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},59266:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(31311);function o(t){var e=function(t,e){if("object"!=(0,r.Z)(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!=(0,r.Z)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==(0,r.Z)(e)?e:String(e)}},31311:function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}n.d(e,{Z:function(){return r}})},71883:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(38211);function o(t,e){if(t){if("string"==typeof t)return(0,r.Z)(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(t,e):void 0}}},65147:function(t,e,n){"use strict";n.d(e,{B1:function(){return lt},GA:function(){return X},Mb:function(){return l},eC:function(){return c},vQ:function(){return W},ys:function(){return at}});var r=n(40802),o=n(46820),i=n(43734);class s{constructor(t,e,n){this.state=t,this.pos=e,this.explicit=n,this.abortListeners=[]}tokenBefore(t){let e=(0,i.qz)(this.state).resolveInner(this.pos,-1);for(;e&&t.indexOf(e.name)<0;)e=e.parent;return e?{from:e.from,to:this.pos,text:this.state.sliceDoc(e.from,this.pos),type:e.type}:null}matchBefore(t){let e=this.state.doc.lineAt(this.pos),n=Math.max(e.from,this.pos-250),r=e.text.slice(n-e.from,this.pos-e.from),o=r.search(h(t,!1));return o<0?null:{from:n+o,to:this.pos,text:r.slice(o)}}get aborted(){return null==this.abortListeners}addEventListener(t,e){"abort"==t&&this.abortListeners&&this.abortListeners.push(e)}}function a(t){let e=Object.keys(t).join(""),n=/\w/.test(e);return n&&(e=e.replace(/\w/g,"")),`[${n?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function l(t){let e=t.map((t=>"string"==typeof t?{label:t}:t)),[n,r]=e.every((t=>/^\w+$/.test(t.label)))?[/\w*$/,/\w+$/]:function(t){let e=Object.create(null),n=Object.create(null);for(let{label:r}of t){e[r[0]]=!0;for(let t=1;t{let o=t.matchBefore(r);return o||t.explicit?{from:o?o.from:t.pos,options:e,validFor:n}:null}}function c(t,e){return n=>{for(let e=(0,i.qz)(n.state).resolveInner(n.pos,-1);e;e=e.parent){if(t.indexOf(e.name)>-1)return null;if(e.type.isTop)break}return e(n)}}class u{constructor(t,e,n,r){this.completion=t,this.source=e,this.match=n,this.score=r}}function f(t){return t.selection.main.from}function h(t,e){var n;let{source:r}=t,o=e&&"^"!=r[0],i="$"!=r[r.length-1];return o||i?new RegExp(`${o?"^":""}(?:${r})${i?"$":""}`,null!==(n=t.flags)&&void 0!==n?n:t.ignoreCase?"i":""):t}const d=r.q6.define(),p=new WeakMap;function m(t){if(!Array.isArray(t))return t;let e=p.get(t);return e||p.set(t,e=l(t)),e}const g=r.Py.define(),y=r.Py.define();class v{constructor(t){this.pattern=t,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let e=0;e=48&&c<=57||c>=97&&c<=122?2:c>=65&&c<=90?1:0:(b=(0,r.bg)(c))!=b.toLowerCase()?1:b!=b.toUpperCase()?2:0;(!o||1==w&&g||0==v&&0!=w)&&(e[f]==c||n[f]==c&&(h=!0)?s[f++]=o:s.length&&(y=!1)),v=w,o+=(0,r.nZ)(c)}return f==l&&0==s[0]&&y?this.result((h?-200:0)-100,s,t):d==l&&0==p?this.ret(-200-t.length+(m==t.length?0:-100),[0,m]):a>-1?this.ret(-700-t.length,[a,a+this.pattern.length]):d==l?this.ret(-900-t.length,[p,m]):f==l?this.result((h?-200:0)-100-700+(y?0:-1100),s,t):2!=e.length&&this.result((o[0]?-700:0)-200-1100,o,t)}result(t,e,n){let o=[],i=0;for(let t of e){let e=t+(this.astral?(0,r.nZ)((0,r.gm)(n,t)):1);i&&o[i-1]==t?o[i-1]=e:(o[i++]=t,o[i++]=e)}return this.ret(t-n.length,o)}}const b=r.r$.define({combine(t){return(0,r.BO)(t,{activateOnTyping:!0,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:x,compareCompletions:(t,e)=>t.label.localeCompare(e.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(t,e)=>t&&e,closeOnBlur:(t,e)=>t&&e,icons:(t,e)=>t&&e,tooltipClass:(t,e)=>n=>w(t(n),e(n)),optionClass:(t,e)=>n=>w(t(n),e(n)),addToOptions:(t,e)=>t.concat(e)})}});function w(t,e){return t?e?t+" "+e:t:e}function x(t,e,n,r,i,s){let a,l,c=t.textDirection==o.Nm.RTL,u=c,f=!1,h="top",d=e.left-i.left,p=i.right-e.right,m=r.right-r.left,g=r.bottom-r.top;if(u&&d=g||t>e.top?a=n.bottom-e.top:(h="bottom",a=e.bottom-n.top)}return{style:`${h}: ${a/((e.bottom-e.top)/s.offsetHeight)}px; max-width: ${l/((e.right-e.left)/s.offsetWidth)}px`,class:"cm-completionInfo-"+(f?c?"left-narrow":"right-narrow":u?"left":"right")}}function k(t,e,n){if(t<=n)return{from:0,to:t};if(e<0&&(e=0),e<=t>>1){let t=Math.floor(e/n);return{from:t*n,to:(t+1)*n}}let r=Math.floor((t-e)/n);return{from:t-(r+1)*n,to:t-r*n}}class O{constructor(t,e,n){this.view=t,this.stateField=e,this.applyCompletion=n,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:t=>this.placeInfo(t),key:this},this.space=null,this.currentClass="";let r=t.state.field(e),{options:o,selected:i}=r.open,s=t.state.facet(b);this.optionContent=function(t){let e=t.addToOptions.slice();return t.icons&&e.push({render(t){let e=document.createElement("div");return e.classList.add("cm-completionIcon"),t.type&&e.classList.add(...t.type.split(/\s+/g).map((t=>"cm-completionIcon-"+t))),e.setAttribute("aria-hidden","true"),e},position:20}),e.push({render(t,e,n,r){let o=document.createElement("span");o.className="cm-completionLabel";let i=t.displayLabel||t.label,s=0;for(let t=0;ts&&o.appendChild(document.createTextNode(i.slice(s,e)));let a=o.appendChild(document.createElement("span"));a.appendChild(document.createTextNode(i.slice(e,n))),a.className="cm-completionMatchedText",s=n}return st.position-e.position)).map((t=>t.render))}(s),this.optionClass=s.optionClass,this.tooltipClass=s.tooltipClass,this.range=k(o.length,i,s.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(t.state),this.dom.addEventListener("mousedown",(n=>{let{options:r}=t.state.field(e).open;for(let e,o=n.target;o&&o!=this.dom;o=o.parentNode)if("LI"==o.nodeName&&(e=/-(\d+)$/.exec(o.id))&&+e[1]{let n=t.state.field(this.stateField,!1);n&&n.tooltip&&t.state.facet(b).closeOnBlur&&e.relatedTarget!=t.contentDOM&&t.dispatch({effects:y.of(null)})})),this.showOptions(o,r.id)}mount(){this.updateSel()}showOptions(t,e){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(t,e,this.range)),this.list.addEventListener("scroll",(()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)}))}update(t){var e;let n=t.state.field(this.stateField),r=t.startState.field(this.stateField);if(this.updateTooltipClass(t.state),n!=r){let{options:o,selected:i,disabled:s}=n.open;r.open&&r.open.options==o||(this.range=k(o.length,i,t.state.facet(b).maxRenderedOptions),this.showOptions(o,n.id)),this.updateSel(),s!=(null===(e=r.open)||void 0===e?void 0:e.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!s)}}updateTooltipClass(t){let e=this.tooltipClass(t);if(e!=this.currentClass){for(let t of this.currentClass.split(" "))t&&this.dom.classList.remove(t);for(let t of e.split(" "))t&&this.dom.classList.add(t);this.currentClass=e}}positioned(t){this.space=t,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let t=this.view.state.field(this.stateField),e=t.open;if((e.selected>-1&&e.selected=this.range.to)&&(this.range=k(e.options.length,e.selected,this.view.state.facet(b).maxRenderedOptions),this.showOptions(e.options,t.id)),this.updateSelectedOption(e.selected)){this.destroyInfo();let{completion:n}=e.options[e.selected],{info:r}=n;if(!r)return;let i="string"==typeof r?document.createTextNode(r):r(n);if(!i)return;"then"in i?i.then((e=>{e&&this.view.state.field(this.stateField,!1)==t&&this.addInfoPane(e,n)})).catch((t=>(0,o.OO)(this.view.state,t,"completion info"))):this.addInfoPane(i,n)}}addInfoPane(t,e){this.destroyInfo();let n=this.info=document.createElement("div");if(n.className="cm-tooltip cm-completionInfo",null!=t.nodeType)n.appendChild(t),this.infoDestroy=null;else{let{dom:e,destroy:r}=t;n.appendChild(e),this.infoDestroy=r||null}this.dom.appendChild(n),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(t){let e=null;for(let n=this.list.firstChild,r=this.range.from;n;n=n.nextSibling,r++)"LI"==n.nodeName&&n.id?r==t?n.hasAttribute("aria-selected")||(n.setAttribute("aria-selected","true"),e=n):n.hasAttribute("aria-selected")&&n.removeAttribute("aria-selected"):r--;return e&&function(t,e){let n=t.getBoundingClientRect(),r=e.getBoundingClientRect(),o=n.height/t.offsetHeight;r.topn.bottom&&(t.scrollTop+=(r.bottom-n.bottom)/o)}(this.list,e),e}measureInfo(){let t=this.dom.querySelector("[aria-selected]");if(!t||!this.info)return null;let e=this.dom.getBoundingClientRect(),n=this.info.getBoundingClientRect(),r=t.getBoundingClientRect(),o=this.space;if(!o){let t=this.dom.ownerDocument.defaultView||window;o={left:0,top:0,right:t.innerWidth,bottom:t.innerHeight}}return r.top>Math.min(o.bottom,e.bottom)-10||r.bottomn.from||0==n.from)&&(o=t,"string"!=typeof l&&l.header?r.appendChild(l.header(l)):r.appendChild(document.createElement("completion-section")).textContent=t)}const c=r.appendChild(document.createElement("li"));c.id=e+"-"+i,c.setAttribute("role","option");let u=this.optionClass(s);u&&(c.className=u);for(let t of this.optionContent){let e=t(s,this.view.state,this.view,a);e&&c.appendChild(e)}}return n.from&&r.classList.add("cm-completionListIncompleteTop"),n.tonew O(n,t,e)}function S(t){return 100*(t.boost||0)+(t.apply?10:0)+(t.info?5:0)+(t.type?1:0)}class C{constructor(t,e,n,r,o,i){this.options=t,this.attrs=e,this.tooltip=n,this.timestamp=r,this.selected=o,this.disabled=i}setSelected(t,e){return t==this.selected||t>=this.options.length?this:new C(this.options,D(e,t),this.tooltip,this.timestamp,t,this.disabled)}static build(t,e,n,r,o){let i=function(t,e){let n=[],r=null,o=t=>{n.push(t);let{section:e}=t.completion;if(e){r||(r=[]);let t="string"==typeof e?e:e.name;r.some((e=>e.name==t))||r.push("string"==typeof e?{name:t}:e)}};for(let r of t)if(r.hasResult()){let t=r.result.getMatch;if(!1===r.result.filter)for(let e of r.result.options)o(new u(e,r.source,t?t(e):[],1e9-n.length));else{let n=new v(e.sliceDoc(r.from,r.to));for(let e of r.result.options)if(n.match(e.label)){let i=e.displayLabel?t?t(e,n.matched):[]:n.matched;o(new u(e,r.source,i,n.score+(e.boost||0)))}}}if(r){let t=Object.create(null),e=0,o=(t,e)=>{var n,r;return(null!==(n=t.rank)&&void 0!==n?n:1e9)-(null!==(r=e.rank)&&void 0!==r?r:1e9)||(t.namee.score-t.score||a(t.completion,e.completion)))){let e=t.completion;!s||s.label!=e.label||s.detail!=e.detail||null!=s.type&&null!=e.type&&s.type!=e.type||s.apply!=e.apply||s.boost!=e.boost?i.push(t):S(t.completion)>S(s)&&(i[i.length-1]=t),s=t.completion}return i}(t,e);if(!i.length)return r&&t.some((t=>1==t.state))?new C(r.options,r.attrs,r.tooltip,r.timestamp,r.selected,!0):null;let s=e.facet(b).selectOnOpen?0:-1;if(r&&r.selected!=s&&-1!=r.selected){let t=r.options[r.selected].completion;for(let e=0;ee.hasResult()?Math.min(t,e.from):t),1e8),create:q,above:o.aboveCursor},r?r.timestamp:Date.now(),s,!1)}map(t){return new C(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:t.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class j{constructor(t,e,n){this.active=t,this.id=e,this.open=n}static start(){return new j(T,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}update(t){let{state:e}=t,n=e.facet(b),r=(n.override||e.languageDataAt("autocomplete",f(e)).map(m)).map((e=>(this.active.find((t=>t.source==e))||new I(e,this.active.some((t=>0!=t.state))?1:0)).update(t,n)));r.length==this.active.length&&r.every(((t,e)=>t==this.active[e]))&&(r=this.active);let o=this.open;o&&t.docChanged&&(o=o.map(t.changes)),t.selection||r.some((e=>e.hasResult()&&t.changes.touchesRange(e.from,e.to)))||!function(t,e){if(t==e)return!0;for(let n=0,r=0;;){for(;n1==t.state))&&(o=null),!o&&r.every((t=>1!=t.state))&&r.some((t=>t.hasResult()))&&(r=r.map((t=>t.hasResult()?new I(t.source,0):t)));for(let e of t.effects)e.is(R)&&(o=o&&o.setSelected(e.value,this.id));return r==this.active&&o==this.open?this:new j(r,this.id,o)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:P}}const P={"aria-autocomplete":"list"};function D(t,e){let n={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":t};return e>-1&&(n["aria-activedescendant"]=t+"-"+e),n}const T=[];function E(t){return t.isUserEvent("input.type")?"input":t.isUserEvent("delete.backward")?"delete":null}class I{constructor(t,e,n=-1){this.source=t,this.state=e,this.explicitPos=n}hasResult(){return!1}update(t,e){let n=E(t),r=this;n?r=r.handleUserEvent(t,n,e):t.docChanged?r=r.handleChange(t):t.selection&&0!=r.state&&(r=new I(r.source,0));for(let e of t.effects)if(e.is(g))r=new I(r.source,1,e.value?f(t.state):-1);else if(e.is(y))r=new I(r.source,0);else if(e.is(B))for(let t of e.value)t.source==r.source&&(r=t);return r}handleUserEvent(t,e,n){return"delete"!=e&&n.activateOnTyping?new I(this.source,1):this.map(t.changes)}handleChange(t){return t.changes.touchesRange(f(t.startState))?new I(this.source,0):this.map(t.changes)}map(t){return t.empty||this.explicitPos<0?this:new I(this.source,this.state,t.mapPos(this.explicitPos))}}class M extends I{constructor(t,e,n,r,o){super(t,2,e),this.result=n,this.from=r,this.to=o}hasResult(){return!0}handleUserEvent(t,e,n){var r;let o=t.changes.mapPos(this.from),i=t.changes.mapPos(this.to,1),a=f(t.state);if((this.explicitPos<0?a<=o:ai||"delete"==e&&f(t.startState)==this.from)return new I(this.source,"input"==e&&n.activateOnTyping?1:0);let l,c=this.explicitPos<0?-1:t.changes.mapPos(this.explicitPos);return function(t,e,n,r){if(!t)return!1;let o=e.sliceDoc(n,r);return"function"==typeof t?t(o,n,r,e):h(t,!0).test(o)}(this.result.validFor,t.state,o,i)?new M(this.source,c,this.result,o,i):this.result.update&&(l=this.result.update(this.result,o,i,new s(t.state,a,c>=0)))?new M(this.source,c,l,l.from,null!==(r=l.to)&&void 0!==r?r:f(t.state)):new I(this.source,1,c)}handleChange(t){return t.changes.touchesRange(this.from,this.to)?new I(this.source,0):this.map(t.changes)}map(t){return t.empty?this:new M(this.source,this.explicitPos<0?-1:t.mapPos(this.explicitPos),this.result,t.mapPos(this.from),t.mapPos(this.to,1))}}const B=r.Py.define({map(t,e){return t.map((t=>t.map(e)))}}),R=r.Py.define(),Z=r.QQ.define({create(){return j.start()},update(t,e){return t.update(e)},provide:t=>[o.hJ.from(t,(t=>t.tooltip)),o.tk.contentAttributes.from(t,(t=>t.attrs))]});function L(t,e){const n=e.completion.apply||e.completion.label;let o=t.state.field(Z).active.find((t=>t.source==e.source));return o instanceof M&&("string"==typeof n?t.dispatch(Object.assign(Object.assign({},function(t,e,n,o){let{main:i}=t.selection,s=n-i.from,a=o-i.from;return Object.assign(Object.assign({},t.changeByRange((l=>l!=i&&n!=o&&t.sliceDoc(l.from+s,l.from+a)!=t.sliceDoc(n,o)?{range:l}:{changes:{from:l.from+s,to:o==i.from?l.to:l.from+a,insert:e},range:r.jT.cursor(l.from+s+e.length)}))),{scrollIntoView:!0,userEvent:"input.complete"})}(t.state,n,o.from,o.to)),{annotations:d.of(e.completion)})):n(t,e.completion,o.from,o.to),!0)}const q=A(Z,L);function F(t,e="option"){return n=>{let r=n.state.field(Z,!1);if(!r||!r.open||r.open.disabled||Date.now()-r.open.timestamp-1?r.open.selected+s*(t?1:-1):t?0:a-1;return l<0?l="page"==e?0:a-1:l>=a&&(l="page"==e?a-1:0),n.dispatch({effects:R.of(l)}),!0}}class N{constructor(t,e){this.active=t,this.context=e,this.time=Date.now(),this.updates=[],this.done=void 0}}const _=o.lg.fromClass(class{constructor(t){this.view=t,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.composing=0;for(let e of t.state.field(Z).active)1==e.state&&this.startQuery(e)}update(t){let e=t.state.field(Z);if(!t.selectionSet&&!t.docChanged&&t.startState.field(Z)==e)return;let n=t.transactions.some((t=>(t.selection||t.docChanged)&&!E(t)));for(let e=0;e50&&Date.now()-r.time>1e3){for(let t of r.context.abortListeners)try{t()}catch(t){(0,o.OO)(this.view.state,t)}r.context.abortListeners=null,this.running.splice(e--,1)}else r.updates.push(...t.transactions)}if(this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),this.debounceUpdate=e.active.some((t=>1==t.state&&!this.running.some((e=>e.active.source==t.source))))?setTimeout((()=>this.startUpdate()),50):-1,0!=this.composing)for(let e of t.transactions)"input"==E(e)?this.composing=2:2==this.composing&&e.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1;let{state:t}=this.view,e=t.field(Z);for(let t of e.active)1!=t.state||this.running.some((e=>e.active.source==t.source))||this.startQuery(t)}startQuery(t){let{state:e}=this.view,n=f(e),r=new s(e,n,t.explicitPos==n),i=new N(t,r);this.running.push(i),Promise.resolve(t.source(r)).then((t=>{i.context.aborted||(i.done=t||null,this.scheduleAccept())}),(t=>{this.view.dispatch({effects:y.of(null)}),(0,o.OO)(this.view.state,t)}))}scheduleAccept(){this.running.every((t=>void 0!==t.done))?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout((()=>this.accept()),this.view.state.facet(b).updateSyncTime))}accept(){var t;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],n=this.view.state.facet(b);for(let r=0;rt.source==o.active.source));if(i&&1==i.state)if(null==o.done){let t=new I(o.active.source,0);for(let e of o.updates)t=t.update(e,n);1!=t.state&&e.push(t)}else this.startQuery(i)}e.length&&this.view.dispatch({effects:B.of(e)})}},{eventHandlers:{blur(t){let e=this.view.state.field(Z,!1);if(e&&e.tooltip&&this.view.state.facet(b).closeOnBlur){let n=e.open&&(0,o.gB)(this.view,e.open.tooltip);n&&n.dom.contains(t.relatedTarget)||this.view.dispatch({effects:y.of(null)})}},compositionstart(){this.composing=1},compositionend(){3==this.composing&&setTimeout((()=>this.view.dispatch({effects:g.of(!1)})),20),this.composing=0}}}),J=o.tk.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:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&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"}}}),$={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},U=r.Py.define({map(t,e){let n=e.mapPos(t,-1,r.gc.TrackAfter);return null==n?void 0:n}}),V=new class extends r.uU{};V.startSide=1,V.endSide=-1;const z=r.QQ.define({create(){return r.Xs.empty},update(t,e){if(t=t.map(e.changes),e.selection){let n=e.state.doc.lineAt(e.selection.main.head);t=t.update({filter:t=>t>=n.from&&t<=n.to})}for(let n of e.effects)n.is(U)&&(t=t.update({add:[V.range(n.value,n.value+1)]}));return t}});function W(){return[K,z]}const H="()[]{}<>";function G(t){for(let e=0;e<8;e+=2)if(H.charCodeAt(e)==t)return H.charAt(e+1);return(0,r.bg)(t<128?t:t+1)}function Q(t,e){return t.languageDataAt("closeBrackets",e)[0]||$}const Y="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),K=o.tk.inputHandler.of(((t,e,n,o)=>{if((Y?t.composing:t.compositionStarted)||t.state.readOnly)return!1;let i=t.state.selection.main;if(o.length>2||2==o.length&&1==(0,r.nZ)((0,r.gm)(o,0))||e!=i.from||n!=i.to)return!1;let s=function(t,e){let n=Q(t,t.selection.main.head),o=n.brackets||$.brackets;for(let i of o){let s=G((0,r.gm)(i,0));if(e==i)return s==i?ot(t,i,o.indexOf(i+i+i)>-1,n):nt(t,i,s,n.before||$.before);if(e==s&&tt(t,t.selection.main.from))return rt(t,0,s)}return null}(t.state,o);return!!s&&(t.dispatch(s),!0)})),X=[{key:"Backspace",run:({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=Q(t,t.selection.main.head).brackets||$.brackets,o=null,i=t.changeByRange((e=>{if(e.empty){let o=function(t,e){let n=t.sliceString(e-2,e);return(0,r.nZ)((0,r.gm)(n,0))==n.length?n:n.slice(1)}(t.doc,e.head);for(let i of n)if(i==o&&et(t.doc,e.head)==G((0,r.gm)(i,0)))return{changes:{from:e.head-i.length,to:e.head+i.length},range:r.jT.cursor(e.head-i.length)}}return{range:o=e}}));return o||e(t.update(i,{scrollIntoView:!0,userEvent:"delete.backward"})),!o}}];function tt(t,e){let n=!1;return t.field(z).between(0,t.doc.length,(t=>{t==e&&(n=!0)})),n}function et(t,e){let n=t.sliceString(e,e+2);return n.slice(0,(0,r.nZ)((0,r.gm)(n,0)))}function nt(t,e,n,o){let i=null,s=t.changeByRange((s=>{if(!s.empty)return{changes:[{insert:e,from:s.from},{insert:n,from:s.to}],effects:U.of(s.to+e.length),range:r.jT.range(s.anchor+e.length,s.head+e.length)};let a=et(t.doc,s.head);return!a||/\s/.test(a)||o.indexOf(a)>-1?{changes:{insert:e+n,from:s.head},effects:U.of(s.head+e.length),range:r.jT.cursor(s.head+e.length)}:{range:i=s}}));return i?null:t.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function rt(t,e,n){let o=null,i=t.changeByRange((e=>e.empty&&et(t.doc,e.head)==n?{changes:{from:e.head,to:e.head+n.length,insert:n},range:r.jT.cursor(e.head+n.length)}:o={range:e}));return o?null:t.update(i,{scrollIntoView:!0,userEvent:"input.type"})}function ot(t,e,n,o){let s=o.stringPrefixes||$.stringPrefixes,a=null,l=t.changeByRange((o=>{if(!o.empty)return{changes:[{insert:e,from:o.from},{insert:e,from:o.to}],effects:U.of(o.to+e.length),range:r.jT.range(o.anchor+e.length,o.head+e.length)};let l,c=o.head,u=et(t.doc,c);if(u==e){if(it(t,c))return{changes:{insert:e+e,from:c},effects:U.of(c+e.length),range:r.jT.cursor(c+e.length)};if(tt(t,c)){let o=n&&t.sliceDoc(c,c+3*e.length)==e+e+e?e+e+e:e;return{changes:{from:c,to:c+o.length,insert:o},range:r.jT.cursor(c+o.length)}}}else{if(n&&t.sliceDoc(c-2*e.length,c)==e+e&&(l=st(t,c-2*e.length,s))>-1&&it(t,l))return{changes:{insert:e+e+e+e,from:c},effects:U.of(c+e.length),range:r.jT.cursor(c+e.length)};if(t.charCategorizer(c)(u)!=r.D0.Word&&st(t,c,s)>-1&&!function(t,e,n,r){let o=(0,i.qz)(t).resolveInner(e,-1),s=r.reduce(((t,e)=>Math.max(t,e.length)),0);for(let i=0;i<5;i++){let i=t.sliceDoc(o.from,Math.min(o.to,o.from+n.length+s)),a=i.indexOf(n);if(!a||a>-1&&r.indexOf(i.slice(0,a))>-1){let e=o.firstChild;for(;e&&e.from==o.from&&e.to-e.from>n.length+a;){if(t.sliceDoc(e.to-n.length,e.to)==n)return!1;e=e.firstChild}return!0}let l=o.to==e&&o.parent;if(!l)break;o=l}return!1}(t,c,e,s))return{changes:{insert:e+e,from:c},effects:U.of(c+e.length),range:r.jT.cursor(c+e.length)}}return{range:a=o}}));return a?null:t.update(l,{scrollIntoView:!0,userEvent:"input.type"})}function it(t,e){let n=(0,i.qz)(t).resolveInner(e+1);return n.parent&&n.from==e}function st(t,e,n){let o=t.charCategorizer(e);if(o(t.sliceDoc(e-1,e))!=r.D0.Word)return e;for(let i of n){let n=e-i.length;if(t.sliceDoc(n,e)==i&&o(t.sliceDoc(n-1,n))!=r.D0.Word)return n}return-1}function at(t={}){return[Z,b.of(t),_,ct,J]}const lt=[{key:"Ctrl-Space",run:t=>!!t.state.field(Z,!1)&&(t.dispatch({effects:g.of(!0)}),!0)},{key:"Escape",run:t=>{let e=t.state.field(Z,!1);return!(!e||!e.active.some((t=>0!=t.state))||(t.dispatch({effects:y.of(null)}),0))}},{key:"ArrowDown",run:F(!0)},{key:"ArrowUp",run:F(!1)},{key:"PageDown",run:F(!0,"page")},{key:"PageUp",run:F(!1,"page")},{key:"Enter",run:t=>{let e=t.state.field(Z,!1);return!(t.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestampt.facet(b).defaultKeymap?[lt]:[])))},25270:function(t,e,n){"use strict";n.d(e,{AV:function(){return s},bA:function(){return i}});var r=n(53528),o=n(43734);const i=o.qp.define({name:"json",parser:r.E.configure({props:[o.uj.add({Object:(0,o.tC)({except:/^\s*\}/}),Array:(0,o.tC)({except:/^\s*\]/})}),o.x0.add({"Object Array":o.Dv})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function s(){return new o.ri(i)}},43734:function(t,e,n){"use strict";n.d(e,{Dv:function(){return J},Gn:function(){return T},K0:function(){return D},R_:function(){return vt},SS:function(){return P},Um:function(){return Et},c:function(){return C},e7:function(){return tt},mi:function(){return ct},n$:function(){return jt},nF:function(){return mt},nY:function(){return F},qp:function(){return d},qz:function(){return p},ri:function(){return A},tC:function(){return L},uj:function(){return E},x0:function(){return _},y1:function(){return j}});var r,o=n(37979),i=n(40802),s=n(46820),a=n(17550),l=n(77079);const c=new o.md;const u=new o.md;class f{constructor(t,e,n=[],r=""){this.data=t,this.name=r,i.yy.prototype.hasOwnProperty("tree")||Object.defineProperty(i.yy.prototype,"tree",{get(){return p(this)}}),this.parser=e,this.extension=[O.of(this),i.yy.languageData.of(((t,e,n)=>{let r=h(t,e,n),o=r.type.prop(c);if(!o)return[];let i=t.facet(o),s=r.type.prop(u);if(s){let o=r.resolve(e-r.from,n);for(let e of s)if(e.test(o,t)){let n=t.facet(e.facet);return"replace"==e.type?n:n.concat(i)}}return i}))].concat(n)}isActiveAt(t,e,n=-1){return h(t,e,n).type.prop(c)==this.data}findRegions(t){let e=t.facet(O);if((null==e?void 0:e.data)==this.data)return[{from:0,to:t.doc.length}];if(!e||!e.allowsNesting)return[];let n=[],r=(t,e)=>{if(t.prop(c)==this.data)return void n.push({from:e,to:e+t.length});let i=t.prop(o.md.mounted);if(i){if(i.tree.prop(c)==this.data){if(i.overlay)for(let t of i.overlay)n.push({from:t.from+e,to:t.to+e});else n.push({from:e,to:e+t.length});return}if(i.overlay){let t=n.length;if(r(i.tree,i.overlay[0].from+e),n.length>t)return}}for(let n=0;nt.concat(n):void 0}));var n;return new d(e,t.parser.configure({props:[c.add((t=>t.isTop?e:void 0))]}),t.name)}configure(t,e){return new d(this.data,this.parser.configure(t),e||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function p(t){let e=t.field(f.state,!1);return e?e.tree:o.mp.empty}class m{constructor(t){this.doc=t,this.cursorPos=0,this.string="",this.cursor=t.iter()}get length(){return this.doc.length}syncTo(t){return this.string=this.cursor.next(t-this.cursorPos).value,this.cursorPos=t+this.string.length,this.cursorPos-this.string.length}chunk(t){return this.syncTo(t),this.string}get lineChunks(){return!0}read(t,e){let n=this.cursorPos-this.string.length;return t=this.cursorPos?this.doc.sliceString(t,e):this.string.slice(t-n,e-n)}}let g=null;class y{constructor(t,e,n=[],r,o,i,s,a){this.parser=t,this.state=e,this.fragments=n,this.tree=r,this.treeLen=o,this.viewport=i,this.skipped=s,this.scheduleOn=a,this.parse=null,this.tempSkipped=[]}static create(t,e,n){return new y(t,e,[],o.mp.empty,0,n,[],null)}startParse(){return this.parser.startParse(new m(this.state.doc),this.fragments)}work(t,e){return null!=e&&e>=this.state.doc.length&&(e=void 0),this.tree!=o.mp.empty&&this.isDone(null!=e?e:this.state.doc.length)?(this.takeTree(),!0):this.withContext((()=>{var n;if("number"==typeof t){let e=Date.now()+t;t=()=>Date.now()>e}for(this.parse||(this.parse=this.startParse()),null!=e&&(null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&e=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&this.parse.stopAt(t),this.withContext((()=>{for(;!(e=this.parse.advance()););})),this.treeLen=t,this.tree=e,this.fragments=this.withoutTempSkipped(o.i9.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(t){let e=g;g=this;try{return t()}finally{g=e}}withoutTempSkipped(t){for(let e;e=this.tempSkipped.pop();)t=v(t,e.from,e.to);return t}changes(t,e){let{fragments:n,tree:r,treeLen:i,viewport:s,skipped:a}=this;if(this.takeTree(),!t.empty){let e=[];if(t.iterChangedRanges(((t,n,r,o)=>e.push({fromA:t,toA:n,fromB:r,toB:o}))),n=o.i9.applyChanges(n,e),r=o.mp.empty,i=0,s={from:t.mapPos(s.from,-1),to:t.mapPos(s.to,1)},this.skipped.length){a=[];for(let e of this.skipped){let n=t.mapPos(e.from,1),r=t.mapPos(e.to,-1);nt.from&&(this.fragments=v(this.fragments,n,r),this.skipped.splice(e--,1))}return!(this.skipped.length>=e||(this.reset(),0))}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(t,e){this.skipped.push({from:t,to:e})}static getSkippingParser(t){return new class extends o._b{createParse(e,n,r){let i=r[0].from,s=r[r.length-1].to;return{parsedPos:i,advance(){let e=g;if(e){for(let t of r)e.tempSkipped.push(t);t&&(e.scheduleOn=e.scheduleOn?Promise.all([e.scheduleOn,t]):t)}return this.parsedPos=s,new o.mp(o.Jq.none,[],[],s-i)},stoppedAt:null,stopAt(){}}}}}isDone(t){t=Math.min(t,this.state.doc.length);let e=this.fragments;return this.treeLen>=t&&e.length&&0==e[0].from&&e[0].to>=t}static get(){return g}}function v(t,e,n){return o.i9.applyChanges(t,[{fromA:e,toA:n,fromB:e,toB:n}])}class b{constructor(t){this.context=t,this.tree=t.tree}apply(t){if(!t.docChanged&&this.tree==this.context.tree)return this;let e=this.context.changes(t.changes,t.state),n=this.context.treeLen==t.startState.doc.length?void 0:Math.max(t.changes.mapPos(this.context.treeLen),e.viewport.to);return e.work(20,n)||e.takeTree(),new b(e)}static init(t){let e=Math.min(3e3,t.doc.length),n=y.create(t.facet(O).parser,t,{from:0,to:e});return n.work(20,e)||n.takeTree(),new b(n)}}f.state=i.QQ.define({create:b.init,update(t,e){for(let t of e.effects)if(t.is(f.setState))return t.value;return e.startState.facet(O)!=e.state.facet(O)?b.init(e.state):t.apply(e)}});let w=t=>{let e=setTimeout((()=>t()),500);return()=>clearTimeout(e)};"undefined"!=typeof requestIdleCallback&&(w=t=>{let e=-1,n=setTimeout((()=>{e=requestIdleCallback(t,{timeout:400})}),100);return()=>e<0?clearTimeout(n):cancelIdleCallback(e)});const x="undefined"!=typeof navigator&&(null===(r=navigator.scheduling)||void 0===r?void 0:r.isInputPending)?()=>navigator.scheduling.isInputPending():null,k=s.lg.fromClass(class{constructor(t){this.view=t,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(t){let e=this.view.state.field(f.state).context;(e.updateViewport(t.view.viewport)||this.view.viewport.to>e.treeLen)&&this.scheduleWork(),(t.docChanged||t.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(e)}scheduleWork(){if(this.working)return;let{state:t}=this.view,e=t.field(f.state);e.tree==e.context.tree&&e.context.isDone(t.doc.length)||(this.working=w(this.work))}work(t){this.working=null;let e=Date.now();if(this.chunkEndr+1e3,a=o.context.work((()=>x&&x()||Date.now()>i),r+(s?0:1e5));this.chunkBudget-=Date.now()-e,(a||this.chunkBudget<=0)&&(o.context.takeTree(),this.view.dispatch({effects:f.setState.of(new b(o.context))})),this.chunkBudget>0&&(!a||s)&&this.scheduleWork(),this.checkAsyncSchedule(o.context)}checkAsyncSchedule(t){t.scheduleOn&&(this.workScheduled++,t.scheduleOn.then((()=>this.scheduleWork())).catch((t=>(0,s.OO)(this.view.state,t))).then((()=>this.workScheduled--)),t.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),O=i.r$.define({combine(t){return t.length?t[0]:null},enables:t=>[f.state,k,s.tk.contentAttributes.compute([t],(e=>{let n=e.facet(t);return n&&n.name?{"data-language":n.name}:{}}))]});class A{constructor(t,e=[]){this.language=t,this.support=e,this.extension=[t,e]}}const S=i.r$.define(),C=i.r$.define({combine:t=>{if(!t.length)return"  ";let e=t[0];if(!e||/\S/.test(e)||Array.from(e).some((t=>t!=e[0])))throw new Error("Invalid indent unit: "+JSON.stringify(t[0]));return e}});function j(t){let e=t.facet(C);return 9==e.charCodeAt(0)?t.tabSize*e.length:e.length}function P(t,e){let n="",r=t.tabSize,o=t.facet(C)[0];if("\t"==o){for(;e>=r;)n+="\t",e-=r;o=" "}for(let t=0;t=e?function(t,e,n){let r=e.resolveStack(n),o=r.node.enterUnfinishedNodesBefore(n);if(o!=r.node){let t=[];for(let e=o;e!=r.node;e=e.parent)t.push(e);for(let e=t.length-1;e>=0;e--)r={node:t[e],next:r}}return I(r,t,n)}(t,n,e):null}class T{constructor(t,e={}){this.state=t,this.options=e,this.unit=j(t)}lineAt(t,e=1){let n=this.state.doc.lineAt(t),{simulateBreak:r,simulateDoubleBreak:o}=this.options;return null!=r&&r>=n.from&&r<=n.to?o&&r==t?{text:"",from:t}:(e<0?r-1&&(o+=i-this.countColumn(n,n.search(/\S|$/))),o}countColumn(t,e=t.length){return(0,i.IS)(t,this.state.tabSize,e)}lineIndent(t,e=1){let{text:n,from:r}=this.lineAt(t,e),o=this.options.overrideIndentation;if(o){let t=o(r);if(t>-1)return t}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const E=new o.md;function I(t,e,n){for(let r=t;r;r=r.next){let t=M(r.node);if(t)return t(R.create(e,n,r))}return 0}function M(t){let e=t.type.prop(E);if(e)return e;let n,r=t.firstChild;if(r&&(n=r.type.prop(o.md.closedBy))){let e=t.lastChild,r=e&&n.indexOf(e.name)>-1;return t=>function(t,e,n,r,o){let i=t.textAfter,s=i.match(/^\s*/)[0].length,a=r&&i.slice(s,s+r.length)==r||o==t.pos+s,l=e?function(t){let e=t.node,n=e.childAfter(e.from),r=e.lastChild;if(!n)return null;let o=t.options.simulateBreak,i=t.state.doc.lineAt(n.from),s=null==o||o<=i.from?i.to:Math.min(i.to,o);for(let t=n.to;;){let o=e.childAfter(t);if(!o||o==r)return null;if(!o.type.isSkipped)return o.from{let r=t&&t.test(n.textAfter);return n.baseIndent+(r?0:e*n.unit)}}const q=200;function F(){return i.yy.transactionFilter.of((t=>{if(!t.docChanged||!t.isUserEvent("input.type")&&!t.isUserEvent("input.complete"))return t;let e=t.startState.languageDataAt("indentOnInput",t.startState.selection.main.head);if(!e.length)return t;let n=t.newDoc,{head:r}=t.newSelection.main,o=n.lineAt(r);if(r>o.from+q)return t;let i=n.sliceString(o.from,r);if(!e.some((t=>t.test(i))))return t;let{state:s}=t,a=-1,l=[];for(let{head:t}of s.selection.ranges){let e=s.doc.lineAt(t);if(e.from==a)continue;a=e.from;let n=D(s,e.from);if(null==n)continue;let r=/^\s*/.exec(e.text)[0],o=P(s,n);r!=o&&l.push({from:e.from,to:e.from+r.length,insert:o})}return l.length?[t,{changes:l,sequential:!0}]:t}))}const N=i.r$.define(),_=new o.md;function J(t){let e=t.firstChild,n=t.lastChild;return e&&e.ton)continue;if(o&&s.from=e&&r.to>n&&(o=r)}}return o}(t,e,n)}function V(t,e){let n=e.mapPos(t.from,1),r=e.mapPos(t.to,-1);return n>=r?void 0:{from:n,to:r}}const z=i.Py.define({map:V}),W=i.Py.define({map:V});function H(t){let e=[];for(let{head:n}of t.state.selection.ranges)e.some((t=>t.from<=n&&t.to>=n))||e.push(t.lineBlockAt(n));return e}const G=i.QQ.define({create(){return s.p.none},update(t,e){t=t.map(e.changes);for(let n of e.effects)if(n.is(z)&&!Y(t,n.value.from,n.value.to)){let{preparePlaceholder:r}=e.state.facet(nt),o=r?s.p.replace({widget:new st(r(e.state,n.value))}):it;t=t.update({add:[o.range(n.value.from,n.value.to)]})}else n.is(W)&&(t=t.update({filter:(t,e)=>n.value.from!=t||n.value.to!=e,filterFrom:n.value.from,filterTo:n.value.to}));if(e.selection){let n=!1,{head:r}=e.selection.main;t.between(r,r,((t,e)=>{tr&&(n=!0)})),n&&(t=t.update({filterFrom:r,filterTo:r,filter:(t,e)=>e<=r||t>=r}))}return t},provide:t=>s.tk.decorations.from(t),toJSON(t,e){let n=[];return t.between(0,e.doc.length,((t,e)=>{n.push(t,e)})),n},fromJSON(t){if(!Array.isArray(t)||t.length%2)throw new RangeError("Invalid JSON for fold state");let e=[];for(let n=0;n{(!o||o.from>t)&&(o={from:t,to:e})})),o}function Y(t,e,n){let r=!1;return t.between(e,e,((t,o)=>{t==e&&o==n&&(r=!0)})),r}function K(t,e){return t.field(G,!1)?e:e.concat(i.Py.appendConfig.of(rt()))}function X(t,e,n=!0){let r=t.state.doc.lineAt(e.from).number,o=t.state.doc.lineAt(e.to).number;return s.tk.announce.of(`${t.state.phrase(n?"Folded lines":"Unfolded lines")} ${r} ${t.state.phrase("to")} ${o}.`)}const tt=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:t=>{for(let e of H(t)){let n=U(t.state,e.from,e.to);if(n)return t.dispatch({effects:K(t.state,[z.of(n),X(t,n)])}),!0}return!1}},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:t=>{if(!t.state.field(G,!1))return!1;let e=[];for(let n of H(t)){let r=Q(t.state,n.from,n.to);r&&e.push(W.of(r),X(t,r,!1))}return e.length&&t.dispatch({effects:e}),e.length>0}},{key:"Ctrl-Alt-[",run:t=>{let{state:e}=t,n=[];for(let r=0;r{let e=t.state.field(G,!1);if(!e||!e.size)return!1;let n=[];return e.between(0,t.state.doc.length,((t,e)=>{n.push(W.of({from:t,to:e}))})),t.dispatch({effects:n}),!0}}],et={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},nt=i.r$.define({combine(t){return(0,i.BO)(t,et)}});function rt(t){let e=[G,ut];return t&&e.push(nt.of(t)),e}function ot(t,e){let{state:n}=t,r=n.facet(nt),o=e=>{let n=t.lineBlockAt(t.posAtDOM(e.target)),r=Q(t.state,n.from,n.to);r&&t.dispatch({effects:W.of(r)}),e.preventDefault()};if(r.placeholderDOM)return r.placeholderDOM(t,o,e);let 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}const it=s.p.replace({widget:new class extends s.l9{toDOM(t){return ot(t,null)}}});class st extends s.l9{constructor(t){super(),this.value=t}eq(t){return this.value==t.value}toDOM(t){return ot(t,this.value)}}const at={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class lt extends s.SJ{constructor(t,e){super(),this.config=t,this.open=e}eq(t){return this.config==t.config&&this.open==t.open}toDOM(t){if(this.config.markerDOM)return this.config.markerDOM(this.open);let e=document.createElement("span");return e.textContent=this.open?this.config.openText:this.config.closedText,e.title=t.state.phrase(this.open?"Fold line":"Unfold line"),e}}function ct(t={}){let e=Object.assign(Object.assign({},at),t),n=new lt(e,!0),r=new lt(e,!1),o=s.lg.fromClass(class{constructor(t){this.from=t.viewport.from,this.markers=this.buildMarkers(t)}update(t){(t.docChanged||t.viewportChanged||t.startState.facet(O)!=t.state.facet(O)||t.startState.field(G,!1)!=t.state.field(G,!1)||p(t.startState)!=p(t.state)||e.foldingChanged(t))&&(this.markers=this.buildMarkers(t.view))}buildMarkers(t){let e=new i.f_;for(let o of t.viewportLineBlocks){let i=Q(t.state,o.from,o.to)?r:U(t.state,o.from,o.to)?n:null;i&&e.add(o.from,o.from,i)}return e.finish()}}),{domEventHandlers:a}=e;return[o,(0,s.v5)({class:"cm-foldGutter",markers(t){var e;return(null===(e=t.plugin(o))||void 0===e?void 0:e.markers)||i.Xs.empty},initialSpacer(){return new lt(e,!1)},domEventHandlers:Object.assign(Object.assign({},a),{click:(t,e,n)=>{if(a.click&&a.click(t,e,n))return!0;let r=Q(t.state,e.from,e.to);if(r)return t.dispatch({effects:W.of(r)}),!0;let o=U(t.state,e.from,e.to);return!!o&&(t.dispatch({effects:z.of(o)}),!0)}})}),rt()]}const ut=s.tk.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"}});class ft{constructor(t,e){let n;function r(t){let e=l.V.newName();return(n||(n=Object.create(null)))["."+e]=t,e}this.specs=t;const o="string"==typeof e.all?e.all:e.all?r(e.all):void 0,i=e.scope;this.scope=i instanceof f?t=>t.prop(c)==i.data:i?t=>t==i:void 0,this.style=(0,a.QR)(t.map((t=>({tag:t.tag,class:t.class||r(Object.assign({},t,{tag:null}))}))),{all:o}).style,this.module=n?new l.V(n):null,this.themeType=e.themeType}static define(t,e){return new ft(t,e||{})}}const ht=i.r$.define(),dt=i.r$.define({combine(t){return t.length?[t[0]]:null}});function pt(t){let e=t.facet(ht);return e.length?e:t.facet(dt)}function mt(t,e){let n,r=[yt];return t instanceof ft&&(t.module&&r.push(s.tk.styleModule.of(t.module)),n=t.themeType),(null==e?void 0:e.fallback)?r.push(dt.of(t)):n?r.push(ht.computeN([s.tk.darkTheme],(e=>e.facet(s.tk.darkTheme)==("dark"==n)?[t]:[]))):r.push(ht.of(t)),r}class gt{constructor(t){this.markCache=Object.create(null),this.tree=p(t.state),this.decorations=this.buildDeco(t,pt(t.state))}update(t){let e=p(t.state),n=pt(t.state),r=n!=pt(t.startState);e.length{n.add(t,e,this.markCache[r]||(this.markCache[r]=s.p.mark({class:r})))}),r,o);return n.finish()}}const yt=i.Wl.high(s.lg.fromClass(gt,{decorations:t=>t.decorations})),vt=ft.define([{tag:a.pJ.meta,color:"#404740"},{tag:a.pJ.link,textDecoration:"underline"},{tag:a.pJ.heading,textDecoration:"underline",fontWeight:"bold"},{tag:a.pJ.emphasis,fontStyle:"italic"},{tag:a.pJ.strong,fontWeight:"bold"},{tag:a.pJ.strikethrough,textDecoration:"line-through"},{tag:a.pJ.keyword,color:"#708"},{tag:[a.pJ.atom,a.pJ.bool,a.pJ.url,a.pJ.contentSeparator,a.pJ.labelName],color:"#219"},{tag:[a.pJ.literal,a.pJ.inserted],color:"#164"},{tag:[a.pJ.string,a.pJ.deleted],color:"#a11"},{tag:[a.pJ.regexp,a.pJ.escape,a.pJ.special(a.pJ.string)],color:"#e40"},{tag:a.pJ.definition(a.pJ.variableName),color:"#00f"},{tag:a.pJ.local(a.pJ.variableName),color:"#30a"},{tag:[a.pJ.typeName,a.pJ.namespace],color:"#085"},{tag:a.pJ.className,color:"#167"},{tag:[a.pJ.special(a.pJ.variableName),a.pJ.macroName],color:"#256"},{tag:a.pJ.definition(a.pJ.propertyName),color:"#00c"},{tag:a.pJ.comment,color:"#940"},{tag:a.pJ.invalid,color:"#f00"}]),bt=s.tk.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),wt=1e4,xt="()[]{}",kt=i.r$.define({combine(t){return(0,i.BO)(t,{afterCursor:!0,brackets:xt,maxScanDistance:wt,renderMatch:St})}}),Ot=s.p.mark({class:"cm-matchingBracket"}),At=s.p.mark({class:"cm-nonmatchingBracket"});function St(t){let e=[],n=t.matched?Ot:At;return e.push(n.range(t.start.from,t.start.to)),t.end&&e.push(n.range(t.end.from,t.end.to)),e}const Ct=[i.QQ.define({create(){return s.p.none},update(t,e){if(!e.docChanged&&!e.selection)return t;let n=[],r=e.state.facet(kt);for(let t of e.state.selection.ranges){if(!t.empty)continue;let o=Et(e.state,t.head,-1,r)||t.head>0&&Et(e.state,t.head-1,1,r)||r.afterCursor&&(Et(e.state,t.head,1,r)||t.heads.tk.decorations.from(t)}),bt];function jt(t={}){return[kt.of(t),Ct]}const Pt=new o.md;function Dt(t,e,n){let r=t.prop(e<0?o.md.openedBy:o.md.closedBy);if(r)return r;if(1==t.name.length){let r=n.indexOf(t.name);if(r>-1&&r%2==(e<0?1:0))return[n[r+e]]}return null}function Tt(t){let e=t.type.prop(Pt);return e?e(t.node):t}function Et(t,e,n,r={}){let o=r.maxScanDistance||wt,i=r.brackets||xt,s=p(t),a=s.resolveInner(e,n);for(let t=a;t;t=t.parent){let r=Dt(t.type,n,i);if(r&&t.from0?e>=o.from&&eo.from&&e<=o.to))return It(0,0,n,t,o,r,i)}}return function(t,e,n,r,o,i,s){let a=n<0?t.sliceDoc(e-1,e):t.sliceDoc(e,e+1),l=s.indexOf(a);if(l<0||l%2==0!=n>0)return null;let c={from:n<0?e-1:e,to:n>0?e+1:e},u=t.doc.iterRange(e,n>0?t.doc.length:0),f=0;for(let t=0;!u.next().done&&t<=i;){let i=u.value;n<0&&(t+=i.length);let a=e+t*n;for(let t=n>0?0:i.length-1,e=n>0?i.length:-1;t!=e;t+=n){let e=s.indexOf(i[t]);if(!(e<0||r.resolveInner(a+t,1).type!=o))if(e%2==0==n>0)f++;else{if(1==f)return{start:c,end:{from:a+t,to:a+t+1},matched:e>>1==l>>1};f--}}n>0&&(t+=i.length)}return u.done?{start:c,matched:!1}:null}(t,e,n,s,a.type,o,i)}function It(t,e,n,r,o,i,s){let a=r.parent,l={from:o.from,to:o.to},c=0,u=null==a?void 0:a.cursor();if(u&&(n<0?u.childBefore(r.from):u.childAfter(r.to)))do{if(n<0?u.to<=r.from:u.from>=r.to){if(0==c&&i.indexOf(u.type.name)>-1&&u.from-1||(Rt.push(t),console.warn(e))}function Ft(t,e){let n=[];for(let r of e.split(" ")){let e=[];for(let n of r.split(".")){let r=t[n]||a.pJ[n];r?"function"==typeof r?e.length?e=e.map(r):qt(n,`Modifier ${n} used at start of tag`):e.length?qt(n,`Tag ${n} used as modifier`):e=Array.isArray(r)?r:[r]:qt(n,`Unknown highlighting tag ${n}`)}for(let t of e)n.push(t)}if(!n.length)return 0;let r=e.replace(/ /g,"_"),i=r+" "+n.map((t=>t.id)),s=Zt[i];if(s)return s.id;let l=Zt[i]=o.Jq.define({id:Bt.length,name:r,props:[(0,a.Gv)({[r]:n})]});return Bt.push(l),l.id}},18971:function(t,e,n){"use strict";function r(t,e,n){return function(t,e,n){const r=e<0?t.length+e:e;if(r>=0&&r{if(n.readOnly)return!1;let o=t(e,n);return!!o&&(r(n.update(o)),!0)}}const l=a(p,0),c=a(d,0),u=a(((t,e)=>d(t,e,function(t){let e=[];for(let n of t.selection.ranges){let r=t.doc.lineAt(n.from),o=n.to<=r.to?r:t.doc.lineAt(n.to),i=e.length-1;i>=0&&e[i].to>r.from?e[i].to=o.to:e.push({from:r.from+/^\s*/.exec(r.text)[0].length,to:o.to})}return e}(e))),0);function f(t,e){let n=t.languageDataAt("commentTokens",e);return n.length?n[0]:{}}const h=50;function d(t,e,n=e.selection.ranges){let r=n.map((t=>f(e,t.from).block));if(!r.every((t=>t)))return null;let o=n.map(((t,n)=>function(t,{open:e,close:n},r,o){let i,s,a=t.sliceDoc(r-h,r),l=t.sliceDoc(o,o+h),c=/\s*$/.exec(a)[0].length,u=/^\s*/.exec(l)[0].length,f=a.length-c;if(a.slice(f-e.length,f)==e&&l.slice(u,u+n.length)==n)return{open:{pos:r-c,margin:c&&1},close:{pos:o+u,margin:u&&1}};o-r<=2*h?i=s=t.sliceDoc(r,o):(i=t.sliceDoc(r,r+h),s=t.sliceDoc(o-h,o));let d=/^\s*/.exec(i)[0].length,p=/\s*$/.exec(s)[0].length,m=s.length-p-n.length;return i.slice(d,d+e.length)==e&&s.slice(m,m+n.length)==n?{open:{pos:r+d+e.length,margin:/\s/.test(i.charAt(d+e.length))?1:0},close:{pos:o-p-n.length,margin:/\s/.test(s.charAt(m-1))?1:0}}:null}(e,r[n],t.from,t.to)));if(2!=t&&!o.every((t=>t)))return{changes:e.changes(n.map(((t,e)=>o[e]?[]:[{from:t.from,insert:r[e].open+" "},{from:t.to,insert:" "+r[e].close}])))};if(1!=t&&o.some((t=>t))){let t=[];for(let e,n=0;no&&(t==i||i>l.from)){o=l.from;let t=/^\s*/.exec(l.text)[0].length,e=t==l.length,n=l.text.slice(t,t+a.length)==a?t:-1;tt.comment<0&&(!t.empty||t.single)))){let t=[];for(let{line:e,token:n,indent:o,empty:i,single:s}of r)!s&&i||t.push({from:e.from+o,insert:n+" "});let n=e.changes(t);return{changes:n,selection:e.selection.map(n,1)}}if(1!=t&&r.some((t=>t.comment>=0))){let t=[];for(let{line:e,comment:n,token:o}of r)if(n>=0){let r=e.from+n,i=r+o.length;" "==e.text[i-e.from]&&i++,t.push({from:r,to:i})}return{changes:t}}return null}const m=o.q6.define(),g=o.q6.define(),y=o.r$.define(),v=o.r$.define({combine(t){return(0,o.BO)(t,{minDepth:100,newGroupDelay:500,joinToEvent:(t,e)=>e},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(t,e)=>(n,r)=>t(n,r)||e(n,r)})}}),b=o.QQ.define({create(){return Z.empty},update(t,e){let n=e.state.facet(v),r=e.annotation(m);if(r){let o=C.fromTransaction(e,r.selection),i=r.side,s=0==i?t.undone:t.done;return s=o?j(s,s.length,n.minDepth,o):E(s,e.startState.selection),new Z(0==i?r.rest:s,0==i?s:r.rest)}let i=e.annotation(g);if("full"!=i&&"before"!=i||(t=t.isolate()),!1===e.annotation(o.YW.addToHistory))return e.changes.empty?t:t.addMapping(e.changes.desc);let s=C.fromTransaction(e),a=e.annotation(o.YW.time),l=e.annotation(o.YW.userEvent);return s?t=t.addChanges(s,a,l,n,e):e.selection&&(t=t.addSelection(e.startState.selection,a,l,n.newGroupDelay)),"full"!=i&&"after"!=i||(t=t.isolate()),t},toJSON(t){return{done:t.done.map((t=>t.toJSON())),undone:t.undone.map((t=>t.toJSON()))}},fromJSON(t){return new Z(t.done.map(C.fromJSON),t.undone.map(C.fromJSON))}});function w(t={}){return[b,v.of(t),r.tk.domEventHandlers({beforeinput(t,e){let n="historyUndo"==t.inputType?k:"historyRedo"==t.inputType?O:null;return!!n&&(t.preventDefault(),n(e))}})]}function x(t,e){return function({state:n,dispatch:r}){if(!e&&n.readOnly)return!1;let o=n.field(b,!1);if(!o)return!1;let i=o.pop(t,n,e);return!!i&&(r(i),!0)}}const k=x(0,!1),O=x(1,!1),A=x(0,!0),S=x(1,!0);class C{constructor(t,e,n,r,o){this.changes=t,this.effects=e,this.mapped=n,this.startSelection=r,this.selectionsAfter=o}setSelAfter(t){return new C(this.changes,this.effects,this.mapped,this.startSelection,t)}toJSON(){var t,e,n;return{changes:null===(t=this.changes)||void 0===t?void 0:t.toJSON(),mapped:null===(e=this.mapped)||void 0===e?void 0:e.toJSON(),startSelection:null===(n=this.startSelection)||void 0===n?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map((t=>t.toJSON()))}}static fromJSON(t){return new C(t.changes&&o.as.fromJSON(t.changes),[],t.mapped&&o.n0.fromJSON(t.mapped),t.startSelection&&o.jT.fromJSON(t.startSelection),t.selectionsAfter.map(o.jT.fromJSON))}static fromTransaction(t,e){let n=D;for(let e of t.startState.facet(y)){let r=e(t);r.length&&(n=n.concat(r))}return!n.length&&t.changes.empty?null:new C(t.changes.invert(t.startState.doc),n,void 0,e||t.startState.selection,D)}static selection(t){return new C(void 0,D,void 0,void 0,t)}}function j(t,e,n,r){let o=e+1>n+20?e-n-1:0,i=t.slice(o,e);return i.push(r),i}function P(t,e){return t.length?e.length?t.concat(e):t:e}const D=[],T=200;function E(t,e){if(t.length){let n=t[t.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-T));return r.length&&r[r.length-1].eq(e)?t:(r.push(e),j(t,t.length-1,1e9,n.setSelAfter(r)))}return[C.selection([e])]}function I(t){let e=t[t.length-1],n=t.slice();return n[t.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),n}function M(t,e){if(!t.length)return t;let n=t.length,r=D;for(;n;){let o=B(t[n-1],e,r);if(o.changes&&!o.changes.empty||o.effects.length){let e=t.slice(0,n);return e[n-1]=o,e}e=o.mapped,n--,r=o.selectionsAfter}return r.length?[C.selection(r)]:D}function B(t,e,n){let r=P(t.selectionsAfter.length?t.selectionsAfter.map((t=>t.map(e))):D,n);if(!t.changes)return C.selection(r);let i=t.changes.map(e),s=e.mapDesc(t.changes,!0),a=t.mapped?t.mapped.composeDesc(s):s;return new C(i,o.Py.mapEffects(t.effects,e),a,t.startSelection.map(s),r)}const R=/^(input\.type|delete)($|\.)/;class Z{constructor(t,e,n=0,r=void 0){this.done=t,this.undone=e,this.prevTime=n,this.prevUserEvent=r}isolate(){return this.prevTime?new Z(this.done,this.undone):this}addChanges(t,e,n,r,o){let i=this.done,s=i[i.length-1];return i=s&&s.changes&&!s.changes.empty&&t.changes&&(!n||R.test(n))&&(!s.selectionsAfter.length&&e-this.prevTimen.push(t,e))),e.iterChangedRanges(((t,e,o,i)=>{for(let t=0;t=e&&o<=s&&(r=!0)}})),r}(s.changes,t.changes))||"input.type.compose"==n)?j(i,i.length-1,r.minDepth,new C(t.changes.compose(s.changes),P(t.effects,s.effects),s.mapped,s.startSelection,D)):j(i,i.length,r.minDepth,t),new Z(i,D,e,n)}addSelection(t,e,n,r){let o=this.done.length?this.done[this.done.length-1].selectionsAfter:D;return o.length>0&&e-this.prevTimet.empty!=s.ranges[e].empty)).length)?this:new Z(E(this.done,t),this.undone,e,n);var i,s}addMapping(t){return new Z(M(this.done,t),M(this.undone,t),this.prevTime,this.prevUserEvent)}pop(t,e,n){let r=0==t?this.done:this.undone;if(0==r.length)return null;let o=r[r.length-1],i=o.selectionsAfter[0]||e.selection;if(n&&o.selectionsAfter.length)return e.update({selection:o.selectionsAfter[o.selectionsAfter.length-1],annotations:m.of({side:t,rest:I(r),selection:i}),userEvent:0==t?"select.undo":"select.redo",scrollIntoView:!0});if(o.changes){let n=1==r.length?D:r.slice(0,r.length-1);return o.mapped&&(n=M(n,o.mapped)),e.update({changes:o.changes,selection:o.startSelection,effects:o.effects,annotations:m.of({side:t,rest:n,selection:i}),filter:!1,userEvent:0==t?"undo":"redo",scrollIntoView:!0})}return null}}Z.empty=new Z(D,D);const L=[{key:"Mod-z",run:k,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:O,preventDefault:!0},{linux:"Ctrl-Shift-z",run:O,preventDefault:!0},{key:"Mod-u",run:A,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:S,preventDefault:!0}];function q(t,e){return o.jT.create(t.ranges.map(e),t.mainIndex)}function F(t,e){return t.update({selection:e,scrollIntoView:!0,userEvent:"select"})}function N({state:t,dispatch:e},n){let r=q(t.selection,n);return!r.eq(t.selection)&&(e(F(t,r)),!0)}function _(t,e){return o.jT.cursor(e?t.to:t.from)}function J(t,e){return N(t,(n=>n.empty?t.moveByChar(n,e):_(n,e)))}function $(t){return t.textDirectionAt(t.state.selection.main.head)==r.Nm.LTR}const U=t=>J(t,!$(t)),V=t=>J(t,$(t));function z(t,e){return N(t,(n=>n.empty?t.moveByGroup(n,e):_(n,e)))}function W(t,e,n){if(e.type.prop(n))return!0;let r=e.to-e.from;return r&&(r>2||/[^\s,.;:]/.test(t.sliceDoc(e.from,e.to)))||e.firstChild}function H(t,e,n){let r,a,l=(0,i.qz)(t).resolveInner(e.head),c=n?s.md.closedBy:s.md.openedBy;for(let r=e.head;;){let e=n?l.childAfter(r):l.childBefore(r);if(!e)break;W(t,e,c)?l=e:r=n?e.to:e.from}return a=l.type.prop(c)&&(r=n?(0,i.Um)(t,l.from,1):(0,i.Um)(t,l.to,-1))&&r.matched?n?r.end.to:r.end.from:n?l.to:l.from,o.jT.cursor(a,n?-1:1)}function G(t,e){return N(t,(n=>{if(!n.empty)return _(n,e);let r=t.moveVertically(n,e);return r.head!=n.head?r:t.moveToLineBoundary(n,e)}))}"undefined"!=typeof Intl&&Intl.Segmenter;const Q=t=>G(t,!1),Y=t=>G(t,!0);function K(t){let e,n=t.scrollDOM.clientHeightn.empty?t.moveVertically(n,e,o.height):_(n,e)));if(s.eq(i.selection))return!1;if(o.selfScroll){let e=t.coordsAtPos(i.selection.main.head),a=t.scrollDOM.getBoundingClientRect(),l=a.top+o.marginTop,c=a.bottom-o.marginBottom;e&&e.top>l&&e.bottomX(t,!1),et=t=>X(t,!0);function nt(t,e,n){let r=t.lineBlockAt(e.head),i=t.moveToLineBoundary(e,n);if(i.head==e.head&&i.head!=(n?r.to:r.from)&&(i=t.moveToLineBoundary(e,n,!1)),!n&&i.head==r.from&&r.length){let n=/^\s*/.exec(t.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;n&&e.head!=r.from+n&&(i=o.jT.cursor(r.from+n))}return i}function rt(t,e){let n=q(t.state.selection,(t=>{let n=e(t);return o.jT.range(t.anchor,n.head,n.goalColumn,n.bidiLevel||void 0)}));return!n.eq(t.state.selection)&&(t.dispatch(F(t.state,n)),!0)}function ot(t,e){return rt(t,(n=>t.moveByChar(n,e)))}const it=t=>ot(t,!$(t)),st=t=>ot(t,$(t));function at(t,e){return rt(t,(n=>t.moveByGroup(n,e)))}function lt(t,e){return rt(t,(n=>t.moveVertically(n,e)))}const ct=t=>lt(t,!1),ut=t=>lt(t,!0);function ft(t,e){return rt(t,(n=>t.moveVertically(n,e,K(t).height)))}const ht=t=>ft(t,!1),dt=t=>ft(t,!0),pt=({state:t,dispatch:e})=>(e(F(t,{anchor:0})),!0),mt=({state:t,dispatch:e})=>(e(F(t,{anchor:t.doc.length})),!0),gt=({state:t,dispatch:e})=>(e(F(t,{anchor:t.selection.main.anchor,head:0})),!0),yt=({state:t,dispatch:e})=>(e(F(t,{anchor:t.selection.main.anchor,head:t.doc.length})),!0);function vt(t,e){if(t.state.readOnly)return!1;let n="delete.selection",{state:i}=t,s=i.changeByRange((r=>{let{from:i,to:s}=r;if(i==s){let o=e(r);oi&&(n="delete.forward",o=bt(t,o,!0)),i=Math.min(i,o),s=Math.max(s,o)}else i=bt(t,i,!1),s=bt(t,s,!0);return i==s?{range:r}:{changes:{from:i,to:s},range:o.jT.cursor(i,ie(t))))o.between(e,e,((t,r)=>{te&&(e=n?r:t)}));return e}const wt=(t,e)=>vt(t,(n=>{let r,s,a=n.from,{state:l}=t,c=l.doc.lineAt(a);if(!e&&a>c.from&&awt(t,!1),kt=t=>wt(t,!0),Ot=(t,e)=>vt(t,(n=>{let r=n.head,{state:i}=t,s=i.doc.lineAt(r),a=i.charCategorizer(r);for(let t=null;;){if(r==(e?s.to:s.from)){r==n.head&&s.number!=(e?i.doc.lines:1)&&(r+=e?1:-1);break}let l=(0,o.cp)(s.text,r-s.from,e)+s.from,c=s.text.slice(Math.min(r,l)-s.from,Math.max(r,l)-s.from),u=a(c);if(null!=t&&u!=t)break;" "==c&&r==n.head||(t=u),r=l}return r})),At=t=>Ot(t,!1);function St(t){let e=[],n=-1;for(let r of t.selection.ranges){let o=t.doc.lineAt(r.from),i=t.doc.lineAt(r.to);if(r.empty||r.to!=i.from||(i=t.doc.lineAt(r.to-1)),n>=o.number){let t=e[e.length-1];t.to=i.to,t.ranges.push(r)}else e.push({from:o.from,to:i.to,ranges:[r]});n=i.number+1}return e}function Ct(t,e,n){if(t.readOnly)return!1;let r=[],i=[];for(let e of St(t)){if(n?e.to==t.doc.length:0==e.from)continue;let s=t.doc.lineAt(n?e.to+1:e.from-1),a=s.length+1;if(n){r.push({from:e.to,to:s.to},{from:e.from,insert:s.text+t.lineBreak});for(let n of e.ranges)i.push(o.jT.range(Math.min(t.doc.length,n.anchor+a),Math.min(t.doc.length,n.head+a)))}else{r.push({from:s.from,to:e.from},{from:e.to,insert:t.lineBreak+s.text});for(let t of e.ranges)i.push(o.jT.range(t.anchor-a,t.head-a))}}return!!r.length&&(e(t.update({changes:r,scrollIntoView:!0,selection:o.jT.create(i,t.selection.mainIndex),userEvent:"move.line"})),!0)}function jt(t,e,n){if(t.readOnly)return!1;let r=[];for(let e of St(t))n?r.push({from:e.from,insert:t.doc.slice(e.from,e.to)+t.lineBreak}):r.push({from:e.to,insert:t.lineBreak+t.doc.slice(e.from,e.to)});return e(t.update({changes:r,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const Pt=Dt(!1);function Dt(t){return({state:e,dispatch:n})=>{if(e.readOnly)return!1;let r=e.changeByRange((n=>{let{from:r,to:a}=n,l=e.doc.lineAt(r),c=!t&&r==a&&function(t,e){if(/\(\)|\[\]|\{\}/.test(t.sliceDoc(e-1,e+1)))return{from:e,to:e};let n,r=(0,i.qz)(t).resolveInner(e),o=r.childBefore(e),a=r.childAfter(e);return o&&a&&o.to<=e&&a.from>=e&&(n=o.type.prop(s.md.closedBy))&&n.indexOf(a.name)>-1&&t.doc.lineAt(o.to).from==t.doc.lineAt(a.from).from&&!/\S/.test(t.sliceDoc(o.to,a.from))?{from:o.to,to:a.from}:null}(e,r);t&&(r=a=(a<=l.to?l:e.doc.lineAt(a)).to);let u=new i.Gn(e,{simulateBreak:r,simulateDoubleBreak:!!c}),f=(0,i.K0)(u,r);for(null==f&&(f=(0,o.IS)(/^\s*/.exec(e.doc.lineAt(r).text)[0],e.tabSize));al.from&&r{let i=[];for(let o=r.from;o<=r.to;){let s=t.doc.lineAt(o);s.number>n&&(r.empty||r.to>s.from)&&(e(s,i,r),n=s.number),o=s.to+1}let s=t.changes(i);return{changes:i,range:o.jT.range(s.mapPos(r.anchor,1),s.mapPos(r.head,1))}}))}const Et=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:t=>N(t,(e=>H(t.state,e,!$(t)))),shift:t=>rt(t,(e=>H(t.state,e,!$(t))))},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:t=>N(t,(e=>H(t.state,e,$(t)))),shift:t=>rt(t,(e=>H(t.state,e,$(t))))},{key:"Alt-ArrowUp",run:({state:t,dispatch:e})=>Ct(t,e,!1)},{key:"Shift-Alt-ArrowUp",run:({state:t,dispatch:e})=>jt(t,e,!1)},{key:"Alt-ArrowDown",run:({state:t,dispatch:e})=>Ct(t,e,!0)},{key:"Shift-Alt-ArrowDown",run:({state:t,dispatch:e})=>jt(t,e,!0)},{key:"Escape",run:({state:t,dispatch:e})=>{let n=t.selection,r=null;return n.ranges.length>1?r=o.jT.create([n.main]):n.main.empty||(r=o.jT.create([o.jT.cursor(n.main.head)])),!!r&&(e(F(t,r)),!0)}},{key:"Mod-Enter",run:Dt(!0)},{key:"Alt-l",mac:"Ctrl-l",run:({state:t,dispatch:e})=>{let n=St(t).map((({from:e,to:n})=>o.jT.range(e,Math.min(n+1,t.doc.length))));return e(t.update({selection:o.jT.create(n),userEvent:"select"})),!0}},{key:"Mod-i",run:({state:t,dispatch:e})=>{let n=q(t.selection,(e=>{var n;for(let r=(0,i.qz)(t).resolveStack(e.from,1);r;r=r.next){let{node:t}=r;if((t.from=e.to||t.to>e.to&&t.from<=e.from)&&(null===(n=t.parent)||void 0===n?void 0:n.parent))return o.jT.range(t.to,t.from)}return e}));return e(F(t,n)),!0},preventDefault:!0},{key:"Mod-[",run:({state:t,dispatch:e})=>!t.readOnly&&(e(t.update(Tt(t,((e,n)=>{let r=/^\s*/.exec(e.text)[0];if(!r)return;let s=(0,o.IS)(r,t.tabSize),a=0,l=(0,i.SS)(t,Math.max(0,s-(0,i.y1)(t)));for(;a!t.readOnly&&(e(t.update(Tt(t,((e,n)=>{n.push({from:e.from,insert:t.facet(i.c)})})),{userEvent:"input.indent"})),!0)},{key:"Mod-Alt-\\",run:({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=Object.create(null),r=new i.Gn(t,{overrideIndentation:t=>{let e=n[t];return null==e?-1:e}}),o=Tt(t,((e,o,s)=>{let a=(0,i.K0)(r,e.from);if(null==a)return;/\S/.test(e.text)||(a=0);let l=/^\s*/.exec(e.text)[0],c=(0,i.SS)(t,a);(l!=c||s.from{if(t.state.readOnly)return!1;let{state:e}=t,n=e.changes(St(e).map((({from:t,to:n})=>(t>0?t--:nt.moveVertically(e,!0))).map(n);return t.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:"delete.line"}),!0}},{key:"Shift-Mod-\\",run:({state:t,dispatch:e})=>function(t,e,n){let r=!1,s=q(t.selection,(e=>{let s=(0,i.Um)(t,e.head,-1)||(0,i.Um)(t,e.head,1)||e.head>0&&(0,i.Um)(t,e.head-1,1)||e.head{let{state:e}=t,n=e.doc.lineAt(e.selection.main.from),r=f(t.state,n.from);return r.line?l(t):!!r.block&&u(t)}},{key:"Alt-A",run:c}].concat([{key:"ArrowLeft",run:U,shift:it,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:t=>z(t,!$(t)),shift:t=>at(t,!$(t)),preventDefault:!0},{mac:"Cmd-ArrowLeft",run:t=>N(t,(e=>nt(t,e,!$(t)))),shift:t=>rt(t,(e=>nt(t,e,!$(t)))),preventDefault:!0},{key:"ArrowRight",run:V,shift:st,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:t=>z(t,$(t)),shift:t=>at(t,$(t)),preventDefault:!0},{mac:"Cmd-ArrowRight",run:t=>N(t,(e=>nt(t,e,$(t)))),shift:t=>rt(t,(e=>nt(t,e,$(t)))),preventDefault:!0},{key:"ArrowUp",run:Q,shift:ct,preventDefault:!0},{mac:"Cmd-ArrowUp",run:pt,shift:gt},{mac:"Ctrl-ArrowUp",run:tt,shift:ht},{key:"ArrowDown",run:Y,shift:ut,preventDefault:!0},{mac:"Cmd-ArrowDown",run:mt,shift:yt},{mac:"Ctrl-ArrowDown",run:et,shift:dt},{key:"PageUp",run:tt,shift:ht},{key:"PageDown",run:et,shift:dt},{key:"Home",run:t=>N(t,(e=>nt(t,e,!1))),shift:t=>rt(t,(e=>nt(t,e,!1))),preventDefault:!0},{key:"Mod-Home",run:pt,shift:gt},{key:"End",run:t=>N(t,(e=>nt(t,e,!0))),shift:t=>rt(t,(e=>nt(t,e,!0))),preventDefault:!0},{key:"Mod-End",run:mt,shift:yt},{key:"Enter",run:Pt},{key:"Mod-a",run:({state:t,dispatch:e})=>(e(t.update({selection:{anchor:0,head:t.doc.length},userEvent:"select"})),!0)},{key:"Backspace",run:xt,shift:xt},{key:"Delete",run:kt},{key:"Mod-Backspace",mac:"Alt-Backspace",run:At},{key:"Mod-Delete",mac:"Alt-Delete",run:t=>Ot(t,!0)},{mac:"Mod-Backspace",run:t=>vt(t,(e=>{let n=t.moveToLineBoundary(e,!1).head;return e.head>n?n:Math.max(0,e.head-1)}))},{mac:"Mod-Delete",run:t=>vt(t,(e=>{let n=t.moveToLineBoundary(e,!0).head;return e.headN(t,(e=>o.jT.cursor(t.lineBlockAt(e.head).from,1))),shift:t=>rt(t,(e=>o.jT.cursor(t.lineBlockAt(e.head).from)))},{key:"Ctrl-e",run:t=>N(t,(e=>o.jT.cursor(t.lineBlockAt(e.head).to,-1))),shift:t=>rt(t,(e=>o.jT.cursor(t.lineBlockAt(e.head).to)))},{key:"Ctrl-d",run:kt},{key:"Ctrl-h",run:xt},{key:"Ctrl-k",run:t=>vt(t,(e=>{let n=t.lineBlockAt(e.head).to;return e.head{if(t.readOnly)return!1;let n=t.changeByRange((t=>({changes:{from:t.from,to:t.to,insert:o.xv.of(["",""])},range:o.jT.cursor(t.from)})));return e(t.update(n,{scrollIntoView:!0,userEvent:"input"})),!0}},{key:"Ctrl-t",run:({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=t.changeByRange((e=>{if(!e.empty||0==e.from||e.from==t.doc.length)return{range:e};let n=e.from,r=t.doc.lineAt(n),i=n==r.from?n-1:(0,o.cp)(r.text,n-r.from,!1)+r.from,s=n==r.to?n+1:(0,o.cp)(r.text,n-r.from,!0)+r.from;return{changes:{from:i,to:s,insert:t.doc.slice(n,s).append(t.doc.slice(i,n))},range:o.jT.cursor(s)}}));return!n.changes.empty&&(e(t.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Ctrl-v",run:et}].map((t=>({mac:t.key,run:t.run,shift:t.shift})))));var It=n(50179),Mt=n(65147),Bt=n(17350);class Rt{constructor(t,e,n){this.from=t,this.to=e,this.diagnostic=n}}class Zt{constructor(t,e,n){this.diagnostics=t,this.panel=e,this.selected=n}static init(t,e,n){let o=t,i=n.facet(Wt).markerFilter;i&&(o=i(o));let s=r.p.set(o.map((t=>t.from==t.to||t.from==t.to-1&&n.doc.lineAt(t.from).to==t.from?r.p.widget({widget:new Qt(t),diagnostic:t}).range(t.from):r.p.mark({attributes:{class:"cm-lintRange cm-lintRange-"+t.severity+(t.markClass?" "+t.markClass:"")},diagnostic:t}).range(t.from,t.to))),!0);return new Zt(s,e,Lt(s))}}function Lt(t,e=null,n=0){let r=null;return t.between(n,1e9,((t,n,{spec:o})=>{if(!e||o.diagnostic==e)return r=new Rt(t,n,o.diagnostic),!1})),r}const qt=o.Py.define(),Ft=o.Py.define(),Nt=o.Py.define(),_t=o.QQ.define({create(){return new Zt(r.p.none,null,null)},update(t,e){if(e.docChanged){let n=t.diagnostics.map(e.changes),r=null;if(t.selected){let o=e.changes.mapPos(t.selected.from,1);r=Lt(n,t.selected.diagnostic,o)||Lt(n,null,o)}t=new Zt(n,t.panel,r)}for(let n of e.effects)n.is(qt)?t=Zt.init(n.value,t.panel,e.state):n.is(Ft)?t=new Zt(t.diagnostics,n.value?Kt.open:null,t.selected):n.is(Nt)&&(t=new Zt(t.diagnostics,t.panel,n.value));return t},provide:t=>[r.mH.from(t,(t=>t.panel)),r.tk.decorations.from(t,(t=>t.diagnostics))]}),Jt=r.p.mark({class:"cm-lintRange cm-lintRange-active"});function $t(t,e,n){let{diagnostics:r}=t.state.field(_t),o=[],i=2e8,s=0;r.between(e-(n<0?1:0),e+(n>0?1:0),((t,r,{spec:a})=>{e>=t&&e<=r&&(t==r||(e>t||n>0)&&(eGt(t,e,!1))))}const Vt=t=>{let e=t.state.field(_t,!1);return!(!e||!e.panel||(t.dispatch({effects:Ft.of(!1)}),0))},zt=[{key:"Mod-Shift-m",run:t=>{let e=t.state.field(_t,!1);var n,i;e&&e.panel||t.dispatch({effects:(n=t.state,i=[Ft.of(!0)],n.field(_t,!1)?i:i.concat(o.Py.appendConfig.of(ee)))});let s=(0,r.Sd)(t,Kt.open);return s&&s.dom.querySelector(".cm-panel-lint ul").focus(),!0},preventDefault:!0},{key:"F8",run:t=>{let e=t.state.field(_t,!1);if(!e)return!1;let n=t.state.selection.main,r=e.diagnostics.iter(n.to+1);return!(!r.value&&(r=e.diagnostics.iter(0),!r.value||r.from==n.from&&r.to==n.to)||(t.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0}),0))}}],Wt=o.r$.define({combine(t){return Object.assign({sources:t.map((t=>t.source))},(0,o.BO)(t.map((t=>t.config)),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null},{needsRefresh:(t,e)=>t?e?n=>t(n)||e(n):t:e}))}});function Ht(t){let e=[];if(t)t:for(let{name:n}of t){for(let t=0;tt.toLowerCase()==r.toLowerCase()))){e.push(r);continue t}}e.push("")}return e}function Gt(t,e,n){var r;let o=n?Ht(e.actions):[];return(0,Bt.Z)("li",{class:"cm-diagnostic cm-diagnostic-"+e.severity},(0,Bt.Z)("span",{class:"cm-diagnosticText"},e.renderMessage?e.renderMessage():e.message),null===(r=e.actions)||void 0===r?void 0:r.map(((n,r)=>{let i=!1,s=r=>{if(r.preventDefault(),i)return;i=!0;let o=Lt(t.state.field(_t).diagnostics,e);o&&n.apply(t,o.from,o.to)},{name:a}=n,l=o[r]?a.indexOf(o[r]):-1,c=l<0?a:[a.slice(0,l),(0,Bt.Z)("u",a.slice(l,l+1)),a.slice(l+1)];return(0,Bt.Z)("button",{type:"button",class:"cm-diagnosticAction",onclick:s,onmousedown:s,"aria-label":` Action: ${a}${l<0?"":` (access key "${o[r]})"`}.`},c)})),e.source&&(0,Bt.Z)("div",{class:"cm-diagnosticSource"},e.source))}class Qt extends r.l9{constructor(t){super(),this.diagnostic=t}eq(t){return t.diagnostic==this.diagnostic}toDOM(){return(0,Bt.Z)("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class Yt{constructor(t,e){this.diagnostic=e,this.id="item_"+Math.floor(4294967295*Math.random()).toString(16),this.dom=Gt(t,e,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class Kt{constructor(t){this.view=t,this.items=[],this.list=(0,Bt.Z)("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:e=>{if(27==e.keyCode)Vt(this.view),this.view.focus();else if(38==e.keyCode||33==e.keyCode)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(40==e.keyCode||34==e.keyCode)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(36==e.keyCode)this.moveSelection(0);else if(35==e.keyCode)this.moveSelection(this.items.length-1);else if(13==e.keyCode)this.view.focus();else{if(!(e.keyCode>=65&&e.keyCode<=90&&this.selectedIndex>=0))return;{let{diagnostic:n}=this.items[this.selectedIndex],r=Ht(n.actions);for(let o=0;o{for(let e=0;eVt(this.view)},"×")),this.update()}get selectedIndex(){let t=this.view.state.field(_t).selected;if(!t)return-1;for(let e=0;e{let a,l=-1;for(let t=n;tn&&(this.items.splice(n,l-n),r=!0)),e&&a.diagnostic==e.diagnostic?a.dom.hasAttribute("aria-selected")||(a.dom.setAttribute("aria-selected","true"),o=a):a.dom.hasAttribute("aria-selected")&&a.dom.removeAttribute("aria-selected"),n++}));n({sel:o.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:t,panel:e})=>{let n=e.height/this.list.offsetHeight;t.tope.bottom&&(this.list.scrollTop+=(t.bottom-e.bottom)/n)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),r&&this.sync()}sync(){let t=this.list.firstChild;function e(){let e=t;t=e.nextSibling,e.remove()}for(let n of this.items)if(n.dom.parentNode==this.list){for(;t!=n.dom;)e();t=n.dom.nextSibling}else this.list.insertBefore(n.dom,t);for(;t;)e()}moveSelection(t){if(this.selectedIndex<0)return;let e=Lt(this.view.state.field(_t).diagnostics,this.items[t].diagnostic);e&&this.view.dispatch({selection:{anchor:e.from,head:e.to},scrollIntoView:!0,effects:Nt.of(e)})}static open(t){return new Kt(t)}}function Xt(t){return function(t,e='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,${encodeURIComponent(t)}')`}(``,'width="6" height="3"')}const te=r.tk.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:Xt("#d11")},".cm-lintRange-warning":{backgroundImage:Xt("orange")},".cm-lintRange-info":{backgroundImage:Xt("#999")},".cm-lintRange-hint":{backgroundImage:Xt("#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}}});r.SJ;const ee=[_t,r.tk.decorations.compute([_t],(t=>{let{selected:e,panel:n}=t.field(_t);return e&&n&&e.from!=e.to?r.p.set([Jt.range(e.from,e.to)]):r.p.none})),(0,r.bF)($t,{hideOn:function(t,e){let n=t.startState.doc.lineAt(e.pos);return!(!t.effects.some((t=>t.is(qt)))&&!t.changes.touchesRange(n.from,n.to))}}),te],ne=(()=>[(0,r.Eu)(),(0,r.HQ)(),(0,r.AE)(),w(),(0,i.mi)(),(0,r.Uw)(),(0,r.qr)(),o.yy.allowMultipleSelections.of(!0),(0,i.nY)(),(0,i.nF)(i.R_,{fallback:!0}),(0,i.n$)(),(0,Mt.vQ)(),(0,Mt.ys)(),(0,r.Zs)(),(0,r.S2)(),(0,r.ZO)(),(0,It.sW)(),r.$f.of([...Mt.GA,...Et,...It.Lp,...L,...i.e7,...Mt.B1,...zt])])()}}]);




© 2015 - 2024 Weber Informatics LLC | Privacy Policy