diff --git a/dist/redoc.min.js b/dist/redoc.min.js index 8386ab89..87c84e48 100644 --- a/dist/redoc.min.js +++ b/dist/redoc.min.js @@ -2499,35 +2499,41 @@ Prism.languages.scala = Prism.languages.extend('java', { delete Prism.languages.scala['class-name']; delete Prism.languages.scala['function']; -!function(a){function b(a,b,e){return 4===arguments.length?c.apply(this,arguments):void d(a,{declarative:!0,deps:b,declare:e})}function c(a,b,c,e){d(a,{declarative:!1,deps:b,executingRequire:c,execute:e})}function d(a,b){b.name=a,a in p||(p[a]=b),b.normalizedDeps=b.deps}function e(a,b){if(b[a.groupIndex]=b[a.groupIndex]||[],-1==q.call(b[a.groupIndex],a)){b[a.groupIndex].push(a);for(var c=0,d=a.normalizedDeps.length;d>c;c++){var f=a.normalizedDeps[c],g=p[f];if(g&&!g.evaluated){var h=a.groupIndex+(g.declarative!=a.declarative);if(void 0===g.groupIndex||g.groupIndex=0;f--){for(var g=c[f],i=0;if;f++){var h=c.importers[f];if(!h.locked)for(var i=0;if;f++){var j,k=b.normalizedDeps[f],l=p[k],m=u[k];m?j=m.exports:l&&!l.declarative?j=l.esModule:l?(h(l),m=l.module,j=m.exports):j=o(k),m&&m.importers?(m.importers.push(c),c.dependencies.push(m)):c.dependencies.push(null),c.setters[f]&&c.setters[f](j)}}}function i(a){var b,c=p[a];if(c)c.declarative?n(a,[]):c.evaluated||j(c),b=c.module.exports;else if(b=o(a),!b)throw new Error("Unable to load dependency "+a+".");return(!c||c.declarative)&&b&&b.__useDefault?b["default"]:b}function j(b){if(!b.module){var c={},d=b.module={exports:c,id:b.name};if(!b.executingRequire)for(var e=0,f=b.normalizedDeps.length;f>e;e++){var g=b.normalizedDeps[e],h=p[g];h&&j(h)}b.evaluated=!0;var l=b.execute.call(a,function(a){for(var c=0,d=b.deps.length;d>c;c++)if(b.deps[c]==a)return i(b.normalizedDeps[c]);throw new TypeError("Module "+a+" not declared as a dependency.")},c,d);l&&(d.exports=l),c=d.exports,c&&c.__esModule?b.esModule=c:b.esModule=k(c)}}function k(a){var b={};if("object"==typeof a||"function"==typeof a){var c=a&&a.hasOwnProperty;if(r)for(var d in a)m(b,a,d)||l(b,a,d,c);else for(var d in a)l(b,a,d,c)}return b["default"]=a,t(b,"__useDefault",{value:!0}),b}function l(a,b,c,d){(!d||b.hasOwnProperty(c))&&(a[c]=b[c])}function m(a,b,c){try{var d;return(d=Object.getOwnPropertyDescriptor(b,c))&&t(a,c,d),!0}catch(e){return!1}}function n(b,c){var d=p[b];if(d&&!d.evaluated&&d.declarative){c.push(b);for(var e=0,f=d.normalizedDeps.length;f>e;e++){var g=d.normalizedDeps[e];-1==q.call(c,g)&&(p[g]?n(g,c):o(g))}d.evaluated||(d.evaluated=!0,d.module.execute.call(a))}}function o(a){if(w[a])return w[a];if("@node/"==a.substr(0,6))return v(a.substr(6));var b=p[a];if(!b)throw"Module "+a+" not present.";return f(a),n(a,[]),p[a]=void 0,b.declarative&&t(b.module.exports,"__esModule",{value:!0}),w[a]=b.declarative?b.module.exports:b.esModule}var p={},q=Array.prototype.indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(this[b]===a)return b;return-1},r=!0;try{Object.getOwnPropertyDescriptor({a:0},"a")}catch(s){r=!1}var t;!function(){try{Object.defineProperty({},"a",{})&&(t=Object.defineProperty)}catch(a){t=function(a,b,c){try{a[b]=c.value||c.get.call(a)}catch(d){}}}}();var u={},v="undefined"!=typeof System&&System._nodeRequire||"undefined"!=typeof require&&require.resolve&&"undefined"!=typeof process&&require,w={"@empty":{}};return function(a,d,e){return function(f){f(function(f){for(var g={_nodeRequire:v,register:b,registerDynamic:c,get:o,set:function(a,b){w[a]=b},newModule:function(a){return a}},h=0;h1)for(var h=1;hb;b++)if(this[b]===a)return b;return-1},k=["_g","sessionStorage","localStorage","clipboardData","frames","frameElement","external","mozAnimationStartTime","webkitStorageInfo","webkitIndexedDB","mozInnerScreenY","mozInnerScreenX"];h.set("@@global-helpers",h.newModule({prepareGlobal:function(a,c,e){var h=b.define;b.define=void 0;var i;if(e){i={};for(var j in e)i[j]=b[j],b[j]=e[j]}return c||(g={},f(function(a,b){g[a]=b})),function(){var a;if(c)a=d(c);else{a={};var e,j;f(function(b,c){g[b]!==c&&"undefined"!=typeof c&&(a[b]=c,"undefined"!=typeof e?j||e===c||(j=!0):e=c)}),a=j?a:e}if(i)for(var k in i)b[k]=i[k];return b.define=h,a}}}))}("undefined"!=typeof self?self:global),a.register("3",[],function(){return{setters:[],execute:function(){}}}),a.register("4",[],function(){return{setters:[],execute:function(){}}}),a.register("5",[],function(){return{setters:[],execute:function(){}}}),a.register("6",[],function(){return{setters:[],execute:function(){}}}),a.registerDynamic("7",[],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=function(a){function b(b){a.call(this,b)}return d(b,a),Object.defineProperty(b.prototype,"wrapperMessage",{get:function(){return""},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"wrapperStack",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"originalException",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"originalStack",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"context",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"message",{get:function(){return""},enumerable:!0,configurable:!0}),b}(Error);return b.BaseWrappedException=e,c.exports}),a.registerDynamic("8",["9"],!0,function(a,b,c){"use strict";function d(a,b){if(h.isPresent(a))for(var c=0;c-1?(a.splice(c,1),!0):!1},a.clear=function(a){a.length=0},a.isEmpty=function(a){return 0==a.length},a.fill=function(a,b,c,d){void 0===c&&(c=0),void 0===d&&(d=null),a.fill(b,c,null===d?a.length:d)},a.equals=function(a,b){if(a.length!=b.length)return!1;for(var c=0;cd&&(c=f,d=g)}}return c},a.flatten=function(a){var b=[];return d(a,b),b},a.addAll=function(a,b){for(var c=0;c=e})),d._directiveAsts.length>0&&e++,d=d._parent;return b=this._viewContext.viewQueries.get(a),m.isPresent(b)&&n.ListWrapper.addAll(c,b),c},a.prototype._getOrCreateLocalProvider=function(a,b,c){var f=this,g=this._allProviders.get(b);if(m.isBlank(g)||(a===o.ProviderAstType.Directive||a===o.ProviderAstType.PublicService)&&g.providerType===o.ProviderAstType.PrivateService||(a===o.ProviderAstType.PrivateService||a===o.ProviderAstType.PublicService)&&g.providerType===o.ProviderAstType.Builtin)return null;var h=this._transformedProviders.get(b);if(m.isPresent(h))return h;if(m.isPresent(this._seenProviders.get(b)))return this._viewContext.errors.push(new s("Cannot instantiate cyclic dependency! "+b.name,this._sourceSpan)),null;this._seenProviders.add(b,!0);var i=g.providers.map(function(a){var b,e=a.useValue,h=a.useExisting;if(m.isPresent(a.useExisting)){var i=f._getDependency(g.providerType,new p.CompileDiDependencyMetadata({token:a.useExisting}),c);m.isPresent(i.token)?h=i.token:(h=null,e=i.value)}else if(m.isPresent(a.useFactory)){var j=m.isPresent(a.deps)?a.deps:a.useFactory.diDeps;b=j.map(function(a){return f._getDependency(g.providerType,a,c)})}else if(m.isPresent(a.useClass)){var j=m.isPresent(a.deps)?a.deps:a.useClass.diDeps;b=j.map(function(a){return f._getDependency(g.providerType,a,c)})}return d(a,{useExisting:h,useValue:e,deps:b})});return h=e(g,{eager:c,providers:i}),this._transformedProviders.add(b,h),h},a.prototype._getLocalDependency=function(a,b,c){if(void 0===c&&(c=null),b.isAttribute){var d=this._attrs[b.token.value];return new p.CompileDiDependencyMetadata({isValue:!0,value:m.normalizeBlank(d)})}if(m.isPresent(b.query)||m.isPresent(b.viewQuery))return b;if(m.isPresent(b.token)){if(a===o.ProviderAstType.Directive||a===o.ProviderAstType.Component){if(b.token.equalsTo(q.identifierToken(q.Identifiers.Renderer))||b.token.equalsTo(q.identifierToken(q.Identifiers.ElementRef))||b.token.equalsTo(q.identifierToken(q.Identifiers.ChangeDetectorRef))||b.token.equalsTo(q.identifierToken(q.Identifiers.TemplateRef)))return b;b.token.equalsTo(q.identifierToken(q.Identifiers.ViewContainerRef))&&(this._hasViewContainer=!0)}if(b.token.equalsTo(q.identifierToken(q.Identifiers.Injector)))return b;if(m.isPresent(this._getOrCreateLocalProvider(a,b.token,c)))return b}return null},a.prototype._getDependency=function(a,b,c){void 0===c&&(c=null);var d=this,e=c,f=null;if(b.isSkipSelf||(f=this._getLocalDependency(a,b,c)),b.isSelf)m.isBlank(f)&&b.isOptional&&(f=new p.CompileDiDependencyMetadata({isValue:!0,value:null}));else{for(;m.isBlank(f)&&m.isPresent(d._parent);){var g=d;d=d._parent,g._isViewRoot&&(e=!1),f=d._getLocalDependency(o.ProviderAstType.PublicService,b,e)}m.isBlank(f)&&(f=!b.isHost||this._viewContext.component.type.isHost||q.identifierToken(this._viewContext.component.type).equalsTo(b.token)||m.isPresent(this._viewContext.viewProviders.get(b.token))?b:b.isOptional?f=new p.CompileDiDependencyMetadata({isValue:!0,value:null}):null)}return m.isBlank(f)&&this._viewContext.errors.push(new s("No provider for "+b.token.name,this._sourceSpan)),f},a}();return b.ProviderElementContext=u,c.exports}),a.registerDynamic("1b",["15","1c","12","17","11","1d","1e","1f","20","1a","18","21","22","23","24","25","14","19","16","26"],!0,function(a,b,c){return function(c){"use strict";function d(a){return k.StringWrapper.split(a.trim(),/\s+/g)}function e(a,b){var c=new s.CssSelector,e=p.splitNsName(a)[1];c.setElement(e);for(var f=0;f0;c||b.push(a)}),b}var g=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},h=a("15"),i=a("1c"),j=a("12"),k=a("17"),l=a("11"),m=a("1d"),n=a("1e"),o=a("1f"),p=a("20"),q=a("1a"),r=a("18"),s=a("21"),t=a("22"),u=a("23"),v=a("24"),w=a("25"),x=a("14"),y=a("19"),z=a("16"),A=/^(?:(?:(?:(bind-)|(var-)|(let-)|(ref-|#)|(on-)|(bindon-))(.+))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/g,B="template",C="template",D="*",E="class",F=".",G="attr",H="class",I="style",J=s.CssSelector.parse("*")[0];b.TEMPLATE_TRANSFORMS=new h.OpaqueToken("TemplateTransforms");var K=function(a){function b(b,c,d){a.call(this,c,b,d)}return g(b,a),b}(q.ParseError);b.TemplateParseError=K;var L=function(){function a(a,b){this.templateAst=a,this.errors=b}return a}();b.TemplateParseResult=L;var M=function(){function a(a,b,c,d,e){this._exprParser=a,this._schemaRegistry=b,this._htmlParser=c,this._console=d,this.transforms=e}return a.prototype.parse=function(a,b,c,d,e){var f=this.tryParse(a,b,c,d,e),g=f.errors.filter(function(a){return a.level===q.ParseErrorLevel.WARNING}),h=f.errors.filter(function(a){return a.level===q.ParseErrorLevel.FATAL});if(g.length>0&&this._console.warn("Template parse warnings:\n"+g.join("\n")),h.length>0){var i=h.join("\n");throw new l.BaseException("Template parse errors:\n"+i)}return f.templateAst},a.prototype.tryParse=function(a,b,c,d,e){var g,h=this._htmlParser.parse(b,e),i=h.errors;if(h.rootNodes.length>0){var j=f(c),l=f(d),m=new z.ProviderViewContext(a,h.rootNodes[0].sourceSpan),n=new N(m,j,l,this._exprParser,this._schemaRegistry);g=w.htmlVisitAll(n,h.rootNodes,S),i=i.concat(n.errors).concat(m.errors)}else g=[];return i.length>0?new L(g,i):(k.isPresent(this.transforms)&&this.transforms.forEach(function(a){g=r.templateVisitAll(a,g)}),new L(g,i))},a.decorators=[{type:h.Injectable}],a.ctorParameters=[{type:n.Parser},{type:t.ElementSchemaRegistry},{type:o.HtmlParser},{type:i.Console},{type:void 0,decorators:[{type:h.Optional},{type:h.Inject,args:[b.TEMPLATE_TRANSFORMS]}]}],a}();b.TemplateParser=M;var N=function(){function a(a,b,c,d,e){var f=this;this.providerViewContext=a,this._exprParser=d,this._schemaRegistry=e,this.errors=[],this.directivesIndex=new Map,this.ngContentCount=0,this.selectorMatcher=new s.SelectorMatcher,j.ListWrapper.forEachWithIndex(b,function(a,b){var c=s.CssSelector.parse(a.selector);f.selectorMatcher.addSelectables(c,a),f.directivesIndex.set(a,b)}),this.pipesByName=new Map,c.forEach(function(a){return f.pipesByName.set(a.name,a)})}return a.prototype._reportError=function(a,b,c){void 0===c&&(c=q.ParseErrorLevel.FATAL),this.errors.push(new K(a,b,c))},a.prototype._parseInterpolation=function(a,b){var c=b.start.toString();try{var d=this._exprParser.parseInterpolation(a,c);if(this._checkPipes(d,b),k.isPresent(d)&&d.ast.expressions.length>i.MAX_INTERPOLATION_VALUES)throw new l.BaseException("Only support at most "+i.MAX_INTERPOLATION_VALUES+" interpolation values!");return d}catch(e){return this._reportError(""+e,b),this._exprParser.wrapLiteralPrimitive("ERROR",c)}},a.prototype._parseAction=function(a,b){var c=b.start.toString();try{var d=this._exprParser.parseAction(a,c);return this._checkPipes(d,b),d}catch(e){return this._reportError(""+e,b),this._exprParser.wrapLiteralPrimitive("ERROR",c)}},a.prototype._parseBinding=function(a,b){var c=b.start.toString();try{var d=this._exprParser.parseBinding(a,c);return this._checkPipes(d,b),d}catch(e){return this._reportError(""+e,b),this._exprParser.wrapLiteralPrimitive("ERROR",c); -}},a.prototype._parseTemplateBindings=function(a,b){var c=this,d=b.start.toString();try{var e=this._exprParser.parseTemplateBindings(a,d);return e.templateBindings.forEach(function(a){k.isPresent(a.expression)&&c._checkPipes(a.expression,b)}),e.warnings.forEach(function(a){c._reportError(a,b,q.ParseErrorLevel.WARNING)}),e.templateBindings}catch(f){return this._reportError(""+f,b),[]}},a.prototype._checkPipes=function(a,b){var c=this;if(k.isPresent(a)){var d=new U;a.visit(d),d.pipes.forEach(function(a){c.pipesByName.has(a)||c._reportError("The pipe '"+a+"' could not be found",b)})}},a.prototype.visitExpansion=function(a,b){return null},a.prototype.visitExpansionCase=function(a,b){return null},a.prototype.visitText=function(a,b){var c=b.findNgContentIndex(J),d=this._parseInterpolation(a.value,a.sourceSpan);return k.isPresent(d)?new r.BoundTextAst(d,c,a.sourceSpan):new r.TextAst(a.value,c,a.sourceSpan)},a.prototype.visitAttr=function(a,b){return new r.AttrAst(a.name,a.value,a.sourceSpan)},a.prototype.visitComment=function(a,b){return null},a.prototype.visitElement=function(a,b){var c=this,d=a.name,f=u.preparseElement(a);if(f.type===u.PreparsedElementType.SCRIPT||f.type===u.PreparsedElementType.STYLE)return null;if(f.type===u.PreparsedElementType.STYLESHEET&&v.isStyleUrlResolvable(f.hrefAttr))return null;var g=[],h=[],i=[],j=[],l=[],m=[],n=[],o=[],q=!1,t=[],x=p.splitNsName(d.toLowerCase())[1],y=x==B;a.attrs.forEach(function(a){var b=c._parseAttr(y,a,g,h,l,i,j),d=c._parseInlineTemplateBinding(a,n,m,o);b||d||(t.push(c.visitAttr(a,null)),g.push([a.name,a.value])),d&&(q=!0)});var A=e(d,g),C=this._parseDirectives(this.selectorMatcher,A),D=[],E=this._createDirectiveAsts(y,a.name,C,h,i,a.sourceSpan,D),F=this._createElementPropertyAsts(a.name,h,E),G=b.isTemplateElement||q,H=new z.ProviderElementContext(this.providerViewContext,b.providerContext,G,E,t,D,a.sourceSpan),I=w.htmlVisitAll(f.nonBindable?T:this,a.children,R.create(y,E,y?b.providerContext:H));H.afterElement();var J,K=k.isPresent(f.projectAs)?s.CssSelector.parse(f.projectAs)[0]:A,L=b.findNgContentIndex(K);if(f.type===u.PreparsedElementType.NG_CONTENT)k.isPresent(a.children)&&a.children.length>0&&this._reportError(" element cannot have content. must be immediately followed by ",a.sourceSpan),J=new r.NgContentAst(this.ngContentCount++,q?null:L,a.sourceSpan);else if(y)this._assertAllEventsPublishedByDirectives(E,l),this._assertNoComponentsNorElementBindingsOnTemplate(E,F,a.sourceSpan),J=new r.EmbeddedTemplateAst(t,l,D,j,H.transformedDirectiveAsts,H.transformProviders,H.transformedHasViewContainer,I,q?null:L,a.sourceSpan);else{this._assertOnlyOneComponent(E,a.sourceSpan);var M=q?null:b.findNgContentIndex(K);J=new r.ElementAst(d,t,F,l,D,H.transformedDirectiveAsts,H.transformProviders,H.transformedHasViewContainer,I,q?null:M,a.sourceSpan)}if(q){var N=e(B,n),O=this._parseDirectives(this.selectorMatcher,N),P=this._createDirectiveAsts(!0,a.name,O,m,[],a.sourceSpan,[]),Q=this._createElementPropertyAsts(a.name,m,P);this._assertNoComponentsNorElementBindingsOnTemplate(P,Q,a.sourceSpan);var S=new z.ProviderElementContext(this.providerViewContext,b.providerContext,b.isTemplateElement,P,[],[],a.sourceSpan);S.afterElement(),J=new r.EmbeddedTemplateAst([],[],[],o,S.transformedDirectiveAsts,S.transformProviders,S.transformedHasViewContainer,[J],L,a.sourceSpan)}return J},a.prototype._parseInlineTemplateBinding=function(a,b,c,d){var e=null;if(a.name==C)e=a.value;else if(a.name.startsWith(D)){var f=a.name.substring(D.length);e=0==a.value.length?f:f+" "+a.value}if(k.isPresent(e)){for(var g=this._parseTemplateBindings(e,a.sourceSpan),h=0;h elements is deprecated. Use "let-" instead!',b.sourceSpan,q.ParseErrorLevel.WARNING),this._parseVariable(m,i,b.sourceSpan,g)):(this._reportError('"var-" on non