(this.webpackJsonph5=this.webpackJsonph5||[]).push([[222],{1608:function(e,t,r){"use strict";r.r(t);var n,i=(o.prototype._stopWorker=function(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null},o.prototype.dispose=function(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()},o.prototype._checkIfIdle=function(){this._worker&&12e4e?n=i:r=i+1}var o=r-1;return l.create(o,e-t[o])},tt.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var r=t[e.line],n=e.line+1e?n=i:r=i+1}var o=r-1;return{line:o,character:e-t[o]}},ut.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var r=t[e.line],n=e.line+1r.line||t.line===r.line&&t.character>r.character?{start:r,end:t}:e}function ft(e){var t=lt(e.range);return t!==e.range?{newText:e.newText,range:t}:e}function ht(e,t){for(var r,n,i=[],o=2;o()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/}},Tt=(Object.defineProperty(Et.prototype,"children",{get:function(){return[]},enumerable:!0,configurable:!0}),Et.prototype.toString=function(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")},Et);function Et(e,t,r){this.offset=t,this.length=r,this.parent=e}function Ot(e,t){var r=vt.call(this,e,t)||this;return r.type="array",r.items=[],r}function jt(e,t){var r=xt.call(this,e,t)||this;return r.type="property",r.colonOffset=-1,r}function Pt(e,t){var r=St.call(this,e,t)||this;return r.type="object",r.properties=[],r}function Mt(e){return ee(e)?e?{}:{not:{}}:e}At((function(e,t){var r=dt.call(this,e,t)||this;return r.type="null",r.value=null,r}),dt=Tt),At((function(e,t,r){var n=gt.call(this,e,r)||this;return n.type="boolean",n.value=t,n}),gt=Tt),At(Ot,vt=Tt),Object.defineProperty(Ot.prototype,"children",{get:function(){return this.items},enumerable:!0,configurable:!0}),At((function(e,t){var r=yt.call(this,e,t)||this;return r.type="number",r.isInteger=!0,r.value=Number.NaN,r}),yt=Tt),At((function(e,t,r){var n=bt.call(this,e,t,r)||this;return n.type="string",n.value="",n}),bt=Tt),At(jt,xt=Tt),Object.defineProperty(jt.prototype,"children",{get:function(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]},enumerable:!0,configurable:!0}),At(Pt,St=Tt),Object.defineProperty(Pt.prototype,"children",{get:function(){return this.properties},enumerable:!0,configurable:!0}),(Ct=kt=kt||{})[Ct.Key=0]="Key",Ct[Ct.Enum=1]="Enum";var _t=(Vt.prototype.add=function(e){this.schemas.push(e)},Vt.prototype.merge=function(e){var t;(t=this.schemas).push.apply(t,e.schemas)},Vt.prototype.include=function(e){return(-1===this.focusOffset||Wt(e,this.focusOffset))&&e!==this.exclude},Vt.prototype.newSub=function(){return new Vt(-1,this.exclude)},Vt);function Vt(e,t){void 0===e&&(e=-1),void 0===t&&(t=null),this.focusOffset=e,this.exclude=t,this.schemas=[]}var Ft=(Object.defineProperty(Nt.prototype,"schemas",{get:function(){return[]},enumerable:!0,configurable:!0}),Nt.prototype.add=function(e){},Nt.prototype.merge=function(e){},Nt.prototype.include=function(e){return!0},Nt.prototype.newSub=function(){return this},Nt.instance=new Nt,Nt);function Nt(){}var Rt=($t.prototype.hasProblems=function(){return!!this.problems.length},$t.prototype.mergeAll=function(e){for(var t=0,r=e;t=e.offset&&tt.maxProperties&&r.problems.push({location:{offset:e.offset,length:e.length},severity:j.Warning,message:wt("MaxPropWarning","Object has more properties than limit of {0}.",t.maxProperties)}),Q(t.minProperties)&&e.properties.length=i.length&&r.propertiesValueMatches++}if(e.items.length>i.length)if("object"==typeof t.additionalItems)for(var u=i.length;ut.maxItems&&r.problems.push({location:{offset:e.offset,length:e.length},severity:j.Warning,message:wt("maxItemsWarning","Array has too many items. Expected {0} or fewer.",t.maxItems)}),!0===t.uniqueItems){var m=Lt(e);m.some((function(e,t){return t!==m.lastIndexOf(e)}))&&r.problems.push({location:{offset:e.offset,length:e.length},severity:j.Warning,message:wt("uniqueItemsWarning","Array has duplicate items.")})}}(e,t,r,n);break;case"string":!function(e,t,r){if(Q(t.minLength)&&e.value.lengtht.maxLength&&r.problems.push({location:{offset:e.offset,length:e.length},severity:j.Warning,message:wt("maxLengthWarning","String is longer than the maximum length of {0}.",t.maxLength)}),function(e){return"string"==typeof e}(t.pattern)&&(new RegExp(t.pattern).test(e.value)||r.problems.push({location:{offset:e.offset,length:e.length},severity:j.Warning,message:t.patternErrorMessage||t.errorMessage||wt("patternWarning",'String does not match the pattern of "{0}".',t.pattern)})),t.format)switch(t.format){case"uri":case"uri-reference":var n=void 0;if(e.value){var i=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(e.value);i?i[2]||"uri"!==t.format||(n=wt("uriSchemeMissing","URI with a scheme is expected.")):n=wt("uriMissing","URI is expected.")}else n=wt("uriEmpty","URI expected.");n&&r.problems.push({location:{offset:e.offset,length:e.length},severity:j.Warning,message:t.patternErrorMessage||t.errorMessage||wt("uriFormatWarning","String is not a URI: {0}",n)});break;case"color-hex":case"date-time":case"date":case"time":case"email":var o=It[t.format];e.value&&o.pattern.exec(e.value)||r.problems.push({location:{offset:e.offset,length:e.length},severity:j.Warning,message:t.patternErrorMessage||t.errorMessage||o.errorMessage})}}(e,t,r);break;case"number":!function(e,t,r){var n=e.value;function i(e,t){return Q(t)?t:ee(t)&&t?e:void 0}function o(e,t){if(!ee(t)||!t)return e}Q(t.multipleOf)&&n%t.multipleOf!=0&&r.problems.push({location:{offset:e.offset,length:e.length},severity:j.Warning,message:wt("multipleOfWarning","Value is not divisible by {0}.",t.multipleOf)});var a=i(t.minimum,t.exclusiveMinimum);Q(a)&&n<=a&&r.problems.push({location:{offset:e.offset,length:e.length},severity:j.Warning,message:wt("exclusiveMinimumWarning","Value is below the exclusive minimum of {0}.",a)});var s=i(t.maximum,t.exclusiveMaximum);Q(s)&&s<=n&&r.problems.push({location:{offset:e.offset,length:e.length},severity:j.Warning,message:wt("exclusiveMaximumWarning","Value is above the exclusive maximum of {0}.",s)});var u=o(t.minimum,t.exclusiveMinimum);Q(u)&&n=(s=t).offset&&ut.colonOffset){var c=t.valueNode;if(c&&(r>c.offset+c.length||"object"===c.type||"array"===c.type))return;var l=t.keyNode.value;e.visit((function(e){return"property"===e.type&&e.keyNode.value===l&&e.valueNode&&s(e.valueNode),!0})),"$schema"===l&&t.parent&&!t.parent.parent&&this.addDollarSchemaCompletions(u,i)}if("array"===t.type)if(t.parent&&"property"===t.parent.type){var f=t.parent.keyNode.value;e.visit((function(e){return"property"===e.type&&e.keyNode.value===f&&e.valueNode&&"array"===e.valueNode.type&&e.valueNode.items.forEach(s),!0}))}else t.items.forEach(s)},Jt.prototype.getValueCompletions=function(e,t,r,n,i,o,a){var s=this,u=n,c=null,l=null;if(!r||"string"!==r.type&&"number"!==r.type&&"boolean"!==r.type&&"null"!==r.type||(u=r.offset+r.length,r=(l=r).parent),r){if("property"===r.type&&n>r.colonOffset){var f=r.valueNode;if(f&&n>f.offset+f.length)return;c=r.keyNode.value,r=r.parent}if(r&&(null!==c||"array"===r.type)){var h=this.evaluateSeparatorAfter(i,u);t.getMatchingSchemas(e.schema,r.offset,l).forEach((function(e){if(e.node===r&&!e.inverted&&e.schema){if("array"===r.type&&e.schema.items)if(Array.isArray(e.schema.items)){var t=s.findItemAtOffset(r,i,n);tt.colonOffset){var a=t.keyNode.value,s=t.valueNode;if(!s||r<=s.offset+s.length){var u=Dt(t.parent);this.contributions.forEach((function(e){var t=e.collectValueCompletions(n.uri,u,a,i);t&&o.push(t)}))}}}else this.contributions.forEach((function(e){var t=e.collectDefaultCompletions(n.uri,i);t&&o.push(t)}))},Jt.prototype.addSchemaValueCompletions=function(e,t,r,n){var i=this;"object"==typeof e&&(this.addEnumValueCompletions(e,t,r),this.addDefaultValueCompletions(e,t,r),this.collectTypes(e,n),Array.isArray(e.allOf)&&e.allOf.forEach((function(e){return i.addSchemaValueCompletions(e,t,r,n)})),Array.isArray(e.anyOf)&&e.anyOf.forEach((function(e){return i.addSchemaValueCompletions(e,t,r,n)})),Array.isArray(e.oneOf)&&e.oneOf.forEach((function(e){return i.addSchemaValueCompletions(e,t,r,n)})))},Jt.prototype.addDefaultValueCompletions=function(e,t,r,n){var i=this;void 0===n&&(n=0);var o=!1;if(Y(e.default)){for(var a=e.type,s=e.default,u=n;0a.offset+a.length)return n.setPosition(a.offset+a.length),5===n.scan()&&r>=n.getTokenOffset()+n.getTokenLength()?o+1:o;if(r>=a.offset)return o}return 0},Jt.prototype.isInComment=function(e,t,r){var n=G(e.getText(),!1);n.setPosition(t);for(var i=n.scan();17!==i&&n.getTokenOffset()+n.getTokenLength()