\n ',styles:['\n .share-link{cursor:pointer;margin-left:-15px;padding:0;line-height:1;width:15px;display:inline-block}.share-link:before{content:"";width:15px;height:15px;background-size:contain;background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgeD0iMCIgeT0iMCIgd2lkdGg9IjUxMiIgaGVpZ2h0PSI1MTIiIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA1MTIgNTEyIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cGF0aCBmaWxsPSIjMDEwMTAxIiBkPSJNNDU5LjcgMjMzLjRsLTkwLjUgOTAuNWMtNTAgNTAtMTMxIDUwLTE4MSAwIC03LjktNy44LTE0LTE2LjctMTkuNC0yNS44bDQyLjEtNDIuMWMyLTIgNC41LTMuMiA2LjgtNC41IDIuOSA5LjkgOCAxOS4zIDE1LjggMjcuMiAyNSAyNSA2NS42IDI0LjkgOTAuNSAwbDkwLjUtOTAuNWMyNS0yNSAyNS02NS42IDAtOTAuNSAtMjQuOS0yNS02NS41LTI1LTkwLjUgMGwtMzIuMiAzMi4yYy0yNi4xLTEwLjItNTQuMi0xMi45LTgxLjYtOC45bDY4LjYtNjguNmM1MC01MCAxMzEtNTAgMTgxIDBDNTA5LjYgMTAyLjMgNTA5LjYgMTgzLjQgNDU5LjcgMjMzLjR6TTIyMC4zIDM4Mi4ybC0zMi4yIDMyLjJjLTI1IDI0LjktNjUuNiAyNC45LTkwLjUgMCAtMjUtMjUtMjUtNjUuNiAwLTkwLjVsOTAuNS05MC41YzI1LTI1IDY1LjUtMjUgOTAuNSAwIDcuOCA3LjggMTIuOSAxNy4yIDE1LjggMjcuMSAyLjQtMS40IDQuOC0yLjUgNi44LTQuNWw0Mi4xLTQyYy01LjQtOS4yLTExLjYtMTgtMTkuNC0yNS44IC01MC01MC0xMzEtNTAtMTgxIDBsLTkwLjUgOTAuNWMtNTAgNTAtNTAgMTMxIDAgMTgxIDUwIDUwIDEzMSA1MCAxODEgMGw2OC42LTY4LjZDMjc0LjYgMzk1LjEgMjQ2LjQgMzkyLjMgMjIwLjMgMzgyLjJ6Ii8+PC9zdmc+Cg==");opacity:0.5;visibility:hidden;display:inline-block;vertical-align:middle}.sharable-header{color:#263238}.sharable-header:hover .share-link:before,.share-link:hover:before{visibility:visible}:host{padding-bottom:100px;display:block;border-bottom:1px solid rgba(127,127,127,0.25)}responses-list,params-list{display:block}.method-header{margin-bottom:.9em}.method-endpoint{margin:0 0 2em 0;padding:10px 20px;border-radius:4px;background-color:#222d32;display:block;font-weight:300}.method-endpoint>h5{padding-top:1px;padding-bottom:0;margin:0;font-size:.8em;color:#263238;vertical-align:middle;display:inline-block;border-radius:2px}.api-url{color:rgba(255,255,255,0.8);margin-left:10px;margin-top:2px;position:relative;top:1px;font-family:Montserrat,sans-serif;font-size:0.929em !important}.path{font-family:Montserrat,sans-serif;position:relative;top:1px;color:#ffffff;font-size:0.929em !important}.method-tags{margin-top:20px}.method-tags a{font-size:16px;color:#999;display:inline-block;padding:0 0.5em;text-decoration:none}.method-tags a:before{content:\'#\';margin-right:-0.4em}.method-tags a:first-of-type{padding:0}.method-content,.method-samples{display:block;box-sizing:border-box;float:left}.method-content{width:60%;padding:40px}.method-samples{color:#fafbfc;width:40%;padding:40px;background:#263238}responses-samples{display:block}.method-samples header,.method-samples>h5{color:#9fb4be;text-transform:uppercase}.method-samples>h5{margin-bottom:8px}.method-samples schema-sample{display:block}.method:after{content:"";display:table;clear:both}.method-description{padding:6px 0 10px 0;margin:0}.http-method{color:#263238;background:#ffffff;padding:3px 10px;text-transform:uppercase}@media (max-width: 1100px){.methods:before{display:none}.method-samples,.method-content{width:100%}.method-samples{margin-top:2em}:host{padding-bottom:0}}\n '],directives:[ParamsList,ResponsesList,ResponsesSamples,SchemaSample,RequestSamples],inputs:["tag"]})(Method)||Method}(BaseComponent),_export("default",Method)}}}),$__System.register("1a",["5","7","8","9","14","17","a","1b","1c"],function(_export){var RedocComponent,BaseComponent,_get,_inherits,_createClass,EncodeURIComponentPipe,Method,_classCallCheck,_slicedToArray,_Array$from,MethodsList;return{setters:[function(_4){RedocComponent=_4.RedocComponent,BaseComponent=_4.BaseComponent},function(_){_get=_["default"]},function(_2){_inherits=_2["default"]},function(_3){_createClass=_3["default"]},function(_6){EncodeURIComponentPipe=_6.EncodeURIComponentPipe},function(_5){Method=_5["default"]},function(_a){_classCallCheck=_a["default"]},function(_b){_slicedToArray=_b["default"]},function(_c){_Array$from=_c["default"]}],execute:function(){"use strict";MethodsList=function(_BaseComponent){function MethodsList(schemaMgr){_classCallCheck(this,_MethodsList),_get(Object.getPrototypeOf(_MethodsList.prototype),"constructor",this).call(this,schemaMgr)}_inherits(MethodsList,_BaseComponent),_createClass(MethodsList,[{key:"prepareModel",value:function(){this.data={};var menuStructure=this.schemaMgr.buildMenuTree(),tags=_Array$from(menuStructure.entries()).map(function(entry){var _entry=_slicedToArray(entry,2),tag=_entry[0],_entry$1=_entry[1],description=_entry$1.description,methods=_entry$1.methods;return methods=methods||[],methods.forEach(function(method){method.tag=tag}),{name:tag,description:description,methods:methods}});this.data.tags=tags}}]);var _MethodsList=MethodsList;return MethodsList=RedocComponent({selector:"methods-list",template:'\n
\n ',styles:['\n .share-link{cursor:pointer;margin-left:-15px;padding:0;line-height:1;width:15px;display:inline-block}.share-link:before{content:"";width:15px;height:15px;background-size:contain;background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgeD0iMCIgeT0iMCIgd2lkdGg9IjUxMiIgaGVpZ2h0PSI1MTIiIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA1MTIgNTEyIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cGF0aCBmaWxsPSIjMDEwMTAxIiBkPSJNNDU5LjcgMjMzLjRsLTkwLjUgOTAuNWMtNTAgNTAtMTMxIDUwLTE4MSAwIC03LjktNy44LTE0LTE2LjctMTkuNC0yNS44bDQyLjEtNDIuMWMyLTIgNC41LTMuMiA2LjgtNC41IDIuOSA5LjkgOCAxOS4zIDE1LjggMjcuMiAyNSAyNSA2NS42IDI0LjkgOTAuNSAwbDkwLjUtOTAuNWMyNS0yNSAyNS02NS42IDAtOTAuNSAtMjQuOS0yNS02NS41LTI1LTkwLjUgMGwtMzIuMiAzMi4yYy0yNi4xLTEwLjItNTQuMi0xMi45LTgxLjYtOC45bDY4LjYtNjguNmM1MC01MCAxMzEtNTAgMTgxIDBDNTA5LjYgMTAyLjMgNTA5LjYgMTgzLjQgNDU5LjcgMjMzLjR6TTIyMC4zIDM4Mi4ybC0zMi4yIDMyLjJjLTI1IDI0LjktNjUuNiAyNC45LTkwLjUgMCAtMjUtMjUtMjUtNjUuNiAwLTkwLjVsOTAuNS05MC41YzI1LTI1IDY1LjUtMjUgOTAuNSAwIDcuOCA3LjggMTIuOSAxNy4yIDE1LjggMjcuMSAyLjQtMS40IDQuOC0yLjUgNi44LTQuNWw0Mi4xLTQyYy01LjQtOS4yLTExLjYtMTgtMTkuNC0yNS44IC01MC01MC0xMzEtNTAtMTgxIDBsLTkwLjUgOTAuNWMtNTAgNTAtNTAgMTMxIDAgMTgxIDUwIDUwIDEzMSA1MCAxODEgMGw2OC42LTY4LjZDMjc0LjYgMzk1LjEgMjQ2LjQgMzkyLjMgMjIwLjMgMzgyLjJ6Ii8+PC9zdmc+Cg==");opacity:0.5;visibility:hidden;display:inline-block;vertical-align:middle}.sharable-header{color:#263238}.sharable-header:hover .share-link:before,.share-link:hover:before{visibility:visible}.tag-info{padding:40px;box-sizing:border-box;background-color:white;width:60%}@media (max-width: 1100px){.tag-info{width:100%}}.tag-info:after,.tag-info:before{content:"";display:table}.tag-info h1{color:#0033a0;text-transform:capitalize;font-weight:normal}.methods{display:block;position:relative}\n '],
directives:[Method],pipes:[EncodeURIComponentPipe]})(MethodsList)||MethodsList}(BaseComponent),_export("default",MethodsList)}}}),$__System.register("1d",["9","16","a","1e"],function(_export){var _createClass,Directive,ElementRef,_classCallCheck,BrowserDomAdapter,StickySidebar;return{setters:[function(_){_createClass=_["default"]},function(_2){Directive=_2.Directive,ElementRef=_2.ElementRef},function(_a){_classCallCheck=_a["default"]},function(_e){BrowserDomAdapter=_e.BrowserDomAdapter}],execute:function(){"use strict";StickySidebar=function(){function StickySidebar(elementRef,dom){_classCallCheck(this,_StickySidebar),this.$element=elementRef.nativeElement,this.dom=dom,this.dom.setStyle(this.$element,"position","absolute"),this.dom.setStyle(this.$element,"top","0"),this.dom.setStyle(this.$element,"bottom","0"),this.dom.setStyle(this.$element,"max-height","100%")}_createClass(StickySidebar,[{key:"bind",value:function(){var _this=this;this.cancelScrollBinding=this.dom.onAndCancel(this.scrollParent,"scroll",function(){_this.updatePosition()}),this.updatePosition()}},{key:"unbind",value:function(){this.cancelScrollBinding&&this.cancelScrollBinding()}},{key:"updatePosition",value:function(){this.scrollY+this.scrollYOffset()>=this.$redocEl.offsetTop?this.stick():this.unstick()}},{key:"stick",value:function(){this.dom.setStyle(this.$element,"position","fixed"),this.dom.setStyle(this.$element,"top",this.scrollYOffset()+"px")}},{key:"unstick",value:function(){this.dom.setStyle(this.$element,"position","absolute"),this.dom.setStyle(this.$element,"top",0)}},{key:"ngOnInit",value:function(){this.$redocEl=this.$element.offsetParent,this.bind()}},{key:"ngOnDestroy",value:function(){this.unbind()}},{key:"scrollY",get:function(){return null!=this.scrollParent.pageYOffset?this.scrollParent.pageYOffset:this.scrollParent.scrollTop}}]);var _StickySidebar=StickySidebar;return StickySidebar=Reflect.metadata("parameters",[[ElementRef],[BrowserDomAdapter]])(StickySidebar)||StickySidebar,StickySidebar=Directive({selector:"[sticky-sidebar]",inputs:["scrollParent","scrollYOffset"]})(StickySidebar)||StickySidebar}(),_export("default",StickySidebar)}}}),$__System.register("1f",[],function(){return{setters:[],execute:function(){}}}),$__System.register("20",["3","4","5","6","7","8","9","15","16","21","22","a","1e","b","1a","1d","1f"],function(_export){var detectScollParent,ApiInfo,RedocComponent,BaseComponent,OptionsManager,_get,_inherits,_createClass,redocEvents,ChangeDetectionStrategy,provide,enableProdMode,ElementRef,SchemaManager,SideMenu,_classCallCheck,BrowserDomAdapter,bootstrap,ApiLogo,MethodsList,StickySidebar,dom,_modeLocked,Redoc;return{setters:[function(_5){detectScollParent=_5["default"]},function(_8){ApiInfo=_8["default"]},function(_6){RedocComponent=_6.RedocComponent,BaseComponent=_6.BaseComponent},function(_10){OptionsManager=_10["default"]},function(_){_get=_["default"]},function(_2){_inherits=_2["default"]},function(_3){_createClass=_3["default"]},function(_11){redocEvents=_11.redocEvents},function(_4){ChangeDetectionStrategy=_4.ChangeDetectionStrategy,provide=_4.provide,enableProdMode=_4.enableProdMode,ElementRef=_4.ElementRef},function(_7){SchemaManager=_7["default"]},function(_9){SideMenu=_9["default"]},function(_a){_classCallCheck=_a["default"]},function(_e){BrowserDomAdapter=_e.BrowserDomAdapter,bootstrap=_e.bootstrap},function(_b){ApiLogo=_b["default"]},function(_a2){MethodsList=_a2["default"]},function(_d){StickySidebar=_d["default"]},function(_f){}],execute:function(){"use strict";dom=new BrowserDomAdapter,_modeLocked=!1,Redoc=function(_BaseComponent){function Redoc(schemaMgr,optionsMgr,elementRef){_classCallCheck(this,_Redoc),_get(Object.getPrototypeOf(_Redoc.prototype),"constructor",this).call(this,schemaMgr),this.element=elementRef.nativeElement,optionsMgr.parseOptions(this.element),optionsMgr.options.$scrollParent=detectScollParent(this.element),this.options=optionsMgr.options}_inherits(Redoc,_BaseComponent),_createClass(Redoc,null,[{key:"showLoadingAnimation",value:function(){var elem=dom.query("redoc");dom.addClass(elem,"loading")}},{key:"hideLoadingAnimation",value:function(){var redocEl=dom.query("redoc");dom.addClass(redocEl,"loading-remove"),setTimeout(function(){dom.removeClass(redocEl,"loading-remove"),dom.removeClass(redocEl,"loading")},400)}},{key:"init",value:function(specUrl,options){var optionsMgr=new OptionsManager;optionsMgr.options=options,optionsMgr.options.specUrl=optionsMgr.options.specUrl||specUrl;var providers=[provide(OptionsManager,{useValue:optionsMgr})];return Redoc.appRef&&Redoc.destroy(),Redoc.showLoadingAnimation(),SchemaManager.instance().load(specUrl).then(function(){return _modeLocked||optionsMgr.options.debugMode||(enableProdMode(),_modeLocked=!0),bootstrap(Redoc,providers)}).then(function(appRef){Redoc.hideLoadingAnimation(),Redoc.appRef=appRef,setTimeout(function(){return redocEvents.bootstrapped.next()}),console.log("ReDoc bootstrapped!")},function(error){throw console.log(error),error})}},{key:"autoInit",value:function(){var specUrlAttributeName="spec-url",redocEl=dom.query("redoc");if(redocEl&&dom.hasAttribute(redocEl,specUrlAttributeName)){var url=dom.getAttribute(redocEl,specUrlAttributeName);Redoc.init(url)}}},{key:"destroy",value:function(){var el=dom.query("redoc"),elClone=void 0,parent=void 0,nextSibling=void 0;el&&(parent=el.parentElement,nextSibling=el.nextElementSibling),elClone=el.cloneNode(!1),Redoc.appRef&&(Redoc.appRef.destroy(),Redoc.appRef=null,elClone.innerHTML="Loading...",parent&&parent.insertBefore(elClone,nextSibling))}}]);var _Redoc=Redoc;return Redoc=Reflect.metadata("parameters",[[SchemaManager],[OptionsManager],[ElementRef]])(Redoc)||Redoc,Redoc=RedocComponent({selector:"redoc",providers:[SchemaManager,BrowserDomAdapter],template:'\n
\n ',styles:['\n :host{display:block;box-sizing:border-box;-webkit-tap-highlight-color:transparent;-moz-tap-highlight-color:transparent;-ms-tap-highlight-color:transparent;-o-tap-highlight-color:transparent;tap-highlight-color:transparent;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-smoothing:antialiased;-webkit-osx-font-smoothing:grayscale;-moz-osx-font-smoothing:grayscale;osx-font-smoothing:grayscale;-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%;-webkit-text-shadow:1px 1px 1px rgba(0,0,0,0.004);-ms-text-shadow:1px 1px 1px rgba(0,0,0,0.004);text-shadow:1px 1px 1px rgba(0,0,0,0.004);text-rendering:optimizeSpeed !important;font-smooth:always;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;text-size-adjust:100%}.redoc-wrap{position:relative;font-family:Roboto,sans-serif;font-size:14px;line-height:1.55em;color:#263238}side-menu{display:block;box-sizing:border-box}methods-list{display:block;overflow:hidden}api-info,.side-bar{display:block;padding:10px 0}api-info{padding:40px}api-logo{display:block;text-align:center}@media (max-width: 1000px){api-logo{display:none}}[sticky-sidebar]{width:260px;background-color:#FAFAFA;overflow-y:auto;overflow-x:hidden}@media (max-width: 1000px){[sticky-sidebar]{z-index:1;width:100%;bottom:auto !important}}#api-content{margin-left:260px;position:relative}@media (max-width: 1000px){#api-content{padding-top:3em;margin-left:0}}#api-content:before{content:"";background:#263238;height:100%;width:40%;top:0;right:0;position:absolute;z-index:-1}@media (max-width: 1100px){#api-content:before{display:none}}:host h1{margin-top:0;font-family:Montserrat,sans-serif;color:#0033a0;font-weight:400}:host h2{margin-top:0;font-family:Montserrat,sans-serif;color:#0033a0;font-weight:400}:host h3{margin-top:0;font-family:Montserrat,sans-serif;color:#0033a0;font-weight:400}:host h4{margin-top:0;font-family:Montserrat,sans-serif;color:#0033a0;font-weight:400}:host h5{margin-top:0;font-family:Montserrat,sans-serif;color:#0033a0;font-weight:400}:host h1{font-size:1.85714em}:host h2{font-size:1.57143em}:host h3{font-size:1.28571em}:host h4{font-size:1.14286em}:host h5{font-size:.929em}:host p{font-family:Roboto,sans-serif;font-weight:300;margin:0;margin-bottom:1em;line-height:1.55em}:host a{text-decoration:none;color:#0033a0}:host p>code{color:#e53935;border:1px solid rgba(38,50,56,0.1)}footer{text-align:right;padding:10px;font-size:15px;background-color:white}footer strong{font-size:18px;color:#0033a0}:host .redoc-markdown-block pre{font-family:Courier, monospace;white-space:pre-wrap;background-color:rgba(38,50,56,0.04);padding:12px 14px 15px 14px;overflow-x:auto;line-height:normal;border-radius:2px;border:1px solid rgba(38,50,56,0.1)}:host .redoc-markdown-block pre code{background-color:transparent}:host .redoc-markdown-block pre code:before,:host .redoc-markdown-block pre code:after{content:none}:host .redoc-markdown-block code{font-family:Courier, monospace;background-color:rgba(38,50,56,0.04);padding:0.1em 0 0.2em 0;font-size:1em;border-radius:2px}:host .redoc-markdown-block code:before,:host .redoc-markdown-block code:after{letter-spacing:-0.2em;content:"\\00a0"}:host .redoc-markdown-block p:last-of-type{margin-bottom:0}:host .redoc-markdown-block blockquote{margin:0;margin-bottom:1em;padding:0 15px;color:#777;border-left:4px solid #ddd}:host .redoc-markdown-block img{max-width:100%;box-sizing:content-box}:host .redoc-markdown-block ul,:host .redoc-markdown-block ol{padding-left:2em;margin:0;margin-bottom:1em}:host .redoc-markdown-block table{display:block;width:100%;overflow:auto;word-break:normal;word-break:keep-all;border-collapse:collapse;border-spacing:0;margin-top:0.5em;margin-bottom:0.5em}:host .redoc-markdown-block table tr{background-color:#fff;border-top:1px solid #ccc}:host .redoc-markdown-block table tr:nth-child(2n){background-color:#f8f8f8}:host .redoc-markdown-block table th,:host .redoc-markdown-block table td{padding:6px 13px;border:1px solid #ddd}:host .redoc-markdown-block table th{text-align:left;font-weight:bold}\n '],directives:[ApiInfo,ApiLogo,MethodsList,SideMenu,StickySidebar],changeDetection:ChangeDetectionStrategy.Default})(Redoc)||Redoc}(BaseComponent),_export("default",Redoc)}}}),$__System.register("e",["6","9","16","21","23","24","a","d"],function(_export){function insertAfter(newNode,referenceNode){referenceNode.parentNode.insertBefore(newNode,referenceNode.nextSibling)}var OptionsManager,_createClass,Component,ElementRef,ViewContainerRef,SchemaManager,CORE_DIRECTIVES,DynamicComponentLoader,_classCallCheck,JsonSchema,cache,JsonSchemaLazy;return{setters:[function(_5){OptionsManager=_5["default"]},function(_){_createClass=_["default"]},function(_2){Component=_2.Component,ElementRef=_2.ElementRef,ViewContainerRef=_2.ViewContainerRef},function(_6){SchemaManager=_6["default"]},function(_3){CORE_DIRECTIVES=_3.CORE_DIRECTIVES},function(_4){DynamicComponentLoader=_4.DynamicComponentLoader},function(_a){_classCallCheck=_a["default"]},function(_d){JsonSchema=_d["default"]}],execute:function(){"use strict";cache={},JsonSchemaLazy=function(){function JsonSchemaLazy(schemaMgr,viewRef,elementRef,dcl,optionsMgr){_classCallCheck(this,_JsonSchemaLazy),this.viewRef=viewRef,this.elementRef=elementRef,this.dcl=dcl,this.optionsMgr=optionsMgr,this.schemaMgr=schemaMgr}_createClass(JsonSchemaLazy,[{key:"normalizePointer",value:function(){var schema=this.schemaMgr.byPointer(this.pointer);return schema&&schema.$ref||this.pointer}},{key:"load",value:function(){var _this=this;this.optionsMgr.options.disableLazySchemas||this.loaded||(this.pointer&&this.dcl.loadNextToLocation(JsonSchema,this.viewRef).then(function(compRef){_this.initComponent(compRef),compRef.hostView.changeDetectorRef.detectChanges()}),this.loaded=!0)}},{key:"loadCached",value:function(){var _this2=this;this.pointer=this.normalizePointer(this.pointer),cache[this.pointer]?cache[this.pointer].then(function(compRef){setTimeout(function(){var $element=compRef.location.nativeElement;return $element.querySelector(".discriminator-wrap")?void _this2.dcl.loadNextToLocation(JsonSchema,_this2.viewRef).then(function(compRef){_this2.initComponent(compRef),compRef.hostView.changeDetectorRef.detectChanges()}):void insertAfter($element.cloneNode(!0),_this2.elementRef.nativeElement)})}):cache[this.pointer]=this.dcl.loadNextToLocation(JsonSchema,this.viewRef).then(function(compRef){return _this2.initComponent(compRef),compRef.hostView.changeDetectorRef.detectChanges(),compRef})}},{key:"initComponent",value:function(compRef){compRef.instance.pointer=this.pointer,compRef.instance.skipReadOnly=this.skipReadOnly}},{key:"ngAfterViewInit",value:function(){this.auto&&this.loadCached()}},{key:"ngOnDestroy",value:function(){cache={}}}]);var _JsonSchemaLazy=JsonSchemaLazy;return JsonSchemaLazy=Reflect.metadata("parameters",[[SchemaManager],[ViewContainerRef],[ElementRef],[DynamicComponentLoader],[OptionsManager]])(JsonSchemaLazy)||JsonSchemaLazy,JsonSchemaLazy=Component({selector:"json-schema-lazy",inputs:["pointer","auto","skipReadOnly"],template:"",directives:[CORE_DIRECTIVES]})(JsonSchemaLazy)||JsonSchemaLazy}(),_export("default",JsonSchemaLazy)}}}),$__System.register("25",["9","16","23","a"],function(_export){var _createClass,Component,EventEmitter,CORE_DIRECTIVES,_classCallCheck,Zippy;return{setters:[function(_){_createClass=_["default"]},function(_2){Component=_2.Component,EventEmitter=_2.EventEmitter},function(_3){CORE_DIRECTIVES=_3.CORE_DIRECTIVES},function(_a){_classCallCheck=_a["default"]}],execute:function(){"use strict";Zippy=function(){function Zippy(){_classCallCheck(this,_Zippy),this.type="general",this.visible=!1,this.empty=!1,this.open=new EventEmitter,this.close=new EventEmitter}_createClass(Zippy,[{key:"toggle",value:function(){this.visible=!this.visible,this.empty||(this.visible?this.open.next():this.close.next())}}]);var _Zippy=Zippy;return Zippy=Component({selector:"zippy",events:["open","close"],inputs:["title","visible","type","empty"],template:'\n
\n
\n {{ visible ? \'▾\' : \'▸\' }} \n {{title}}\n
\n
\n \n
\n
\n ',styles:["\n .zippy-title{padding:10px;border-radius:2px;margin:2px 0;line-height:1.5em;background-color:#f2f2f2;cursor:pointer}.zippy-success>.zippy-title{color:#00aa13;background-color:rgba(0,170,19,0.08)}.zippy-error>.zippy-title{color:#e53935;background-color:rgba(229,57,53,0.06)}.zippy-redirect>.zippy-title{color:#263238;background-color:rgba(38,50,56,0.08)}.zippy-info>.zippy-title{color:#0033a0;background-color:rgba(0,51,160,0.08)}span.zippy-indicator{font-size:1.2em;margin-right:0.2em;position:relative;top:0}.zippy-content{padding:15px 0}.zippy-empty .zippy-title{cursor:default}.zippy-empty .zippy-indicator{display:none}.zippy-empty .zippy-content{display:none}.zippy-hidden{overflow:hidden;visibility:hidden;height:0;padding:0}\n "],directives:[CORE_DIRECTIVES]})(Zippy)||Zippy}(),_export("default",Zippy)}}}),$__System.register("18",["5","6","7","8","9","11","25","26","a","f","d","e"],function(_export){function isNumeric(n){return!isNaN(parseFloat(n))&&isFinite(n)}var RedocComponent,BaseComponent,SchemaManager,OptionsManager,_get,_inherits,_createClass,JsonPointer,Zippy,statusCodeType,_classCallCheck,_Object$keys,JsonSchema,JsonSchemaLazy,ResponsesList;return{setters:[function(_4){RedocComponent=_4.RedocComponent,BaseComponent=_4.BaseComponent,SchemaManager=_4.SchemaManager},function(_8){OptionsManager=_8["default"]},function(_){_get=_["default"]},function(_2){_inherits=_2["default"]},function(_3){_createClass=_3["default"]},function(_5){JsonPointer=_5["default"]},function(_6){Zippy=_6["default"]},function(_7){statusCodeType=_7.statusCodeType},function(_a){_classCallCheck=_a["default"]},function(_f){_Object$keys=_f["default"]},function(_d){JsonSchema=_d["default"]},function(_e){JsonSchemaLazy=_e["default"]}],execute:function(){"use strict";ResponsesList=function(_BaseComponent){function ResponsesList(schemaMgr,optionsMgr){_classCallCheck(this,_ResponsesList),_get(Object.getPrototypeOf(_ResponsesList.prototype),"constructor",this).call(this,schemaMgr),this.options=optionsMgr.options}_inherits(ResponsesList,_BaseComponent),_createClass(ResponsesList,[{key:"prepareModel",value:function(){var _this=this;this.data={},this.data.responses=[];var responses=this.componentSchema;responses&&(responses=_Object$keys(responses).filter(function(respCode){return isNumeric(respCode)||"default"===respCode}).map(function(respCode){var resp=responses[respCode];if(resp.pointer=JsonPointer.join(_this.pointer,respCode),resp.$ref){var ref=resp.$ref;resp=_this.schemaMgr.byPointer(resp.$ref),resp.pointer=ref}return resp.empty=!resp.schema,resp.code=respCode,resp.type=statusCodeType(resp.code),resp.headers&&(resp.headers=_Object$keys(resp.headers).map(function(k){var respInfo=resp.headers[k];return respInfo.name=k,respInfo}),resp.empty=!1),resp.extendable=resp.headers||resp.length,resp}),this.data.responses=responses)}}]);var _ResponsesList=ResponsesList;return ResponsesList=Reflect.metadata("parameters",[[SchemaManager],[OptionsManager]])(ResponsesList)||ResponsesList,ResponsesList=RedocComponent({selector:"responses-list",template:'\n \n
\n \n \n \n \n \n \n ',styles:["\n .responses-list-header{font-size:18px;padding:0.2em 0;margin:3em 0 1.1em 0;color:#253137;font-weight:normal}:host .zippy-title{font-family:Montserrat,sans-serif}.header-name{font-weight:bold;display:inline-block}.header-type{display:inline-block;font-weight:bold;color:#999}header{font-size:14px;font-weight:bold;text-transform:uppercase;margin-bottom:15px}.header{margin-bottom:10px}\n "],directives:[JsonSchema,Zippy,JsonSchemaLazy]})(ResponsesList)||ResponsesList}(BaseComponent),_export("default",ResponsesList)}}}),$__System.register("12",["9","16","23","a"],function(_export){var _createClass,Component,EventEmitter,CORE_DIRECTIVES,_classCallCheck,Tabs,Tab;return{setters:[function(_){_createClass=_["default"]},function(_2){Component=_2.Component,EventEmitter=_2.EventEmitter},function(_3){CORE_DIRECTIVES=_3.CORE_DIRECTIVES},function(_a){_classCallCheck=_a["default"]}],execute:function(){"use strict";Tabs=function(){function Tabs(){_classCallCheck(this,_Tabs),this.tabs=[],this.change=new EventEmitter}_createClass(Tabs,[{key:"selectTab",value:function(tab){var notify=arguments.length<=1||void 0===arguments[1]?!0:arguments[1];tab.active||(this.tabs.forEach(function(tab){tab.active=!1}),tab.active=!0,notify&&this.change.next(tab.tabTitle))}},{key:"selectyByTitle",value:function(tabTitle){var notify=arguments.length<=1||void 0===arguments[1]?!1:arguments[1],prevActive=void 0,newActive=void 0;this.tabs.forEach(function(tab){tab.active&&(prevActive=tab),tab.active=!1,tab.tabTitle===tabTitle&&(newActive=tab)}),newActive?newActive.active=!0:prevActive.active=!0,notify&&this.change.next(tabTitle)}},{key:"addTab",value:function(tab){0===this.tabs.length&&(tab.active=!0),this.tabs.push(tab)}}]);var _Tabs=Tabs;return Tabs=Component({selector:"tabs",events:["change"],template:'\n
\n
\n ',directives:[CORE_DIRECTIVES],styles:['\n ul{display:block;margin:0;padding:0}li{list-style:none;display:inline-block;cursor:pointer}.tab-success:before,.tab-error:before,.tab-redirect:before,.tab-info:before{content:"";display:inline-block;position:relative;top:-2px;height:4px;width:4px;border-radius:50%;margin-right:0.5em}.tab-success:before{box-shadow:0 0 3px 0 #00aa13;background-color:#00aa13}.tab-error:before{box-shadow:0 0 3px 0 #e53935;background-color:#e53935}.tab-redirect:before{box-shadow:0 0 3px 0 #f1c400;background-color:#f1c400}.tab-info:before{box-shadow:0 0 3px 0 #0033a0;background-color:#0033a0}\n ']})(Tabs)||Tabs}(),_export("Tabs",Tabs),Tab=function(){function Tab(tabs){_classCallCheck(this,_Tab),this.active=!1,tabs.addTab(this)}var _Tab=Tab;return Tab=Reflect.metadata("parameters",[[Tabs]])(Tab)||Tab,Tab=Component({selector:"tab",inputs:["tabTitle","tabStatus"],template:'\n
\n \n
\n ',directives:[CORE_DIRECTIVES],styles:["\n .tab-wrap {\n display: none;\n }\n\n .tab-wrap.active {\n display: block;\n }"]})(Tab)||Tab}(),_export("Tab",Tab)}}}),$__System.register("26",[],function(_export){"use strict";function statusCodeType(statusCode){if(100>statusCode||statusCode>599)throw new Error("invalid HTTP code");var res="success";return statusCode>=300&&400>statusCode?res="redirect":statusCode>=400?res="error":200>statusCode&&(res="info"),res}return _export("statusCodeType",statusCodeType),{setters:[],execute:function(){}}}),$__System.register("19",["5","7","8","9","11","12","13","26","a","f"],function(_export){function isNumeric(n){return!isNaN(parseFloat(n))&&isFinite(n)}function hasExample(response){return response.examples&&response.examples["application/json"]||response.schema}var RedocComponent,BaseComponent,_get,_inherits,_createClass,JsonPointer,Tabs,Tab,SchemaSample,statusCodeType,_classCallCheck,_Object$keys,ResponsesSamples;return{setters:[function(_4){RedocComponent=_4.RedocComponent,BaseComponent=_4.BaseComponent},function(_){_get=_["default"]},function(_2){_inherits=_2["default"]},function(_3){_createClass=_3["default"]},function(_5){JsonPointer=_5["default"]},function(_6){Tabs=_6.Tabs,Tab=_6.Tab},function(_7){SchemaSample=_7["default"]},function(_8){statusCodeType=_8.statusCodeType},function(_a){_classCallCheck=_a["default"]},function(_f){_Object$keys=_f["default"]}],execute:function(){"use strict";ResponsesSamples=function(_BaseComponent){function ResponsesSamples(schemaMgr){_classCallCheck(this,_ResponsesSamples),_get(Object.getPrototypeOf(_ResponsesSamples.prototype),"constructor",this).call(this,schemaMgr)}_inherits(ResponsesSamples,_BaseComponent),_createClass(ResponsesSamples,[{key:"prepareModel",value:function(){var _this=this;this.data={},this.data.responses=[];var responses=this.componentSchema;responses&&(responses=_Object$keys(responses).filter(function(respCode){return isNumeric(respCode)||"default"===respCode}).map(function(respCode){var resp=responses[respCode];if(resp.pointer=JsonPointer.join(_this.pointer,respCode),resp.$ref){var ref=resp.$ref;resp=_this.schemaMgr.byPointer(resp.$ref),resp.pointer=ref}return resp.code=respCode,resp.type=statusCodeType(resp.code),resp}).filter(function(response){return hasExample(response)}),this.data.responses=responses)}}]);var _ResponsesSamples=ResponsesSamples;return ResponsesSamples=RedocComponent({selector:"responses-samples",template:'\n
\n
\n \n \n \n \n ',styles:["\n tab,tabs{display:block}schema-sample{display:block}header{font-family:Montserrat;font-size:0.929em;text-transform:uppercase;margin:0;color:#9fb4be;text-transform:uppercase;font-weight:normal}:host>tabs>ul li{font-family:Montserrat;font-size:0.929em;border-radius:2px;margin:2px 0;padding:2px 8px 3px 8px;color:#9fb4be;line-height:1.25}:host>tabs>ul li:hover{color:#ffffff;background-color:rgba(255,255,255,0.1)}:host>tabs>ul li.active{background-color:white;color:#263238}:host tabs ul{padding-top:10px}\n "],directives:[SchemaSample,Tabs,Tab]})(ResponsesSamples)||ResponsesSamples}(BaseComponent),_export("default",ResponsesSamples)}}}),$__System.registerDynamic("27",[],!0,function($__require,exports,module){"use strict";function isPrimitive(obj){var type=obj.type;return void 0!==typesInstantiator[type]}function instantiatePrimitive(val){var type=val.type;return val["default"]?val["default"]:typesInstantiator[type]}function instantiate(schema){function visit(obj,name,data){if(obj){var i,type=obj.type;if("object"===type&&obj.properties){data[name]=data[name]||{};for(var property in obj.properties)obj.properties.hasOwnProperty(property)&&visit(obj.properties[property],property,data[name])}else if(obj.allOf)for(i=0;i
i;i++)visit(obj.items,i,data[name])}else isPrimitive(obj)&&(data[name]=instantiatePrimitive(obj))}}var data={};return visit(schema,"kek",data),data.kek}var typesInstantiator={string:"",number:0,integer:0,"null":null,"boolean":!1,object:{}};return"undefined"!=typeof module&&(module.exports={instantiate:instantiate}),module.exports}),$__System.registerDynamic("28",["27"],!0,function($__require,exports,module){return module.exports=$__require("27"),module.exports}),$__System.registerDynamic("29",["28"],!0,function($__require,exports,module){return module.exports=$__require("28"),module.exports}),$__System.register("2a",["9","16","a","f","2b"],function(_export){function htmlEncode(t){return null!=t?t.toString().replace(/&/g,"&").replace(/"/g,""").replace(//g,">"):""}function decorateWithSpan(value,className){return''+htmlEncode(value)+" "}function valueToHTML(value){var valueType=typeof value,output="";return null==value?output+=decorateWithSpan("null","type-null"):value&&value.constructor===Array?(level++,output+=arrayToHTML(value),level--):"object"===valueType?(level++,output+=objectToHTML(value),level--):"number"===valueType?output+=decorateWithSpan(value,"type-number"):"string"===valueType?output+=/^(http|https):\/\/[^\\s]+$/.test(value)?decorateWithSpan('"',"type-string")+''+htmlEncode(value)+" "+decorateWithSpan('"',"type-string"):decorateWithSpan('"'+value+'"',"type-string"):"boolean"===valueType&&(output+=decorateWithSpan(value,"type-boolean")),output}function arrayToHTML(json){var i,length,collapsed=level>COLLAPSE_LEVEL?"collapsed":"",output='
[',hasContents=!1;for(i=0,length=json.length;length>i;i++)hasContents=!0,output+='',output+=valueToHTML(json[i]),length-1>i&&(output+=","),output+="
";return output+=" ]",hasContents||(output="[ ]"),output}function objectToHTML(json){var i,key,length,collapsed=level>COLLAPSE_LEVEL?"collapsed":"",keys=_Object$keys(json),output='
{',hasContents=!1;for(i=0,length=keys.length;length>i;i++)key=keys[i],hasContents=!0,output+='',output+=''+htmlEncode(key)+" : ",output+=valueToHTML(json[key]),length-1>i&&(output+=","),output+="
";return output+=" }",hasContents||(output="{ }"),output}function jsonToHTML(json){level=1;var output="";return output+='',output+=valueToHTML(json),output+="
"}var _createClass,Pipe,_classCallCheck,_Object$keys,isBlank,level,COLLAPSE_LEVEL,JsonFormatter;return{setters:[function(_){_createClass=_["default"]},function(_2){Pipe=_2.Pipe},function(_a){_classCallCheck=_a["default"]},function(_f){_Object$keys=_f["default"]},function(_b){isBlank=_b.isBlank}],execute:function(){"use strict";level=1,COLLAPSE_LEVEL=2,JsonFormatter=function(){function JsonFormatter(){_classCallCheck(this,_JsonFormatter)}_createClass(JsonFormatter,[{key:"transform",value:function(value){return isBlank(value)?value:jsonToHTML(value)}}]);var _JsonFormatter=JsonFormatter;return JsonFormatter=Pipe({name:"jsonFormatter"})(JsonFormatter)||JsonFormatter}(),_export("JsonFormatter",JsonFormatter)}}}),$__System.register("13",["5","7","8","9","16","29","a","2a"],function(_export){var RedocComponent,BaseComponent,SchemaManager,_get,_inherits,_createClass,ElementRef,SchemaSampler,_classCallCheck,JsonFormatter,SchemaSample;return{setters:[function(_6){RedocComponent=_6.RedocComponent,BaseComponent=_6.BaseComponent,SchemaManager=_6.SchemaManager},function(_){_get=_["default"]},function(_2){_inherits=_2["default"]},function(_3){_createClass=_3["default"]},function(_4){ElementRef=_4.ElementRef},function(_5){SchemaSampler=_5["default"]},function(_a){_classCallCheck=_a["default"]},function(_a2){JsonFormatter=_a2.JsonFormatter}],execute:function(){"use strict";SchemaSample=function(_BaseComponent){function SchemaSample(schemaMgr,elementRef){_classCallCheck(this,_SchemaSample),_get(Object.getPrototypeOf(_SchemaSample.prototype),"constructor",this).call(this,schemaMgr),this.element=elementRef.nativeElement}_inherits(SchemaSample,_BaseComponent),_createClass(SchemaSample,[{key:"init",value:function(){this.data={};var base={},sample=void 0;this.componentSchema.schema&&(base=this.componentSchema,this.componentSchema=this.componentSchema.schema),base.examples&&base.examples["application/json"]?sample=base.examples["application/json"]:(this.dereference(this.componentSchema),sample=SchemaSampler.instantiate(this.componentSchema)),this.data.sample=sample,this.element.addEventListener("click",function(event){var collapsed,target=event.target;"collapser"===event.target.className&&(collapsed=target.parentNode.getElementsByClassName("collapsible")[0],collapsed.parentNode.classList.contains("collapsed")?collapsed.parentNode.classList.remove("collapsed"):collapsed.parentNode.classList.add("collapsed"))})}}]);var _SchemaSample=SchemaSample;return SchemaSample=Reflect.metadata("parameters",[[SchemaManager],[ElementRef]])(SchemaSample)||SchemaSample,SchemaSample=RedocComponent({selector:"schema-sample",template:'\n \n \n
Sample unavailable \n
\n
\n ',pipes:[JsonFormatter],styles:['\n pre{background-color:transparent;padding:0}:host .type-null{color:gray}:host .type-boolean{color:firebrick}:host .type-number{color:#4A8BB3}:host .type-string{color:#66B16E}:host .callback-function{color:gray}:host .collapser:after{content:"-";cursor:pointer}:host .collapsed>.collapser:after{content:"+";cursor:pointer}:host .ellipsis:after{content:" โฆ "}:host .collapsible{margin-left:2em}:host .hoverable{padding-top:1px;padding-bottom:1px;padding-left:2px;padding-right:2px;border-radius:2px}:host .hovered{background-color:#ebeef9}:host .collapser{padding-right:6px;padding-left:6px}:host .redoc-json{padding:20px;border-radius:4px;background-color:#222d32;margin-bottom:36px}:host ul,:host .redoc-json ul{list-style-type:none;padding:0px;margin:0px 0px 0px 26px}:host li{position:relative}:host .hoverable{transition:background-color .2s ease-out 0s;-webkit-transition:background-color .2s ease-out 0s;display:inline-block}:host .hovered{transition-delay:.2s;-webkit-transition-delay:.2s}:host .selected{outline-style:solid;outline-width:1px;outline-style:dotted}:host .collapsed>.collapsible{display:none}:host .ellipsis{display:none}:host .collapsed>.ellipsis{display:inherit}:host .collapser{position:absolute;top:1px;left:-1.5em;cursor:default;user-select:none;-webkit-user-select:none}\n ']
})(SchemaSample)||SchemaSample}(BaseComponent),_export("default",SchemaSample)}}}),$__System.registerDynamic("2c",["2d","2e","2f","30"],!0,function($__require,exports,module){var classof=$__require("2d"),ITERATOR=$__require("2e")("iterator"),Iterators=$__require("2f");return module.exports=$__require("30").isIterable=function(it){var O=Object(it);return void 0!==O[ITERATOR]||"@@iterator"in O||Iterators.hasOwnProperty(classof(O))},module.exports}),$__System.registerDynamic("31",["32","33","2c"],!0,function($__require,exports,module){return $__require("32"),$__require("33"),module.exports=$__require("2c"),module.exports}),$__System.registerDynamic("34",["31"],!0,function($__require,exports,module){return module.exports={"default":$__require("31"),__esModule:!0},module.exports}),$__System.registerDynamic("1b",["35","34"],!0,function($__require,exports,module){"use strict";var _getIterator=$__require("35")["default"],_isIterable=$__require("34")["default"];return exports["default"]=function(){function sliceIterator(arr,i){var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=_getIterator(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{!_n&&_i["return"]&&_i["return"]()}finally{if(_d)throw _e}}return _arr}return function(arr,i){if(Array.isArray(arr))return arr;if(_isIterable(Object(arr)))return sliceIterator(arr,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),exports.__esModule=!0,module.exports}),$__System.register("15",["16"],function(_export){"use strict";var EventEmitter,bootsrEmmiter,langChanged,redocEvents;return{setters:[function(_){EventEmitter=_.EventEmitter}],execute:function(){bootsrEmmiter=new EventEmitter,langChanged=new EventEmitter,redocEvents={bootstrapped:bootsrEmmiter,samplesLanguageChanged:langChanged},_export("redocEvents",redocEvents)}}}),$__System.registerDynamic("36",["37","2b","38","39","3a"],!0,function($__require,exports,module){"use strict";var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},__decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},dom_adapter_1=$__require("37"),lang_1=$__require("2b"),collection_1=$__require("38"),event_manager_1=$__require("39"),di_1=$__require("3a"),modifierKeys=["alt","control","meta","shift"],modifierKeyGetters={alt:function(event){return event.altKey},control:function(event){return event.ctrlKey},meta:function(event){return event.metaKey},shift:function(event){return event.shiftKey}},KeyEventsPlugin=function(_super){function KeyEventsPlugin(){_super.call(this)}return __extends(KeyEventsPlugin,_super),KeyEventsPlugin.prototype.supports=function(eventName){return lang_1.isPresent(KeyEventsPlugin.parseEventName(eventName))},KeyEventsPlugin.prototype.addEventListener=function(element,eventName,handler){var parsedEvent=KeyEventsPlugin.parseEventName(eventName),outsideHandler=KeyEventsPlugin.eventCallback(element,collection_1.StringMapWrapper.get(parsedEvent,"fullKey"),handler,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return dom_adapter_1.DOM.onAndCancel(element,collection_1.StringMapWrapper.get(parsedEvent,"domEventName"),outsideHandler)})},KeyEventsPlugin.parseEventName=function(eventName){var parts=eventName.toLowerCase().split("."),domEventName=parts.shift();if(0===parts.length||!lang_1.StringWrapper.equals(domEventName,"keydown")&&!lang_1.StringWrapper.equals(domEventName,"keyup"))return null;var key=KeyEventsPlugin._normalizeKey(parts.pop()),fullKey="";if(modifierKeys.forEach(function(modifierName){collection_1.ListWrapper.contains(parts,modifierName)&&(collection_1.ListWrapper.remove(parts,modifierName),fullKey+=modifierName+".")}),fullKey+=key,0!=parts.length||0===key.length)return null;var result=collection_1.StringMapWrapper.create();return collection_1.StringMapWrapper.set(result,"domEventName",domEventName),collection_1.StringMapWrapper.set(result,"fullKey",fullKey),result},KeyEventsPlugin.getEventFullKey=function(event){var fullKey="",key=dom_adapter_1.DOM.getEventKey(event);return key=key.toLowerCase(),lang_1.StringWrapper.equals(key," ")?key="space":lang_1.StringWrapper.equals(key,".")&&(key="dot"),modifierKeys.forEach(function(modifierName){if(modifierName!=key){var modifierGetter=collection_1.StringMapWrapper.get(modifierKeyGetters,modifierName);modifierGetter(event)&&(fullKey+=modifierName+".")}}),fullKey+=key},KeyEventsPlugin.eventCallback=function(element,fullKey,handler,zone){return function(event){lang_1.StringWrapper.equals(KeyEventsPlugin.getEventFullKey(event),fullKey)&&zone.runGuarded(function(){return handler(event)})}},KeyEventsPlugin._normalizeKey=function(keyName){switch(keyName){case"esc":return"escape";default:return keyName}},KeyEventsPlugin=__decorate([di_1.Injectable(),__metadata("design:paramtypes",[])],KeyEventsPlugin)}(event_manager_1.EventManagerPlugin);return exports.KeyEventsPlugin=KeyEventsPlugin,module.exports}),$__System.registerDynamic("3b",["38","2b","37","3c"],!0,function($__require,exports,module){"use strict";var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},collection_1=$__require("38"),lang_1=$__require("2b"),dom_adapter_1=$__require("37"),xhr_impl_1=$__require("3c"),GenericBrowserDomAdapter=function(_super){function GenericBrowserDomAdapter(){var _this=this;_super.call(this),this._animationPrefix=null,this._transitionEnd=null;try{var element=this.createElement("div",this.defaultDoc());if(lang_1.isPresent(this.getStyle(element,"animationName")))this._animationPrefix="";else for(var domPrefixes=["Webkit","Moz","O","ms"],i=0;i0},BrowserDomAdapter.prototype.tagName=function(element){return element.tagName},BrowserDomAdapter.prototype.attributeMap=function(element){for(var res=new Map,elAttrs=element.attributes,i=0;ic?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},dom_adapter_1=$__require("37"),core_1=$__require("16"),event_manager_1=$__require("39"),DomEventsPlugin=function(_super){function DomEventsPlugin(){_super.apply(this,arguments)}return __extends(DomEventsPlugin,_super),DomEventsPlugin.prototype.supports=function(eventName){return!0},DomEventsPlugin.prototype.addEventListener=function(element,eventName,handler){var zone=this.manager.getZone(),outsideHandler=function(event){return zone.runGuarded(function(){return handler(event)})};return this.manager.getZone().runOutsideAngular(function(){return dom_adapter_1.DOM.onAndCancel(element,eventName,outsideHandler)})},DomEventsPlugin.prototype.addGlobalEventListener=function(target,eventName,handler){var element=dom_adapter_1.DOM.getGlobalEventTarget(target),zone=this.manager.getZone(),outsideHandler=function(event){return zone.runGuarded(function(){return handler(event)})};return this.manager.getZone().runOutsideAngular(function(){return dom_adapter_1.DOM.onAndCancel(element,eventName,outsideHandler)})},DomEventsPlugin=__decorate([core_1.Injectable(),__metadata("design:paramtypes",[])],DomEventsPlugin)}(event_manager_1.EventManagerPlugin);return exports.DomEventsPlugin=DomEventsPlugin,module.exports}),$__System.registerDynamic("45",["2b","37"],!0,function($__require,exports,module){"use strict";var lang_1=$__require("2b"),dom_adapter_1=$__require("37"),By=function(){function By(){}return By.all=function(){return function(debugElement){return!0}},By.css=function(selector){return function(debugElement){return lang_1.isPresent(debugElement.nativeElement)?dom_adapter_1.DOM.elementMatches(debugElement.nativeElement,selector):!1}},By.directive=function(type){return function(debugElement){return-1!==debugElement.providerTokens.indexOf(type)}},By}();return exports.By=By,module.exports}),$__System.registerDynamic("46",[],!0,function($__require,exports,module){"use strict";var CssAnimationOptions=function(){function CssAnimationOptions(){this.classesToAdd=[],this.classesToRemove=[],this.animationClasses=[]}return CssAnimationOptions}();return exports.CssAnimationOptions=CssAnimationOptions,module.exports}),$__System.registerDynamic("47",["2b","48","49","38","37"],!0,function($__require,exports,module){"use strict";var lang_1=$__require("2b"),math_1=$__require("48"),util_1=$__require("49"),collection_1=$__require("38"),dom_adapter_1=$__require("37"),Animation=function(){function Animation(element,data,browserDetails){var _this=this;this.element=element,this.data=data,this.browserDetails=browserDetails,this.callbacks=[],this.eventClearFunctions=[],this.completed=!1,this._stringPrefix="",this.startTime=lang_1.DateWrapper.toMillis(lang_1.DateWrapper.now()),this._stringPrefix=dom_adapter_1.DOM.getAnimationPrefix(),this.setup(),this.wait(function(timestamp){return _this.start()})}return Object.defineProperty(Animation.prototype,"totalTime",{get:function(){var delay=null!=this.computedDelay?this.computedDelay:0,duration=null!=this.computedDuration?this.computedDuration:0;return delay+duration},enumerable:!0,configurable:!0}),Animation.prototype.wait=function(callback){this.browserDetails.raf(callback,2)},Animation.prototype.setup=function(){null!=this.data.fromStyles&&this.applyStyles(this.data.fromStyles),null!=this.data.duration&&this.applyStyles({transitionDuration:this.data.duration.toString()+"ms"}),null!=this.data.delay&&this.applyStyles({transitionDelay:this.data.delay.toString()+"ms"})},Animation.prototype.start=function(){this.addClasses(this.data.classesToAdd),this.addClasses(this.data.animationClasses),this.removeClasses(this.data.classesToRemove),null!=this.data.toStyles&&this.applyStyles(this.data.toStyles);var computedStyles=dom_adapter_1.DOM.getComputedStyle(this.element);this.computedDelay=math_1.Math.max(this.parseDurationString(computedStyles.getPropertyValue(this._stringPrefix+"transition-delay")),this.parseDurationString(this.element.style.getPropertyValue(this._stringPrefix+"transition-delay"))),this.computedDuration=math_1.Math.max(this.parseDurationString(computedStyles.getPropertyValue(this._stringPrefix+"transition-duration")),this.parseDurationString(this.element.style.getPropertyValue(this._stringPrefix+"transition-duration"))),this.addEvents()},Animation.prototype.applyStyles=function(styles){var _this=this;collection_1.StringMapWrapper.forEach(styles,function(value,key){var dashCaseKey=util_1.camelCaseToDashCase(key);lang_1.isPresent(dom_adapter_1.DOM.getStyle(_this.element,dashCaseKey))?dom_adapter_1.DOM.setStyle(_this.element,dashCaseKey,value.toString()):dom_adapter_1.DOM.setStyle(_this.element,_this._stringPrefix+dashCaseKey,value.toString())})},Animation.prototype.addClasses=function(classes){for(var i=0,len=classes.length;len>i;i++)dom_adapter_1.DOM.addClass(this.element,classes[i])},Animation.prototype.removeClasses=function(classes){for(var i=0,len=classes.length;len>i;i++)dom_adapter_1.DOM.removeClass(this.element,classes[i])},Animation.prototype.addEvents=function(){var _this=this;this.totalTime>0?this.eventClearFunctions.push(dom_adapter_1.DOM.onAndCancel(this.element,dom_adapter_1.DOM.getTransitionEnd(),function(event){return _this.handleAnimationEvent(event)})):this.handleAnimationCompleted()},Animation.prototype.handleAnimationEvent=function(event){var elapsedTime=math_1.Math.round(1e3*event.elapsedTime);this.browserDetails.elapsedTimeIncludesDelay||(elapsedTime+=this.computedDelay),event.stopPropagation(),elapsedTime>=this.totalTime&&this.handleAnimationCompleted()},Animation.prototype.handleAnimationCompleted=function(){this.removeClasses(this.data.animationClasses),this.callbacks.forEach(function(callback){
return callback()}),this.callbacks=[],this.eventClearFunctions.forEach(function(fn){return fn()}),this.eventClearFunctions=[],this.completed=!0},Animation.prototype.onComplete=function(callback){return this.completed?callback():this.callbacks.push(callback),this},Animation.prototype.parseDurationString=function(duration){var maxValue=0;if(null==duration||duration.length<2)return maxValue;if("ms"==duration.substring(duration.length-2)){var value=lang_1.NumberWrapper.parseInt(this.stripLetters(duration),10);value>maxValue&&(maxValue=value)}else if("s"==duration.substring(duration.length-1)){var ms=1e3*lang_1.NumberWrapper.parseFloat(this.stripLetters(duration)),value=math_1.Math.floor(ms);value>maxValue&&(maxValue=value)}return maxValue},Animation.prototype.stripLetters=function(str){return lang_1.StringWrapper.replaceAll(str,lang_1.RegExpWrapper.create("[^0-9]+$",""),"")},Animation}();return exports.Animation=Animation,module.exports}),$__System.registerDynamic("4a",["46","47"],!0,function($__require,exports,module){"use strict";var css_animation_options_1=$__require("46"),animation_1=$__require("47"),CssAnimationBuilder=function(){function CssAnimationBuilder(browserDetails){this.browserDetails=browserDetails,this.data=new css_animation_options_1.CssAnimationOptions}return CssAnimationBuilder.prototype.addAnimationClass=function(className){return this.data.animationClasses.push(className),this},CssAnimationBuilder.prototype.addClass=function(className){return this.data.classesToAdd.push(className),this},CssAnimationBuilder.prototype.removeClass=function(className){return this.data.classesToRemove.push(className),this},CssAnimationBuilder.prototype.setDuration=function(duration){return this.data.duration=duration,this},CssAnimationBuilder.prototype.setDelay=function(delay){return this.data.delay=delay,this},CssAnimationBuilder.prototype.setStyles=function(from,to){return this.setFromStyles(from).setToStyles(to)},CssAnimationBuilder.prototype.setFromStyles=function(from){return this.data.fromStyles=from,this},CssAnimationBuilder.prototype.setToStyles=function(to){return this.data.toStyles=to,this},CssAnimationBuilder.prototype.start=function(element){return new animation_1.Animation(element,this.data,this.browserDetails)},CssAnimationBuilder}();return exports.CssAnimationBuilder=CssAnimationBuilder,module.exports}),$__System.registerDynamic("48",["2b"],!0,function($__require,exports,module){"use strict";var lang_1=$__require("2b");return exports.Math=lang_1.global.Math,exports.NaN=typeof exports.NaN,module.exports}),$__System.registerDynamic("4b",["3a","48","37"],!0,function($__require,exports,module){"use strict";var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},di_1=$__require("3a"),math_1=$__require("48"),dom_adapter_1=$__require("37"),BrowserDetails=function(){function BrowserDetails(){this.elapsedTimeIncludesDelay=!1,this.doesElapsedTimeIncludesDelay()}return BrowserDetails.prototype.doesElapsedTimeIncludesDelay=function(){var _this=this,div=dom_adapter_1.DOM.createElement("div");dom_adapter_1.DOM.setAttribute(div,"style","position: absolute; top: -9999px; left: -9999px; width: 1px;\n height: 1px; transition: all 1ms linear 1ms;"),this.raf(function(timestamp){dom_adapter_1.DOM.on(div,"transitionend",function(event){var elapsed=math_1.Math.round(1e3*event.elapsedTime);_this.elapsedTimeIncludesDelay=2==elapsed,dom_adapter_1.DOM.remove(div)}),dom_adapter_1.DOM.setStyle(div,"width","2px")},2)},BrowserDetails.prototype.raf=function(callback,frames){void 0===frames&&(frames=1);var queue=new RafQueue(callback,frames);return function(){return queue.cancel()}},BrowserDetails=__decorate([di_1.Injectable(),__metadata("design:paramtypes",[])],BrowserDetails)}();exports.BrowserDetails=BrowserDetails;var RafQueue=function(){function RafQueue(callback,frames){this.callback=callback,this.frames=frames,this._raf()}return RafQueue.prototype._raf=function(){var _this=this;this.currentFrameId=dom_adapter_1.DOM.requestAnimationFrame(function(timestamp){return _this._nextFrame(timestamp)})},RafQueue.prototype._nextFrame=function(timestamp){this.frames--,this.frames>0?this._raf():this.callback(timestamp)},RafQueue.prototype.cancel=function(){dom_adapter_1.DOM.cancelAnimationFrame(this.currentFrameId),this.currentFrameId=null},RafQueue}();return module.exports}),$__System.registerDynamic("4c",["3a","4a","4b"],!0,function($__require,exports,module){"use strict";var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},di_1=$__require("3a"),css_animation_builder_1=$__require("4a"),browser_details_1=$__require("4b"),AnimationBuilder=function(){function AnimationBuilder(browserDetails){this.browserDetails=browserDetails}return AnimationBuilder.prototype.css=function(){return new css_animation_builder_1.CssAnimationBuilder(this.browserDetails)},AnimationBuilder=__decorate([di_1.Injectable(),__metadata("design:paramtypes",[browser_details_1.BrowserDetails])],AnimationBuilder)}();return exports.AnimationBuilder=AnimationBuilder,module.exports}),$__System.registerDynamic("4d",["37","3a","38","4e"],!0,function($__require,exports,module){"use strict";var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},__decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},__param=this&&this.__param||function(paramIndex,decorator){return function(target,key){decorator(target,key,paramIndex)}},dom_adapter_1=$__require("37"),di_1=$__require("3a"),collection_1=$__require("38"),dom_tokens_1=$__require("4e"),SharedStylesHost=function(){function SharedStylesHost(){this._styles=[],this._stylesSet=new Set}return SharedStylesHost.prototype.addStyles=function(styles){var _this=this,additions=[];styles.forEach(function(style){collection_1.SetWrapper.has(_this._stylesSet,style)||(_this._stylesSet.add(style),_this._styles.push(style),additions.push(style))}),this.onStylesAdded(additions)},SharedStylesHost.prototype.onStylesAdded=function(additions){},SharedStylesHost.prototype.getAllStyles=function(){return this._styles},SharedStylesHost=__decorate([di_1.Injectable(),__metadata("design:paramtypes",[])],SharedStylesHost)}();exports.SharedStylesHost=SharedStylesHost;var DomSharedStylesHost=function(_super){function DomSharedStylesHost(doc){_super.call(this),this._hostNodes=new Set,this._hostNodes.add(doc.head)}return __extends(DomSharedStylesHost,_super),DomSharedStylesHost.prototype._addStylesToHost=function(styles,host){for(var i=0;i0&&lang_1.isPresent(parent)){var nextSibling=dom_adapter_1.DOM.nextSibling(sibling);if(lang_1.isPresent(nextSibling))for(var i=0;ic?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},__param=this&&this.__param||function(paramIndex,decorator){return function(target,key){decorator(target,key,paramIndex)}},di_1=$__require("3a"),animation_builder_1=$__require("4c"),lang_1=$__require("2b"),exceptions_1=$__require("41"),shared_styles_host_1=$__require("4d"),event_manager_1=$__require("39"),dom_tokens_1=$__require("4e"),metadata_1=$__require("50"),dom_adapter_1=$__require("37"),util_1=$__require("49"),NAMESPACE_URIS=lang_1.CONST_EXPR({xlink:"http://www.w3.org/1999/xlink",svg:"http://www.w3.org/2000/svg"}),TEMPLATE_COMMENT_TEXT="template bindings={}",TEMPLATE_BINDINGS_EXP=/^template bindings=(.*)$/g,DomRootRenderer=function(){function DomRootRenderer(document,eventManager,sharedStylesHost,animate){this.document=document,this.eventManager=eventManager,this.sharedStylesHost=sharedStylesHost,this.animate=animate,this._registeredComponents=new Map}return DomRootRenderer.prototype.renderComponent=function(componentProto){var renderer=this._registeredComponents.get(componentProto.id);return lang_1.isBlank(renderer)&&(renderer=new DomRenderer(this,componentProto),this._registeredComponents.set(componentProto.id,renderer)),renderer},DomRootRenderer}();exports.DomRootRenderer=DomRootRenderer;var DomRootRenderer_=function(_super){function DomRootRenderer_(_document,_eventManager,sharedStylesHost,animate){_super.call(this,_document,_eventManager,sharedStylesHost,animate)}return __extends(DomRootRenderer_,_super),DomRootRenderer_=__decorate([di_1.Injectable(),__param(0,di_1.Inject(dom_tokens_1.DOCUMENT)),__metadata("design:paramtypes",[Object,event_manager_1.EventManager,shared_styles_host_1.DomSharedStylesHost,animation_builder_1.AnimationBuilder])],DomRootRenderer_)}(DomRootRenderer);exports.DomRootRenderer_=DomRootRenderer_;var DomRenderer=function(){function DomRenderer(_rootRenderer,componentProto){this._rootRenderer=_rootRenderer,this.componentProto=componentProto,this._styles=_flattenStyles(componentProto.id,componentProto.styles,[]),componentProto.encapsulation!==metadata_1.ViewEncapsulation.Native&&this._rootRenderer.sharedStylesHost.addStyles(this._styles),this.componentProto.encapsulation===metadata_1.ViewEncapsulation.Emulated?(this._contentAttr=_shimContentAttribute(componentProto.id),this._hostAttr=_shimHostAttribute(componentProto.id)):(this._contentAttr=null,this._hostAttr=null)}return DomRenderer.prototype.selectRootElement=function(selectorOrNode,debugInfo){var el;if(lang_1.isString(selectorOrNode)){if(el=dom_adapter_1.DOM.querySelector(this._rootRenderer.document,selectorOrNode),lang_1.isBlank(el))throw new exceptions_1.BaseException('The selector "'+selectorOrNode+'" did not match any elements')}else el=selectorOrNode;return dom_adapter_1.DOM.clearNodes(el),el},DomRenderer.prototype.createElement=function(parent,name,debugInfo){var nsAndName=splitNamespace(name),el=lang_1.isPresent(nsAndName[0])?dom_adapter_1.DOM.createElementNS(NAMESPACE_URIS[nsAndName[0]],nsAndName[1]):dom_adapter_1.DOM.createElement(nsAndName[1]);return lang_1.isPresent(this._contentAttr)&&dom_adapter_1.DOM.setAttribute(el,this._contentAttr,""),lang_1.isPresent(parent)&&dom_adapter_1.DOM.appendChild(parent,el),el},DomRenderer.prototype.createViewRoot=function(hostElement){var nodesParent;if(this.componentProto.encapsulation===metadata_1.ViewEncapsulation.Native){nodesParent=dom_adapter_1.DOM.createShadowRoot(hostElement),this._rootRenderer.sharedStylesHost.addHost(nodesParent);for(var i=0;i0&&lang_1.isPresent(debugParent)){var debugViewRootNodes=[];viewRootNodes.forEach(function(rootNode){return debugViewRootNodes.push(debug_node_1.getDebugNode(rootNode))}),debugParent.insertChildrenAfter(debugNode,debugViewRootNodes)}}this._delegate.attachViewAfter(node,viewRootNodes)},DebugDomRenderer.prototype.detachView=function(viewRootNodes){viewRootNodes.forEach(function(node){var debugNode=debug_node_1.getDebugNode(node);lang_1.isPresent(debugNode)&&lang_1.isPresent(debugNode.parent)&&debugNode.parent.removeChild(debugNode)}),this._delegate.detachView(viewRootNodes)},DebugDomRenderer.prototype.destroyView=function(hostElement,viewAllNodes){viewAllNodes.forEach(function(node){debug_node_1.removeDebugNodeFromIndex(debug_node_1.getDebugNode(node))}),this._delegate.destroyView(hostElement,viewAllNodes)},DebugDomRenderer.prototype.listen=function(renderElement,name,callback){var debugEl=debug_node_1.getDebugNode(renderElement);return lang_1.isPresent(debugEl)&&debugEl.listeners.push(new debug_node_1.EventListener(name,callback)),this._delegate.listen(renderElement,name,callback)},DebugDomRenderer.prototype.listenGlobal=function(target,name,callback){return this._delegate.listenGlobal(target,name,callback)},DebugDomRenderer.prototype.setElementProperty=function(renderElement,propertyName,propertyValue){var debugEl=debug_node_1.getDebugNode(renderElement);lang_1.isPresent(debugEl)&&debugEl instanceof debug_node_1.DebugElement&&(debugEl.properties[propertyName]=propertyValue),this._delegate.setElementProperty(renderElement,propertyName,propertyValue)},DebugDomRenderer.prototype.setElementAttribute=function(renderElement,attributeName,attributeValue){var debugEl=debug_node_1.getDebugNode(renderElement);lang_1.isPresent(debugEl)&&debugEl instanceof debug_node_1.DebugElement&&(debugEl.attributes[attributeName]=attributeValue),this._delegate.setElementAttribute(renderElement,attributeName,attributeValue)},DebugDomRenderer.prototype.setBindingDebugInfo=function(renderElement,propertyName,propertyValue){this._delegate.setBindingDebugInfo(renderElement,propertyName,propertyValue)},DebugDomRenderer.prototype.setElementClass=function(renderElement,className,isAdd){this._delegate.setElementClass(renderElement,className,isAdd)},DebugDomRenderer.prototype.setElementStyle=function(renderElement,styleName,styleValue){this._delegate.setElementStyle(renderElement,styleName,styleValue)},DebugDomRenderer.prototype.invokeElementMethod=function(renderElement,methodName,args){this._delegate.invokeElementMethod(renderElement,methodName,args)},DebugDomRenderer.prototype.setText=function(renderNode,text){this._delegate.setText(renderNode,text)},DebugDomRenderer}();return exports.DebugDomRenderer=DebugDomRenderer,module.exports}),$__System.registerDynamic("53",["2b","3a","37","52","4f","16","51"],!0,function($__require,exports,module){"use strict";function inspectNativeElement(element){return debug_node_1.getDebugNode(element)}function _createConditionalRootRenderer(rootRenderer){return lang_1.assertionsEnabled()?_createRootRenderer(rootRenderer):rootRenderer}function _createRootRenderer(rootRenderer){return dom_adapter_1.DOM.setGlobalVar(INSPECT_GLOBAL_NAME,inspectNativeElement),dom_adapter_1.DOM.setGlobalVar(CORE_TOKENS_GLOBAL_NAME,CORE_TOKENS),new debug_renderer_1.DebugDomRootRenderer(rootRenderer)}var lang_1=$__require("2b"),di_1=$__require("3a"),dom_adapter_1=$__require("37"),debug_node_1=$__require("52"),dom_renderer_1=$__require("4f"),core_1=$__require("16"),debug_renderer_1=$__require("51"),CORE_TOKENS=lang_1.CONST_EXPR({ApplicationRef:core_1.ApplicationRef,NgZone:core_1.NgZone}),INSPECT_GLOBAL_NAME="ng.probe",CORE_TOKENS_GLOBAL_NAME="ng.coreTokens";return exports.inspectNativeElement=inspectNativeElement,exports.ELEMENT_PROBE_PROVIDERS=lang_1.CONST_EXPR([new di_1.Provider(core_1.RootRenderer,{useFactory:_createConditionalRootRenderer,deps:[dom_renderer_1.DomRootRenderer]})]),exports.ELEMENT_PROBE_PROVIDERS_PROD_MODE=lang_1.CONST_EXPR([new di_1.Provider(core_1.RootRenderer,{useFactory:_createRootRenderer,deps:[dom_renderer_1.DomRootRenderer]})]),module.exports}),$__System.registerDynamic("54",["37","4f","4e","4d","44","39","45","53"],!0,function($__require,exports,module){"use strict";function __export(m){for(var p in m)exports.hasOwnProperty(p)||(exports[p]=m[p])}var dom_adapter_1=$__require("37");exports.DOM=dom_adapter_1.DOM,exports.setRootDomAdapter=dom_adapter_1.setRootDomAdapter,exports.DomAdapter=dom_adapter_1.DomAdapter;var dom_renderer_1=$__require("4f");exports.DomRenderer=dom_renderer_1.DomRenderer;var dom_tokens_1=$__require("4e");exports.DOCUMENT=dom_tokens_1.DOCUMENT;var shared_styles_host_1=$__require("4d");exports.SharedStylesHost=shared_styles_host_1.SharedStylesHost,exports.DomSharedStylesHost=shared_styles_host_1.DomSharedStylesHost;var dom_events_1=$__require("44");exports.DomEventsPlugin=dom_events_1.DomEventsPlugin;var event_manager_1=$__require("39");return exports.EVENT_MANAGER_PLUGINS=event_manager_1.EVENT_MANAGER_PLUGINS,exports.EventManager=event_manager_1.EventManager,exports.EventManagerPlugin=event_manager_1.EventManagerPlugin,__export($__require("45")),__export($__require("53")),module.exports}),$__System.registerDynamic("55",["37"],!0,function($__require,exports,module){"use strict";var dom_adapter_1=$__require("37"),Title=function(){function Title(){}return Title.prototype.getTitle=function(){return dom_adapter_1.DOM.getTitle()},Title.prototype.setTitle=function(newTitle){dom_adapter_1.DOM.setTitle(newTitle)},Title}();return exports.Title=Title,module.exports}),$__System.registerDynamic("56",[],!0,function($__require,exports,module){"use strict";var win=window;return exports.window=win,exports.document=window.document,exports.location=window.location,exports.gc=window.gc?function(){return window.gc()}:function(){return null},exports.performance=window.performance?window.performance:null,exports.Event=window.Event,exports.MouseEvent=window.MouseEvent,exports.KeyboardEvent=window.KeyboardEvent,exports.EventTarget=window.EventTarget,exports.History=window.History,exports.Location=window.Location,exports.EventListener=window.EventListener,module.exports}),$__System.registerDynamic("57",["58","2b","56","37"],!0,function($__require,exports,module){"use strict";var application_ref_1=$__require("58"),lang_1=$__require("2b"),browser_1=$__require("56"),dom_adapter_1=$__require("37"),ChangeDetectionPerfRecord=function(){function ChangeDetectionPerfRecord(msPerTick,numTicks){this.msPerTick=msPerTick,this.numTicks=numTicks}return ChangeDetectionPerfRecord}();exports.ChangeDetectionPerfRecord=ChangeDetectionPerfRecord;var AngularTools=function(){function AngularTools(ref){this.profiler=new AngularProfiler(ref)}return AngularTools}();exports.AngularTools=AngularTools;var AngularProfiler=function(){function AngularProfiler(ref){this.appRef=ref.injector.get(application_ref_1.ApplicationRef)}return AngularProfiler.prototype.timeChangeDetection=function(config){var record=lang_1.isPresent(config)&&config.record,profileName="Change Detection",isProfilerAvailable=lang_1.isPresent(browser_1.window.console.profile);record&&isProfilerAvailable&&browser_1.window.console.profile(profileName);for(var start=dom_adapter_1.DOM.performanceNow(),numTicks=0;5>numTicks||dom_adapter_1.DOM.performanceNow()-start<500;)this.appRef.tick(),numTicks++;var end=dom_adapter_1.DOM.performanceNow();record&&isProfilerAvailable&&browser_1.window.console.profileEnd(profileName);var msPerTick=(end-start)/numTicks;return browser_1.window.console.log("ran "+numTicks+" change detection cycles"),browser_1.window.console.log(lang_1.NumberWrapper.toFixed(msPerTick,2)+" ms per check"),new ChangeDetectionPerfRecord(msPerTick,numTicks)},AngularProfiler}();return exports.AngularProfiler=AngularProfiler,module.exports}),$__System.registerDynamic("59",["2b","57"],!0,function($__require,exports,module){"use strict";function enableDebugTools(ref){context.ng=new common_tools_1.AngularTools(ref)}function disableDebugTools(){delete context.ng}var lang_1=$__require("2b"),common_tools_1=$__require("57"),context=lang_1.global;return exports.enableDebugTools=enableDebugTools,exports.disableDebugTools=disableDebugTools,module.exports}),$__System.registerDynamic("39",["2b","41","3a","5a","38"],!0,function($__require,exports,module){"use strict";var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0;
},__param=this&&this.__param||function(paramIndex,decorator){return function(target,key){decorator(target,key,paramIndex)}},lang_1=$__require("2b"),exceptions_1=$__require("41"),di_1=$__require("3a"),ng_zone_1=$__require("5a"),collection_1=$__require("38");exports.EVENT_MANAGER_PLUGINS=lang_1.CONST_EXPR(new di_1.OpaqueToken("EventManagerPlugins"));var EventManager=function(){function EventManager(plugins,_zone){var _this=this;this._zone=_zone,plugins.forEach(function(p){return p.manager=_this}),this._plugins=collection_1.ListWrapper.reversed(plugins)}return EventManager.prototype.addEventListener=function(element,eventName,handler){var plugin=this._findPluginFor(eventName);return plugin.addEventListener(element,eventName,handler)},EventManager.prototype.addGlobalEventListener=function(target,eventName,handler){var plugin=this._findPluginFor(eventName);return plugin.addGlobalEventListener(target,eventName,handler)},EventManager.prototype.getZone=function(){return this._zone},EventManager.prototype._findPluginFor=function(eventName){for(var plugins=this._plugins,i=0;ic?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},__param=this&&this.__param||function(paramIndex,decorator){return function(target,key){decorator(target,key,paramIndex)}},hammer_common_1=$__require("5b"),lang_1=$__require("2b"),exceptions_1=$__require("41"),core_1=$__require("16");exports.HAMMER_GESTURE_CONFIG=lang_1.CONST_EXPR(new core_1.OpaqueToken("HammerGestureConfig"));var HammerGestureConfig=function(){function HammerGestureConfig(){this.events=[],this.overrides={}}return HammerGestureConfig.prototype.buildHammer=function(element){var mc=new Hammer(element);mc.get("pinch").set({enable:!0}),mc.get("rotate").set({enable:!0});for(var eventName in this.overrides)mc.get(eventName).set(this.overrides[eventName]);return mc},HammerGestureConfig=__decorate([core_1.Injectable(),__metadata("design:paramtypes",[])],HammerGestureConfig)}();exports.HammerGestureConfig=HammerGestureConfig;var HammerGesturesPlugin=function(_super){function HammerGesturesPlugin(_config){_super.call(this),this._config=_config}return __extends(HammerGesturesPlugin,_super),HammerGesturesPlugin.prototype.supports=function(eventName){if(!_super.prototype.supports.call(this,eventName)&&!this.isCustomEvent(eventName))return!1;if(!lang_1.isPresent(window.Hammer))throw new exceptions_1.BaseException("Hammer.js is not loaded, can not bind "+eventName+" event");return!0},HammerGesturesPlugin.prototype.addEventListener=function(element,eventName,handler){var _this=this,zone=this.manager.getZone();return eventName=eventName.toLowerCase(),zone.runOutsideAngular(function(){var mc=_this._config.buildHammer(element),callback=function(eventObj){zone.runGuarded(function(){handler(eventObj)})};return mc.on(eventName,callback),function(){mc.off(eventName,callback)}})},HammerGesturesPlugin.prototype.isCustomEvent=function(eventName){return this._config.events.indexOf(eventName)>-1},HammerGesturesPlugin=__decorate([core_1.Injectable(),__param(0,core_1.Inject(exports.HAMMER_GESTURE_CONFIG)),__metadata("design:paramtypes",[HammerGestureConfig])],HammerGesturesPlugin)}(hammer_common_1.HammerGesturesPluginCommon);return exports.HammerGesturesPlugin=HammerGesturesPlugin,module.exports}),$__System.registerDynamic("5d",["2b","3a","40","16","23","5e","37","44","36","4e","4f","4d","4b","4c","3d","3e","3f","43","39","5c","54","55","59","5c"],!0,function($__require,exports,module){"use strict";function _exceptionHandler(){return new core_1.ExceptionHandler(dom_adapter_1.DOM,!lang_1.IS_DART)}function _document(){return dom_adapter_1.DOM.defaultDoc()}function initDomAdapter(){browser_adapter_1.BrowserDomAdapter.makeCurrent(),wtf_init_1.wtfInit(),testability_2.BrowserGetTestability.init()}var lang_1=$__require("2b"),di_1=$__require("3a"),xhr_1=$__require("40"),core_1=$__require("16"),common_1=$__require("23"),testability_1=$__require("5e"),dom_adapter_1=$__require("37"),dom_events_1=$__require("44"),key_events_1=$__require("36"),dom_tokens_1=$__require("4e"),dom_renderer_1=$__require("4f"),shared_styles_host_1=$__require("4d"),browser_details_1=$__require("4b"),animation_builder_1=$__require("4c"),browser_adapter_1=$__require("3d"),testability_2=$__require("3e"),xhr_cache_1=$__require("3f"),wtf_init_1=$__require("43"),event_manager_1=$__require("39"),hammer_gestures_1=$__require("5c"),common_dom_1=$__require("54"),dom_tokens_2=$__require("4e");exports.DOCUMENT=dom_tokens_2.DOCUMENT;var title_1=$__require("55");exports.Title=title_1.Title;var common_dom_2=$__require("54");exports.ELEMENT_PROBE_PROVIDERS=common_dom_2.ELEMENT_PROBE_PROVIDERS,exports.ELEMENT_PROBE_PROVIDERS_PROD_MODE=common_dom_2.ELEMENT_PROBE_PROVIDERS_PROD_MODE,exports.inspectNativeElement=common_dom_2.inspectNativeElement,exports.By=common_dom_2.By;var browser_adapter_2=$__require("3d");exports.BrowserDomAdapter=browser_adapter_2.BrowserDomAdapter;var tools_1=$__require("59");exports.enableDebugTools=tools_1.enableDebugTools,exports.disableDebugTools=tools_1.disableDebugTools;var hammer_gestures_2=$__require("5c");return exports.HAMMER_GESTURE_CONFIG=hammer_gestures_2.HAMMER_GESTURE_CONFIG,exports.HammerGestureConfig=hammer_gestures_2.HammerGestureConfig,exports.BROWSER_PLATFORM_MARKER=lang_1.CONST_EXPR(new di_1.OpaqueToken("BrowserPlatformMarker")),exports.BROWSER_PROVIDERS=lang_1.CONST_EXPR([new di_1.Provider(exports.BROWSER_PLATFORM_MARKER,{useValue:!0}),core_1.PLATFORM_COMMON_PROVIDERS,new di_1.Provider(core_1.PLATFORM_INITIALIZER,{useValue:initDomAdapter,multi:!0})]),exports.BROWSER_APP_COMMON_PROVIDERS=lang_1.CONST_EXPR([core_1.APPLICATION_COMMON_PROVIDERS,common_1.FORM_PROVIDERS,new di_1.Provider(core_1.PLATFORM_PIPES,{useValue:common_1.COMMON_PIPES,multi:!0}),new di_1.Provider(core_1.PLATFORM_DIRECTIVES,{useValue:common_1.COMMON_DIRECTIVES,multi:!0}),new di_1.Provider(core_1.ExceptionHandler,{useFactory:_exceptionHandler,deps:[]}),new di_1.Provider(dom_tokens_1.DOCUMENT,{useFactory:_document,deps:[]}),new di_1.Provider(event_manager_1.EVENT_MANAGER_PLUGINS,{useClass:dom_events_1.DomEventsPlugin,multi:!0}),new di_1.Provider(event_manager_1.EVENT_MANAGER_PLUGINS,{useClass:key_events_1.KeyEventsPlugin,multi:!0}),new di_1.Provider(event_manager_1.EVENT_MANAGER_PLUGINS,{useClass:hammer_gestures_1.HammerGesturesPlugin,multi:!0}),new di_1.Provider(hammer_gestures_1.HAMMER_GESTURE_CONFIG,{useClass:hammer_gestures_1.HammerGestureConfig}),new di_1.Provider(dom_renderer_1.DomRootRenderer,{useClass:dom_renderer_1.DomRootRenderer_}),new di_1.Provider(core_1.RootRenderer,{useExisting:dom_renderer_1.DomRootRenderer}),new di_1.Provider(shared_styles_host_1.SharedStylesHost,{useExisting:shared_styles_host_1.DomSharedStylesHost}),shared_styles_host_1.DomSharedStylesHost,testability_1.Testability,browser_details_1.BrowserDetails,animation_builder_1.AnimationBuilder,event_manager_1.EventManager,common_dom_1.ELEMENT_PROBE_PROVIDERS]),exports.CACHED_TEMPLATE_PROVIDER=lang_1.CONST_EXPR([new di_1.Provider(xhr_1.XHR,{useClass:xhr_cache_1.CachedXHR})]),exports.initDomAdapter=initDomAdapter,module.exports}),$__System.registerDynamic("5f",["60","41","38","61","62","63"],!0,function($__require,exports,module){"use strict";function _resolveViewStatements(compileResult){return compileResult.dependencies.forEach(function(dep){dep.factoryPlaceholder.moduleUrl=_templateModuleUrl(dep.comp)}),compileResult.statements}function _resolveStyleStatements(compileResult){return compileResult.dependencies.forEach(function(dep){dep.valuePlaceholder.moduleUrl=_stylesModuleUrl(dep.sourceUrl,dep.isShimmed)}),compileResult.statements}function _templateModuleUrl(comp){var moduleUrl=comp.type.moduleUrl,urlWithoutSuffix=moduleUrl.substring(0,moduleUrl.length-util_1.MODULE_SUFFIX.length);return urlWithoutSuffix+".ngfactory"+util_1.MODULE_SUFFIX}function _stylesModuleUrl(stylesheetUrl,shim){return shim?stylesheetUrl+".shim"+util_1.MODULE_SUFFIX:""+stylesheetUrl+util_1.MODULE_SUFFIX}function _assertComponent(meta){if(!meta.isComponent)throw new exceptions_1.BaseException("Could not compile '"+meta.type.name+"' because it is not a component.")}var compile_metadata_1=$__require("60"),exceptions_1=$__require("41"),collection_1=$__require("38"),o=$__require("61"),component_factory_1=$__require("62"),util_1=$__require("63"),_COMPONENT_FACTORY_IDENTIFIER=new compile_metadata_1.CompileIdentifierMetadata({name:"ComponentFactory",runtime:component_factory_1.ComponentFactory,moduleUrl:"asset:angular2/lib/src/core/linker/component_factory"+util_1.MODULE_SUFFIX}),SourceModule=function(){function SourceModule(moduleUrl,source){this.moduleUrl=moduleUrl,this.source=source}return SourceModule}();exports.SourceModule=SourceModule;var NormalizedComponentWithViewDirectives=function(){function NormalizedComponentWithViewDirectives(component,directives,pipes){this.component=component,this.directives=directives,this.pipes=pipes}return NormalizedComponentWithViewDirectives}();exports.NormalizedComponentWithViewDirectives=NormalizedComponentWithViewDirectives;var OfflineCompiler=function(){function OfflineCompiler(_directiveNormalizer,_templateParser,_styleCompiler,_viewCompiler,_outputEmitter){this._directiveNormalizer=_directiveNormalizer,this._templateParser=_templateParser,this._styleCompiler=_styleCompiler,this._viewCompiler=_viewCompiler,this._outputEmitter=_outputEmitter}return OfflineCompiler.prototype.normalizeDirectiveMetadata=function(directive){return this._directiveNormalizer.normalizeDirective(directive)},OfflineCompiler.prototype.compileTemplates=function(components){var _this=this;if(0===components.length)throw new exceptions_1.BaseException("No components given");var statements=[],exportedVars=[],moduleUrl=_templateModuleUrl(components[0].component);return components.forEach(function(componentWithDirs){var compMeta=componentWithDirs.component;_assertComponent(compMeta);var compViewFactoryVar=_this._compileComponent(compMeta,componentWithDirs.directives,componentWithDirs.pipes,statements);exportedVars.push(compViewFactoryVar);var hostMeta=compile_metadata_1.createHostComponentMeta(compMeta.type,compMeta.selector),hostViewFactoryVar=_this._compileComponent(hostMeta,[compMeta],[],statements),compFactoryVar=compMeta.type.name+"NgFactory";statements.push(o.variable(compFactoryVar).set(o.importExpr(_COMPONENT_FACTORY_IDENTIFIER).instantiate([o.literal(compMeta.selector),o.variable(hostViewFactoryVar),o.importExpr(compMeta.type)],o.importType(_COMPONENT_FACTORY_IDENTIFIER,null,[o.TypeModifier.Const]))).toDeclStmt(null,[o.StmtModifier.Final])),exportedVars.push(compFactoryVar)}),this._codegenSourceModule(moduleUrl,statements,exportedVars)},OfflineCompiler.prototype.compileStylesheet=function(stylesheetUrl,cssText){var plainStyles=this._styleCompiler.compileStylesheet(stylesheetUrl,cssText,!1),shimStyles=this._styleCompiler.compileStylesheet(stylesheetUrl,cssText,!0);return[this._codegenSourceModule(_stylesModuleUrl(stylesheetUrl,!1),_resolveStyleStatements(plainStyles),[plainStyles.stylesVar]),this._codegenSourceModule(_stylesModuleUrl(stylesheetUrl,!0),_resolveStyleStatements(shimStyles),[shimStyles.stylesVar])]},OfflineCompiler.prototype._compileComponent=function(compMeta,directives,pipes,targetStatements){var styleResult=this._styleCompiler.compileComponent(compMeta),parsedTemplate=this._templateParser.parse(compMeta,compMeta.template.template,directives,pipes,compMeta.type.name),viewResult=this._viewCompiler.compileComponent(compMeta,parsedTemplate,o.variable(styleResult.stylesVar),pipes);return collection_1.ListWrapper.addAll(targetStatements,_resolveStyleStatements(styleResult)),collection_1.ListWrapper.addAll(targetStatements,_resolveViewStatements(viewResult)),viewResult.viewFactoryVar},OfflineCompiler.prototype._codegenSourceModule=function(moduleUrl,statements,exportedVars){return new SourceModule(moduleUrl,this._outputEmitter.emitStatements(moduleUrl,statements,exportedVars))},OfflineCompiler}();return exports.OfflineCompiler=OfflineCompiler,module.exports}),$__System.registerDynamic("64",["38","2b"],!0,function($__require,exports,module){"use strict";function stripComments(input){return lang_1.StringWrapper.replaceAllMapped(input,_commentRe,function(_){return""})}function processRules(input,ruleCallback){var inputWithEscapedBlocks=escapeBlocks(input),nextBlockIndex=0;return lang_1.StringWrapper.replaceAllMapped(inputWithEscapedBlocks.escapedString,_ruleRe,function(m){var selector=m[2],content="",suffix=m[4],contentPrefix="";lang_1.isPresent(m[4])&&m[4].startsWith("{"+BLOCK_PLACEHOLDER)&&(content=inputWithEscapedBlocks.blocks[nextBlockIndex++],suffix=m[4].substring(BLOCK_PLACEHOLDER.length+1),contentPrefix="{");var rule=ruleCallback(new CssRule(selector,content));return""+m[1]+rule.selector+m[3]+contentPrefix+rule.content+suffix})}function escapeBlocks(input){for(var inputParts=lang_1.StringWrapper.split(input,_curlyRe),resultParts=[],escapedBlocks=[],bracketCount=0,currentBlockParts=[],partIndex=0;partIndex0?currentBlockParts.push(part):(currentBlockParts.length>0&&(escapedBlocks.push(currentBlockParts.join("")),resultParts.push(BLOCK_PLACEHOLDER),currentBlockParts=[]),resultParts.push(part)),part==OPEN_CURLY&&bracketCount++}return currentBlockParts.length>0&&(escapedBlocks.push(currentBlockParts.join("")),resultParts.push(BLOCK_PLACEHOLDER)),new StringWithEscapedBlocks(resultParts.join(""),escapedBlocks)}var collection_1=$__require("38"),lang_1=$__require("2b"),ShadowCss=function(){function ShadowCss(){this.strictStyling=!0}return ShadowCss.prototype.shimCssText=function(cssText,selector,hostSelector){return void 0===hostSelector&&(hostSelector=""),cssText=stripComments(cssText),cssText=this._insertDirectives(cssText),this._scopeCssText(cssText,selector,hostSelector)},ShadowCss.prototype._insertDirectives=function(cssText){return cssText=this._insertPolyfillDirectivesInCssText(cssText),this._insertPolyfillRulesInCssText(cssText)},ShadowCss.prototype._insertPolyfillDirectivesInCssText=function(cssText){return lang_1.StringWrapper.replaceAllMapped(cssText,_cssContentNextSelectorRe,function(m){return m[1]+"{"})},ShadowCss.prototype._insertPolyfillRulesInCssText=function(cssText){return lang_1.StringWrapper.replaceAllMapped(cssText,_cssContentRuleRe,function(m){var rule=m[0];return rule=lang_1.StringWrapper.replace(rule,m[1],""),rule=lang_1.StringWrapper.replace(rule,m[2],""),m[3]+rule})},ShadowCss.prototype._scopeCssText=function(cssText,scopeSelector,hostSelector){var unscoped=this._extractUnscopedRulesFromCssText(cssText);return cssText=this._insertPolyfillHostInCssText(cssText),cssText=this._convertColonHost(cssText),cssText=this._convertColonHostContext(cssText),cssText=this._convertShadowDOMSelectors(cssText),lang_1.isPresent(scopeSelector)&&(cssText=this._scopeSelectors(cssText,scopeSelector,hostSelector)),cssText=cssText+"\n"+unscoped,cssText.trim()},ShadowCss.prototype._extractUnscopedRulesFromCssText=function(cssText){for(var m,r="",matcher=lang_1.RegExpWrapper.matcher(_cssContentUnscopedRuleRe,cssText);lang_1.isPresent(m=lang_1.RegExpMatcherWrapper.next(matcher));){var rule=m[0];rule=lang_1.StringWrapper.replace(rule,m[2],""),rule=lang_1.StringWrapper.replace(rule,m[1],m[3]),r+=rule+"\n\n"}return r},ShadowCss.prototype._convertColonHost=function(cssText){return this._convertColonRule(cssText,_cssColonHostRe,this._colonHostPartReplacer)},ShadowCss.prototype._convertColonHostContext=function(cssText){return this._convertColonRule(cssText,_cssColonHostContextRe,this._colonHostContextPartReplacer)},ShadowCss.prototype._convertColonRule=function(cssText,regExp,partReplacer){return lang_1.StringWrapper.replaceAllMapped(cssText,regExp,function(m){if(lang_1.isPresent(m[2])){for(var parts=m[2].split(","),r=[],i=0;i","+","~"],scoped=selector,attrName="["+scopeSelector+"]",i=0;i0&&!collection_1.ListWrapper.contains(splits,t)&&!lang_1.StringWrapper.contains(t,attrName)){var re=/([^:]*)(:*)(.*)/g,m=lang_1.RegExpWrapper.firstMatch(re,t);lang_1.isPresent(m)&&(p=m[1]+attrName+m[2]+m[3])}return p}).join(sep)}return scoped},ShadowCss.prototype._insertPolyfillHostInCssText=function(selector){return selector=lang_1.StringWrapper.replaceAll(selector,_colonHostContextRe,_polyfillHostContext),selector=lang_1.StringWrapper.replaceAll(selector,_colonHostRe,_polyfillHost)},ShadowCss}();exports.ShadowCss=ShadowCss;var _cssContentNextSelectorRe=/polyfill-next-selector[^}]*content:[\s]*?['"](.*?)['"][;\s]*}([^{]*?){/gim,_cssContentRuleRe=/(polyfill-rule)[^}]*(content:[\s]*['"](.*?)['"])[;\s]*[^}]*}/gim,_cssContentUnscopedRuleRe=/(polyfill-unscoped-rule)[^}]*(content:[\s]*['"](.*?)['"])[;\s]*[^}]*}/gim,_polyfillHost="-shadowcsshost",_polyfillHostContext="-shadowcsscontext",_parenSuffix=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",_cssColonHostRe=lang_1.RegExpWrapper.create("("+_polyfillHost+_parenSuffix,"im"),_cssColonHostContextRe=lang_1.RegExpWrapper.create("("+_polyfillHostContext+_parenSuffix,"im"),_polyfillHostNoCombinator=_polyfillHost+"-no-combinator",_shadowDOMSelectorsRe=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],_shadowDeepSelectors=/(?:>>>)|(?:\/deep\/)/g,_selectorReSuffix="([>\\s~+[.,{:][\\s\\S]*)?$",_polyfillHostRe=lang_1.RegExpWrapper.create(_polyfillHost,"im"),_colonHostRe=/:host/gim,_colonHostContextRe=/:host-context/gim,_commentRe=/\/\*[\s\S]*?\*\//g,_ruleRe=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,_curlyRe=/([{}])/g,OPEN_CURLY="{",CLOSE_CURLY="}",BLOCK_PLACEHOLDER="%BLOCK%",CssRule=function(){function CssRule(selector,content){this.selector=selector,this.content=content}return CssRule}();exports.CssRule=CssRule,exports.processRules=processRules;var StringWithEscapedBlocks=function(){function StringWithEscapedBlocks(escapedString,blocks){this.escapedString=escapedString,this.blocks=blocks}return StringWithEscapedBlocks}();return module.exports}),$__System.registerDynamic("65",["60","61","66","64","67","68","3a","2b"],!0,function($__require,exports,module){"use strict";function getStylesVarName(component){var result="styles";return lang_1.isPresent(component)&&(result+="_"+component.type.name),result}var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},compile_metadata_1=$__require("60"),o=$__require("61"),view_1=$__require("66"),shadow_css_1=$__require("64"),url_resolver_1=$__require("67"),style_url_resolver_1=$__require("68"),di_1=$__require("3a"),lang_1=$__require("2b"),COMPONENT_VARIABLE="%COMP%",HOST_ATTR="_nghost-"+COMPONENT_VARIABLE,CONTENT_ATTR="_ngcontent-"+COMPONENT_VARIABLE,StylesCompileDependency=function(){function StylesCompileDependency(sourceUrl,isShimmed,valuePlaceholder){this.sourceUrl=sourceUrl,this.isShimmed=isShimmed,this.valuePlaceholder=valuePlaceholder}return StylesCompileDependency}();exports.StylesCompileDependency=StylesCompileDependency;var StylesCompileResult=function(){function StylesCompileResult(statements,stylesVar,dependencies){this.statements=statements,this.stylesVar=stylesVar,this.dependencies=dependencies}return StylesCompileResult}();exports.StylesCompileResult=StylesCompileResult;var StyleCompiler=function(){function StyleCompiler(_urlResolver){this._urlResolver=_urlResolver,this._shadowCss=new shadow_css_1.ShadowCss}return StyleCompiler.prototype.compileComponent=function(comp){var shim=comp.template.encapsulation===view_1.ViewEncapsulation.Emulated;return this._compileStyles(getStylesVarName(comp),comp.template.styles,comp.template.styleUrls,shim)},StyleCompiler.prototype.compileStylesheet=function(stylesheetUrl,cssText,isShimmed){var styleWithImports=style_url_resolver_1.extractStyleUrls(this._urlResolver,stylesheetUrl,cssText);return this._compileStyles(getStylesVarName(null),[styleWithImports.style],styleWithImports.styleUrls,isShimmed)},StyleCompiler.prototype._compileStyles=function(stylesVar,plainStyles,absUrls,shim){for(var _this=this,styleExpressions=plainStyles.map(function(plainStyle){return o.literal(_this._shimIfNeeded(plainStyle,shim))}),dependencies=[],i=0;i=0;i--){var localPipeMeta=view.pipeMetas[i];if(localPipeMeta.name==name){pipeMeta=localPipeMeta;break}}if(lang_1.isBlank(pipeMeta))throw new exceptions_1.BaseException("Illegal state: Could not find pipe "+name+" although the parser should have detected this error!");return pipeMeta}var lang_1=$__require("2b"),exceptions_1=$__require("41"),o=$__require("61"),identifiers_1=$__require("6a"),util_1=$__require("6b"),_PurePipeProxy=function(){function _PurePipeProxy(instance,argCount){this.instance=instance,this.argCount=argCount}return _PurePipeProxy}(),CompilePipe=function(){function CompilePipe(view,name){this.view=view,this._purePipeProxies=[],this.meta=_findPipeMeta(view,name),this.instance=o.THIS_EXPR.prop("_pipe_"+name+"_"+view.pipeCount++)}return Object.defineProperty(CompilePipe.prototype,"pure",{get:function(){return this.meta.pure},enumerable:!0,configurable:!0}),CompilePipe.prototype.create=function(){var _this=this,deps=this.meta.type.diDeps.map(function(diDep){return diDep.token.equalsTo(identifiers_1.identifierToken(identifiers_1.Identifiers.ChangeDetectorRef))?o.THIS_EXPR.prop("ref"):util_1.injectFromViewParentInjector(diDep.token,!1)});this.view.fields.push(new o.ClassField(this.instance.name,o.importType(this.meta.type),[o.StmtModifier.Private])),this.view.createMethod.resetDebugInfo(null,null),this.view.createMethod.addStmt(o.THIS_EXPR.prop(this.instance.name).set(o.importExpr(this.meta.type).instantiate(deps)).toStmt()),this._purePipeProxies.forEach(function(purePipeProxy){util_1.createPureProxy(_this.instance.prop("transform").callMethod(o.BuiltinMethod.bind,[_this.instance]),purePipeProxy.argCount,purePipeProxy.instance,_this.view)})},CompilePipe.prototype.call=function(callingView,args){if(this.meta.pure){var purePipeProxy=new _PurePipeProxy(o.THIS_EXPR.prop(this.instance.name+"_"+this._purePipeProxies.length),args.length);return this._purePipeProxies.push(purePipeProxy),util_1.getPropertyInView(o.importExpr(identifiers_1.Identifiers.castByValue).callFn([purePipeProxy.instance,this.instance.prop("transform")]),callingView,this.view).callFn(args)}return util_1.getPropertyInView(this.instance,callingView,this.view).callMethod("transform",args)},CompilePipe}();return exports.CompilePipe=CompilePipe,module.exports}),$__System.registerDynamic("6c",["2b","38","61","6d","6e","6f","69","70","60","6b"],!0,function($__require,exports,module){"use strict";function getViewType(component,embeddedTemplateIndex){return embeddedTemplateIndex>0?view_type_1.ViewType.EMBEDDED:component.type.isHost?view_type_1.ViewType.HOST:view_type_1.ViewType.COMPONENT}var lang_1=$__require("2b"),collection_1=$__require("38"),o=$__require("61"),constants_1=$__require("6d"),compile_query_1=$__require("6e"),compile_method_1=$__require("6f"),compile_pipe_1=$__require("69"),view_type_1=$__require("70"),compile_metadata_1=$__require("60"),util_1=$__require("6b"),CompileView=function(){function CompileView(component,genConfig,pipeMetas,styles,viewIndex,declarationElement,templateVariableBindings){var _this=this;this.component=component,this.genConfig=genConfig,this.pipeMetas=pipeMetas,this.styles=styles,this.viewIndex=viewIndex,this.declarationElement=declarationElement,this.templateVariableBindings=templateVariableBindings,this.nodes=[],this.rootNodesOrAppElements=[],this.bindings=[],this.classStatements=[],this.eventHandlerMethods=[],this.fields=[],this.getters=[],this.disposables=[],this.subscriptions=[],this.purePipes=new Map,this.pipes=[],this.locals=new Map,this.literalArrayCount=0,this.literalMapCount=0,this.pipeCount=0,this.createMethod=new compile_method_1.CompileMethod(this),this.injectorGetMethod=new compile_method_1.CompileMethod(this),this.updateContentQueriesMethod=new compile_method_1.CompileMethod(this),this.dirtyParentQueriesMethod=new compile_method_1.CompileMethod(this),this.updateViewQueriesMethod=new compile_method_1.CompileMethod(this),this.detectChangesInInputsMethod=new compile_method_1.CompileMethod(this),this.detectChangesRenderPropertiesMethod=new compile_method_1.CompileMethod(this),this.afterContentLifecycleCallbacksMethod=new compile_method_1.CompileMethod(this),this.afterViewLifecycleCallbacksMethod=new compile_method_1.CompileMethod(this),
this.destroyMethod=new compile_method_1.CompileMethod(this),this.viewType=getViewType(component,viewIndex),this.className="_View_"+component.type.name+viewIndex,this.classType=o.importType(new compile_metadata_1.CompileIdentifierMetadata({name:this.className})),this.viewFactory=o.variable(util_1.getViewFactoryName(component,viewIndex)),this.viewType===view_type_1.ViewType.COMPONENT||this.viewType===view_type_1.ViewType.HOST?this.componentView=this:this.componentView=this.declarationElement.view.componentView;var viewQueries=new compile_metadata_1.CompileTokenMap;if(this.viewType===view_type_1.ViewType.COMPONENT){var directiveInstance=o.THIS_EXPR.prop("context");collection_1.ListWrapper.forEachWithIndex(this.component.viewQueries,function(queryMeta,queryIndex){var propName="_viewQuery_"+queryMeta.selectors[0].name+"_"+queryIndex,queryList=compile_query_1.createQueryList(queryMeta,directiveInstance,propName,_this),query=new compile_query_1.CompileQuery(queryMeta,queryList,directiveInstance,_this);compile_query_1.addQueryToTokenMap(viewQueries,query)});var constructorViewQueryCount=0;this.component.type.diDeps.forEach(function(dep){if(lang_1.isPresent(dep.viewQuery)){var queryList=o.THIS_EXPR.prop("declarationAppElement").prop("componentConstructorViewQueries").key(o.literal(constructorViewQueryCount++)),query=new compile_query_1.CompileQuery(dep.viewQuery,queryList,null,_this);compile_query_1.addQueryToTokenMap(viewQueries,query)}})}this.viewQueries=viewQueries,templateVariableBindings.forEach(function(entry){_this.locals.set(entry[1],o.THIS_EXPR.prop("locals").key(o.literal(entry[0])))}),this.declarationElement.isNull()||this.declarationElement.setEmbeddedView(this)}return CompileView.prototype.callPipe=function(name,input,args){var compView=this.componentView,pipe=compView.purePipes.get(name);return lang_1.isBlank(pipe)&&(pipe=new compile_pipe_1.CompilePipe(compView,name),pipe.pure&&compView.purePipes.set(name,pipe),compView.pipes.push(pipe)),pipe.call(this,[input].concat(args))},CompileView.prototype.getLocal=function(name){if(name==constants_1.EventHandlerVars.event.name)return constants_1.EventHandlerVars.event;for(var currView=this,result=currView.locals.get(name);lang_1.isBlank(result)&&lang_1.isPresent(currView.declarationElement.view);)currView=currView.declarationElement.view,result=currView.locals.get(name);return lang_1.isPresent(result)?util_1.getPropertyInView(result,this,currView):null},CompileView.prototype.createLiteralArray=function(values){for(var proxyExpr=o.THIS_EXPR.prop("_arr_"+this.literalArrayCount++),proxyParams=[],proxyReturnEntries=[],i=0;i0?viewValues.values[viewValues.values.length-1]:null;if(last instanceof ViewQueryValues&&last.view===el.embeddedView)viewValues=last;else{var newViewValues=new ViewQueryValues(el.embeddedView,[]);viewValues.values.push(newViewValues),viewValues=newViewValues}}),viewValues.values.push(value),elPath.length>0&&view.dirtyParentQueriesMethod.addStmt(queryListForDirtyExpr.callMethod("setDirty",[]).toStmt())},CompileQuery.prototype.afterChildren=function(targetMethod){var values=createQueryValues(this._values),updateStmts=[this.queryList.callMethod("reset",[o.literalArr(values)]).toStmt()];if(lang_1.isPresent(this.ownerDirectiveExpression)){var valueExpr=this.meta.first?this.queryList.prop("first"):this.queryList;updateStmts.push(this.ownerDirectiveExpression.prop(this.meta.propertyName).set(valueExpr).toStmt())}this.meta.first||updateStmts.push(this.queryList.callMethod("notifyOnChanges",[]).toStmt()),targetMethod.addStmt(new o.IfStmt(this.queryList.prop("dirty"),updateStmts))},CompileQuery}();return exports.CompileQuery=CompileQuery,exports.createQueryList=createQueryList,exports.addQueryToTokenMap=addQueryToTokenMap,module.exports}),$__System.registerDynamic("71",["61","6a","6d","2b","38","72","60","6b","6e","6f"],!0,function($__require,exports,module){"use strict";function createInjectInternalCondition(nodeIndex,childNodeCount,provider,providerExpr){var indexCondition;return indexCondition=childNodeCount>0?o.literal(nodeIndex).lowerEquals(constants_1.InjectMethodVars.requestNodeIndex).and(constants_1.InjectMethodVars.requestNodeIndex.lowerEquals(o.literal(nodeIndex+childNodeCount))):o.literal(nodeIndex).identical(constants_1.InjectMethodVars.requestNodeIndex),new o.IfStmt(constants_1.InjectMethodVars.token.identical(util_1.createDiTokenExpression(provider.token)).and(indexCondition),[new o.ReturnStatement(providerExpr)])}function createProviderProperty(propName,provider,providerValueExpressions,isMulti,isEager,compileElement){var resolvedProviderValueExpr,type,view=compileElement.view;if(isMulti?(resolvedProviderValueExpr=o.literalArr(providerValueExpressions),type=new o.ArrayType(o.DYNAMIC_TYPE)):(resolvedProviderValueExpr=providerValueExpressions[0],type=providerValueExpressions[0].type),lang_1.isBlank(type)&&(type=o.DYNAMIC_TYPE),isEager)view.fields.push(new o.ClassField(propName,type,[o.StmtModifier.Private])),view.createMethod.addStmt(o.THIS_EXPR.prop(propName).set(resolvedProviderValueExpr).toStmt());else{var internalField="_"+propName;view.fields.push(new o.ClassField(internalField,type,[o.StmtModifier.Private]));var getter=new compile_method_1.CompileMethod(view);getter.resetDebugInfo(compileElement.nodeIndex,compileElement.sourceAst),getter.addStmt(new o.IfStmt(o.THIS_EXPR.prop(internalField).isBlank(),[o.THIS_EXPR.prop(internalField).set(resolvedProviderValueExpr).toStmt()])),getter.addStmt(new o.ReturnStatement(o.THIS_EXPR.prop(internalField))),view.getters.push(new o.ClassGetter(propName,getter.finish(),type))}return o.THIS_EXPR.prop(propName)}var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},o=$__require("61"),identifiers_1=$__require("6a"),constants_1=$__require("6d"),lang_1=$__require("2b"),collection_1=$__require("38"),template_ast_1=$__require("72"),compile_metadata_1=$__require("60"),util_1=$__require("6b"),compile_query_1=$__require("6e"),compile_method_1=$__require("6f"),CompileNode=function(){function CompileNode(parent,view,nodeIndex,renderNode,sourceAst){this.parent=parent,this.view=view,this.nodeIndex=nodeIndex,this.renderNode=renderNode,this.sourceAst=sourceAst}return CompileNode.prototype.isNull=function(){return lang_1.isBlank(this.renderNode)},CompileNode.prototype.isRootElement=function(){return this.view!=this.parent.view},CompileNode}();exports.CompileNode=CompileNode;var CompileElement=function(_super){function CompileElement(parent,view,nodeIndex,renderNode,sourceAst,component,_directives,_resolvedProvidersArray,hasViewContainer,hasEmbeddedView,references){var _this=this;_super.call(this,parent,view,nodeIndex,renderNode,sourceAst),this.component=component,this._directives=_directives,this._resolvedProvidersArray=_resolvedProvidersArray,this.hasViewContainer=hasViewContainer,this.hasEmbeddedView=hasEmbeddedView,this._compViewExpr=null,this._instances=new compile_metadata_1.CompileTokenMap,this._queryCount=0,this._queries=new compile_metadata_1.CompileTokenMap,this._componentConstructorViewQueryLists=[],this.contentNodesByNgContentIndex=null,this.referenceTokens={},references.forEach(function(ref){return _this.referenceTokens[ref.name]=ref.value}),this.elementRef=o.importExpr(identifiers_1.Identifiers.ElementRef).instantiate([this.renderNode]),this._instances.add(identifiers_1.identifierToken(identifiers_1.Identifiers.ElementRef),this.elementRef),this.injector=o.THIS_EXPR.callMethod("injector",[o.literal(this.nodeIndex)]),this._instances.add(identifiers_1.identifierToken(identifiers_1.Identifiers.Injector),this.injector),this._instances.add(identifiers_1.identifierToken(identifiers_1.Identifiers.Renderer),o.THIS_EXPR.prop("renderer")),(this.hasViewContainer||this.hasEmbeddedView||lang_1.isPresent(this.component))&&this._createAppElement()}return __extends(CompileElement,_super),CompileElement.createNull=function(){return new CompileElement(null,null,null,null,null,null,[],[],!1,!1,[])},CompileElement.prototype._createAppElement=function(){var fieldName="_appEl_"+this.nodeIndex,parentNodeIndex=this.isRootElement()?null:this.parent.nodeIndex;this.view.fields.push(new o.ClassField(fieldName,o.importType(identifiers_1.Identifiers.AppElement),[o.StmtModifier.Private]));var statement=o.THIS_EXPR.prop(fieldName).set(o.importExpr(identifiers_1.Identifiers.AppElement).instantiate([o.literal(this.nodeIndex),o.literal(parentNodeIndex),o.THIS_EXPR,this.renderNode])).toStmt();this.view.createMethod.addStmt(statement),this.appElement=o.THIS_EXPR.prop(fieldName),this._instances.add(identifiers_1.identifierToken(identifiers_1.Identifiers.AppElement),this.appElement)},CompileElement.prototype.setComponentView=function(compViewExpr){this._compViewExpr=compViewExpr,this.contentNodesByNgContentIndex=collection_1.ListWrapper.createFixedSize(this.component.template.ngContentSelectors.length);for(var i=0;i=distance})),currentEl._directives.length>0&&distance++,currentEl=currentEl.parent;return queries=this.view.componentView.viewQueries.get(token),lang_1.isPresent(queries)&&collection_1.ListWrapper.addAll(result,queries),result},CompileElement.prototype._addQuery=function(queryMeta,directiveInstance){var propName="_query_"+queryMeta.selectors[0].name+"_"+this.nodeIndex+"_"+this._queryCount++,queryList=compile_query_1.createQueryList(queryMeta,directiveInstance,propName,this.view),query=new compile_query_1.CompileQuery(queryMeta,queryList,directiveInstance,this.view);return compile_query_1.addQueryToTokenMap(this._queries,query),query},CompileElement.prototype._getLocalDependency=function(requestingProviderType,dep){var result=null;if(lang_1.isBlank(result)&&lang_1.isPresent(dep.query)&&(result=this._addQuery(dep.query,null).queryList),lang_1.isBlank(result)&&lang_1.isPresent(dep.viewQuery)&&(result=compile_query_1.createQueryList(dep.viewQuery,null,"_viewQuery_"+dep.viewQuery.selectors[0].name+"_"+this.nodeIndex+"_"+this._componentConstructorViewQueryLists.length,this.view),this._componentConstructorViewQueryLists.push(result)),lang_1.isPresent(dep.token)){if(lang_1.isBlank(result)&&dep.token.equalsTo(identifiers_1.identifierToken(identifiers_1.Identifiers.ChangeDetectorRef)))return requestingProviderType===template_ast_1.ProviderAstType.Component?this._compViewExpr.prop("ref"):o.THIS_EXPR.prop("ref");lang_1.isBlank(result)&&(result=this._instances.get(dep.token))}return result},CompileElement.prototype._getDependency=function(requestingProviderType,dep){var currElement=this,result=null;for(dep.isValue&&(result=o.literal(dep.value)),lang_1.isBlank(result)&&!dep.isSkipSelf&&(result=this._getLocalDependency(requestingProviderType,dep));lang_1.isBlank(result)&&!currElement.parent.isNull();)currElement=currElement.parent,result=currElement._getLocalDependency(template_ast_1.ProviderAstType.PublicService,new compile_metadata_1.CompileDiDependencyMetadata({token:dep.token}));return lang_1.isBlank(result)&&(result=util_1.injectFromViewParentInjector(dep.token,dep.isOptional)),lang_1.isBlank(result)&&(result=o.NULL_EXPR),util_1.getPropertyInView(result,this.view,currElement.view)},CompileElement}(CompileNode);exports.CompileElement=CompileElement;var _QueryWithRead=function(){function _QueryWithRead(query,match){this.query=query,this.read=lang_1.isPresent(query.meta.read)?query.meta.read:match}return _QueryWithRead}();return module.exports}),$__System.registerDynamic("6b",["2b","41","61","6a"],!0,function($__require,exports,module){"use strict";function getPropertyInView(property,callingView,definedView){if(callingView===definedView)return property;for(var viewProp=o.THIS_EXPR,currView=callingView;currView!==definedView&&lang_1.isPresent(currView.declarationElement.view);)currView=currView.declarationElement.view,viewProp=viewProp.prop("parent");if(currView!==definedView)throw new exceptions_1.BaseException("Internal error: Could not calculate a property in a parent view: "+property);if(property instanceof o.ReadPropExpr){var readPropExpr_1=property;(definedView.fields.some(function(field){return field.name==readPropExpr_1.name})||definedView.getters.some(function(field){return field.name==readPropExpr_1.name}))&&(viewProp=viewProp.cast(definedView.classType))}return o.replaceVarInExpression(o.THIS_EXPR.name,viewProp,property)}function injectFromViewParentInjector(token,optional){var args=[createDiTokenExpression(token)];return optional&&args.push(o.NULL_EXPR),o.THIS_EXPR.prop("parentInjector").callMethod("get",args)}function getViewFactoryName(component,embeddedTemplateIndex){return"viewFactory_"+component.type.name+embeddedTemplateIndex}function createDiTokenExpression(token){return lang_1.isPresent(token.value)?o.literal(token.value):token.identifierIsInstance?o.importExpr(token.identifier).instantiate([],o.importType(token.identifier,[],[o.TypeModifier.Const])):o.importExpr(token.identifier)}function createFlatArray(expressions){for(var lastNonArrayExpressions=[],result=o.literalArr([]),i=0;i0&&(result=result.callMethod(o.BuiltinMethod.ConcatArray,[o.literalArr(lastNonArrayExpressions)]),lastNonArrayExpressions=[]),result=result.callMethod(o.BuiltinMethod.ConcatArray,[expr])):lastNonArrayExpressions.push(expr)}return lastNonArrayExpressions.length>0&&(result=result.callMethod(o.BuiltinMethod.ConcatArray,[o.literalArr(lastNonArrayExpressions)])),result}function createPureProxy(fn,argCount,pureProxyProp,view){view.fields.push(new o.ClassField(pureProxyProp.name,null,[o.StmtModifier.Private]));var pureProxyId=argCount0}));return viewClass}function createViewFactory(view,viewClass,renderCompTypeVar){var templateUrlInfo,viewFactoryArgs=[new o.FnParam(constants_1.ViewConstructorVars.viewUtils.name,o.importType(identifiers_1.Identifiers.ViewUtils)),new o.FnParam(constants_1.ViewConstructorVars.parentInjector.name,o.importType(identifiers_1.Identifiers.Injector)),new o.FnParam(constants_1.ViewConstructorVars.declarationEl.name,o.importType(identifiers_1.Identifiers.AppElement))],initRenderCompTypeStmts=[];return templateUrlInfo=view.component.template.templateUrl==view.component.type.moduleUrl?view.component.type.moduleUrl+" class "+view.component.type.name+" - inline template":view.component.template.templateUrl,0===view.viewIndex&&(initRenderCompTypeStmts=[new o.IfStmt(renderCompTypeVar.identical(o.NULL_EXPR),[renderCompTypeVar.set(constants_1.ViewConstructorVars.viewUtils.callMethod("createRenderComponentType",[o.literal(templateUrlInfo),o.literal(view.component.template.ngContentSelectors.length),constants_1.ViewEncapsulationEnum.fromValue(view.component.template.encapsulation),view.styles])).toStmt()])]),o.fn(viewFactoryArgs,initRenderCompTypeStmts.concat([new o.ReturnStatement(o.variable(viewClass.name).instantiate(viewClass.constructorMethod.params.map(function(param){return o.variable(param.name)})))]),o.importType(identifiers_1.Identifiers.AppView,[getContextType(view)])).toDeclStmt(view.viewFactory.name,[o.StmtModifier.Final])}function generateCreateMethod(view){var parentRenderNodeExpr=o.NULL_EXPR,parentRenderNodeStmts=[];view.viewType===view_type_1.ViewType.COMPONENT&&(parentRenderNodeExpr=constants_1.ViewProperties.renderer.callMethod("createViewRoot",[o.THIS_EXPR.prop("declarationAppElement").prop("nativeElement")]),parentRenderNodeStmts=[parentRenderNodeVar.set(parentRenderNodeExpr).toDeclStmt(o.importType(view.genConfig.renderTypes.renderNode),[o.StmtModifier.Final])]);var resultExpr;return resultExpr=view.viewType===view_type_1.ViewType.HOST?view.nodes[0].appElement:o.NULL_EXPR,parentRenderNodeStmts.concat(view.createMethod.finish()).concat([o.THIS_EXPR.callMethod("init",[util_1.createFlatArray(view.rootNodesOrAppElements),o.literalArr(view.nodes.map(function(node){return node.renderNode})),o.literalArr(view.disposables),o.literalArr(view.subscriptions)]).toStmt(),new o.ReturnStatement(resultExpr)])}function generateDetectChangesMethod(view){var stmts=[];if(view.detectChangesInInputsMethod.isEmpty()&&view.updateContentQueriesMethod.isEmpty()&&view.afterContentLifecycleCallbacksMethod.isEmpty()&&view.detectChangesRenderPropertiesMethod.isEmpty()&&view.updateViewQueriesMethod.isEmpty()&&view.afterViewLifecycleCallbacksMethod.isEmpty())return stmts;
collection_1.ListWrapper.addAll(stmts,view.detectChangesInInputsMethod.finish()),stmts.push(o.THIS_EXPR.callMethod("detectContentChildrenChanges",[constants_1.DetectChangesVars.throwOnChange]).toStmt());var afterContentStmts=view.updateContentQueriesMethod.finish().concat(view.afterContentLifecycleCallbacksMethod.finish());afterContentStmts.length>0&&stmts.push(new o.IfStmt(o.not(constants_1.DetectChangesVars.throwOnChange),afterContentStmts)),collection_1.ListWrapper.addAll(stmts,view.detectChangesRenderPropertiesMethod.finish()),stmts.push(o.THIS_EXPR.callMethod("detectViewChildrenChanges",[constants_1.DetectChangesVars.throwOnChange]).toStmt());var afterViewStmts=view.updateViewQueriesMethod.finish().concat(view.afterViewLifecycleCallbacksMethod.finish());afterViewStmts.length>0&&stmts.push(new o.IfStmt(o.not(constants_1.DetectChangesVars.throwOnChange),afterViewStmts));var varStmts=[],readVars=o.findReadVarNames(stmts);return collection_1.SetWrapper.has(readVars,constants_1.DetectChangesVars.changed.name)&&varStmts.push(constants_1.DetectChangesVars.changed.set(o.literal(!0)).toDeclStmt(o.BOOL_TYPE)),collection_1.SetWrapper.has(readVars,constants_1.DetectChangesVars.changes.name)&&varStmts.push(constants_1.DetectChangesVars.changes.set(o.NULL_EXPR).toDeclStmt(new o.MapType(o.importType(identifiers_1.Identifiers.SimpleChange)))),collection_1.SetWrapper.has(readVars,constants_1.DetectChangesVars.valUnwrapper.name)&&varStmts.push(constants_1.DetectChangesVars.valUnwrapper.set(o.importExpr(identifiers_1.Identifiers.ValueUnwrapper).instantiate([])).toDeclStmt(null,[o.StmtModifier.Final])),varStmts.concat(stmts)}function addReturnValuefNotEmpty(statements,value){return statements.length>0?statements.concat([new o.ReturnStatement(value)]):statements}function getContextType(view){var typeMeta=view.component.type;return typeMeta.isHost?o.DYNAMIC_TYPE:o.importType(typeMeta)}function getChangeDetectionMode(view){var mode;return mode=view.viewType===view_type_1.ViewType.COMPONENT?change_detection_1.isDefaultChangeDetectionStrategy(view.component.changeDetection)?change_detection_1.ChangeDetectionStrategy.CheckAlways:change_detection_1.ChangeDetectionStrategy.CheckOnce:change_detection_1.ChangeDetectionStrategy.CheckAlways}var lang_1=$__require("2b"),collection_1=$__require("38"),o=$__require("61"),identifiers_1=$__require("6a"),constants_1=$__require("6d"),change_detection_1=$__require("74"),compile_view_1=$__require("6c"),compile_element_1=$__require("71"),template_ast_1=$__require("72"),util_1=$__require("6b"),view_type_1=$__require("70"),view_1=$__require("66"),compile_metadata_1=$__require("60"),IMPLICIT_TEMPLATE_VAR="$implicit",CLASS_ATTR="class",STYLE_ATTR="style",parentRenderNodeVar=o.variable("parentRenderNode"),rootSelectorVar=o.variable("rootSelector"),ViewCompileDependency=function(){function ViewCompileDependency(comp,factoryPlaceholder){this.comp=comp,this.factoryPlaceholder=factoryPlaceholder}return ViewCompileDependency}();exports.ViewCompileDependency=ViewCompileDependency,exports.buildView=buildView,exports.finishView=finishView;var ViewBuilderVisitor=function(){function ViewBuilderVisitor(view,targetDependencies){this.view=view,this.targetDependencies=targetDependencies,this.nestedViewCount=0}return ViewBuilderVisitor.prototype._isRootNode=function(parent){return parent.view!==this.view},ViewBuilderVisitor.prototype._addRootNodeAndProject=function(node,ngContentIndex,parent){var vcAppEl=node instanceof compile_element_1.CompileElement&&node.hasViewContainer?node.appElement:null;this._isRootNode(parent)?this.view.viewType!==view_type_1.ViewType.COMPONENT&&this.view.rootNodesOrAppElements.push(lang_1.isPresent(vcAppEl)?vcAppEl:node.renderNode):lang_1.isPresent(parent.component)&&lang_1.isPresent(ngContentIndex)&&parent.addContentNode(ngContentIndex,lang_1.isPresent(vcAppEl)?vcAppEl:node.renderNode)},ViewBuilderVisitor.prototype._getParentRenderNode=function(parent){return this._isRootNode(parent)?this.view.viewType===view_type_1.ViewType.COMPONENT?parentRenderNodeVar:o.NULL_EXPR:lang_1.isPresent(parent.component)&&parent.component.template.encapsulation!==view_1.ViewEncapsulation.Native?o.NULL_EXPR:parent.renderNode},ViewBuilderVisitor.prototype.visitBoundText=function(ast,parent){return this._visitText(ast,"",ast.ngContentIndex,parent)},ViewBuilderVisitor.prototype.visitText=function(ast,parent){return this._visitText(ast,ast.value,ast.ngContentIndex,parent)},ViewBuilderVisitor.prototype._visitText=function(ast,value,ngContentIndex,parent){var fieldName="_text_"+this.view.nodes.length;this.view.fields.push(new o.ClassField(fieldName,o.importType(this.view.genConfig.renderTypes.renderText),[o.StmtModifier.Private]));var renderNode=o.THIS_EXPR.prop(fieldName),compileNode=new compile_element_1.CompileNode(parent,this.view,this.view.nodes.length,renderNode,ast),createRenderNode=o.THIS_EXPR.prop(fieldName).set(constants_1.ViewProperties.renderer.callMethod("createText",[this._getParentRenderNode(parent),o.literal(value),this.view.createMethod.resetDebugInfoExpr(this.view.nodes.length,ast)])).toStmt();return this.view.nodes.push(compileNode),this.view.createMethod.addStmt(createRenderNode),this._addRootNodeAndProject(compileNode,ngContentIndex,parent),renderNode},ViewBuilderVisitor.prototype.visitNgContent=function(ast,parent){this.view.createMethod.resetDebugInfo(null,ast);var parentRenderNode=this._getParentRenderNode(parent),nodesExpression=constants_1.ViewProperties.projectableNodes.key(o.literal(ast.index),new o.ArrayType(o.importType(this.view.genConfig.renderTypes.renderNode)));return parentRenderNode!==o.NULL_EXPR?this.view.createMethod.addStmt(constants_1.ViewProperties.renderer.callMethod("projectNodes",[parentRenderNode,o.importExpr(identifiers_1.Identifiers.flattenNestedViewRenderNodes).callFn([nodesExpression])]).toStmt()):this._isRootNode(parent)?this.view.viewType!==view_type_1.ViewType.COMPONENT&&this.view.rootNodesOrAppElements.push(nodesExpression):lang_1.isPresent(parent.component)&&lang_1.isPresent(ast.ngContentIndex)&&parent.addContentNode(ast.ngContentIndex,nodesExpression),null},ViewBuilderVisitor.prototype.visitElement=function(ast,parent){var createRenderNodeExpr,nodeIndex=this.view.nodes.length,debugContextExpr=this.view.createMethod.resetDebugInfoExpr(nodeIndex,ast);createRenderNodeExpr=0===nodeIndex&&this.view.viewType===view_type_1.ViewType.HOST?o.THIS_EXPR.callMethod("selectOrCreateHostElement",[o.literal(ast.name),rootSelectorVar,debugContextExpr]):constants_1.ViewProperties.renderer.callMethod("createElement",[this._getParentRenderNode(parent),o.literal(ast.name),debugContextExpr]);var fieldName="_el_"+nodeIndex;this.view.fields.push(new o.ClassField(fieldName,o.importType(this.view.genConfig.renderTypes.renderElement),[o.StmtModifier.Private])),this.view.createMethod.addStmt(o.THIS_EXPR.prop(fieldName).set(createRenderNodeExpr).toStmt());for(var renderNode=o.THIS_EXPR.prop(fieldName),component=ast.getComponent(),directives=ast.directives.map(function(directiveAst){return directiveAst.directive}),htmlAttrs=_readHtmlAttrs(ast.attrs),attrNameAndValues=_mergeHtmlAndDirectiveAttrs(htmlAttrs,directives),i=0;i0?varAst.value:IMPLICIT_TEMPLATE_VAR,varAst.name]}),directives=ast.directives.map(function(directiveAst){return directiveAst.directive}),compileElement=new compile_element_1.CompileElement(parent,this.view,nodeIndex,renderNode,ast,null,directives,ast.providers,ast.hasViewContainer,!0,ast.references);this.view.nodes.push(compileElement),this.nestedViewCount++;var embeddedView=new compile_view_1.CompileView(this.view.component,this.view.genConfig,this.view.pipeMetas,o.NULL_EXPR,this.view.viewIndex+this.nestedViewCount,compileElement,templateVariableBindings);return this.nestedViewCount+=buildView(embeddedView,ast.children,this.targetDependencies),compileElement.beforeChildren(),this._addRootNodeAndProject(compileElement,ast.ngContentIndex,parent),compileElement.afterChildren(0),null},ViewBuilderVisitor.prototype.visitAttr=function(ast,ctx){return null},ViewBuilderVisitor.prototype.visitDirective=function(ast,ctx){return null},ViewBuilderVisitor.prototype.visitEvent=function(ast,eventTargetAndNames){return null},ViewBuilderVisitor.prototype.visitReference=function(ast,ctx){return null},ViewBuilderVisitor.prototype.visitVariable=function(ast,ctx){return null},ViewBuilderVisitor.prototype.visitDirectiveProperty=function(ast,context){return null},ViewBuilderVisitor.prototype.visitElementProperty=function(ast,context){return null},ViewBuilderVisitor}();return module.exports}),$__System.registerDynamic("75",["61","6a","6d","72","2b","76","77","63","78","79"],!0,function($__require,exports,module){"use strict";function createBindFieldExpr(exprIndex){return o.THIS_EXPR.prop("_expr_"+exprIndex)}function createCurrValueExpr(exprIndex){return o.variable("currVal_"+exprIndex)}function bind(view,currValExpr,fieldExpr,parsedExpression,context,actions,method){var checkExpression=expression_converter_1.convertCdExpressionToIr(view,context,parsedExpression,constants_1.DetectChangesVars.valUnwrapper);if(!lang_1.isBlank(checkExpression.expression)){if(view.fields.push(new o.ClassField(fieldExpr.name,null,[o.StmtModifier.Private])),view.createMethod.addStmt(o.THIS_EXPR.prop(fieldExpr.name).set(o.importExpr(identifiers_1.Identifiers.uninitialized)).toStmt()),checkExpression.needsValueUnwrapper){var initValueUnwrapperStmt=constants_1.DetectChangesVars.valUnwrapper.callMethod("reset",[]).toStmt();method.addStmt(initValueUnwrapperStmt)}method.addStmt(currValExpr.set(checkExpression.expression).toDeclStmt(null,[o.StmtModifier.Final]));var condition=o.importExpr(identifiers_1.Identifiers.checkBinding).callFn([constants_1.DetectChangesVars.throwOnChange,fieldExpr,currValExpr]);checkExpression.needsValueUnwrapper&&(condition=constants_1.DetectChangesVars.valUnwrapper.prop("hasWrappedValue").or(condition)),method.addStmt(new o.IfStmt(condition,actions.concat([o.THIS_EXPR.prop(fieldExpr.name).set(currValExpr).toStmt()])))}}function bindRenderText(boundText,compileNode,view){var bindingIndex=view.bindings.length;view.bindings.push(new compile_binding_1.CompileBinding(compileNode,boundText));var currValExpr=createCurrValueExpr(bindingIndex),valueField=createBindFieldExpr(bindingIndex);view.detectChangesRenderPropertiesMethod.resetDebugInfo(compileNode.nodeIndex,boundText),bind(view,currValExpr,valueField,boundText.value,o.THIS_EXPR.prop("context"),[o.THIS_EXPR.prop("renderer").callMethod("setText",[compileNode.renderNode,currValExpr]).toStmt()],view.detectChangesRenderPropertiesMethod)}function bindAndWriteToRenderer(boundProps,context,compileElement){var view=compileElement.view,renderNode=compileElement.renderNode;boundProps.forEach(function(boundProp){var bindingIndex=view.bindings.length;view.bindings.push(new compile_binding_1.CompileBinding(compileElement,boundProp)),view.detectChangesRenderPropertiesMethod.resetDebugInfo(compileElement.nodeIndex,boundProp);var renderMethod,fieldExpr=createBindFieldExpr(bindingIndex),currValExpr=createCurrValueExpr(bindingIndex),renderValue=currValExpr,updateStmts=[];switch(boundProp.type){case template_ast_1.PropertyBindingType.Property:renderMethod="setElementProperty",view.genConfig.logBindingUpdate&&updateStmts.push(logBindingUpdateStmt(renderNode,boundProp.name,currValExpr));break;case template_ast_1.PropertyBindingType.Attribute:renderMethod="setElementAttribute",renderValue=renderValue.isBlank().conditional(o.NULL_EXPR,renderValue.callMethod("toString",[]));break;case template_ast_1.PropertyBindingType.Class:renderMethod="setElementClass";break;case template_ast_1.PropertyBindingType.Style:renderMethod="setElementStyle";var strValue=renderValue.callMethod("toString",[]);lang_1.isPresent(boundProp.unit)&&(strValue=strValue.plus(o.literal(boundProp.unit))),renderValue=renderValue.isBlank().conditional(o.NULL_EXPR,strValue)}updateStmts.push(o.THIS_EXPR.prop("renderer").callMethod(renderMethod,[renderNode,o.literal(boundProp.name),renderValue]).toStmt()),bind(view,currValExpr,fieldExpr,boundProp.value,context,updateStmts,view.detectChangesRenderPropertiesMethod)})}function bindRenderInputs(boundProps,compileElement){bindAndWriteToRenderer(boundProps,o.THIS_EXPR.prop("context"),compileElement)}function bindDirectiveHostProps(directiveAst,directiveInstance,compileElement){bindAndWriteToRenderer(directiveAst.hostProperties,directiveInstance,compileElement)}function bindDirectiveInputs(directiveAst,directiveInstance,compileElement){if(0!==directiveAst.inputs.length){var view=compileElement.view,detectChangesInInputsMethod=view.detectChangesInInputsMethod;detectChangesInInputsMethod.resetDebugInfo(compileElement.nodeIndex,compileElement.sourceAst);var lifecycleHooks=directiveAst.directive.lifecycleHooks,calcChangesMap=-1!==lifecycleHooks.indexOf(lifecycle_hooks_1.LifecycleHooks.OnChanges),isOnPushComp=directiveAst.directive.isComponent&&!constants_2.isDefaultChangeDetectionStrategy(directiveAst.directive.changeDetection);calcChangesMap&&detectChangesInInputsMethod.addStmt(constants_1.DetectChangesVars.changes.set(o.NULL_EXPR).toStmt()),isOnPushComp&&detectChangesInInputsMethod.addStmt(constants_1.DetectChangesVars.changed.set(o.literal(!1)).toStmt()),directiveAst.inputs.forEach(function(input){var bindingIndex=view.bindings.length;view.bindings.push(new compile_binding_1.CompileBinding(compileElement,input)),detectChangesInInputsMethod.resetDebugInfo(compileElement.nodeIndex,input);var fieldExpr=createBindFieldExpr(bindingIndex),currValExpr=createCurrValueExpr(bindingIndex),statements=[directiveInstance.prop(input.directiveName).set(currValExpr).toStmt()];calcChangesMap&&(statements.push(new o.IfStmt(constants_1.DetectChangesVars.changes.identical(o.NULL_EXPR),[constants_1.DetectChangesVars.changes.set(o.literalMap([],new o.MapType(o.importType(identifiers_1.Identifiers.SimpleChange)))).toStmt()])),statements.push(constants_1.DetectChangesVars.changes.key(o.literal(input.directiveName)).set(o.importExpr(identifiers_1.Identifiers.SimpleChange).instantiate([fieldExpr,currValExpr])).toStmt())),isOnPushComp&&statements.push(constants_1.DetectChangesVars.changed.set(o.literal(!0)).toStmt()),view.genConfig.logBindingUpdate&&statements.push(logBindingUpdateStmt(compileElement.renderNode,input.directiveName,currValExpr)),bind(view,currValExpr,fieldExpr,input.value,o.THIS_EXPR.prop("context"),statements,detectChangesInInputsMethod)}),isOnPushComp&&detectChangesInInputsMethod.addStmt(new o.IfStmt(constants_1.DetectChangesVars.changed,[compileElement.appElement.prop("componentView").callMethod("markAsCheckOnce",[]).toStmt()]))}}function logBindingUpdateStmt(renderNode,propName,value){return o.THIS_EXPR.prop("renderer").callMethod("setBindingDebugInfo",[renderNode,o.literal("ng-reflect-"+util_1.camelCaseToDashCase(propName)),value.isBlank().conditional(o.NULL_EXPR,value.callMethod("toString",[]))]).toStmt()}var o=$__require("61"),identifiers_1=$__require("6a"),constants_1=$__require("6d"),template_ast_1=$__require("72"),lang_1=$__require("2b"),lifecycle_hooks_1=$__require("76"),constants_2=$__require("77"),util_1=$__require("63"),expression_converter_1=$__require("78"),compile_binding_1=$__require("79");return exports.bindRenderText=bindRenderText,exports.bindRenderInputs=bindRenderInputs,exports.bindDirectiveHostProps=bindDirectiveHostProps,exports.bindDirectiveInputs=bindDirectiveInputs,module.exports}),$__System.registerDynamic("6f",["2b","38","61"],!0,function($__require,exports,module){"use strict";var lang_1=$__require("2b"),collection_1=$__require("38"),o=$__require("61"),_DebugState=function(){function _DebugState(nodeIndex,sourceAst){this.nodeIndex=nodeIndex,this.sourceAst=sourceAst}return _DebugState}(),NULL_DEBUG_STATE=new _DebugState(null,null),CompileMethod=function(){function CompileMethod(_view){this._view=_view,this._newState=NULL_DEBUG_STATE,this._currState=NULL_DEBUG_STATE,this._bodyStatements=[],this._debugEnabled=this._view.genConfig.genDebugInfo}return CompileMethod.prototype._updateDebugContextIfNeeded=function(){if(this._newState.nodeIndex!==this._currState.nodeIndex||this._newState.sourceAst!==this._currState.sourceAst){var expr=this._updateDebugContext(this._newState);lang_1.isPresent(expr)&&this._bodyStatements.push(expr.toStmt())}},CompileMethod.prototype._updateDebugContext=function(newState){if(this._currState=this._newState=newState,this._debugEnabled){var sourceLocation=lang_1.isPresent(newState.sourceAst)?newState.sourceAst.sourceSpan.start:null;return o.THIS_EXPR.callMethod("debug",[o.literal(newState.nodeIndex),lang_1.isPresent(sourceLocation)?o.literal(sourceLocation.line):o.NULL_EXPR,lang_1.isPresent(sourceLocation)?o.literal(sourceLocation.col):o.NULL_EXPR])}return null},CompileMethod.prototype.resetDebugInfoExpr=function(nodeIndex,templateAst){var res=this._updateDebugContext(new _DebugState(nodeIndex,templateAst));return lang_1.isPresent(res)?res:o.NULL_EXPR},CompileMethod.prototype.resetDebugInfo=function(nodeIndex,templateAst){this._newState=new _DebugState(nodeIndex,templateAst)},CompileMethod.prototype.addStmt=function(stmt){this._updateDebugContextIfNeeded(),this._bodyStatements.push(stmt)},CompileMethod.prototype.addStmts=function(stmts){this._updateDebugContextIfNeeded(),collection_1.ListWrapper.addAll(this._bodyStatements,stmts)},CompileMethod.prototype.finish=function(){return this._bodyStatements},CompileMethod.prototype.isEmpty=function(){return 0===this._bodyStatements.length},CompileMethod}();return exports.CompileMethod=CompileMethod,module.exports}),$__System.registerDynamic("78",["61","6a","41","2b"],!0,function($__require,exports,module){"use strict";function convertCdExpressionToIr(nameResolver,implicitReceiver,expression,valueUnwrapper){var visitor=new _AstToIrVisitor(nameResolver,implicitReceiver,valueUnwrapper),irAst=expression.visit(visitor,_Mode.Expression);return new ExpressionWithWrappedValueInfo(irAst,visitor.needsValueUnwrapper)}function convertCdStatementToIr(nameResolver,implicitReceiver,stmt){var visitor=new _AstToIrVisitor(nameResolver,implicitReceiver,null),statements=[];return flattenStatements(stmt.visit(visitor,_Mode.Statement),statements),statements}function ensureStatementMode(mode,ast){if(mode!==_Mode.Statement)throw new exceptions_1.BaseException("Expected a statement, but saw "+ast)}function ensureExpressionMode(mode,ast){if(mode!==_Mode.Expression)throw new exceptions_1.BaseException("Expected an expression, but saw "+ast)}function convertToStatementIfNeeded(mode,expr){return mode===_Mode.Statement?expr.toStmt():expr}function flattenStatements(arg,output){lang_1.isArray(arg)?arg.forEach(function(entry){return flattenStatements(entry,output)}):output.push(arg)}var o=$__require("61"),identifiers_1=$__require("6a"),exceptions_1=$__require("41"),lang_1=$__require("2b"),IMPLICIT_RECEIVER=o.variable("#implicit"),ExpressionWithWrappedValueInfo=function(){function ExpressionWithWrappedValueInfo(expression,needsValueUnwrapper){this.expression=expression,this.needsValueUnwrapper=needsValueUnwrapper}return ExpressionWithWrappedValueInfo}();exports.ExpressionWithWrappedValueInfo=ExpressionWithWrappedValueInfo,exports.convertCdExpressionToIr=convertCdExpressionToIr,exports.convertCdStatementToIr=convertCdStatementToIr;var _Mode;!function(_Mode){_Mode[_Mode.Statement=0]="Statement",_Mode[_Mode.Expression=1]="Expression"}(_Mode||(_Mode={}));var _AstToIrVisitor=function(){function _AstToIrVisitor(_nameResolver,_implicitReceiver,_valueUnwrapper){this._nameResolver=_nameResolver,this._implicitReceiver=_implicitReceiver,this._valueUnwrapper=_valueUnwrapper,this.needsValueUnwrapper=!1}return _AstToIrVisitor.prototype.visitBinary=function(ast,mode){var op;switch(ast.operation){case"+":op=o.BinaryOperator.Plus;break;case"-":op=o.BinaryOperator.Minus;break;case"*":op=o.BinaryOperator.Multiply;break;case"/":op=o.BinaryOperator.Divide;break;case"%":op=o.BinaryOperator.Modulo;break;case"&&":op=o.BinaryOperator.And;break;case"||":op=o.BinaryOperator.Or;break;case"==":op=o.BinaryOperator.Equals;break;case"!=":op=o.BinaryOperator.NotEquals;break;case"===":op=o.BinaryOperator.Identical;break;case"!==":op=o.BinaryOperator.NotIdentical;break;case"<":op=o.BinaryOperator.Lower;break;case">":op=o.BinaryOperator.Bigger;break;case"<=":op=o.BinaryOperator.LowerEquals;break;case">=":op=o.BinaryOperator.BiggerEquals;break;default:throw new exceptions_1.BaseException("Unsupported operation "+ast.operation)}return convertToStatementIfNeeded(mode,new o.BinaryOperatorExpr(op,ast.left.visit(this,_Mode.Expression),ast.right.visit(this,_Mode.Expression)))},_AstToIrVisitor.prototype.visitChain=function(ast,mode){return ensureStatementMode(mode,ast),this.visitAll(ast.expressions,mode)},_AstToIrVisitor.prototype.visitConditional=function(ast,mode){var value=ast.condition.visit(this,_Mode.Expression);return convertToStatementIfNeeded(mode,value.conditional(ast.trueExp.visit(this,_Mode.Expression),ast.falseExp.visit(this,_Mode.Expression)))},_AstToIrVisitor.prototype.visitPipe=function(ast,mode){var input=ast.exp.visit(this,_Mode.Expression),args=this.visitAll(ast.args,_Mode.Expression),value=this._nameResolver.callPipe(ast.name,input,args);return this.needsValueUnwrapper=!0,convertToStatementIfNeeded(mode,this._valueUnwrapper.callMethod("unwrap",[value]))},_AstToIrVisitor.prototype.visitFunctionCall=function(ast,mode){return convertToStatementIfNeeded(mode,ast.target.visit(this,_Mode.Expression).callFn(this.visitAll(ast.args,_Mode.Expression)))},_AstToIrVisitor.prototype.visitImplicitReceiver=function(ast,mode){return ensureExpressionMode(mode,ast),IMPLICIT_RECEIVER},_AstToIrVisitor.prototype.visitInterpolation=function(ast,mode){ensureExpressionMode(mode,ast);for(var args=[o.literal(ast.expressions.length)],i=0;i=0){var lastStatement=actionStmts[lastIndex],returnExpr=convertStmtIntoExpression(lastStatement),preventDefaultVar=o.variable("pd_"+this._actionResultExprs.length);this._actionResultExprs.push(preventDefaultVar),lang_1.isPresent(returnExpr)&&(actionStmts[lastIndex]=preventDefaultVar.set(returnExpr.cast(o.DYNAMIC_TYPE).notIdentical(o.literal(!1))).toDeclStmt(null,[o.StmtModifier.Final]))}this._method.addStmts(actionStmts)},CompileEventListener.prototype.finishMethod=function(){var markPathToRootStart=this._hasComponentHostListener?this.compileElement.appElement.prop("componentView"):o.THIS_EXPR,resultExpr=o.literal(!0);
this._actionResultExprs.forEach(function(expr){resultExpr=resultExpr.and(expr)});var stmts=[markPathToRootStart.callMethod("markPathToRootAsCheckOnce",[]).toStmt()].concat(this._method.finish()).concat([new o.ReturnStatement(resultExpr)]);this.compileElement.view.eventHandlerMethods.push(new o.ClassMethod(this._methodName,[this._eventParam],stmts,o.BOOL_TYPE,[o.StmtModifier.Private]))},CompileEventListener.prototype.listenToRenderer=function(){var listenExpr,eventListener=o.THIS_EXPR.callMethod("eventHandler",[o.fn([this._eventParam],[new o.ReturnStatement(o.THIS_EXPR.callMethod(this._methodName,[constants_1.EventHandlerVars.event]))])]);listenExpr=lang_1.isPresent(this.eventTarget)?constants_1.ViewProperties.renderer.callMethod("listenGlobal",[o.literal(this.eventTarget),o.literal(this.eventName),eventListener]):constants_1.ViewProperties.renderer.callMethod("listen",[this.compileElement.renderNode,o.literal(this.eventName),eventListener]);var disposable=o.variable("disposable_"+this.compileElement.view.disposables.length);this.compileElement.view.disposables.push(disposable),this.compileElement.view.createMethod.addStmt(disposable.set(listenExpr).toDeclStmt(o.FUNCTION_TYPE,[o.StmtModifier.Private]))},CompileEventListener.prototype.listenToDirective=function(directiveInstance,observablePropName){var subscription=o.variable("subscription_"+this.compileElement.view.subscriptions.length);this.compileElement.view.subscriptions.push(subscription);var eventListener=o.THIS_EXPR.callMethod("eventHandler",[o.fn([this._eventParam],[o.THIS_EXPR.callMethod(this._methodName,[constants_1.EventHandlerVars.event]).toStmt()])]);this.compileElement.view.createMethod.addStmt(subscription.set(directiveInstance.prop(observablePropName).callMethod(o.BuiltinMethod.SubscribeObservable,[eventListener])).toDeclStmt(null,[o.StmtModifier.Final]))},CompileEventListener}();return exports.CompileEventListener=CompileEventListener,exports.collectEventListeners=collectEventListeners,exports.bindDirectiveOutputs=bindDirectiveOutputs,exports.bindRenderOutputs=bindRenderOutputs,module.exports}),$__System.registerDynamic("6d",["2b","60","74","66","70","61","6a"],!0,function($__require,exports,module){"use strict";function _enumExpression(classIdentifier,value){if(lang_1.isBlank(value))return o.NULL_EXPR;var name=lang_1.resolveEnumToken(classIdentifier.runtime,value);return o.importExpr(new compile_metadata_1.CompileIdentifierMetadata({name:classIdentifier.name+"."+name,moduleUrl:classIdentifier.moduleUrl,runtime:value}))}var lang_1=$__require("2b"),compile_metadata_1=$__require("60"),change_detection_1=$__require("74"),view_1=$__require("66"),view_type_1=$__require("70"),o=$__require("61"),identifiers_1=$__require("6a"),ViewTypeEnum=function(){function ViewTypeEnum(){}return ViewTypeEnum.fromValue=function(value){return _enumExpression(identifiers_1.Identifiers.ViewType,value)},ViewTypeEnum.HOST=ViewTypeEnum.fromValue(view_type_1.ViewType.HOST),ViewTypeEnum.COMPONENT=ViewTypeEnum.fromValue(view_type_1.ViewType.COMPONENT),ViewTypeEnum.EMBEDDED=ViewTypeEnum.fromValue(view_type_1.ViewType.EMBEDDED),ViewTypeEnum}();exports.ViewTypeEnum=ViewTypeEnum;var ViewEncapsulationEnum=function(){function ViewEncapsulationEnum(){}return ViewEncapsulationEnum.fromValue=function(value){return _enumExpression(identifiers_1.Identifiers.ViewEncapsulation,value)},ViewEncapsulationEnum.Emulated=ViewEncapsulationEnum.fromValue(view_1.ViewEncapsulation.Emulated),ViewEncapsulationEnum.Native=ViewEncapsulationEnum.fromValue(view_1.ViewEncapsulation.Native),ViewEncapsulationEnum.None=ViewEncapsulationEnum.fromValue(view_1.ViewEncapsulation.None),ViewEncapsulationEnum}();exports.ViewEncapsulationEnum=ViewEncapsulationEnum;var ChangeDetectorStateEnum=function(){function ChangeDetectorStateEnum(){}return ChangeDetectorStateEnum.fromValue=function(value){return _enumExpression(identifiers_1.Identifiers.ChangeDetectorState,value)},ChangeDetectorStateEnum.NeverChecked=ChangeDetectorStateEnum.fromValue(change_detection_1.ChangeDetectorState.NeverChecked),ChangeDetectorStateEnum.CheckedBefore=ChangeDetectorStateEnum.fromValue(change_detection_1.ChangeDetectorState.CheckedBefore),ChangeDetectorStateEnum.Errored=ChangeDetectorStateEnum.fromValue(change_detection_1.ChangeDetectorState.Errored),ChangeDetectorStateEnum}();exports.ChangeDetectorStateEnum=ChangeDetectorStateEnum;var ChangeDetectionStrategyEnum=function(){function ChangeDetectionStrategyEnum(){}return ChangeDetectionStrategyEnum.fromValue=function(value){return _enumExpression(identifiers_1.Identifiers.ChangeDetectionStrategy,value)},ChangeDetectionStrategyEnum.CheckOnce=ChangeDetectionStrategyEnum.fromValue(change_detection_1.ChangeDetectionStrategy.CheckOnce),ChangeDetectionStrategyEnum.Checked=ChangeDetectionStrategyEnum.fromValue(change_detection_1.ChangeDetectionStrategy.Checked),ChangeDetectionStrategyEnum.CheckAlways=ChangeDetectionStrategyEnum.fromValue(change_detection_1.ChangeDetectionStrategy.CheckAlways),ChangeDetectionStrategyEnum.Detached=ChangeDetectionStrategyEnum.fromValue(change_detection_1.ChangeDetectionStrategy.Detached),ChangeDetectionStrategyEnum.OnPush=ChangeDetectionStrategyEnum.fromValue(change_detection_1.ChangeDetectionStrategy.OnPush),ChangeDetectionStrategyEnum.Default=ChangeDetectionStrategyEnum.fromValue(change_detection_1.ChangeDetectionStrategy.Default),ChangeDetectionStrategyEnum}();exports.ChangeDetectionStrategyEnum=ChangeDetectionStrategyEnum;var ViewConstructorVars=function(){function ViewConstructorVars(){}return ViewConstructorVars.viewUtils=o.variable("viewUtils"),ViewConstructorVars.parentInjector=o.variable("parentInjector"),ViewConstructorVars.declarationEl=o.variable("declarationEl"),ViewConstructorVars}();exports.ViewConstructorVars=ViewConstructorVars;var ViewProperties=function(){function ViewProperties(){}return ViewProperties.renderer=o.THIS_EXPR.prop("renderer"),ViewProperties.projectableNodes=o.THIS_EXPR.prop("projectableNodes"),ViewProperties.viewUtils=o.THIS_EXPR.prop("viewUtils"),ViewProperties}();exports.ViewProperties=ViewProperties;var EventHandlerVars=function(){function EventHandlerVars(){}return EventHandlerVars.event=o.variable("$event"),EventHandlerVars}();exports.EventHandlerVars=EventHandlerVars;var InjectMethodVars=function(){function InjectMethodVars(){}return InjectMethodVars.token=o.variable("token"),InjectMethodVars.requestNodeIndex=o.variable("requestNodeIndex"),InjectMethodVars.notFoundResult=o.variable("notFoundResult"),InjectMethodVars}();exports.InjectMethodVars=InjectMethodVars;var DetectChangesVars=function(){function DetectChangesVars(){}return DetectChangesVars.throwOnChange=o.variable("throwOnChange"),DetectChangesVars.changes=o.variable("changes"),DetectChangesVars.changed=o.variable("changed"),DetectChangesVars.valUnwrapper=o.variable("valUnwrapper"),DetectChangesVars}();return exports.DetectChangesVars=DetectChangesVars,module.exports}),$__System.registerDynamic("7b",["61","6d","76"],!0,function($__require,exports,module){"use strict";function bindDirectiveDetectChangesLifecycleCallbacks(directiveAst,directiveInstance,compileElement){var view=compileElement.view,detectChangesInInputsMethod=view.detectChangesInInputsMethod,lifecycleHooks=directiveAst.directive.lifecycleHooks;-1!==lifecycleHooks.indexOf(lifecycle_hooks_1.LifecycleHooks.OnChanges)&&directiveAst.inputs.length>0&&detectChangesInInputsMethod.addStmt(new o.IfStmt(constants_1.DetectChangesVars.changes.notIdentical(o.NULL_EXPR),[directiveInstance.callMethod("ngOnChanges",[constants_1.DetectChangesVars.changes]).toStmt()])),-1!==lifecycleHooks.indexOf(lifecycle_hooks_1.LifecycleHooks.OnInit)&&detectChangesInInputsMethod.addStmt(new o.IfStmt(STATE_IS_NEVER_CHECKED.and(NOT_THROW_ON_CHANGES),[directiveInstance.callMethod("ngOnInit",[]).toStmt()])),-1!==lifecycleHooks.indexOf(lifecycle_hooks_1.LifecycleHooks.DoCheck)&&detectChangesInInputsMethod.addStmt(new o.IfStmt(NOT_THROW_ON_CHANGES,[directiveInstance.callMethod("ngDoCheck",[]).toStmt()]))}function bindDirectiveAfterContentLifecycleCallbacks(directiveMeta,directiveInstance,compileElement){var view=compileElement.view,lifecycleHooks=directiveMeta.lifecycleHooks,afterContentLifecycleCallbacksMethod=view.afterContentLifecycleCallbacksMethod;afterContentLifecycleCallbacksMethod.resetDebugInfo(compileElement.nodeIndex,compileElement.sourceAst),-1!==lifecycleHooks.indexOf(lifecycle_hooks_1.LifecycleHooks.AfterContentInit)&&afterContentLifecycleCallbacksMethod.addStmt(new o.IfStmt(STATE_IS_NEVER_CHECKED,[directiveInstance.callMethod("ngAfterContentInit",[]).toStmt()])),-1!==lifecycleHooks.indexOf(lifecycle_hooks_1.LifecycleHooks.AfterContentChecked)&&afterContentLifecycleCallbacksMethod.addStmt(directiveInstance.callMethod("ngAfterContentChecked",[]).toStmt())}function bindDirectiveAfterViewLifecycleCallbacks(directiveMeta,directiveInstance,compileElement){var view=compileElement.view,lifecycleHooks=directiveMeta.lifecycleHooks,afterViewLifecycleCallbacksMethod=view.afterViewLifecycleCallbacksMethod;afterViewLifecycleCallbacksMethod.resetDebugInfo(compileElement.nodeIndex,compileElement.sourceAst),-1!==lifecycleHooks.indexOf(lifecycle_hooks_1.LifecycleHooks.AfterViewInit)&&afterViewLifecycleCallbacksMethod.addStmt(new o.IfStmt(STATE_IS_NEVER_CHECKED,[directiveInstance.callMethod("ngAfterViewInit",[]).toStmt()])),-1!==lifecycleHooks.indexOf(lifecycle_hooks_1.LifecycleHooks.AfterViewChecked)&&afterViewLifecycleCallbacksMethod.addStmt(directiveInstance.callMethod("ngAfterViewChecked",[]).toStmt())}function bindDirectiveDestroyLifecycleCallbacks(directiveMeta,directiveInstance,compileElement){var onDestroyMethod=compileElement.view.destroyMethod;onDestroyMethod.resetDebugInfo(compileElement.nodeIndex,compileElement.sourceAst),-1!==directiveMeta.lifecycleHooks.indexOf(lifecycle_hooks_1.LifecycleHooks.OnDestroy)&&onDestroyMethod.addStmt(directiveInstance.callMethod("ngOnDestroy",[]).toStmt())}function bindPipeDestroyLifecycleCallbacks(pipeMeta,pipeInstance,view){var onDestroyMethod=view.destroyMethod;-1!==pipeMeta.lifecycleHooks.indexOf(lifecycle_hooks_1.LifecycleHooks.OnDestroy)&&onDestroyMethod.addStmt(pipeInstance.callMethod("ngOnDestroy",[]).toStmt())}var o=$__require("61"),constants_1=$__require("6d"),lifecycle_hooks_1=$__require("76"),STATE_IS_NEVER_CHECKED=o.THIS_EXPR.prop("cdState").identical(constants_1.ChangeDetectorStateEnum.NeverChecked),NOT_THROW_ON_CHANGES=o.not(constants_1.DetectChangesVars.throwOnChange);return exports.bindDirectiveDetectChangesLifecycleCallbacks=bindDirectiveDetectChangesLifecycleCallbacks,exports.bindDirectiveAfterContentLifecycleCallbacks=bindDirectiveAfterContentLifecycleCallbacks,exports.bindDirectiveAfterViewLifecycleCallbacks=bindDirectiveAfterViewLifecycleCallbacks,exports.bindDirectiveDestroyLifecycleCallbacks=bindDirectiveDestroyLifecycleCallbacks,exports.bindPipeDestroyLifecycleCallbacks=bindPipeDestroyLifecycleCallbacks,module.exports}),$__System.registerDynamic("7c",["38","72","75","7a","7b"],!0,function($__require,exports,module){"use strict";function bindView(view,parsedTemplate){var visitor=new ViewBinderVisitor(view);template_ast_1.templateVisitAll(visitor,parsedTemplate),view.pipes.forEach(function(pipe){lifecycle_binder_1.bindPipeDestroyLifecycleCallbacks(pipe.meta,pipe.instance,pipe.view)})}var collection_1=$__require("38"),template_ast_1=$__require("72"),property_binder_1=$__require("75"),event_binder_1=$__require("7a"),lifecycle_binder_1=$__require("7b");exports.bindView=bindView;var ViewBinderVisitor=function(){function ViewBinderVisitor(view){this.view=view,this._nodeIndex=0}return ViewBinderVisitor.prototype.visitBoundText=function(ast,parent){var node=this.view.nodes[this._nodeIndex++];return property_binder_1.bindRenderText(ast,node,this.view),null},ViewBinderVisitor.prototype.visitText=function(ast,parent){return this._nodeIndex++,null},ViewBinderVisitor.prototype.visitNgContent=function(ast,parent){return null},ViewBinderVisitor.prototype.visitElement=function(ast,parent){var compileElement=this.view.nodes[this._nodeIndex++],eventListeners=event_binder_1.collectEventListeners(ast.outputs,ast.directives,compileElement);return property_binder_1.bindRenderInputs(ast.inputs,compileElement),event_binder_1.bindRenderOutputs(eventListeners),collection_1.ListWrapper.forEachWithIndex(ast.directives,function(directiveAst,index){var directiveInstance=compileElement.directiveInstances[index];property_binder_1.bindDirectiveInputs(directiveAst,directiveInstance,compileElement),lifecycle_binder_1.bindDirectiveDetectChangesLifecycleCallbacks(directiveAst,directiveInstance,compileElement),property_binder_1.bindDirectiveHostProps(directiveAst,directiveInstance,compileElement),event_binder_1.bindDirectiveOutputs(directiveAst,directiveInstance,eventListeners)}),template_ast_1.templateVisitAll(this,ast.children,compileElement),collection_1.ListWrapper.forEachWithIndex(ast.directives,function(directiveAst,index){var directiveInstance=compileElement.directiveInstances[index];lifecycle_binder_1.bindDirectiveAfterContentLifecycleCallbacks(directiveAst.directive,directiveInstance,compileElement),lifecycle_binder_1.bindDirectiveAfterViewLifecycleCallbacks(directiveAst.directive,directiveInstance,compileElement),lifecycle_binder_1.bindDirectiveDestroyLifecycleCallbacks(directiveAst.directive,directiveInstance,compileElement)}),null},ViewBinderVisitor.prototype.visitEmbeddedTemplate=function(ast,parent){var compileElement=this.view.nodes[this._nodeIndex++],eventListeners=event_binder_1.collectEventListeners(ast.outputs,ast.directives,compileElement);return collection_1.ListWrapper.forEachWithIndex(ast.directives,function(directiveAst,index){var directiveInstance=compileElement.directiveInstances[index];property_binder_1.bindDirectiveInputs(directiveAst,directiveInstance,compileElement),lifecycle_binder_1.bindDirectiveDetectChangesLifecycleCallbacks(directiveAst,directiveInstance,compileElement),event_binder_1.bindDirectiveOutputs(directiveAst,directiveInstance,eventListeners),lifecycle_binder_1.bindDirectiveAfterContentLifecycleCallbacks(directiveAst.directive,directiveInstance,compileElement),lifecycle_binder_1.bindDirectiveAfterViewLifecycleCallbacks(directiveAst.directive,directiveInstance,compileElement),lifecycle_binder_1.bindDirectiveDestroyLifecycleCallbacks(directiveAst.directive,directiveInstance,compileElement)}),bindView(compileElement.embeddedView,ast.children),null},ViewBinderVisitor.prototype.visitAttr=function(ast,ctx){return null},ViewBinderVisitor.prototype.visitDirective=function(ast,ctx){return null},ViewBinderVisitor.prototype.visitEvent=function(ast,eventTargetAndNames){return null},ViewBinderVisitor.prototype.visitReference=function(ast,ctx){return null},ViewBinderVisitor.prototype.visitVariable=function(ast,ctx){return null},ViewBinderVisitor.prototype.visitDirectiveProperty=function(ast,context){return null},ViewBinderVisitor.prototype.visitElementProperty=function(ast,context){return null},ViewBinderVisitor}();return module.exports}),$__System.registerDynamic("7d",["3a","71","6c","73","7c","7e"],!0,function($__require,exports,module){"use strict";var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},di_1=$__require("3a"),compile_element_1=$__require("71"),compile_view_1=$__require("6c"),view_builder_1=$__require("73"),view_binder_1=$__require("7c"),config_1=$__require("7e"),ViewCompileResult=function(){function ViewCompileResult(statements,viewFactoryVar,dependencies){this.statements=statements,this.viewFactoryVar=viewFactoryVar,this.dependencies=dependencies}return ViewCompileResult}();exports.ViewCompileResult=ViewCompileResult;var ViewCompiler=function(){function ViewCompiler(_genConfig){this._genConfig=_genConfig}return ViewCompiler.prototype.compileComponent=function(component,template,styles,pipes){var statements=[],dependencies=[],view=new compile_view_1.CompileView(component,this._genConfig,pipes,styles,0,compile_element_1.CompileElement.createNull(),[]);return view_builder_1.buildView(view,template,dependencies),view_binder_1.bindView(view,template),view_builder_1.finishView(view,statements),new ViewCompileResult(statements,view.viewFactory.name,dependencies)},ViewCompiler=__decorate([di_1.Injectable(),__metadata("design:paramtypes",[config_1.CompilerConfig])],ViewCompiler)}();return exports.ViewCompiler=ViewCompiler,module.exports}),$__System.registerDynamic("7f",["2b","38","72","60","6a","80"],!0,function($__require,exports,module){"use strict";function _transformProvider(provider,_a){var useExisting=_a.useExisting,useValue=_a.useValue,deps=_a.deps;return new compile_metadata_1.CompileProviderMetadata({token:provider.token,useClass:provider.useClass,useExisting:useExisting,useFactory:provider.useFactory,useValue:useValue,deps:deps,multi:provider.multi})}function _transformProviderAst(provider,_a){var eager=_a.eager,providers=_a.providers;return new template_ast_1.ProviderAst(provider.token,provider.multiProvider,provider.eager||eager,providers,provider.providerType,provider.sourceSpan)}function _normalizeProviders(providers,sourceSpan,targetErrors,targetProviders){return void 0===targetProviders&&(targetProviders=null),lang_1.isBlank(targetProviders)&&(targetProviders=[]),lang_1.isPresent(providers)&&providers.forEach(function(provider){if(lang_1.isArray(provider))_normalizeProviders(provider,sourceSpan,targetErrors,targetProviders);else{var normalizeProvider;provider instanceof compile_metadata_1.CompileProviderMetadata?normalizeProvider=provider:provider instanceof compile_metadata_1.CompileTypeMetadata?normalizeProvider=new compile_metadata_1.CompileProviderMetadata({token:new compile_metadata_1.CompileTokenMetadata({identifier:provider}),useClass:provider}):targetErrors.push(new ProviderError("Unknown provider type "+provider,sourceSpan)),lang_1.isPresent(normalizeProvider)&&targetProviders.push(normalizeProvider)}}),targetProviders}function _resolveProvidersFromDirectives(directives,sourceSpan,targetErrors){var providersByToken=new compile_metadata_1.CompileTokenMap;directives.forEach(function(directive){var dirProvider=new compile_metadata_1.CompileProviderMetadata({token:new compile_metadata_1.CompileTokenMetadata({identifier:directive.type}),useClass:directive.type});_resolveProviders([dirProvider],directive.isComponent?template_ast_1.ProviderAstType.Component:template_ast_1.ProviderAstType.Directive,!0,sourceSpan,targetErrors,providersByToken)});var directivesWithComponentFirst=directives.filter(function(dir){return dir.isComponent}).concat(directives.filter(function(dir){return!dir.isComponent}));return directivesWithComponentFirst.forEach(function(directive){_resolveProviders(_normalizeProviders(directive.providers,sourceSpan,targetErrors),template_ast_1.ProviderAstType.PublicService,!1,sourceSpan,targetErrors,providersByToken),_resolveProviders(_normalizeProviders(directive.viewProviders,sourceSpan,targetErrors),template_ast_1.ProviderAstType.PrivateService,!1,sourceSpan,targetErrors,providersByToken)}),providersByToken}function _resolveProviders(providers,providerType,eager,sourceSpan,targetErrors,targetProvidersByToken){providers.forEach(function(provider){var resolvedProvider=targetProvidersByToken.get(provider.token);lang_1.isPresent(resolvedProvider)&&resolvedProvider.multiProvider!==provider.multi&&targetErrors.push(new ProviderError("Mixing multi and non multi provider is not possible for token "+resolvedProvider.token.name,sourceSpan)),lang_1.isBlank(resolvedProvider)?(resolvedProvider=new template_ast_1.ProviderAst(provider.token,provider.multi,eager,[provider],providerType,sourceSpan),targetProvidersByToken.add(provider.token,resolvedProvider)):(provider.multi||collection_1.ListWrapper.clear(resolvedProvider.providers),resolvedProvider.providers.push(provider))})}function _getViewQueries(component){var viewQueries=new compile_metadata_1.CompileTokenMap;return lang_1.isPresent(component.viewQueries)&&component.viewQueries.forEach(function(query){return _addQueryToTokenMap(viewQueries,query)}),component.type.diDeps.forEach(function(dep){lang_1.isPresent(dep.viewQuery)&&_addQueryToTokenMap(viewQueries,dep.viewQuery)}),viewQueries}function _getContentQueries(directives){var contentQueries=new compile_metadata_1.CompileTokenMap;return directives.forEach(function(directive){lang_1.isPresent(directive.queries)&&directive.queries.forEach(function(query){return _addQueryToTokenMap(contentQueries,query)}),directive.type.diDeps.forEach(function(dep){lang_1.isPresent(dep.query)&&_addQueryToTokenMap(contentQueries,dep.query)})}),contentQueries}function _addQueryToTokenMap(map,query){query.selectors.forEach(function(token){var entry=map.get(token);lang_1.isBlank(entry)&&(entry=[],map.add(token,entry)),entry.push(query)})}var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},lang_1=$__require("2b"),collection_1=$__require("38"),template_ast_1=$__require("72"),compile_metadata_1=$__require("60"),identifiers_1=$__require("6a"),parse_util_1=$__require("80"),ProviderError=function(_super){function ProviderError(message,span){_super.call(this,span,message)}return __extends(ProviderError,_super),ProviderError}(parse_util_1.ParseError);exports.ProviderError=ProviderError;var ProviderViewContext=function(){function ProviderViewContext(component,sourceSpan){var _this=this;this.component=component,this.sourceSpan=sourceSpan,this.errors=[],this.viewQueries=_getViewQueries(component),this.viewProviders=new compile_metadata_1.CompileTokenMap,_normalizeProviders(component.viewProviders,sourceSpan,this.errors).forEach(function(provider){lang_1.isBlank(_this.viewProviders.get(provider.token))&&_this.viewProviders.add(provider.token,!0)})}return ProviderViewContext}();exports.ProviderViewContext=ProviderViewContext;var ProviderElementContext=function(){function ProviderElementContext(_viewContext,_parent,_isViewRoot,_directiveAsts,attrs,refs,_sourceSpan){var _this=this;this._viewContext=_viewContext,this._parent=_parent,this._isViewRoot=_isViewRoot,this._directiveAsts=_directiveAsts,this._sourceSpan=_sourceSpan,this._transformedProviders=new compile_metadata_1.CompileTokenMap,this._seenProviders=new compile_metadata_1.CompileTokenMap,this._hasViewContainer=!1,this._attrs={},attrs.forEach(function(attrAst){return _this._attrs[attrAst.name]=attrAst.value});var directivesMeta=_directiveAsts.map(function(directiveAst){return directiveAst.directive});this._allProviders=_resolveProvidersFromDirectives(directivesMeta,_sourceSpan,_viewContext.errors),this._contentQueries=_getContentQueries(directivesMeta);var queriedTokens=new compile_metadata_1.CompileTokenMap;this._allProviders.values().forEach(function(provider){_this._addQueryReadsTo(provider.token,queriedTokens)}),refs.forEach(function(refAst){_this._addQueryReadsTo(new compile_metadata_1.CompileTokenMetadata({value:refAst.name}),queriedTokens)}),lang_1.isPresent(queriedTokens.get(identifiers_1.identifierToken(identifiers_1.Identifiers.ViewContainerRef)))&&(this._hasViewContainer=!0),this._allProviders.values().forEach(function(provider){var eager=provider.eager||lang_1.isPresent(queriedTokens.get(provider.token));eager&&_this._getOrCreateLocalProvider(provider.providerType,provider.token,!0)})}return ProviderElementContext.prototype.afterElement=function(){var _this=this;this._allProviders.values().forEach(function(provider){_this._getOrCreateLocalProvider(provider.providerType,provider.token,!1)})},Object.defineProperty(ProviderElementContext.prototype,"transformProviders",{get:function(){return this._transformedProviders.values()},enumerable:!0,configurable:!0}),Object.defineProperty(ProviderElementContext.prototype,"transformedDirectiveAsts",{get:function(){var sortedProviderTypes=this._transformedProviders.values().map(function(provider){return provider.token.identifier}),sortedDirectives=collection_1.ListWrapper.clone(this._directiveAsts);return collection_1.ListWrapper.sort(sortedDirectives,function(dir1,dir2){return sortedProviderTypes.indexOf(dir1.directive.type)-sortedProviderTypes.indexOf(dir2.directive.type)}),sortedDirectives},enumerable:!0,configurable:!0}),Object.defineProperty(ProviderElementContext.prototype,"transformedHasViewContainer",{get:function(){return this._hasViewContainer},enumerable:!0,configurable:!0}),ProviderElementContext.prototype._addQueryReadsTo=function(token,queryReadTokens){this._getQueriesFor(token).forEach(function(query){var queryReadToken=lang_1.isPresent(query.read)?query.read:token;lang_1.isBlank(queryReadTokens.get(queryReadToken))&&queryReadTokens.add(queryReadToken,!0)})},ProviderElementContext.prototype._getQueriesFor=function(token){for(var queries,result=[],currentEl=this,distance=0;null!==currentEl;)queries=currentEl._contentQueries.get(token),lang_1.isPresent(queries)&&collection_1.ListWrapper.addAll(result,queries.filter(function(query){return query.descendants||1>=distance})),currentEl._directiveAsts.length>0&&distance++,currentEl=currentEl._parent;return queries=this._viewContext.viewQueries.get(token),lang_1.isPresent(queries)&&collection_1.ListWrapper.addAll(result,queries),result},ProviderElementContext.prototype._getOrCreateLocalProvider=function(requestingProviderType,token,eager){var _this=this,resolvedProvider=this._allProviders.get(token);if(lang_1.isBlank(resolvedProvider)||(requestingProviderType===template_ast_1.ProviderAstType.Directive||requestingProviderType===template_ast_1.ProviderAstType.PublicService)&&resolvedProvider.providerType===template_ast_1.ProviderAstType.PrivateService||(requestingProviderType===template_ast_1.ProviderAstType.PrivateService||requestingProviderType===template_ast_1.ProviderAstType.PublicService)&&resolvedProvider.providerType===template_ast_1.ProviderAstType.Builtin)return null;var transformedProviderAst=this._transformedProviders.get(token);if(lang_1.isPresent(transformedProviderAst))return transformedProviderAst;if(lang_1.isPresent(this._seenProviders.get(token)))return this._viewContext.errors.push(new ProviderError("Cannot instantiate cyclic dependency! "+token.name,this._sourceSpan)),null;this._seenProviders.add(token,!0);var transformedProviders=resolvedProvider.providers.map(function(provider){var transformedDeps,transformedUseValue=provider.useValue,transformedUseExisting=provider.useExisting;if(lang_1.isPresent(provider.useExisting)){var existingDiDep=_this._getDependency(resolvedProvider.providerType,new compile_metadata_1.CompileDiDependencyMetadata({token:provider.useExisting}),eager);lang_1.isPresent(existingDiDep.token)?transformedUseExisting=existingDiDep.token:(transformedUseExisting=null,transformedUseValue=existingDiDep.value)}else if(lang_1.isPresent(provider.useFactory)){var deps=lang_1.isPresent(provider.deps)?provider.deps:provider.useFactory.diDeps;transformedDeps=deps.map(function(dep){return _this._getDependency(resolvedProvider.providerType,dep,eager)})}else if(lang_1.isPresent(provider.useClass)){var deps=lang_1.isPresent(provider.deps)?provider.deps:provider.useClass.diDeps;transformedDeps=deps.map(function(dep){return _this._getDependency(resolvedProvider.providerType,dep,eager)})}return _transformProvider(provider,{useExisting:transformedUseExisting,useValue:transformedUseValue,deps:transformedDeps})});return transformedProviderAst=_transformProviderAst(resolvedProvider,{eager:eager,providers:transformedProviders}),this._transformedProviders.add(token,transformedProviderAst),transformedProviderAst},ProviderElementContext.prototype._getLocalDependency=function(requestingProviderType,dep,eager){if(void 0===eager&&(eager=null),dep.isAttribute){var attrValue=this._attrs[dep.token.value];return new compile_metadata_1.CompileDiDependencyMetadata({isValue:!0,value:lang_1.normalizeBlank(attrValue)})}if(lang_1.isPresent(dep.query)||lang_1.isPresent(dep.viewQuery))return dep;if(lang_1.isPresent(dep.token)){if(requestingProviderType===template_ast_1.ProviderAstType.Directive||requestingProviderType===template_ast_1.ProviderAstType.Component){if(dep.token.equalsTo(identifiers_1.identifierToken(identifiers_1.Identifiers.Renderer))||dep.token.equalsTo(identifiers_1.identifierToken(identifiers_1.Identifiers.ElementRef))||dep.token.equalsTo(identifiers_1.identifierToken(identifiers_1.Identifiers.ChangeDetectorRef))||dep.token.equalsTo(identifiers_1.identifierToken(identifiers_1.Identifiers.TemplateRef)))return dep;dep.token.equalsTo(identifiers_1.identifierToken(identifiers_1.Identifiers.ViewContainerRef))&&(this._hasViewContainer=!0)}if(dep.token.equalsTo(identifiers_1.identifierToken(identifiers_1.Identifiers.Injector)))return dep;if(lang_1.isPresent(this._getOrCreateLocalProvider(requestingProviderType,dep.token,eager)))return dep}return null},ProviderElementContext.prototype._getDependency=function(requestingProviderType,dep,eager){void 0===eager&&(eager=null);var currElement=this,currEager=eager,result=null;if(dep.isSkipSelf||(result=this._getLocalDependency(requestingProviderType,dep,eager)),dep.isSelf)lang_1.isBlank(result)&&dep.isOptional&&(result=new compile_metadata_1.CompileDiDependencyMetadata({isValue:!0,value:null}));else{for(;lang_1.isBlank(result)&&lang_1.isPresent(currElement._parent);){var prevElement=currElement;currElement=currElement._parent,prevElement._isViewRoot&&(currEager=!1),result=currElement._getLocalDependency(template_ast_1.ProviderAstType.PublicService,dep,currEager)}lang_1.isBlank(result)&&(result=!dep.isHost||this._viewContext.component.type.isHost||identifiers_1.identifierToken(this._viewContext.component.type).equalsTo(dep.token)||lang_1.isPresent(this._viewContext.viewProviders.get(dep.token))?dep:dep.isOptional?result=new compile_metadata_1.CompileDiDependencyMetadata({isValue:!0,value:null}):null)}return lang_1.isBlank(result)&&this._viewContext.errors.push(new ProviderError("No provider for "+dep.token.name,this._sourceSpan)),result},ProviderElementContext}();return exports.ProviderElementContext=ProviderElementContext,module.exports}),$__System.registerDynamic("81",["38","2b","16","82","41","83","84","85","86","80","87","72","88","89","8a","68","8b","63","6a","7f"],!0,function($__require,exports,module){"use strict";function splitClasses(classAttrValue){return lang_1.StringWrapper.split(classAttrValue.trim(),/\s+/g)}function createElementCssSelector(elementName,matchableAttrs){var cssSelector=new selector_1.CssSelector,elNameNoNs=html_tags_1.splitNsName(elementName)[1];cssSelector.setElement(elNameNoNs);for(var i=0;i0;hasMatch||res.push(item)}),res}var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},__decorate=this&&this.__decorate||function(decorators,target,key,desc){
var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},__param=this&&this.__param||function(paramIndex,decorator){return function(target,key){decorator(target,key,paramIndex)}},collection_1=$__require("38"),lang_1=$__require("2b"),core_1=$__require("16"),console_1=$__require("82"),exceptions_1=$__require("41"),ast_1=$__require("83"),parser_1=$__require("84"),html_parser_1=$__require("85"),html_tags_1=$__require("86"),parse_util_1=$__require("80"),view_utils_1=$__require("87"),template_ast_1=$__require("72"),selector_1=$__require("88"),element_schema_registry_1=$__require("89"),template_preparser_1=$__require("8a"),style_url_resolver_1=$__require("68"),html_ast_1=$__require("8b"),util_1=$__require("63"),identifiers_1=$__require("6a"),provider_parser_1=$__require("7f"),BIND_NAME_REGEXP=/^(?:(?:(?:(bind-)|(var-)|(let-)|(ref-|#)|(on-)|(bindon-))(.+))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/g,TEMPLATE_ELEMENT="template",TEMPLATE_ATTR="template",TEMPLATE_ATTR_PREFIX="*",CLASS_ATTR="class",PROPERTY_PARTS_SEPARATOR=".",ATTRIBUTE_PREFIX="attr",CLASS_PREFIX="class",STYLE_PREFIX="style",TEXT_CSS_SELECTOR=selector_1.CssSelector.parse("*")[0];exports.TEMPLATE_TRANSFORMS=lang_1.CONST_EXPR(new core_1.OpaqueToken("TemplateTransforms"));var TemplateParseError=function(_super){function TemplateParseError(message,span,level){_super.call(this,span,message,level)}return __extends(TemplateParseError,_super),TemplateParseError}(parse_util_1.ParseError);exports.TemplateParseError=TemplateParseError;var TemplateParseResult=function(){function TemplateParseResult(templateAst,errors){this.templateAst=templateAst,this.errors=errors}return TemplateParseResult}();exports.TemplateParseResult=TemplateParseResult;var TemplateParser=function(){function TemplateParser(_exprParser,_schemaRegistry,_htmlParser,_console,transforms){this._exprParser=_exprParser,this._schemaRegistry=_schemaRegistry,this._htmlParser=_htmlParser,this._console=_console,this.transforms=transforms}return TemplateParser.prototype.parse=function(component,template,directives,pipes,templateUrl){var result=this.tryParse(component,template,directives,pipes,templateUrl),warnings=result.errors.filter(function(error){return error.level===parse_util_1.ParseErrorLevel.WARNING}),errors=result.errors.filter(function(error){return error.level===parse_util_1.ParseErrorLevel.FATAL});if(warnings.length>0&&this._console.warn("Template parse warnings:\n"+warnings.join("\n")),errors.length>0){var errorString=errors.join("\n");throw new exceptions_1.BaseException("Template parse errors:\n"+errorString)}return result.templateAst},TemplateParser.prototype.tryParse=function(component,template,directives,pipes,templateUrl){var result,htmlAstWithErrors=this._htmlParser.parse(template,templateUrl),errors=htmlAstWithErrors.errors;if(htmlAstWithErrors.rootNodes.length>0){var uniqDirectives=removeDuplicates(directives),uniqPipes=removeDuplicates(pipes),providerViewContext=new provider_parser_1.ProviderViewContext(component,htmlAstWithErrors.rootNodes[0].sourceSpan),parseVisitor=new TemplateParseVisitor(providerViewContext,uniqDirectives,uniqPipes,this._exprParser,this._schemaRegistry);result=html_ast_1.htmlVisitAll(parseVisitor,htmlAstWithErrors.rootNodes,EMPTY_ELEMENT_CONTEXT),errors=errors.concat(parseVisitor.errors).concat(providerViewContext.errors)}else result=[];return errors.length>0?new TemplateParseResult(result,errors):(lang_1.isPresent(this.transforms)&&this.transforms.forEach(function(transform){result=template_ast_1.templateVisitAll(transform,result)}),new TemplateParseResult(result,errors))},TemplateParser=__decorate([core_1.Injectable(),__param(4,core_1.Optional()),__param(4,core_1.Inject(exports.TEMPLATE_TRANSFORMS)),__metadata("design:paramtypes",[parser_1.Parser,element_schema_registry_1.ElementSchemaRegistry,html_parser_1.HtmlParser,console_1.Console,Array])],TemplateParser)}();exports.TemplateParser=TemplateParser;var TemplateParseVisitor=function(){function TemplateParseVisitor(providerViewContext,directives,pipes,_exprParser,_schemaRegistry){var _this=this;this.providerViewContext=providerViewContext,this._exprParser=_exprParser,this._schemaRegistry=_schemaRegistry,this.errors=[],this.directivesIndex=new Map,this.ngContentCount=0,this.selectorMatcher=new selector_1.SelectorMatcher,collection_1.ListWrapper.forEachWithIndex(directives,function(directive,index){var selector=selector_1.CssSelector.parse(directive.selector);_this.selectorMatcher.addSelectables(selector,directive),_this.directivesIndex.set(directive,index)}),this.pipesByName=new Map,pipes.forEach(function(pipe){return _this.pipesByName.set(pipe.name,pipe)})}return TemplateParseVisitor.prototype._reportError=function(message,sourceSpan,level){void 0===level&&(level=parse_util_1.ParseErrorLevel.FATAL),this.errors.push(new TemplateParseError(message,sourceSpan,level))},TemplateParseVisitor.prototype._parseInterpolation=function(value,sourceSpan){var sourceInfo=sourceSpan.start.toString();try{var ast=this._exprParser.parseInterpolation(value,sourceInfo);if(this._checkPipes(ast,sourceSpan),lang_1.isPresent(ast)&&ast.ast.expressions.length>view_utils_1.MAX_INTERPOLATION_VALUES)throw new exceptions_1.BaseException("Only support at most "+view_utils_1.MAX_INTERPOLATION_VALUES+" interpolation values!");return ast}catch(e){return this._reportError(""+e,sourceSpan),this._exprParser.wrapLiteralPrimitive("ERROR",sourceInfo)}},TemplateParseVisitor.prototype._parseAction=function(value,sourceSpan){var sourceInfo=sourceSpan.start.toString();try{var ast=this._exprParser.parseAction(value,sourceInfo);return this._checkPipes(ast,sourceSpan),ast}catch(e){return this._reportError(""+e,sourceSpan),this._exprParser.wrapLiteralPrimitive("ERROR",sourceInfo)}},TemplateParseVisitor.prototype._parseBinding=function(value,sourceSpan){var sourceInfo=sourceSpan.start.toString();try{var ast=this._exprParser.parseBinding(value,sourceInfo);return this._checkPipes(ast,sourceSpan),ast}catch(e){return this._reportError(""+e,sourceSpan),this._exprParser.wrapLiteralPrimitive("ERROR",sourceInfo)}},TemplateParseVisitor.prototype._parseTemplateBindings=function(value,sourceSpan){var _this=this,sourceInfo=sourceSpan.start.toString();try{var bindingsResult=this._exprParser.parseTemplateBindings(value,sourceInfo);return bindingsResult.templateBindings.forEach(function(binding){lang_1.isPresent(binding.expression)&&_this._checkPipes(binding.expression,sourceSpan)}),bindingsResult.warnings.forEach(function(warning){_this._reportError(warning,sourceSpan,parse_util_1.ParseErrorLevel.WARNING)}),bindingsResult.templateBindings}catch(e){return this._reportError(""+e,sourceSpan),[]}},TemplateParseVisitor.prototype._checkPipes=function(ast,sourceSpan){var _this=this;if(lang_1.isPresent(ast)){var collector=new PipeCollector;ast.visit(collector),collector.pipes.forEach(function(pipeName){_this.pipesByName.has(pipeName)||_this._reportError("The pipe '"+pipeName+"' could not be found",sourceSpan)})}},TemplateParseVisitor.prototype.visitExpansion=function(ast,context){return null},TemplateParseVisitor.prototype.visitExpansionCase=function(ast,context){return null},TemplateParseVisitor.prototype.visitText=function(ast,parent){var ngContentIndex=parent.findNgContentIndex(TEXT_CSS_SELECTOR),expr=this._parseInterpolation(ast.value,ast.sourceSpan);return lang_1.isPresent(expr)?new template_ast_1.BoundTextAst(expr,ngContentIndex,ast.sourceSpan):new template_ast_1.TextAst(ast.value,ngContentIndex,ast.sourceSpan)},TemplateParseVisitor.prototype.visitAttr=function(ast,contex){return new template_ast_1.AttrAst(ast.name,ast.value,ast.sourceSpan)},TemplateParseVisitor.prototype.visitComment=function(ast,context){return null},TemplateParseVisitor.prototype.visitElement=function(element,parent){var _this=this,nodeName=element.name,preparsedElement=template_preparser_1.preparseElement(element);if(preparsedElement.type===template_preparser_1.PreparsedElementType.SCRIPT||preparsedElement.type===template_preparser_1.PreparsedElementType.STYLE)return null;if(preparsedElement.type===template_preparser_1.PreparsedElementType.STYLESHEET&&style_url_resolver_1.isStyleUrlResolvable(preparsedElement.hrefAttr))return null;var matchableAttrs=[],elementOrDirectiveProps=[],elementOrDirectiveRefs=[],elementVars=[],events=[],templateElementOrDirectiveProps=[],templateMatchableAttrs=[],templateElementVars=[],hasInlineTemplates=!1,attrs=[],lcElName=html_tags_1.splitNsName(nodeName.toLowerCase())[1],isTemplateElement=lcElName==TEMPLATE_ELEMENT;element.attrs.forEach(function(attr){var hasBinding=_this._parseAttr(isTemplateElement,attr,matchableAttrs,elementOrDirectiveProps,events,elementOrDirectiveRefs,elementVars),hasTemplateBinding=_this._parseInlineTemplateBinding(attr,templateMatchableAttrs,templateElementOrDirectiveProps,templateElementVars);hasBinding||hasTemplateBinding||(attrs.push(_this.visitAttr(attr,null)),matchableAttrs.push([attr.name,attr.value])),hasTemplateBinding&&(hasInlineTemplates=!0)});var elementCssSelector=createElementCssSelector(nodeName,matchableAttrs),directiveMetas=this._parseDirectives(this.selectorMatcher,elementCssSelector),references=[],directiveAsts=this._createDirectiveAsts(isTemplateElement,element.name,directiveMetas,elementOrDirectiveProps,elementOrDirectiveRefs,element.sourceSpan,references),elementProps=this._createElementPropertyAsts(element.name,elementOrDirectiveProps,directiveAsts),isViewRoot=parent.isTemplateElement||hasInlineTemplates,providerContext=new provider_parser_1.ProviderElementContext(this.providerViewContext,parent.providerContext,isViewRoot,directiveAsts,attrs,references,element.sourceSpan),children=html_ast_1.htmlVisitAll(preparsedElement.nonBindable?NON_BINDABLE_VISITOR:this,element.children,ElementContext.create(isTemplateElement,directiveAsts,isTemplateElement?parent.providerContext:providerContext));providerContext.afterElement();var parsedElement,projectionSelector=lang_1.isPresent(preparsedElement.projectAs)?selector_1.CssSelector.parse(preparsedElement.projectAs)[0]:elementCssSelector,ngContentIndex=parent.findNgContentIndex(projectionSelector);if(preparsedElement.type===template_preparser_1.PreparsedElementType.NG_CONTENT)lang_1.isPresent(element.children)&&element.children.length>0&&this._reportError(" element cannot have content. must be immediately followed by ",element.sourceSpan),parsedElement=new template_ast_1.NgContentAst(this.ngContentCount++,hasInlineTemplates?null:ngContentIndex,element.sourceSpan);else if(isTemplateElement)this._assertAllEventsPublishedByDirectives(directiveAsts,events),this._assertNoComponentsNorElementBindingsOnTemplate(directiveAsts,elementProps,element.sourceSpan),parsedElement=new template_ast_1.EmbeddedTemplateAst(attrs,events,references,elementVars,providerContext.transformedDirectiveAsts,providerContext.transformProviders,providerContext.transformedHasViewContainer,children,hasInlineTemplates?null:ngContentIndex,element.sourceSpan);else{this._assertOnlyOneComponent(directiveAsts,element.sourceSpan);var ngContentIndex_1=hasInlineTemplates?null:parent.findNgContentIndex(projectionSelector);parsedElement=new template_ast_1.ElementAst(nodeName,attrs,elementProps,events,references,providerContext.transformedDirectiveAsts,providerContext.transformProviders,providerContext.transformedHasViewContainer,children,hasInlineTemplates?null:ngContentIndex_1,element.sourceSpan)}if(hasInlineTemplates){var templateCssSelector=createElementCssSelector(TEMPLATE_ELEMENT,templateMatchableAttrs),templateDirectiveMetas=this._parseDirectives(this.selectorMatcher,templateCssSelector),templateDirectiveAsts=this._createDirectiveAsts(!0,element.name,templateDirectiveMetas,templateElementOrDirectiveProps,[],element.sourceSpan,[]),templateElementProps=this._createElementPropertyAsts(element.name,templateElementOrDirectiveProps,templateDirectiveAsts);this._assertNoComponentsNorElementBindingsOnTemplate(templateDirectiveAsts,templateElementProps,element.sourceSpan);var templateProviderContext=new provider_parser_1.ProviderElementContext(this.providerViewContext,parent.providerContext,parent.isTemplateElement,templateDirectiveAsts,[],[],element.sourceSpan);templateProviderContext.afterElement(),parsedElement=new template_ast_1.EmbeddedTemplateAst([],[],[],templateElementVars,templateProviderContext.transformedDirectiveAsts,templateProviderContext.transformProviders,templateProviderContext.transformedHasViewContainer,[parsedElement],ngContentIndex,element.sourceSpan)}return parsedElement},TemplateParseVisitor.prototype._parseInlineTemplateBinding=function(attr,targetMatchableAttrs,targetProps,targetVars){var templateBindingsSource=null;if(attr.name==TEMPLATE_ATTR)templateBindingsSource=attr.value;else if(attr.name.startsWith(TEMPLATE_ATTR_PREFIX)){var key=attr.name.substring(TEMPLATE_ATTR_PREFIX.length);templateBindingsSource=0==attr.value.length?key:key+" "+attr.value}if(lang_1.isPresent(templateBindingsSource)){for(var bindings=this._parseTemplateBindings(templateBindingsSource,attr.sourceSpan),i=0;i elements is deprecated. Use "let-" instead!',attr.sourceSpan,parse_util_1.ParseErrorLevel.WARNING),this._parseVariable(identifier,attrValue,attr.sourceSpan,targetVars)):(this._reportError('"var-" on non elements is deprecated. Use "ref-" instead!',attr.sourceSpan,parse_util_1.ParseErrorLevel.WARNING),this._parseReference(identifier,attrValue,attr.sourceSpan,targetRefs))}else if(lang_1.isPresent(bindParts[3]))if(isTemplateElement){var identifier=bindParts[7];this._parseVariable(identifier,attrValue,attr.sourceSpan,targetVars)}else this._reportError('"let-" is only supported on template elements.',attr.sourceSpan);else if(lang_1.isPresent(bindParts[4])){var identifier=bindParts[7];this._parseReference(identifier,attrValue,attr.sourceSpan,targetRefs)}else lang_1.isPresent(bindParts[5])?this._parseEvent(bindParts[7],attrValue,attr.sourceSpan,targetMatchableAttrs,targetEvents):lang_1.isPresent(bindParts[6])?(this._parseProperty(bindParts[7],attrValue,attr.sourceSpan,targetMatchableAttrs,targetProps),this._parseAssignmentEvent(bindParts[7],attrValue,attr.sourceSpan,targetMatchableAttrs,targetEvents)):lang_1.isPresent(bindParts[8])?(this._parseProperty(bindParts[8],attrValue,attr.sourceSpan,targetMatchableAttrs,targetProps),this._parseAssignmentEvent(bindParts[8],attrValue,attr.sourceSpan,targetMatchableAttrs,targetEvents)):lang_1.isPresent(bindParts[9])?this._parseProperty(bindParts[9],attrValue,attr.sourceSpan,targetMatchableAttrs,targetProps):lang_1.isPresent(bindParts[10])&&this._parseEvent(bindParts[10],attrValue,attr.sourceSpan,targetMatchableAttrs,targetEvents);else hasBinding=this._parsePropertyInterpolation(attrName,attrValue,attr.sourceSpan,targetMatchableAttrs,targetProps);return hasBinding||this._parseLiteralAttr(attrName,attrValue,attr.sourceSpan,targetProps),hasBinding},TemplateParseVisitor.prototype._normalizeAttributeName=function(attrName){return attrName.toLowerCase().startsWith("data-")?attrName.substring(5):attrName},TemplateParseVisitor.prototype._parseVariable=function(identifier,value,sourceSpan,targetVars){identifier.indexOf("-")>-1&&this._reportError('"-" is not allowed in variable names',sourceSpan),targetVars.push(new template_ast_1.VariableAst(identifier,value,sourceSpan))},TemplateParseVisitor.prototype._parseReference=function(identifier,value,sourceSpan,targetRefs){identifier.indexOf("-")>-1&&this._reportError('"-" is not allowed in reference names',sourceSpan),targetRefs.push(new ElementOrDirectiveRef(identifier,value,sourceSpan))},TemplateParseVisitor.prototype._parseProperty=function(name,expression,sourceSpan,targetMatchableAttrs,targetProps){this._parsePropertyAst(name,this._parseBinding(expression,sourceSpan),sourceSpan,targetMatchableAttrs,targetProps)},TemplateParseVisitor.prototype._parsePropertyInterpolation=function(name,value,sourceSpan,targetMatchableAttrs,targetProps){var expr=this._parseInterpolation(value,sourceSpan);return lang_1.isPresent(expr)?(this._parsePropertyAst(name,expr,sourceSpan,targetMatchableAttrs,targetProps),!0):!1},TemplateParseVisitor.prototype._parsePropertyAst=function(name,ast,sourceSpan,targetMatchableAttrs,targetProps){targetMatchableAttrs.push([name,ast.source]),targetProps.push(new BoundElementOrDirectiveProperty(name,ast,!1,sourceSpan))},TemplateParseVisitor.prototype._parseAssignmentEvent=function(name,expression,sourceSpan,targetMatchableAttrs,targetEvents){this._parseEvent(name+"Change",expression+"=$event",sourceSpan,targetMatchableAttrs,targetEvents)},TemplateParseVisitor.prototype._parseEvent=function(name,expression,sourceSpan,targetMatchableAttrs,targetEvents){var parts=util_1.splitAtColon(name,[null,name]),target=parts[0],eventName=parts[1],ast=this._parseAction(expression,sourceSpan);targetMatchableAttrs.push([name,ast.source]),targetEvents.push(new template_ast_1.BoundEventAst(eventName,target,ast,sourceSpan))},TemplateParseVisitor.prototype._parseLiteralAttr=function(name,value,sourceSpan,targetProps){targetProps.push(new BoundElementOrDirectiveProperty(name,this._exprParser.wrapLiteralPrimitive(value,""),!0,sourceSpan))},TemplateParseVisitor.prototype._parseDirectives=function(selectorMatcher,elementCssSelector){var _this=this,directives=collection_1.ListWrapper.createFixedSize(this.directivesIndex.size);return selectorMatcher.match(elementCssSelector,function(selector,directive){directives[_this.directivesIndex.get(directive)]=directive}),directives.filter(function(dir){return lang_1.isPresent(dir)})},TemplateParseVisitor.prototype._createDirectiveAsts=function(isTemplateElement,elementName,directives,props,elementOrDirectiveRefs,sourceSpan,targetReferences){var _this=this,matchedReferences=new Set,component=null,directiveAsts=directives.map(function(directive){directive.isComponent&&(component=directive);var hostProperties=[],hostEvents=[],directiveProperties=[];return _this._createDirectiveHostPropertyAsts(elementName,directive.hostProperties,sourceSpan,hostProperties),_this._createDirectiveHostEventAsts(directive.hostListeners,sourceSpan,hostEvents),_this._createDirectivePropertyAsts(directive.inputs,props,directiveProperties),elementOrDirectiveRefs.forEach(function(elOrDirRef){(0===elOrDirRef.value.length&&directive.isComponent||directive.exportAs==elOrDirRef.value)&&(targetReferences.push(new template_ast_1.ReferenceAst(elOrDirRef.name,identifiers_1.identifierToken(directive.type),elOrDirRef.sourceSpan)),matchedReferences.add(elOrDirRef.name))}),new template_ast_1.DirectiveAst(directive,directiveProperties,hostProperties,hostEvents,sourceSpan)});return elementOrDirectiveRefs.forEach(function(elOrDirRef){if(elOrDirRef.value.length>0)collection_1.SetWrapper.has(matchedReferences,elOrDirRef.name)||_this._reportError('There is no directive with "exportAs" set to "'+elOrDirRef.value+'"',elOrDirRef.sourceSpan);else if(lang_1.isBlank(component)){var refToken=null;isTemplateElement&&(refToken=identifiers_1.identifierToken(identifiers_1.Identifiers.TemplateRef)),targetReferences.push(new template_ast_1.ReferenceAst(elOrDirRef.name,refToken,elOrDirRef.sourceSpan))}}),directiveAsts},TemplateParseVisitor.prototype._createDirectiveHostPropertyAsts=function(elementName,hostProps,sourceSpan,targetPropertyAsts){var _this=this;lang_1.isPresent(hostProps)&&collection_1.StringMapWrapper.forEach(hostProps,function(expression,propName){var exprAst=_this._parseBinding(expression,sourceSpan);targetPropertyAsts.push(_this._createElementPropertyAst(elementName,propName,exprAst,sourceSpan))})},TemplateParseVisitor.prototype._createDirectiveHostEventAsts=function(hostListeners,sourceSpan,targetEventAsts){var _this=this;lang_1.isPresent(hostListeners)&&collection_1.StringMapWrapper.forEach(hostListeners,function(expression,propName){_this._parseEvent(propName,expression,sourceSpan,[],targetEventAsts)})},TemplateParseVisitor.prototype._createDirectivePropertyAsts=function(directiveProperties,boundProps,targetBoundDirectiveProps){if(lang_1.isPresent(directiveProperties)){var boundPropsByName=new Map;boundProps.forEach(function(boundProp){var prevValue=boundPropsByName.get(boundProp.name);(lang_1.isBlank(prevValue)||prevValue.isLiteral)&&boundPropsByName.set(boundProp.name,boundProp)}),collection_1.StringMapWrapper.forEach(directiveProperties,function(elProp,dirProp){var boundProp=boundPropsByName.get(elProp);lang_1.isPresent(boundProp)&&targetBoundDirectiveProps.push(new template_ast_1.BoundDirectivePropertyAst(dirProp,boundProp.name,boundProp.expression,boundProp.sourceSpan))})}},TemplateParseVisitor.prototype._createElementPropertyAsts=function(elementName,props,directives){var _this=this,boundElementProps=[],boundDirectivePropsIndex=new Map;return directives.forEach(function(directive){directive.inputs.forEach(function(prop){boundDirectivePropsIndex.set(prop.templateName,prop)})}),props.forEach(function(prop){!prop.isLiteral&&lang_1.isBlank(boundDirectivePropsIndex.get(prop.name))&&boundElementProps.push(_this._createElementPropertyAst(elementName,prop.name,prop.expression,prop.sourceSpan))}),boundElementProps},TemplateParseVisitor.prototype._createElementPropertyAst=function(elementName,name,ast,sourceSpan){var bindingType,boundPropertyName,unit=null,parts=name.split(PROPERTY_PARTS_SEPARATOR);if(1===parts.length)boundPropertyName=this._schemaRegistry.getMappedPropName(parts[0]),bindingType=template_ast_1.PropertyBindingType.Property,this._schemaRegistry.hasProperty(elementName,boundPropertyName)||this._reportError("Can't bind to '"+boundPropertyName+"' since it isn't a known native property",sourceSpan);else if(parts[0]==ATTRIBUTE_PREFIX){boundPropertyName=parts[1];var nsSeparatorIdx=boundPropertyName.indexOf(":");if(nsSeparatorIdx>-1){var ns=boundPropertyName.substring(0,nsSeparatorIdx),name_1=boundPropertyName.substring(nsSeparatorIdx+1);boundPropertyName=html_tags_1.mergeNsAndName(ns,name_1)}bindingType=template_ast_1.PropertyBindingType.Attribute}else parts[0]==CLASS_PREFIX?(boundPropertyName=parts[1],bindingType=template_ast_1.PropertyBindingType.Class):parts[0]==STYLE_PREFIX?(unit=parts.length>2?parts[2]:null,boundPropertyName=parts[1],bindingType=template_ast_1.PropertyBindingType.Style):(this._reportError("Invalid property name '"+name+"'",sourceSpan),bindingType=null);return new template_ast_1.BoundElementPropertyAst(boundPropertyName,bindingType,ast,unit,sourceSpan)},TemplateParseVisitor.prototype._findComponentDirectiveNames=function(directives){var componentTypeNames=[];return directives.forEach(function(directive){var typeName=directive.directive.type.name;directive.directive.isComponent&&componentTypeNames.push(typeName)}),componentTypeNames},TemplateParseVisitor.prototype._assertOnlyOneComponent=function(directives,sourceSpan){var componentTypeNames=this._findComponentDirectiveNames(directives);componentTypeNames.length>1&&this._reportError("More than one component: "+componentTypeNames.join(","),sourceSpan)},TemplateParseVisitor.prototype._assertNoComponentsNorElementBindingsOnTemplate=function(directives,elementProps,sourceSpan){var _this=this,componentTypeNames=this._findComponentDirectiveNames(directives);componentTypeNames.length>0&&this._reportError("Components on an embedded template: "+componentTypeNames.join(","),sourceSpan),elementProps.forEach(function(prop){_this._reportError("Property binding "+prop.name+" not used by any directive on an embedded template",sourceSpan)})},TemplateParseVisitor.prototype._assertAllEventsPublishedByDirectives=function(directives,events){var _this=this,allDirectiveEvents=new Set;directives.forEach(function(directive){collection_1.StringMapWrapper.forEach(directive.directive.outputs,function(eventName,_){allDirectiveEvents.add(eventName)})}),events.forEach(function(event){!lang_1.isPresent(event.target)&&collection_1.SetWrapper.has(allDirectiveEvents,event.name)||_this._reportError("Event binding "+event.fullName+" not emitted by any directive on an embedded template",event.sourceSpan)})},TemplateParseVisitor}(),NonBindableVisitor=function(){function NonBindableVisitor(){}return NonBindableVisitor.prototype.visitElement=function(ast,parent){var preparsedElement=template_preparser_1.preparseElement(ast);if(preparsedElement.type===template_preparser_1.PreparsedElementType.SCRIPT||preparsedElement.type===template_preparser_1.PreparsedElementType.STYLE||preparsedElement.type===template_preparser_1.PreparsedElementType.STYLESHEET)return null;var attrNameAndValues=ast.attrs.map(function(attrAst){return[attrAst.name,attrAst.value]}),selector=createElementCssSelector(ast.name,attrNameAndValues),ngContentIndex=parent.findNgContentIndex(selector),children=html_ast_1.htmlVisitAll(this,ast.children,EMPTY_ELEMENT_CONTEXT);return new template_ast_1.ElementAst(ast.name,html_ast_1.htmlVisitAll(this,ast.attrs),[],[],[],[],[],!1,children,ngContentIndex,ast.sourceSpan)},NonBindableVisitor.prototype.visitComment=function(ast,context){return null},NonBindableVisitor.prototype.visitAttr=function(ast,context){return new template_ast_1.AttrAst(ast.name,ast.value,ast.sourceSpan)},NonBindableVisitor.prototype.visitText=function(ast,parent){var ngContentIndex=parent.findNgContentIndex(TEXT_CSS_SELECTOR);return new template_ast_1.TextAst(ast.value,ngContentIndex,ast.sourceSpan)},NonBindableVisitor.prototype.visitExpansion=function(ast,context){return ast},NonBindableVisitor.prototype.visitExpansionCase=function(ast,context){return ast},NonBindableVisitor}(),BoundElementOrDirectiveProperty=function(){function BoundElementOrDirectiveProperty(name,expression,isLiteral,sourceSpan){this.name=name,this.expression=expression,this.isLiteral=isLiteral,this.sourceSpan=sourceSpan}return BoundElementOrDirectiveProperty}(),ElementOrDirectiveRef=function(){function ElementOrDirectiveRef(name,value,sourceSpan){this.name=name,this.value=value,this.sourceSpan=sourceSpan}return ElementOrDirectiveRef}();exports.splitClasses=splitClasses;var ElementContext=function(){function ElementContext(isTemplateElement,_ngContentIndexMatcher,_wildcardNgContentIndex,providerContext){this.isTemplateElement=isTemplateElement,this._ngContentIndexMatcher=_ngContentIndexMatcher,this._wildcardNgContentIndex=_wildcardNgContentIndex,this.providerContext=providerContext}return ElementContext.create=function(isTemplateElement,directives,providerContext){var matcher=new selector_1.SelectorMatcher,wildcardNgContentIndex=null;if(directives.length>0&&directives[0].directive.isComponent)for(var ngContentSelectors=directives[0].directive.template.ngContentSelectors,i=0;i0?ngContentIndices[0]:null},ElementContext}(),EMPTY_ELEMENT_CONTEXT=new ElementContext(!0,new selector_1.SelectorMatcher,null,null),NON_BINDABLE_VISITOR=new NonBindableVisitor,PipeCollector=function(_super){function PipeCollector(){_super.apply(this,arguments),this.pipes=new Set}return __extends(PipeCollector,_super),PipeCollector.prototype.visitPipe=function(ast,context){return this.pipes.add(ast.name),ast.exp.visit(this),this.visitAll(ast.args,context),null},PipeCollector}(ast_1.RecursiveAstVisitor);return exports.PipeCollector=PipeCollector,module.exports}),$__System.registerDynamic("68",["2b"],!0,function($__require,exports,module){"use strict";function isStyleUrlResolvable(url){if(lang_1.isBlank(url)||0===url.length||"/"==url[0])return!1;var schemeMatch=lang_1.RegExpWrapper.firstMatch(_urlWithSchemaRe,url);return lang_1.isBlank(schemeMatch)||"package"==schemeMatch[1]||"asset"==schemeMatch[1]}function extractStyleUrls(resolver,baseUrl,cssText){var foundUrls=[],modifiedCssText=lang_1.StringWrapper.replaceAllMapped(cssText,_cssImportRe,function(m){var url=lang_1.isPresent(m[1])?m[1]:m[2];return isStyleUrlResolvable(url)?(foundUrls.push(resolver.resolve(baseUrl,url)),""):m[0]});return new StyleWithImports(modifiedCssText,foundUrls)}var lang_1=$__require("2b"),StyleWithImports=function(){function StyleWithImports(style,styleUrls){this.style=style,this.styleUrls=styleUrls}return StyleWithImports}();exports.StyleWithImports=StyleWithImports,exports.isStyleUrlResolvable=isStyleUrlResolvable,exports.extractStyleUrls=extractStyleUrls;var _cssImportRe=/@import\s+(?:url\()?\s*(?:(?:['"]([^'"]*))|([^;\)\s]*))[^;]*;?/g,_urlWithSchemaRe=/^([a-zA-Z\-\+\.]+):/g;return module.exports}),$__System.registerDynamic("8b",["2b"],!0,function($__require,exports,module){"use strict";function htmlVisitAll(visitor,asts,context){void 0===context&&(context=null);var result=[];return asts.forEach(function(ast){var astResult=ast.visit(visitor,context);lang_1.isPresent(astResult)&&result.push(astResult)}),result}var lang_1=$__require("2b"),HtmlTextAst=function(){function HtmlTextAst(value,sourceSpan){this.value=value,this.sourceSpan=sourceSpan}return HtmlTextAst.prototype.visit=function(visitor,context){return visitor.visitText(this,context)},HtmlTextAst}();exports.HtmlTextAst=HtmlTextAst;var HtmlExpansionAst=function(){function HtmlExpansionAst(switchValue,type,cases,sourceSpan,switchValueSourceSpan){this.switchValue=switchValue,this.type=type,this.cases=cases,this.sourceSpan=sourceSpan,this.switchValueSourceSpan=switchValueSourceSpan}return HtmlExpansionAst.prototype.visit=function(visitor,context){return visitor.visitExpansion(this,context)},HtmlExpansionAst}();exports.HtmlExpansionAst=HtmlExpansionAst;var HtmlExpansionCaseAst=function(){function HtmlExpansionCaseAst(value,expression,sourceSpan,valueSourceSpan,expSourceSpan){this.value=value,this.expression=expression,this.sourceSpan=sourceSpan,this.valueSourceSpan=valueSourceSpan,this.expSourceSpan=expSourceSpan}return HtmlExpansionCaseAst.prototype.visit=function(visitor,context){return visitor.visitExpansionCase(this,context)},HtmlExpansionCaseAst}();exports.HtmlExpansionCaseAst=HtmlExpansionCaseAst;var HtmlAttrAst=function(){function HtmlAttrAst(name,value,sourceSpan){this.name=name,
this.value=value,this.sourceSpan=sourceSpan}return HtmlAttrAst.prototype.visit=function(visitor,context){return visitor.visitAttr(this,context)},HtmlAttrAst}();exports.HtmlAttrAst=HtmlAttrAst;var HtmlElementAst=function(){function HtmlElementAst(name,attrs,children,sourceSpan,startSourceSpan,endSourceSpan){this.name=name,this.attrs=attrs,this.children=children,this.sourceSpan=sourceSpan,this.startSourceSpan=startSourceSpan,this.endSourceSpan=endSourceSpan}return HtmlElementAst.prototype.visit=function(visitor,context){return visitor.visitElement(this,context)},HtmlElementAst}();exports.HtmlElementAst=HtmlElementAst;var HtmlCommentAst=function(){function HtmlCommentAst(value,sourceSpan){this.value=value,this.sourceSpan=sourceSpan}return HtmlCommentAst.prototype.visit=function(visitor,context){return visitor.visitComment(this,context)},HtmlCommentAst}();return exports.HtmlCommentAst=HtmlCommentAst,exports.htmlVisitAll=htmlVisitAll,module.exports}),$__System.registerDynamic("8c",["2b","38","80","86"],!0,function($__require,exports,module){"use strict";function tokenizeHtml(sourceContent,sourceUrl,tokenizeExpansionForms){return void 0===tokenizeExpansionForms&&(tokenizeExpansionForms=!1),new _HtmlTokenizer(new parse_util_1.ParseSourceFile(sourceContent,sourceUrl),tokenizeExpansionForms).tokenize()}function unexpectedCharacterErrorMsg(charCode){var char=charCode===$EOF?"EOF":lang_1.StringWrapper.fromCharCode(charCode);return'Unexpected character "'+char+'"'}function unknownEntityErrorMsg(entitySrc){return'Unknown entity "'+entitySrc+'" - use the ";" or ";" syntax'}function isNotWhitespace(code){return!isWhitespace(code)||code===$EOF}function isWhitespace(code){return code>=$TAB&&$SPACE>=code||code===$NBSP}function isNameEnd(code){return isWhitespace(code)||code===$GT||code===$SLASH||code===$SQ||code===$DQ||code===$EQ}function isPrefixEnd(code){return($a>code||code>$z)&&($A>code||code>$Z)&&($0>code||code>$9)}function isDigitEntityEnd(code){return code==$SEMICOLON||code==$EOF||!isAsciiHexDigit(code)}function isNamedEntityEnd(code){return code==$SEMICOLON||code==$EOF||!isAsciiLetter(code)}function isSpecialFormStart(peek,nextPeek){return peek===$LBRACE&&nextPeek!=$LBRACE}function isAsciiLetter(code){return code>=$a&&$z>=code||code>=$A&&$Z>=code}function isAsciiHexDigit(code){return code>=$a&&$f>=code||code>=$A&&$F>=code||code>=$0&&$9>=code}function compareCharCodeCaseInsensitive(code1,code2){return toUpperCaseCharCode(code1)==toUpperCaseCharCode(code2)}function toUpperCaseCharCode(code){return code>=$a&&$z>=code?code-$a+$A:code}function mergeTextTokens(srcTokens){for(var lastDstToken,dstTokens=[],i=0;i=this.length)throw this._createError(unexpectedCharacterErrorMsg($EOF),this._getSpan());this.peek===$LF?(this.line++,this.column=0):this.peek!==$LF&&this.peek!==$CR&&this.column++,this.index++,this.peek=this.index>=this.length?$EOF:lang_1.StringWrapper.charCodeAt(this.input,this.index),this.nextPeek=this.index+1>=this.length?$EOF:lang_1.StringWrapper.charCodeAt(this.input,this.index+1)},_HtmlTokenizer.prototype._attemptCharCode=function(charCode){return this.peek===charCode?(this._advance(),!0):!1},_HtmlTokenizer.prototype._attemptCharCodeCaseInsensitive=function(charCode){return compareCharCodeCaseInsensitive(this.peek,charCode)?(this._advance(),!0):!1},_HtmlTokenizer.prototype._requireCharCode=function(charCode){var location=this._getLocation();if(!this._attemptCharCode(charCode))throw this._createError(unexpectedCharacterErrorMsg(this.peek),this._getSpan(location,location))},_HtmlTokenizer.prototype._attemptStr=function(chars){for(var i=0;itagCloseStart.offset&&parts.push(this.input.substring(tagCloseStart.offset,this.index));this.peek!==firstCharOfEnd;)parts.push(this._readChar(decodeEntities))}return this._endToken([this._processCarriageReturns(parts.join(""))],tagCloseStart)},_HtmlTokenizer.prototype._consumeComment=function(start){var _this=this;this._beginToken(HtmlTokenType.COMMENT_START,start),this._requireCharCode($MINUS),this._endToken([]);var textToken=this._consumeRawText(!1,$MINUS,function(){return _this._attemptStr("->")});this._beginToken(HtmlTokenType.COMMENT_END,textToken.sourceSpan.end),this._endToken([])},_HtmlTokenizer.prototype._consumeCdata=function(start){var _this=this;this._beginToken(HtmlTokenType.CDATA_START,start),this._requireStr("CDATA["),this._endToken([]);var textToken=this._consumeRawText(!1,$RBRACKET,function(){return _this._attemptStr("]>")});this._beginToken(HtmlTokenType.CDATA_END,textToken.sourceSpan.end),this._endToken([])},_HtmlTokenizer.prototype._consumeDocType=function(start){this._beginToken(HtmlTokenType.DOC_TYPE,start),this._attemptUntilChar($GT),this._advance(),this._endToken([this.input.substring(start.offset+2,this.index-1)])},_HtmlTokenizer.prototype._consumePrefixAndName=function(){for(var nameOrPrefixStart=this.index,prefix=null;this.peek!==$COLON&&!isPrefixEnd(this.peek);)this._advance();var nameStart;this.peek===$COLON?(this._advance(),prefix=this.input.substring(nameOrPrefixStart,this.index-1),nameStart=this.index):nameStart=nameOrPrefixStart,this._requireCharCodeUntilFn(isNameEnd,this.index===nameStart?1:0);var name=this.input.substring(nameStart,this.index);return[prefix,name]},_HtmlTokenizer.prototype._consumeTagOpen=function(start){var lowercaseTagName,savedPos=this._savePosition();try{if(!isAsciiLetter(this.peek))throw this._createError(unexpectedCharacterErrorMsg(this.peek),this._getSpan());var nameStart=this.index;for(this._consumeTagOpenStart(start),lowercaseTagName=this.input.substring(nameStart,this.index).toLowerCase(),this._attemptCharCodeUntilFn(isNotWhitespace);this.peek!==$SLASH&&this.peek!==$GT;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(isNotWhitespace),this._attemptCharCode($EQ)&&(this._attemptCharCodeUntilFn(isNotWhitespace),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(isNotWhitespace);this._consumeTagOpenEnd()}catch(e){if(e instanceof ControlFlowError)return this._restorePosition(savedPos),this._beginToken(HtmlTokenType.TEXT,start),void this._endToken(["<"]);throw e}var contentTokenType=html_tags_1.getHtmlTagDefinition(lowercaseTagName).contentType;contentTokenType===html_tags_1.HtmlTagContentType.RAW_TEXT?this._consumeRawTextWithTagClose(lowercaseTagName,!1):contentTokenType===html_tags_1.HtmlTagContentType.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(lowercaseTagName,!0)},_HtmlTokenizer.prototype._consumeRawTextWithTagClose=function(lowercaseTagName,decodeEntities){var _this=this,textToken=this._consumeRawText(decodeEntities,$LT,function(){return _this._attemptCharCode($SLASH)?(_this._attemptCharCodeUntilFn(isNotWhitespace),_this._attemptStrCaseInsensitive(lowercaseTagName)?(_this._attemptCharCodeUntilFn(isNotWhitespace),!!_this._attemptCharCode($GT)):!1):!1});this._beginToken(HtmlTokenType.TAG_CLOSE,textToken.sourceSpan.end),this._endToken([null,lowercaseTagName])},_HtmlTokenizer.prototype._consumeTagOpenStart=function(start){this._beginToken(HtmlTokenType.TAG_OPEN_START,start);var parts=this._consumePrefixAndName();this._endToken(parts)},_HtmlTokenizer.prototype._consumeAttributeName=function(){this._beginToken(HtmlTokenType.ATTR_NAME);var prefixAndName=this._consumePrefixAndName();this._endToken(prefixAndName)},_HtmlTokenizer.prototype._consumeAttributeValue=function(){this._beginToken(HtmlTokenType.ATTR_VALUE);var value;if(this.peek===$SQ||this.peek===$DQ){var quoteChar=this.peek;this._advance();for(var parts=[];this.peek!==quoteChar;)parts.push(this._readChar(!0));value=parts.join(""),this._advance()}else{var valueStart=this.index;this._requireCharCodeUntilFn(isNameEnd,1),value=this.input.substring(valueStart,this.index)}this._endToken([this._processCarriageReturns(value)])},_HtmlTokenizer.prototype._consumeTagOpenEnd=function(){var tokenType=this._attemptCharCode($SLASH)?HtmlTokenType.TAG_OPEN_END_VOID:HtmlTokenType.TAG_OPEN_END;this._beginToken(tokenType),this._requireCharCode($GT),this._endToken([])},_HtmlTokenizer.prototype._consumeTagClose=function(start){this._beginToken(HtmlTokenType.TAG_CLOSE,start),this._attemptCharCodeUntilFn(isNotWhitespace);var prefixAndName;prefixAndName=this._consumePrefixAndName(),this._attemptCharCodeUntilFn(isNotWhitespace),this._requireCharCode($GT),this._endToken(prefixAndName)},_HtmlTokenizer.prototype._consumeExpansionFormStart=function(){this._beginToken(HtmlTokenType.EXPANSION_FORM_START,this._getLocation()),this._requireCharCode($LBRACE),this._endToken([]),this._beginToken(HtmlTokenType.RAW_TEXT,this._getLocation());var condition=this._readUntil($COMMA);this._endToken([condition],this._getLocation()),this._requireCharCode($COMMA),this._attemptCharCodeUntilFn(isNotWhitespace),this._beginToken(HtmlTokenType.RAW_TEXT,this._getLocation());var type=this._readUntil($COMMA);this._endToken([type],this._getLocation()),this._requireCharCode($COMMA),this._attemptCharCodeUntilFn(isNotWhitespace),this.expansionCaseStack.push(HtmlTokenType.EXPANSION_FORM_START)},_HtmlTokenizer.prototype._consumeExpansionCaseStart=function(){this._requireCharCode($EQ),this._beginToken(HtmlTokenType.EXPANSION_CASE_VALUE,this._getLocation());var value=this._readUntil($LBRACE).trim();this._endToken([value],this._getLocation()),this._attemptCharCodeUntilFn(isNotWhitespace),this._beginToken(HtmlTokenType.EXPANSION_CASE_EXP_START,this._getLocation()),this._requireCharCode($LBRACE),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(isNotWhitespace),this.expansionCaseStack.push(HtmlTokenType.EXPANSION_CASE_EXP_START)},_HtmlTokenizer.prototype._consumeExpansionCaseEnd=function(){this._beginToken(HtmlTokenType.EXPANSION_CASE_EXP_END,this._getLocation()),this._requireCharCode($RBRACE),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(isNotWhitespace),this.expansionCaseStack.pop()},_HtmlTokenizer.prototype._consumeExpansionFormEnd=function(){this._beginToken(HtmlTokenType.EXPANSION_FORM_END,this._getLocation()),this._requireCharCode($RBRACE),this._endToken([]),this.expansionCaseStack.pop()},_HtmlTokenizer.prototype._consumeText=function(){var start=this._getLocation();this._beginToken(HtmlTokenType.TEXT,start);var parts=[],interpolation=!1;for(this.peek===$LBRACE&&this.nextPeek===$LBRACE?(parts.push(this._readChar(!0)),parts.push(this._readChar(!0)),interpolation=!0):parts.push(this._readChar(!0));!this.isTextEnd(interpolation);)this.peek===$LBRACE&&this.nextPeek===$LBRACE?(parts.push(this._readChar(!0)),parts.push(this._readChar(!0)),interpolation=!0):this.peek===$RBRACE&&this.nextPeek===$RBRACE&&interpolation?(parts.push(this._readChar(!0)),parts.push(this._readChar(!0)),interpolation=!1):parts.push(this._readChar(!0));this._endToken([this._processCarriageReturns(parts.join(""))])},_HtmlTokenizer.prototype.isTextEnd=function(interpolation){if(this.peek===$LT||this.peek===$EOF)return!0;if(this.tokenizeExpansionForms){if(isSpecialFormStart(this.peek,this.nextPeek))return!0;if(this.peek===$RBRACE&&!interpolation&&(this.isInExpansionCase()||this.isInExpansionForm()))return!0}return!1},_HtmlTokenizer.prototype._savePosition=function(){return[this.peek,this.index,this.column,this.line,this.tokens.length]},_HtmlTokenizer.prototype._readUntil=function(char){var start=this.index;return this._attemptUntilChar(char),this.input.substring(start,this.index)},_HtmlTokenizer.prototype._restorePosition=function(position){this.peek=position[0],this.index=position[1],this.column=position[2],this.line=position[3];var nbTokens=position[4];nbTokens0&&this.expansionCaseStack[this.expansionCaseStack.length-1]===HtmlTokenType.EXPANSION_CASE_EXP_START},_HtmlTokenizer.prototype.isInExpansionForm=function(){return this.expansionCaseStack.length>0&&this.expansionCaseStack[this.expansionCaseStack.length-1]===HtmlTokenType.EXPANSION_FORM_START},_HtmlTokenizer}();return module.exports}),$__System.registerDynamic("80",[],!0,function($__require,exports,module){"use strict";var ParseLocation=function(){function ParseLocation(file,offset,line,col){this.file=file,this.offset=offset,this.line=line,this.col=col}return ParseLocation.prototype.toString=function(){return this.file.url+"@"+this.line+":"+this.col},ParseLocation}();exports.ParseLocation=ParseLocation;var ParseSourceFile=function(){function ParseSourceFile(content,url){this.content=content,this.url=url}return ParseSourceFile}();exports.ParseSourceFile=ParseSourceFile;var ParseSourceSpan=function(){function ParseSourceSpan(start,end){this.start=start,this.end=end}return ParseSourceSpan.prototype.toString=function(){return this.start.file.content.substring(this.start.offset,this.end.offset)},ParseSourceSpan}();exports.ParseSourceSpan=ParseSourceSpan,function(ParseErrorLevel){ParseErrorLevel[ParseErrorLevel.WARNING=0]="WARNING",ParseErrorLevel[ParseErrorLevel.FATAL=1]="FATAL"}(exports.ParseErrorLevel||(exports.ParseErrorLevel={}));var ParseErrorLevel=exports.ParseErrorLevel,ParseError=function(){function ParseError(span,msg,level){void 0===level&&(level=ParseErrorLevel.FATAL),this.span=span,this.msg=msg,this.level=level}return ParseError.prototype.toString=function(){var source=this.span.start.file.content,ctxStart=this.span.start.offset;ctxStart>source.length-1&&(ctxStart=source.length-1);for(var ctxEnd=ctxStart,ctxLen=0,ctxLines=0;100>ctxLen&&ctxStart>0&&(ctxStart--,ctxLen++,"\n"!=source[ctxStart]||3!=++ctxLines););for(ctxLen=0,ctxLines=0;100>ctxLen&&ctxEnd]"+source.substring(this.span.start.offset,ctxEnd+1);return this.msg+' ("'+context+'"): '+this.span.start},ParseError}();return exports.ParseError=ParseError,module.exports}),$__System.registerDynamic("85",["2b","38","8b","3a","8c","80","86"],!0,function($__require,exports,module){"use strict";function getElementFullName(prefix,localName,parentElement){return lang_1.isBlank(prefix)&&(prefix=html_tags_1.getHtmlTagDefinition(localName).implicitNamespacePrefix,lang_1.isBlank(prefix)&&lang_1.isPresent(parentElement)&&(prefix=html_tags_1.getNsPrefix(parentElement.name))),html_tags_1.mergeNsAndName(prefix,localName)}function lastOnStack(stack,element){return stack.length>0&&stack[stack.length-1]===element}var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},__decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},lang_1=$__require("2b"),collection_1=$__require("38"),html_ast_1=$__require("8b"),di_1=$__require("3a"),html_lexer_1=$__require("8c"),parse_util_1=$__require("80"),html_tags_1=$__require("86"),HtmlTreeError=function(_super){function HtmlTreeError(elementName,span,msg){_super.call(this,span,msg),this.elementName=elementName}return __extends(HtmlTreeError,_super),HtmlTreeError.create=function(elementName,span,msg){return new HtmlTreeError(elementName,span,msg)},HtmlTreeError}(parse_util_1.ParseError);exports.HtmlTreeError=HtmlTreeError;var HtmlParseTreeResult=function(){function HtmlParseTreeResult(rootNodes,errors){this.rootNodes=rootNodes,this.errors=errors}return HtmlParseTreeResult}();exports.HtmlParseTreeResult=HtmlParseTreeResult;var HtmlParser=function(){function HtmlParser(){}return HtmlParser.prototype.parse=function(sourceContent,sourceUrl,parseExpansionForms){void 0===parseExpansionForms&&(parseExpansionForms=!1);var tokensAndErrors=html_lexer_1.tokenizeHtml(sourceContent,sourceUrl,parseExpansionForms),treeAndErrors=new TreeBuilder(tokensAndErrors.tokens).build();return new HtmlParseTreeResult(treeAndErrors.rootNodes,tokensAndErrors.errors.concat(treeAndErrors.errors))},HtmlParser=__decorate([di_1.Injectable(),__metadata("design:paramtypes",[])],HtmlParser)}();exports.HtmlParser=HtmlParser;var TreeBuilder=function(){function TreeBuilder(tokens){this.tokens=tokens,this.index=-1,this.rootNodes=[],this.errors=[],this.elementStack=[],this._advance()}return TreeBuilder.prototype.build=function(){for(;this.peek.type!==html_lexer_1.HtmlTokenType.EOF;)this.peek.type===html_lexer_1.HtmlTokenType.TAG_OPEN_START?this._consumeStartTag(this._advance()):this.peek.type===html_lexer_1.HtmlTokenType.TAG_CLOSE?this._consumeEndTag(this._advance()):this.peek.type===html_lexer_1.HtmlTokenType.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this.peek.type===html_lexer_1.HtmlTokenType.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this.peek.type===html_lexer_1.HtmlTokenType.TEXT||this.peek.type===html_lexer_1.HtmlTokenType.RAW_TEXT||this.peek.type===html_lexer_1.HtmlTokenType.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this.peek.type===html_lexer_1.HtmlTokenType.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._advance();return new HtmlParseTreeResult(this.rootNodes,this.errors)},TreeBuilder.prototype._advance=function(){var prev=this.peek;return this.index0)return this.errors=this.errors.concat(parsedExp.errors),null;var sourceSpan=new parse_util_1.ParseSourceSpan(value.sourceSpan.start,end.sourceSpan.end),expSourceSpan=new parse_util_1.ParseSourceSpan(start.sourceSpan.start,end.sourceSpan.end);return new html_ast_1.HtmlExpansionCaseAst(value.parts[0],parsedExp.rootNodes,sourceSpan,value.sourceSpan,expSourceSpan)},TreeBuilder.prototype._collectExpansionExpTokens=function(start){for(var exp=[],expansionFormStack=[html_lexer_1.HtmlTokenType.EXPANSION_CASE_EXP_START];;){if(this.peek.type!==html_lexer_1.HtmlTokenType.EXPANSION_FORM_START&&this.peek.type!==html_lexer_1.HtmlTokenType.EXPANSION_CASE_EXP_START||expansionFormStack.push(this.peek.type),this.peek.type===html_lexer_1.HtmlTokenType.EXPANSION_CASE_EXP_END){if(!lastOnStack(expansionFormStack,html_lexer_1.HtmlTokenType.EXPANSION_CASE_EXP_START))return this.errors.push(HtmlTreeError.create(null,start.sourceSpan,"Invalid expansion form. Missing '}'.")),null;if(expansionFormStack.pop(),0==expansionFormStack.length)return exp}if(this.peek.type===html_lexer_1.HtmlTokenType.EXPANSION_FORM_END){if(!lastOnStack(expansionFormStack,html_lexer_1.HtmlTokenType.EXPANSION_FORM_START))return this.errors.push(HtmlTreeError.create(null,start.sourceSpan,"Invalid expansion form. Missing '}'.")),null;expansionFormStack.pop()}if(this.peek.type===html_lexer_1.HtmlTokenType.EOF)return this.errors.push(HtmlTreeError.create(null,start.sourceSpan,"Invalid expansion form. Missing '}'.")),null;exp.push(this._advance())}},TreeBuilder.prototype._consumeText=function(token){var text=token.parts[0];if(text.length>0&&"\n"==text[0]){var parent_1=this._getParentElement();lang_1.isPresent(parent_1)&&0==parent_1.children.length&&html_tags_1.getHtmlTagDefinition(parent_1.name).ignoreFirstLf&&(text=text.substring(1))}text.length>0&&this._addToParent(new html_ast_1.HtmlTextAst(text,token.sourceSpan))},TreeBuilder.prototype._closeVoidElement=function(){if(this.elementStack.length>0){var el=collection_1.ListWrapper.last(this.elementStack);html_tags_1.getHtmlTagDefinition(el.name).isVoid&&this.elementStack.pop()}},TreeBuilder.prototype._consumeStartTag=function(startTagToken){for(var prefix=startTagToken.parts[0],name=startTagToken.parts[1],attrs=[];this.peek.type===html_lexer_1.HtmlTokenType.ATTR_NAME;)attrs.push(this._consumeAttr(this._advance()));var fullName=getElementFullName(prefix,name,this._getParentElement()),selfClosing=!1;this.peek.type===html_lexer_1.HtmlTokenType.TAG_OPEN_END_VOID?(this._advance(),selfClosing=!0,null!=html_tags_1.getNsPrefix(fullName)||html_tags_1.getHtmlTagDefinition(fullName).isVoid||this.errors.push(HtmlTreeError.create(fullName,startTagToken.sourceSpan,'Only void and foreign elements can be self closed "'+startTagToken.parts[1]+'"'))):this.peek.type===html_lexer_1.HtmlTokenType.TAG_OPEN_END&&(this._advance(),selfClosing=!1);var end=this.peek.sourceSpan.start,span=new parse_util_1.ParseSourceSpan(startTagToken.sourceSpan.start,end),el=new html_ast_1.HtmlElementAst(fullName,attrs,[],span,span,null);this._pushElement(el),selfClosing&&(this._popElement(fullName),el.endSourceSpan=span)},TreeBuilder.prototype._pushElement=function(el){if(this.elementStack.length>0){var parentEl=collection_1.ListWrapper.last(this.elementStack);html_tags_1.getHtmlTagDefinition(parentEl.name).isClosedByChild(el.name)&&this.elementStack.pop()}var tagDef=html_tags_1.getHtmlTagDefinition(el.name),parentEl=this._getParentElement();if(tagDef.requireExtraParent(lang_1.isPresent(parentEl)?parentEl.name:null)){var newParent=new html_ast_1.HtmlElementAst(tagDef.parentToAdd,[],[el],el.sourceSpan,el.startSourceSpan,el.endSourceSpan);this._addToParent(newParent),this.elementStack.push(newParent),this.elementStack.push(el)}else this._addToParent(el),this.elementStack.push(el)},TreeBuilder.prototype._consumeEndTag=function(endTagToken){var fullName=getElementFullName(endTagToken.parts[0],endTagToken.parts[1],this._getParentElement());this._getParentElement().endSourceSpan=endTagToken.sourceSpan,
html_tags_1.getHtmlTagDefinition(fullName).isVoid?this.errors.push(HtmlTreeError.create(fullName,endTagToken.sourceSpan,'Void elements do not have end tags "'+endTagToken.parts[1]+'"')):this._popElement(fullName)||this.errors.push(HtmlTreeError.create(fullName,endTagToken.sourceSpan,'Unexpected closing tag "'+endTagToken.parts[1]+'"'))},TreeBuilder.prototype._popElement=function(fullName){for(var stackIndex=this.elementStack.length-1;stackIndex>=0;stackIndex--){var el=this.elementStack[stackIndex];if(el.name==fullName)return collection_1.ListWrapper.splice(this.elementStack,stackIndex,this.elementStack.length-stackIndex),!0;if(!html_tags_1.getHtmlTagDefinition(el.name).closedByParent)return!1}return!1},TreeBuilder.prototype._consumeAttr=function(attrName){var fullName=html_tags_1.mergeNsAndName(attrName.parts[0],attrName.parts[1]),end=attrName.sourceSpan.end,value="";if(this.peek.type===html_lexer_1.HtmlTokenType.ATTR_VALUE){var valueToken=this._advance();value=valueToken.parts[0],end=valueToken.sourceSpan.end}return new html_ast_1.HtmlAttrAst(fullName,value,new parse_util_1.ParseSourceSpan(attrName.sourceSpan.start,end))},TreeBuilder.prototype._getParentElement=function(){return this.elementStack.length>0?collection_1.ListWrapper.last(this.elementStack):null},TreeBuilder.prototype._addToParent=function(node){var parent=this._getParentElement();lang_1.isPresent(parent)?parent.children.push(node):this.rootNodes.push(node)},TreeBuilder}();return module.exports}),$__System.registerDynamic("8a",["2b","86"],!0,function($__require,exports,module){"use strict";function preparseElement(ast){var selectAttr=null,hrefAttr=null,relAttr=null,nonBindable=!1,projectAs=null;ast.attrs.forEach(function(attr){var lcAttrName=attr.name.toLowerCase();lcAttrName==NG_CONTENT_SELECT_ATTR?selectAttr=attr.value:lcAttrName==LINK_STYLE_HREF_ATTR?hrefAttr=attr.value:lcAttrName==LINK_STYLE_REL_ATTR?relAttr=attr.value:attr.name==NG_NON_BINDABLE_ATTR?nonBindable=!0:attr.name==NG_PROJECT_AS&&attr.value.length>0&&(projectAs=attr.value)}),selectAttr=normalizeNgContentSelect(selectAttr);var nodeName=ast.name.toLowerCase(),type=PreparsedElementType.OTHER;return html_tags_1.splitNsName(nodeName)[1]==NG_CONTENT_ELEMENT?type=PreparsedElementType.NG_CONTENT:nodeName==STYLE_ELEMENT?type=PreparsedElementType.STYLE:nodeName==SCRIPT_ELEMENT?type=PreparsedElementType.SCRIPT:nodeName==LINK_ELEMENT&&relAttr==LINK_STYLE_REL_VALUE&&(type=PreparsedElementType.STYLESHEET),new PreparsedElement(type,selectAttr,hrefAttr,nonBindable,projectAs)}function normalizeNgContentSelect(selectAttr){return lang_1.isBlank(selectAttr)||0===selectAttr.length?"*":selectAttr}var lang_1=$__require("2b"),html_tags_1=$__require("86"),NG_CONTENT_SELECT_ATTR="select",NG_CONTENT_ELEMENT="ng-content",LINK_ELEMENT="link",LINK_STYLE_REL_ATTR="rel",LINK_STYLE_HREF_ATTR="href",LINK_STYLE_REL_VALUE="stylesheet",STYLE_ELEMENT="style",SCRIPT_ELEMENT="script",NG_NON_BINDABLE_ATTR="ngNonBindable",NG_PROJECT_AS="ngProjectAs";exports.preparseElement=preparseElement,function(PreparsedElementType){PreparsedElementType[PreparsedElementType.NG_CONTENT=0]="NG_CONTENT",PreparsedElementType[PreparsedElementType.STYLE=1]="STYLE",PreparsedElementType[PreparsedElementType.STYLESHEET=2]="STYLESHEET",PreparsedElementType[PreparsedElementType.SCRIPT=3]="SCRIPT",PreparsedElementType[PreparsedElementType.OTHER=4]="OTHER"}(exports.PreparsedElementType||(exports.PreparsedElementType={}));var PreparsedElementType=exports.PreparsedElementType,PreparsedElement=function(){function PreparsedElement(type,selectAttr,hrefAttr,nonBindable,projectAs){this.type=type,this.selectAttr=selectAttr,this.hrefAttr=hrefAttr,this.nonBindable=nonBindable,this.projectAs=projectAs}return PreparsedElement}();return exports.PreparsedElement=PreparsedElement,module.exports}),$__System.registerDynamic("8d",["60","2b","41","8e","40","67","68","3a","66","8b","85","8a"],!0,function($__require,exports,module){"use strict";var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},compile_metadata_1=$__require("60"),lang_1=$__require("2b"),exceptions_1=$__require("41"),async_1=$__require("8e"),xhr_1=$__require("40"),url_resolver_1=$__require("67"),style_url_resolver_1=$__require("68"),di_1=$__require("3a"),view_1=$__require("66"),html_ast_1=$__require("8b"),html_parser_1=$__require("85"),template_preparser_1=$__require("8a"),DirectiveNormalizer=function(){function DirectiveNormalizer(_xhr,_urlResolver,_htmlParser){this._xhr=_xhr,this._urlResolver=_urlResolver,this._htmlParser=_htmlParser}return DirectiveNormalizer.prototype.normalizeDirective=function(directive){return directive.isComponent?this.normalizeTemplate(directive.type,directive.template).then(function(normalizedTemplate){return new compile_metadata_1.CompileDirectiveMetadata({type:directive.type,isComponent:directive.isComponent,selector:directive.selector,exportAs:directive.exportAs,changeDetection:directive.changeDetection,inputs:directive.inputs,outputs:directive.outputs,hostListeners:directive.hostListeners,hostProperties:directive.hostProperties,hostAttributes:directive.hostAttributes,lifecycleHooks:directive.lifecycleHooks,providers:directive.providers,viewProviders:directive.viewProviders,queries:directive.queries,viewQueries:directive.viewQueries,template:normalizedTemplate})}):async_1.PromiseWrapper.resolve(directive)},DirectiveNormalizer.prototype.normalizeTemplate=function(directiveType,template){var _this=this;if(lang_1.isPresent(template.template))return async_1.PromiseWrapper.resolve(this.normalizeLoadedTemplate(directiveType,template,template.template,directiveType.moduleUrl));if(lang_1.isPresent(template.templateUrl)){var sourceAbsUrl=this._urlResolver.resolve(directiveType.moduleUrl,template.templateUrl);return this._xhr.get(sourceAbsUrl).then(function(templateContent){return _this.normalizeLoadedTemplate(directiveType,template,templateContent,sourceAbsUrl)})}throw new exceptions_1.BaseException("No template specified for component "+directiveType.name)},DirectiveNormalizer.prototype.normalizeLoadedTemplate=function(directiveType,templateMeta,template,templateAbsUrl){var _this=this,rootNodesAndErrors=this._htmlParser.parse(template,directiveType.name);if(rootNodesAndErrors.errors.length>0){var errorString=rootNodesAndErrors.errors.join("\n");throw new exceptions_1.BaseException("Template parse errors:\n"+errorString)}var visitor=new TemplatePreparseVisitor;html_ast_1.htmlVisitAll(visitor,rootNodesAndErrors.rootNodes);var allStyles=templateMeta.styles.concat(visitor.styles),allStyleAbsUrls=visitor.styleUrls.filter(style_url_resolver_1.isStyleUrlResolvable).map(function(url){return _this._urlResolver.resolve(templateAbsUrl,url)}).concat(templateMeta.styleUrls.filter(style_url_resolver_1.isStyleUrlResolvable).map(function(url){return _this._urlResolver.resolve(directiveType.moduleUrl,url)})),allResolvedStyles=allStyles.map(function(style){var styleWithImports=style_url_resolver_1.extractStyleUrls(_this._urlResolver,templateAbsUrl,style);return styleWithImports.styleUrls.forEach(function(styleUrl){return allStyleAbsUrls.push(styleUrl)}),styleWithImports.style}),encapsulation=templateMeta.encapsulation;return encapsulation===view_1.ViewEncapsulation.Emulated&&0===allResolvedStyles.length&&0===allStyleAbsUrls.length&&(encapsulation=view_1.ViewEncapsulation.None),new compile_metadata_1.CompileTemplateMetadata({encapsulation:encapsulation,template:template,templateUrl:templateAbsUrl,styles:allResolvedStyles,styleUrls:allStyleAbsUrls,ngContentSelectors:visitor.ngContentSelectors})},DirectiveNormalizer=__decorate([di_1.Injectable(),__metadata("design:paramtypes",[xhr_1.XHR,url_resolver_1.UrlResolver,html_parser_1.HtmlParser])],DirectiveNormalizer)}();exports.DirectiveNormalizer=DirectiveNormalizer;var TemplatePreparseVisitor=function(){function TemplatePreparseVisitor(){this.ngContentSelectors=[],this.styles=[],this.styleUrls=[],this.ngNonBindableStackCount=0}return TemplatePreparseVisitor.prototype.visitElement=function(ast,context){var preparsedElement=template_preparser_1.preparseElement(ast);switch(preparsedElement.type){case template_preparser_1.PreparsedElementType.NG_CONTENT:0===this.ngNonBindableStackCount&&this.ngContentSelectors.push(preparsedElement.selectAttr);break;case template_preparser_1.PreparsedElementType.STYLE:var textContent="";ast.children.forEach(function(child){child instanceof html_ast_1.HtmlTextAst&&(textContent+=child.value)}),this.styles.push(textContent);break;case template_preparser_1.PreparsedElementType.STYLESHEET:this.styleUrls.push(preparsedElement.hrefAttr)}return preparsedElement.nonBindable&&this.ngNonBindableStackCount++,html_ast_1.htmlVisitAll(this,ast.children),preparsedElement.nonBindable&&this.ngNonBindableStackCount--,null},TemplatePreparseVisitor.prototype.visitComment=function(ast,context){return null},TemplatePreparseVisitor.prototype.visitAttr=function(ast,context){return null},TemplatePreparseVisitor.prototype.visitText=function(ast,context){return null},TemplatePreparseVisitor.prototype.visitExpansion=function(ast,context){return null},TemplatePreparseVisitor.prototype.visitExpansionCase=function(ast,context){return null},TemplatePreparseVisitor}();return module.exports}),$__System.registerDynamic("8f",["3a","2b","41","38","50","90","91"],!0,function($__require,exports,module){"use strict";function _isDirectiveMetadata(type){return type instanceof metadata_1.DirectiveMetadata}var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},di_1=$__require("3a"),lang_1=$__require("2b"),exceptions_1=$__require("41"),collection_1=$__require("38"),metadata_1=$__require("50"),reflection_1=$__require("90"),reflector_reader_1=$__require("91"),DirectiveResolver=function(){function DirectiveResolver(_reflector){lang_1.isPresent(_reflector)?this._reflector=_reflector:this._reflector=reflection_1.reflector}return DirectiveResolver.prototype.resolve=function(type){var typeMetadata=this._reflector.annotations(di_1.resolveForwardRef(type));if(lang_1.isPresent(typeMetadata)){var metadata=typeMetadata.find(_isDirectiveMetadata);if(lang_1.isPresent(metadata)){var propertyMetadata=this._reflector.propMetadata(type);return this._mergeWithPropertyMetadata(metadata,propertyMetadata,type)}}throw new exceptions_1.BaseException("No Directive annotation found on "+lang_1.stringify(type))},DirectiveResolver.prototype._mergeWithPropertyMetadata=function(dm,propertyMetadata,directiveType){var inputs=[],outputs=[],host={},queries={};return collection_1.StringMapWrapper.forEach(propertyMetadata,function(metadata,propName){metadata.forEach(function(a){if(a instanceof metadata_1.InputMetadata&&(lang_1.isPresent(a.bindingPropertyName)?inputs.push(propName+": "+a.bindingPropertyName):inputs.push(propName)),a instanceof metadata_1.OutputMetadata&&(lang_1.isPresent(a.bindingPropertyName)?outputs.push(propName+": "+a.bindingPropertyName):outputs.push(propName)),a instanceof metadata_1.HostBindingMetadata&&(lang_1.isPresent(a.hostPropertyName)?host["["+a.hostPropertyName+"]"]=propName:host["["+propName+"]"]=propName),a instanceof metadata_1.HostListenerMetadata){var args=lang_1.isPresent(a.args)?a.args.join(", "):"";host["("+a.eventName+")"]=propName+"("+args+")"}a instanceof metadata_1.ContentChildrenMetadata&&(queries[propName]=a),a instanceof metadata_1.ViewChildrenMetadata&&(queries[propName]=a),a instanceof metadata_1.ContentChildMetadata&&(queries[propName]=a),a instanceof metadata_1.ViewChildMetadata&&(queries[propName]=a)})}),this._merge(dm,inputs,outputs,host,queries,directiveType)},DirectiveResolver.prototype._merge=function(dm,inputs,outputs,host,queries,directiveType){var mergedOutputs,mergedInputs=lang_1.isPresent(dm.inputs)?collection_1.ListWrapper.concat(dm.inputs,inputs):inputs;lang_1.isPresent(dm.outputs)?(dm.outputs.forEach(function(propName){if(collection_1.ListWrapper.contains(outputs,propName))throw new exceptions_1.BaseException("Output event '"+propName+"' defined multiple times in '"+lang_1.stringify(directiveType)+"'")}),mergedOutputs=collection_1.ListWrapper.concat(dm.outputs,outputs)):mergedOutputs=outputs;var mergedHost=lang_1.isPresent(dm.host)?collection_1.StringMapWrapper.merge(dm.host,host):host,mergedQueries=lang_1.isPresent(dm.queries)?collection_1.StringMapWrapper.merge(dm.queries,queries):queries;return dm instanceof metadata_1.ComponentMetadata?new metadata_1.ComponentMetadata({selector:dm.selector,inputs:mergedInputs,outputs:mergedOutputs,host:mergedHost,exportAs:dm.exportAs,moduleId:dm.moduleId,queries:mergedQueries,changeDetection:dm.changeDetection,providers:dm.providers,viewProviders:dm.viewProviders}):new metadata_1.DirectiveMetadata({selector:dm.selector,inputs:mergedInputs,outputs:mergedOutputs,host:mergedHost,exportAs:dm.exportAs,queries:mergedQueries,providers:dm.providers})},DirectiveResolver=__decorate([di_1.Injectable(),__metadata("design:paramtypes",[reflector_reader_1.ReflectorReader])],DirectiveResolver)}();return exports.DirectiveResolver=DirectiveResolver,exports.CODEGEN_DIRECTIVE_RESOLVER=new DirectiveResolver(reflection_1.reflector),module.exports}),$__System.registerDynamic("92",["3a","2b","41","50","91","90"],!0,function($__require,exports,module){"use strict";function _isPipeMetadata(type){return type instanceof metadata_1.PipeMetadata}var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},di_1=$__require("3a"),lang_1=$__require("2b"),exceptions_1=$__require("41"),metadata_1=$__require("50"),reflector_reader_1=$__require("91"),reflection_1=$__require("90"),PipeResolver=function(){function PipeResolver(_reflector){lang_1.isPresent(_reflector)?this._reflector=_reflector:this._reflector=reflection_1.reflector}return PipeResolver.prototype.resolve=function(type){var metas=this._reflector.annotations(di_1.resolveForwardRef(type));if(lang_1.isPresent(metas)){var annotation=metas.find(_isPipeMetadata);if(lang_1.isPresent(annotation))return annotation}throw new exceptions_1.BaseException("No Pipe decorator found on "+lang_1.stringify(type))},PipeResolver=__decorate([di_1.Injectable(),__metadata("design:paramtypes",[reflector_reader_1.ReflectorReader])],PipeResolver)}();return exports.PipeResolver=PipeResolver,exports.CODEGEN_PIPE_RESOLVER=new PipeResolver(reflection_1.reflector),module.exports}),$__System.registerDynamic("93",["3a","66","94","2b","41","38","91","90"],!0,function($__require,exports,module){"use strict";var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},di_1=$__require("3a"),view_1=$__require("66"),directives_1=$__require("94"),lang_1=$__require("2b"),exceptions_1=$__require("41"),collection_1=$__require("38"),reflector_reader_1=$__require("91"),reflection_1=$__require("90"),ViewResolver=function(){function ViewResolver(_reflector){this._cache=new collection_1.Map,lang_1.isPresent(_reflector)?this._reflector=_reflector:this._reflector=reflection_1.reflector}return ViewResolver.prototype.resolve=function(component){var view=this._cache.get(component);return lang_1.isBlank(view)&&(view=this._resolve(component),this._cache.set(component,view)),view},ViewResolver.prototype._resolve=function(component){var compMeta,viewMeta;if(this._reflector.annotations(component).forEach(function(m){m instanceof view_1.ViewMetadata&&(viewMeta=m),m instanceof directives_1.ComponentMetadata&&(compMeta=m)}),!lang_1.isPresent(compMeta)){if(lang_1.isBlank(viewMeta))throw new exceptions_1.BaseException("Could not compile '"+lang_1.stringify(component)+"' because it is not a component.");return viewMeta}if(lang_1.isBlank(compMeta.template)&&lang_1.isBlank(compMeta.templateUrl)&&lang_1.isBlank(viewMeta))throw new exceptions_1.BaseException("Component '"+lang_1.stringify(component)+"' must have either 'template' or 'templateUrl' set.");if(lang_1.isPresent(compMeta.template)&&lang_1.isPresent(viewMeta))this._throwMixingViewAndComponent("template",component);else if(lang_1.isPresent(compMeta.templateUrl)&&lang_1.isPresent(viewMeta))this._throwMixingViewAndComponent("templateUrl",component);else if(lang_1.isPresent(compMeta.directives)&&lang_1.isPresent(viewMeta))this._throwMixingViewAndComponent("directives",component);else if(lang_1.isPresent(compMeta.pipes)&&lang_1.isPresent(viewMeta))this._throwMixingViewAndComponent("pipes",component);else if(lang_1.isPresent(compMeta.encapsulation)&&lang_1.isPresent(viewMeta))this._throwMixingViewAndComponent("encapsulation",component);else if(lang_1.isPresent(compMeta.styles)&&lang_1.isPresent(viewMeta))this._throwMixingViewAndComponent("styles",component);else{if(!lang_1.isPresent(compMeta.styleUrls)||!lang_1.isPresent(viewMeta))return lang_1.isPresent(viewMeta)?viewMeta:new view_1.ViewMetadata({templateUrl:compMeta.templateUrl,template:compMeta.template,directives:compMeta.directives,pipes:compMeta.pipes,encapsulation:compMeta.encapsulation,styles:compMeta.styles,styleUrls:compMeta.styleUrls});this._throwMixingViewAndComponent("styleUrls",component)}return null},ViewResolver.prototype._throwMixingViewAndComponent=function(propertyName,component){throw new exceptions_1.BaseException("Component '"+lang_1.stringify(component)+"' cannot have both '"+propertyName+"' and '@View' set at the same time\"")},ViewResolver=__decorate([di_1.Injectable(),__metadata("design:paramtypes",[reflector_reader_1.ReflectorReader])],ViewResolver)}();return exports.ViewResolver=ViewResolver,module.exports}),$__System.registerDynamic("95",["2b","76"],!0,function($__require,exports,module){"use strict";function hasLifecycleHook(lcInterface,token){if(!(token instanceof lang_1.Type))return!1;var proto=token.prototype;switch(lcInterface){case lifecycle_hooks_1.LifecycleHooks.AfterContentInit:return!!proto.ngAfterContentInit;case lifecycle_hooks_1.LifecycleHooks.AfterContentChecked:return!!proto.ngAfterContentChecked;case lifecycle_hooks_1.LifecycleHooks.AfterViewInit:return!!proto.ngAfterViewInit;case lifecycle_hooks_1.LifecycleHooks.AfterViewChecked:return!!proto.ngAfterViewChecked;case lifecycle_hooks_1.LifecycleHooks.OnChanges:return!!proto.ngOnChanges;case lifecycle_hooks_1.LifecycleHooks.DoCheck:return!!proto.ngDoCheck;case lifecycle_hooks_1.LifecycleHooks.OnDestroy:return!!proto.ngOnDestroy;case lifecycle_hooks_1.LifecycleHooks.OnInit:return!!proto.ngOnInit;default:return!1}}var lang_1=$__require("2b"),lifecycle_hooks_1=$__require("76");return exports.hasLifecycleHook=hasLifecycleHook,module.exports}),$__System.registerDynamic("96",["2b","41"],!0,function($__require,exports,module){"use strict";function assertArrayOfStrings(identifier,value){if(lang_1.assertionsEnabled()&&!lang_1.isBlank(value)){if(!lang_1.isArray(value))throw new exceptions_1.BaseException("Expected '"+identifier+"' to be an array of strings.");for(var i=0;i0?moduleId:"package:"+moduleId+util_1.MODULE_SUFFIX}return reflector.importUri(type)}var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},__param=this&&this.__param||function(paramIndex,decorator){return function(target,key){decorator(target,key,paramIndex)}},di_1=$__require("3a"),lang_1=$__require("2b"),collection_1=$__require("38"),exceptions_1=$__require("41"),reflective_exceptions_1=$__require("98"),cpl=$__require("60"),md=$__require("94"),dimd=$__require("99"),directive_resolver_1=$__require("8f"),pipe_resolver_1=$__require("92"),view_resolver_1=$__require("93"),directive_lifecycle_reflector_1=$__require("95"),lifecycle_hooks_1=$__require("76"),reflection_1=$__require("90"),di_2=$__require("3a"),platform_directives_and_pipes_1=$__require("9a"),util_1=$__require("63"),assertions_1=$__require("96"),url_resolver_1=$__require("67"),provider_1=$__require("9b"),reflective_provider_1=$__require("9c"),metadata_1=$__require("9d"),reflector_reader_1=$__require("91"),RuntimeMetadataResolver=function(){function RuntimeMetadataResolver(_directiveResolver,_pipeResolver,_viewResolver,_platformDirectives,_platformPipes,_reflector){this._directiveResolver=_directiveResolver,this._pipeResolver=_pipeResolver,this._viewResolver=_viewResolver,this._platformDirectives=_platformDirectives,this._platformPipes=_platformPipes,this._directiveCache=new Map,this._pipeCache=new Map,this._anonymousTypes=new Map,this._anonymousTypeIndex=0,lang_1.isPresent(_reflector)?this._reflector=_reflector:this._reflector=reflection_1.reflector}return RuntimeMetadataResolver.prototype.sanitizeTokenName=function(token){var identifier=lang_1.stringify(token);if(identifier.indexOf("(")>=0){var found=this._anonymousTypes.get(token);lang_1.isBlank(found)&&(this._anonymousTypes.set(token,this._anonymousTypeIndex++),found=this._anonymousTypes.get(token)),identifier="anonymous_token_"+found+"_"}return util_1.sanitizeIdentifier(identifier)},RuntimeMetadataResolver.prototype.getDirectiveMetadata=function(directiveType){var meta=this._directiveCache.get(directiveType);if(lang_1.isBlank(meta)){var dirMeta=this._directiveResolver.resolve(directiveType),moduleUrl=null,templateMeta=null,changeDetectionStrategy=null,viewProviders=[];if(dirMeta instanceof md.ComponentMetadata){assertions_1.assertArrayOfStrings("styles",dirMeta.styles);var cmpMeta=dirMeta;moduleUrl=calcModuleUrl(this._reflector,directiveType,cmpMeta);var viewMeta=this._viewResolver.resolve(directiveType);assertions_1.assertArrayOfStrings("styles",viewMeta.styles),templateMeta=new cpl.CompileTemplateMetadata({encapsulation:viewMeta.encapsulation,template:viewMeta.template,templateUrl:viewMeta.templateUrl,styles:viewMeta.styles,styleUrls:viewMeta.styleUrls}),changeDetectionStrategy=cmpMeta.changeDetection,lang_1.isPresent(dirMeta.viewProviders)&&(viewProviders=this.getProvidersMetadata(dirMeta.viewProviders))}var providers=[];lang_1.isPresent(dirMeta.providers)&&(providers=this.getProvidersMetadata(dirMeta.providers));var queries=[],viewQueries=[];lang_1.isPresent(dirMeta.queries)&&(queries=this.getQueriesMetadata(dirMeta.queries,!1),viewQueries=this.getQueriesMetadata(dirMeta.queries,!0)),meta=cpl.CompileDirectiveMetadata.create({selector:dirMeta.selector,exportAs:dirMeta.exportAs,isComponent:lang_1.isPresent(templateMeta),type:this.getTypeMetadata(directiveType,moduleUrl),template:templateMeta,changeDetection:changeDetectionStrategy,inputs:dirMeta.inputs,outputs:dirMeta.outputs,host:dirMeta.host,lifecycleHooks:lifecycle_hooks_1.LIFECYCLE_HOOKS_VALUES.filter(function(hook){return directive_lifecycle_reflector_1.hasLifecycleHook(hook,directiveType)}),providers:providers,viewProviders:viewProviders,queries:queries,viewQueries:viewQueries}),this._directiveCache.set(directiveType,meta)}return meta},RuntimeMetadataResolver.prototype.getTypeMetadata=function(type,moduleUrl){return new cpl.CompileTypeMetadata({name:this.sanitizeTokenName(type),moduleUrl:moduleUrl,runtime:type,diDeps:this.getDependenciesMetadata(type,null)})},RuntimeMetadataResolver.prototype.getFactoryMetadata=function(factory,moduleUrl){return new cpl.CompileFactoryMetadata({name:this.sanitizeTokenName(factory),moduleUrl:moduleUrl,runtime:factory,diDeps:this.getDependenciesMetadata(factory,null)})},RuntimeMetadataResolver.prototype.getPipeMetadata=function(pipeType){var meta=this._pipeCache.get(pipeType);if(lang_1.isBlank(meta)){var pipeMeta=this._pipeResolver.resolve(pipeType),moduleUrl=this._reflector.importUri(pipeType);meta=new cpl.CompilePipeMetadata({type:this.getTypeMetadata(pipeType,moduleUrl),name:pipeMeta.name,pure:pipeMeta.pure,lifecycleHooks:lifecycle_hooks_1.LIFECYCLE_HOOKS_VALUES.filter(function(hook){return directive_lifecycle_reflector_1.hasLifecycleHook(hook,pipeType)})}),this._pipeCache.set(pipeType,meta)}return meta},RuntimeMetadataResolver.prototype.getViewDirectivesMetadata=function(component){for(var _this=this,view=this._viewResolver.resolve(component),directives=flattenDirectives(view,this._platformDirectives),i=0;i0&&lang_1.isBlank(cssSel.element)&&collection_1.ListWrapper.isEmpty(cssSel.classNames)&&collection_1.ListWrapper.isEmpty(cssSel.attrs)&&(cssSel.element="*"),res.push(cssSel)},cssSelector=new CssSelector,matcher=lang_1.RegExpWrapper.matcher(_SELECTOR_REGEXP,selector),current=cssSelector,inNot=!1;lang_1.isPresent(match=lang_1.RegExpMatcherWrapper.next(matcher));){if(lang_1.isPresent(match[1])){if(inNot)throw new exceptions_1.BaseException("Nesting :not is not allowed in a selector");inNot=!0,current=new CssSelector,cssSelector.notSelectors.push(current)}if(lang_1.isPresent(match[2])&¤t.setElement(match[2]),lang_1.isPresent(match[3])&¤t.addClassName(match[3]),lang_1.isPresent(match[4])&¤t.addAttribute(match[4],match[5]),lang_1.isPresent(match[6])&&(inNot=!1,current=cssSelector),lang_1.isPresent(match[7])){if(inNot)throw new exceptions_1.BaseException("Multiple selectors in :not are not supported");_addResult(results,cssSelector),cssSelector=current=new CssSelector}}return _addResult(results,cssSelector),results},CssSelector.prototype.isElementSelector=function(){return lang_1.isPresent(this.element)&&collection_1.ListWrapper.isEmpty(this.classNames)&&collection_1.ListWrapper.isEmpty(this.attrs)&&0===this.notSelectors.length},CssSelector.prototype.setElement=function(element){void 0===element&&(element=null),this.element=element},CssSelector.prototype.getMatchingElementTemplate=function(){for(var tagName=lang_1.isPresent(this.element)?this.element:"div",classAttr=this.classNames.length>0?' class="'+this.classNames.join(" ")+'"':"",attrs="",i=0;i"+tagName+">"},CssSelector.prototype.addAttribute=function(name,value){void 0===value&&(value=_EMPTY_ATTR_VALUE),this.attrs.push(name),value=lang_1.isPresent(value)?value.toLowerCase():_EMPTY_ATTR_VALUE,this.attrs.push(value)},CssSelector.prototype.addClassName=function(name){this.classNames.push(name.toLowerCase())},CssSelector.prototype.toString=function(){var res="";if(lang_1.isPresent(this.element)&&(res+=this.element),lang_1.isPresent(this.classNames))for(var i=0;i0&&(res+="="+attrValue),res+="]"}return this.notSelectors.forEach(function(notSelector){return res+=":not("+notSelector+")"}),res},CssSelector}();exports.CssSelector=CssSelector;var SelectorMatcher=function(){function SelectorMatcher(){this._elementMap=new collection_1.Map,this._elementPartialMap=new collection_1.Map,this._classMap=new collection_1.Map,this._classPartialMap=new collection_1.Map,this._attrValueMap=new collection_1.Map,this._attrValuePartialMap=new collection_1.Map,this._listContexts=[]}return SelectorMatcher.createNotMatcher=function(notSelectors){var notMatcher=new SelectorMatcher;return notMatcher.addSelectables(notSelectors,null),notMatcher},SelectorMatcher.prototype.addSelectables=function(cssSelectors,callbackCtxt){var listContext=null;cssSelectors.length>1&&(listContext=new SelectorListContext(cssSelectors),this._listContexts.push(listContext));for(var i=0;i0&&(lang_1.isBlank(this.listContext)||!this.listContext.alreadyMatched)){var notMatcher=SelectorMatcher.createNotMatcher(this.notSelectors);result=!notMatcher.match(cssSelector,null)}return result&&lang_1.isPresent(callback)&&(lang_1.isBlank(this.listContext)||!this.listContext.alreadyMatched)&&(lang_1.isPresent(this.listContext)&&(this.listContext.alreadyMatched=!0),callback(this.selector,this.cbContext)),result},SelectorContext}();return exports.SelectorContext=SelectorContext,module.exports}),$__System.registerDynamic("76",[],!0,function($__require,exports,module){"use strict";!function(LifecycleHooks){LifecycleHooks[LifecycleHooks.OnInit=0]="OnInit",LifecycleHooks[LifecycleHooks.OnDestroy=1]="OnDestroy",LifecycleHooks[LifecycleHooks.DoCheck=2]="DoCheck",LifecycleHooks[LifecycleHooks.OnChanges=3]="OnChanges",LifecycleHooks[LifecycleHooks.AfterContentInit=4]="AfterContentInit",LifecycleHooks[LifecycleHooks.AfterContentChecked=5]="AfterContentChecked",LifecycleHooks[LifecycleHooks.AfterViewInit=6]="AfterViewInit",LifecycleHooks[LifecycleHooks.AfterViewChecked=7]="AfterViewChecked"}(exports.LifecycleHooks||(exports.LifecycleHooks={}));var LifecycleHooks=exports.LifecycleHooks;return exports.LIFECYCLE_HOOKS_VALUES=[LifecycleHooks.OnInit,LifecycleHooks.OnDestroy,LifecycleHooks.DoCheck,LifecycleHooks.OnChanges,LifecycleHooks.AfterContentInit,LifecycleHooks.AfterContentChecked,LifecycleHooks.AfterViewInit,LifecycleHooks.AfterViewChecked],module.exports}),$__System.registerDynamic("67",["3a","2b","9e"],!0,function($__require,exports,module){"use strict";function createUrlResolverWithoutPackagePrefix(){return new UrlResolver}function createOfflineCompileUrlResolver(){return new UrlResolver(_ASSET_SCHEME)}function getUrlScheme(url){var match=_split(url);return match&&match[_ComponentIndex.Scheme]||""}function _buildFromEncodedParts(opt_scheme,opt_userInfo,opt_domain,opt_port,opt_path,opt_queryData,opt_fragment){var out=[];return lang_1.isPresent(opt_scheme)&&out.push(opt_scheme+":"),lang_1.isPresent(opt_domain)&&(out.push("//"),lang_1.isPresent(opt_userInfo)&&out.push(opt_userInfo+"@"),out.push(opt_domain),lang_1.isPresent(opt_port)&&out.push(":"+opt_port)),lang_1.isPresent(opt_path)&&out.push(opt_path),lang_1.isPresent(opt_queryData)&&out.push("?"+opt_queryData),lang_1.isPresent(opt_fragment)&&out.push("#"+opt_fragment),out.join("")}function _split(uri){return lang_1.RegExpWrapper.firstMatch(_splitRe,uri)}function _removeDotSegments(path){if("/"==path)return"/";for(var leadingSlash="/"==path[0]?"/":"",trailingSlash="/"===path[path.length-1]?"/":"",segments=path.split("/"),out=[],up=0,pos=0;pos0?out.pop():up++;break;default:out.push(segment)}}if(""==leadingSlash){for(;up-- >0;)out.unshift("..");0===out.length&&out.push(".")}return leadingSlash+out.join("/")+trailingSlash}function _joinAndCanonicalizePath(parts){var path=parts[_ComponentIndex.Path];return path=lang_1.isBlank(path)?"":_removeDotSegments(path),parts[_ComponentIndex.Path]=path,_buildFromEncodedParts(parts[_ComponentIndex.Scheme],parts[_ComponentIndex.UserInfo],parts[_ComponentIndex.Domain],parts[_ComponentIndex.Port],path,parts[_ComponentIndex.QueryData],parts[_ComponentIndex.Fragment])}function _resolveUrl(base,url){var parts=_split(encodeURI(url)),baseParts=_split(base);if(lang_1.isPresent(parts[_ComponentIndex.Scheme]))return _joinAndCanonicalizePath(parts);parts[_ComponentIndex.Scheme]=baseParts[_ComponentIndex.Scheme];for(var i=_ComponentIndex.Scheme;i<=_ComponentIndex.Port;i++)lang_1.isBlank(parts[i])&&(parts[i]=baseParts[i]);if("/"==parts[_ComponentIndex.Path][0])return _joinAndCanonicalizePath(parts);var path=baseParts[_ComponentIndex.Path];lang_1.isBlank(path)&&(path="/");var index=path.lastIndexOf("/");return path=path.substring(0,index+1)+parts[_ComponentIndex.Path],parts[_ComponentIndex.Path]=path,_joinAndCanonicalizePath(parts)}var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},__param=this&&this.__param||function(paramIndex,decorator){return function(target,key){decorator(target,key,paramIndex)}},di_1=$__require("3a"),lang_1=$__require("2b"),application_tokens_1=$__require("9e"),_ASSET_SCHEME="asset:";exports.createUrlResolverWithoutPackagePrefix=createUrlResolverWithoutPackagePrefix,exports.createOfflineCompileUrlResolver=createOfflineCompileUrlResolver,exports.DEFAULT_PACKAGE_URL_PROVIDER=new di_1.Provider(application_tokens_1.PACKAGE_ROOT_URL,{useValue:"/"});var UrlResolver=function(){function UrlResolver(_packagePrefix){void 0===_packagePrefix&&(_packagePrefix=null),this._packagePrefix=_packagePrefix}return UrlResolver.prototype.resolve=function(baseUrl,url){var resolvedUrl=url;lang_1.isPresent(baseUrl)&&baseUrl.length>0&&(resolvedUrl=_resolveUrl(baseUrl,resolvedUrl));var resolvedParts=_split(resolvedUrl),prefix=this._packagePrefix;if(lang_1.isPresent(prefix)&&lang_1.isPresent(resolvedParts)&&"package"==resolvedParts[_ComponentIndex.Scheme]){var path=resolvedParts[_ComponentIndex.Path];if(this._packagePrefix!==_ASSET_SCHEME)return prefix=lang_1.StringWrapper.stripRight(prefix,"/"),path=lang_1.StringWrapper.stripLeft(path,"/"),prefix+"/"+path;var pathSegements=path.split(/\//);resolvedUrl="asset:"+pathSegements[0]+"/lib/"+pathSegements.slice(1).join("/")}return resolvedUrl},UrlResolver=__decorate([di_1.Injectable(),__param(0,di_1.Inject(application_tokens_1.PACKAGE_ROOT_URL)),__metadata("design:paramtypes",[String])],UrlResolver)}();exports.UrlResolver=UrlResolver,exports.getUrlScheme=getUrlScheme;var _ComponentIndex,_splitRe=lang_1.RegExpWrapper.create("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");return function(_ComponentIndex){_ComponentIndex[_ComponentIndex.Scheme=1]="Scheme",_ComponentIndex[_ComponentIndex.UserInfo=2]="UserInfo",_ComponentIndex[_ComponentIndex.Domain=3]="Domain",_ComponentIndex[_ComponentIndex.Port=4]="Port",_ComponentIndex[_ComponentIndex.Path=5]="Path",_ComponentIndex[_ComponentIndex.QueryData=6]="QueryData",_ComponentIndex[_ComponentIndex.Fragment=7]="Fragment"}(_ComponentIndex||(_ComponentIndex={})),module.exports}),$__System.registerDynamic("60",["2b","41","38","74","66","88","63","76","67"],!0,function($__require,exports,module){"use strict";function metadataFromJson(data){return _COMPILE_METADATA_FROM_JSON[data["class"]](data)}function createHostComponentMeta(componentType,componentSelector){var template=selector_1.CssSelector.parse(componentSelector)[0].getMatchingElementTemplate();return CompileDirectiveMetadata.create({type:new CompileTypeMetadata({runtime:Object,name:componentType.name+"_Host",moduleUrl:componentType.moduleUrl,isHost:!0}),template:new CompileTemplateMetadata({template:template,templateUrl:"",styles:[],styleUrls:[],ngContentSelectors:[]}),changeDetection:change_detection_1.ChangeDetectionStrategy.Default,inputs:[],outputs:[],host:{},lifecycleHooks:[],isComponent:!0,selector:"*",providers:[],viewProviders:[],queries:[],viewQueries:[]})}function _arrayFromJson(obj,fn){return lang_1.isBlank(obj)?null:obj.map(function(o){return _objFromJson(o,fn)})}function _arrayToJson(obj){return lang_1.isBlank(obj)?null:obj.map(_objToJson)}function _objFromJson(obj,fn){return lang_1.isArray(obj)?_arrayFromJson(obj,fn):lang_1.isString(obj)||lang_1.isBlank(obj)||lang_1.isBoolean(obj)||lang_1.isNumber(obj)?obj:fn(obj)}function _objToJson(obj){return lang_1.isArray(obj)?_arrayToJson(obj):lang_1.isString(obj)||lang_1.isBlank(obj)||lang_1.isBoolean(obj)||lang_1.isNumber(obj)?obj:obj.toJson()}function _normalizeArray(obj){return lang_1.isPresent(obj)?obj:[]}var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},lang_1=$__require("2b"),exceptions_1=$__require("41"),collection_1=$__require("38"),change_detection_1=$__require("74"),view_1=$__require("66"),selector_1=$__require("88"),util_1=$__require("63"),lifecycle_hooks_1=$__require("76"),url_resolver_1=$__require("67"),HOST_REG_EXP=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))$/g,CompileMetadataWithIdentifier=function(){function CompileMetadataWithIdentifier(){}return Object.defineProperty(CompileMetadataWithIdentifier.prototype,"identifier",{get:function(){return exceptions_1.unimplemented()},enumerable:!0,configurable:!0}),CompileMetadataWithIdentifier}();exports.CompileMetadataWithIdentifier=CompileMetadataWithIdentifier;var CompileMetadataWithType=function(_super){function CompileMetadataWithType(){_super.apply(this,arguments)}return __extends(CompileMetadataWithType,_super),Object.defineProperty(CompileMetadataWithType.prototype,"type",{get:function(){return exceptions_1.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(CompileMetadataWithType.prototype,"identifier",{get:function(){return exceptions_1.unimplemented()},enumerable:!0,configurable:!0}),CompileMetadataWithType}(CompileMetadataWithIdentifier);exports.CompileMetadataWithType=CompileMetadataWithType,exports.metadataFromJson=metadataFromJson;var CompileIdentifierMetadata=function(){function CompileIdentifierMetadata(_a){var _b=void 0===_a?{}:_a,runtime=_b.runtime,name=_b.name,moduleUrl=_b.moduleUrl,prefix=_b.prefix,value=_b.value;this.runtime=runtime,this.name=name,this.prefix=prefix,this.moduleUrl=moduleUrl,this.value=value}return CompileIdentifierMetadata.fromJson=function(data){var value=lang_1.isArray(data.value)?_arrayFromJson(data.value,metadataFromJson):_objFromJson(data.value,metadataFromJson);return new CompileIdentifierMetadata({name:data.name,prefix:data.prefix,moduleUrl:data.moduleUrl,value:value})},CompileIdentifierMetadata.prototype.toJson=function(){var value=lang_1.isArray(this.value)?_arrayToJson(this.value):_objToJson(this.value);return{"class":"Identifier",name:this.name,moduleUrl:this.moduleUrl,prefix:this.prefix,value:value}},Object.defineProperty(CompileIdentifierMetadata.prototype,"identifier",{get:function(){return this},enumerable:!0,configurable:!0}),CompileIdentifierMetadata}();exports.CompileIdentifierMetadata=CompileIdentifierMetadata;var CompileDiDependencyMetadata=function(){function CompileDiDependencyMetadata(_a){var _b=void 0===_a?{}:_a,isAttribute=_b.isAttribute,isSelf=_b.isSelf,isHost=_b.isHost,isSkipSelf=_b.isSkipSelf,isOptional=_b.isOptional,isValue=_b.isValue,query=_b.query,viewQuery=_b.viewQuery,token=_b.token,value=_b.value;this.isAttribute=lang_1.normalizeBool(isAttribute),this.isSelf=lang_1.normalizeBool(isSelf),this.isHost=lang_1.normalizeBool(isHost),this.isSkipSelf=lang_1.normalizeBool(isSkipSelf),this.isOptional=lang_1.normalizeBool(isOptional),this.isValue=lang_1.normalizeBool(isValue),this.query=query,this.viewQuery=viewQuery,this.token=token,this.value=value}return CompileDiDependencyMetadata.fromJson=function(data){return new CompileDiDependencyMetadata({token:_objFromJson(data.token,CompileTokenMetadata.fromJson),query:_objFromJson(data.query,CompileQueryMetadata.fromJson),viewQuery:_objFromJson(data.viewQuery,CompileQueryMetadata.fromJson),value:data.value,isAttribute:data.isAttribute,isSelf:data.isSelf,isHost:data.isHost,isSkipSelf:data.isSkipSelf,isOptional:data.isOptional,isValue:data.isValue})},CompileDiDependencyMetadata.prototype.toJson=function(){return{token:_objToJson(this.token),query:_objToJson(this.query),viewQuery:_objToJson(this.viewQuery),value:this.value,isAttribute:this.isAttribute,isSelf:this.isSelf,isHost:this.isHost,isSkipSelf:this.isSkipSelf,isOptional:this.isOptional,isValue:this.isValue}},CompileDiDependencyMetadata}();exports.CompileDiDependencyMetadata=CompileDiDependencyMetadata;var CompileProviderMetadata=function(){function CompileProviderMetadata(_a){var token=_a.token,useClass=_a.useClass,useValue=_a.useValue,useExisting=_a.useExisting,useFactory=_a.useFactory,deps=_a.deps,multi=_a.multi;this.token=token,this.useClass=useClass,this.useValue=useValue,this.useExisting=useExisting,this.useFactory=useFactory,this.deps=lang_1.normalizeBlank(deps),this.multi=lang_1.normalizeBool(multi)}return CompileProviderMetadata.fromJson=function(data){return new CompileProviderMetadata({token:_objFromJson(data.token,CompileTokenMetadata.fromJson),useClass:_objFromJson(data.useClass,CompileTypeMetadata.fromJson),useExisting:_objFromJson(data.useExisting,CompileTokenMetadata.fromJson),useValue:_objFromJson(data.useValue,CompileIdentifierMetadata.fromJson),useFactory:_objFromJson(data.useFactory,CompileFactoryMetadata.fromJson),multi:data.multi,deps:_arrayFromJson(data.deps,CompileDiDependencyMetadata.fromJson)})},CompileProviderMetadata.prototype.toJson=function(){return{"class":"Provider",token:_objToJson(this.token),useClass:_objToJson(this.useClass),useExisting:_objToJson(this.useExisting),useValue:_objToJson(this.useValue),useFactory:_objToJson(this.useFactory),multi:this.multi,deps:_arrayToJson(this.deps)}},CompileProviderMetadata}();exports.CompileProviderMetadata=CompileProviderMetadata;var CompileFactoryMetadata=function(){function CompileFactoryMetadata(_a){var runtime=_a.runtime,name=_a.name,moduleUrl=_a.moduleUrl,prefix=_a.prefix,diDeps=_a.diDeps,value=_a.value;this.runtime=runtime,this.name=name,this.prefix=prefix,this.moduleUrl=moduleUrl,this.diDeps=_normalizeArray(diDeps),this.value=value}return Object.defineProperty(CompileFactoryMetadata.prototype,"identifier",{get:function(){return this},enumerable:!0,configurable:!0}),CompileFactoryMetadata.fromJson=function(data){return new CompileFactoryMetadata({name:data.name,prefix:data.prefix,moduleUrl:data.moduleUrl,value:data.value,diDeps:_arrayFromJson(data.diDeps,CompileDiDependencyMetadata.fromJson)})},CompileFactoryMetadata.prototype.toJson=function(){return{"class":"Factory",name:this.name,prefix:this.prefix,moduleUrl:this.moduleUrl,value:this.value,diDeps:_arrayToJson(this.diDeps)}},CompileFactoryMetadata}();exports.CompileFactoryMetadata=CompileFactoryMetadata;var CompileTokenMetadata=function(){function CompileTokenMetadata(_a){var value=_a.value,identifier=_a.identifier,identifierIsInstance=_a.identifierIsInstance;this.value=value,this.identifier=identifier,this.identifierIsInstance=lang_1.normalizeBool(identifierIsInstance)}return CompileTokenMetadata.fromJson=function(data){return new CompileTokenMetadata({value:data.value,identifier:_objFromJson(data.identifier,CompileIdentifierMetadata.fromJson),identifierIsInstance:data.identifierIsInstance})},CompileTokenMetadata.prototype.toJson=function(){return{value:this.value,identifier:_objToJson(this.identifier),identifierIsInstance:this.identifierIsInstance}},Object.defineProperty(CompileTokenMetadata.prototype,"runtimeCacheKey",{get:function(){return lang_1.isPresent(this.identifier)?this.identifier.runtime:this.value},enumerable:!0,configurable:!0}),Object.defineProperty(CompileTokenMetadata.prototype,"assetCacheKey",{get:function(){return lang_1.isPresent(this.identifier)?lang_1.isPresent(this.identifier.moduleUrl)&&lang_1.isPresent(url_resolver_1.getUrlScheme(this.identifier.moduleUrl))?this.identifier.name+"|"+this.identifier.moduleUrl+"|"+this.identifierIsInstance:null:this.value},enumerable:!0,configurable:!0}),CompileTokenMetadata.prototype.equalsTo=function(token2){var rk=this.runtimeCacheKey,ak=this.assetCacheKey;return lang_1.isPresent(rk)&&rk==token2.runtimeCacheKey||lang_1.isPresent(ak)&&ak==token2.assetCacheKey},Object.defineProperty(CompileTokenMetadata.prototype,"name",{get:function(){return lang_1.isPresent(this.value)?util_1.sanitizeIdentifier(this.value):this.identifier.name},enumerable:!0,configurable:!0}),CompileTokenMetadata}();exports.CompileTokenMetadata=CompileTokenMetadata;var CompileTokenMap=function(){function CompileTokenMap(){this._valueMap=new Map,this._values=[]}return CompileTokenMap.prototype.add=function(token,value){var existing=this.get(token);if(lang_1.isPresent(existing))throw new exceptions_1.BaseException("Can only add to a TokenMap! Token: "+token.name);this._values.push(value);var rk=token.runtimeCacheKey;lang_1.isPresent(rk)&&this._valueMap.set(rk,value);var ak=token.assetCacheKey;lang_1.isPresent(ak)&&this._valueMap.set(ak,value)},CompileTokenMap.prototype.get=function(token){var result,rk=token.runtimeCacheKey,ak=token.assetCacheKey;return lang_1.isPresent(rk)&&(result=this._valueMap.get(rk)),lang_1.isBlank(result)&&lang_1.isPresent(ak)&&(result=this._valueMap.get(ak)),result},CompileTokenMap.prototype.values=function(){return this._values},Object.defineProperty(CompileTokenMap.prototype,"size",{get:function(){return this._values.length},enumerable:!0,configurable:!0}),CompileTokenMap}();exports.CompileTokenMap=CompileTokenMap;var CompileTypeMetadata=function(){function CompileTypeMetadata(_a){var _b=void 0===_a?{}:_a,runtime=_b.runtime,name=_b.name,moduleUrl=_b.moduleUrl,prefix=_b.prefix,isHost=_b.isHost,value=_b.value,diDeps=_b.diDeps;this.runtime=runtime,this.name=name,this.moduleUrl=moduleUrl,this.prefix=prefix,this.isHost=lang_1.normalizeBool(isHost),this.value=value,this.diDeps=_normalizeArray(diDeps)}return CompileTypeMetadata.fromJson=function(data){return new CompileTypeMetadata({name:data.name,moduleUrl:data.moduleUrl,prefix:data.prefix,isHost:data.isHost,value:data.value,diDeps:_arrayFromJson(data.diDeps,CompileDiDependencyMetadata.fromJson)})},Object.defineProperty(CompileTypeMetadata.prototype,"identifier",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(CompileTypeMetadata.prototype,"type",{get:function(){return this},enumerable:!0,configurable:!0}),CompileTypeMetadata.prototype.toJson=function(){return{"class":"Type",name:this.name,moduleUrl:this.moduleUrl,prefix:this.prefix,isHost:this.isHost,value:this.value,diDeps:_arrayToJson(this.diDeps)}},CompileTypeMetadata}();exports.CompileTypeMetadata=CompileTypeMetadata;var CompileQueryMetadata=function(){function CompileQueryMetadata(_a){var _b=void 0===_a?{}:_a,selectors=_b.selectors,descendants=_b.descendants,first=_b.first,propertyName=_b.propertyName,read=_b.read;this.selectors=selectors,this.descendants=lang_1.normalizeBool(descendants),this.first=lang_1.normalizeBool(first),this.propertyName=propertyName,this.read=read}return CompileQueryMetadata.fromJson=function(data){return new CompileQueryMetadata({selectors:_arrayFromJson(data.selectors,CompileTokenMetadata.fromJson),descendants:data.descendants,first:data.first,propertyName:data.propertyName,read:_objFromJson(data.read,CompileTokenMetadata.fromJson)})},CompileQueryMetadata.prototype.toJson=function(){return{selectors:_arrayToJson(this.selectors),descendants:this.descendants,first:this.first,propertyName:this.propertyName,read:_objToJson(this.read)}},CompileQueryMetadata}();exports.CompileQueryMetadata=CompileQueryMetadata;var CompileTemplateMetadata=function(){function CompileTemplateMetadata(_a){var _b=void 0===_a?{}:_a,encapsulation=_b.encapsulation,template=_b.template,templateUrl=_b.templateUrl,styles=_b.styles,styleUrls=_b.styleUrls,ngContentSelectors=_b.ngContentSelectors;this.encapsulation=lang_1.isPresent(encapsulation)?encapsulation:view_1.ViewEncapsulation.Emulated,this.template=template,this.templateUrl=templateUrl,this.styles=lang_1.isPresent(styles)?styles:[],this.styleUrls=lang_1.isPresent(styleUrls)?styleUrls:[],this.ngContentSelectors=lang_1.isPresent(ngContentSelectors)?ngContentSelectors:[]}return CompileTemplateMetadata.fromJson=function(data){return new CompileTemplateMetadata({encapsulation:lang_1.isPresent(data.encapsulation)?view_1.VIEW_ENCAPSULATION_VALUES[data.encapsulation]:data.encapsulation,template:data.template,templateUrl:data.templateUrl,styles:data.styles,styleUrls:data.styleUrls,ngContentSelectors:data.ngContentSelectors})},CompileTemplateMetadata.prototype.toJson=function(){return{encapsulation:lang_1.isPresent(this.encapsulation)?lang_1.serializeEnum(this.encapsulation):this.encapsulation,template:this.template,templateUrl:this.templateUrl,styles:this.styles,styleUrls:this.styleUrls,ngContentSelectors:this.ngContentSelectors}},CompileTemplateMetadata}();exports.CompileTemplateMetadata=CompileTemplateMetadata;var CompileDirectiveMetadata=function(){function CompileDirectiveMetadata(_a){var _b=void 0===_a?{}:_a,type=_b.type,isComponent=_b.isComponent,selector=_b.selector,exportAs=_b.exportAs,changeDetection=_b.changeDetection,inputs=_b.inputs,outputs=_b.outputs,hostListeners=_b.hostListeners,hostProperties=_b.hostProperties,hostAttributes=_b.hostAttributes,lifecycleHooks=_b.lifecycleHooks,providers=_b.providers,viewProviders=_b.viewProviders,queries=_b.queries,viewQueries=_b.viewQueries,template=_b.template;this.type=type,this.isComponent=isComponent,this.selector=selector,this.exportAs=exportAs,this.changeDetection=changeDetection,this.inputs=inputs,this.outputs=outputs,this.hostListeners=hostListeners,this.hostProperties=hostProperties,this.hostAttributes=hostAttributes,this.lifecycleHooks=_normalizeArray(lifecycleHooks),this.providers=_normalizeArray(providers),this.viewProviders=_normalizeArray(viewProviders),this.queries=_normalizeArray(queries),this.viewQueries=_normalizeArray(viewQueries),this.template=template}return CompileDirectiveMetadata.create=function(_a){var _b=void 0===_a?{}:_a,type=_b.type,isComponent=_b.isComponent,selector=_b.selector,exportAs=_b.exportAs,changeDetection=_b.changeDetection,inputs=_b.inputs,outputs=_b.outputs,host=_b.host,lifecycleHooks=_b.lifecycleHooks,providers=_b.providers,viewProviders=_b.viewProviders,queries=_b.queries,viewQueries=_b.viewQueries,template=_b.template,hostListeners={},hostProperties={},hostAttributes={};lang_1.isPresent(host)&&collection_1.StringMapWrapper.forEach(host,function(value,key){var matches=lang_1.RegExpWrapper.firstMatch(HOST_REG_EXP,key);lang_1.isBlank(matches)?hostAttributes[key]=value:lang_1.isPresent(matches[1])?hostProperties[matches[1]]=value:lang_1.isPresent(matches[2])&&(hostListeners[matches[2]]=value)});var inputsMap={};lang_1.isPresent(inputs)&&inputs.forEach(function(bindConfig){var parts=util_1.splitAtColon(bindConfig,[bindConfig,bindConfig]);inputsMap[parts[0]]=parts[1]});var outputsMap={};return lang_1.isPresent(outputs)&&outputs.forEach(function(bindConfig){
var parts=util_1.splitAtColon(bindConfig,[bindConfig,bindConfig]);outputsMap[parts[0]]=parts[1]}),new CompileDirectiveMetadata({type:type,isComponent:lang_1.normalizeBool(isComponent),selector:selector,exportAs:exportAs,changeDetection:changeDetection,inputs:inputsMap,outputs:outputsMap,hostListeners:hostListeners,hostProperties:hostProperties,hostAttributes:hostAttributes,lifecycleHooks:lang_1.isPresent(lifecycleHooks)?lifecycleHooks:[],providers:providers,viewProviders:viewProviders,queries:queries,viewQueries:viewQueries,template:template})},Object.defineProperty(CompileDirectiveMetadata.prototype,"identifier",{get:function(){return this.type},enumerable:!0,configurable:!0}),CompileDirectiveMetadata.fromJson=function(data){return new CompileDirectiveMetadata({isComponent:data.isComponent,selector:data.selector,exportAs:data.exportAs,type:lang_1.isPresent(data.type)?CompileTypeMetadata.fromJson(data.type):data.type,changeDetection:lang_1.isPresent(data.changeDetection)?change_detection_1.CHANGE_DETECTION_STRATEGY_VALUES[data.changeDetection]:data.changeDetection,inputs:data.inputs,outputs:data.outputs,hostListeners:data.hostListeners,hostProperties:data.hostProperties,hostAttributes:data.hostAttributes,lifecycleHooks:data.lifecycleHooks.map(function(hookValue){return lifecycle_hooks_1.LIFECYCLE_HOOKS_VALUES[hookValue]}),template:lang_1.isPresent(data.template)?CompileTemplateMetadata.fromJson(data.template):data.template,providers:_arrayFromJson(data.providers,metadataFromJson),viewProviders:_arrayFromJson(data.viewProviders,metadataFromJson),queries:_arrayFromJson(data.queries,CompileQueryMetadata.fromJson),viewQueries:_arrayFromJson(data.viewQueries,CompileQueryMetadata.fromJson)})},CompileDirectiveMetadata.prototype.toJson=function(){return{"class":"Directive",isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,type:lang_1.isPresent(this.type)?this.type.toJson():this.type,changeDetection:lang_1.isPresent(this.changeDetection)?lang_1.serializeEnum(this.changeDetection):this.changeDetection,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,lifecycleHooks:this.lifecycleHooks.map(function(hook){return lang_1.serializeEnum(hook)}),template:lang_1.isPresent(this.template)?this.template.toJson():this.template,providers:_arrayToJson(this.providers),viewProviders:_arrayToJson(this.viewProviders),queries:_arrayToJson(this.queries),viewQueries:_arrayToJson(this.viewQueries)}},CompileDirectiveMetadata}();exports.CompileDirectiveMetadata=CompileDirectiveMetadata,exports.createHostComponentMeta=createHostComponentMeta;var CompilePipeMetadata=function(){function CompilePipeMetadata(_a){var _b=void 0===_a?{}:_a,type=_b.type,name=_b.name,pure=_b.pure,lifecycleHooks=_b.lifecycleHooks;this.type=type,this.name=name,this.pure=lang_1.normalizeBool(pure),this.lifecycleHooks=_normalizeArray(lifecycleHooks)}return Object.defineProperty(CompilePipeMetadata.prototype,"identifier",{get:function(){return this.type},enumerable:!0,configurable:!0}),CompilePipeMetadata.fromJson=function(data){return new CompilePipeMetadata({type:lang_1.isPresent(data.type)?CompileTypeMetadata.fromJson(data.type):data.type,name:data.name,pure:data.pure})},CompilePipeMetadata.prototype.toJson=function(){return{"class":"Pipe",type:lang_1.isPresent(this.type)?this.type.toJson():null,name:this.name,pure:this.pure}},CompilePipeMetadata}();exports.CompilePipeMetadata=CompilePipeMetadata;var _COMPILE_METADATA_FROM_JSON={Directive:CompileDirectiveMetadata.fromJson,Pipe:CompilePipeMetadata.fromJson,Type:CompileTypeMetadata.fromJson,Provider:CompileProviderMetadata.fromJson,Identifier:CompileIdentifierMetadata.fromJson,Factory:CompileFactoryMetadata.fromJson};return module.exports}),$__System.registerDynamic("6a",["60","9f","a0","87","74","a1","a2","a3","a4","66","70","a5","a6","a7","63"],!0,function($__require,exports,module){"use strict";function identifierToken(identifier){return new compile_metadata_1.CompileTokenMetadata({identifier:identifier})}var compile_metadata_1=$__require("60"),view_1=$__require("9f"),debug_context_1=$__require("a0"),view_utils_1=$__require("87"),change_detection_1=$__require("74"),element_1=$__require("a1"),element_ref_1=$__require("a2"),view_container_ref_1=$__require("a3"),api_1=$__require("a4"),view_2=$__require("66"),view_type_1=$__require("70"),linker_1=$__require("a5"),injector_1=$__require("a6"),template_ref_1=$__require("a7"),util_1=$__require("63"),APP_VIEW_MODULE_URL="asset:angular2/lib/src/core/linker/view"+util_1.MODULE_SUFFIX,VIEW_UTILS_MODULE_URL="asset:angular2/lib/src/core/linker/view_utils"+util_1.MODULE_SUFFIX,CD_MODULE_URL="asset:angular2/lib/src/core/change_detection/change_detection"+util_1.MODULE_SUFFIX,impViewUtils=view_utils_1.ViewUtils,impAppView=view_1.AppView,impDebugContext=debug_context_1.DebugContext,impAppElement=element_1.AppElement,impElementRef=element_ref_1.ElementRef,impViewContainerRef=view_container_ref_1.ViewContainerRef,impChangeDetectorRef=change_detection_1.ChangeDetectorRef,impRenderComponentType=api_1.RenderComponentType,impQueryList=linker_1.QueryList,impTemplateRef=template_ref_1.TemplateRef,impTemplateRef_=template_ref_1.TemplateRef_,impValueUnwrapper=change_detection_1.ValueUnwrapper,impInjector=injector_1.Injector,impViewEncapsulation=view_2.ViewEncapsulation,impViewType=view_type_1.ViewType,impChangeDetectionStrategy=change_detection_1.ChangeDetectionStrategy,impStaticNodeDebugInfo=debug_context_1.StaticNodeDebugInfo,impRenderer=api_1.Renderer,impSimpleChange=change_detection_1.SimpleChange,impUninitialized=change_detection_1.uninitialized,impChangeDetectorState=change_detection_1.ChangeDetectorState,impFlattenNestedViewRenderNodes=view_utils_1.flattenNestedViewRenderNodes,impDevModeEqual=change_detection_1.devModeEqual,impInterpolate=view_utils_1.interpolate,impCheckBinding=view_utils_1.checkBinding,impCastByValue=view_utils_1.castByValue,Identifiers=function(){function Identifiers(){}return Identifiers.ViewUtils=new compile_metadata_1.CompileIdentifierMetadata({name:"ViewUtils",moduleUrl:"asset:angular2/lib/src/core/linker/view_utils"+util_1.MODULE_SUFFIX,runtime:impViewUtils}),Identifiers.AppView=new compile_metadata_1.CompileIdentifierMetadata({name:"AppView",moduleUrl:APP_VIEW_MODULE_URL,runtime:impAppView}),Identifiers.AppElement=new compile_metadata_1.CompileIdentifierMetadata({name:"AppElement",moduleUrl:"asset:angular2/lib/src/core/linker/element"+util_1.MODULE_SUFFIX,runtime:impAppElement}),Identifiers.ElementRef=new compile_metadata_1.CompileIdentifierMetadata({name:"ElementRef",moduleUrl:"asset:angular2/lib/src/core/linker/element_ref"+util_1.MODULE_SUFFIX,runtime:impElementRef}),Identifiers.ViewContainerRef=new compile_metadata_1.CompileIdentifierMetadata({name:"ViewContainerRef",moduleUrl:"asset:angular2/lib/src/core/linker/view_container_ref"+util_1.MODULE_SUFFIX,runtime:impViewContainerRef}),Identifiers.ChangeDetectorRef=new compile_metadata_1.CompileIdentifierMetadata({name:"ChangeDetectorRef",moduleUrl:"asset:angular2/lib/src/core/change_detection/change_detector_ref"+util_1.MODULE_SUFFIX,runtime:impChangeDetectorRef}),Identifiers.RenderComponentType=new compile_metadata_1.CompileIdentifierMetadata({name:"RenderComponentType",moduleUrl:"asset:angular2/lib/src/core/render/api"+util_1.MODULE_SUFFIX,runtime:impRenderComponentType}),Identifiers.QueryList=new compile_metadata_1.CompileIdentifierMetadata({name:"QueryList",moduleUrl:"asset:angular2/lib/src/core/linker/query_list"+util_1.MODULE_SUFFIX,runtime:impQueryList}),Identifiers.TemplateRef=new compile_metadata_1.CompileIdentifierMetadata({name:"TemplateRef",moduleUrl:"asset:angular2/lib/src/core/linker/template_ref"+util_1.MODULE_SUFFIX,runtime:impTemplateRef}),Identifiers.TemplateRef_=new compile_metadata_1.CompileIdentifierMetadata({name:"TemplateRef_",moduleUrl:"asset:angular2/lib/src/core/linker/template_ref"+util_1.MODULE_SUFFIX,runtime:impTemplateRef_}),Identifiers.ValueUnwrapper=new compile_metadata_1.CompileIdentifierMetadata({name:"ValueUnwrapper",moduleUrl:CD_MODULE_URL,runtime:impValueUnwrapper}),Identifiers.Injector=new compile_metadata_1.CompileIdentifierMetadata({name:"Injector",moduleUrl:"asset:angular2/lib/src/core/di/injector"+util_1.MODULE_SUFFIX,runtime:impInjector}),Identifiers.ViewEncapsulation=new compile_metadata_1.CompileIdentifierMetadata({name:"ViewEncapsulation",moduleUrl:"asset:angular2/lib/src/core/metadata/view"+util_1.MODULE_SUFFIX,runtime:impViewEncapsulation}),Identifiers.ViewType=new compile_metadata_1.CompileIdentifierMetadata({name:"ViewType",moduleUrl:"asset:angular2/lib/src/core/linker/view_type"+util_1.MODULE_SUFFIX,runtime:impViewType}),Identifiers.ChangeDetectionStrategy=new compile_metadata_1.CompileIdentifierMetadata({name:"ChangeDetectionStrategy",moduleUrl:CD_MODULE_URL,runtime:impChangeDetectionStrategy}),Identifiers.StaticNodeDebugInfo=new compile_metadata_1.CompileIdentifierMetadata({name:"StaticNodeDebugInfo",moduleUrl:"asset:angular2/lib/src/core/linker/debug_context"+util_1.MODULE_SUFFIX,runtime:impStaticNodeDebugInfo}),Identifiers.DebugContext=new compile_metadata_1.CompileIdentifierMetadata({name:"DebugContext",moduleUrl:"asset:angular2/lib/src/core/linker/debug_context"+util_1.MODULE_SUFFIX,runtime:impDebugContext}),Identifiers.Renderer=new compile_metadata_1.CompileIdentifierMetadata({name:"Renderer",moduleUrl:"asset:angular2/lib/src/core/render/api"+util_1.MODULE_SUFFIX,runtime:impRenderer}),Identifiers.SimpleChange=new compile_metadata_1.CompileIdentifierMetadata({name:"SimpleChange",moduleUrl:CD_MODULE_URL,runtime:impSimpleChange}),Identifiers.uninitialized=new compile_metadata_1.CompileIdentifierMetadata({name:"uninitialized",moduleUrl:CD_MODULE_URL,runtime:impUninitialized}),Identifiers.ChangeDetectorState=new compile_metadata_1.CompileIdentifierMetadata({name:"ChangeDetectorState",moduleUrl:CD_MODULE_URL,runtime:impChangeDetectorState}),Identifiers.checkBinding=new compile_metadata_1.CompileIdentifierMetadata({name:"checkBinding",moduleUrl:VIEW_UTILS_MODULE_URL,runtime:impCheckBinding}),Identifiers.flattenNestedViewRenderNodes=new compile_metadata_1.CompileIdentifierMetadata({name:"flattenNestedViewRenderNodes",moduleUrl:VIEW_UTILS_MODULE_URL,runtime:impFlattenNestedViewRenderNodes}),Identifiers.devModeEqual=new compile_metadata_1.CompileIdentifierMetadata({name:"devModeEqual",moduleUrl:CD_MODULE_URL,runtime:impDevModeEqual}),Identifiers.interpolate=new compile_metadata_1.CompileIdentifierMetadata({name:"interpolate",moduleUrl:VIEW_UTILS_MODULE_URL,runtime:impInterpolate}),Identifiers.castByValue=new compile_metadata_1.CompileIdentifierMetadata({name:"castByValue",moduleUrl:VIEW_UTILS_MODULE_URL,runtime:impCastByValue}),Identifiers.pureProxies=[null,new compile_metadata_1.CompileIdentifierMetadata({name:"pureProxy1",moduleUrl:VIEW_UTILS_MODULE_URL,runtime:view_utils_1.pureProxy1}),new compile_metadata_1.CompileIdentifierMetadata({name:"pureProxy2",moduleUrl:VIEW_UTILS_MODULE_URL,runtime:view_utils_1.pureProxy2}),new compile_metadata_1.CompileIdentifierMetadata({name:"pureProxy3",moduleUrl:VIEW_UTILS_MODULE_URL,runtime:view_utils_1.pureProxy3}),new compile_metadata_1.CompileIdentifierMetadata({name:"pureProxy4",moduleUrl:VIEW_UTILS_MODULE_URL,runtime:view_utils_1.pureProxy4}),new compile_metadata_1.CompileIdentifierMetadata({name:"pureProxy5",moduleUrl:VIEW_UTILS_MODULE_URL,runtime:view_utils_1.pureProxy5}),new compile_metadata_1.CompileIdentifierMetadata({name:"pureProxy6",moduleUrl:VIEW_UTILS_MODULE_URL,runtime:view_utils_1.pureProxy6}),new compile_metadata_1.CompileIdentifierMetadata({name:"pureProxy7",moduleUrl:VIEW_UTILS_MODULE_URL,runtime:view_utils_1.pureProxy7}),new compile_metadata_1.CompileIdentifierMetadata({name:"pureProxy8",moduleUrl:VIEW_UTILS_MODULE_URL,runtime:view_utils_1.pureProxy8}),new compile_metadata_1.CompileIdentifierMetadata({name:"pureProxy9",moduleUrl:VIEW_UTILS_MODULE_URL,runtime:view_utils_1.pureProxy9}),new compile_metadata_1.CompileIdentifierMetadata({name:"pureProxy10",moduleUrl:VIEW_UTILS_MODULE_URL,runtime:view_utils_1.pureProxy10})],Identifiers}();return exports.Identifiers=Identifiers,exports.identifierToken=identifierToken,module.exports}),$__System.registerDynamic("7e",["2b","41","6a"],!0,function($__require,exports,module){"use strict";var lang_1=$__require("2b"),exceptions_1=$__require("41"),identifiers_1=$__require("6a"),CompilerConfig=function(){function CompilerConfig(genDebugInfo,logBindingUpdate,useJit,renderTypes){void 0===renderTypes&&(renderTypes=null),this.genDebugInfo=genDebugInfo,this.logBindingUpdate=logBindingUpdate,this.useJit=useJit,lang_1.isBlank(renderTypes)&&(renderTypes=new DefaultRenderTypes),this.renderTypes=renderTypes}return CompilerConfig}();exports.CompilerConfig=CompilerConfig;var RenderTypes=function(){function RenderTypes(){}return Object.defineProperty(RenderTypes.prototype,"renderer",{get:function(){return exceptions_1.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(RenderTypes.prototype,"renderText",{get:function(){return exceptions_1.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(RenderTypes.prototype,"renderElement",{get:function(){return exceptions_1.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(RenderTypes.prototype,"renderComment",{get:function(){return exceptions_1.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(RenderTypes.prototype,"renderNode",{get:function(){return exceptions_1.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(RenderTypes.prototype,"renderEvent",{get:function(){return exceptions_1.unimplemented()},enumerable:!0,configurable:!0}),RenderTypes}();exports.RenderTypes=RenderTypes;var DefaultRenderTypes=function(){function DefaultRenderTypes(){this.renderer=identifiers_1.Identifiers.Renderer,this.renderText=null,this.renderElement=null,this.renderComment=null,this.renderNode=null,this.renderEvent=null}return DefaultRenderTypes}();return exports.DefaultRenderTypes=DefaultRenderTypes,module.exports}),$__System.registerDynamic("a8",["2b","41","61","a9"],!0,function($__require,exports,module){"use strict";var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},lang_1=$__require("2b"),exceptions_1=$__require("41"),o=$__require("61"),abstract_emitter_1=$__require("a9"),AbstractJsEmitterVisitor=function(_super){function AbstractJsEmitterVisitor(){_super.call(this,!1)}return __extends(AbstractJsEmitterVisitor,_super),AbstractJsEmitterVisitor.prototype.visitDeclareClassStmt=function(stmt,ctx){var _this=this;return ctx.pushClass(stmt),this._visitClassConstructor(stmt,ctx),lang_1.isPresent(stmt.parent)&&(ctx.print(stmt.name+".prototype = Object.create("),stmt.parent.visitExpression(this,ctx),ctx.println(".prototype);")),stmt.getters.forEach(function(getter){return _this._visitClassGetter(stmt,getter,ctx)}),stmt.methods.forEach(function(method){return _this._visitClassMethod(stmt,method,ctx)}),ctx.popClass(),null},AbstractJsEmitterVisitor.prototype._visitClassConstructor=function(stmt,ctx){ctx.print("function "+stmt.name+"("),lang_1.isPresent(stmt.constructorMethod)&&this._visitParams(stmt.constructorMethod.params,ctx),ctx.println(") {"),ctx.incIndent(),lang_1.isPresent(stmt.constructorMethod)&&stmt.constructorMethod.body.length>0&&(ctx.println("var self = this;"),this.visitAllStatements(stmt.constructorMethod.body,ctx)),ctx.decIndent(),ctx.println("}")},AbstractJsEmitterVisitor.prototype._visitClassGetter=function(stmt,getter,ctx){ctx.println("Object.defineProperty("+stmt.name+".prototype, '"+getter.name+"', { get: function() {"),ctx.incIndent(),getter.body.length>0&&(ctx.println("var self = this;"),this.visitAllStatements(getter.body,ctx)),ctx.decIndent(),ctx.println("}});")},AbstractJsEmitterVisitor.prototype._visitClassMethod=function(stmt,method,ctx){ctx.print(stmt.name+".prototype."+method.name+" = function("),this._visitParams(method.params,ctx),ctx.println(") {"),ctx.incIndent(),method.body.length>0&&(ctx.println("var self = this;"),this.visitAllStatements(method.body,ctx)),ctx.decIndent(),ctx.println("};")},AbstractJsEmitterVisitor.prototype.visitReadVarExpr=function(ast,ctx){if(ast.builtin===o.BuiltinVar.This)ctx.print("self");else{if(ast.builtin===o.BuiltinVar.Super)throw new exceptions_1.BaseException("'super' needs to be handled at a parent ast node, not at the variable level!");_super.prototype.visitReadVarExpr.call(this,ast,ctx)}return null},AbstractJsEmitterVisitor.prototype.visitDeclareVarStmt=function(stmt,ctx){return ctx.print("var "+stmt.name+" = "),stmt.value.visitExpression(this,ctx),ctx.println(";"),null},AbstractJsEmitterVisitor.prototype.visitCastExpr=function(ast,ctx){return ast.value.visitExpression(this,ctx),null},AbstractJsEmitterVisitor.prototype.visitInvokeFunctionExpr=function(expr,ctx){var fnExpr=expr.fn;return fnExpr instanceof o.ReadVarExpr&&fnExpr.builtin===o.BuiltinVar.Super?(ctx.currentClass.parent.visitExpression(this,ctx),ctx.print(".call(this"),expr.args.length>0&&(ctx.print(", "),this.visitAllExpressions(expr.args,ctx,",")),ctx.print(")")):_super.prototype.visitInvokeFunctionExpr.call(this,expr,ctx),null},AbstractJsEmitterVisitor.prototype.visitFunctionExpr=function(ast,ctx){return ctx.print("function("),this._visitParams(ast.params,ctx),ctx.println(") {"),ctx.incIndent(),this.visitAllStatements(ast.statements,ctx),ctx.decIndent(),ctx.print("}"),null},AbstractJsEmitterVisitor.prototype.visitDeclareFunctionStmt=function(stmt,ctx){return ctx.print("function "+stmt.name+"("),this._visitParams(stmt.params,ctx),ctx.println(") {"),ctx.incIndent(),this.visitAllStatements(stmt.statements,ctx),ctx.decIndent(),ctx.println("}"),null},AbstractJsEmitterVisitor.prototype.visitTryCatchStmt=function(stmt,ctx){ctx.println("try {"),ctx.incIndent(),this.visitAllStatements(stmt.bodyStmts,ctx),ctx.decIndent(),ctx.println("} catch ("+abstract_emitter_1.CATCH_ERROR_VAR.name+") {"),ctx.incIndent();var catchStmts=[abstract_emitter_1.CATCH_STACK_VAR.set(abstract_emitter_1.CATCH_ERROR_VAR.prop("stack")).toDeclStmt(null,[o.StmtModifier.Final])].concat(stmt.catchStmts);return this.visitAllStatements(catchStmts,ctx),ctx.decIndent(),ctx.println("}"),null},AbstractJsEmitterVisitor.prototype._visitParams=function(params,ctx){this.visitAllObjects(function(param){return ctx.print(param.name)},params,ctx,",")},AbstractJsEmitterVisitor.prototype.getBuiltinMethodName=function(method){var name;switch(method){case o.BuiltinMethod.ConcatArray:name="concat";break;case o.BuiltinMethod.SubscribeObservable:name="subscribe";break;case o.BuiltinMethod.bind:name="bind";break;default:throw new exceptions_1.BaseException("Unknown builtin method: "+method)}return name},AbstractJsEmitterVisitor}(abstract_emitter_1.AbstractEmitterVisitor);return exports.AbstractJsEmitterVisitor=AbstractJsEmitterVisitor,module.exports}),$__System.registerDynamic("63",["2b"],!0,function($__require,exports,module){"use strict";function camelCaseToDashCase(input){return lang_1.StringWrapper.replaceAllMapped(input,CAMEL_CASE_REGEXP,function(m){return"-"+m[1].toLowerCase()})}function dashCaseToCamelCase(input){return lang_1.StringWrapper.replaceAllMapped(input,DASH_CASE_REGEXP,function(m){return m[1].toUpperCase()})}function splitAtColon(input,defaultValues){var parts=lang_1.StringWrapper.split(input.trim(),/\s*:\s*/g);return parts.length>1?parts:defaultValues}function sanitizeIdentifier(name){return lang_1.StringWrapper.replaceAll(name,/\W/g,"_")}var lang_1=$__require("2b");exports.MODULE_SUFFIX=lang_1.IS_DART?".dart":"";var CAMEL_CASE_REGEXP=/([A-Z])/g,DASH_CASE_REGEXP=/-([a-z])/g;return exports.camelCaseToDashCase=camelCaseToDashCase,exports.dashCaseToCamelCase=dashCaseToCamelCase,exports.splitAtColon=splitAtColon,exports.sanitizeIdentifier=sanitizeIdentifier,module.exports}),$__System.registerDynamic("aa",["2b","a9","a8","63"],!0,function($__require,exports,module){"use strict";function jitStatements(sourceUrl,statements,resultVar){var converter=new JitEmitterVisitor,ctx=abstract_emitter_1.EmitterVisitorContext.createRoot([resultVar]);return converter.visitAllStatements(statements,ctx),lang_1.evalExpression(sourceUrl,resultVar,ctx.toSource(),converter.getArgs())}var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},lang_1=$__require("2b"),abstract_emitter_1=$__require("a9"),abstract_js_emitter_1=$__require("a8"),util_1=$__require("63");exports.jitStatements=jitStatements;var JitEmitterVisitor=function(_super){function JitEmitterVisitor(){_super.apply(this,arguments),this._evalArgNames=[],this._evalArgValues=[]}return __extends(JitEmitterVisitor,_super),JitEmitterVisitor.prototype.getArgs=function(){for(var result={},i=0;i0?getSuperConstructorCallExpr(ctorStmts[0]):null;lang_1.isPresent(superCtorExpr)&&(ctx.print(": "),superCtorExpr.visitExpression(this,ctx),ctorStmts=ctorStmts.slice(1)),ctx.println(" {"),ctx.incIndent(),this.visitAllStatements(ctorStmts,ctx),ctx.decIndent(),ctx.println("}")},_DartEmitterVisitor.prototype._visitClassMethod=function(method,ctx){lang_1.isPresent(method.type)?method.type.visitType(this,ctx):ctx.print("void"),ctx.print(" "+method.name+"("),this._visitParams(method.params,ctx),ctx.println(") {"),ctx.incIndent(),this.visitAllStatements(method.body,ctx),ctx.decIndent(),ctx.println("}")},_DartEmitterVisitor.prototype.visitFunctionExpr=function(ast,ctx){return ctx.print("("),this._visitParams(ast.params,ctx),ctx.println(") {"),ctx.incIndent(),this.visitAllStatements(ast.statements,ctx),ctx.decIndent(),ctx.print("}"),null},_DartEmitterVisitor.prototype.visitDeclareFunctionStmt=function(stmt,ctx){return lang_1.isPresent(stmt.type)?stmt.type.visitType(this,ctx):ctx.print("void"),ctx.print(" "+stmt.name+"("),this._visitParams(stmt.params,ctx),ctx.println(") {"),ctx.incIndent(),this.visitAllStatements(stmt.statements,ctx),ctx.decIndent(),ctx.println("}"),null},_DartEmitterVisitor.prototype.getBuiltinMethodName=function(method){var name;switch(method){case o.BuiltinMethod.ConcatArray:name=".addAll";break;case o.BuiltinMethod.SubscribeObservable:name="listen";break;case o.BuiltinMethod.bind:name=null;break;default:throw new exceptions_1.BaseException("Unknown builtin method: "+method)}return name},_DartEmitterVisitor.prototype.visitTryCatchStmt=function(stmt,ctx){return ctx.println("try {"),ctx.incIndent(),this.visitAllStatements(stmt.bodyStmts,ctx),ctx.decIndent(),ctx.println("} catch ("+abstract_emitter_1.CATCH_ERROR_VAR.name+", "+abstract_emitter_1.CATCH_STACK_VAR.name+") {"),ctx.incIndent(),this.visitAllStatements(stmt.catchStmts,ctx),ctx.decIndent(),ctx.println("}"),null},_DartEmitterVisitor.prototype.visitBinaryOperatorExpr=function(ast,ctx){switch(ast.operator){case o.BinaryOperator.Identical:ctx.print("identical("),ast.lhs.visitExpression(this,ctx),ctx.print(", "),ast.rhs.visitExpression(this,ctx),ctx.print(")");break;case o.BinaryOperator.NotIdentical:ctx.print("!identical("),ast.lhs.visitExpression(this,ctx),ctx.print(", "),ast.rhs.visitExpression(this,ctx),ctx.print(")");break;default:_super.prototype.visitBinaryOperatorExpr.call(this,ast,ctx)}return null},_DartEmitterVisitor.prototype.visitLiteralArrayExpr=function(ast,ctx){return isConstType(ast.type)&&ctx.print("const "),_super.prototype.visitLiteralArrayExpr.call(this,ast,ctx)},_DartEmitterVisitor.prototype.visitLiteralMapExpr=function(ast,ctx){return isConstType(ast.type)&&ctx.print("const "),lang_1.isPresent(ast.valueType)&&(ctx.print("")),_super.prototype.visitLiteralMapExpr.call(this,ast,ctx)},_DartEmitterVisitor.prototype.visitInstantiateExpr=function(ast,ctx){return ctx.print(isConstType(ast.type)?"const":"new"),ctx.print(" "),ast.classExpr.visitExpression(this,ctx),ctx.print("("),this.visitAllExpressions(ast.args,ctx,","),ctx.print(")"),null},_DartEmitterVisitor.prototype.visitBuiltintType=function(type,ctx){var typeStr;switch(type.name){case o.BuiltinTypeName.Bool:typeStr="bool";break;case o.BuiltinTypeName.Dynamic:typeStr="dynamic";break;case o.BuiltinTypeName.Function:typeStr="Function";break;case o.BuiltinTypeName.Number:typeStr="num";break;case o.BuiltinTypeName.Int:typeStr="int";break;case o.BuiltinTypeName.String:typeStr="String";break;default:throw new exceptions_1.BaseException("Unsupported builtin type "+type.name)}return ctx.print(typeStr),null},_DartEmitterVisitor.prototype.visitExternalType=function(ast,ctx){return this._visitIdentifier(ast.value,ast.typeParams,ctx),null},_DartEmitterVisitor.prototype.visitArrayType=function(type,ctx){return ctx.print("List<"),lang_1.isPresent(type.of)?type.of.visitType(this,ctx):ctx.print("dynamic"),ctx.print(">"),null},_DartEmitterVisitor.prototype.visitMapType=function(type,ctx){return ctx.print("Map"),null},_DartEmitterVisitor.prototype._visitParams=function(params,ctx){var _this=this;this.visitAllObjects(function(param){lang_1.isPresent(param.type)&&(param.type.visitType(_this,ctx),ctx.print(" ")),ctx.print(param.name)},params,ctx,",")},_DartEmitterVisitor.prototype._visitIdentifier=function(value,typeParams,ctx){var _this=this;if(lang_1.isPresent(value.moduleUrl)&&value.moduleUrl!=this._moduleUrl){var prefix=this.importsWithPrefixes.get(value.moduleUrl);lang_1.isBlank(prefix)&&(prefix="import"+this.importsWithPrefixes.size,this.importsWithPrefixes.set(value.moduleUrl,prefix)),ctx.print(prefix+".")}ctx.print(value.name),lang_1.isPresent(typeParams)&&typeParams.length>0&&(ctx.print("<"),this.visitAllObjects(function(type){return type.visitType(_this,ctx)},typeParams,ctx,","),ctx.print(">"))},_DartEmitterVisitor}(abstract_emitter_1.AbstractEmitterVisitor);return module.exports}),$__System.registerDynamic("61",["2b"],!0,function($__require,exports,module){"use strict";function replaceVarInExpression(varName,newValue,expression){var transformer=new _ReplaceVariableTransformer(varName,newValue);return expression.visitExpression(transformer,null)}function findReadVarNames(stmts){var finder=new _VariableFinder;return finder.visitAllStatements(stmts,null),finder.varNames}function variable(name,type){return void 0===type&&(type=null),new ReadVarExpr(name,type)}function importExpr(id,typeParams){return void 0===typeParams&&(typeParams=null),new ExternalExpr(id,null,typeParams)}function importType(id,typeParams,typeModifiers){return void 0===typeParams&&(typeParams=null),void 0===typeModifiers&&(typeModifiers=null),lang_1.isPresent(id)?new ExternalType(id,typeParams,typeModifiers):null}function literal(value,type){return void 0===type&&(type=null),new LiteralExpr(value,type)}function literalArr(values,type){
return void 0===type&&(type=null),new LiteralArrayExpr(values,type)}function literalMap(values,type){return void 0===type&&(type=null),new LiteralMapExpr(values,type)}function not(expr){return new NotExpr(expr)}function fn(params,body,type){return void 0===type&&(type=null),new FunctionExpr(params,body,type)}var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},lang_1=$__require("2b");!function(TypeModifier){TypeModifier[TypeModifier.Const=0]="Const"}(exports.TypeModifier||(exports.TypeModifier={}));var Type=(exports.TypeModifier,function(){function Type(modifiers){void 0===modifiers&&(modifiers=null),this.modifiers=modifiers,lang_1.isBlank(modifiers)&&(this.modifiers=[])}return Type.prototype.hasModifier=function(modifier){return-1!==this.modifiers.indexOf(modifier)},Type}());exports.Type=Type,function(BuiltinTypeName){BuiltinTypeName[BuiltinTypeName.Dynamic=0]="Dynamic",BuiltinTypeName[BuiltinTypeName.Bool=1]="Bool",BuiltinTypeName[BuiltinTypeName.String=2]="String",BuiltinTypeName[BuiltinTypeName.Int=3]="Int",BuiltinTypeName[BuiltinTypeName.Number=4]="Number",BuiltinTypeName[BuiltinTypeName.Function=5]="Function"}(exports.BuiltinTypeName||(exports.BuiltinTypeName={}));var BuiltinTypeName=exports.BuiltinTypeName,BuiltinType=function(_super){function BuiltinType(name,modifiers){void 0===modifiers&&(modifiers=null),_super.call(this,modifiers),this.name=name}return __extends(BuiltinType,_super),BuiltinType.prototype.visitType=function(visitor,context){return visitor.visitBuiltintType(this,context)},BuiltinType}(Type);exports.BuiltinType=BuiltinType;var ExternalType=function(_super){function ExternalType(value,typeParams,modifiers){void 0===typeParams&&(typeParams=null),void 0===modifiers&&(modifiers=null),_super.call(this,modifiers),this.value=value,this.typeParams=typeParams}return __extends(ExternalType,_super),ExternalType.prototype.visitType=function(visitor,context){return visitor.visitExternalType(this,context)},ExternalType}(Type);exports.ExternalType=ExternalType;var ArrayType=function(_super){function ArrayType(of,modifiers){void 0===modifiers&&(modifiers=null),_super.call(this,modifiers),this.of=of}return __extends(ArrayType,_super),ArrayType.prototype.visitType=function(visitor,context){return visitor.visitArrayType(this,context)},ArrayType}(Type);exports.ArrayType=ArrayType;var MapType=function(_super){function MapType(valueType,modifiers){void 0===modifiers&&(modifiers=null),_super.call(this,modifiers),this.valueType=valueType}return __extends(MapType,_super),MapType.prototype.visitType=function(visitor,context){return visitor.visitMapType(this,context)},MapType}(Type);exports.MapType=MapType,exports.DYNAMIC_TYPE=new BuiltinType(BuiltinTypeName.Dynamic),exports.BOOL_TYPE=new BuiltinType(BuiltinTypeName.Bool),exports.INT_TYPE=new BuiltinType(BuiltinTypeName.Int),exports.NUMBER_TYPE=new BuiltinType(BuiltinTypeName.Number),exports.STRING_TYPE=new BuiltinType(BuiltinTypeName.String),exports.FUNCTION_TYPE=new BuiltinType(BuiltinTypeName.Function),function(BinaryOperator){BinaryOperator[BinaryOperator.Equals=0]="Equals",BinaryOperator[BinaryOperator.NotEquals=1]="NotEquals",BinaryOperator[BinaryOperator.Identical=2]="Identical",BinaryOperator[BinaryOperator.NotIdentical=3]="NotIdentical",BinaryOperator[BinaryOperator.Minus=4]="Minus",BinaryOperator[BinaryOperator.Plus=5]="Plus",BinaryOperator[BinaryOperator.Divide=6]="Divide",BinaryOperator[BinaryOperator.Multiply=7]="Multiply",BinaryOperator[BinaryOperator.Modulo=8]="Modulo",BinaryOperator[BinaryOperator.And=9]="And",BinaryOperator[BinaryOperator.Or=10]="Or",BinaryOperator[BinaryOperator.Lower=11]="Lower",BinaryOperator[BinaryOperator.LowerEquals=12]="LowerEquals",BinaryOperator[BinaryOperator.Bigger=13]="Bigger",BinaryOperator[BinaryOperator.BiggerEquals=14]="BiggerEquals"}(exports.BinaryOperator||(exports.BinaryOperator={}));var BinaryOperator=exports.BinaryOperator,Expression=function(){function Expression(type){this.type=type}return Expression.prototype.prop=function(name){return new ReadPropExpr(this,name)},Expression.prototype.key=function(index,type){return void 0===type&&(type=null),new ReadKeyExpr(this,index,type)},Expression.prototype.callMethod=function(name,params){return new InvokeMethodExpr(this,name,params)},Expression.prototype.callFn=function(params){return new InvokeFunctionExpr(this,params)},Expression.prototype.instantiate=function(params,type){return void 0===type&&(type=null),new InstantiateExpr(this,params,type)},Expression.prototype.conditional=function(trueCase,falseCase){return void 0===falseCase&&(falseCase=null),new ConditionalExpr(this,trueCase,falseCase)},Expression.prototype.equals=function(rhs){return new BinaryOperatorExpr(BinaryOperator.Equals,this,rhs)},Expression.prototype.notEquals=function(rhs){return new BinaryOperatorExpr(BinaryOperator.NotEquals,this,rhs)},Expression.prototype.identical=function(rhs){return new BinaryOperatorExpr(BinaryOperator.Identical,this,rhs)},Expression.prototype.notIdentical=function(rhs){return new BinaryOperatorExpr(BinaryOperator.NotIdentical,this,rhs)},Expression.prototype.minus=function(rhs){return new BinaryOperatorExpr(BinaryOperator.Minus,this,rhs)},Expression.prototype.plus=function(rhs){return new BinaryOperatorExpr(BinaryOperator.Plus,this,rhs)},Expression.prototype.divide=function(rhs){return new BinaryOperatorExpr(BinaryOperator.Divide,this,rhs)},Expression.prototype.multiply=function(rhs){return new BinaryOperatorExpr(BinaryOperator.Multiply,this,rhs)},Expression.prototype.modulo=function(rhs){return new BinaryOperatorExpr(BinaryOperator.Modulo,this,rhs)},Expression.prototype.and=function(rhs){return new BinaryOperatorExpr(BinaryOperator.And,this,rhs)},Expression.prototype.or=function(rhs){return new BinaryOperatorExpr(BinaryOperator.Or,this,rhs)},Expression.prototype.lower=function(rhs){return new BinaryOperatorExpr(BinaryOperator.Lower,this,rhs)},Expression.prototype.lowerEquals=function(rhs){return new BinaryOperatorExpr(BinaryOperator.LowerEquals,this,rhs)},Expression.prototype.bigger=function(rhs){return new BinaryOperatorExpr(BinaryOperator.Bigger,this,rhs)},Expression.prototype.biggerEquals=function(rhs){return new BinaryOperatorExpr(BinaryOperator.BiggerEquals,this,rhs)},Expression.prototype.isBlank=function(){return this.equals(exports.NULL_EXPR)},Expression.prototype.cast=function(type){return new CastExpr(this,type)},Expression.prototype.toStmt=function(){return new ExpressionStatement(this)},Expression}();exports.Expression=Expression,function(BuiltinVar){BuiltinVar[BuiltinVar.This=0]="This",BuiltinVar[BuiltinVar.Super=1]="Super",BuiltinVar[BuiltinVar.CatchError=2]="CatchError",BuiltinVar[BuiltinVar.CatchStack=3]="CatchStack"}(exports.BuiltinVar||(exports.BuiltinVar={}));var BuiltinVar=exports.BuiltinVar,ReadVarExpr=function(_super){function ReadVarExpr(name,type){void 0===type&&(type=null),_super.call(this,type),lang_1.isString(name)?(this.name=name,this.builtin=null):(this.name=null,this.builtin=name)}return __extends(ReadVarExpr,_super),ReadVarExpr.prototype.visitExpression=function(visitor,context){return visitor.visitReadVarExpr(this,context)},ReadVarExpr.prototype.set=function(value){return new WriteVarExpr(this.name,value)},ReadVarExpr}(Expression);exports.ReadVarExpr=ReadVarExpr;var WriteVarExpr=function(_super){function WriteVarExpr(name,value,type){void 0===type&&(type=null),_super.call(this,lang_1.isPresent(type)?type:value.type),this.name=name,this.value=value}return __extends(WriteVarExpr,_super),WriteVarExpr.prototype.visitExpression=function(visitor,context){return visitor.visitWriteVarExpr(this,context)},WriteVarExpr.prototype.toDeclStmt=function(type,modifiers){return void 0===type&&(type=null),void 0===modifiers&&(modifiers=null),new DeclareVarStmt(this.name,this.value,type,modifiers)},WriteVarExpr}(Expression);exports.WriteVarExpr=WriteVarExpr;var WriteKeyExpr=function(_super){function WriteKeyExpr(receiver,index,value,type){void 0===type&&(type=null),_super.call(this,lang_1.isPresent(type)?type:value.type),this.receiver=receiver,this.index=index,this.value=value}return __extends(WriteKeyExpr,_super),WriteKeyExpr.prototype.visitExpression=function(visitor,context){return visitor.visitWriteKeyExpr(this,context)},WriteKeyExpr}(Expression);exports.WriteKeyExpr=WriteKeyExpr;var WritePropExpr=function(_super){function WritePropExpr(receiver,name,value,type){void 0===type&&(type=null),_super.call(this,lang_1.isPresent(type)?type:value.type),this.receiver=receiver,this.name=name,this.value=value}return __extends(WritePropExpr,_super),WritePropExpr.prototype.visitExpression=function(visitor,context){return visitor.visitWritePropExpr(this,context)},WritePropExpr}(Expression);exports.WritePropExpr=WritePropExpr,function(BuiltinMethod){BuiltinMethod[BuiltinMethod.ConcatArray=0]="ConcatArray",BuiltinMethod[BuiltinMethod.SubscribeObservable=1]="SubscribeObservable",BuiltinMethod[BuiltinMethod.bind=2]="bind"}(exports.BuiltinMethod||(exports.BuiltinMethod={}));var InvokeMethodExpr=(exports.BuiltinMethod,function(_super){function InvokeMethodExpr(receiver,method,args,type){void 0===type&&(type=null),_super.call(this,type),this.receiver=receiver,this.args=args,lang_1.isString(method)?(this.name=method,this.builtin=null):(this.name=null,this.builtin=method)}return __extends(InvokeMethodExpr,_super),InvokeMethodExpr.prototype.visitExpression=function(visitor,context){return visitor.visitInvokeMethodExpr(this,context)},InvokeMethodExpr}(Expression));exports.InvokeMethodExpr=InvokeMethodExpr;var InvokeFunctionExpr=function(_super){function InvokeFunctionExpr(fn,args,type){void 0===type&&(type=null),_super.call(this,type),this.fn=fn,this.args=args}return __extends(InvokeFunctionExpr,_super),InvokeFunctionExpr.prototype.visitExpression=function(visitor,context){return visitor.visitInvokeFunctionExpr(this,context)},InvokeFunctionExpr}(Expression);exports.InvokeFunctionExpr=InvokeFunctionExpr;var InstantiateExpr=function(_super){function InstantiateExpr(classExpr,args,type){_super.call(this,type),this.classExpr=classExpr,this.args=args}return __extends(InstantiateExpr,_super),InstantiateExpr.prototype.visitExpression=function(visitor,context){return visitor.visitInstantiateExpr(this,context)},InstantiateExpr}(Expression);exports.InstantiateExpr=InstantiateExpr;var LiteralExpr=function(_super){function LiteralExpr(value,type){void 0===type&&(type=null),_super.call(this,type),this.value=value}return __extends(LiteralExpr,_super),LiteralExpr.prototype.visitExpression=function(visitor,context){return visitor.visitLiteralExpr(this,context)},LiteralExpr}(Expression);exports.LiteralExpr=LiteralExpr;var ExternalExpr=function(_super){function ExternalExpr(value,type,typeParams){void 0===type&&(type=null),void 0===typeParams&&(typeParams=null),_super.call(this,type),this.value=value,this.typeParams=typeParams}return __extends(ExternalExpr,_super),ExternalExpr.prototype.visitExpression=function(visitor,context){return visitor.visitExternalExpr(this,context)},ExternalExpr}(Expression);exports.ExternalExpr=ExternalExpr;var ConditionalExpr=function(_super){function ConditionalExpr(condition,trueCase,falseCase,type){void 0===falseCase&&(falseCase=null),void 0===type&&(type=null),_super.call(this,lang_1.isPresent(type)?type:trueCase.type),this.condition=condition,this.falseCase=falseCase,this.trueCase=trueCase}return __extends(ConditionalExpr,_super),ConditionalExpr.prototype.visitExpression=function(visitor,context){return visitor.visitConditionalExpr(this,context)},ConditionalExpr}(Expression);exports.ConditionalExpr=ConditionalExpr;var NotExpr=function(_super){function NotExpr(condition){_super.call(this,exports.BOOL_TYPE),this.condition=condition}return __extends(NotExpr,_super),NotExpr.prototype.visitExpression=function(visitor,context){return visitor.visitNotExpr(this,context)},NotExpr}(Expression);exports.NotExpr=NotExpr;var CastExpr=function(_super){function CastExpr(value,type){_super.call(this,type),this.value=value}return __extends(CastExpr,_super),CastExpr.prototype.visitExpression=function(visitor,context){return visitor.visitCastExpr(this,context)},CastExpr}(Expression);exports.CastExpr=CastExpr;var FnParam=function(){function FnParam(name,type){void 0===type&&(type=null),this.name=name,this.type=type}return FnParam}();exports.FnParam=FnParam;var FunctionExpr=function(_super){function FunctionExpr(params,statements,type){void 0===type&&(type=null),_super.call(this,type),this.params=params,this.statements=statements}return __extends(FunctionExpr,_super),FunctionExpr.prototype.visitExpression=function(visitor,context){return visitor.visitFunctionExpr(this,context)},FunctionExpr.prototype.toDeclStmt=function(name,modifiers){return void 0===modifiers&&(modifiers=null),new DeclareFunctionStmt(name,this.params,this.statements,this.type,modifiers)},FunctionExpr}(Expression);exports.FunctionExpr=FunctionExpr;var BinaryOperatorExpr=function(_super){function BinaryOperatorExpr(operator,lhs,rhs,type){void 0===type&&(type=null),_super.call(this,lang_1.isPresent(type)?type:lhs.type),this.operator=operator,this.rhs=rhs,this.lhs=lhs}return __extends(BinaryOperatorExpr,_super),BinaryOperatorExpr.prototype.visitExpression=function(visitor,context){return visitor.visitBinaryOperatorExpr(this,context)},BinaryOperatorExpr}(Expression);exports.BinaryOperatorExpr=BinaryOperatorExpr;var ReadPropExpr=function(_super){function ReadPropExpr(receiver,name,type){void 0===type&&(type=null),_super.call(this,type),this.receiver=receiver,this.name=name}return __extends(ReadPropExpr,_super),ReadPropExpr.prototype.visitExpression=function(visitor,context){return visitor.visitReadPropExpr(this,context)},ReadPropExpr.prototype.set=function(value){return new WritePropExpr(this.receiver,this.name,value)},ReadPropExpr}(Expression);exports.ReadPropExpr=ReadPropExpr;var ReadKeyExpr=function(_super){function ReadKeyExpr(receiver,index,type){void 0===type&&(type=null),_super.call(this,type),this.receiver=receiver,this.index=index}return __extends(ReadKeyExpr,_super),ReadKeyExpr.prototype.visitExpression=function(visitor,context){return visitor.visitReadKeyExpr(this,context)},ReadKeyExpr.prototype.set=function(value){return new WriteKeyExpr(this.receiver,this.index,value)},ReadKeyExpr}(Expression);exports.ReadKeyExpr=ReadKeyExpr;var LiteralArrayExpr=function(_super){function LiteralArrayExpr(entries,type){void 0===type&&(type=null),_super.call(this,type),this.entries=entries}return __extends(LiteralArrayExpr,_super),LiteralArrayExpr.prototype.visitExpression=function(visitor,context){return visitor.visitLiteralArrayExpr(this,context)},LiteralArrayExpr}(Expression);exports.LiteralArrayExpr=LiteralArrayExpr;var LiteralMapExpr=function(_super){function LiteralMapExpr(entries,type){void 0===type&&(type=null),_super.call(this,type),this.entries=entries,this.valueType=null,lang_1.isPresent(type)&&(this.valueType=type.valueType)}return __extends(LiteralMapExpr,_super),LiteralMapExpr.prototype.visitExpression=function(visitor,context){return visitor.visitLiteralMapExpr(this,context)},LiteralMapExpr}(Expression);exports.LiteralMapExpr=LiteralMapExpr,exports.THIS_EXPR=new ReadVarExpr(BuiltinVar.This),exports.SUPER_EXPR=new ReadVarExpr(BuiltinVar.Super),exports.CATCH_ERROR_VAR=new ReadVarExpr(BuiltinVar.CatchError),exports.CATCH_STACK_VAR=new ReadVarExpr(BuiltinVar.CatchStack),exports.NULL_EXPR=new LiteralExpr(null,null),function(StmtModifier){StmtModifier[StmtModifier.Final=0]="Final",StmtModifier[StmtModifier.Private=1]="Private"}(exports.StmtModifier||(exports.StmtModifier={}));var Statement=(exports.StmtModifier,function(){function Statement(modifiers){void 0===modifiers&&(modifiers=null),this.modifiers=modifiers,lang_1.isBlank(modifiers)&&(this.modifiers=[])}return Statement.prototype.hasModifier=function(modifier){return-1!==this.modifiers.indexOf(modifier)},Statement}());exports.Statement=Statement;var DeclareVarStmt=function(_super){function DeclareVarStmt(name,value,type,modifiers){void 0===type&&(type=null),void 0===modifiers&&(modifiers=null),_super.call(this,modifiers),this.name=name,this.value=value,this.type=lang_1.isPresent(type)?type:value.type}return __extends(DeclareVarStmt,_super),DeclareVarStmt.prototype.visitStatement=function(visitor,context){return visitor.visitDeclareVarStmt(this,context)},DeclareVarStmt}(Statement);exports.DeclareVarStmt=DeclareVarStmt;var DeclareFunctionStmt=function(_super){function DeclareFunctionStmt(name,params,statements,type,modifiers){void 0===type&&(type=null),void 0===modifiers&&(modifiers=null),_super.call(this,modifiers),this.name=name,this.params=params,this.statements=statements,this.type=type}return __extends(DeclareFunctionStmt,_super),DeclareFunctionStmt.prototype.visitStatement=function(visitor,context){return visitor.visitDeclareFunctionStmt(this,context)},DeclareFunctionStmt}(Statement);exports.DeclareFunctionStmt=DeclareFunctionStmt;var ExpressionStatement=function(_super){function ExpressionStatement(expr){_super.call(this),this.expr=expr}return __extends(ExpressionStatement,_super),ExpressionStatement.prototype.visitStatement=function(visitor,context){return visitor.visitExpressionStmt(this,context)},ExpressionStatement}(Statement);exports.ExpressionStatement=ExpressionStatement;var ReturnStatement=function(_super){function ReturnStatement(value){_super.call(this),this.value=value}return __extends(ReturnStatement,_super),ReturnStatement.prototype.visitStatement=function(visitor,context){return visitor.visitReturnStmt(this,context)},ReturnStatement}(Statement);exports.ReturnStatement=ReturnStatement;var AbstractClassPart=function(){function AbstractClassPart(type,modifiers){void 0===type&&(type=null),this.type=type,this.modifiers=modifiers,lang_1.isBlank(modifiers)&&(this.modifiers=[])}return AbstractClassPart.prototype.hasModifier=function(modifier){return-1!==this.modifiers.indexOf(modifier)},AbstractClassPart}();exports.AbstractClassPart=AbstractClassPart;var ClassField=function(_super){function ClassField(name,type,modifiers){void 0===type&&(type=null),void 0===modifiers&&(modifiers=null),_super.call(this,type,modifiers),this.name=name}return __extends(ClassField,_super),ClassField}(AbstractClassPart);exports.ClassField=ClassField;var ClassMethod=function(_super){function ClassMethod(name,params,body,type,modifiers){void 0===type&&(type=null),void 0===modifiers&&(modifiers=null),_super.call(this,type,modifiers),this.name=name,this.params=params,this.body=body}return __extends(ClassMethod,_super),ClassMethod}(AbstractClassPart);exports.ClassMethod=ClassMethod;var ClassGetter=function(_super){function ClassGetter(name,body,type,modifiers){void 0===type&&(type=null),void 0===modifiers&&(modifiers=null),_super.call(this,type,modifiers),this.name=name,this.body=body}return __extends(ClassGetter,_super),ClassGetter}(AbstractClassPart);exports.ClassGetter=ClassGetter;var ClassStmt=function(_super){function ClassStmt(name,parent,fields,getters,constructorMethod,methods,modifiers){void 0===modifiers&&(modifiers=null),_super.call(this,modifiers),this.name=name,this.parent=parent,this.fields=fields,this.getters=getters,this.constructorMethod=constructorMethod,this.methods=methods}return __extends(ClassStmt,_super),ClassStmt.prototype.visitStatement=function(visitor,context){return visitor.visitDeclareClassStmt(this,context)},ClassStmt}(Statement);exports.ClassStmt=ClassStmt;var IfStmt=function(_super){function IfStmt(condition,trueCase,falseCase){void 0===falseCase&&(falseCase=lang_1.CONST_EXPR([])),_super.call(this),this.condition=condition,this.trueCase=trueCase,this.falseCase=falseCase}return __extends(IfStmt,_super),IfStmt.prototype.visitStatement=function(visitor,context){return visitor.visitIfStmt(this,context)},IfStmt}(Statement);exports.IfStmt=IfStmt;var CommentStmt=function(_super){function CommentStmt(comment){_super.call(this),this.comment=comment}return __extends(CommentStmt,_super),CommentStmt.prototype.visitStatement=function(visitor,context){return visitor.visitCommentStmt(this,context)},CommentStmt}(Statement);exports.CommentStmt=CommentStmt;var TryCatchStmt=function(_super){function TryCatchStmt(bodyStmts,catchStmts){_super.call(this),this.bodyStmts=bodyStmts,this.catchStmts=catchStmts}return __extends(TryCatchStmt,_super),TryCatchStmt.prototype.visitStatement=function(visitor,context){return visitor.visitTryCatchStmt(this,context)},TryCatchStmt}(Statement);exports.TryCatchStmt=TryCatchStmt;var ThrowStmt=function(_super){function ThrowStmt(error){_super.call(this),this.error=error}return __extends(ThrowStmt,_super),ThrowStmt.prototype.visitStatement=function(visitor,context){return visitor.visitThrowStmt(this,context)},ThrowStmt}(Statement);exports.ThrowStmt=ThrowStmt;var ExpressionTransformer=function(){function ExpressionTransformer(){}return ExpressionTransformer.prototype.visitReadVarExpr=function(ast,context){return ast},ExpressionTransformer.prototype.visitWriteVarExpr=function(expr,context){return new WriteVarExpr(expr.name,expr.value.visitExpression(this,context))},ExpressionTransformer.prototype.visitWriteKeyExpr=function(expr,context){return new WriteKeyExpr(expr.receiver.visitExpression(this,context),expr.index.visitExpression(this,context),expr.value.visitExpression(this,context))},ExpressionTransformer.prototype.visitWritePropExpr=function(expr,context){return new WritePropExpr(expr.receiver.visitExpression(this,context),expr.name,expr.value.visitExpression(this,context))},ExpressionTransformer.prototype.visitInvokeMethodExpr=function(ast,context){var method=lang_1.isPresent(ast.builtin)?ast.builtin:ast.name;return new InvokeMethodExpr(ast.receiver.visitExpression(this,context),method,this.visitAllExpressions(ast.args,context),ast.type)},ExpressionTransformer.prototype.visitInvokeFunctionExpr=function(ast,context){return new InvokeFunctionExpr(ast.fn.visitExpression(this,context),this.visitAllExpressions(ast.args,context),ast.type)},ExpressionTransformer.prototype.visitInstantiateExpr=function(ast,context){return new InstantiateExpr(ast.classExpr.visitExpression(this,context),this.visitAllExpressions(ast.args,context),ast.type)},ExpressionTransformer.prototype.visitLiteralExpr=function(ast,context){return ast},ExpressionTransformer.prototype.visitExternalExpr=function(ast,context){return ast},ExpressionTransformer.prototype.visitConditionalExpr=function(ast,context){return new ConditionalExpr(ast.condition.visitExpression(this,context),ast.trueCase.visitExpression(this,context),ast.falseCase.visitExpression(this,context))},ExpressionTransformer.prototype.visitNotExpr=function(ast,context){return new NotExpr(ast.condition.visitExpression(this,context))},ExpressionTransformer.prototype.visitCastExpr=function(ast,context){return new CastExpr(ast.value.visitExpression(this,context),context)},ExpressionTransformer.prototype.visitFunctionExpr=function(ast,context){return ast},ExpressionTransformer.prototype.visitBinaryOperatorExpr=function(ast,context){return new BinaryOperatorExpr(ast.operator,ast.lhs.visitExpression(this,context),ast.rhs.visitExpression(this,context),ast.type)},ExpressionTransformer.prototype.visitReadPropExpr=function(ast,context){return new ReadPropExpr(ast.receiver.visitExpression(this,context),ast.name,ast.type)},ExpressionTransformer.prototype.visitReadKeyExpr=function(ast,context){return new ReadKeyExpr(ast.receiver.visitExpression(this,context),ast.index.visitExpression(this,context),ast.type)},ExpressionTransformer.prototype.visitLiteralArrayExpr=function(ast,context){return new LiteralArrayExpr(this.visitAllExpressions(ast.entries,context))},ExpressionTransformer.prototype.visitLiteralMapExpr=function(ast,context){var _this=this;return new LiteralMapExpr(ast.entries.map(function(entry){return[entry[0],entry[1].visitExpression(_this,context)]}))},ExpressionTransformer.prototype.visitAllExpressions=function(exprs,context){var _this=this;return exprs.map(function(expr){return expr.visitExpression(_this,context)})},ExpressionTransformer.prototype.visitDeclareVarStmt=function(stmt,context){return new DeclareVarStmt(stmt.name,stmt.value.visitExpression(this,context),stmt.type,stmt.modifiers)},ExpressionTransformer.prototype.visitDeclareFunctionStmt=function(stmt,context){return stmt},ExpressionTransformer.prototype.visitExpressionStmt=function(stmt,context){return new ExpressionStatement(stmt.expr.visitExpression(this,context))},ExpressionTransformer.prototype.visitReturnStmt=function(stmt,context){return new ReturnStatement(stmt.value.visitExpression(this,context))},ExpressionTransformer.prototype.visitDeclareClassStmt=function(stmt,context){return stmt},ExpressionTransformer.prototype.visitIfStmt=function(stmt,context){return new IfStmt(stmt.condition.visitExpression(this,context),this.visitAllStatements(stmt.trueCase,context),this.visitAllStatements(stmt.falseCase,context))},ExpressionTransformer.prototype.visitTryCatchStmt=function(stmt,context){return new TryCatchStmt(this.visitAllStatements(stmt.bodyStmts,context),this.visitAllStatements(stmt.catchStmts,context))},ExpressionTransformer.prototype.visitThrowStmt=function(stmt,context){return new ThrowStmt(stmt.error.visitExpression(this,context))},ExpressionTransformer.prototype.visitCommentStmt=function(stmt,context){return stmt},ExpressionTransformer.prototype.visitAllStatements=function(stmts,context){var _this=this;return stmts.map(function(stmt){return stmt.visitStatement(_this,context)})},ExpressionTransformer}();exports.ExpressionTransformer=ExpressionTransformer;var RecursiveExpressionVisitor=function(){function RecursiveExpressionVisitor(){}return RecursiveExpressionVisitor.prototype.visitReadVarExpr=function(ast,context){return ast},RecursiveExpressionVisitor.prototype.visitWriteVarExpr=function(expr,context){return expr.value.visitExpression(this,context),expr},RecursiveExpressionVisitor.prototype.visitWriteKeyExpr=function(expr,context){return expr.receiver.visitExpression(this,context),expr.index.visitExpression(this,context),expr.value.visitExpression(this,context),expr},RecursiveExpressionVisitor.prototype.visitWritePropExpr=function(expr,context){return expr.receiver.visitExpression(this,context),expr.value.visitExpression(this,context),expr},RecursiveExpressionVisitor.prototype.visitInvokeMethodExpr=function(ast,context){return ast.receiver.visitExpression(this,context),this.visitAllExpressions(ast.args,context),ast},RecursiveExpressionVisitor.prototype.visitInvokeFunctionExpr=function(ast,context){return ast.fn.visitExpression(this,context),this.visitAllExpressions(ast.args,context),ast},RecursiveExpressionVisitor.prototype.visitInstantiateExpr=function(ast,context){return ast.classExpr.visitExpression(this,context),this.visitAllExpressions(ast.args,context),ast},RecursiveExpressionVisitor.prototype.visitLiteralExpr=function(ast,context){return ast},RecursiveExpressionVisitor.prototype.visitExternalExpr=function(ast,context){return ast},RecursiveExpressionVisitor.prototype.visitConditionalExpr=function(ast,context){return ast.condition.visitExpression(this,context),ast.trueCase.visitExpression(this,context),ast.falseCase.visitExpression(this,context),ast},RecursiveExpressionVisitor.prototype.visitNotExpr=function(ast,context){return ast.condition.visitExpression(this,context),ast},RecursiveExpressionVisitor.prototype.visitCastExpr=function(ast,context){return ast.value.visitExpression(this,context),ast},RecursiveExpressionVisitor.prototype.visitFunctionExpr=function(ast,context){return ast},RecursiveExpressionVisitor.prototype.visitBinaryOperatorExpr=function(ast,context){return ast.lhs.visitExpression(this,context),ast.rhs.visitExpression(this,context),ast},RecursiveExpressionVisitor.prototype.visitReadPropExpr=function(ast,context){return ast.receiver.visitExpression(this,context),ast},RecursiveExpressionVisitor.prototype.visitReadKeyExpr=function(ast,context){return ast.receiver.visitExpression(this,context),ast.index.visitExpression(this,context),ast},RecursiveExpressionVisitor.prototype.visitLiteralArrayExpr=function(ast,context){return this.visitAllExpressions(ast.entries,context),ast},RecursiveExpressionVisitor.prototype.visitLiteralMapExpr=function(ast,context){var _this=this;return ast.entries.forEach(function(entry){return entry[1].visitExpression(_this,context)}),ast},RecursiveExpressionVisitor.prototype.visitAllExpressions=function(exprs,context){var _this=this;exprs.forEach(function(expr){return expr.visitExpression(_this,context)})},RecursiveExpressionVisitor.prototype.visitDeclareVarStmt=function(stmt,context){return stmt.value.visitExpression(this,context),stmt},RecursiveExpressionVisitor.prototype.visitDeclareFunctionStmt=function(stmt,context){return stmt},RecursiveExpressionVisitor.prototype.visitExpressionStmt=function(stmt,context){return stmt.expr.visitExpression(this,context),stmt},RecursiveExpressionVisitor.prototype.visitReturnStmt=function(stmt,context){return stmt.value.visitExpression(this,context),stmt},RecursiveExpressionVisitor.prototype.visitDeclareClassStmt=function(stmt,context){return stmt},RecursiveExpressionVisitor.prototype.visitIfStmt=function(stmt,context){return stmt.condition.visitExpression(this,context),this.visitAllStatements(stmt.trueCase,context),this.visitAllStatements(stmt.falseCase,context),stmt},RecursiveExpressionVisitor.prototype.visitTryCatchStmt=function(stmt,context){return this.visitAllStatements(stmt.bodyStmts,context),this.visitAllStatements(stmt.catchStmts,context),stmt},RecursiveExpressionVisitor.prototype.visitThrowStmt=function(stmt,context){return stmt.error.visitExpression(this,context),stmt},RecursiveExpressionVisitor.prototype.visitCommentStmt=function(stmt,context){return stmt},RecursiveExpressionVisitor.prototype.visitAllStatements=function(stmts,context){var _this=this;stmts.forEach(function(stmt){return stmt.visitStatement(_this,context)})},RecursiveExpressionVisitor}();exports.RecursiveExpressionVisitor=RecursiveExpressionVisitor,exports.replaceVarInExpression=replaceVarInExpression;var _ReplaceVariableTransformer=function(_super){function _ReplaceVariableTransformer(_varName,_newValue){_super.call(this),this._varName=_varName,this._newValue=_newValue}return __extends(_ReplaceVariableTransformer,_super),_ReplaceVariableTransformer.prototype.visitReadVarExpr=function(ast,context){return ast.name==this._varName?this._newValue:ast},_ReplaceVariableTransformer}(ExpressionTransformer);exports.findReadVarNames=findReadVarNames;var _VariableFinder=function(_super){function _VariableFinder(){_super.apply(this,arguments),this.varNames=new Set}return __extends(_VariableFinder,_super),_VariableFinder.prototype.visitReadVarExpr=function(ast,context){return this.varNames.add(ast.name),null},_VariableFinder}(RecursiveExpressionVisitor);return exports.variable=variable,exports.importExpr=importExpr,exports.importType=importType,exports.literal=literal,exports.literalArr=literalArr,exports.literalMap=literalMap,exports.not=not,exports.fn=fn,module.exports}),$__System.registerDynamic("a9",["2b","41","61"],!0,function($__require,exports,module){"use strict";function escapeSingleQuoteString(input,escapeDollar){if(lang_1.isBlank(input))return null;var body=lang_1.StringWrapper.replaceAllMapped(input,_SINGLE_QUOTE_ESCAPE_STRING_RE,function(match){return"$"==match[0]?escapeDollar?"\\$":"$":"\n"==match[0]?"\\n":"\r"==match[0]?"\\r":"\\"+match[0]});return"'"+body+"'"}function _createIndent(count){for(var res="",i=0;count>i;i++)res+=" ";return res}var lang_1=$__require("2b"),exceptions_1=$__require("41"),o=$__require("61"),_SINGLE_QUOTE_ESCAPE_STRING_RE=/'|\\|\n|\r|\$/g;exports.CATCH_ERROR_VAR=o.variable("error"),exports.CATCH_STACK_VAR=o.variable("stack");var OutputEmitter=function(){function OutputEmitter(){}return OutputEmitter}();exports.OutputEmitter=OutputEmitter;var _EmittedLine=function(){function _EmittedLine(indent){this.indent=indent,
this.parts=[]}return _EmittedLine}(),EmitterVisitorContext=function(){function EmitterVisitorContext(_exportedVars,_indent){this._exportedVars=_exportedVars,this._indent=_indent,this._classes=[],this._lines=[new _EmittedLine(_indent)]}return EmitterVisitorContext.createRoot=function(exportedVars){return new EmitterVisitorContext(exportedVars,0)},Object.defineProperty(EmitterVisitorContext.prototype,"_currentLine",{get:function(){return this._lines[this._lines.length-1]},enumerable:!0,configurable:!0}),EmitterVisitorContext.prototype.isExportedVar=function(varName){return-1!==this._exportedVars.indexOf(varName)},EmitterVisitorContext.prototype.println=function(lastPart){void 0===lastPart&&(lastPart=""),this.print(lastPart,!0)},EmitterVisitorContext.prototype.lineIsEmpty=function(){return 0===this._currentLine.parts.length},EmitterVisitorContext.prototype.print=function(part,newLine){void 0===newLine&&(newLine=!1),part.length>0&&this._currentLine.parts.push(part),newLine&&this._lines.push(new _EmittedLine(this._indent))},EmitterVisitorContext.prototype.removeEmptyLastLine=function(){this.lineIsEmpty()&&this._lines.pop()},EmitterVisitorContext.prototype.incIndent=function(){this._indent++,this._currentLine.indent=this._indent},EmitterVisitorContext.prototype.decIndent=function(){this._indent--,this._currentLine.indent=this._indent},EmitterVisitorContext.prototype.pushClass=function(clazz){this._classes.push(clazz)},EmitterVisitorContext.prototype.popClass=function(){return this._classes.pop()},Object.defineProperty(EmitterVisitorContext.prototype,"currentClass",{get:function(){return this._classes.length>0?this._classes[this._classes.length-1]:null},enumerable:!0,configurable:!0}),EmitterVisitorContext.prototype.toSource=function(){var lines=this._lines;return 0===lines[lines.length-1].parts.length&&(lines=lines.slice(0,lines.length-1)),lines.map(function(line){return line.parts.length>0?_createIndent(line.indent)+line.parts.join(""):""}).join("\n")},EmitterVisitorContext}();exports.EmitterVisitorContext=EmitterVisitorContext;var AbstractEmitterVisitor=function(){function AbstractEmitterVisitor(_escapeDollarInStrings){this._escapeDollarInStrings=_escapeDollarInStrings}return AbstractEmitterVisitor.prototype.visitExpressionStmt=function(stmt,ctx){return stmt.expr.visitExpression(this,ctx),ctx.println(";"),null},AbstractEmitterVisitor.prototype.visitReturnStmt=function(stmt,ctx){return ctx.print("return "),stmt.value.visitExpression(this,ctx),ctx.println(";"),null},AbstractEmitterVisitor.prototype.visitIfStmt=function(stmt,ctx){ctx.print("if ("),stmt.condition.visitExpression(this,ctx),ctx.print(") {");var hasElseCase=lang_1.isPresent(stmt.falseCase)&&stmt.falseCase.length>0;return stmt.trueCase.length<=1&&!hasElseCase?(ctx.print(" "),this.visitAllStatements(stmt.trueCase,ctx),ctx.removeEmptyLastLine(),ctx.print(" ")):(ctx.println(),ctx.incIndent(),this.visitAllStatements(stmt.trueCase,ctx),ctx.decIndent(),hasElseCase&&(ctx.println("} else {"),ctx.incIndent(),this.visitAllStatements(stmt.falseCase,ctx),ctx.decIndent())),ctx.println("}"),null},AbstractEmitterVisitor.prototype.visitThrowStmt=function(stmt,ctx){return ctx.print("throw "),stmt.error.visitExpression(this,ctx),ctx.println(";"),null},AbstractEmitterVisitor.prototype.visitCommentStmt=function(stmt,ctx){var lines=stmt.comment.split("\n");return lines.forEach(function(line){ctx.println("// "+line)}),null},AbstractEmitterVisitor.prototype.visitWriteVarExpr=function(expr,ctx){var lineWasEmpty=ctx.lineIsEmpty();return lineWasEmpty||ctx.print("("),ctx.print(expr.name+" = "),expr.value.visitExpression(this,ctx),lineWasEmpty||ctx.print(")"),null},AbstractEmitterVisitor.prototype.visitWriteKeyExpr=function(expr,ctx){var lineWasEmpty=ctx.lineIsEmpty();return lineWasEmpty||ctx.print("("),expr.receiver.visitExpression(this,ctx),ctx.print("["),expr.index.visitExpression(this,ctx),ctx.print("] = "),expr.value.visitExpression(this,ctx),lineWasEmpty||ctx.print(")"),null},AbstractEmitterVisitor.prototype.visitWritePropExpr=function(expr,ctx){var lineWasEmpty=ctx.lineIsEmpty();return lineWasEmpty||ctx.print("("),expr.receiver.visitExpression(this,ctx),ctx.print("."+expr.name+" = "),expr.value.visitExpression(this,ctx),lineWasEmpty||ctx.print(")"),null},AbstractEmitterVisitor.prototype.visitInvokeMethodExpr=function(expr,ctx){expr.receiver.visitExpression(this,ctx);var name=expr.name;return lang_1.isPresent(expr.builtin)&&(name=this.getBuiltinMethodName(expr.builtin),lang_1.isBlank(name))?null:(ctx.print("."+name+"("),this.visitAllExpressions(expr.args,ctx,","),ctx.print(")"),null)},AbstractEmitterVisitor.prototype.visitInvokeFunctionExpr=function(expr,ctx){return expr.fn.visitExpression(this,ctx),ctx.print("("),this.visitAllExpressions(expr.args,ctx,","),ctx.print(")"),null},AbstractEmitterVisitor.prototype.visitReadVarExpr=function(ast,ctx){var varName=ast.name;if(lang_1.isPresent(ast.builtin))switch(ast.builtin){case o.BuiltinVar.Super:varName="super";break;case o.BuiltinVar.This:varName="this";break;case o.BuiltinVar.CatchError:varName=exports.CATCH_ERROR_VAR.name;break;case o.BuiltinVar.CatchStack:varName=exports.CATCH_STACK_VAR.name;break;default:throw new exceptions_1.BaseException("Unknown builtin variable "+ast.builtin)}return ctx.print(varName),null},AbstractEmitterVisitor.prototype.visitInstantiateExpr=function(ast,ctx){return ctx.print("new "),ast.classExpr.visitExpression(this,ctx),ctx.print("("),this.visitAllExpressions(ast.args,ctx,","),ctx.print(")"),null},AbstractEmitterVisitor.prototype.visitLiteralExpr=function(ast,ctx){var value=ast.value;return lang_1.isString(value)?ctx.print(escapeSingleQuoteString(value,this._escapeDollarInStrings)):lang_1.isBlank(value)?ctx.print("null"):ctx.print(""+value),null},AbstractEmitterVisitor.prototype.visitConditionalExpr=function(ast,ctx){return ctx.print("("),ast.condition.visitExpression(this,ctx),ctx.print("? "),ast.trueCase.visitExpression(this,ctx),ctx.print(": "),ast.falseCase.visitExpression(this,ctx),ctx.print(")"),null},AbstractEmitterVisitor.prototype.visitNotExpr=function(ast,ctx){return ctx.print("!"),ast.condition.visitExpression(this,ctx),null},AbstractEmitterVisitor.prototype.visitBinaryOperatorExpr=function(ast,ctx){var opStr;switch(ast.operator){case o.BinaryOperator.Equals:opStr="==";break;case o.BinaryOperator.Identical:opStr="===";break;case o.BinaryOperator.NotEquals:opStr="!=";break;case o.BinaryOperator.NotIdentical:opStr="!==";break;case o.BinaryOperator.And:opStr="&&";break;case o.BinaryOperator.Or:opStr="||";break;case o.BinaryOperator.Plus:opStr="+";break;case o.BinaryOperator.Minus:opStr="-";break;case o.BinaryOperator.Divide:opStr="/";break;case o.BinaryOperator.Multiply:opStr="*";break;case o.BinaryOperator.Modulo:opStr="%";break;case o.BinaryOperator.Lower:opStr="<";break;case o.BinaryOperator.LowerEquals:opStr="<=";break;case o.BinaryOperator.Bigger:opStr=">";break;case o.BinaryOperator.BiggerEquals:opStr=">=";break;default:throw new exceptions_1.BaseException("Unknown operator "+ast.operator)}return ctx.print("("),ast.lhs.visitExpression(this,ctx),ctx.print(" "+opStr+" "),ast.rhs.visitExpression(this,ctx),ctx.print(")"),null},AbstractEmitterVisitor.prototype.visitReadPropExpr=function(ast,ctx){return ast.receiver.visitExpression(this,ctx),ctx.print("."),ctx.print(ast.name),null},AbstractEmitterVisitor.prototype.visitReadKeyExpr=function(ast,ctx){return ast.receiver.visitExpression(this,ctx),ctx.print("["),ast.index.visitExpression(this,ctx),ctx.print("]"),null},AbstractEmitterVisitor.prototype.visitLiteralArrayExpr=function(ast,ctx){var useNewLine=ast.entries.length>1;return ctx.print("[",useNewLine),ctx.incIndent(),this.visitAllExpressions(ast.entries,ctx,",",useNewLine),ctx.decIndent(),ctx.print("]",useNewLine),null},AbstractEmitterVisitor.prototype.visitLiteralMapExpr=function(ast,ctx){var _this=this,useNewLine=ast.entries.length>1;return ctx.print("{",useNewLine),ctx.incIndent(),this.visitAllObjects(function(entry){ctx.print(escapeSingleQuoteString(entry[0],_this._escapeDollarInStrings)+": "),entry[1].visitExpression(_this,ctx)},ast.entries,ctx,",",useNewLine),ctx.decIndent(),ctx.print("}",useNewLine),null},AbstractEmitterVisitor.prototype.visitAllExpressions=function(expressions,ctx,separator,newLine){var _this=this;void 0===newLine&&(newLine=!1),this.visitAllObjects(function(expr){return expr.visitExpression(_this,ctx)},expressions,ctx,separator,newLine)},AbstractEmitterVisitor.prototype.visitAllObjects=function(handler,expressions,ctx,separator,newLine){void 0===newLine&&(newLine=!1);for(var i=0;i0&&ctx.print(separator,newLine),handler(expressions[i]);newLine&&ctx.println()},AbstractEmitterVisitor.prototype.visitAllStatements=function(statements,ctx){var _this=this;statements.forEach(function(stmt){return stmt.visitStatement(_this,ctx)})},AbstractEmitterVisitor}();return exports.AbstractEmitterVisitor=AbstractEmitterVisitor,exports.escapeSingleQuoteString=escapeSingleQuoteString,module.exports}),$__System.registerDynamic("ac",["41","2b"],!0,function($__require,exports,module){"use strict";function getImportModulePath(moduleUrlStr,importedUrlStr,importEnv){var absolutePathPrefix=importEnv===ImportEnv.Dart?"package:":"",moduleUrl=_AssetUrl.parse(moduleUrlStr,!1),importedUrl=_AssetUrl.parse(importedUrlStr,!0);if(lang_1.isBlank(importedUrl))return importedUrlStr;if(moduleUrl.firstLevelDir==importedUrl.firstLevelDir&&moduleUrl.packageName==importedUrl.packageName)return getRelativePath(moduleUrl.modulePath,importedUrl.modulePath,importEnv);if("lib"==importedUrl.firstLevelDir)return""+absolutePathPrefix+importedUrl.packageName+"/"+importedUrl.modulePath;throw new exceptions_1.BaseException("Can't import url "+importedUrlStr+" from "+moduleUrlStr)}function getRelativePath(modulePath,importedPath,importEnv){for(var moduleParts=modulePath.split(_PATH_SEP_RE),importedParts=importedPath.split(_PATH_SEP_RE),longestPrefix=getLongestPathSegmentPrefix(moduleParts,importedParts),resultParts=[],goParentCount=moduleParts.length-1-longestPrefix,i=0;goParentCount>i;i++)resultParts.push("..");0>=goParentCount&&importEnv===ImportEnv.JS&&resultParts.push(".");for(var i=longestPrefix;iprefixSize&&arr1[prefixSize]==arr2[prefixSize];)prefixSize++;return prefixSize}var exceptions_1=$__require("41"),lang_1=$__require("2b"),_ASSET_URL_RE=/asset:([^\/]+)\/([^\/]+)\/(.+)/g,_PATH_SEP="/",_PATH_SEP_RE=/\//g;!function(ImportEnv){ImportEnv[ImportEnv.Dart=0]="Dart",ImportEnv[ImportEnv.JS=1]="JS"}(exports.ImportEnv||(exports.ImportEnv={}));var ImportEnv=exports.ImportEnv;exports.getImportModulePath=getImportModulePath;var _AssetUrl=function(){function _AssetUrl(packageName,firstLevelDir,modulePath){this.packageName=packageName,this.firstLevelDir=firstLevelDir,this.modulePath=modulePath}return _AssetUrl.parse=function(url,allowNonMatching){var match=lang_1.RegExpWrapper.firstMatch(_ASSET_URL_RE,url);if(lang_1.isPresent(match))return new _AssetUrl(match[1],match[2],match[3]);if(allowNonMatching)return null;throw new exceptions_1.BaseException("Url "+url+" is not a valid asset: url")},_AssetUrl}();return exports.getRelativePath=getRelativePath,exports.getLongestPathSegmentPrefix=getLongestPathSegmentPrefix,module.exports}),$__System.registerDynamic("ad",["61","2b","41","a9","ac"],!0,function($__require,exports,module){"use strict";function debugOutputAstAsTypeScript(ast){var asts,converter=new _TsEmitterVisitor(_debugModuleUrl),ctx=abstract_emitter_1.EmitterVisitorContext.createRoot([]);return asts=lang_1.isArray(ast)?ast:[ast],asts.forEach(function(ast){if(ast instanceof o.Statement)ast.visitStatement(converter,ctx);else if(ast instanceof o.Expression)ast.visitExpression(converter,ctx);else{if(!(ast instanceof o.Type))throw new exceptions_1.BaseException("Don't know how to print debug info for "+ast);ast.visitType(converter,ctx)}}),ctx.toSource()}var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},o=$__require("61"),lang_1=$__require("2b"),exceptions_1=$__require("41"),abstract_emitter_1=$__require("a9"),path_util_1=$__require("ac"),_debugModuleUrl="asset://debug/lib";exports.debugOutputAstAsTypeScript=debugOutputAstAsTypeScript;var TypeScriptEmitter=function(){function TypeScriptEmitter(){}return TypeScriptEmitter.prototype.emitStatements=function(moduleUrl,stmts,exportedVars){var converter=new _TsEmitterVisitor(moduleUrl),ctx=abstract_emitter_1.EmitterVisitorContext.createRoot(exportedVars);converter.visitAllStatements(stmts,ctx);var srcParts=[];return converter.importsWithPrefixes.forEach(function(prefix,importedModuleUrl){srcParts.push("imp"+("ort * as "+prefix+" from '"+path_util_1.getImportModulePath(moduleUrl,importedModuleUrl,path_util_1.ImportEnv.JS)+"';"))}),srcParts.push(ctx.toSource()),srcParts.join("\n")},TypeScriptEmitter}();exports.TypeScriptEmitter=TypeScriptEmitter;var _TsEmitterVisitor=function(_super){function _TsEmitterVisitor(_moduleUrl){_super.call(this,!1),this._moduleUrl=_moduleUrl,this.importsWithPrefixes=new Map}return __extends(_TsEmitterVisitor,_super),_TsEmitterVisitor.prototype.visitExternalExpr=function(ast,ctx){return this._visitIdentifier(ast.value,ast.typeParams,ctx),null},_TsEmitterVisitor.prototype.visitDeclareVarStmt=function(stmt,ctx){return ctx.isExportedVar(stmt.name)&&ctx.print("export "),stmt.hasModifier(o.StmtModifier.Final)?ctx.print("const"):ctx.print("var"),ctx.print(" "+stmt.name),lang_1.isPresent(stmt.type)&&(ctx.print(":"),stmt.type.visitType(this,ctx)),ctx.print(" = "),stmt.value.visitExpression(this,ctx),ctx.println(";"),null},_TsEmitterVisitor.prototype.visitCastExpr=function(ast,ctx){return ctx.print("(<"),ast.type.visitType(this,ctx),ctx.print(">"),ast.value.visitExpression(this,ctx),ctx.print(")"),null},_TsEmitterVisitor.prototype.visitDeclareClassStmt=function(stmt,ctx){var _this=this;return ctx.pushClass(stmt),ctx.isExportedVar(stmt.name)&&ctx.print("export "),ctx.print("class "+stmt.name),lang_1.isPresent(stmt.parent)&&(ctx.print(" extends "),stmt.parent.visitExpression(this,ctx)),ctx.println(" {"),ctx.incIndent(),stmt.fields.forEach(function(field){return _this._visitClassField(field,ctx)}),lang_1.isPresent(stmt.constructorMethod)&&this._visitClassConstructor(stmt,ctx),stmt.getters.forEach(function(getter){return _this._visitClassGetter(getter,ctx)}),stmt.methods.forEach(function(method){return _this._visitClassMethod(method,ctx)}),ctx.decIndent(),ctx.println("}"),ctx.popClass(),null},_TsEmitterVisitor.prototype._visitClassField=function(field,ctx){field.hasModifier(o.StmtModifier.Private)&&ctx.print("private "),ctx.print(field.name),lang_1.isPresent(field.type)?(ctx.print(":"),field.type.visitType(this,ctx)):ctx.print(": any"),ctx.println(";")},_TsEmitterVisitor.prototype._visitClassGetter=function(getter,ctx){getter.hasModifier(o.StmtModifier.Private)&&ctx.print("private "),ctx.print("get "+getter.name+"()"),lang_1.isPresent(getter.type)&&(ctx.print(":"),getter.type.visitType(this,ctx)),ctx.println(" {"),ctx.incIndent(),this.visitAllStatements(getter.body,ctx),ctx.decIndent(),ctx.println("}")},_TsEmitterVisitor.prototype._visitClassConstructor=function(stmt,ctx){ctx.print("constructor("),this._visitParams(stmt.constructorMethod.params,ctx),ctx.println(") {"),ctx.incIndent(),this.visitAllStatements(stmt.constructorMethod.body,ctx),ctx.decIndent(),ctx.println("}")},_TsEmitterVisitor.prototype._visitClassMethod=function(method,ctx){method.hasModifier(o.StmtModifier.Private)&&ctx.print("private "),ctx.print(method.name+"("),this._visitParams(method.params,ctx),ctx.print("):"),lang_1.isPresent(method.type)?method.type.visitType(this,ctx):ctx.print("void"),ctx.println(" {"),ctx.incIndent(),this.visitAllStatements(method.body,ctx),ctx.decIndent(),ctx.println("}")},_TsEmitterVisitor.prototype.visitFunctionExpr=function(ast,ctx){return ctx.print("("),this._visitParams(ast.params,ctx),ctx.print("):"),lang_1.isPresent(ast.type)?ast.type.visitType(this,ctx):ctx.print("void"),ctx.println(" => {"),ctx.incIndent(),this.visitAllStatements(ast.statements,ctx),ctx.decIndent(),ctx.print("}"),null},_TsEmitterVisitor.prototype.visitDeclareFunctionStmt=function(stmt,ctx){return ctx.isExportedVar(stmt.name)&&ctx.print("export "),ctx.print("function "+stmt.name+"("),this._visitParams(stmt.params,ctx),ctx.print("):"),lang_1.isPresent(stmt.type)?stmt.type.visitType(this,ctx):ctx.print("void"),ctx.println(" {"),ctx.incIndent(),this.visitAllStatements(stmt.statements,ctx),ctx.decIndent(),ctx.println("}"),null},_TsEmitterVisitor.prototype.visitTryCatchStmt=function(stmt,ctx){ctx.println("try {"),ctx.incIndent(),this.visitAllStatements(stmt.bodyStmts,ctx),ctx.decIndent(),ctx.println("} catch ("+abstract_emitter_1.CATCH_ERROR_VAR.name+") {"),ctx.incIndent();var catchStmts=[abstract_emitter_1.CATCH_STACK_VAR.set(abstract_emitter_1.CATCH_ERROR_VAR.prop("stack")).toDeclStmt(null,[o.StmtModifier.Final])].concat(stmt.catchStmts);return this.visitAllStatements(catchStmts,ctx),ctx.decIndent(),ctx.println("}"),null},_TsEmitterVisitor.prototype.visitBuiltintType=function(type,ctx){var typeStr;switch(type.name){case o.BuiltinTypeName.Bool:typeStr="boolean";break;case o.BuiltinTypeName.Dynamic:typeStr="any";break;case o.BuiltinTypeName.Function:typeStr="Function";break;case o.BuiltinTypeName.Number:typeStr="number";break;case o.BuiltinTypeName.Int:typeStr="number";break;case o.BuiltinTypeName.String:typeStr="string";break;default:throw new exceptions_1.BaseException("Unsupported builtin type "+type.name)}return ctx.print(typeStr),null},_TsEmitterVisitor.prototype.visitExternalType=function(ast,ctx){return this._visitIdentifier(ast.value,ast.typeParams,ctx),null},_TsEmitterVisitor.prototype.visitArrayType=function(type,ctx){return lang_1.isPresent(type.of)?type.of.visitType(this,ctx):ctx.print("any"),ctx.print("[]"),null},_TsEmitterVisitor.prototype.visitMapType=function(type,ctx){return ctx.print("{[key: string]:"),lang_1.isPresent(type.valueType)?type.valueType.visitType(this,ctx):ctx.print("any"),ctx.print("}"),null},_TsEmitterVisitor.prototype.getBuiltinMethodName=function(method){var name;switch(method){case o.BuiltinMethod.ConcatArray:name="concat";break;case o.BuiltinMethod.SubscribeObservable:name="subscribe";break;case o.BuiltinMethod.bind:name="bind";break;default:throw new exceptions_1.BaseException("Unknown builtin method: "+method)}return name},_TsEmitterVisitor.prototype._visitParams=function(params,ctx){var _this=this;this.visitAllObjects(function(param){ctx.print(param.name),lang_1.isPresent(param.type)&&(ctx.print(":"),param.type.visitType(_this,ctx))},params,ctx,",")},_TsEmitterVisitor.prototype._visitIdentifier=function(value,typeParams,ctx){var _this=this;if(lang_1.isPresent(value.moduleUrl)&&value.moduleUrl!=this._moduleUrl){var prefix=this.importsWithPrefixes.get(value.moduleUrl);lang_1.isBlank(prefix)&&(prefix="import"+this.importsWithPrefixes.size,this.importsWithPrefixes.set(value.moduleUrl,prefix)),ctx.print(prefix+".")}ctx.print(value.name),lang_1.isPresent(typeParams)&&typeParams.length>0&&(ctx.print("<"),this.visitAllObjects(function(type){return type.visitType(_this,ctx)},typeParams,ctx,","),ctx.print(">"))},_TsEmitterVisitor}(abstract_emitter_1.AbstractEmitterVisitor);return module.exports}),$__System.registerDynamic("ae",["2b","8e","61","90","41","38","ab","ad"],!0,function($__require,exports,module){"use strict";function interpretStatements(statements,resultVar,instanceFactory){var stmtsWithReturn=statements.concat([new o.ReturnStatement(o.variable(resultVar))]),ctx=new _ExecutionContext(null,null,null,null,new Map,new Map,new Map,new Map,instanceFactory),visitor=new StatementInterpreter,result=visitor.visitAllStatements(stmtsWithReturn,ctx);return lang_1.isPresent(result)?result.value:null}function isDynamicInstance(instance){return lang_1.IS_DART?instance instanceof DynamicInstance:lang_1.isPresent(instance)&&lang_1.isPresent(instance.props)&&lang_1.isPresent(instance.getters)&&lang_1.isPresent(instance.methods)}function _executeFunctionStatements(varNames,varValues,statements,ctx,visitor){for(var childCtx=ctx.createChildWihtLocalVars(),i=0;irhs();case o.BinaryOperator.BiggerEquals:return lhs()>=rhs();default:throw new exceptions_1.BaseException("Unknown operator "+ast.operator);
}},StatementInterpreter.prototype.visitReadPropExpr=function(ast,ctx){var result,receiver=ast.receiver.visitExpression(this,ctx);if(isDynamicInstance(receiver)){var di=receiver;result=di.props.has(ast.name)?di.props.get(ast.name):di.getters.has(ast.name)?di.getters.get(ast.name)():di.methods.has(ast.name)?di.methods.get(ast.name):reflection_1.reflector.getter(ast.name)(receiver)}else result=reflection_1.reflector.getter(ast.name)(receiver);return result},StatementInterpreter.prototype.visitReadKeyExpr=function(ast,ctx){var receiver=ast.receiver.visitExpression(this,ctx),prop=ast.index.visitExpression(this,ctx);return receiver[prop]},StatementInterpreter.prototype.visitLiteralArrayExpr=function(ast,ctx){return this.visitAllExpressions(ast.entries,ctx)},StatementInterpreter.prototype.visitLiteralMapExpr=function(ast,ctx){var _this=this,result={};return ast.entries.forEach(function(entry){return result[entry[0]]=entry[1].visitExpression(_this,ctx)}),result},StatementInterpreter.prototype.visitAllExpressions=function(expressions,ctx){var _this=this;return expressions.map(function(expr){return expr.visitExpression(_this,ctx)})},StatementInterpreter.prototype.visitAllStatements=function(statements,ctx){for(var i=0;ic?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},lang_1=$__require("2b"),collection_1=$__require("38"),view_type_1=$__require("70"),StaticNodeDebugInfo=function(){function StaticNodeDebugInfo(providerTokens,componentToken,refTokens){this.providerTokens=providerTokens,this.componentToken=componentToken,this.refTokens=refTokens}return StaticNodeDebugInfo=__decorate([lang_1.CONST(),__metadata("design:paramtypes",[Array,Object,Object])],StaticNodeDebugInfo)}();exports.StaticNodeDebugInfo=StaticNodeDebugInfo;var DebugContext=function(){function DebugContext(_view,_nodeIndex,_tplRow,_tplCol){this._view=_view,this._nodeIndex=_nodeIndex,this._tplRow=_tplRow,this._tplCol=_tplCol}return Object.defineProperty(DebugContext.prototype,"_staticNodeInfo",{get:function(){return lang_1.isPresent(this._nodeIndex)?this._view.staticNodeDebugInfos[this._nodeIndex]:null},enumerable:!0,configurable:!0}),Object.defineProperty(DebugContext.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(DebugContext.prototype,"component",{get:function(){var staticNodeInfo=this._staticNodeInfo;return lang_1.isPresent(staticNodeInfo)&&lang_1.isPresent(staticNodeInfo.componentToken)?this.injector.get(staticNodeInfo.componentToken):null},enumerable:!0,configurable:!0}),Object.defineProperty(DebugContext.prototype,"componentRenderElement",{get:function(){for(var componentView=this._view;lang_1.isPresent(componentView.declarationAppElement)&&componentView.type!==view_type_1.ViewType.COMPONENT;)componentView=componentView.declarationAppElement.parentView;return lang_1.isPresent(componentView.declarationAppElement)?componentView.declarationAppElement.nativeElement:null},enumerable:!0,configurable:!0}),Object.defineProperty(DebugContext.prototype,"injector",{get:function(){return this._view.injector(this._nodeIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(DebugContext.prototype,"renderNode",{get:function(){return lang_1.isPresent(this._nodeIndex)&&lang_1.isPresent(this._view.allNodes)?this._view.allNodes[this._nodeIndex]:null},enumerable:!0,configurable:!0}),Object.defineProperty(DebugContext.prototype,"providerTokens",{get:function(){var staticNodeInfo=this._staticNodeInfo;return lang_1.isPresent(staticNodeInfo)?staticNodeInfo.providerTokens:null},enumerable:!0,configurable:!0}),Object.defineProperty(DebugContext.prototype,"source",{get:function(){return this._view.componentType.templateUrl+":"+this._tplRow+":"+this._tplCol},enumerable:!0,configurable:!0}),Object.defineProperty(DebugContext.prototype,"locals",{get:function(){var _this=this,varValues={};return collection_1.ListWrapper.forEachWithIndex(this._view.staticNodeDebugInfos,function(staticNodeInfo,nodeIndex){var refs=staticNodeInfo.refTokens;collection_1.StringMapWrapper.forEach(refs,function(refToken,refName){var varValue;varValue=lang_1.isBlank(refToken)?lang_1.isPresent(_this._view.allNodes)?_this._view.allNodes[nodeIndex]:null:_this._view.injectorGet(refToken,nodeIndex,null),varValues[refName]=varValue})}),collection_1.StringMapWrapper.forEach(this._view.locals,function(localValue,localName){varValues[localName]=localValue}),varValues},enumerable:!0,configurable:!0}),DebugContext}();return exports.DebugContext=DebugContext,module.exports}),$__System.registerDynamic("af",["2b","a6"],!0,function($__require,exports,module){"use strict";var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},lang_1=$__require("2b"),injector_1=$__require("a6"),_UNDEFINED=lang_1.CONST_EXPR(new Object),ElementInjector=function(_super){function ElementInjector(_view,_nodeIndex){_super.call(this),this._view=_view,this._nodeIndex=_nodeIndex}return __extends(ElementInjector,_super),ElementInjector.prototype.get=function(token,notFoundValue){void 0===notFoundValue&&(notFoundValue=injector_1.THROW_IF_NOT_FOUND);var result=_UNDEFINED;return result===_UNDEFINED&&(result=this._view.injectorGet(token,this._nodeIndex,_UNDEFINED)),result===_UNDEFINED&&(result=this._view.parentInjector.get(token,notFoundValue)),result},ElementInjector}(injector_1.Injector);return exports.ElementInjector=ElementInjector,module.exports}),$__System.registerDynamic("9f",["38","a1","2b","8e","b0","70","87","74","b1","b2","a0","af"],!0,function($__require,exports,module){"use strict";function _findLastRenderNode(node){var lastNode;if(node instanceof element_1.AppElement){var appEl=node;if(lastNode=appEl.nativeElement,lang_1.isPresent(appEl.nestedViews))for(var i=appEl.nestedViews.length-1;i>=0;i--){var nestedView=appEl.nestedViews[i];nestedView.rootNodesOrAppElements.length>0&&(lastNode=_findLastRenderNode(nestedView.rootNodesOrAppElements[nestedView.rootNodesOrAppElements.length-1]))}}else lastNode=node;return lastNode}var collection_1=$__require("38"),element_1=$__require("a1"),lang_1=$__require("2b"),async_1=$__require("8e"),view_ref_1=$__require("b0"),view_type_1=$__require("70"),view_utils_1=$__require("87"),change_detection_1=$__require("74"),profile_1=$__require("b1"),exceptions_1=$__require("b2"),debug_context_1=$__require("a0"),element_injector_1=$__require("af"),EMPTY_CONTEXT=lang_1.CONST_EXPR(new Object),_scope_check=profile_1.wtfCreateScope("AppView#check(ascii id)"),AppView=function(){function AppView(clazz,componentType,type,locals,viewUtils,parentInjector,declarationAppElement,cdMode,staticNodeDebugInfos){this.clazz=clazz,this.componentType=componentType,this.type=type,this.locals=locals,this.viewUtils=viewUtils,this.parentInjector=parentInjector,this.declarationAppElement=declarationAppElement,this.cdMode=cdMode,this.staticNodeDebugInfos=staticNodeDebugInfos,this.contentChildren=[],this.viewChildren=[],this.viewContainerElement=null,this.cdState=change_detection_1.ChangeDetectorState.NeverChecked,this.context=null,this.destroyed=!1,this._currentDebugContext=null,this.ref=new view_ref_1.ViewRef_(this),type===view_type_1.ViewType.COMPONENT||type===view_type_1.ViewType.HOST?this.renderer=viewUtils.renderComponent(componentType):this.renderer=declarationAppElement.parentView.renderer}return AppView.prototype.create=function(givenProjectableNodes,rootSelectorOrNode){var context,projectableNodes;switch(this.type){case view_type_1.ViewType.COMPONENT:context=this.declarationAppElement.component,projectableNodes=view_utils_1.ensureSlotCount(givenProjectableNodes,this.componentType.slotCount);break;case view_type_1.ViewType.EMBEDDED:context=this.declarationAppElement.parentView.context,projectableNodes=this.declarationAppElement.parentView.projectableNodes;break;case view_type_1.ViewType.HOST:context=EMPTY_CONTEXT,projectableNodes=givenProjectableNodes}if(this._hasExternalHostElement=lang_1.isPresent(rootSelectorOrNode),this.context=context,this.projectableNodes=projectableNodes,!this.debugMode)return this.createInternal(rootSelectorOrNode);this._resetDebug();try{return this.createInternal(rootSelectorOrNode)}catch(e){throw this._rethrowWithContext(e,e.stack),e}},AppView.prototype.createInternal=function(rootSelectorOrNode){return null},AppView.prototype.init=function(rootNodesOrAppElements,allNodes,disposables,subscriptions){this.rootNodesOrAppElements=rootNodesOrAppElements,this.allNodes=allNodes,this.disposables=disposables,this.subscriptions=subscriptions,this.type===view_type_1.ViewType.COMPONENT&&(this.declarationAppElement.parentView.viewChildren.push(this),this.renderParent=this.declarationAppElement.parentView,this.dirtyParentQueriesInternal())},AppView.prototype.selectOrCreateHostElement=function(elementName,rootSelectorOrNode,debugCtx){var hostElement;return hostElement=lang_1.isPresent(rootSelectorOrNode)?this.renderer.selectRootElement(rootSelectorOrNode,debugCtx):this.renderer.createElement(null,elementName,debugCtx)},AppView.prototype.injectorGet=function(token,nodeIndex,notFoundResult){if(!this.debugMode)return this.injectorGetInternal(token,nodeIndex,notFoundResult);this._resetDebug();try{return this.injectorGetInternal(token,nodeIndex,notFoundResult)}catch(e){throw this._rethrowWithContext(e,e.stack),e}},AppView.prototype.injectorGetInternal=function(token,nodeIndex,notFoundResult){return notFoundResult},AppView.prototype.injector=function(nodeIndex){return lang_1.isPresent(nodeIndex)?new element_injector_1.ElementInjector(this,nodeIndex):this.parentInjector},AppView.prototype.destroy=function(){this._hasExternalHostElement?this.renderer.detachView(this.flatRootNodes):lang_1.isPresent(this.viewContainerElement)&&this.viewContainerElement.detachView(this.viewContainerElement.nestedViews.indexOf(this)),this._destroyRecurse()},AppView.prototype._destroyRecurse=function(){if(!this.destroyed){for(var children=this.contentChildren,i=0;i0?this.rootNodesOrAppElements[this.rootNodesOrAppElements.length-1]:null;return _findLastRenderNode(lastNode)},enumerable:!0,configurable:!0}),AppView.prototype.hasLocal=function(contextName){return collection_1.StringMapWrapper.contains(this.locals,contextName)},AppView.prototype.setLocal=function(contextName,value){this.locals[contextName]=value},AppView.prototype.dirtyParentQueriesInternal=function(){},AppView.prototype.addRenderContentChild=function(view){this.contentChildren.push(view),view.renderParent=this,view.dirtyParentQueriesInternal()},AppView.prototype.removeContentChild=function(view){collection_1.ListWrapper.remove(this.contentChildren,view),view.dirtyParentQueriesInternal(),view.renderParent=null},AppView.prototype.detectChanges=function(throwOnChange){var s=_scope_check(this.clazz);if(this.cdMode!==change_detection_1.ChangeDetectionStrategy.Detached&&this.cdMode!==change_detection_1.ChangeDetectionStrategy.Checked&&this.cdState!==change_detection_1.ChangeDetectorState.Errored){if(this.destroyed&&this.throwDestroyedError("detectChanges"),this.debugMode){this._resetDebug();try{this.detectChangesInternal(throwOnChange)}catch(e){throw this._rethrowWithContext(e,e.stack),e}}else this.detectChangesInternal(throwOnChange);this.cdMode===change_detection_1.ChangeDetectionStrategy.CheckOnce&&(this.cdMode=change_detection_1.ChangeDetectionStrategy.Checked),this.cdState=change_detection_1.ChangeDetectorState.CheckedBefore,profile_1.wtfLeave(s)}},AppView.prototype.detectChangesInternal=function(throwOnChange){this.detectContentChildrenChanges(throwOnChange),this.detectViewChildrenChanges(throwOnChange)},AppView.prototype.detectContentChildrenChanges=function(throwOnChange){for(var i=0;ic?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},lang_1=$__require("2b"),exceptions_1=$__require("41"),collection_1=$__require("38"),async_1=$__require("8e"),compile_metadata_1=$__require("60"),di_1=$__require("3a"),style_compiler_1=$__require("65"),view_compiler_1=$__require("7d"),template_parser_1=$__require("81"),directive_normalizer_1=$__require("8d"),runtime_metadata_1=$__require("97"),component_factory_1=$__require("62"),config_1=$__require("7e"),ir=$__require("61"),output_jit_1=$__require("aa"),output_interpreter_1=$__require("ae"),interpretive_view_1=$__require("b3"),xhr_1=$__require("40"),RuntimeCompiler=function(){function RuntimeCompiler(_runtimeMetadataResolver,_templateNormalizer,_templateParser,_styleCompiler,_viewCompiler,_xhr,_genConfig){this._runtimeMetadataResolver=_runtimeMetadataResolver,this._templateNormalizer=_templateNormalizer,this._templateParser=_templateParser,this._styleCompiler=_styleCompiler,this._viewCompiler=_viewCompiler,this._xhr=_xhr,this._genConfig=_genConfig,this._styleCache=new Map,this._hostCacheKeys=new Map,this._compiledTemplateCache=new Map,this._compiledTemplateDone=new Map}return RuntimeCompiler.prototype.resolveComponent=function(componentType){var compMeta=this._runtimeMetadataResolver.getDirectiveMetadata(componentType),hostCacheKey=this._hostCacheKeys.get(componentType);if(lang_1.isBlank(hostCacheKey)){hostCacheKey=new Object,this._hostCacheKeys.set(componentType,hostCacheKey),assertComponent(compMeta);var hostMeta=compile_metadata_1.createHostComponentMeta(compMeta.type,compMeta.selector);this._loadAndCompileComponent(hostCacheKey,hostMeta,[compMeta],[],[])}return this._compiledTemplateDone.get(hostCacheKey).then(function(compiledTemplate){return new component_factory_1.ComponentFactory(compMeta.selector,compiledTemplate.viewFactory,componentType)})},RuntimeCompiler.prototype.clearCache=function(){this._styleCache.clear(),this._compiledTemplateCache.clear(),this._compiledTemplateDone.clear(),this._hostCacheKeys.clear()},RuntimeCompiler.prototype._loadAndCompileComponent=function(cacheKey,compMeta,viewDirectives,pipes,compilingComponentsPath){var _this=this,compiledTemplate=this._compiledTemplateCache.get(cacheKey),done=this._compiledTemplateDone.get(cacheKey);return lang_1.isBlank(compiledTemplate)&&(compiledTemplate=new CompiledTemplate,this._compiledTemplateCache.set(cacheKey,compiledTemplate),done=async_1.PromiseWrapper.all([this._compileComponentStyles(compMeta)].concat(viewDirectives.map(function(dirMeta){return _this._templateNormalizer.normalizeDirective(dirMeta)}))).then(function(stylesAndNormalizedViewDirMetas){var normalizedViewDirMetas=stylesAndNormalizedViewDirMetas.slice(1),styles=stylesAndNormalizedViewDirMetas[0],parsedTemplate=_this._templateParser.parse(compMeta,compMeta.template.template,normalizedViewDirMetas,pipes,compMeta.type.name),childPromises=[];return compiledTemplate.init(_this._compileComponent(compMeta,parsedTemplate,styles,pipes,compilingComponentsPath,childPromises)),async_1.PromiseWrapper.all(childPromises).then(function(_){return compiledTemplate})}),this._compiledTemplateDone.set(cacheKey,done)),compiledTemplate},RuntimeCompiler.prototype._compileComponent=function(compMeta,parsedTemplate,styles,pipes,compilingComponentsPath,childPromises){var _this=this,compileResult=this._viewCompiler.compileComponent(compMeta,parsedTemplate,new ir.ExternalExpr(new compile_metadata_1.CompileIdentifierMetadata({runtime:styles})),pipes);compileResult.dependencies.forEach(function(dep){var childCompilingComponentsPath=collection_1.ListWrapper.clone(compilingComponentsPath),childCacheKey=dep.comp.type.runtime,childViewDirectives=_this._runtimeMetadataResolver.getViewDirectivesMetadata(dep.comp.type.runtime),childViewPipes=_this._runtimeMetadataResolver.getViewPipesMetadata(dep.comp.type.runtime),childIsRecursive=collection_1.ListWrapper.contains(childCompilingComponentsPath,childCacheKey);childCompilingComponentsPath.push(childCacheKey);var childComp=_this._loadAndCompileComponent(dep.comp.type.runtime,dep.comp,childViewDirectives,childViewPipes,childCompilingComponentsPath);dep.factoryPlaceholder.runtime=childComp.proxyViewFactory,dep.factoryPlaceholder.name="viewFactory_"+dep.comp.type.name,childIsRecursive||childPromises.push(_this._compiledTemplateDone.get(childCacheKey))});var factory;return factory=lang_1.IS_DART||!this._genConfig.useJit?output_interpreter_1.interpretStatements(compileResult.statements,compileResult.viewFactoryVar,new interpretive_view_1.InterpretiveAppViewInstanceFactory):output_jit_1.jitStatements(compMeta.type.name+".template.js",compileResult.statements,compileResult.viewFactoryVar)},RuntimeCompiler.prototype._compileComponentStyles=function(compMeta){var compileResult=this._styleCompiler.compileComponent(compMeta);return this._resolveStylesCompileResult(compMeta.type.name,compileResult)},RuntimeCompiler.prototype._resolveStylesCompileResult=function(sourceUrl,result){var _this=this,promises=result.dependencies.map(function(dep){return _this._loadStylesheetDep(dep)});return async_1.PromiseWrapper.all(promises).then(function(cssTexts){for(var nestedCompileResultPromises=[],i=0;i",harr:"โ",hArr:"โ",hearts:"โฅ",hellip:"โฆ",Iacute:"ร",iacute:"รญ",Icirc:"ร",icirc:"รฎ",iexcl:"ยก",Igrave:"ร",igrave:"รฌ",image:"โ",infin:"โ","int":"โซ",Iota:"ฮ",iota:"ฮน",iquest:"ยฟ",isin:"โ",Iuml:"ร",iuml:"รฏ",Kappa:"ฮ",kappa:"ฮบ",Lambda:"ฮ",lambda:"ฮป",lang:"โจ",laquo:"ยซ",larr:"โ",lArr:"โ",lceil:"โ",ldquo:"โ",le:"โค",lfloor:"โ",lowast:"โ",loz:"โ",lrm:"โ",lsaquo:"โน",lsquo:"โ",lt:"<",macr:"ยฏ",mdash:"โ",micro:"ยต",middot:"ยท",minus:"โ",Mu:"ฮ",mu:"ฮผ",nabla:"โ",nbsp:"ย ",ndash:"โ",ne:"โ ",ni:"โ",not:"ยฌ",notin:"โ",nsub:"โ",Ntilde:"ร",ntilde:"รฑ",Nu:"ฮ",nu:"ฮฝ",Oacute:"ร",oacute:"รณ",Ocirc:"ร",ocirc:"รด",OElig:"ล",oelig:"ล",Ograve:"ร",ograve:"รฒ",oline:"โพ",Omega:"ฮฉ",omega:"ฯ",Omicron:"ฮ",omicron:"ฮฟ",oplus:"โ",or:"โจ",ordf:"ยช",ordm:"ยบ",Oslash:"ร",oslash:"รธ",Otilde:"ร",otilde:"รต",otimes:"โ",Ouml:"ร",ouml:"รถ",para:"ยถ",permil:"โฐ",perp:"โฅ",Phi:"ฮฆ",phi:"ฯ",Pi:"ฮ ",pi:"ฯ",piv:"ฯ",plusmn:"ยฑ",pound:"ยฃ",prime:"โฒ",Prime:"โณ",prod:"โ",prop:"โ",Psi:"ฮจ",psi:"ฯ",quot:'"',radic:"โ",rang:"โฉ",raquo:"ยป",rarr:"โ",rArr:"โ",rceil:"โ",rdquo:"โ",real:"โ",reg:"ยฎ",rfloor:"โ",Rho:"ฮก",rho:"ฯ",rlm:"โ",rsaquo:"โบ",rsquo:"โ",sbquo:"โ",Scaron:"ล ",scaron:"ลก",sdot:"โ
",sect:"ยง",shy:"ยญ",Sigma:"ฮฃ",sigma:"ฯ",sigmaf:"ฯ",sim:"โผ",spades:"โ ",sub:"โ",sube:"โ",sum:"โ",sup:"โ",sup1:"ยน",sup2:"ยฒ",sup3:"ยณ",supe:"โ",szlig:"ร",Tau:"ฮค",tau:"ฯ",there4:"โด",Theta:"ฮ",theta:"ฮธ",thetasym:"ฯ",thinsp:"โ",THORN:"ร",thorn:"รพ",tilde:"ห",times:"ร",trade:"โข",Uacute:"ร",uacute:"รบ",uarr:"โ",uArr:"โ",Ucirc:"ร",ucirc:"รป",Ugrave:"ร",ugrave:"รน",uml:"ยจ",upsih:"ฯ",Upsilon:"ฮฅ",upsilon:"ฯ
",Uuml:"ร",uuml:"รผ",weierp:"โ",Xi:"ฮ",xi:"ฮพ",Yacute:"ร",yacute:"รฝ",yen:"ยฅ",yuml:"รฟ",Yuml:"ลธ",Zeta:"ฮ",zeta:"ฮถ",zwj:"โ",zwnj:"โ"}),function(HtmlTagContentType){HtmlTagContentType[HtmlTagContentType.RAW_TEXT=0]="RAW_TEXT",HtmlTagContentType[HtmlTagContentType.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",HtmlTagContentType[HtmlTagContentType.PARSABLE_DATA=2]="PARSABLE_DATA"}(exports.HtmlTagContentType||(exports.HtmlTagContentType={}));var HtmlTagContentType=exports.HtmlTagContentType,HtmlTagDefinition=function(){function HtmlTagDefinition(_a){var _this=this,_b=void 0===_a?{}:_a,closedByChildren=_b.closedByChildren,requiredParents=_b.requiredParents,implicitNamespacePrefix=_b.implicitNamespacePrefix,contentType=_b.contentType,closedByParent=_b.closedByParent,isVoid=_b.isVoid,ignoreFirstLf=_b.ignoreFirstLf;this.closedByChildren={},this.closedByParent=!1,lang_1.isPresent(closedByChildren)&&closedByChildren.length>0&&closedByChildren.forEach(function(tagName){return _this.closedByChildren[tagName]=!0}),this.isVoid=lang_1.normalizeBool(isVoid),this.closedByParent=lang_1.normalizeBool(closedByParent)||this.isVoid,lang_1.isPresent(requiredParents)&&requiredParents.length>0&&(this.requiredParents={},this.parentToAdd=requiredParents[0],requiredParents.forEach(function(tagName){return _this.requiredParents[tagName]=!0})),this.implicitNamespacePrefix=implicitNamespacePrefix,this.contentType=lang_1.isPresent(contentType)?contentType:HtmlTagContentType.PARSABLE_DATA,this.ignoreFirstLf=lang_1.normalizeBool(ignoreFirstLf)}return HtmlTagDefinition.prototype.requireExtraParent=function(currentParent){if(lang_1.isBlank(this.requiredParents))return!1;if(lang_1.isBlank(currentParent))return!0;var lcParent=currentParent.toLowerCase();return 1!=this.requiredParents[lcParent]&&"template"!=lcParent;
},HtmlTagDefinition.prototype.isClosedByChild=function(name){return this.isVoid||lang_1.normalizeBool(this.closedByChildren[name.toLowerCase()])},HtmlTagDefinition}();exports.HtmlTagDefinition=HtmlTagDefinition;var TAG_DEFINITIONS={base:new HtmlTagDefinition({isVoid:!0}),meta:new HtmlTagDefinition({isVoid:!0}),area:new HtmlTagDefinition({isVoid:!0}),embed:new HtmlTagDefinition({isVoid:!0}),link:new HtmlTagDefinition({isVoid:!0}),img:new HtmlTagDefinition({isVoid:!0}),input:new HtmlTagDefinition({isVoid:!0}),param:new HtmlTagDefinition({isVoid:!0}),hr:new HtmlTagDefinition({isVoid:!0}),br:new HtmlTagDefinition({isVoid:!0}),source:new HtmlTagDefinition({isVoid:!0}),track:new HtmlTagDefinition({isVoid:!0}),wbr:new HtmlTagDefinition({isVoid:!0}),p:new HtmlTagDefinition({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new HtmlTagDefinition({closedByChildren:["tbody","tfoot"]}),tbody:new HtmlTagDefinition({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new HtmlTagDefinition({closedByChildren:["tbody"],closedByParent:!0}),tr:new HtmlTagDefinition({closedByChildren:["tr"],requiredParents:["tbody","tfoot","thead"],closedByParent:!0}),td:new HtmlTagDefinition({closedByChildren:["td","th"],closedByParent:!0}),th:new HtmlTagDefinition({closedByChildren:["td","th"],closedByParent:!0}),col:new HtmlTagDefinition({requiredParents:["colgroup"],isVoid:!0}),svg:new HtmlTagDefinition({implicitNamespacePrefix:"svg"}),math:new HtmlTagDefinition({implicitNamespacePrefix:"math"}),li:new HtmlTagDefinition({closedByChildren:["li"],closedByParent:!0}),dt:new HtmlTagDefinition({closedByChildren:["dt","dd"]}),dd:new HtmlTagDefinition({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new HtmlTagDefinition({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new HtmlTagDefinition({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new HtmlTagDefinition({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new HtmlTagDefinition({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new HtmlTagDefinition({closedByChildren:["optgroup"],closedByParent:!0}),option:new HtmlTagDefinition({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new HtmlTagDefinition({ignoreFirstLf:!0}),listing:new HtmlTagDefinition({ignoreFirstLf:!0}),style:new HtmlTagDefinition({contentType:HtmlTagContentType.RAW_TEXT}),script:new HtmlTagDefinition({contentType:HtmlTagContentType.RAW_TEXT}),title:new HtmlTagDefinition({contentType:HtmlTagContentType.ESCAPABLE_RAW_TEXT}),textarea:new HtmlTagDefinition({contentType:HtmlTagContentType.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})},DEFAULT_TAG_DEFINITION=new HtmlTagDefinition;exports.getHtmlTagDefinition=getHtmlTagDefinition;var NS_PREFIX_RE=/^@([^:]+):(.+)/g;return exports.splitNsName=splitNsName,exports.getNsPrefix=getNsPrefix,exports.mergeNsAndName=mergeNsAndName,module.exports}),$__System.registerDynamic("89",[],!0,function($__require,exports,module){"use strict";var ElementSchemaRegistry=function(){function ElementSchemaRegistry(){}return ElementSchemaRegistry.prototype.hasProperty=function(tagName,propName){return!0},ElementSchemaRegistry.prototype.getMappedPropName=function(propName){return propName},ElementSchemaRegistry}();return exports.ElementSchemaRegistry=ElementSchemaRegistry,module.exports}),$__System.registerDynamic("b5",["3a","2b","38","37","86","89"],!0,function($__require,exports,module){"use strict";var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},__decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},di_1=$__require("3a"),lang_1=$__require("2b"),collection_1=$__require("38"),dom_adapter_1=$__require("37"),html_tags_1=$__require("86"),element_schema_registry_1=$__require("89"),NAMESPACE_URIS=lang_1.CONST_EXPR({xlink:"http://www.w3.org/1999/xlink",svg:"http://www.w3.org/2000/svg"}),DomElementSchemaRegistry=function(_super){function DomElementSchemaRegistry(){_super.apply(this,arguments),this._protoElements=new Map}return __extends(DomElementSchemaRegistry,_super),DomElementSchemaRegistry.prototype._getProtoElement=function(tagName){var element=this._protoElements.get(tagName);if(lang_1.isBlank(element)){var nsAndName=html_tags_1.splitNsName(tagName);element=lang_1.isPresent(nsAndName[0])?dom_adapter_1.DOM.createElementNS(NAMESPACE_URIS[nsAndName[0]],nsAndName[1]):dom_adapter_1.DOM.createElement(nsAndName[1]),this._protoElements.set(tagName,element)}return element},DomElementSchemaRegistry.prototype.hasProperty=function(tagName,propName){if(-1!==tagName.indexOf("-"))return!0;var elm=this._getProtoElement(tagName);return dom_adapter_1.DOM.hasProperty(elm,propName)},DomElementSchemaRegistry.prototype.getMappedPropName=function(propName){var mappedPropName=collection_1.StringMapWrapper.get(dom_adapter_1.DOM.attrToPropMap,propName);return lang_1.isPresent(mappedPropName)?mappedPropName:propName},DomElementSchemaRegistry=__decorate([di_1.Injectable(),__metadata("design:paramtypes",[])],DomElementSchemaRegistry)}(element_schema_registry_1.ElementSchemaRegistry);return exports.DomElementSchemaRegistry=DomElementSchemaRegistry,module.exports}),$__System.registerDynamic("83",["38"],!0,function($__require,exports,module){"use strict";var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},collection_1=$__require("38"),AST=function(){function AST(){}return AST.prototype.visit=function(visitor,context){return void 0===context&&(context=null),null},AST.prototype.toString=function(){return"AST"},AST}();exports.AST=AST;var Quote=function(_super){function Quote(prefix,uninterpretedExpression,location){_super.call(this),this.prefix=prefix,this.uninterpretedExpression=uninterpretedExpression,this.location=location}return __extends(Quote,_super),Quote.prototype.visit=function(visitor,context){return void 0===context&&(context=null),visitor.visitQuote(this,context)},Quote.prototype.toString=function(){return"Quote"},Quote}(AST);exports.Quote=Quote;var EmptyExpr=function(_super){function EmptyExpr(){_super.apply(this,arguments)}return __extends(EmptyExpr,_super),EmptyExpr.prototype.visit=function(visitor,context){void 0===context&&(context=null)},EmptyExpr}(AST);exports.EmptyExpr=EmptyExpr;var ImplicitReceiver=function(_super){function ImplicitReceiver(){_super.apply(this,arguments)}return __extends(ImplicitReceiver,_super),ImplicitReceiver.prototype.visit=function(visitor,context){return void 0===context&&(context=null),visitor.visitImplicitReceiver(this,context)},ImplicitReceiver}(AST);exports.ImplicitReceiver=ImplicitReceiver;var Chain=function(_super){function Chain(expressions){_super.call(this),this.expressions=expressions}return __extends(Chain,_super),Chain.prototype.visit=function(visitor,context){return void 0===context&&(context=null),visitor.visitChain(this,context)},Chain}(AST);exports.Chain=Chain;var Conditional=function(_super){function Conditional(condition,trueExp,falseExp){_super.call(this),this.condition=condition,this.trueExp=trueExp,this.falseExp=falseExp}return __extends(Conditional,_super),Conditional.prototype.visit=function(visitor,context){return void 0===context&&(context=null),visitor.visitConditional(this,context)},Conditional}(AST);exports.Conditional=Conditional;var PropertyRead=function(_super){function PropertyRead(receiver,name){_super.call(this),this.receiver=receiver,this.name=name}return __extends(PropertyRead,_super),PropertyRead.prototype.visit=function(visitor,context){return void 0===context&&(context=null),visitor.visitPropertyRead(this,context)},PropertyRead}(AST);exports.PropertyRead=PropertyRead;var PropertyWrite=function(_super){function PropertyWrite(receiver,name,value){_super.call(this),this.receiver=receiver,this.name=name,this.value=value}return __extends(PropertyWrite,_super),PropertyWrite.prototype.visit=function(visitor,context){return void 0===context&&(context=null),visitor.visitPropertyWrite(this,context)},PropertyWrite}(AST);exports.PropertyWrite=PropertyWrite;var SafePropertyRead=function(_super){function SafePropertyRead(receiver,name){_super.call(this),this.receiver=receiver,this.name=name}return __extends(SafePropertyRead,_super),SafePropertyRead.prototype.visit=function(visitor,context){return void 0===context&&(context=null),visitor.visitSafePropertyRead(this,context)},SafePropertyRead}(AST);exports.SafePropertyRead=SafePropertyRead;var KeyedRead=function(_super){function KeyedRead(obj,key){_super.call(this),this.obj=obj,this.key=key}return __extends(KeyedRead,_super),KeyedRead.prototype.visit=function(visitor,context){return void 0===context&&(context=null),visitor.visitKeyedRead(this,context)},KeyedRead}(AST);exports.KeyedRead=KeyedRead;var KeyedWrite=function(_super){function KeyedWrite(obj,key,value){_super.call(this),this.obj=obj,this.key=key,this.value=value}return __extends(KeyedWrite,_super),KeyedWrite.prototype.visit=function(visitor,context){return void 0===context&&(context=null),visitor.visitKeyedWrite(this,context)},KeyedWrite}(AST);exports.KeyedWrite=KeyedWrite;var BindingPipe=function(_super){function BindingPipe(exp,name,args){_super.call(this),this.exp=exp,this.name=name,this.args=args}return __extends(BindingPipe,_super),BindingPipe.prototype.visit=function(visitor,context){return void 0===context&&(context=null),visitor.visitPipe(this,context)},BindingPipe}(AST);exports.BindingPipe=BindingPipe;var LiteralPrimitive=function(_super){function LiteralPrimitive(value){_super.call(this),this.value=value}return __extends(LiteralPrimitive,_super),LiteralPrimitive.prototype.visit=function(visitor,context){return void 0===context&&(context=null),visitor.visitLiteralPrimitive(this,context)},LiteralPrimitive}(AST);exports.LiteralPrimitive=LiteralPrimitive;var LiteralArray=function(_super){function LiteralArray(expressions){_super.call(this),this.expressions=expressions}return __extends(LiteralArray,_super),LiteralArray.prototype.visit=function(visitor,context){return void 0===context&&(context=null),visitor.visitLiteralArray(this,context)},LiteralArray}(AST);exports.LiteralArray=LiteralArray;var LiteralMap=function(_super){function LiteralMap(keys,values){_super.call(this),this.keys=keys,this.values=values}return __extends(LiteralMap,_super),LiteralMap.prototype.visit=function(visitor,context){return void 0===context&&(context=null),visitor.visitLiteralMap(this,context)},LiteralMap}(AST);exports.LiteralMap=LiteralMap;var Interpolation=function(_super){function Interpolation(strings,expressions){_super.call(this),this.strings=strings,this.expressions=expressions}return __extends(Interpolation,_super),Interpolation.prototype.visit=function(visitor,context){return void 0===context&&(context=null),visitor.visitInterpolation(this,context)},Interpolation}(AST);exports.Interpolation=Interpolation;var Binary=function(_super){function Binary(operation,left,right){_super.call(this),this.operation=operation,this.left=left,this.right=right}return __extends(Binary,_super),Binary.prototype.visit=function(visitor,context){return void 0===context&&(context=null),visitor.visitBinary(this,context)},Binary}(AST);exports.Binary=Binary;var PrefixNot=function(_super){function PrefixNot(expression){_super.call(this),this.expression=expression}return __extends(PrefixNot,_super),PrefixNot.prototype.visit=function(visitor,context){return void 0===context&&(context=null),visitor.visitPrefixNot(this,context)},PrefixNot}(AST);exports.PrefixNot=PrefixNot;var MethodCall=function(_super){function MethodCall(receiver,name,args){_super.call(this),this.receiver=receiver,this.name=name,this.args=args}return __extends(MethodCall,_super),MethodCall.prototype.visit=function(visitor,context){return void 0===context&&(context=null),visitor.visitMethodCall(this,context)},MethodCall}(AST);exports.MethodCall=MethodCall;var SafeMethodCall=function(_super){function SafeMethodCall(receiver,name,args){_super.call(this),this.receiver=receiver,this.name=name,this.args=args}return __extends(SafeMethodCall,_super),SafeMethodCall.prototype.visit=function(visitor,context){return void 0===context&&(context=null),visitor.visitSafeMethodCall(this,context)},SafeMethodCall}(AST);exports.SafeMethodCall=SafeMethodCall;var FunctionCall=function(_super){function FunctionCall(target,args){_super.call(this),this.target=target,this.args=args}return __extends(FunctionCall,_super),FunctionCall.prototype.visit=function(visitor,context){return void 0===context&&(context=null),visitor.visitFunctionCall(this,context)},FunctionCall}(AST);exports.FunctionCall=FunctionCall;var ASTWithSource=function(_super){function ASTWithSource(ast,source,location){_super.call(this),this.ast=ast,this.source=source,this.location=location}return __extends(ASTWithSource,_super),ASTWithSource.prototype.visit=function(visitor,context){return void 0===context&&(context=null),this.ast.visit(visitor,context)},ASTWithSource.prototype.toString=function(){return this.source+" in "+this.location},ASTWithSource}(AST);exports.ASTWithSource=ASTWithSource;var TemplateBinding=function(){function TemplateBinding(key,keyIsVar,name,expression){this.key=key,this.keyIsVar=keyIsVar,this.name=name,this.expression=expression}return TemplateBinding}();exports.TemplateBinding=TemplateBinding;var RecursiveAstVisitor=function(){function RecursiveAstVisitor(){}return RecursiveAstVisitor.prototype.visitBinary=function(ast,context){return ast.left.visit(this),ast.right.visit(this),null},RecursiveAstVisitor.prototype.visitChain=function(ast,context){return this.visitAll(ast.expressions,context)},RecursiveAstVisitor.prototype.visitConditional=function(ast,context){return ast.condition.visit(this),ast.trueExp.visit(this),ast.falseExp.visit(this),null},RecursiveAstVisitor.prototype.visitPipe=function(ast,context){return ast.exp.visit(this),this.visitAll(ast.args,context),null},RecursiveAstVisitor.prototype.visitFunctionCall=function(ast,context){return ast.target.visit(this),this.visitAll(ast.args,context),null},RecursiveAstVisitor.prototype.visitImplicitReceiver=function(ast,context){return null},RecursiveAstVisitor.prototype.visitInterpolation=function(ast,context){return this.visitAll(ast.expressions,context)},RecursiveAstVisitor.prototype.visitKeyedRead=function(ast,context){return ast.obj.visit(this),ast.key.visit(this),null},RecursiveAstVisitor.prototype.visitKeyedWrite=function(ast,context){return ast.obj.visit(this),ast.key.visit(this),ast.value.visit(this),null},RecursiveAstVisitor.prototype.visitLiteralArray=function(ast,context){return this.visitAll(ast.expressions,context)},RecursiveAstVisitor.prototype.visitLiteralMap=function(ast,context){return this.visitAll(ast.values,context)},RecursiveAstVisitor.prototype.visitLiteralPrimitive=function(ast,context){return null},RecursiveAstVisitor.prototype.visitMethodCall=function(ast,context){return ast.receiver.visit(this),this.visitAll(ast.args,context)},RecursiveAstVisitor.prototype.visitPrefixNot=function(ast,context){return ast.expression.visit(this),null},RecursiveAstVisitor.prototype.visitPropertyRead=function(ast,context){return ast.receiver.visit(this),null},RecursiveAstVisitor.prototype.visitPropertyWrite=function(ast,context){return ast.receiver.visit(this),ast.value.visit(this),null},RecursiveAstVisitor.prototype.visitSafePropertyRead=function(ast,context){return ast.receiver.visit(this),null},RecursiveAstVisitor.prototype.visitSafeMethodCall=function(ast,context){return ast.receiver.visit(this),this.visitAll(ast.args,context)},RecursiveAstVisitor.prototype.visitAll=function(asts,context){var _this=this;return asts.forEach(function(ast){return ast.visit(_this,context)}),null},RecursiveAstVisitor.prototype.visitQuote=function(ast,context){return null},RecursiveAstVisitor}();exports.RecursiveAstVisitor=RecursiveAstVisitor;var AstTransformer=function(){function AstTransformer(){}return AstTransformer.prototype.visitImplicitReceiver=function(ast,context){return ast},AstTransformer.prototype.visitInterpolation=function(ast,context){return new Interpolation(ast.strings,this.visitAll(ast.expressions))},AstTransformer.prototype.visitLiteralPrimitive=function(ast,context){return new LiteralPrimitive(ast.value)},AstTransformer.prototype.visitPropertyRead=function(ast,context){return new PropertyRead(ast.receiver.visit(this),ast.name)},AstTransformer.prototype.visitPropertyWrite=function(ast,context){return new PropertyWrite(ast.receiver.visit(this),ast.name,ast.value)},AstTransformer.prototype.visitSafePropertyRead=function(ast,context){return new SafePropertyRead(ast.receiver.visit(this),ast.name)},AstTransformer.prototype.visitMethodCall=function(ast,context){return new MethodCall(ast.receiver.visit(this),ast.name,this.visitAll(ast.args))},AstTransformer.prototype.visitSafeMethodCall=function(ast,context){return new SafeMethodCall(ast.receiver.visit(this),ast.name,this.visitAll(ast.args))},AstTransformer.prototype.visitFunctionCall=function(ast,context){return new FunctionCall(ast.target.visit(this),this.visitAll(ast.args))},AstTransformer.prototype.visitLiteralArray=function(ast,context){return new LiteralArray(this.visitAll(ast.expressions))},AstTransformer.prototype.visitLiteralMap=function(ast,context){return new LiteralMap(ast.keys,this.visitAll(ast.values))},AstTransformer.prototype.visitBinary=function(ast,context){return new Binary(ast.operation,ast.left.visit(this),ast.right.visit(this))},AstTransformer.prototype.visitPrefixNot=function(ast,context){return new PrefixNot(ast.expression.visit(this))},AstTransformer.prototype.visitConditional=function(ast,context){return new Conditional(ast.condition.visit(this),ast.trueExp.visit(this),ast.falseExp.visit(this))},AstTransformer.prototype.visitPipe=function(ast,context){return new BindingPipe(ast.exp.visit(this),ast.name,this.visitAll(ast.args))},AstTransformer.prototype.visitKeyedRead=function(ast,context){return new KeyedRead(ast.obj.visit(this),ast.key.visit(this))},AstTransformer.prototype.visitKeyedWrite=function(ast,context){return new KeyedWrite(ast.obj.visit(this),ast.key.visit(this),ast.value.visit(this))},AstTransformer.prototype.visitAll=function(asts){for(var res=collection_1.ListWrapper.createFixedSize(asts.length),i=0;ic?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},decorators_1=$__require("b6"),lang_1=$__require("2b"),exceptions_1=$__require("41"),collection_1=$__require("38"),lexer_1=$__require("b7"),ast_1=$__require("83"),_implicitReceiver=new ast_1.ImplicitReceiver,INTERPOLATION_REGEXP=/\{\{([\s\S]*?)\}\}/g,ParseException=function(_super){function ParseException(message,input,errLocation,ctxLocation){_super.call(this,"Parser Error: "+message+" "+errLocation+" ["+input+"] in "+ctxLocation)}return __extends(ParseException,_super),ParseException}(exceptions_1.BaseException),SplitInterpolation=function(){function SplitInterpolation(strings,expressions){this.strings=strings,this.expressions=expressions}return SplitInterpolation}();exports.SplitInterpolation=SplitInterpolation;var TemplateBindingParseResult=function(){function TemplateBindingParseResult(templateBindings,warnings){this.templateBindings=templateBindings,this.warnings=warnings}return TemplateBindingParseResult}();exports.TemplateBindingParseResult=TemplateBindingParseResult;var Parser=function(){function Parser(_lexer){this._lexer=_lexer}return Parser.prototype.parseAction=function(input,location){this._checkNoInterpolation(input,location);var tokens=this._lexer.tokenize(this._stripComments(input)),ast=new _ParseAST(input,location,tokens,!0).parseChain();return new ast_1.ASTWithSource(ast,input,location)},Parser.prototype.parseBinding=function(input,location){var ast=this._parseBindingAst(input,location);return new ast_1.ASTWithSource(ast,input,location)},Parser.prototype.parseSimpleBinding=function(input,location){var ast=this._parseBindingAst(input,location);if(!SimpleExpressionChecker.check(ast))throw new ParseException("Host binding expression can only contain field access and constants",input,location);return new ast_1.ASTWithSource(ast,input,location)},Parser.prototype._parseBindingAst=function(input,location){var quote=this._parseQuote(input,location);if(lang_1.isPresent(quote))return quote;this._checkNoInterpolation(input,location);var tokens=this._lexer.tokenize(this._stripComments(input));return new _ParseAST(input,location,tokens,!1).parseChain()},Parser.prototype._parseQuote=function(input,location){if(lang_1.isBlank(input))return null;var prefixSeparatorIndex=input.indexOf(":");if(-1==prefixSeparatorIndex)return null;var prefix=input.substring(0,prefixSeparatorIndex).trim();if(!lexer_1.isIdentifier(prefix))return null;var uninterpretedExpression=input.substring(prefixSeparatorIndex+1);return new ast_1.Quote(prefix,uninterpretedExpression,location)},Parser.prototype.parseTemplateBindings=function(input,location){var tokens=this._lexer.tokenize(input);return new _ParseAST(input,location,tokens,!1).parseTemplateBindings()},Parser.prototype.parseInterpolation=function(input,location){var split=this.splitInterpolation(input,location);if(null==split)return null;for(var expressions=[],i=0;i0))throw new ParseException("Blank expressions are not allowed in interpolated strings",input,"at column "+this._findInterpolationErrorColumn(parts,i)+" in",location);expressions.push(part)}}return new SplitInterpolation(strings,expressions)},Parser.prototype.wrapLiteralPrimitive=function(input,location){return new ast_1.ASTWithSource(new ast_1.LiteralPrimitive(input),input,location)},Parser.prototype._stripComments=function(input){var i=this._commentStart(input);return lang_1.isPresent(i)?input.substring(0,i).trim():input},Parser.prototype._commentStart=function(input){for(var outerQuote=null,i=0;i1)throw new ParseException("Got interpolation ({{}}) where expression was expected",input,"at column "+this._findInterpolationErrorColumn(parts,1)+" in",location)},Parser.prototype._findInterpolationErrorColumn=function(parts,partInErrIdx){for(var errLocation="",j=0;partInErrIdx>j;j++)errLocation+=j%2===0?parts[j]:"{{"+parts[j]+"}}";return errLocation.length},Parser=__decorate([decorators_1.Injectable(),__metadata("design:paramtypes",[lexer_1.Lexer])],Parser)}();exports.Parser=Parser;var _ParseAST=function(){function _ParseAST(input,location,tokens,parseAction){this.input=input,this.location=location,this.tokens=tokens,this.parseAction=parseAction,this.index=0}return _ParseAST.prototype.peek=function(offset){var i=this.index+offset;return i"))result=new ast_1.Binary(">",result,this.parseAdditive());else if(this.optionalOperator("<="))result=new ast_1.Binary("<=",result,this.parseAdditive());else{if(!this.optionalOperator(">="))return result;result=new ast_1.Binary(">=",result,this.parseAdditive())}},_ParseAST.prototype.parseAdditive=function(){for(var result=this.parseMultiplicative();;)if(this.optionalOperator("+"))result=new ast_1.Binary("+",result,this.parseMultiplicative());else{if(!this.optionalOperator("-"))return result;result=new ast_1.Binary("-",result,this.parseMultiplicative())}},_ParseAST.prototype.parseMultiplicative=function(){for(var result=this.parsePrefix();;)if(this.optionalOperator("*"))result=new ast_1.Binary("*",result,this.parsePrefix());else if(this.optionalOperator("%"))result=new ast_1.Binary("%",result,this.parsePrefix());else{if(!this.optionalOperator("/"))return result;result=new ast_1.Binary("/",result,this.parsePrefix())}},_ParseAST.prototype.parsePrefix=function(){return this.optionalOperator("+")?this.parsePrefix():this.optionalOperator("-")?new ast_1.Binary("-",new ast_1.LiteralPrimitive(0),this.parsePrefix()):this.optionalOperator("!")?new ast_1.PrefixNot(this.parsePrefix()):this.parseCallChain()},_ParseAST.prototype.parseCallChain=function(){for(var result=this.parsePrimary();;)if(this.optionalCharacter(lexer_1.$PERIOD))result=this.parseAccessMemberOrMethodCall(result,!1);else if(this.optionalOperator("?."))result=this.parseAccessMemberOrMethodCall(result,!0);else if(this.optionalCharacter(lexer_1.$LBRACKET)){var key=this.parsePipe();if(this.expectCharacter(lexer_1.$RBRACKET),this.optionalOperator("=")){var value=this.parseConditional();result=new ast_1.KeyedWrite(result,key,value)}else result=new ast_1.KeyedRead(result,key)}else{if(!this.optionalCharacter(lexer_1.$LPAREN))return result;var args=this.parseCallArguments();this.expectCharacter(lexer_1.$RPAREN),result=new ast_1.FunctionCall(result,args)}},_ParseAST.prototype.parsePrimary=function(){if(this.optionalCharacter(lexer_1.$LPAREN)){var result=this.parsePipe();return this.expectCharacter(lexer_1.$RPAREN),result}if(this.next.isKeywordNull()||this.next.isKeywordUndefined())return this.advance(),new ast_1.LiteralPrimitive(null);if(this.next.isKeywordTrue())return this.advance(),
new ast_1.LiteralPrimitive(!0);if(this.next.isKeywordFalse())return this.advance(),new ast_1.LiteralPrimitive(!1);if(this.optionalCharacter(lexer_1.$LBRACKET)){var elements=this.parseExpressionList(lexer_1.$RBRACKET);return this.expectCharacter(lexer_1.$RBRACKET),new ast_1.LiteralArray(elements)}if(this.next.isCharacter(lexer_1.$LBRACE))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMemberOrMethodCall(_implicitReceiver,!1);if(this.next.isNumber()){var value=this.next.toNumber();return this.advance(),new ast_1.LiteralPrimitive(value)}if(this.next.isString()){var literalValue=this.next.toString();return this.advance(),new ast_1.LiteralPrimitive(literalValue)}throw this.index>=this.tokens.length?this.error("Unexpected end of expression: "+this.input):this.error("Unexpected token "+this.next),new exceptions_1.BaseException("Fell through all cases in parsePrimary")},_ParseAST.prototype.parseExpressionList=function(terminator){var result=[];if(!this.next.isCharacter(terminator))do result.push(this.parsePipe());while(this.optionalCharacter(lexer_1.$COMMA));return result},_ParseAST.prototype.parseLiteralMap=function(){var keys=[],values=[];if(this.expectCharacter(lexer_1.$LBRACE),!this.optionalCharacter(lexer_1.$RBRACE)){do{var key=this.expectIdentifierOrKeywordOrString();keys.push(key),this.expectCharacter(lexer_1.$COLON),values.push(this.parsePipe())}while(this.optionalCharacter(lexer_1.$COMMA));this.expectCharacter(lexer_1.$RBRACE)}return new ast_1.LiteralMap(keys,values)},_ParseAST.prototype.parseAccessMemberOrMethodCall=function(receiver,isSafe){void 0===isSafe&&(isSafe=!1);var id=this.expectIdentifierOrKeyword();if(this.optionalCharacter(lexer_1.$LPAREN)){var args=this.parseCallArguments();return this.expectCharacter(lexer_1.$RPAREN),isSafe?new ast_1.SafeMethodCall(receiver,id,args):new ast_1.MethodCall(receiver,id,args)}if(!isSafe){if(this.optionalOperator("=")){this.parseAction||this.error("Bindings cannot contain assignments");var value=this.parseConditional();return new ast_1.PropertyWrite(receiver,id,value)}return new ast_1.PropertyRead(receiver,id)}return this.optionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),null):new ast_1.SafePropertyRead(receiver,id)},_ParseAST.prototype.parseCallArguments=function(){if(this.next.isCharacter(lexer_1.$RPAREN))return[];var positionals=[];do positionals.push(this.parsePipe());while(this.optionalCharacter(lexer_1.$COMMA));return positionals},_ParseAST.prototype.parseBlockContent=function(){this.parseAction||this.error("Binding expression cannot contain chained expression");for(var exprs=[];this.index=exports.$TAB&&code<=exports.$SPACE||code==$NBSP}function isIdentifierStart(code){return code>=$a&&$z>=code||code>=$A&&$Z>=code||code==$_||code==exports.$$}function isIdentifier(input){if(0==input.length)return!1;var scanner=new _Scanner(input);if(!isIdentifierStart(scanner.peek))return!1;for(scanner.advance();scanner.peek!==exports.$EOF;){if(!isIdentifierPart(scanner.peek))return!1;scanner.advance()}return!0}function isIdentifierPart(code){return code>=$a&&$z>=code||code>=$A&&$Z>=code||code>=$0&&$9>=code||code==$_||code==exports.$$}function isDigit(code){return code>=$0&&$9>=code}function isExponentStart(code){return code==$e||code==$E}function isExponentSign(code){return code==exports.$MINUS||code==exports.$PLUS}function isQuote(code){return code===exports.$SQ||code===exports.$DQ||code===exports.$BT}function unescape(code){switch(code){case $n:return exports.$LF;case $f:return exports.$FF;case $r:return exports.$CR;case $t:return exports.$TAB;case $v:return exports.$VTAB;default:return code}}var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},__decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},decorators_1=$__require("b6"),collection_1=$__require("38"),lang_1=$__require("2b"),exceptions_1=$__require("41");!function(TokenType){TokenType[TokenType.Character=0]="Character",TokenType[TokenType.Identifier=1]="Identifier",TokenType[TokenType.Keyword=2]="Keyword",TokenType[TokenType.String=3]="String",TokenType[TokenType.Operator=4]="Operator",TokenType[TokenType.Number=5]="Number"}(exports.TokenType||(exports.TokenType={}));var TokenType=exports.TokenType,Lexer=function(){function Lexer(){}return Lexer.prototype.tokenize=function(text){for(var scanner=new _Scanner(text),tokens=[],token=scanner.scanToken();null!=token;)tokens.push(token),token=scanner.scanToken();return tokens},Lexer=__decorate([decorators_1.Injectable(),__metadata("design:paramtypes",[])],Lexer)}();exports.Lexer=Lexer;var Token=function(){function Token(index,type,numValue,strValue){this.index=index,this.type=type,this.numValue=numValue,this.strValue=strValue}return Token.prototype.isCharacter=function(code){return this.type==TokenType.Character&&this.numValue==code},Token.prototype.isNumber=function(){return this.type==TokenType.Number},Token.prototype.isString=function(){return this.type==TokenType.String},Token.prototype.isOperator=function(operater){return this.type==TokenType.Operator&&this.strValue==operater},Token.prototype.isIdentifier=function(){return this.type==TokenType.Identifier},Token.prototype.isKeyword=function(){return this.type==TokenType.Keyword},Token.prototype.isKeywordDeprecatedVar=function(){return this.type==TokenType.Keyword&&"var"==this.strValue},Token.prototype.isKeywordLet=function(){return this.type==TokenType.Keyword&&"let"==this.strValue},Token.prototype.isKeywordNull=function(){return this.type==TokenType.Keyword&&"null"==this.strValue},Token.prototype.isKeywordUndefined=function(){return this.type==TokenType.Keyword&&"undefined"==this.strValue},Token.prototype.isKeywordTrue=function(){return this.type==TokenType.Keyword&&"true"==this.strValue},Token.prototype.isKeywordFalse=function(){return this.type==TokenType.Keyword&&"false"==this.strValue},Token.prototype.toNumber=function(){return this.type==TokenType.Number?this.numValue:-1},Token.prototype.toString=function(){switch(this.type){case TokenType.Character:case TokenType.Identifier:case TokenType.Keyword:case TokenType.Operator:case TokenType.String:return this.strValue;case TokenType.Number:return this.numValue.toString();default:return null}},Token}();exports.Token=Token,exports.EOF=new Token(-1,TokenType.Character,0,""),exports.$EOF=0,exports.$TAB=9,exports.$LF=10,exports.$VTAB=11,exports.$FF=12,exports.$CR=13,exports.$SPACE=32,exports.$BANG=33,exports.$DQ=34,exports.$HASH=35,exports.$$=36,exports.$PERCENT=37,exports.$AMPERSAND=38,exports.$SQ=39,exports.$LPAREN=40,exports.$RPAREN=41,exports.$STAR=42,exports.$PLUS=43,exports.$COMMA=44,exports.$MINUS=45,exports.$PERIOD=46,exports.$SLASH=47,exports.$COLON=58,exports.$SEMICOLON=59,exports.$LT=60,exports.$EQ=61,exports.$GT=62,exports.$QUESTION=63;var $0=48,$9=57,$A=65,$E=69,$Z=90;exports.$LBRACKET=91,exports.$BACKSLASH=92,exports.$RBRACKET=93;var $CARET=94,$_=95;exports.$BT=96;var $a=97,$e=101,$f=102,$n=110,$r=114,$t=116,$u=117,$v=118,$z=122;exports.$LBRACE=123,exports.$BAR=124,exports.$RBRACE=125;var $NBSP=160,ScannerError=function(_super){function ScannerError(message){_super.call(this),this.message=message}return __extends(ScannerError,_super),ScannerError.prototype.toString=function(){return this.message},ScannerError}(exceptions_1.BaseException);exports.ScannerError=ScannerError;var _Scanner=function(){function _Scanner(input){this.input=input,this.peek=0,this.index=-1,this.length=input.length,this.advance()}return _Scanner.prototype.advance=function(){this.peek=++this.index>=this.length?exports.$EOF:lang_1.StringWrapper.charCodeAt(this.input,this.index)},_Scanner.prototype.scanToken=function(){for(var input=this.input,length=this.length,peek=this.peek,index=this.index;peek<=exports.$SPACE;){if(++index>=length){peek=exports.$EOF;break}peek=lang_1.StringWrapper.charCodeAt(input,index)}if(this.peek=peek,this.index=index,index>=length)return null;if(isIdentifierStart(peek))return this.scanIdentifier();if(isDigit(peek))return this.scanNumber(index);var start=index;switch(peek){case exports.$PERIOD:return this.advance(),isDigit(this.peek)?this.scanNumber(start):newCharacterToken(start,exports.$PERIOD);case exports.$LPAREN:case exports.$RPAREN:case exports.$LBRACE:case exports.$RBRACE:case exports.$LBRACKET:case exports.$RBRACKET:case exports.$COMMA:case exports.$COLON:case exports.$SEMICOLON:return this.scanCharacter(start,peek);case exports.$SQ:case exports.$DQ:return this.scanString();case exports.$HASH:case exports.$PLUS:case exports.$MINUS:case exports.$STAR:case exports.$SLASH:case exports.$PERCENT:case $CARET:return this.scanOperator(start,lang_1.StringWrapper.fromCharCode(peek));case exports.$QUESTION:return this.scanComplexOperator(start,"?",exports.$PERIOD,".");case exports.$LT:case exports.$GT:return this.scanComplexOperator(start,lang_1.StringWrapper.fromCharCode(peek),exports.$EQ,"=");case exports.$BANG:case exports.$EQ:return this.scanComplexOperator(start,lang_1.StringWrapper.fromCharCode(peek),exports.$EQ,"=",exports.$EQ,"=");case exports.$AMPERSAND:return this.scanComplexOperator(start,"&",exports.$AMPERSAND,"&");case exports.$BAR:return this.scanComplexOperator(start,"|",exports.$BAR,"|");case $NBSP:for(;isWhitespace(this.peek);)this.advance();return this.scanToken()}return this.error("Unexpected character ["+lang_1.StringWrapper.fromCharCode(peek)+"]",0),null},_Scanner.prototype.scanCharacter=function(start,code){return this.advance(),newCharacterToken(start,code)},_Scanner.prototype.scanOperator=function(start,str){return this.advance(),newOperatorToken(start,str)},_Scanner.prototype.scanComplexOperator=function(start,one,twoCode,two,threeCode,three){this.advance();var str=one;return this.peek==twoCode&&(this.advance(),str+=two),lang_1.isPresent(threeCode)&&this.peek==threeCode&&(this.advance(),str+=three),newOperatorToken(start,str)},_Scanner.prototype.scanIdentifier=function(){var start=this.index;for(this.advance();isIdentifierPart(this.peek);)this.advance();var str=this.input.substring(start,this.index);return collection_1.SetWrapper.has(KEYWORDS,str)?newKeywordToken(start,str):newIdentifierToken(start,str)},_Scanner.prototype.scanNumber=function(start){var simple=this.index===start;for(this.advance();;){if(isDigit(this.peek));else if(this.peek==exports.$PERIOD)simple=!1;else{if(!isExponentStart(this.peek))break;this.advance(),isExponentSign(this.peek)&&this.advance(),isDigit(this.peek)||this.error("Invalid exponent",-1),simple=!1}this.advance()}var str=this.input.substring(start,this.index),value=simple?lang_1.NumberWrapper.parseIntAutoRadix(str):lang_1.NumberWrapper.parseFloat(str);return newNumberToken(start,value)},_Scanner.prototype.scanString=function(){var start=this.index,quote=this.peek;this.advance();for(var buffer,marker=this.index,input=this.input;this.peek!=quote;)if(this.peek==exports.$BACKSLASH){null==buffer&&(buffer=new lang_1.StringJoiner),buffer.add(input.substring(marker,this.index)),this.advance();var unescapedCode;if(this.peek==$u){var hex=input.substring(this.index+1,this.index+5);try{unescapedCode=lang_1.NumberWrapper.parseInt(hex,16)}catch(e){this.error("Invalid unicode escape [\\u"+hex+"]",0)}for(var i=0;5>i;i++)this.advance()}else unescapedCode=unescape(this.peek),this.advance();buffer.add(lang_1.StringWrapper.fromCharCode(unescapedCode)),marker=this.index}else this.peek==exports.$EOF?this.error("Unterminated quote",0):this.advance();var last=input.substring(marker,this.index);this.advance();var unescaped=last;return null!=buffer&&(buffer.add(last),unescaped=buffer.toString()),newStringToken(start,unescaped)},_Scanner.prototype.error=function(message,offset){var position=this.index+offset;throw new ScannerError("Lexer Error: "+message+" at column "+position+" in expression ["+this.input+"]")},_Scanner}();exports.isIdentifier=isIdentifier,exports.isQuote=isQuote;var KEYWORDS=(collection_1.SetWrapper.createFromList(["+","-","*","/","%","^","=","==","!=","===","!==","<",">","<=",">=","&&","||","&","|","!","?","#","?."]),collection_1.SetWrapper.createFromList(["var","let","null","undefined","true","false","if","else"]));return module.exports}),$__System.registerDynamic("b8",["9a","72","81","7e","60","5f","b4","67","40","93","8f","92","2b","3a","85","8d","97","65","7d","b9","b4","89","b5","84","b7"],!0,function($__require,exports,module){"use strict";function __export(m){for(var p in m)exports.hasOwnProperty(p)||(exports[p]=m[p])}function _createCompilerConfig(){return new config_2.CompilerConfig(lang_1.assertionsEnabled(),!1,!0)}var platform_directives_and_pipes_1=$__require("9a");exports.PLATFORM_DIRECTIVES=platform_directives_and_pipes_1.PLATFORM_DIRECTIVES,exports.PLATFORM_PIPES=platform_directives_and_pipes_1.PLATFORM_PIPES,__export($__require("72"));var template_parser_1=$__require("81");exports.TEMPLATE_TRANSFORMS=template_parser_1.TEMPLATE_TRANSFORMS;var config_1=$__require("7e");exports.CompilerConfig=config_1.CompilerConfig,exports.RenderTypes=config_1.RenderTypes,__export($__require("60")),__export($__require("5f"));var runtime_compiler_1=$__require("b4");exports.RuntimeCompiler=runtime_compiler_1.RuntimeCompiler,__export($__require("67")),__export($__require("40"));var view_resolver_1=$__require("93");exports.ViewResolver=view_resolver_1.ViewResolver;var directive_resolver_1=$__require("8f");exports.DirectiveResolver=directive_resolver_1.DirectiveResolver;var pipe_resolver_1=$__require("92");exports.PipeResolver=pipe_resolver_1.PipeResolver;var lang_1=$__require("2b"),di_1=$__require("3a"),template_parser_2=$__require("81"),html_parser_1=$__require("85"),directive_normalizer_1=$__require("8d"),runtime_metadata_1=$__require("97"),style_compiler_1=$__require("65"),view_compiler_1=$__require("7d"),config_2=$__require("7e"),component_resolver_1=$__require("b9"),runtime_compiler_2=$__require("b4"),element_schema_registry_1=$__require("89"),dom_element_schema_registry_1=$__require("b5"),url_resolver_2=$__require("67"),parser_1=$__require("84"),lexer_1=$__require("b7"),view_resolver_2=$__require("93"),directive_resolver_2=$__require("8f"),pipe_resolver_2=$__require("92");return exports.COMPILER_PROVIDERS=lang_1.CONST_EXPR([lexer_1.Lexer,parser_1.Parser,html_parser_1.HtmlParser,template_parser_2.TemplateParser,directive_normalizer_1.DirectiveNormalizer,runtime_metadata_1.RuntimeMetadataResolver,url_resolver_2.DEFAULT_PACKAGE_URL_PROVIDER,style_compiler_1.StyleCompiler,view_compiler_1.ViewCompiler,new di_1.Provider(config_2.CompilerConfig,{useFactory:_createCompilerConfig,deps:[]}),runtime_compiler_2.RuntimeCompiler,new di_1.Provider(component_resolver_1.ComponentResolver,{useExisting:runtime_compiler_2.RuntimeCompiler}),dom_element_schema_registry_1.DomElementSchemaRegistry,new di_1.Provider(element_schema_registry_1.ElementSchemaRegistry,{useExisting:dom_element_schema_registry_1.DomElementSchemaRegistry}),url_resolver_2.UrlResolver,view_resolver_2.ViewResolver,directive_resolver_2.DirectiveResolver,pipe_resolver_2.PipeResolver]),module.exports}),$__System.registerDynamic("72",["2b"],!0,function($__require,exports,module){"use strict";function templateVisitAll(visitor,asts,context){void 0===context&&(context=null);var result=[];return asts.forEach(function(ast){var astResult=ast.visit(visitor,context);lang_1.isPresent(astResult)&&result.push(astResult)}),result}var lang_1=$__require("2b"),TextAst=function(){function TextAst(value,ngContentIndex,sourceSpan){this.value=value,this.ngContentIndex=ngContentIndex,this.sourceSpan=sourceSpan}return TextAst.prototype.visit=function(visitor,context){return visitor.visitText(this,context)},TextAst}();exports.TextAst=TextAst;var BoundTextAst=function(){function BoundTextAst(value,ngContentIndex,sourceSpan){this.value=value,this.ngContentIndex=ngContentIndex,this.sourceSpan=sourceSpan}return BoundTextAst.prototype.visit=function(visitor,context){return visitor.visitBoundText(this,context)},BoundTextAst}();exports.BoundTextAst=BoundTextAst;var AttrAst=function(){function AttrAst(name,value,sourceSpan){this.name=name,this.value=value,this.sourceSpan=sourceSpan}return AttrAst.prototype.visit=function(visitor,context){return visitor.visitAttr(this,context)},AttrAst}();exports.AttrAst=AttrAst;var BoundElementPropertyAst=function(){function BoundElementPropertyAst(name,type,value,unit,sourceSpan){this.name=name,this.type=type,this.value=value,this.unit=unit,this.sourceSpan=sourceSpan}return BoundElementPropertyAst.prototype.visit=function(visitor,context){return visitor.visitElementProperty(this,context)},BoundElementPropertyAst}();exports.BoundElementPropertyAst=BoundElementPropertyAst;var BoundEventAst=function(){function BoundEventAst(name,target,handler,sourceSpan){this.name=name,this.target=target,this.handler=handler,this.sourceSpan=sourceSpan}return BoundEventAst.prototype.visit=function(visitor,context){return visitor.visitEvent(this,context)},Object.defineProperty(BoundEventAst.prototype,"fullName",{get:function(){return lang_1.isPresent(this.target)?this.target+":"+this.name:this.name},enumerable:!0,configurable:!0}),BoundEventAst}();exports.BoundEventAst=BoundEventAst;var ReferenceAst=function(){function ReferenceAst(name,value,sourceSpan){this.name=name,this.value=value,this.sourceSpan=sourceSpan}return ReferenceAst.prototype.visit=function(visitor,context){return visitor.visitReference(this,context)},ReferenceAst}();exports.ReferenceAst=ReferenceAst;var VariableAst=function(){function VariableAst(name,value,sourceSpan){this.name=name,this.value=value,this.sourceSpan=sourceSpan}return VariableAst.prototype.visit=function(visitor,context){return visitor.visitVariable(this,context)},VariableAst}();exports.VariableAst=VariableAst;var ElementAst=function(){function ElementAst(name,attrs,inputs,outputs,references,directives,providers,hasViewContainer,children,ngContentIndex,sourceSpan){this.name=name,this.attrs=attrs,this.inputs=inputs,this.outputs=outputs,this.references=references,this.directives=directives,this.providers=providers,this.hasViewContainer=hasViewContainer,this.children=children,this.ngContentIndex=ngContentIndex,this.sourceSpan=sourceSpan}return ElementAst.prototype.visit=function(visitor,context){return visitor.visitElement(this,context)},ElementAst.prototype.getComponent=function(){for(var i=0;i=200&&300>=status?completer.resolve(response):completer.reject("Failed to load "+url,null)},xhr.onerror=function(){completer.reject("Failed to load "+url,null)},xhr.send(),completer.promise},XHRImpl}(xhr_1.XHR);return exports.XHRImpl=XHRImpl,module.exports}),$__System.registerDynamic("1e",["5d","2b","ba","16","bb","3c","3a"],!0,function($__require,exports,module){"use strict";function browserPlatform(){return lang_1.isBlank(core_1.getPlatform())&&core_1.createPlatform(core_1.ReflectiveInjector.resolveAndCreate(browser_common_2.BROWSER_PROVIDERS)),core_1.assertPlatform(browser_common_2.BROWSER_PLATFORM_MARKER)}function bootstrap(appComponentType,customProviders){core_1.reflector.reflectionCapabilities=new reflection_capabilities_1.ReflectionCapabilities;var appInjector=core_1.ReflectiveInjector.resolveAndCreate([exports.BROWSER_APP_PROVIDERS,lang_1.isPresent(customProviders)?customProviders:[]],browserPlatform().injector);return core_1.coreLoadAndBootstrap(appInjector,appComponentType)}var browser_common_1=$__require("5d");exports.BROWSER_PROVIDERS=browser_common_1.BROWSER_PROVIDERS,exports.CACHED_TEMPLATE_PROVIDER=browser_common_1.CACHED_TEMPLATE_PROVIDER,exports.ELEMENT_PROBE_PROVIDERS=browser_common_1.ELEMENT_PROBE_PROVIDERS,exports.ELEMENT_PROBE_PROVIDERS_PROD_MODE=browser_common_1.ELEMENT_PROBE_PROVIDERS_PROD_MODE,exports.inspectNativeElement=browser_common_1.inspectNativeElement,exports.BrowserDomAdapter=browser_common_1.BrowserDomAdapter,exports.By=browser_common_1.By,exports.Title=browser_common_1.Title,exports.DOCUMENT=browser_common_1.DOCUMENT,exports.enableDebugTools=browser_common_1.enableDebugTools,exports.disableDebugTools=browser_common_1.disableDebugTools;var lang_1=$__require("2b"),browser_common_2=$__require("5d"),compiler_1=$__require("ba"),core_1=$__require("16"),reflection_capabilities_1=$__require("bb"),xhr_impl_1=$__require("3c"),compiler_2=$__require("ba"),di_1=$__require("3a");
return exports.BROWSER_APP_PROVIDERS=lang_1.CONST_EXPR([browser_common_2.BROWSER_APP_COMMON_PROVIDERS,compiler_1.COMPILER_PROVIDERS,new di_1.Provider(compiler_2.XHR,{useClass:xhr_impl_1.XHRImpl})]),exports.browserPlatform=browserPlatform,exports.bootstrap=bootstrap,module.exports}),$__System.register("6",["9","a","bc","1c","bd","2b","1e"],function(_export){var _createClass,_classCallCheck,_Set,_Array$from,_Object$assign,isFunction,isString,global,BrowserDomAdapter,defaults,OPTION_NAMES,OptionsManager;return{setters:[function(_){_createClass=_["default"]},function(_a){_classCallCheck=_a["default"]},function(_bc){_Set=_bc["default"]},function(_c){_Array$from=_c["default"]},function(_bd){_Object$assign=_bd["default"]},function(_b){isFunction=_b.isFunction,isString=_b.isString,global=_b.global},function(_e){BrowserDomAdapter=_e.BrowserDomAdapter}],execute:function(){"use strict";defaults={scrollYOffset:0,disableLazySchemas:!1,debugMode:global.redocDebugMode},OPTION_NAMES=new _Set(["scrollYOffset","disableLazySchemas","specUrl"]),OptionsManager=function(){function OptionsManager(){_classCallCheck(this,_OptionsManager),this._options=defaults,this.dom=new BrowserDomAdapter}_createClass(OptionsManager,[{key:"parseOptions",value:function(el){var parsedOpts=void 0,attributesMap=this.dom.attributeMap(el);parsedOpts={},_Array$from(attributesMap.keys()).map(function(k){return{attrName:k,name:k.replace(/-(.)/g,function(m,$1){return $1.toUpperCase()})}}).filter(function(option){return OPTION_NAMES.has(option.name)}).forEach(function(option){parsedOpts[option.name]=attributesMap.get(option.attrName)}),this.options=parsedOpts,this._normalizeOptions()}},{key:"_normalizeOptions",value:function(){var _this=this;isFunction(this._options.scrollYOffset)||(isFinite(this._options.scrollYOffset)?!function(){var numberOffset=parseFloat(_this._options.scrollYOffset);_this.options.scrollYOffset=function(){return numberOffset}}():!function(){var el=_this._options.scrollYOffset;el instanceof Node||(el=_this.dom.query(el)),el?_this._options.scrollYOffset=function(){return el.offsetTop+el.offsetHeight}:_this._options.scrollYOffset=function(){return 0}}()),isString(this._options.disableLazySchemas)&&(this._options.disableLazySchemas=!0)}},{key:"options",get:function(){return this._options},set:function(opts){this._options=_Object$assign(this._options,opts)}}]);var _OptionsManager=OptionsManager;return OptionsManager=Reflect.metadata("parameters",[[BrowserDomAdapter]])(OptionsManager)||OptionsManager}(),_export("default",OptionsManager)}}}),$__System.register("22",["5","6","7","8","9","15","16","56","a","1b","1c","1e","2b"],function(_export){var RedocComponent,BaseComponent,SchemaManager,OptionsManager,_get,_inherits,_createClass,redocEvents,ChangeDetectorRef,ChangeDetectionStrategy,ElementRef,document,_classCallCheck,_slicedToArray,_Array$from,BrowserDomAdapter,global,CHANGE,INVIEW_POSITION,SideMenu;return{setters:[function(_6){RedocComponent=_6.RedocComponent,BaseComponent=_6.BaseComponent,SchemaManager=_6.SchemaManager},function(_8){OptionsManager=_8["default"]},function(_){_get=_["default"]},function(_2){_inherits=_2["default"]},function(_3){_createClass=_3["default"]},function(_7){redocEvents=_7.redocEvents},function(_4){ChangeDetectorRef=_4.ChangeDetectorRef,ChangeDetectionStrategy=_4.ChangeDetectionStrategy,ElementRef=_4.ElementRef},function(_5){document=_5.document},function(_a){_classCallCheck=_a["default"]},function(_b){_slicedToArray=_b["default"]},function(_c){_Array$from=_c["default"]},function(_e){BrowserDomAdapter=_e.BrowserDomAdapter},function(_b2){global=_b2.global}],execute:function(){"use strict";CHANGE={NEXT:1,BACK:-1,INITIAL:0},INVIEW_POSITION={ABOVE:1,BELLOW:-1,INVIEW:0},SideMenu=function(_BaseComponent){function SideMenu(schemaMgr,elementRef,dom,changeDetectorRef,optionsMgr){var _this=this;_classCallCheck(this,_SideMenu),_get(Object.getPrototypeOf(_SideMenu.prototype),"constructor",this).call(this,schemaMgr),this.$element=elementRef.nativeElement,this.changeDetector=changeDetectorRef,this.dom=dom,this.options=optionsMgr.options,this.$scrollParent=this.options.$scrollParent,this.bindEvents(),this.activeCatIdx=0,this.activeMethodIdx=-1,this.prevOffsetY=null,redocEvents.bootstrapped.subscribe(function(){return _this.hashScroll()}),this.activeCatCaption="",this.activeItemCaption=""}_inherits(SideMenu,_BaseComponent),_createClass(SideMenu,[{key:"scrollY",value:function(){return null!=this.$scrollParent.pageYOffset?this.$scrollParent.pageYOffset:this.$scrollParent.scrollTop}},{key:"hashScroll",value:function(evt){var hash=this.dom.getLocation().hash;if(hash){var $el=void 0;hash=hash.substr(1);var namespace=hash.split("/")[0],ptr=decodeURIComponent(hash.substr(namespace.length+1));if("operation"===namespace)$el=this.getMethodElByOperId(ptr);else if("tag"===namespace){var tag=ptr.split("/")[0];ptr=ptr.substr(tag.length),$el=this.getMethodElByPtr(ptr,tag)}$el&&this.scrollTo($el),evt&&evt.preventDefault()}}},{key:"bindEvents",value:function(){var _this2=this;this.prevOffsetY=this.scrollY(),this.scrollYOffset=function(){var mobileNavOffset=_this2.$mobileNav.clientHeight;return _this2.options.scrollYOffset()+mobileNavOffset},this._cancel={},this._cancel.scroll=this.dom.onAndCancel(this.$scrollParent,"scroll",function(){_this2.scrollHandler()}),this._cancel.hash=this.dom.onAndCancel(global,"hashchange",function(evt){return _this2.hashScroll(evt)})}},{key:"destroy",value:function(){this._cancel.scroll(),this._cancel.hash()}},{key:"activateAndScroll",value:function(idx,methodIdx){this.mobileMode()&&this.toggleMobileNav(),this.activate(idx,methodIdx),this.scrollToActive()}},{key:"scrollTo",value:function($el){var subjRect=$el.getBoundingClientRect(),offset=this.scrollY()+subjRect.top-this.scrollYOffset()+1;this.$scrollParent.scrollTo?this.$scrollParent.scrollTo(0,offset):this.$scrollParent.scrollTop=offset}},{key:"scrollToActive",value:function(){this.scrollTo(this.getCurrentMethodEl())}},{key:"activate",value:function(catIdx,methodIdx){var menu=this.data.menu;if(this.activeCatCaption="",this.activeItemCaption="",menu[this.activeCatIdx].active=!1,menu[this.activeCatIdx].methods.length&&this.activeMethodIdx>=0&&(menu[this.activeCatIdx].methods[this.activeMethodIdx].active=!1),this.activeCatIdx=catIdx,this.activeMethodIdx=methodIdx,menu[catIdx].active=!0,this.activeCatCaption=menu[catIdx].name,this.activeMethodPtr=null,menu[catIdx].methods.length&&methodIdx>-1){var currentItem=menu[catIdx].methods[methodIdx];currentItem.active=!0,this.activeMethodPtr=currentItem.pointer,this.activeItemCaption=currentItem.summary}}},{key:"_calcActiveIndexes",value:function(offset){var menu=this.data.menu,catCount=menu.length,catLength=menu[this.activeCatIdx].methods.length,resMethodIdx=this.activeMethodIdx+offset,resCatIdx=this.activeCatIdx;if(resMethodIdx>catLength-1&&(resCatIdx++,resMethodIdx=-1),-1>resMethodIdx){var prevCatIdx=--resCatIdx;catLength=menu[Math.max(prevCatIdx,0)].methods.length,resMethodIdx=catLength-1}return resCatIdx>catCount-1&&(resCatIdx=catCount-1,resMethodIdx=catLength-1),0>resCatIdx&&(resCatIdx=0,resMethodIdx=0),[resCatIdx,resMethodIdx]}},{key:"changeActive",value:function(){var offset=arguments.length<=0||void 0===arguments[0]?1:arguments[0],_calcActiveIndexes2=this._calcActiveIndexes(offset),_calcActiveIndexes22=_slicedToArray(_calcActiveIndexes2,2),catIdx=_calcActiveIndexes22[0],methodIdx=_calcActiveIndexes22[1];return this.activate(catIdx,methodIdx),0===methodIdx&&0===catIdx}},{key:"getMethodElByPtr",value:function(ptr,tag){var selector=ptr?'[pointer="'+ptr+'"][tag="'+tag+'"]':'[tag="'+tag+'"]';return document.querySelector(selector)}},{key:"getMethodElByOperId",value:function(operationId){var selector='[operation-id="'+operationId+'"]';return document.querySelector(selector)}},{key:"getCurrentMethodEl",value:function(){return this.getMethodElByPtr(this.activeMethodPtr,this.data.menu[this.activeCatIdx].name)}},{key:"getElementInViewPos",value:function($el){return Math.floor($el.getBoundingClientRect().top)>this.scrollYOffset()?INVIEW_POSITION.ABOVE:$el.getBoundingClientRect().bottom<=this.scrollYOffset()?INVIEW_POSITION.BELLOW:INVIEW_POSITION.INVIEW}},{key:"scrollHandler",value:function(){var isScrolledDown=this.scrollY()-this.prevOffsetY>0;this.prevOffsetY=this.scrollY();for(var stable=!1;!stable;){var $activeMethodHost=this.getCurrentMethodEl();if(!$activeMethodHost)return;var elementInViewPos=this.getElementInViewPos($activeMethodHost);stable=isScrolledDown&&elementInViewPos===INVIEW_POSITION.BELLOW?this.changeActive(CHANGE.NEXT):isScrolledDown||elementInViewPos!==INVIEW_POSITION.ABOVE?!0:this.changeActive(CHANGE.BACK)}this.changeDetector.detectChanges()}},{key:"prepareModel",value:function(){this.data={},this.data.menu=_Array$from(this.schemaMgr.buildMenuTree().entries()).map(function(el){return{name:el[0],description:el[1].description,methods:el[1].methods}})}},{key:"mobileMode",value:function(){return this.$mobileNav.clientHeight>0}},{key:"toggleMobileNav",value:function(){var dom=this.dom,$overflowParent=this.$scrollParent===global?dom.defaultDoc().body:this.$scrollParent;if(dom.hasStyle(this.$resourcesNav,"height"))dom.removeStyle(this.$resourcesNav,"height"),dom.removeStyle($overflowParent,"overflow-y");else{var viewportHeight=this.$scrollParent.innerHeight||this.$scrollParent.clientHeight,height=viewportHeight-this.$mobileNav.getBoundingClientRect().bottom;dom.setStyle($overflowParent,"overflow-y","hidden"),dom.setStyle(this.$resourcesNav,"height",height+"px")}}},{key:"init",value:function(){this.$mobileNav=this.dom.querySelector(this.$element,".mobile-nav"),this.$resourcesNav=this.dom.querySelector(this.$element,"#resources-nav"),this.changeActive(CHANGE.INITIAL)}}]);var _SideMenu=SideMenu;return SideMenu=Reflect.metadata("parameters",[[SchemaManager],[ElementRef],[BrowserDomAdapter],[ChangeDetectorRef],[OptionsManager]])(SideMenu)||SideMenu,SideMenu=RedocComponent({selector:"side-menu",template:'\n \n \n \n {{activeCatCaption}} \n {{activeItemCaption}} \n \n
\n \n \n \n
\n ',styles:['\n .menu-header{text-transform:uppercase;color:#0033a0;padding:0 20px;margin:10px 0}.menu-cat-header{font-size:.929em;font-family:Montserrat,sans-serif;font-weight:300;cursor:pointer;color:rgba(38,50,56,0.6);text-transform:uppercase;background-color:#FAFAFA;-webkit-transition:all .15s ease-in-out;-moz-transition:all .15s ease-in-out;-ms-transition:all .15s ease-in-out;-o-transition:all .15s ease-in-out;transition:all .15s ease-in-out;display:block;padding:12.5px 20px}.menu-cat-header:hover,.menu-cat-header.active{color:#0033a0;background-color:#f0f0f0}.menu-subitems{margin:0;font-size:0.929em;line-height:1.2em;font-weight:300;color:rgba(38,50,56,0.9);padding:0;height:0;overflow:hidden}.menu-subitems.active{height:auto}.menu-subitems li{-webkit-transition:all .15s ease-in-out;-moz-transition:all .15s ease-in-out;-ms-transition:all .15s ease-in-out;-o-transition:all .15s ease-in-out;transition:all .15s ease-in-out;list-style:none inside none;cursor:pointer;background-color:#f0f0f0;padding:10px 40px;padding-left:40px;overflow:hidden;text-overflow:ellipsis}.menu-subitems li:hover,.menu-subitems li.active{background:#e1e1e1}.mobile-nav{display:none;height:3em;line-height:3em;box-sizing:border-box;border-bottom:1px solid #ccc;cursor:pointer}.mobile-nav:after{content:"";display:inline-block;width:3em;height:3em;background:url(\'data:image/svg+xml;utf8, \');background-size:70%;background-repeat:no-repeat;background-position:center;float:right;vertical-align:middle}.mobile-nav .menu-header{padding:0 10px 0 20px;font-size:0.95em}@media (max-width: 550px){.mobile-nav .menu-header{display:none}}@media (max-width: 1000px){.mobile-nav{display:block}#resources-nav{height:0;overflow-y:auto;transition:all 0.3s ease}#resources-nav .menu-header{display:none}.menu-subitems{height:auto}}.selected-tag{text-transform:capitalize}.selected-endpoint:before{content:"/";padding:0 2px;color:#ccc}.selected-endpoint:empty:before{display:none}.selected-item-info{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;box-sizing:border-box;max-width:350px}@media (max-width: 550px){.selected-item-info{display:inline-block;padding:0 20px;max-width:80%;max-width:calc(100% - 4em)}}\n '],changeDetection:ChangeDetectionStrategy.Default})(SideMenu)||SideMenu}(BaseComponent),_export("default",SideMenu)}}}),$__System.registerDynamic("be",["bf","c0","c1","c2","c3","c4","c5","c6"],!0,function($__require,exports,module){"use strict";var ctx=$__require("bf"),$export=$__require("c0"),toObject=$__require("c1"),call=$__require("c2"),isArrayIter=$__require("c3"),toLength=$__require("c4"),getIterFn=$__require("c5");return $export($export.S+$export.F*!$__require("c6")(function(iter){Array.from(iter)}),"Array",{from:function(arrayLike){var length,result,step,iterator,O=toObject(arrayLike),C="function"==typeof this?this:Array,$$=arguments,$$len=$$.length,mapfn=$$len>1?$$[1]:void 0,mapping=void 0!==mapfn,index=0,iterFn=getIterFn(O);if(mapping&&(mapfn=ctx(mapfn,$$len>2?$$[2]:void 0,2)),void 0==iterFn||C==Array&&isArrayIter(iterFn))for(length=toLength(O.length),result=new C(length);length>index;index++)result[index]=mapping?mapfn(O[index],index):O[index];else for(iterator=iterFn.call(O),result=new C;!(step=iterator.next()).done;index++)result[index]=mapping?call(iterator,mapfn,[step.value,index],!0):step.value;return result.length=index,result}}),module.exports}),$__System.registerDynamic("c7",["33","be","30"],!0,function($__require,exports,module){return $__require("33"),$__require("be"),module.exports=$__require("30").Array.from,module.exports}),$__System.registerDynamic("1c",["c7"],!0,function($__require,exports,module){return module.exports={"default":$__require("c7"),__esModule:!0},module.exports}),$__System.registerDynamic("c8",["1c"],!0,function($__require,exports,module){"use strict";var _Array$from=$__require("1c")["default"];return exports["default"]=function(arr){if(Array.isArray(arr)){for(var i=0,arr2=Array(arr.length);ii;)args.push(arguments[i++]);return queue[++counter]=function(){invoke("function"==typeof fn?fn:Function(fn),args)},defer(counter),counter},clearTask=function(id){delete queue[id]},"process"==$__require("d3")(process)?defer=function(id){process.nextTick(ctx(run,id,1))}:MessageChannel?(channel=new MessageChannel,port=channel.port2,channel.port1.onmessage=listner,defer=ctx(port.postMessage,port,1)):global.addEventListener&&"function"==typeof postMessage&&!global.importScripts?(defer=function(id){global.postMessage(id+"","*")},global.addEventListener("message",listner,!1)):defer=ONREADYSTATECHANGE in cel("script")?function(id){html.appendChild(cel("script"))[ONREADYSTATECHANGE]=function(){html.removeChild(this),run.call(id)}}:function(id){setTimeout(ctx(run,id,1),0)}),module.exports={set:setTask,clear:clearTask}}($__require("d4")),module.exports}),$__System.registerDynamic("d5",["cf","d2","d3","d4"],!0,function($__require,exports,module){return function(process){var head,last,notify,global=$__require("cf"),macrotask=$__require("d2").set,Observer=global.MutationObserver||global.WebKitMutationObserver,process=global.process,Promise=global.Promise,isNode="process"==$__require("d3")(process),flush=function(){var parent,domain,fn;for(isNode&&(parent=process.domain)&&(process.domain=null,parent.exit());head;)domain=head.domain,fn=head.fn,domain&&domain.enter(),fn(),domain&&domain.exit(),head=head.next;last=void 0,parent&&parent.enter()};if(isNode)notify=function(){process.nextTick(flush)};else if(Observer){var toggle=1,node=document.createTextNode("");new Observer(flush).observe(node,{characterData:!0}),notify=function(){node.data=toggle=-toggle}}else notify=Promise&&Promise.resolve?function(){Promise.resolve().then(flush)}:function(){macrotask.call(global,flush)};module.exports=function(fn){var task={fn:fn,next:void 0,domain:isNode&&process.domain};last&&(last.next=task),head||(head=task,notify()),last=task}}($__require("d4")),module.exports}),$__System.registerDynamic("c6",["2e"],!0,function($__require,exports,module){var ITERATOR=$__require("2e")("iterator"),SAFE_CLOSING=!1;try{var riter=[7][ITERATOR]();riter["return"]=function(){SAFE_CLOSING=!0},Array.from(riter,function(){throw 2})}catch(e){}return module.exports=function(exec,skipClosing){if(!skipClosing&&!SAFE_CLOSING)return!1;var safe=!1;try{var arr=[7],iter=arr[ITERATOR]();iter.next=function(){safe=!0},arr[ITERATOR]=function(){return iter},exec(arr)}catch(e){}return safe},module.exports}),$__System.registerDynamic("d6",["d7","d8","cf","bf","2d","c0","d1","cb","cc","d9","da","db","c9","2e","ca","d5","dc","dd","de","df","30","c6","d4"],!0,function($__require,exports,module){return function(process){"use strict";var Wrapper,$=$__require("d7"),LIBRARY=$__require("d8"),global=$__require("cf"),ctx=$__require("bf"),classof=$__require("2d"),$export=$__require("c0"),isObject=$__require("d1"),anObject=$__require("cb"),aFunction=$__require("cc"),strictNew=$__require("d9"),forOf=$__require("da"),setProto=$__require("db").set,same=$__require("c9"),SPECIES=$__require("2e")("species"),speciesConstructor=$__require("ca"),asap=$__require("d5"),PROMISE="Promise",process=global.process,isNode="process"==classof(process),P=global[PROMISE],testResolve=function(sub){var test=new P(function(){});return sub&&(test.constructor=Object),P.resolve(test)===test},USE_NATIVE=function(){function P2(x){var self=new P(x);return setProto(self,P2.prototype),self}var works=!1;try{if(works=P&&P.resolve&&testResolve(),setProto(P2,P),P2.prototype=$.create(P.prototype,{constructor:{value:P2}}),P2.resolve(5).then(function(){})instanceof P2||(works=!1),works&&$__require("dc")){var thenableThenGotten=!1;P.resolve($.setDesc({},"then",{get:function(){thenableThenGotten=!0}})),works=thenableThenGotten}}catch(e){works=!1}return works}(),sameConstructor=function(a,b){return LIBRARY&&a===P&&b===Wrapper?!0:same(a,b)},getConstructor=function(C){var S=anObject(C)[SPECIES];return void 0!=S?S:C},isThenable=function(it){var then;return isObject(it)&&"function"==typeof(then=it.then)?then:!1},PromiseCapability=function(C){var resolve,reject;this.promise=new C(function($$resolve,$$reject){if(void 0!==resolve||void 0!==reject)throw TypeError("Bad Promise constructor");resolve=$$resolve,reject=$$reject}),this.resolve=aFunction(resolve),this.reject=aFunction(reject)},perform=function(exec){try{exec()}catch(e){return{error:e}}},notify=function(record,isReject){if(!record.n){record.n=!0;var chain=record.c;asap(function(){for(var value=record.v,ok=1==record.s,i=0,run=function(reaction){var result,then,handler=ok?reaction.ok:reaction.fail,resolve=reaction.resolve,reject=reaction.reject;try{handler?(ok||(record.h=!0),result=handler===!0?value:handler(value),result===reaction.promise?reject(TypeError("Promise-chain cycle")):(then=isThenable(result))?then.call(result,resolve,reject):resolve(result)):reject(value)}catch(e){reject(e)}};chain.length>i;)run(chain[i++]);chain.length=0,record.n=!1,isReject&&setTimeout(function(){var handler,console,promise=record.p;isUnhandled(promise)&&(isNode?process.emit("unhandledRejection",value,promise):(handler=global.onunhandledrejection)?handler({promise:promise,reason:value}):(console=global.console)&&console.error&&console.error("Unhandled promise rejection",value)),record.a=void 0},1)})}},isUnhandled=function(promise){var reaction,record=promise._d,chain=record.a||record.c,i=0;if(record.h)return!1;for(;chain.length>i;)if(reaction=chain[i++],reaction.fail||!isUnhandled(reaction.promise))return!1;return!0},$reject=function(value){var record=this;record.d||(record.d=!0,record=record.r||record,record.v=value,record.s=2,record.a=record.c.slice(),notify(record,!0))},$resolve=function(value){var then,record=this;if(!record.d){record.d=!0,record=record.r||record;try{if(record.p===value)throw TypeError("Promise can't be resolved itself");(then=isThenable(value))?asap(function(){var wrapper={r:record,d:!1};try{then.call(value,ctx($resolve,wrapper,1),ctx($reject,wrapper,1))}catch(e){$reject.call(wrapper,e)}}):(record.v=value,record.s=1,notify(record,!1))}catch(e){$reject.call({r:record,d:!1},e)}}};USE_NATIVE||(P=function(executor){aFunction(executor);var record=this._d={p:strictNew(this,P,PROMISE),c:[],a:void 0,s:0,d:!1,v:void 0,h:!1,n:!1};try{executor(ctx($resolve,record,1),ctx($reject,record,1))}catch(err){$reject.call(record,err)}},$__require("dd")(P.prototype,{then:function(onFulfilled,onRejected){var reaction=new PromiseCapability(speciesConstructor(this,P)),promise=reaction.promise,record=this._d;return reaction.ok="function"==typeof onFulfilled?onFulfilled:!0,reaction.fail="function"==typeof onRejected&&onRejected,record.c.push(reaction),record.a&&record.a.push(reaction),record.s&¬ify(record,!1),promise},"catch":function(onRejected){return this.then(void 0,onRejected)}})),$export($export.G+$export.W+$export.F*!USE_NATIVE,{Promise:P}),$__require("de")(P,PROMISE),$__require("df")(PROMISE),Wrapper=$__require("30")[PROMISE],$export($export.S+$export.F*!USE_NATIVE,PROMISE,{reject:function(r){var capability=new PromiseCapability(this),$$reject=capability.reject;return $$reject(r),capability.promise}}),$export($export.S+$export.F*(!USE_NATIVE||testResolve(!0)),PROMISE,{resolve:function(x){if(x instanceof P&&sameConstructor(x.constructor,this))return x;var capability=new PromiseCapability(this),$$resolve=capability.resolve;return $$resolve(x),capability.promise}}),$export($export.S+$export.F*!(USE_NATIVE&&$__require("c6")(function(iter){P.all(iter)["catch"](function(){})})),PROMISE,{all:function(iterable){var C=getConstructor(this),capability=new PromiseCapability(C),resolve=capability.resolve,reject=capability.reject,values=[],abrupt=perform(function(){forOf(iterable,!1,values.push,values);var remaining=values.length,results=Array(remaining);remaining?$.each.call(values,function(promise,index){var alreadyCalled=!1;C.resolve(promise).then(function(value){alreadyCalled||(alreadyCalled=!0,results[index]=value,--remaining||resolve(results))},reject)}):resolve(results)});return abrupt&&reject(abrupt.error),capability.promise},race:function(iterable){var C=getConstructor(this),capability=new PromiseCapability(C),reject=capability.reject,abrupt=perform(function(){forOf(iterable,!1,function(promise){C.resolve(promise).then(capability.resolve,reject)})});return abrupt&&reject(abrupt.error),capability.promise}})}($__require("d4")),module.exports}),$__System.registerDynamic("e0",["e1","33","32","d6","30"],!0,function($__require,exports,module){return $__require("e1"),$__require("33"),$__require("32"),$__require("d6"),module.exports=$__require("30").Promise,module.exports}),$__System.registerDynamic("e2",["e0"],!0,function($__require,exports,module){return module.exports={"default":$__require("e0"),__esModule:!0},module.exports}),$__System.registerDynamic("e3",["cb","c5","30"],!0,function($__require,exports,module){var anObject=$__require("cb"),get=$__require("c5");return module.exports=$__require("30").getIterator=function(it){var iterFn=get(it);if("function"!=typeof iterFn)throw TypeError(it+" is not iterable!");return anObject(iterFn.call(it))},module.exports}),$__System.registerDynamic("e4",["32","33","e3"],!0,function($__require,exports,module){return $__require("32"),$__require("33"),module.exports=$__require("e3"),module.exports}),$__System.registerDynamic("35",["e4"],!0,function($__require,exports,module){return module.exports={"default":$__require("e4"),__esModule:!0},module.exports}),$__System.registerDynamic("e5",["e6","e7"],!0,function($__require,exports,module){"use strict";var strong=$__require("e6");return $__require("e7")("Map",function(get){return function(){return get(this,arguments.length>0?arguments[0]:void 0)}},{get:function(key){var entry=strong.getEntry(this,key);return entry&&entry.v},set:function(key,value){return strong.def(this,0===key?0:key,value)}},strong,!0),module.exports}),$__System.registerDynamic("e8",["c0","e9"],!0,function($__require,exports,module){var $export=$__require("c0");return $export($export.P,"Map",{toJSON:$__require("e9")("Map")}),module.exports}),$__System.registerDynamic("ea",["e1","33","32","e5","e8","30"],!0,function($__require,exports,module){return $__require("e1"),$__require("33"),$__require("32"),$__require("e5"),$__require("e8"),module.exports=$__require("30").Map,module.exports}),$__System.registerDynamic("eb",["ea"],!0,function($__require,exports,module){return module.exports={"default":$__require("ea"),__esModule:!0},module.exports}),$__System.registerDynamic("ec",[],!0,function($__require,exports,module){return"function"!=typeof Number.isFinite&&(Number.isFinite=function(value){return"number"!=typeof value?!1:value===value&&value!==1/0&&value!==-(1/0)}),module.exports}),$__System.registerDynamic("ed",["ee","ef","f0","f1","d4"],!0,function($__require,exports,module){return function(process){"use strict";function decodeJSONPointer(str){return decodeURIComponent(str).replace(/~[0-1]/g,function(x){return"~1"===x?"/":"~"})}function getRemotePath(uri){var io=uri.indexOf("#");return-1===io?uri:uri.slice(0,io)}function getQueryPath(uri){var io=uri.indexOf("#"),res=-1===io?void 0:uri.slice(io+1);return res}function findId(schema,id){if("object"==typeof schema&&null!==schema){if(!id)return schema;if(schema.id&&(schema.id===id||"#"===schema.id[0]&&schema.id.substring(1)===id))return schema;var idx,result;if(Array.isArray(schema)){for(idx=schema.length;idx--;)if(result=findId(schema[idx],id))return result}else{var keys=Object.keys(schema);for(idx=keys.length;idx--;){var k=keys[idx];if(0!==k.indexOf("__$")&&(result=findId(schema[k],id)))return result}}}}var Report=$__require("ee"),SchemaCompilation=$__require("ef"),SchemaValidation=$__require("f0"),Utils=$__require("f1");exports.cacheSchemaByUri=function(uri,schema){var remotePath=getRemotePath(uri);remotePath&&(this.cache[remotePath]=schema)},exports.removeFromCacheByUri=function(uri){var remotePath=getRemotePath(uri);remotePath&&delete this.cache[remotePath]},exports.checkCacheForUri=function(uri){var remotePath=getRemotePath(uri);return remotePath?null!=this.cache[remotePath]:!1},exports.getSchema=function(report,schema){return"object"==typeof schema&&(schema=exports.getSchemaByReference.call(this,report,schema)),"string"==typeof schema&&(schema=exports.getSchemaByUri.call(this,report,schema)),schema},exports.getSchemaByReference=function(report,key){for(var i=this.referenceCache.length;i--;)if(this.referenceCache[i][0]===key)return this.referenceCache[i][1];var schema=Utils.cloneDeep(key);return this.referenceCache.push([key,schema]),schema},exports.getSchemaByUri=function(report,uri,root){var remotePath=getRemotePath(uri),queryPath=getQueryPath(uri),result=remotePath?this.cache[remotePath]:root;if(result&&remotePath){var compileRemote=result!==root;if(compileRemote){report.path.push(remotePath);var remoteReport=new Report(report);SchemaCompilation.compileSchema.call(this,remoteReport,result)&&SchemaValidation.validateSchema.call(this,remoteReport,result);var remoteReportIsValid=remoteReport.isValid();if(remoteReportIsValid||report.addError("REMOTE_NOT_VALID",[uri],remoteReport),report.path.pop(),!remoteReportIsValid)return}}if(result&&queryPath)for(var parts=queryPath.split("/"),idx=0,lim=parts.length;result&&lim>idx;idx++){var key=decodeJSONPointer(parts[idx]);result=0===idx?findId(result,key):result[key]}return result},exports.getRemotePath=getRemotePath}($__require("d4")),module.exports}),$__System.registerDynamic("ef",["ee","ed","f1"],!0,function($__require,exports,module){"use strict";function mergeReference(scope,ref){if(Utils.isAbsoluteUri(ref))return ref;var toRemove,joinedScope=scope.join(""),isScopeAbsolute=Utils.isAbsoluteUri(joinedScope),isScopeRelative=Utils.isRelativeUri(joinedScope),isRefRelative=Utils.isRelativeUri(ref);isScopeAbsolute&&isRefRelative?(toRemove=joinedScope.match(/\/[^\/]*$/),toRemove&&(joinedScope=joinedScope.slice(0,toRemove.index+1))):isScopeRelative&&isRefRelative?joinedScope="":(toRemove=joinedScope.match(/[^#\/]+$/),toRemove&&(joinedScope=joinedScope.slice(0,toRemove.index)));var res=joinedScope+ref;return res=res.replace(/##/,"#")}function collectReferences(obj,results,scope,path){if(results=results||[],scope=scope||[],path=path||[],"object"!=typeof obj||null===obj)return results;"string"==typeof obj.id&&scope.push(obj.id),"string"==typeof obj.$ref&&"undefined"==typeof obj.__$refResolved&&results.push({ref:mergeReference(scope,obj.$ref),key:"$ref",obj:obj,path:path.slice(0)}),"string"==typeof obj.$schema&&"undefined"==typeof obj.__$schemaResolved&&results.push({
ref:mergeReference(scope,obj.$schema),key:"$schema",obj:obj,path:path.slice(0)});var idx;if(Array.isArray(obj))for(idx=obj.length;idx--;)path.push(idx.toString()),collectReferences(obj[idx],results,scope,path),path.pop();else{var keys=Object.keys(obj);for(idx=keys.length;idx--;)0!==keys[idx].indexOf("__$")&&(path.push(keys[idx]),collectReferences(obj[keys[idx]],results,scope,path),path.pop())}return"string"==typeof obj.id&&scope.pop(),results}function findId(arr,id){for(var idx=arr.length;idx--;)if(arr[idx].id===id)return arr[idx];return null}var Report=$__require("ee"),SchemaCache=$__require("ed"),Utils=$__require("f1"),compileArrayOfSchemasLoop=function(mainReport,arr){for(var idx=arr.length,compiledCount=0;idx--;){var report=new Report(mainReport),isValid=exports.compileSchema.call(this,report,arr[idx]);isValid&&compiledCount++,mainReport.errors=mainReport.errors.concat(report.errors)}return compiledCount},compileArrayOfSchemas=function(report,arr){var lastLoopCompiled,compiled=0;do{for(var idx=report.errors.length;idx--;)"UNRESOLVABLE_REFERENCE"===report.errors[idx].code&&report.errors.splice(idx,1);for(lastLoopCompiled=compiled,compiled=compileArrayOfSchemasLoop.call(this,report,arr),idx=arr.length;idx--;){var sch=arr[idx];if(sch.__$missingReferences){for(var idx2=sch.__$missingReferences.length;idx2--;){var refObj=sch.__$missingReferences[idx2],response=findId(arr,refObj.ref);response&&(refObj.obj["__"+refObj.key+"Resolved"]=response,sch.__$missingReferences.splice(idx2,1))}0===sch.__$missingReferences.length&&delete sch.__$missingReferences}}}while(compiled!==arr.length&&compiled!==lastLoopCompiled);return report.isValid()};return exports.compileSchema=function(report,schema){if(report.commonErrorMessage="SCHEMA_COMPILATION_FAILED","string"==typeof schema){var loadedSchema=SchemaCache.getSchemaByUri.call(this,report,schema);if(!loadedSchema)return report.addError("SCHEMA_NOT_REACHABLE",[schema]),!1;schema=loadedSchema}if(Array.isArray(schema))return compileArrayOfSchemas.call(this,report,schema);if(schema.__$compiled&&schema.id&&SchemaCache.checkCacheForUri.call(this,schema.id)===!1&&(schema.__$compiled=void 0),schema.__$compiled)return!0;schema.id&&"string"==typeof schema.id&&SchemaCache.cacheSchemaByUri.call(this,schema.id,schema);var isRoot=!1;report.rootSchema||(report.rootSchema=schema,isRoot=!0);var isValidExceptReferences=report.isValid();delete schema.__$missingReferences;for(var refs=collectReferences.call(this,schema),idx=refs.length;idx--;){var refObj=refs[idx],response=SchemaCache.getSchemaByUri.call(this,report,refObj.ref,schema);if(!response){var schemaReader=this.getSchemaReader();if(schemaReader){var s=schemaReader(refObj.ref);if(s){s.id=refObj.ref;var subreport=new Report(report);exports.compileSchema.call(this,subreport,s)?response=SchemaCache.getSchemaByUri.call(this,report,refObj.ref,schema):report.errors=report.errors.concat(subreport.errors)}}}if(!response){var hasNotValid=report.hasError("REMOTE_NOT_VALID",[refObj.ref]),isAbsolute=Utils.isAbsoluteUri(refObj.ref),isDownloaded=!1,ignoreUnresolvableRemotes=this.options.ignoreUnresolvableReferences===!0;isAbsolute&&(isDownloaded=SchemaCache.checkCacheForUri.call(this,refObj.ref)),hasNotValid||ignoreUnresolvableRemotes&&isAbsolute||isDownloaded||(Array.prototype.push.apply(report.path,refObj.path),report.addError("UNRESOLVABLE_REFERENCE",[refObj.ref]),report.path=report.path.slice(0,-refObj.path.length),isValidExceptReferences&&(schema.__$missingReferences=schema.__$missingReferences||[],schema.__$missingReferences.push(refObj)))}refObj.obj["__"+refObj.key+"Resolved"]=response}var isValid=report.isValid();return isValid?schema.__$compiled=!0:schema.id&&"string"==typeof schema.id&&SchemaCache.removeFromCacheByUri.call(this,schema.id),isRoot&&(report.rootSchema=void 0),isValid},module.exports}),$__System.registerDynamic("f2",["f3"],!0,function($__require,exports,module){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function toInt(str,radix){return(0,_assertString2["default"])(str),parseInt(str,radix||10)}Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=toInt;var _assertString=$__require("f3"),_assertString2=_interopRequireDefault(_assertString);return module.exports=exports["default"],module.exports}),$__System.registerDynamic("f4",["f3"],!0,function($__require,exports,module){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function toBoolean(str,strict){return(0,_assertString2["default"])(str),strict?"1"===str||"true"===str:"0"!==str&&"false"!==str&&""!==str}Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=toBoolean;var _assertString=$__require("f3"),_assertString2=_interopRequireDefault(_assertString);return module.exports=exports["default"],module.exports}),$__System.registerDynamic("f5",["f3"],!0,function($__require,exports,module){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function equals(str,comparison){return(0,_assertString2["default"])(str),str===comparison}Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=equals;var _assertString=$__require("f3"),_assertString2=_interopRequireDefault(_assertString);return module.exports=exports["default"],module.exports}),$__System.registerDynamic("f6",["f3","f7"],!0,function($__require,exports,module){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function contains(str,elem){return(0,_assertString2["default"])(str),str.indexOf((0,_toString2["default"])(elem))>=0}Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=contains;var _assertString=$__require("f3"),_assertString2=_interopRequireDefault(_assertString),_toString=$__require("f7"),_toString2=_interopRequireDefault(_toString);return module.exports=exports["default"],module.exports}),$__System.registerDynamic("f8",["f3"],!0,function($__require,exports,module){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function matches(str,pattern,modifiers){return(0,_assertString2["default"])(str),"[object RegExp]"!==Object.prototype.toString.call(pattern)&&(pattern=new RegExp(pattern,modifiers)),pattern.test(str)}Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=matches;var _assertString=$__require("f3"),_assertString2=_interopRequireDefault(_assertString);return module.exports=exports["default"],module.exports}),$__System.registerDynamic("f9",["f3","fa","fb","fc"],!0,function($__require,exports,module){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function isURL(url,options){if((0,_assertString2["default"])(url),!url||url.length>=2083||/\s/.test(url))return!1;if(0===url.indexOf("mailto:"))return!1;options=(0,_merge2["default"])(options,default_url_options);var protocol=void 0,auth=void 0,host=void 0,hostname=void 0,port=void 0,port_str=void 0,split=void 0;if(split=url.split("#"),url=split.shift(),split=url.split("?"),url=split.shift(),split=url.split("://"),split.length>1){if(protocol=split.shift(),options.require_valid_protocol&&-1===options.protocols.indexOf(protocol))return!1}else{if(options.require_protocol)return!1;options.allow_protocol_relative_urls&&"//"===url.substr(0,2)&&(split[0]=url.substr(2))}return url=split.join("://"),split=url.split("/"),url=split.shift(),split=url.split("@"),split.length>1&&(auth=split.shift(),auth.indexOf(":")>=0&&auth.split(":").length>2)?!1:(hostname=split.join("@"),split=hostname.split(":"),host=split.shift(),split.length&&(port_str=split.join(":"),port=parseInt(port_str,10),!/^[0-9]+$/.test(port_str)||0>=port||port>65535)?!1:(0,_isIP2["default"])(host)||(0,_isFQDN2["default"])(host,options)||"localhost"===host?options.host_whitelist&&-1===options.host_whitelist.indexOf(host)?!1:!options.host_blacklist||-1===options.host_blacklist.indexOf(host):!1)}Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=isURL;var _assertString=$__require("f3"),_assertString2=_interopRequireDefault(_assertString),_isFQDN=$__require("fa"),_isFQDN2=_interopRequireDefault(_isFQDN),_isIP=$__require("fb"),_isIP2=_interopRequireDefault(_isIP),_merge=$__require("fc"),_merge2=_interopRequireDefault(_merge),default_url_options={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1};return module.exports=exports["default"],module.exports}),$__System.registerDynamic("fd",["f3"],!0,function($__require,exports,module){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function isMACAddress(str){return(0,_assertString2["default"])(str),macAddress.test(str)}Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=isMACAddress;var _assertString=$__require("f3"),_assertString2=_interopRequireDefault(_assertString),macAddress=/^([0-9a-fA-F][0-9a-fA-F]:){5}([0-9a-fA-F][0-9a-fA-F])$/;return module.exports=exports["default"],module.exports}),$__System.registerDynamic("fb",["f3"],!0,function($__require,exports,module){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function isIP(str){var version=arguments.length<=1||void 0===arguments[1]?"":arguments[1];if((0,_assertString2["default"])(str),version=String(version),!version)return isIP(str,4)||isIP(str,6);if("4"===version){if(!ipv4Maybe.test(str))return!1;var parts=str.split(".").sort(function(a,b){return a-b});return parts[3]<=255}if("6"===version){var blocks=str.split(":"),foundOmissionBlock=!1,foundIPv4TransitionBlock=isIP(blocks[blocks.length-1],4),expectedNumberOfBlocks=foundIPv4TransitionBlock?7:8;if(blocks.length>expectedNumberOfBlocks)return!1;if("::"===str)return!0;"::"===str.substr(0,2)?(blocks.shift(),blocks.shift(),foundOmissionBlock=!0):"::"===str.substr(str.length-2)&&(blocks.pop(),blocks.pop(),foundOmissionBlock=!0);for(var i=0;i0&&i=1:blocks.length===expectedNumberOfBlocks}return!1}Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=isIP;var _assertString=$__require("f3"),_assertString2=_interopRequireDefault(_assertString),ipv4Maybe=/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/,ipv6Block=/^[0-9A-F]{1,4}$/i;return module.exports=exports["default"],module.exports}),$__System.registerDynamic("fe",["f3"],!0,function($__require,exports,module){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function isBoolean(str){return(0,_assertString2["default"])(str),["true","false","1","0"].indexOf(str)>=0}Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=isBoolean;var _assertString=$__require("f3"),_assertString2=_interopRequireDefault(_assertString);return module.exports=exports["default"],module.exports}),$__System.registerDynamic("ff",["f3","100"],!0,function($__require,exports,module){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function isAlpha(str){var locale=arguments.length<=1||void 0===arguments[1]?"en-US":arguments[1];if((0,_assertString2["default"])(str),locale in _alpha.alpha)return _alpha.alpha[locale].test(str);throw new Error("Invalid locale '"+locale+"'")}Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=isAlpha;var _assertString=$__require("f3"),_assertString2=_interopRequireDefault(_assertString),_alpha=$__require("100");return module.exports=exports["default"],module.exports}),$__System.registerDynamic("100",[],!0,function($__require,exports,module){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});for(var locale,alpha=exports.alpha={"en-US":/^[A-Z]+$/i,"cs-CZ":/^[A-Zรฤฤรฤรลรลล ลครลฎรลฝ]+$/i,"de-DE":/^[A-Zรรรร]+$/i,"es-ES":/^[A-Zรรรรรรร]+$/i,"fr-FR":/^[A-Zรรรรรรรรรรรลรรรลธ]+$/i,"nl-NL":/^[A-Zรรรรรร]+$/i,"pl-PL":/^[A-Zฤฤฤลลลรลปลน]+$/i,"pt-PT":/^[A-Zรรรรรรรรรรรรร]+$/i,"ru-RU":/^[ะ-ะฏะะฐ-ัั]+$/i,"tr-TR":/^[A-Zรฤฤฐฤฑรลร]+$/i,ar:/^[ุกุขุฃุคุฅุฆุงุจุฉุชุซุฌุญุฎุฏุฐุฑุฒุณุดุตุถุทุธุนุบููููู
ููููููููููููููฐ]+$/},alphanumeric=exports.alphanumeric={"en-US":/^[0-9A-Z]+$/i,"cs-CZ":/^[0-9A-Zรฤฤรฤรลรลล ลครลฎรลฝ]+$/i,"de-DE":/^[0-9A-Zรรรร]+$/i,"es-ES":/^[0-9A-Zรรรรรรร]+$/i,"fr-FR":/^[0-9A-Zรรรรรรรรรรรลรรรลธ]+$/i,"nl-NL":/^[0-9A-Zรรรรรร]+$/i,"pl-PL":/^[0-9A-Zฤฤฤลลลรลปลน]+$/i,"pt-PT":/^[0-9A-Zรรรรรรรรรรรรร]+$/i,"ru-RU":/^[0-9ะ-ะฏะะฐ-ัั]+$/i,"tr-TR":/^[0-9A-Zรฤฤฐฤฑรลร]+$/i,ar:/^[ู ูกูขูฃูคูฅูฆูงูจูฉ0-9ุกุขุฃุคุฅุฆุงุจุฉุชุซุฌุญุฎุฏุฐุฑุฒุณุดุตุถุทุธุนุบููููู
ููููููููููููููฐ]+$/},englishLocales=exports.englishLocales=["AU","GB","HK","IN","NZ","ZA","ZM"],i=0;i=options.min)&&(!options.hasOwnProperty("max")||str<=options.max)}Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=isInt;var _assertString=$__require("f3"),_assertString2=_interopRequireDefault(_assertString),int=/^(?:[-+]?(?:0|[1-9][0-9]*))$/;return module.exports=exports["default"],module.exports}),$__System.registerDynamic("10c",["f3"],!0,function($__require,exports,module){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function isFloat(str,options){return(0,_assertString2["default"])(str),options=options||{},""===str||"."===str?!1:float.test(str)&&(!options.hasOwnProperty("min")||str>=options.min)&&(!options.hasOwnProperty("max")||str<=options.max)}Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=isFloat;var _assertString=$__require("f3"),_assertString2=_interopRequireDefault(_assertString),float=/^(?:[-+]?(?:[0-9]+))?(?:\.[0-9]*)?(?:[eE][\+\-]?(?:[0-9]+))?$/;return module.exports=exports["default"],module.exports}),$__System.registerDynamic("10d",["f3"],!0,function($__require,exports,module){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function isDecimal(str){return(0,_assertString2["default"])(str),""!==str&&decimal.test(str)}Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=isDecimal;var _assertString=$__require("f3"),_assertString2=_interopRequireDefault(_assertString),decimal=/^[-+]?([0-9]+|\.[0-9]+|[0-9]+\.[0-9]+)$/;return module.exports=exports["default"],module.exports}),$__System.registerDynamic("10e",["f3"],!0,function($__require,exports,module){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function toFloat(str){return(0,_assertString2["default"])(str),parseFloat(str)}Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=toFloat;var _assertString=$__require("f3"),_assertString2=_interopRequireDefault(_assertString);return module.exports=exports["default"],module.exports}),$__System.registerDynamic("10f",["f3","10e"],!0,function($__require,exports,module){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function isDivisibleBy(str,num){return(0,_assertString2["default"])(str),(0,_toFloat2["default"])(str)%parseInt(num,10)===0}Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=isDivisibleBy;var _assertString=$__require("f3"),_assertString2=_interopRequireDefault(_assertString),_toFloat=$__require("10e"),_toFloat2=_interopRequireDefault(_toFloat);return module.exports=exports["default"],module.exports}),$__System.registerDynamic("110",["f3"],!0,function($__require,exports,module){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function isHexColor(str){return(0,_assertString2["default"])(str),hexcolor.test(str)}Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=isHexColor;var _assertString=$__require("f3"),_assertString2=_interopRequireDefault(_assertString),hexcolor=/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i;return module.exports=exports["default"],module.exports}),$__System.registerDynamic("111",["f3"],!0,function($__require,exports,module){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function isJSON(str){(0,_assertString2["default"])(str);try{var obj=JSON.parse(str);return!!obj&&"object"===("undefined"==typeof obj?"undefined":_typeof(obj))}catch(e){}return!1}Object.defineProperty(exports,"__esModule",{value:!0});var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol?"symbol":typeof obj};exports["default"]=isJSON;var _assertString=$__require("f3"),_assertString2=_interopRequireDefault(_assertString);return module.exports=exports["default"],module.exports}),$__System.registerDynamic("112",["f3"],!0,function($__require,exports,module){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function isNull(str){return(0,_assertString2["default"])(str),0===str.length}Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=isNull;var _assertString=$__require("f3"),_assertString2=_interopRequireDefault(_assertString);return module.exports=exports["default"],module.exports}),$__System.registerDynamic("113",["f3"],!0,function($__require,exports,module){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function isLength(str,options){(0,_assertString2["default"])(str);var min=void 0,max=void 0;"object"===("undefined"==typeof options?"undefined":_typeof(options))?(min=options.min||0,max=options.max):(min=arguments[1],max=arguments[2]);var surrogatePairs=str.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g)||[],len=str.length-surrogatePairs.length;return len>=min&&("undefined"==typeof max||max>=len)}Object.defineProperty(exports,"__esModule",{value:!0});var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol?"symbol":typeof obj};exports["default"]=isLength;var _assertString=$__require("f3"),_assertString2=_interopRequireDefault(_assertString);return module.exports=exports["default"],module.exports}),$__System.registerDynamic("114",["f3"],!0,function($__require,exports,module){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function isUUID(str){var version=arguments.length<=1||void 0===arguments[1]?"all":arguments[1];(0,_assertString2["default"])(str);var pattern=uuid[version];return pattern&&pattern.test(str)}Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=isUUID;var _assertString=$__require("f3"),_assertString2=_interopRequireDefault(_assertString),uuid={3:/^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,4:/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,5:/^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,all:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i};return module.exports=exports["default"],module.exports}),$__System.registerDynamic("115",["f3"],!0,function($__require,exports,module){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function isHexadecimal(str){return(0,_assertString2["default"])(str),hexadecimal.test(str)}Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=isHexadecimal;var _assertString=$__require("f3"),_assertString2=_interopRequireDefault(_assertString),hexadecimal=/^[0-9A-F]+$/i;return module.exports=exports["default"],module.exports}),$__System.registerDynamic("116",["f3","115"],!0,function($__require,exports,module){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function isMongoId(str){return(0,_assertString2["default"])(str),(0,_isHexadecimal2["default"])(str)&&24===str.length}Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=isMongoId;var _assertString=$__require("f3"),_assertString2=_interopRequireDefault(_assertString),_isHexadecimal=$__require("115"),_isHexadecimal2=_interopRequireDefault(_isHexadecimal);return module.exports=exports["default"],module.exports}),$__System.registerDynamic("117",["f3","118"],!0,function($__require,exports,module){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function getTimezoneOffset(str){var iso8601Parts=str.match(_isISO.iso8601),timezone=void 0,sign=void 0,hours=void 0,minutes=void 0;if(iso8601Parts){if(timezone=iso8601Parts[21],!timezone)return iso8601Parts[12]?null:0;if("z"===timezone||"Z"===timezone)return 0;sign=iso8601Parts[22],-1!==timezone.indexOf(":")?(hours=parseInt(iso8601Parts[23],10),minutes=parseInt(iso8601Parts[24],10)):(hours=0,minutes=parseInt(iso8601Parts[23],10))}else{if(str=str.toLowerCase(),timezone=str.match(/(?:\s|gmt\s*)(-|\+)(\d{1,4})(\s|$)/),!timezone)return-1!==str.indexOf("gmt")?0:null;sign=timezone[1];var offset=timezone[2];3===offset.length&&(offset="0"+offset),offset.length<=2?(hours=0,minutes=parseInt(offset,10)):(hours=parseInt(offset.slice(0,2),10),minutes=parseInt(offset.slice(2,4),10))}return(60*hours+minutes)*("-"===sign?1:-1)}function isDate(str){(0,_assertString2["default"])(str);var normalizedDate=new Date(Date.parse(str));if(isNaN(normalizedDate))return!1;var timezoneOffset=getTimezoneOffset(str);if(null!==timezoneOffset){var timezoneDifference=normalizedDate.getTimezoneOffset()-timezoneOffset;normalizedDate=new Date(normalizedDate.getTime()+6e4*timezoneDifference)}var day=String(normalizedDate.getDate()),dayOrYear=void 0,dayOrYearMatches=void 0,year=void 0;return(dayOrYearMatches=str.match(/(^|[^:\d])[23]\d([^:\d]|$)/g))?(dayOrYear=dayOrYearMatches.map(function(digitString){return digitString.match(/\d+/g)[0]}).join("/"),year=String(normalizedDate.getFullYear()).slice(-2),dayOrYear===day||dayOrYear===year?!0:dayOrYear===""+day/year||dayOrYear===""+year/day):!0}Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=isDate;var _assertString=$__require("f3"),_assertString2=_interopRequireDefault(_assertString),_isISO=$__require("118");return module.exports=exports["default"],module.exports}),$__System.registerDynamic("119",["f3","11a"],!0,function($__require,exports,module){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function isAfter(str){var date=arguments.length<=1||void 0===arguments[1]?String(new Date):arguments[1];(0,_assertString2["default"])(str);var comparison=(0,_toDate2["default"])(date),original=(0,_toDate2["default"])(str);return!!(original&&comparison&&original>comparison)}Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=isAfter;var _assertString=$__require("f3"),_assertString2=_interopRequireDefault(_assertString),_toDate=$__require("11a"),_toDate2=_interopRequireDefault(_toDate);return module.exports=exports["default"],module.exports}),$__System.registerDynamic("11a",["f3"],!0,function($__require,exports,module){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function toDate(date){return(0,_assertString2["default"])(date),date=Date.parse(date),isNaN(date)?null:new Date(date)}Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=toDate;var _assertString=$__require("f3"),_assertString2=_interopRequireDefault(_assertString);return module.exports=exports["default"],module.exports}),$__System.registerDynamic("11b",["f3","11a"],!0,function($__require,exports,module){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function isBefore(str){var date=arguments.length<=1||void 0===arguments[1]?String(new Date):arguments[1];(0,_assertString2["default"])(str);var comparison=(0,_toDate2["default"])(date),original=(0,_toDate2["default"])(str);return!!(original&&comparison&&comparison>original)}Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=isBefore;var _assertString=$__require("f3"),_assertString2=_interopRequireDefault(_assertString),_toDate=$__require("11a"),_toDate2=_interopRequireDefault(_toDate);return module.exports=exports["default"],module.exports}),$__System.registerDynamic("11c",["f3","f7"],!0,function($__require,exports,module){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function isIn(str,options){(0,_assertString2["default"])(str);var i=void 0;if("[object Array]"===Object.prototype.toString.call(options)){var array=[];for(i in options)({}).hasOwnProperty.call(options,i)&&(array[i]=(0,_toString2["default"])(options[i]));return array.indexOf(str)>=0}return"object"===("undefined"==typeof options?"undefined":_typeof(options))?options.hasOwnProperty(str):options&&"function"==typeof options.indexOf?options.indexOf(str)>=0:!1}Object.defineProperty(exports,"__esModule",{value:!0});var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol?"symbol":typeof obj};exports["default"]=isIn;var _assertString=$__require("f3"),_assertString2=_interopRequireDefault(_assertString),_toString=$__require("f7"),_toString2=_interopRequireDefault(_toString);return module.exports=exports["default"],module.exports}),$__System.registerDynamic("11d",["f3"],!0,function($__require,exports,module){"use strict";function _interopRequireDefault(obj){
return obj&&obj.__esModule?obj:{"default":obj}}function isCreditCard(str){(0,_assertString2["default"])(str);var sanitized=str.replace(/[^0-9]+/g,"");if(!creditCard.test(sanitized))return!1;for(var sum=0,digit=void 0,tmpNum=void 0,shouldDouble=void 0,i=sanitized.length-1;i>=0;i--)digit=sanitized.substring(i,i+1),tmpNum=parseInt(digit,10),shouldDouble?(tmpNum*=2,sum+=tmpNum>=10?tmpNum%10+1:tmpNum):sum+=tmpNum,shouldDouble=!shouldDouble;return!!(sum%10===0?sanitized:!1)}Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=isCreditCard;var _assertString=$__require("f3"),_assertString2=_interopRequireDefault(_assertString),creditCard=/^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$/;return module.exports=exports["default"],module.exports}),$__System.registerDynamic("11e",["f3"],!0,function($__require,exports,module){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function isISIN(str){if((0,_assertString2["default"])(str),!isin.test(str))return!1;for(var checksumStr=str.replace(/[A-Z]/g,function(character){return parseInt(character,36)}),sum=0,digit=void 0,tmpNum=void 0,shouldDouble=!0,i=checksumStr.length-2;i>=0;i--)digit=checksumStr.substring(i,i+1),tmpNum=parseInt(digit,10),shouldDouble?(tmpNum*=2,sum+=tmpNum>=10?tmpNum+1:tmpNum):sum+=tmpNum,shouldDouble=!shouldDouble;return parseInt(str.substr(str.length-1),10)===(1e4-sum)%10}Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=isISIN;var _assertString=$__require("f3"),_assertString2=_interopRequireDefault(_assertString),isin=/^[A-Z]{2}[0-9A-Z]{9}[0-9]$/;return module.exports=exports["default"],module.exports}),$__System.registerDynamic("11f",["f3"],!0,function($__require,exports,module){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function isISBN(str){var version=arguments.length<=1||void 0===arguments[1]?"":arguments[1];if((0,_assertString2["default"])(str),version=String(version),!version)return isISBN(str,10)||isISBN(str,13);var sanitized=str.replace(/[\s-]+/g,""),checksum=0,i=void 0;if("10"===version){if(!isbn10Maybe.test(sanitized))return!1;for(i=0;9>i;i++)checksum+=(i+1)*sanitized.charAt(i);if(checksum+="X"===sanitized.charAt(9)?100:10*sanitized.charAt(9),checksum%11===0)return!!sanitized}else if("13"===version){if(!isbn13Maybe.test(sanitized))return!1;for(i=0;12>i;i++)checksum+=factor[i%2]*sanitized.charAt(i);if(sanitized.charAt(12)-(10-checksum%10)%10===0)return!!sanitized}return!1}Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=isISBN;var _assertString=$__require("f3"),_assertString2=_interopRequireDefault(_assertString),isbn10Maybe=/^(?:[0-9]{9}X|[0-9]{10})$/,isbn13Maybe=/^(?:[0-9]{13})$/,factor=[1,3];return module.exports=exports["default"],module.exports}),$__System.registerDynamic("120",["f3"],!0,function($__require,exports,module){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function isMobilePhone(str,locale){return(0,_assertString2["default"])(str),locale in phones?phones[locale].test(str):!1}Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=isMobilePhone;var _assertString=$__require("f3"),_assertString2=_interopRequireDefault(_assertString),phones={"ar-SY":/^(!?(\+?963)|0)?9\d{8}$/,"en-US":/^(\+?1)?[2-9]\d{2}[2-9](?!11)\d{6}$/,"cs-CZ":/^(\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"de-DE":/^(\+?49[ \.\-])?([\(]{1}[0-9]{1,6}[\)])?([0-9 \.\-\/]{3,20})((x|ext|extension)[ ]?[0-9]{1,4})?$/,"el-GR":/^(\+?30)?(69\d{8})$/,"en-AU":/^(\+?61|0)4\d{8}$/,"en-GB":/^(\+?44|0)7\d{9}$/,"en-HK":/^(\+?852\-?)?[569]\d{3}\-?\d{4}$/,"en-IN":/^(\+?91|0)?[789]\d{9}$/,"en-NZ":/^(\+?64|0)2\d{7,9}$/,"en-ZA":/^(\+?27|0)\d{9}$/,"en-ZM":/^(\+?26)?09[567]\d{7}$/,"es-ES":/^(\+?34)?(6\d{1}|7[1234])\d{7}$/,"fi-FI":/^(\+?358|0)\s?(4(0|1|2|4|5)?|50)\s?(\d\s?){4,8}\d$/,"fr-FR":/^(\+?33|0)[67]\d{8}$/,"ms-MY":/^(\+?6?01){1}(([145]{1}(\-|\s)?\d{7,8})|([236789]{1}(\s|\-)?\d{7}))$/,"nb-NO":/^(\+?47)?[49]\d{7}$/,"nn-NO":/^(\+?47)?[49]\d{7}$/,"pt-BR":/^(\+?55|0)\-?[1-9]{2}\-?[2-9]{1}\d{3,4}\-?\d{4}$/,"pt-PT":/^(\+?351)?9[1236]\d{7}$/,"ru-RU":/^(\+?7|8)?9\d{9}$/,"tr-TR":/^(\+?90|0)?5\d{9}$/,"vi-VN":/^(\+?84|0)?((1(2([0-9])|6([2-9])|88|99))|(9((?!5)[0-9])))([0-9]{7})$/,"zh-CN":/^(\+?0?86\-?)?((13\d|14[57]|15[^4,\D]|17[678]|18\d)\d{8}|170[059]\d{7})$/,"zh-TW":/^(\+?886\-?|0)?9\d{8}$/};return module.exports=exports["default"],module.exports}),$__System.registerDynamic("121",["fc","f3"],!0,function($__require,exports,module){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function currencyRegex(options){var symbol="(\\"+options.symbol.replace(/\./g,"\\.")+")"+(options.require_symbol?"":"?"),negative="-?",whole_dollar_amount_without_sep="[1-9]\\d*",whole_dollar_amount_with_sep="[1-9]\\d{0,2}(\\"+options.thousands_separator+"\\d{3})*",valid_whole_dollar_amounts=["0",whole_dollar_amount_without_sep,whole_dollar_amount_with_sep],whole_dollar_amount="("+valid_whole_dollar_amounts.join("|")+")?",decimal_amount="(\\"+options.decimal_separator+"\\d{2})?",pattern=whole_dollar_amount+decimal_amount;return options.allow_negatives&&!options.parens_for_negatives&&(options.negative_sign_after_digits?pattern+=negative:options.negative_sign_before_digits&&(pattern=negative+pattern)),options.allow_negative_sign_placeholder?pattern="( (?!\\-))?"+pattern:options.allow_space_after_symbol?pattern=" ?"+pattern:options.allow_space_after_digits&&(pattern+="( (?!$))?"),options.symbol_after_digits?pattern+=symbol:pattern=symbol+pattern,options.allow_negatives&&(options.parens_for_negatives?pattern="(\\("+pattern+"\\)|"+pattern+")":options.negative_sign_before_digits||options.negative_sign_after_digits||(pattern=negative+pattern)),new RegExp("^(?!-? )(?=.*\\d)"+pattern+"$")}function isCurrency(str,options){return(0,_assertString2["default"])(str),options=(0,_merge2["default"])(options,default_currency_options),currencyRegex(options).test(str)}Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=isCurrency;var _merge=$__require("fc"),_merge2=_interopRequireDefault(_merge),_assertString=$__require("f3"),_assertString2=_interopRequireDefault(_assertString),default_currency_options={symbol:"$",require_symbol:!1,allow_space_after_symbol:!1,symbol_after_digits:!1,allow_negatives:!0,parens_for_negatives:!1,negative_sign_before_digits:!1,negative_sign_after_digits:!1,allow_negative_sign_placeholder:!1,thousands_separator:",",decimal_separator:".",allow_space_after_digits:!1};return module.exports=exports["default"],module.exports}),$__System.registerDynamic("118",["f3"],!0,function($__require,exports,module){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.iso8601=void 0,exports["default"]=function(str){return(0,_assertString2["default"])(str),iso8601.test(str)};var _assertString=$__require("f3"),_assertString2=_interopRequireDefault(_assertString),iso8601=exports.iso8601=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24\:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/;return module.exports}),$__System.registerDynamic("122",["f3"],!0,function($__require,exports,module){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function isBase64(str){(0,_assertString2["default"])(str);var len=str.length;if(!len||len%4!==0||notBase64.test(str))return!1;var firstPaddingChar=str.indexOf("=");return-1===firstPaddingChar||firstPaddingChar===len-1||firstPaddingChar===len-2&&"="===str[len-1]}Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=isBase64;var _assertString=$__require("f3"),_assertString2=_interopRequireDefault(_assertString),notBase64=/[^A-Z0-9+\/=]/i;return module.exports=exports["default"],module.exports}),$__System.registerDynamic("123",["f3"],!0,function($__require,exports,module){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function isDataURI(str){return(0,_assertString2["default"])(str),dataURI.test(str)}Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=isDataURI;var _assertString=$__require("f3"),_assertString2=_interopRequireDefault(_assertString),dataURI=/^\s*data:([a-z]+\/[a-z0-9\-\+]+(;[a-z\-]+\=[a-z0-9\-]+)?)?(;base64)?,[a-z0-9\!\$\&\'\,\(\)\*\+\,\;\=\-\.\_\~\:\@\/\?\%\s]*\s*$/i;return module.exports=exports["default"],module.exports}),$__System.registerDynamic("124",["f3"],!0,function($__require,exports,module){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function ltrim(str,chars){(0,_assertString2["default"])(str);var pattern=chars?new RegExp("^["+chars+"]+","g"):/^\s+/g;return str.replace(pattern,"")}Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=ltrim;var _assertString=$__require("f3"),_assertString2=_interopRequireDefault(_assertString);return module.exports=exports["default"],module.exports}),$__System.registerDynamic("125",["f3"],!0,function($__require,exports,module){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function rtrim(str,chars){(0,_assertString2["default"])(str);var pattern=chars?new RegExp("["+chars+"]+$","g"):/\s+$/g;return str.replace(pattern,"")}Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=rtrim;var _assertString=$__require("f3"),_assertString2=_interopRequireDefault(_assertString);return module.exports=exports["default"],module.exports}),$__System.registerDynamic("126",["f3"],!0,function($__require,exports,module){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function trim(str,chars){(0,_assertString2["default"])(str);var pattern=chars?new RegExp("^["+chars+"]+|["+chars+"]+$","g"):/^\s+|\s+$/g;return str.replace(pattern,"")}Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=trim;var _assertString=$__require("f3"),_assertString2=_interopRequireDefault(_assertString);return module.exports=exports["default"],module.exports}),$__System.registerDynamic("127",["f3"],!0,function($__require,exports,module){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function escape(str){return(0,_assertString2["default"])(str),str.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">").replace(/\//g,"/").replace(/\`/g,"`")}Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=escape;var _assertString=$__require("f3"),_assertString2=_interopRequireDefault(_assertString);return module.exports=exports["default"],module.exports}),$__System.registerDynamic("128",["f3"],!0,function($__require,exports,module){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function unescape(str){return(0,_assertString2["default"])(str),str.replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(///g,"/").replace(/`/g,"`")}Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=unescape;var _assertString=$__require("f3"),_assertString2=_interopRequireDefault(_assertString);return module.exports=exports["default"],module.exports}),$__System.registerDynamic("129",["f3","12a"],!0,function($__require,exports,module){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function stripLow(str,keep_new_lines){(0,_assertString2["default"])(str);var chars=keep_new_lines?"\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F\\x7F":"\\x00-\\x1F\\x7F";return(0,_blacklist2["default"])(str,chars)}Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=stripLow;var _assertString=$__require("f3"),_assertString2=_interopRequireDefault(_assertString),_blacklist=$__require("12a"),_blacklist2=_interopRequireDefault(_blacklist);return module.exports=exports["default"],module.exports}),$__System.registerDynamic("12b",["f3"],!0,function($__require,exports,module){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function whitelist(str,chars){return(0,_assertString2["default"])(str),str.replace(new RegExp("[^"+chars+"]+","g"),"")}Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=whitelist;var _assertString=$__require("f3"),_assertString2=_interopRequireDefault(_assertString);return module.exports=exports["default"],module.exports}),$__System.registerDynamic("12a",["f3"],!0,function($__require,exports,module){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function blacklist(str,chars){return(0,_assertString2["default"])(str),str.replace(new RegExp("["+chars+"]+","g"),"")}Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=blacklist;var _assertString=$__require("f3"),_assertString2=_interopRequireDefault(_assertString);return module.exports=exports["default"],module.exports}),$__System.registerDynamic("12c",["f3"],!0,function($__require,exports,module){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function isWhitelisted(str,chars){(0,_assertString2["default"])(str);for(var i=str.length-1;i>=0;i--)if(-1===chars.indexOf(str[i]))return!1;return!0}Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=isWhitelisted;var _assertString=$__require("f3"),_assertString2=_interopRequireDefault(_assertString);return module.exports=exports["default"],module.exports}),$__System.registerDynamic("12d",["f3"],!0,function($__require,exports,module){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function isByteLength(str,options){(0,_assertString2["default"])(str);var min=void 0,max=void 0;"object"===("undefined"==typeof options?"undefined":_typeof(options))?(min=options.min||0,max=options.max):(min=arguments[1],max=arguments[2]);var len=encodeURI(str).split(/%..|./).length-1;return len>=min&&("undefined"==typeof max||max>=len)}Object.defineProperty(exports,"__esModule",{value:!0});var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol?"symbol":typeof obj};exports["default"]=isByteLength;var _assertString=$__require("f3"),_assertString2=_interopRequireDefault(_assertString);return module.exports=exports["default"],module.exports}),$__System.registerDynamic("f3",[],!0,function($__require,exports,module){"use strict";function assertString(input){if("string"!=typeof input)throw new TypeError("This library (validator.js) validates strings only")}return Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=assertString,module.exports=exports["default"],module.exports}),$__System.registerDynamic("fa",["f3","fc"],!0,function($__require,exports,module){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function isFDQN(str,options){(0,_assertString2["default"])(str),options=(0,_merge2["default"])(options,default_fqdn_options),options.allow_trailing_dot&&"."===str[str.length-1]&&(str=str.substring(0,str.length-1));var parts=str.split(".");if(options.require_tld){var tld=parts.pop();if(!parts.length||!/^([a-z\u00a1-\uffff]{2,}|xn[a-z0-9-]{2,})$/i.test(tld))return!1}for(var part,i=0;i$/i,emailUserPart=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,quotedEmailUser=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,emailUserUtf8Part=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,quotedEmailUserUtf8=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i;return module.exports=exports["default"],module.exports}),$__System.registerDynamic("fc",[],!0,function($__require,exports,module){"use strict";function merge(){var obj=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],defaults=arguments[1];for(var key in defaults)"undefined"==typeof obj[key]&&(obj[key]=defaults[key]);return obj}return Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=merge,module.exports=exports["default"],module.exports}),$__System.registerDynamic("12f",["12e","fc"],!0,function($__require,exports,module){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function normalizeEmail(email,options){if(options=(0,_merge2["default"])(options,default_normalize_email_options),!(0,_isEmail2["default"])(email))return!1;var parts=email.split("@",2);if(parts[1]=parts[1].toLowerCase(),"gmail.com"===parts[1]||"googlemail.com"===parts[1]){if(options.remove_extension&&(parts[0]=parts[0].split("+")[0]),options.remove_dots&&(parts[0]=parts[0].replace(/\./g,"")),!parts[0].length)return!1;parts[0]=parts[0].toLowerCase(),parts[1]="gmail.com"}else options.lowercase&&(parts[0]=parts[0].toLowerCase());return parts.join("@")}Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=normalizeEmail;var _isEmail=$__require("12e"),_isEmail2=_interopRequireDefault(_isEmail),_merge=$__require("fc"),_merge2=_interopRequireDefault(_merge),default_normalize_email_options={lowercase:!0,remove_dots:!0,remove_extension:!0};return module.exports=exports["default"],module.exports}),$__System.registerDynamic("f7",[],!0,function($__require,exports,module){"use strict";function toString(input){return"object"===("undefined"==typeof input?"undefined":_typeof(input))&&null!==input?input="function"==typeof input.toString?input.toString():"[object Object]":(null===input||"undefined"==typeof input||isNaN(input)&&!input.length)&&(input=""),String(input)}Object.defineProperty(exports,"__esModule",{value:!0});var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol?"symbol":typeof obj};return exports["default"]=toString,module.exports=exports["default"],module.exports}),$__System.registerDynamic("130",["11a","10e","f2","f4","f5","f6","f8","12e","f9","fd","fb","fa","fe","ff","101","102","103","104","105","106","107","108","109","10a","10b","10c","10d","115","10f","110","111","112","113","12d","114","116","117","119","11b","11c","11d","11e","11f","120","121","118","122","123","124","125","126","127","128","129","12b","12a","12c","12f","f7"],!0,function($__require,exports,module){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}Object.defineProperty(exports,"__esModule",{value:!0});var _toDate=$__require("11a"),_toDate2=_interopRequireDefault(_toDate),_toFloat=$__require("10e"),_toFloat2=_interopRequireDefault(_toFloat),_toInt=$__require("f2"),_toInt2=_interopRequireDefault(_toInt),_toBoolean=$__require("f4"),_toBoolean2=_interopRequireDefault(_toBoolean),_equals=$__require("f5"),_equals2=_interopRequireDefault(_equals),_contains=$__require("f6"),_contains2=_interopRequireDefault(_contains),_matches=$__require("f8"),_matches2=_interopRequireDefault(_matches),_isEmail=$__require("12e"),_isEmail2=_interopRequireDefault(_isEmail),_isURL=$__require("f9"),_isURL2=_interopRequireDefault(_isURL),_isMACAddress=$__require("fd"),_isMACAddress2=_interopRequireDefault(_isMACAddress),_isIP=$__require("fb"),_isIP2=_interopRequireDefault(_isIP),_isFQDN=$__require("fa"),_isFQDN2=_interopRequireDefault(_isFQDN),_isBoolean=$__require("fe"),_isBoolean2=_interopRequireDefault(_isBoolean),_isAlpha=$__require("ff"),_isAlpha2=_interopRequireDefault(_isAlpha),_isAlphanumeric=$__require("101"),_isAlphanumeric2=_interopRequireDefault(_isAlphanumeric),_isNumeric=$__require("102"),_isNumeric2=_interopRequireDefault(_isNumeric),_isLowercase=$__require("103"),_isLowercase2=_interopRequireDefault(_isLowercase),_isUppercase=$__require("104"),_isUppercase2=_interopRequireDefault(_isUppercase),_isAscii=$__require("105"),_isAscii2=_interopRequireDefault(_isAscii),_isFullWidth=$__require("106"),_isFullWidth2=_interopRequireDefault(_isFullWidth),_isHalfWidth=$__require("107"),_isHalfWidth2=_interopRequireDefault(_isHalfWidth),_isVariableWidth=$__require("108"),_isVariableWidth2=_interopRequireDefault(_isVariableWidth),_isMultibyte=$__require("109"),_isMultibyte2=_interopRequireDefault(_isMultibyte),_isSurrogatePair=$__require("10a"),_isSurrogatePair2=_interopRequireDefault(_isSurrogatePair),_isInt=$__require("10b"),_isInt2=_interopRequireDefault(_isInt),_isFloat=$__require("10c"),_isFloat2=_interopRequireDefault(_isFloat),_isDecimal=$__require("10d"),_isDecimal2=_interopRequireDefault(_isDecimal),_isHexadecimal=$__require("115"),_isHexadecimal2=_interopRequireDefault(_isHexadecimal),_isDivisibleBy=$__require("10f"),_isDivisibleBy2=_interopRequireDefault(_isDivisibleBy),_isHexColor=$__require("110"),_isHexColor2=_interopRequireDefault(_isHexColor),_isJSON=$__require("111"),_isJSON2=_interopRequireDefault(_isJSON),_isNull=$__require("112"),_isNull2=_interopRequireDefault(_isNull),_isLength=$__require("113"),_isLength2=_interopRequireDefault(_isLength),_isByteLength=$__require("12d"),_isByteLength2=_interopRequireDefault(_isByteLength),_isUUID=$__require("114"),_isUUID2=_interopRequireDefault(_isUUID),_isMongoId=$__require("116"),_isMongoId2=_interopRequireDefault(_isMongoId),_isDate=$__require("117"),_isDate2=_interopRequireDefault(_isDate),_isAfter=$__require("119"),_isAfter2=_interopRequireDefault(_isAfter),_isBefore=$__require("11b"),_isBefore2=_interopRequireDefault(_isBefore),_isIn=$__require("11c"),_isIn2=_interopRequireDefault(_isIn),_isCreditCard=$__require("11d"),_isCreditCard2=_interopRequireDefault(_isCreditCard),_isISIN=$__require("11e"),_isISIN2=_interopRequireDefault(_isISIN),_isISBN=$__require("11f"),_isISBN2=_interopRequireDefault(_isISBN),_isMobilePhone=$__require("120"),_isMobilePhone2=_interopRequireDefault(_isMobilePhone),_isCurrency=$__require("121"),_isCurrency2=_interopRequireDefault(_isCurrency),_isISO=$__require("118"),_isISO2=_interopRequireDefault(_isISO),_isBase=$__require("122"),_isBase2=_interopRequireDefault(_isBase),_isDataURI=$__require("123"),_isDataURI2=_interopRequireDefault(_isDataURI),_ltrim=$__require("124"),_ltrim2=_interopRequireDefault(_ltrim),_rtrim=$__require("125"),_rtrim2=_interopRequireDefault(_rtrim),_trim=$__require("126"),_trim2=_interopRequireDefault(_trim),_escape=$__require("127"),_escape2=_interopRequireDefault(_escape),_unescape=$__require("128"),_unescape2=_interopRequireDefault(_unescape),_stripLow=$__require("129"),_stripLow2=_interopRequireDefault(_stripLow),_whitelist=$__require("12b"),_whitelist2=_interopRequireDefault(_whitelist),_blacklist=$__require("12a"),_blacklist2=_interopRequireDefault(_blacklist),_isWhitelisted=$__require("12c"),_isWhitelisted2=_interopRequireDefault(_isWhitelisted),_normalizeEmail=$__require("12f"),_normalizeEmail2=_interopRequireDefault(_normalizeEmail),_toString=$__require("f7"),_toString2=_interopRequireDefault(_toString),version="5.2.0",validator={version:version,toDate:_toDate2["default"],toFloat:_toFloat2["default"],toInt:_toInt2["default"],toBoolean:_toBoolean2["default"],equals:_equals2["default"],contains:_contains2["default"],matches:_matches2["default"],isEmail:_isEmail2["default"],isURL:_isURL2["default"],isMACAddress:_isMACAddress2["default"],isIP:_isIP2["default"],isFQDN:_isFQDN2["default"],isBoolean:_isBoolean2["default"],isAlpha:_isAlpha2["default"],isAlphanumeric:_isAlphanumeric2["default"],isNumeric:_isNumeric2["default"],isLowercase:_isLowercase2["default"],isUppercase:_isUppercase2["default"],isAscii:_isAscii2["default"],isFullWidth:_isFullWidth2["default"],isHalfWidth:_isHalfWidth2["default"],isVariableWidth:_isVariableWidth2["default"],isMultibyte:_isMultibyte2["default"],isSurrogatePair:_isSurrogatePair2["default"],isInt:_isInt2["default"],isFloat:_isFloat2["default"],isDecimal:_isDecimal2["default"],isHexadecimal:_isHexadecimal2["default"],isDivisibleBy:_isDivisibleBy2["default"],isHexColor:_isHexColor2["default"],isJSON:_isJSON2["default"],isNull:_isNull2["default"],isLength:_isLength2["default"],isByteLength:_isByteLength2["default"],isUUID:_isUUID2["default"],isMongoId:_isMongoId2["default"],isDate:_isDate2["default"],isAfter:_isAfter2["default"],isBefore:_isBefore2["default"],isIn:_isIn2["default"],isCreditCard:_isCreditCard2["default"],isISIN:_isISIN2["default"],isISBN:_isISBN2["default"],isMobilePhone:_isMobilePhone2["default"],isCurrency:_isCurrency2["default"],isISO8601:_isISO2["default"],isBase64:_isBase2["default"],isDataURI:_isDataURI2["default"],ltrim:_ltrim2["default"],rtrim:_rtrim2["default"],trim:_trim2["default"],escape:_escape2["default"],unescape:_unescape2["default"],stripLow:_stripLow2["default"],whitelist:_whitelist2["default"],blacklist:_blacklist2["default"],isWhitelisted:_isWhitelisted2["default"],normalizeEmail:_normalizeEmail2["default"],toString:_toString2["default"]};return exports["default"]=validator,module.exports=exports["default"],module.exports}),$__System.registerDynamic("131",["130"],!0,function($__require,exports,module){return module.exports=$__require("130"),module.exports}),$__System.registerDynamic("132",["131"],!0,function($__require,exports,module){var validator=$__require("131"),FormatValidators={date:function(date){if("string"!=typeof date)return!0;var matches=/^([0-9]{4})-([0-9]{2})-([0-9]{2})$/.exec(date);return null===matches?!1:!(matches[2]<"01"||matches[2]>"12"||matches[3]<"01"||matches[3]>"31")},"date-time":function(dateTime){if("string"!=typeof dateTime)return!0;var s=dateTime.toLowerCase().split("t");if(!FormatValidators.date(s[0]))return!1;var matches=/^([0-9]{2}):([0-9]{2}):([0-9]{2})(.[0-9]+)?(z|([+-][0-9]{2}:[0-9]{2}))$/.exec(s[1]);return null===matches?!1:!(matches[1]>"23"||matches[2]>"59"||matches[3]>"59")},email:function(email){return"string"!=typeof email?!0:validator.isEmail(email,{require_tld:!0})},hostname:function(hostname){if("string"!=typeof hostname)return!0;var valid=/^[a-zA-Z](([-0-9a-zA-Z]+)?[0-9a-zA-Z])?(\.[a-zA-Z](([-0-9a-zA-Z]+)?[0-9a-zA-Z])?)*$/.test(hostname);if(valid){if(hostname.length>255)return!1;for(var labels=hostname.split("."),i=0;i63)return!1}return valid},"host-name":function(hostname){return FormatValidators.hostname.call(this,hostname)},ipv4:function(ipv4){return"string"!=typeof ipv4?!0:validator.isIP(ipv4,4)},ipv6:function(ipv6){return"string"!=typeof ipv6?!0:validator.isIP(ipv6,6)},regex:function(str){try{return RegExp(str),!0}catch(e){return!1}},uri:function(uri){return this.options.strictUris?FormatValidators["strict-uri"].apply(this,arguments):"string"!=typeof uri||RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?").test(uri)},"strict-uri":function(uri){return"string"!=typeof uri||validator.isURL(uri)}};return module.exports=FormatValidators,module.exports}),$__System.registerDynamic("133",["132","ee","f1"],!0,function($__require,exports,module){"use strict";var FormatValidators=$__require("132"),Report=$__require("ee"),Utils=$__require("f1"),JsonValidators={multipleOf:function(report,schema,json){"number"==typeof json&&"integer"!==Utils.whatIs(json/schema.multipleOf)&&report.addError("MULTIPLE_OF",[json,schema.multipleOf],null,schema.description)},maximum:function(report,schema,json){"number"==typeof json&&(schema.exclusiveMaximum!==!0?json>schema.maximum&&report.addError("MAXIMUM",[json,schema.maximum],null,schema.description):json>=schema.maximum&&report.addError("MAXIMUM_EXCLUSIVE",[json,schema.maximum],null,schema.description))},exclusiveMaximum:function(){},minimum:function(report,schema,json){"number"==typeof json&&(schema.exclusiveMinimum!==!0?jsonschema.maxLength&&report.addError("MAX_LENGTH",[json.length,schema.maxLength],null,schema.description)},minLength:function(report,schema,json){"string"==typeof json&&Utils.ucs2decode(json).lengthschema.items.length&&report.addError("ARRAY_ADDITIONAL_ITEMS",null,null,schema.description)},items:function(){},maxItems:function(report,schema,json){Array.isArray(json)&&json.length>schema.maxItems&&report.addError("ARRAY_LENGTH_LONG",[json.length,schema.maxItems],null,schema.description)},minItems:function(report,schema,json){Array.isArray(json)&&json.lengthschema.maxProperties&&report.addError("OBJECT_PROPERTIES_MAXIMUM",[keysCount,schema.maxProperties],null,schema.description)}},minProperties:function(report,schema,json){if("object"===Utils.whatIs(json)){var keysCount=Object.keys(json).length;keysCount0){var idx3=this.options.assumeAdditional.length;if(idx3)for(;idx3--;){var io=s.indexOf(this.options.assumeAdditional[idx3]);-1!==io&&s.splice(io,1)}s.length>0&&report.addError("OBJECT_ADDITIONAL_PROPERTIES",[s],null,schema.description)}}}},dependencies:function(report,schema,json){if("object"===Utils.whatIs(json))for(var keys=Object.keys(schema.dependencies),idx=keys.length;idx--;){var dependencyName=keys[idx];if(json[dependencyName]){var dependencyDefinition=schema.dependencies[dependencyName];if("object"===Utils.whatIs(dependencyDefinition))exports.validate.call(this,report,dependencyDefinition,json);else for(var idx2=dependencyDefinition.length;idx2--;){var requiredPropertyName=dependencyDefinition[idx2];void 0===json[requiredPropertyName]&&report.addError("OBJECT_DEPENDENCY_KEY",[requiredPropertyName,dependencyName],null,schema.description)}}}},"enum":function(report,schema,json){for(var match=!1,idx=schema["enum"].length;idx--;)if(Utils.areEqual(json,schema["enum"][idx])){match=!0;break}match===!1&&report.addError("ENUM_MISMATCH",[json],null,schema.description)},allOf:function(report,schema,json){for(var idx=schema.allOf.length;idx--;){var validateResult=exports.validate.call(this,report,schema.allOf[idx],json);if(this.options.breakOnFirstError&&validateResult===!1)break}},anyOf:function(report,schema,json){for(var subReports=[],passed=!1,idx=schema.anyOf.length;idx--&&passed===!1;){var subReport=new Report(report);subReports.push(subReport),passed=exports.validate.call(this,subReport,schema.anyOf[idx],json)}passed===!1&&report.addError("ANY_OF_MISSING",void 0,subReports,schema.description)},oneOf:function(report,schema,json){for(var passes=0,subReports=[],idx=schema.oneOf.length;idx--;){var subReport=new Report(report,{maxErrors:1});subReports.push(subReport),exports.validate.call(this,subReport,schema.oneOf[idx],json)===!0&&passes++}0===passes?report.addError("ONE_OF_MISSING",void 0,subReports,schema.description):passes>1&&report.addError("ONE_OF_MULTIPLE",null,null,schema.description)},not:function(report,schema,json){var subReport=new Report(report);exports.validate.call(this,subReport,schema.not,json)===!0&&report.addError("NOT_PASSED",null,null,schema.description)},definitions:function(){},format:function(report,schema,json){var formatValidatorFn=FormatValidators[schema.format];"function"==typeof formatValidatorFn?2===formatValidatorFn.length?report.addAsyncTask(formatValidatorFn,[json],function(result){result!==!0&&report.addError("INVALID_FORMAT",[schema.format,json],null,schema.description)}):formatValidatorFn.call(this,json)!==!0&&report.addError("INVALID_FORMAT",[schema.format,json],null,schema.description):this.options.ignoreUnknownFormats!==!0&&report.addError("UNKNOWN_FORMAT",[schema.format],null,schema.description)}},recurseArray=function(report,schema,json){var idx=json.length;if(Array.isArray(schema.items))for(;idx--;)idx0;){if(!schema.__$refResolved){report.addError("REF_UNRESOLVED",[schema.$ref],null,schema.description);break}if(schema.__$refResolved===schema)break;schema=schema.__$refResolved,keys=Object.keys(schema),maxRefs--}if(0===maxRefs)throw new Error("Circular dependency by $ref references!")}var jsonType=Utils.whatIs(json);if(schema.type)if("string"==typeof schema.type){if(jsonType!==schema.type&&("integer"!==jsonType||"number"!==schema.type)&&(report.addError("INVALID_TYPE",[schema.type,jsonType],null,schema.description),this.options.breakOnFirstError))return!1}else if(-1===schema.type.indexOf(jsonType)&&("integer"!==jsonType||-1===schema.type.indexOf("number"))&&(report.addError("INVALID_TYPE",[schema.type,jsonType],null,schema.description),this.options.breakOnFirstError))return!1;for(var idx=keys.length;idx--&&!(JsonValidators[keys[idx]]&&(JsonValidators[keys[idx]].call(this,report,schema,json),report.errors.length&&this.options.breakOnFirstError)););return 0!==report.errors.length&&this.options.breakOnFirstError!==!1||("array"===jsonType?recurseArray.call(this,report,schema,json):"object"===jsonType&&recurseObject.call(this,report,schema,json)),"function"==typeof this.options.customValidator&&this.options.customValidator(report,schema,json),isRoot&&(report.rootSchema=void 0),0===report.errors.length},module.exports}),$__System.registerDynamic("134",["d4"],!0,function($__require,exports,module){var global=this;return function(process){function checkGlobal(value){return value&&value.Object===Object?value:null}function isHostObject(value){var result=!1;if(null!=value&&"function"!=typeof value.toString)try{result=!!(value+"")}catch(e){}return result}function Hash(){}function hashDelete(hash,key){return hashHas(hash,key)&&delete hash[key]}function hashGet(hash,key){if(nativeCreate){var result=hash[key];return result===HASH_UNDEFINED?void 0:result}return hasOwnProperty.call(hash,key)?hash[key]:void 0}function hashHas(hash,key){return nativeCreate?void 0!==hash[key]:hasOwnProperty.call(hash,key)}function hashSet(hash,key,value){hash[key]=nativeCreate&&void 0===value?HASH_UNDEFINED:value}function MapCache(values){var index=-1,length=values?values.length:0;for(this.clear();++indexindex)return!1;var lastIndex=array.length-1;return index==lastIndex?array.pop():splice.call(array,index,1),!0}function assocGet(array,key){var index=assocIndexOf(array,key);return 0>index?void 0:array[index][1]}function assocHas(array,key){return assocIndexOf(array,key)>-1}function assocIndexOf(array,key){for(var length=array.length;length--;)if(eq(array[length][0],key))return length;return-1}function assocSet(array,key,value){var index=assocIndexOf(array,key);0>index?array.push([key,value]):array[index][1]=value}function getNative(object,key){var value=object[key];return isNative(value)?value:void 0}function isKeyable(value){var type=typeof value;return"number"==type||"boolean"==type||"string"==type&&"__proto__"!=value||null==value}function toSource(func){if(null!=func){try{return funcToString.call(func)}catch(e){}try{return func+""}catch(e){}}return""}function memoize(func,resolver){if("function"!=typeof func||resolver&&"function"!=typeof resolver)throw new TypeError(FUNC_ERROR_TEXT);var memoized=function(){var args=arguments,key=resolver?resolver.apply(this,args):args[0],cache=memoized.cache;if(cache.has(key))return cache.get(key);var result=func.apply(this,args);return memoized.cache=cache.set(key,result),result};return memoized.cache=new(memoize.Cache||MapCache),memoized}function eq(value,other){return value===other||value!==value&&other!==other}function isFunction(value){var tag=isObject(value)?objectToString.call(value):"";return tag==funcTag||tag==genTag}function isObject(value){var type=typeof value;return!!value&&("object"==type||"function"==type)}function isObjectLike(value){return!!value&&"object"==typeof value}function isNative(value){if(!isObject(value))return!1;var pattern=isFunction(value)||isHostObject(value)?reIsNative:reIsHostCtor;return pattern.test(toSource(value))}function isSymbol(value){return"symbol"==typeof value||isObjectLike(value)&&objectToString.call(value)==symbolTag}function toString(value){if("string"==typeof value)return value;if(null==value)return"";if(isSymbol(value))return symbolToString?symbolToString.call(value):"";var result=value+"";return"0"==result&&1/value==-INFINITY?"-0":result}var FUNC_ERROR_TEXT="Expected a function",HASH_UNDEFINED="__lodash_hash_undefined__",INFINITY=1/0,funcTag="[object Function]",genTag="[object GeneratorFunction]",symbolTag="[object Symbol]",rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]/g,reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reEscapeChar=/\\(\\)?/g,reIsHostCtor=/^\[object .+?Constructor\]$/,objectTypes={"function":!0,object:!0},freeExports=objectTypes[typeof exports]&&exports&&!exports.nodeType?exports:void 0,freeModule=objectTypes[typeof module]&&module&&!module.nodeType?module:void 0,freeGlobal=checkGlobal(freeExports&&freeModule&&"object"==typeof global&&global),freeSelf=checkGlobal(objectTypes[typeof self]&&self),freeWindow=checkGlobal(objectTypes[typeof window]&&window),thisGlobal=checkGlobal(objectTypes[typeof this]&&this),root=freeGlobal||freeWindow!==(thisGlobal&&thisGlobal.window)&&freeWindow||freeSelf||thisGlobal||Function("return this")(),arrayProto=Array.prototype,objectProto=Object.prototype,funcToString=Function.prototype.toString,hasOwnProperty=objectProto.hasOwnProperty,objectToString=objectProto.toString,reIsNative=RegExp("^"+funcToString.call(hasOwnProperty).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Symbol=root.Symbol,splice=arrayProto.splice,Map=getNative(root,"Map"),nativeCreate=getNative(Object,"create"),symbolProto=Symbol?Symbol.prototype:void 0,symbolToString=symbolProto?symbolProto.toString:void 0;Hash.prototype=nativeCreate?nativeCreate(null):objectProto,MapCache.prototype.clear=mapClear,MapCache.prototype["delete"]=mapDelete,MapCache.prototype.get=mapGet,MapCache.prototype.has=mapHas,MapCache.prototype.set=mapSet;var stringToPath=memoize(function(string){var result=[];return toString(string).replace(rePropName,function(match,number,quote,string){result.push(quote?string.replace(reEscapeChar,"$1"):number||match)}),result});memoize.Cache=MapCache,module.exports=stringToPath}($__require("d4")),module.exports}),$__System.registerDynamic("135",["134"],!0,function($__require,exports,module){return module.exports=$__require("134"),module.exports}),$__System.registerDynamic("136",["135"],!0,function($__require,exports,module){function baseGet(object,path){path=isKey(path,object)?[path]:castPath(path);for(var index=0,length=path.length;null!=object&&length>index;)object=object[path[index++]];return index&&index==length?object:void 0}function castPath(value){return isArray(value)?value:stringToPath(value)}function isKey(value,object){var type=typeof value;return"number"==type||"symbol"==type?!0:!isArray(value)&&(isSymbol(value)||reIsPlainProp.test(value)||!reIsDeepProp.test(value)||null!=object&&value in Object(object))}function isObjectLike(value){return!!value&&"object"==typeof value}function isSymbol(value){return"symbol"==typeof value||isObjectLike(value)&&objectToString.call(value)==symbolTag}function get(object,path,defaultValue){var result=null==object?void 0:baseGet(object,path);return void 0===result?defaultValue:result}var stringToPath=$__require("135"),symbolTag="[object Symbol]",reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/,objectProto=Object.prototype,objectToString=objectProto.toString,isArray=Array.isArray;return module.exports=get,module.exports}),$__System.registerDynamic("137",["136"],!0,function($__require,exports,module){return module.exports=$__require("136"),module.exports}),$__System.registerDynamic("138",[],!0,function($__require,exports,module){"use strict";return module.exports={INVALID_TYPE:"Expected type {0} but found type {1}",INVALID_FORMAT:"Object didn't pass validation for format {0}: {1}",ENUM_MISMATCH:"No enum match for: {0}",ANY_OF_MISSING:"Data does not match any schemas from 'anyOf'",ONE_OF_MISSING:"Data does not match any schemas from 'oneOf'",ONE_OF_MULTIPLE:"Data is valid against more than one schema from 'oneOf'",NOT_PASSED:"Data matches schema from 'not'",ARRAY_LENGTH_SHORT:"Array is too short ({0}), minimum {1}",ARRAY_LENGTH_LONG:"Array is too long ({0}), maximum {1}",ARRAY_UNIQUE:"Array items are not unique (indexes {0} and {1})",ARRAY_ADDITIONAL_ITEMS:"Additional items not allowed",MULTIPLE_OF:"Value {0} is not a multiple of {1}",MINIMUM:"Value {0} is less than minimum {1}",MINIMUM_EXCLUSIVE:"Value {0} is equal or less than exclusive minimum {1}",MAXIMUM:"Value {0} is greater than maximum {1}",MAXIMUM_EXCLUSIVE:"Value {0} is equal or greater than exclusive maximum {1}",OBJECT_PROPERTIES_MINIMUM:"Too few properties defined ({0}), minimum {1}",OBJECT_PROPERTIES_MAXIMUM:"Too many properties defined ({0}), maximum {1}",OBJECT_MISSING_REQUIRED_PROPERTY:"Missing required property: {0}",OBJECT_ADDITIONAL_PROPERTIES:"Additional properties not allowed: {0}",OBJECT_DEPENDENCY_KEY:"Dependency failed - key must exist: {0} (due to key: {1})",MIN_LENGTH:"String is too short ({0} chars), minimum {1}",MAX_LENGTH:"String is too long ({0} chars), maximum {1}",PATTERN:"String does not match pattern {0}: {1}",KEYWORD_TYPE_EXPECTED:"Keyword '{0}' is expected to be of type '{1}'",KEYWORD_UNDEFINED_STRICT:"Keyword '{0}' must be defined in strict mode",KEYWORD_UNEXPECTED:"Keyword '{0}' is not expected to appear in the schema",KEYWORD_MUST_BE:"Keyword '{0}' must be {1}",KEYWORD_DEPENDENCY:"Keyword '{0}' requires keyword '{1}'",KEYWORD_PATTERN:"Keyword '{0}' is not a valid RegExp pattern: {1}",KEYWORD_VALUE_TYPE:"Each element of keyword '{0}' array must be a '{1}'",UNKNOWN_FORMAT:"There is no validation function for format '{0}'",CUSTOM_MODE_FORCE_PROPERTIES:"{0} must define at least one property if present",REF_UNRESOLVED:"Reference has not been resolved during compilation: {0}",UNRESOLVABLE_REFERENCE:"Reference could not be resolved: {0}",SCHEMA_NOT_REACHABLE:"Validator was not able to read schema with uri: {0}",SCHEMA_TYPE_EXPECTED:"Schema is expected to be of type 'object'",SCHEMA_NOT_AN_OBJECT:"Schema is not an object: {0}",ASYNC_TIMEOUT:"{0} asynchronous task(s) have timed out after {1} ms",PARENT_SCHEMA_VALIDATION_FAILED:"Schema failed to validate against its parent schema, see inner errors for details.",REMOTE_NOT_VALID:"Remote reference didn't compile successfully: {0}"},module.exports}),$__System.registerDynamic("ee",["137","138","f1","d4"],!0,function($__require,exports,module){return function(process){"use strict";function Report(parentOrOptions,reportOptions){this.parentReport=parentOrOptions instanceof Report?parentOrOptions:void 0,this.options=parentOrOptions instanceof Report?parentOrOptions.options:parentOrOptions||{},this.reportOptions=reportOptions||{},this.errors=[],this.path=[],this.asyncTasks=[]}var get=$__require("137"),Errors=$__require("138"),Utils=$__require("f1");Report.prototype.isValid=function(){if(this.asyncTasks.length>0)throw new Error("Async tasks pending, can't answer isValid");return 0===this.errors.length},Report.prototype.addAsyncTask=function(fn,args,asyncTaskResultProcessFn){this.asyncTasks.push([fn,args,asyncTaskResultProcessFn])},Report.prototype.processAsyncTasks=function(timeout,callback){function finish(){process.nextTick(function(){var valid=0===self.errors.length,err=valid?void 0:self.errors;callback(err,valid)})}function respond(asyncTaskResultProcessFn){return function(asyncTaskResult){timedOut||(asyncTaskResultProcessFn(asyncTaskResult),0===--tasksCount&&finish())}}var validationTimeout=timeout||2e3,tasksCount=this.asyncTasks.length,idx=tasksCount,timedOut=!1,self=this;if(0===tasksCount||this.errors.length>0)return void finish();for(;idx--;){var task=this.asyncTasks[idx];task[0].apply(null,task[1].concat(respond(task[2])))}setTimeout(function(){tasksCount>0&&(timedOut=!0,self.addError("ASYNC_TIMEOUT",[tasksCount,validationTimeout]),callback(self.errors,!1))},validationTimeout)},Report.prototype.getPath=function(returnPathAsString){var path=[];return this.parentReport&&(path=path.concat(this.parentReport.path)),path=path.concat(this.path),returnPathAsString!==!0&&(path="#/"+path.map(function(segment){return Utils.isAbsoluteUri(segment)?"uri("+segment+")":segment.replace(/\~/g,"~0").replace(/\//g,"~1")}).join("/")),path},Report.prototype.getSchemaId=function(){if(!this.rootSchema)return null;var path=[];for(this.parentReport&&(path=path.concat(this.parentReport.path)),path=path.concat(this.path);path.length>0;){var obj=get(this.rootSchema,path);if(obj&&obj.id)return obj.id;path.pop()}return this.rootSchema.id},Report.prototype.hasError=function(errorCode,params){for(var idx=this.errors.length;idx--;)if(this.errors[idx].code===errorCode){for(var match=!0,idx2=this.errors[idx].params.length;idx2--;)this.errors[idx].params[idx2]!==params[idx2]&&(match=!1);if(match)return match}return!1},Report.prototype.addError=function(errorCode,params,subReports,schemaDescription){if(!errorCode)throw new Error("No errorCode passed into addError()");this.addCustomError(errorCode,Errors[errorCode],params,subReports,schemaDescription)},Report.prototype.addCustomError=function(errorCode,errorMessage,params,subReports,schemaDescription){if(!(this.errors.length>=this.reportOptions.maxErrors)){if(!errorMessage)throw new Error("No errorMessage known for code "+errorCode);params=params||[];for(var idx=params.length;idx--;){var whatIs=Utils.whatIs(params[idx]),param="object"===whatIs||"null"===whatIs?JSON.stringify(params[idx]):params[idx];errorMessage=errorMessage.replace("{"+idx+"}",param)}var err={code:errorCode,params:params,message:errorMessage,path:this.getPath(this.options.reportPathAsArray),schemaId:this.getSchemaId()};if(schemaDescription&&(err.description=schemaDescription),null!=subReports){for(Array.isArray(subReports)||(subReports=[subReports]),err.inner=[],idx=subReports.length;idx--;)for(var subReport=subReports[idx],idx2=subReport.errors.length;idx2--;)err.inner.push(subReport.errors[idx2]);0===err.inner.length&&(err.inner=void 0)}this.errors.push(err)}},module.exports=Report}($__require("d4")),module.exports}),$__System.registerDynamic("f0",["132","133","ee","f1"],!0,function($__require,exports,module){"use strict";var FormatValidators=$__require("132"),JsonValidation=$__require("133"),Report=$__require("ee"),Utils=$__require("f1"),SchemaValidators={$ref:function(report,schema){"string"!=typeof schema.$ref&&report.addError("KEYWORD_TYPE_EXPECTED",["$ref","string"])},$schema:function(report,schema){"string"!=typeof schema.$schema&&report.addError("KEYWORD_TYPE_EXPECTED",["$schema","string"])},multipleOf:function(report,schema){"number"!=typeof schema.multipleOf?report.addError("KEYWORD_TYPE_EXPECTED",["multipleOf","number"]):schema.multipleOf<=0&&report.addError("KEYWORD_MUST_BE",["multipleOf","strictly greater than 0"])},maximum:function(report,schema){"number"!=typeof schema.maximum&&report.addError("KEYWORD_TYPE_EXPECTED",["maximum","number"])},exclusiveMaximum:function(report,schema){"boolean"!=typeof schema.exclusiveMaximum?report.addError("KEYWORD_TYPE_EXPECTED",["exclusiveMaximum","boolean"]):void 0===schema.maximum&&report.addError("KEYWORD_DEPENDENCY",["exclusiveMaximum","maximum"])},minimum:function(report,schema){"number"!=typeof schema.minimum&&report.addError("KEYWORD_TYPE_EXPECTED",["minimum","number"])},exclusiveMinimum:function(report,schema){"boolean"!=typeof schema.exclusiveMinimum?report.addError("KEYWORD_TYPE_EXPECTED",["exclusiveMinimum","boolean"]):void 0===schema.minimum&&report.addError("KEYWORD_DEPENDENCY",["exclusiveMinimum","minimum"])},maxLength:function(report,schema){"integer"!==Utils.whatIs(schema.maxLength)?report.addError("KEYWORD_TYPE_EXPECTED",["maxLength","integer"]):schema.maxLength<0&&report.addError("KEYWORD_MUST_BE",["maxLength","greater than, or equal to 0"])},minLength:function(report,schema){"integer"!==Utils.whatIs(schema.minLength)?report.addError("KEYWORD_TYPE_EXPECTED",["minLength","integer"]):schema.minLength<0&&report.addError("KEYWORD_MUST_BE",["minLength","greater than, or equal to 0"])},pattern:function(report,schema){if("string"!=typeof schema.pattern)report.addError("KEYWORD_TYPE_EXPECTED",["pattern","string"]);else try{RegExp(schema.pattern)}catch(e){report.addError("KEYWORD_PATTERN",["pattern",schema.pattern])}},additionalItems:function(report,schema){var type=Utils.whatIs(schema.additionalItems);"boolean"!==type&&"object"!==type?report.addError("KEYWORD_TYPE_EXPECTED",["additionalItems",["boolean","object"]]):"object"===type&&(report.path.push("additionalItems"),exports.validateSchema.call(this,report,schema.additionalItems),report.path.pop())},items:function(report,schema){var type=Utils.whatIs(schema.items);if("object"===type)report.path.push("items"),exports.validateSchema.call(this,report,schema.items),report.path.pop();else if("array"===type)for(var idx=schema.items.length;idx--;)report.path.push("items"),report.path.push(idx.toString()),exports.validateSchema.call(this,report,schema.items[idx]),report.path.pop(),report.path.pop();else report.addError("KEYWORD_TYPE_EXPECTED",["items",["array","object"]]);this.options.forceAdditional===!0&&void 0===schema.additionalItems&&Array.isArray(schema.items)&&report.addError("KEYWORD_UNDEFINED_STRICT",["additionalItems"]),this.options.assumeAdditional&&void 0===schema.additionalItems&&Array.isArray(schema.items)&&(schema.additionalItems=!1)},maxItems:function(report,schema){"number"!=typeof schema.maxItems?report.addError("KEYWORD_TYPE_EXPECTED",["maxItems","integer"]):schema.maxItems<0&&report.addError("KEYWORD_MUST_BE",["maxItems","greater than, or equal to 0"])},minItems:function(report,schema){"integer"!==Utils.whatIs(schema.minItems)?report.addError("KEYWORD_TYPE_EXPECTED",["minItems","integer"]):schema.minItems<0&&report.addError("KEYWORD_MUST_BE",["minItems","greater than, or equal to 0"])},uniqueItems:function(report,schema){"boolean"!=typeof schema.uniqueItems&&report.addError("KEYWORD_TYPE_EXPECTED",["uniqueItems","boolean"])},maxProperties:function(report,schema){"integer"!==Utils.whatIs(schema.maxProperties)?report.addError("KEYWORD_TYPE_EXPECTED",["maxProperties","integer"]):schema.maxProperties<0&&report.addError("KEYWORD_MUST_BE",["maxProperties","greater than, or equal to 0"])},minProperties:function(report,schema){"integer"!==Utils.whatIs(schema.minProperties)?report.addError("KEYWORD_TYPE_EXPECTED",["minProperties","integer"]):schema.minProperties<0&&report.addError("KEYWORD_MUST_BE",["minProperties","greater than, or equal to 0"])},required:function(report,schema){if("array"!==Utils.whatIs(schema.required))report.addError("KEYWORD_TYPE_EXPECTED",["required","array"]);else if(0===schema.required.length)report.addError("KEYWORD_MUST_BE",["required","an array with at least one element"]);else{for(var idx=schema.required.length;idx--;)"string"!=typeof schema.required[idx]&&report.addError("KEYWORD_VALUE_TYPE",["required","string"]);Utils.isUniqueArray(schema.required)===!1&&report.addError("KEYWORD_MUST_BE",["required","an array with unique items"])}},additionalProperties:function(report,schema){var type=Utils.whatIs(schema.additionalProperties);"boolean"!==type&&"object"!==type?report.addError("KEYWORD_TYPE_EXPECTED",["additionalProperties",["boolean","object"]]):"object"===type&&(report.path.push("additionalProperties"),exports.validateSchema.call(this,report,schema.additionalProperties),report.path.pop())},properties:function(report,schema){if("object"!==Utils.whatIs(schema.properties))return void report.addError("KEYWORD_TYPE_EXPECTED",["properties","object"]);for(var keys=Object.keys(schema.properties),idx=keys.length;idx--;){var key=keys[idx],val=schema.properties[key];report.path.push("properties"),report.path.push(key),exports.validateSchema.call(this,report,val),report.path.pop(),report.path.pop()}this.options.forceAdditional===!0&&void 0===schema.additionalProperties&&report.addError("KEYWORD_UNDEFINED_STRICT",["additionalProperties"]),this.options.assumeAdditional&&void 0===schema.additionalProperties&&(schema.additionalProperties=!1),this.options.forceProperties===!0&&0===keys.length&&report.addError("CUSTOM_MODE_FORCE_PROPERTIES",["properties"])},patternProperties:function(report,schema){if("object"!==Utils.whatIs(schema.patternProperties))return void report.addError("KEYWORD_TYPE_EXPECTED",["patternProperties","object"]);for(var keys=Object.keys(schema.patternProperties),idx=keys.length;idx--;){var key=keys[idx],val=schema.patternProperties[key];try{RegExp(key)}catch(e){report.addError("KEYWORD_PATTERN",["patternProperties",key])}report.path.push("patternProperties"),report.path.push(key.toString()),exports.validateSchema.call(this,report,val),report.path.pop(),report.path.pop()}this.options.forceProperties===!0&&0===keys.length&&report.addError("CUSTOM_MODE_FORCE_PROPERTIES",["patternProperties"])},dependencies:function(report,schema){if("object"!==Utils.whatIs(schema.dependencies))report.addError("KEYWORD_TYPE_EXPECTED",["dependencies","object"]);else for(var keys=Object.keys(schema.dependencies),idx=keys.length;idx--;){var schemaKey=keys[idx],schemaDependency=schema.dependencies[schemaKey],type=Utils.whatIs(schemaDependency);if("object"===type)report.path.push("dependencies"),report.path.push(schemaKey),exports.validateSchema.call(this,report,schemaDependency),report.path.pop(),report.path.pop();else if("array"===type){var idx2=schemaDependency.length;for(0===idx2&&report.addError("KEYWORD_MUST_BE",["dependencies","not empty array"]);idx2--;)"string"!=typeof schemaDependency[idx2]&&report.addError("KEYWORD_VALUE_TYPE",["dependensices","string"]);Utils.isUniqueArray(schemaDependency)===!1&&report.addError("KEYWORD_MUST_BE",["dependencies","an array with unique items"])}else report.addError("KEYWORD_VALUE_TYPE",["dependencies","object or array"])}},"enum":function(report,schema){Array.isArray(schema["enum"])===!1?report.addError("KEYWORD_TYPE_EXPECTED",["enum","array"]):0===schema["enum"].length?report.addError("KEYWORD_MUST_BE",["enum","an array with at least one element"]):Utils.isUniqueArray(schema["enum"])===!1&&report.addError("KEYWORD_MUST_BE",["enum","an array with unique elements"])},type:function(report,schema){var primitiveTypes=["array","boolean","integer","number","null","object","string"],primitiveTypeStr=primitiveTypes.join(","),isArray=Array.isArray(schema.type);if(isArray){for(var idx=schema.type.length;idx--;)-1===primitiveTypes.indexOf(schema.type[idx])&&report.addError("KEYWORD_TYPE_EXPECTED",["type",primitiveTypeStr]);Utils.isUniqueArray(schema.type)===!1&&report.addError("KEYWORD_MUST_BE",["type","an object with unique properties"])}else"string"==typeof schema.type?-1===primitiveTypes.indexOf(schema.type)&&report.addError("KEYWORD_TYPE_EXPECTED",["type",primitiveTypeStr]):report.addError("KEYWORD_TYPE_EXPECTED",["type",["string","array"]]);this.options.noEmptyStrings===!0&&("string"===schema.type||isArray&&-1!==schema.type.indexOf("string"))&&void 0===schema.minLength&&void 0===schema["enum"]&&void 0===schema.format&&(schema.minLength=1),this.options.noEmptyArrays===!0&&("array"===schema.type||isArray&&-1!==schema.type.indexOf("array"))&&void 0===schema.minItems&&(schema.minItems=1),this.options.forceProperties===!0&&("object"===schema.type||isArray&&-1!==schema.type.indexOf("object"))&&void 0===schema.properties&&void 0===schema.patternProperties&&report.addError("KEYWORD_UNDEFINED_STRICT",["properties"]),this.options.forceItems===!0&&("array"===schema.type||isArray&&-1!==schema.type.indexOf("array"))&&void 0===schema.items&&report.addError("KEYWORD_UNDEFINED_STRICT",["items"]),this.options.forceMinItems===!0&&("array"===schema.type||isArray&&-1!==schema.type.indexOf("array"))&&void 0===schema.minItems&&report.addError("KEYWORD_UNDEFINED_STRICT",["minItems"]),this.options.forceMaxItems===!0&&("array"===schema.type||isArray&&-1!==schema.type.indexOf("array"))&&void 0===schema.maxItems&&report.addError("KEYWORD_UNDEFINED_STRICT",["maxItems"]),this.options.forceMinLength===!0&&("string"===schema.type||isArray&&-1!==schema.type.indexOf("string"))&&void 0===schema.minLength&&void 0===schema.format&&void 0===schema["enum"]&&void 0===schema.pattern&&report.addError("KEYWORD_UNDEFINED_STRICT",["minLength"]),this.options.forceMaxLength===!0&&("string"===schema.type||isArray&&-1!==schema.type.indexOf("string"))&&void 0===schema.maxLength&&void 0===schema.format&&void 0===schema["enum"]&&void 0===schema.pattern&&report.addError("KEYWORD_UNDEFINED_STRICT",["maxLength"]);
},allOf:function(report,schema){if(Array.isArray(schema.allOf)===!1)report.addError("KEYWORD_TYPE_EXPECTED",["allOf","array"]);else if(0===schema.allOf.length)report.addError("KEYWORD_MUST_BE",["allOf","an array with at least one element"]);else for(var idx=schema.allOf.length;idx--;)report.path.push("allOf"),report.path.push(idx.toString()),exports.validateSchema.call(this,report,schema.allOf[idx]),report.path.pop(),report.path.pop()},anyOf:function(report,schema){if(Array.isArray(schema.anyOf)===!1)report.addError("KEYWORD_TYPE_EXPECTED",["anyOf","array"]);else if(0===schema.anyOf.length)report.addError("KEYWORD_MUST_BE",["anyOf","an array with at least one element"]);else for(var idx=schema.anyOf.length;idx--;)report.path.push("anyOf"),report.path.push(idx.toString()),exports.validateSchema.call(this,report,schema.anyOf[idx]),report.path.pop(),report.path.pop()},oneOf:function(report,schema){if(Array.isArray(schema.oneOf)===!1)report.addError("KEYWORD_TYPE_EXPECTED",["oneOf","array"]);else if(0===schema.oneOf.length)report.addError("KEYWORD_MUST_BE",["oneOf","an array with at least one element"]);else for(var idx=schema.oneOf.length;idx--;)report.path.push("oneOf"),report.path.push(idx.toString()),exports.validateSchema.call(this,report,schema.oneOf[idx]),report.path.pop(),report.path.pop()},not:function(report,schema){"object"!==Utils.whatIs(schema.not)?report.addError("KEYWORD_TYPE_EXPECTED",["not","object"]):(report.path.push("not"),exports.validateSchema.call(this,report,schema.not),report.path.pop())},definitions:function(report,schema){if("object"!==Utils.whatIs(schema.definitions))report.addError("KEYWORD_TYPE_EXPECTED",["definitions","object"]);else for(var keys=Object.keys(schema.definitions),idx=keys.length;idx--;){var key=keys[idx],val=schema.definitions[key];report.path.push("definitions"),report.path.push(key),exports.validateSchema.call(this,report,val),report.path.pop(),report.path.pop()}},format:function(report,schema){"string"!=typeof schema.format?report.addError("KEYWORD_TYPE_EXPECTED",["format","string"]):void 0===FormatValidators[schema.format]&&this.options.ignoreUnknownFormats!==!0&&report.addError("UNKNOWN_FORMAT",[schema.format])},id:function(report,schema){"string"!=typeof schema.id&&report.addError("KEYWORD_TYPE_EXPECTED",["id","string"])},title:function(report,schema){"string"!=typeof schema.title&&report.addError("KEYWORD_TYPE_EXPECTED",["title","string"])},description:function(report,schema){"string"!=typeof schema.description&&report.addError("KEYWORD_TYPE_EXPECTED",["description","string"])},"default":function(){}},validateArrayOfSchemas=function(report,arr){for(var idx=arr.length;idx--;)exports.validateSchema.call(this,report,arr[idx]);return report.isValid()};return exports.validateSchema=function(report,schema){if(report.commonErrorMessage="SCHEMA_VALIDATION_FAILED",Array.isArray(schema))return validateArrayOfSchemas.call(this,report,schema);if(schema.__$validated)return!0;var hasParentSchema=schema.$schema&&schema.id!==schema.$schema;if(hasParentSchema)if(schema.__$schemaResolved&&schema.__$schemaResolved!==schema){var subReport=new Report(report),valid=JsonValidation.validate.call(this,subReport,schema.__$schemaResolved,schema);valid===!1&&report.addError("PARENT_SCHEMA_VALIDATION_FAILED",null,subReport)}else this.options.ignoreUnresolvableReferences!==!0&&report.addError("REF_UNRESOLVED",[schema.$schema]);if(this.options.noTypeless===!0){if(void 0!==schema.type){var schemas=[];Array.isArray(schema.anyOf)&&(schemas=schemas.concat(schema.anyOf)),Array.isArray(schema.oneOf)&&(schemas=schemas.concat(schema.oneOf)),Array.isArray(schema.allOf)&&(schemas=schemas.concat(schema.allOf)),schemas.forEach(function(sch){sch.type||(sch.type=schema.type)})}void 0===schema["enum"]&&void 0===schema.type&&void 0===schema.anyOf&&void 0===schema.oneOf&&void 0===schema.not&&void 0===schema.$ref&&report.addError("KEYWORD_UNDEFINED_STRICT",["type"])}for(var keys=Object.keys(schema),idx=keys.length;idx--;){var key=keys[idx];0!==key.indexOf("__")&&(void 0!==SchemaValidators[key]?SchemaValidators[key].call(this,report,schema):hasParentSchema||this.options.noExtraKeywords===!0&&report.addError("KEYWORD_UNEXPECTED",[key]))}if(this.options.pedanticCheck===!0){if(schema["enum"]){var tmpSchema=Utils.clone(schema);for(delete tmpSchema["enum"],delete tmpSchema["default"],report.path.push("enum"),idx=schema["enum"].length;idx--;)report.path.push(idx.toString()),JsonValidation.validate.call(this,report,tmpSchema,schema["enum"][idx]),report.path.pop();report.path.pop()}schema["default"]&&(report.path.push("default"),JsonValidation.validate.call(this,report,schema,schema["default"]),report.path.pop())}var isValid=report.isValid();return isValid&&(schema.__$validated=!0),isValid},module.exports}),$__System.registerDynamic("f1",[],!0,function($__require,exports,module){"use strict";return exports.isAbsoluteUri=function(uri){return/^https?:\/\//.test(uri)},exports.isRelativeUri=function(uri){return/.+#/.test(uri)},exports.whatIs=function(what){var to=typeof what;return"object"===to?null===what?"null":Array.isArray(what)?"array":"object":"number"===to?Number.isFinite(what)?what%1===0?"integer":"number":Number.isNaN(what)?"not-a-number":"unknown-number":to},exports.areEqual=function areEqual(json1,json2){if(json1===json2)return!0;var i,len;if(Array.isArray(json1)&&Array.isArray(json2)){if(json1.length!==json2.length)return!1;for(len=json1.length,i=0;len>i;i++)if(!areEqual(json1[i],json2[i]))return!1;return!0}if("object"===exports.whatIs(json1)&&"object"===exports.whatIs(json2)){var keys1=Object.keys(json1),keys2=Object.keys(json2);if(!areEqual(keys1,keys2))return!1;for(len=keys1.length,i=0;len>i;i++)if(!areEqual(json1[keys1[i]],json2[keys1[i]]))return!1;return!0}return!1},exports.isUniqueArray=function(arr,indexes){var i,j,l=arr.length;for(i=0;l>i;i++)for(j=i+1;l>j;j++)if(exports.areEqual(arr[i],arr[j]))return indexes&&indexes.push(i,j),!1;return!0},exports.difference=function(bigSet,subSet){for(var arr=[],idx=bigSet.length;idx--;)-1===subSet.indexOf(bigSet[idx])&&arr.push(bigSet[idx]);return arr},exports.clone=function(src){if("undefined"!=typeof src){if("object"!=typeof src||null===src)return src;var res,idx;if(Array.isArray(src))for(res=[],idx=src.length;idx--;)res[idx]=src[idx];else{res={};var keys=Object.keys(src);for(idx=keys.length;idx--;){var key=keys[idx];res[key]=src[key]}}return res}},exports.cloneDeep=function(src){function cloneDeep(src){if("object"!=typeof src||null===src)return src;var res,idx,cidx;if(cidx=visited.indexOf(src),-1!==cidx)return cloned[cidx];if(visited.push(src),Array.isArray(src))for(res=[],cloned.push(res),idx=src.length;idx--;)res[idx]=cloneDeep(src[idx]);else{res={},cloned.push(res);var keys=Object.keys(src);for(idx=keys.length;idx--;){var key=keys[idx];res[key]=cloneDeep(src[key])}}return res}var visited=[],cloned=[];return cloneDeep(src)},exports.ucs2decode=function(string){for(var value,extra,output=[],counter=0,length=string.length;length>counter;)value=string.charCodeAt(counter++),value>=55296&&56319>=value&&length>counter?(extra=string.charCodeAt(counter++),56320==(64512&extra)?output.push(((1023&value)<<10)+(1023&extra)+65536):(output.push(value),counter--)):output.push(value);return output},module.exports}),$__System.registerDynamic("139",[],!0,function($__require,exports,module){return module.exports={id:"http://json-schema.org/draft-04/schema#",$schema:"http://json-schema.org/draft-04/schema#",description:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{"default":0}]},simpleTypes:{"enum":["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},type:"object",properties:{id:{type:"string",format:"uri"},$schema:{type:"string",format:"uri"},title:{type:"string"},description:{type:"string"},"default":{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean","default":!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean","default":!1},maxLength:{$ref:"#/definitions/positiveInteger"},minLength:{$ref:"#/definitions/positiveIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],"default":{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],"default":{}},maxItems:{$ref:"#/definitions/positiveInteger"},minItems:{$ref:"#/definitions/positiveIntegerDefault0"},uniqueItems:{type:"boolean","default":!1},maxProperties:{$ref:"#/definitions/positiveInteger"},minProperties:{$ref:"#/definitions/positiveIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],"default":{}},definitions:{type:"object",additionalProperties:{$ref:"#"},"default":{}},properties:{type:"object",additionalProperties:{$ref:"#"},"default":{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},"default":{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},"enum":{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},dependencies:{exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},"default":{}},module.exports}),$__System.registerDynamic("13a",[],!0,function($__require,exports,module){return module.exports={$schema:"http://json-schema.org/draft-04/hyper-schema#",id:"http://json-schema.org/draft-04/hyper-schema#",title:"JSON Hyper-Schema",allOf:[{$ref:"http://json-schema.org/draft-04/schema#"}],properties:{additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}]},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}]},dependencies:{additionalProperties:{anyOf:[{$ref:"#"},{type:"array"}]}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}]},definitions:{additionalProperties:{$ref:"#"}},patternProperties:{additionalProperties:{$ref:"#"}},properties:{additionalProperties:{$ref:"#"}},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"},links:{type:"array",items:{$ref:"#/definitions/linkDescription"}},fragmentResolution:{type:"string"},media:{type:"object",properties:{type:{description:"A media type, as described in RFC 2046",type:"string"},binaryEncoding:{description:"A content encoding scheme, as described in RFC 2045",type:"string"}}},pathStart:{description:"Instances' URIs must start with this value for this schema to apply to them",type:"string",format:"uri"}},definitions:{schemaArray:{type:"array",items:{$ref:"#"}},linkDescription:{title:"Link Description Object",type:"object",required:["href","rel"],properties:{href:{description:"a URI template, as defined by RFC 6570, with the addition of the $, ( and ) characters for pre-processing",type:"string"},rel:{description:"relation to the target resource of the link",type:"string"},title:{description:"a title for the link",type:"string"},targetSchema:{description:"JSON Schema describing the link target",$ref:"#"},mediaType:{description:"media type (as defined by RFC 2046) describing the link target",type:"string"},method:{description:'method for requesting the target of the link (e.g. for HTTP this might be "GET" or "DELETE")',type:"string"},encType:{description:"The media type in which to submit data along with the request",type:"string","default":"application/json"},schema:{description:"Schema describing the data to submit along with the request",$ref:"#"}}}}},module.exports}),$__System.registerDynamic("13b",["ec","137","ee","132","133","ed","ef","f0","f1","139","13a","d4"],!0,function($__require,exports,module){return function(process){"use strict";function ZSchema(options){if(this.cache={},this.referenceCache=[],this.setRemoteReference("http://json-schema.org/draft-04/schema",Draft4Schema),this.setRemoteReference("http://json-schema.org/draft-04/hyper-schema",Draft4HyperSchema),"object"==typeof options){for(var key,keys=Object.keys(options),idx=keys.length;idx--;)if(key=keys[idx],void 0===defaultOptions[key])throw new Error("Unexpected option passed to constructor: "+key);for(keys=Object.keys(defaultOptions),idx=keys.length;idx--;)key=keys[idx],void 0===options[key]&&(options[key]=Utils.clone(defaultOptions[key]));this.options=options}else this.options=Utils.clone(defaultOptions);this.options.strictMode===!0&&(this.options.forceAdditional=!0,this.options.forceItems=!0,this.options.forceMaxLength=!0,this.options.forceProperties=!0,this.options.noExtraKeywords=!0,this.options.noTypeless=!0,this.options.noEmptyStrings=!0,this.options.noEmptyArrays=!0)}$__require("ec");var get=$__require("137"),Report=$__require("ee"),FormatValidators=$__require("132"),JsonValidation=$__require("133"),SchemaCache=$__require("ed"),SchemaCompilation=$__require("ef"),SchemaValidation=$__require("f0"),Utils=$__require("f1"),Draft4Schema=$__require("139"),Draft4HyperSchema=$__require("13a"),defaultOptions={asyncTimeout:2e3,forceAdditional:!1,assumeAdditional:!1,forceItems:!1,forceMinItems:!1,forceMaxItems:!1,forceMinLength:!1,forceMaxLength:!1,forceProperties:!1,ignoreUnresolvableReferences:!1,noExtraKeywords:!1,noTypeless:!1,noEmptyStrings:!1,noEmptyArrays:!1,strictUris:!1,strictMode:!1,reportPathAsArray:!1,breakOnFirstError:!0,pedanticCheck:!1,ignoreUnknownFormats:!1,customValidator:null};ZSchema.prototype.compileSchema=function(schema){var report=new Report(this.options);return schema=SchemaCache.getSchema.call(this,report,schema),SchemaCompilation.compileSchema.call(this,report,schema),this.lastReport=report,report.isValid()},ZSchema.prototype.validateSchema=function(schema){if(Array.isArray(schema)&&0===schema.length)throw new Error(".validateSchema was called with an empty array");var report=new Report(this.options);schema=SchemaCache.getSchema.call(this,report,schema);var compiled=SchemaCompilation.compileSchema.call(this,report,schema);return compiled&&SchemaValidation.validateSchema.call(this,report,schema),this.lastReport=report,report.isValid()},ZSchema.prototype.validate=function(json,schema,options,callback){"function"===Utils.whatIs(options)&&(callback=options,options={}),options||(options={});var whatIs=Utils.whatIs(schema);if("string"!==whatIs&&"object"!==whatIs){var e=new Error("Invalid .validate call - schema must be an string or object but "+whatIs+" was passed!");if(callback)return void process.nextTick(function(){callback(e,!1)});throw e}var foundError=!1,report=new Report(this.options);if("string"==typeof schema){var schemaName=schema;if(schema=SchemaCache.getSchema.call(this,report,schemaName),!schema)throw new Error("Schema with id '"+schemaName+"' wasn't found in the validator cache!")}else schema=SchemaCache.getSchema.call(this,report,schema);var compiled=!1;foundError||(compiled=SchemaCompilation.compileSchema.call(this,report,schema)),compiled||(this.lastReport=report,foundError=!0);var validated=!1;if(foundError||(validated=SchemaValidation.validateSchema.call(this,report,schema)),validated||(this.lastReport=report,foundError=!0),options.schemaPath&&(report.rootSchema=schema,schema=get(schema,options.schemaPath),!schema))throw new Error("Schema path '"+options.schemaPath+"' wasn't found in the schema!");if(foundError||JsonValidation.validate.call(this,report,schema,json),callback)return void report.processAsyncTasks(this.options.asyncTimeout,callback);if(report.asyncTasks.length>0)throw new Error("This validation has async tasks and cannot be done in sync mode, please provide callback argument.");return this.lastReport=report,report.isValid()},ZSchema.prototype.getLastError=function(){if(0===this.lastReport.errors.length)return null;var e=new Error;return e.name="z-schema validation error",e.message=this.lastReport.commonErrorMessage,e.details=this.lastReport.errors,e},ZSchema.prototype.getLastErrors=function(){return this.lastReport&&this.lastReport.errors.length>0?this.lastReport.errors:void 0},ZSchema.prototype.getMissingReferences=function(arr){arr=arr||this.lastReport.errors;for(var res=[],idx=arr.length;idx--;){var error=arr[idx];if("UNRESOLVABLE_REFERENCE"===error.code){var reference=error.params[0];-1===res.indexOf(reference)&&res.push(reference)}error.inner&&(res=res.concat(this.getMissingReferences(error.inner)))}return res},ZSchema.prototype.getMissingRemoteReferences=function(){for(var missingReferences=this.getMissingReferences(),missingRemoteReferences=[],idx=missingReferences.length;idx--;){var remoteReference=SchemaCache.getRemotePath(missingReferences[idx]);remoteReference&&-1===missingRemoteReferences.indexOf(remoteReference)&&missingRemoteReferences.push(remoteReference)}return missingRemoteReferences},ZSchema.prototype.setRemoteReference=function(uri,schema){schema="string"==typeof schema?JSON.parse(schema):Utils.cloneDeep(schema),SchemaCache.cacheSchemaByUri.call(this,uri,schema)},ZSchema.prototype.getResolvedSchema=function(schema){var report=new Report(this.options);schema=SchemaCache.getSchema.call(this,report,schema),schema=Utils.cloneDeep(schema);var visited=[],cleanup=function(schema){var key,typeOf=Utils.whatIs(schema);if(("object"===typeOf||"array"===typeOf)&&!schema.___$visited){if(schema.___$visited=!0,visited.push(schema),schema.$ref&&schema.__$refResolved){var from=schema.__$refResolved,to=schema;delete schema.$ref,delete schema.__$refResolved;for(key in from)from.hasOwnProperty(key)&&(to[key]=from[key])}for(key in schema)schema.hasOwnProperty(key)&&(0===key.indexOf("__$")?delete schema[key]:cleanup(schema[key]))}};if(cleanup(schema),visited.forEach(function(s){delete s.___$visited}),this.lastReport=report,report.isValid())return schema;throw this.getLastError()},ZSchema.prototype.setSchemaReader=function(schemaReader){return ZSchema.setSchemaReader(schemaReader)},ZSchema.prototype.getSchemaReader=function(){return ZSchema.schemaReader},ZSchema.setSchemaReader=function(schemaReader){ZSchema.schemaReader=schemaReader},ZSchema.registerFormat=function(formatName,validatorFunction){FormatValidators[formatName]=validatorFunction},ZSchema.unregisterFormat=function(formatName){delete FormatValidators[formatName]},ZSchema.getRegisteredFormats=function(){return Object.keys(FormatValidators)},ZSchema.getDefaultOptions=function(){return Utils.cloneDeep(defaultOptions)},module.exports=ZSchema}($__require("d4")),module.exports}),$__System.registerDynamic("13c",["13b"],!0,function($__require,exports,module){return module.exports=$__require("13b"),module.exports}),$__System.registerDynamic("13d",[],!0,function($__require,exports,module){return module.exports={title:"A JSON Schema for Swagger 2.0 API.",id:"http://swagger.io/v2/schema.json#",$schema:"http://json-schema.org/draft-04/schema#",type:"object",required:["swagger","info","paths"],additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{swagger:{type:"string","enum":["2.0"],description:"The Swagger version of this document."},info:{$ref:"#/definitions/info"},host:{type:"string",pattern:"^[^{}/ :\\\\]+(?::\\d+)?$",description:"The host (name or ip) of the API. Example: 'swagger.io'"},basePath:{type:"string",pattern:"^/",description:"The base path to the API. Example: '/api'."},schemes:{$ref:"#/definitions/schemesList"},consumes:{description:"A list of MIME types accepted by the API.",$ref:"#/definitions/mediaTypeList"},produces:{description:"A list of MIME types the API can produce.",$ref:"#/definitions/mediaTypeList"},paths:{$ref:"#/definitions/paths"},definitions:{$ref:"#/definitions/definitions"},parameters:{$ref:"#/definitions/parameterDefinitions"},responses:{$ref:"#/definitions/responseDefinitions"},security:{$ref:"#/definitions/security"},securityDefinitions:{$ref:"#/definitions/securityDefinitions"},tags:{type:"array",items:{$ref:"#/definitions/tag"},uniqueItems:!0},externalDocs:{$ref:"#/definitions/externalDocs"}},definitions:{info:{type:"object",description:"General information about the API.",required:["version","title"],additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{title:{type:"string",description:"A unique and precise title of the API."},version:{type:"string",description:"A semantic version number of the API."},description:{type:"string",description:"A longer description of the API. Should be different from the title. GitHub Flavored Markdown is allowed."},termsOfService:{type:"string",description:"The terms of service for the API."},contact:{$ref:"#/definitions/contact"},license:{$ref:"#/definitions/license"}}},contact:{type:"object",description:"Contact information for the owners of the API.",additionalProperties:!1,properties:{name:{type:"string",description:"The identifying name of the contact person/organization."},url:{type:"string",description:"The URL pointing to the contact information.",format:"uri"},email:{type:"string",description:"The email address of the contact person/organization.",format:"email"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},license:{type:"object",required:["name"],additionalProperties:!1,properties:{name:{type:"string",description:"The name of the license type. It's encouraged to use an OSI compatible license."},url:{type:"string",description:"The URL pointing to the license.",format:"uri"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},paths:{type:"object",description:"Relative paths to the individual endpoints. They must be relative to the 'basePath'.",patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"},"^/":{$ref:"#/definitions/pathItem"}},additionalProperties:!1},definitions:{type:"object",additionalProperties:{$ref:"#/definitions/schema"},description:"One or more JSON objects describing the schemas being consumed and produced by the API."},parameterDefinitions:{type:"object",additionalProperties:{$ref:"#/definitions/parameter"},description:"One or more JSON representations for parameters"},responseDefinitions:{type:"object",additionalProperties:{$ref:"#/definitions/response"},description:"One or more JSON representations for parameters"},externalDocs:{type:"object",additionalProperties:!1,description:"information about external documentation",required:["url"],properties:{description:{type:"string"},url:{type:"string",format:"uri"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},examples:{type:"object",additionalProperties:!0},mimeType:{type:"string",description:"The MIME type of the HTTP message."},operation:{type:"object",required:["responses"],additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{tags:{type:"array",items:{type:"string"},uniqueItems:!0},summary:{type:"string",description:"A brief summary of the operation."},description:{type:"string",description:"A longer description of the operation, GitHub Flavored Markdown is allowed."},externalDocs:{$ref:"#/definitions/externalDocs"},operationId:{type:"string",description:"A unique identifier of the operation."},produces:{description:"A list of MIME types the API can produce.",$ref:"#/definitions/mediaTypeList"},consumes:{description:"A list of MIME types the API can consume.",$ref:"#/definitions/mediaTypeList"},parameters:{$ref:"#/definitions/parametersList"},responses:{$ref:"#/definitions/responses"},schemes:{$ref:"#/definitions/schemesList"},deprecated:{type:"boolean","default":!1},security:{$ref:"#/definitions/security"}}},pathItem:{type:"object",additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{$ref:{type:"string"},get:{$ref:"#/definitions/operation"},put:{$ref:"#/definitions/operation"},post:{$ref:"#/definitions/operation"},"delete":{$ref:"#/definitions/operation"},options:{$ref:"#/definitions/operation"},head:{$ref:"#/definitions/operation"},patch:{$ref:"#/definitions/operation"},parameters:{$ref:"#/definitions/parametersList"}}},responses:{type:"object",description:"Response objects names can either be any valid HTTP status code or 'default'.",minProperties:1,additionalProperties:!1,patternProperties:{"^([0-9]{3})$|^(default)$":{$ref:"#/definitions/responseValue"},"^x-":{$ref:"#/definitions/vendorExtension"}},not:{type:"object",additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}}},responseValue:{oneOf:[{$ref:"#/definitions/response"},{$ref:"#/definitions/jsonReference"}]},response:{type:"object",required:["description"],properties:{description:{type:"string"},schema:{oneOf:[{$ref:"#/definitions/schema"},{$ref:"#/definitions/fileSchema"}]},headers:{$ref:"#/definitions/headers"},examples:{$ref:"#/definitions/examples"}},additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},headers:{type:"object",additionalProperties:{$ref:"#/definitions/header"}},header:{type:"object",additionalProperties:!1,required:["type"],properties:{type:{type:"string","enum":["string","number","integer","boolean","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},"default":{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},"enum":{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},vendorExtension:{description:"Any property starting with x- is valid.",additionalProperties:!0,additionalItems:!0},bodyParameter:{type:"object",required:["name","in","schema"],patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},"in":{type:"string",description:"Determines the location of the parameter.","enum":["body"]},required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.","default":!1},schema:{$ref:"#/definitions/schema"}},additionalProperties:!1},headerParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.","default":!1},"in":{type:"string",description:"Determines the location of the parameter.","enum":["header"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},type:{type:"string","enum":["string","number","boolean","integer","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},"default":{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},"enum":{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},queryParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.","default":!1},"in":{type:"string",description:"Determines the location of the parameter.","enum":["query"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},allowEmptyValue:{type:"boolean","default":!1,description:"allows sending a parameter by name only or with an empty value."},type:{type:"string","enum":["string","number","boolean","integer","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormatWithMulti"},"default":{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},"enum":{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},formDataParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.","default":!1},"in":{type:"string",description:"Determines the location of the parameter.","enum":["formData"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},allowEmptyValue:{type:"boolean","default":!1,description:"allows sending a parameter by name only or with an empty value."},type:{type:"string","enum":["string","number","boolean","integer","array","file"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormatWithMulti"},"default":{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},"enum":{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},pathParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},required:["required"],properties:{required:{type:"boolean","enum":[!0],description:"Determines whether or not this parameter is required or optional."},"in":{type:"string",description:"Determines the location of the parameter.","enum":["path"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},type:{type:"string","enum":["string","number","boolean","integer","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},"default":{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"
},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},"enum":{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},nonBodyParameter:{type:"object",required:["name","in","type"],oneOf:[{$ref:"#/definitions/headerParameterSubSchema"},{$ref:"#/definitions/formDataParameterSubSchema"},{$ref:"#/definitions/queryParameterSubSchema"},{$ref:"#/definitions/pathParameterSubSchema"}]},parameter:{oneOf:[{$ref:"#/definitions/bodyParameter"},{$ref:"#/definitions/nonBodyParameter"}]},schema:{type:"object",description:"A deterministic version of a JSON Schema object.",patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{$ref:{type:"string"},format:{type:"string"},title:{$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{$ref:"http://json-schema.org/draft-04/schema#/properties/description"},"default":{$ref:"http://json-schema.org/draft-04/schema#/properties/default"},multipleOf:{$ref:"http://json-schema.org/draft-04/schema#/properties/multipleOf"},maximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/maximum"},exclusiveMaximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},minimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/minimum"},exclusiveMinimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},maxLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},pattern:{$ref:"http://json-schema.org/draft-04/schema#/properties/pattern"},maxItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},uniqueItems:{$ref:"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},maxProperties:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minProperties:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},required:{$ref:"http://json-schema.org/draft-04/schema#/definitions/stringArray"},"enum":{$ref:"http://json-schema.org/draft-04/schema#/properties/enum"},additionalProperties:{anyOf:[{$ref:"#/definitions/schema"},{type:"boolean"}],"default":{}},type:{$ref:"http://json-schema.org/draft-04/schema#/properties/type"},items:{anyOf:[{$ref:"#/definitions/schema"},{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}}],"default":{}},allOf:{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}},properties:{type:"object",additionalProperties:{$ref:"#/definitions/schema"},"default":{}},discriminator:{type:"string"},readOnly:{type:"boolean","default":!1},xml:{$ref:"#/definitions/xml"},externalDocs:{$ref:"#/definitions/externalDocs"},example:{}},additionalProperties:!1},fileSchema:{type:"object",description:"A deterministic version of a JSON Schema object.",patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},required:["type"],properties:{format:{type:"string"},title:{$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{$ref:"http://json-schema.org/draft-04/schema#/properties/description"},"default":{$ref:"http://json-schema.org/draft-04/schema#/properties/default"},required:{$ref:"http://json-schema.org/draft-04/schema#/definitions/stringArray"},type:{type:"string","enum":["file"]},readOnly:{type:"boolean","default":!1},externalDocs:{$ref:"#/definitions/externalDocs"},example:{}},additionalProperties:!1},primitivesItems:{type:"object",additionalProperties:!1,properties:{type:{type:"string","enum":["string","number","integer","boolean","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},"default":{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},"enum":{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},security:{type:"array",items:{$ref:"#/definitions/securityRequirement"},uniqueItems:!0},securityRequirement:{type:"object",additionalProperties:{type:"array",items:{type:"string"},uniqueItems:!0}},xml:{type:"object",additionalProperties:!1,properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean","default":!1},wrapped:{type:"boolean","default":!1}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},tag:{type:"object",additionalProperties:!1,required:["name"],properties:{name:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/definitions/externalDocs"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},securityDefinitions:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/basicAuthenticationSecurity"},{$ref:"#/definitions/apiKeySecurity"},{$ref:"#/definitions/oauth2ImplicitSecurity"},{$ref:"#/definitions/oauth2PasswordSecurity"},{$ref:"#/definitions/oauth2ApplicationSecurity"},{$ref:"#/definitions/oauth2AccessCodeSecurity"}]}},basicAuthenticationSecurity:{type:"object",additionalProperties:!1,required:["type"],properties:{type:{type:"string","enum":["basic"]},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},apiKeySecurity:{type:"object",additionalProperties:!1,required:["type","name","in"],properties:{type:{type:"string","enum":["apiKey"]},name:{type:"string"},"in":{type:"string","enum":["header","query"]},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2ImplicitSecurity:{type:"object",additionalProperties:!1,required:["type","flow","authorizationUrl"],properties:{type:{type:"string","enum":["oauth2"]},flow:{type:"string","enum":["implicit"]},scopes:{$ref:"#/definitions/oauth2Scopes"},authorizationUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2PasswordSecurity:{type:"object",additionalProperties:!1,required:["type","flow","tokenUrl"],properties:{type:{type:"string","enum":["oauth2"]},flow:{type:"string","enum":["password"]},scopes:{$ref:"#/definitions/oauth2Scopes"},tokenUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2ApplicationSecurity:{type:"object",additionalProperties:!1,required:["type","flow","tokenUrl"],properties:{type:{type:"string","enum":["oauth2"]},flow:{type:"string","enum":["application"]},scopes:{$ref:"#/definitions/oauth2Scopes"},tokenUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2AccessCodeSecurity:{type:"object",additionalProperties:!1,required:["type","flow","authorizationUrl","tokenUrl"],properties:{type:{type:"string","enum":["oauth2"]},flow:{type:"string","enum":["accessCode"]},scopes:{$ref:"#/definitions/oauth2Scopes"},authorizationUrl:{type:"string",format:"uri"},tokenUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2Scopes:{type:"object",additionalProperties:{type:"string"}},mediaTypeList:{type:"array",items:{$ref:"#/definitions/mimeType"},uniqueItems:!0},parametersList:{type:"array",description:"The parameters needed to send a valid API call.",additionalItems:!1,items:{oneOf:[{$ref:"#/definitions/parameter"},{$ref:"#/definitions/jsonReference"}]},uniqueItems:!0},schemesList:{type:"array",description:"The transfer protocol of the API.",items:{type:"string","enum":["http","https","ws","wss"]},uniqueItems:!0},collectionFormat:{type:"string","enum":["csv","ssv","tsv","pipes"],"default":"csv"},collectionFormatWithMulti:{type:"string","enum":["csv","ssv","tsv","pipes","multi"],"default":"csv"},title:{$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{$ref:"http://json-schema.org/draft-04/schema#/properties/description"},"default":{$ref:"http://json-schema.org/draft-04/schema#/properties/default"},multipleOf:{$ref:"http://json-schema.org/draft-04/schema#/properties/multipleOf"},maximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/maximum"},exclusiveMaximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},minimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/minimum"},exclusiveMinimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},maxLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},pattern:{$ref:"http://json-schema.org/draft-04/schema#/properties/pattern"},maxItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},uniqueItems:{$ref:"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},"enum":{$ref:"http://json-schema.org/draft-04/schema#/properties/enum"},jsonReference:{type:"object",required:["$ref"],additionalProperties:!1,properties:{$ref:{type:"string"}}}}},module.exports}),$__System.registerDynamic("13e",["13f","140","13c","13d"],!0,function($__require,exports,module){"use strict";function validateSchema(api){util.debug("Validating against the Swagger 2.0 schema");var isValid=ZSchema.validate(api,swaggerSchema);if(!isValid){var err=ZSchema.getLastError(),message="Swagger schema validation failed. \n"+formatZSchemaError(err.details);throw ono.syntax(err,{details:err.details},message)}util.debug(" Validated successfully")}function initializeZSchema(){ZSchema=new ZSchema({breakOnFirstError:!0,noExtraKeywords:!0,ignoreUnknownFormats:!1,reportPathAsArray:!0})}function formatZSchemaError(errors,indent){indent=indent||" ";var message="";return errors.forEach(function(error,index){message+=util.format("%s%s at #/%s\n",indent,error.message,error.path.join("/")),error.inner&&(message+=formatZSchemaError(error.inner,indent+" "))}),message}var util=$__require("13f"),ono=$__require("140"),ZSchema=$__require("13c"),swaggerSchema=$__require("13d");return module.exports=validateSchema,initializeZSchema(),module.exports}),$__System.registerDynamic("141",[],!0,function($__require,exports,module){return module.exports=["get","put","post","delete","options","head","patch"],module.exports}),$__System.registerDynamic("142",["141"],!0,function($__require,exports,module){return module.exports=$__require("141"),module.exports}),$__System.registerDynamic("143",["13f","140","142"],!0,function($__require,exports,module){"use strict";function validateSpec(api){util.debug("Validating against the Swagger 2.0 spec");var paths=Object.keys(api.paths||{});paths.forEach(function(pathName){var path=api.paths[pathName],pathId="/paths"+pathName;path&&0===pathName.indexOf("/")&&validatePath(api,path,pathId)}),util.debug(" Validated successfully")}function validatePath(api,path,pathId){swaggerMethods.forEach(function(operationName){var operation=path[operationName],operationId=pathId+"/"+operationName;if(operation){validateParameters(api,path,pathId,operation,operationId);var responses=Object.keys(operation.responses||{});responses.forEach(function(responseName){var response=operation.responses[responseName],responseId=operationId+"/responses/"+responseName;validateResponse(responseName,response,responseId)})}})}function validateParameters(api,path,pathId,operation,operationId){var pathParams=path.parameters||[],operationParams=operation.parameters||[];try{checkForDuplicates(pathParams)}catch(e){throw ono.syntax(e,"Validation failed. %s has duplicate parameters",pathId)}try{checkForDuplicates(operationParams)}catch(e){throw ono.syntax(e,"Validation failed. %s has duplicate parameters",operationId)}var params=pathParams.reduce(function(combinedParams,value){var duplicate=combinedParams.some(function(param){return param["in"]===value["in"]&¶m.name===value.name});return duplicate||combinedParams.push(value),combinedParams},operationParams.slice());validateBodyParameters(params,operationId),validatePathParameters(params,pathId,operationId),validateParameterTypes(params,api,operation,operationId)}function validateBodyParameters(params,operationId){var bodyParams=params.filter(function(param){return"body"===param["in"]}),formParams=params.filter(function(param){return"formData"===param["in"]});if(bodyParams.length>1)throw ono.syntax("Validation failed. %s has %d body parameters. Only one is allowed.",operationId,bodyParams.length);if(bodyParams.length>0&&formParams.length>0)throw ono.syntax("Validation failed. %s has body parameters and formData parameters. Only one or the other is allowed.",operationId)}function validatePathParameters(params,pathId,operationId){for(var placeholders=pathId.match(util.swaggerParamRegExp)||[],i=0;i0)throw ono.syntax("Validation failed. %s is missing path parameter(s) for %s",operationId,placeholders)}function validateParameterTypes(params,api,operation,operationId){params.forEach(function(param){var schema,validTypes,parameterId=operationId+"/parameters/"+param.name;switch(param["in"]){case"body":schema=param.schema,validTypes=schemaTypes;break;case"formData":schema=param,validTypes=primitiveTypes.concat("file");break;default:schema=param,validTypes=primitiveTypes}if(validateSchema(schema,parameterId,validTypes),"file"===schema.type){var consumes=operation.consumes||api.consumes||[];if(-1===consumes.indexOf("multipart/form-data")&&-1===consumes.indexOf("application/x-www-form-urlencoded"))throw ono.syntax("Validation failed. %s has a file parameter, so it must consume multipart/form-data or application/x-www-form-urlencoded",operationId)}})}function checkForDuplicates(params){for(var i=0;icode||code>599))throw ono.syntax("Validation failed. %s has an invalid response code (%s)",responseId,code);var headers=Object.keys(response.headers||{});if(headers.forEach(function(headerName){var header=response.headers[headerName],headerId=responseId+"/headers/"+headerName;validateSchema(header,headerId,primitiveTypes)}),response.schema){var validTypes=schemaTypes.concat("file");if(-1===validTypes.indexOf(response.schema.type))throw ono.syntax("Validation failed. %s has an invalid response schema type (%s)",responseId,response.schema.type)}}function validateSchema(schema,schemaId,validTypes){if(-1===validTypes.indexOf(schema.type))throw ono.syntax("Validation failed. %s has an invalid type (%s)",schemaId,schema.type);if("array"===schema.type&&!schema.items)throw ono.syntax('Validation failed. %s is an array, so it must include an "items" schema',schemaId)}var util=$__require("13f"),ono=$__require("140"),swaggerMethods=$__require("142"),primitiveTypes=["array","boolean","integer","number","string"],schemaTypes=["array","boolean","integer","number","string","object","null",void 0];return module.exports=validateSpec,module.exports}),$__System.registerDynamic("13f",["144","145"],!0,function($__require,exports,module){"use strict";var debug=$__require("144"),util=$__require("145");return exports.format=util.format,exports.inherits=util.inherits,exports.debug=debug("swagger:parser"),exports.swaggerParamRegExp=/\{([^\/}]+)}/g,module.exports}),$__System.registerDynamic("146",["147","145"],!0,function($__require,exports,module){"use strict";function ParserOptions(options){$RefParserOptions.call(this,ParserOptions.defaults),$RefParserOptions.apply(this,arguments)}var $RefParserOptions=$__require("147"),util=$__require("145");return module.exports=ParserOptions,ParserOptions.defaults={validate:{schema:{order:1},spec:{order:2}}},util.inherits(ParserOptions,$RefParserOptions),module.exports}),$__System.registerDynamic("148",["149"],!0,function($__require,exports,module){"use strict";return module.exports="function"==typeof Promise?Promise:$__require("149").Promise,module.exports}),$__System.registerDynamic("14a",["14b","14c"],!0,function($__require,exports,module){return function(Buffer){"use strict";var Promise=$__require("14b");module.exports={order:100,allowEmpty:!0,canParse:".json",parse:function(file){return new Promise(function(resolve,reject){var data=file.data;Buffer.isBuffer(data)&&(data=data.toString()),resolve("string"==typeof data?0===data.trim().length?void 0:JSON.parse(data):data)})}}}($__require("14c").Buffer),module.exports}),$__System.registerDynamic("14d",["14b","14e","14c"],!0,function($__require,exports,module){return function(Buffer){"use strict";var Promise=$__require("14b"),YAML=$__require("14e");module.exports={order:200,allowEmpty:!0,canParse:[".yaml",".yml",".json"],parse:function(file){return new Promise(function(resolve,reject){var data=file.data;Buffer.isBuffer(data)&&(data=data.toString()),resolve("string"==typeof data?YAML.parse(data):data)})}}}($__require("14c").Buffer),module.exports}),$__System.registerDynamic("14f",["14c"],!0,function($__require,exports,module){return function(Buffer){"use strict";var TEXT_REGEXP=/\.(txt|htm|html|md|xml|js|min|map|css|scss|less|svg)$/i;module.exports={order:300,allowEmpty:!0,encoding:"utf8",canParse:function(file){return("string"==typeof file.data||Buffer.isBuffer(file.data))&&TEXT_REGEXP.test(file.url)},parse:function(file){if("string"==typeof file.data)return file.data;if(Buffer.isBuffer(file.data))return file.data.toString(this.encoding);throw new Error("data is not text")}}}($__require("14c").Buffer),module.exports}),$__System.registerDynamic("150",["14c"],!0,function($__require,exports,module){return function(Buffer){"use strict";var BINARY_REGEXP=/\.(jpeg|jpg|gif|png|bmp|ico)$/i;module.exports={order:400,allowEmpty:!0,canParse:function(file){return Buffer.isBuffer(file.data)&&BINARY_REGEXP.test(file.url)},parse:function(file){return Buffer.isBuffer(file.data)?file.data:new Buffer(file.data)}}}($__require("14c").Buffer),module.exports}),$__System.registerDynamic("151",[],!0,function($__require,exports,module){return $__System._nodeRequire?module.exports=$__System._nodeRequire("fs"):exports.readFileSync=function(address){var output,xhr=new XMLHttpRequest;return xhr.open("GET",address,!1),xhr.onreadystatechange=function(e){if(4==xhr.readyState){var status=xhr.status;if(status>399&&600>status||400==status)throw"File read error on "+address;output=xhr.responseText}},xhr.send(null),output},module.exports}),$__System.registerDynamic("152",["151"],!0,function($__require,exports,module){return module.exports=$__require("151"),module.exports}),$__System.registerDynamic("153",["152","140","14b","154","155","14c"],!0,function($__require,exports,module){return function(Buffer){"use strict";var fs=$__require("152"),ono=$__require("140"),Promise=$__require("14b"),url=$__require("154"),debug=$__require("155");module.exports={order:100,canRead:function(file){return url.isFileSystemPath(file.url)},read:function(file){return new Promise(function(resolve,reject){var path;try{path=url.toFileSystemPath(file.url)}catch(err){reject(ono.uri(err,"Malformed URI: %s",file.url))}debug("Opening file: %s",path);try{fs.readFile(path,function(err,data){err?reject(ono(err,'Error opening file "%s"',path)):resolve(data)})}catch(err){reject(ono(err,'Error opening file "%s"',path))}})}}}($__require("14c").Buffer),module.exports}),$__System.registerDynamic("156",[],!0,function($__require,exports,module){function checkTypeSupport(type){try{return xhr.responseType=type,xhr.responseType===type}catch(e){}return!1}function isFunction(value){return"function"==typeof value}var global=this;exports.fetch=isFunction(global.fetch)&&isFunction(global.ReadableByteStream),exports.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),exports.blobConstructor=!0}catch(e){}var xhr=new global.XMLHttpRequest;xhr.open("GET",global.location.host?"/":"https://example.com");var haveArrayBuffer="undefined"!=typeof global.ArrayBuffer,haveSlice=haveArrayBuffer&&isFunction(global.ArrayBuffer.prototype.slice);return exports.arraybuffer=haveArrayBuffer&&checkTypeSupport("arraybuffer"),exports.msstream=!exports.fetch&&haveSlice&&checkTypeSupport("ms-stream"),exports.mozchunkedarraybuffer=!exports.fetch&&haveArrayBuffer&&checkTypeSupport("moz-chunked-arraybuffer"),exports.overrideMimeType=isFunction(xhr.overrideMimeType),exports.vbArray=isFunction(global.VBArray),xhr=null,module.exports}),$__System.registerDynamic("157",["156","158","159","14c","d4"],!0,function($__require,exports,module){var global=this;return function(Buffer,process){var capability=$__require("156"),inherits=$__require("158"),stream=$__require("159"),rStates=exports.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},IncomingMessage=exports.IncomingMessage=function(xhr,response,mode){function read(){reader.read().then(function(result){if(!self._destroyed){if(result.done)return void self.push(null);self.push(new Buffer(result.value)),read()}})}var self=this;if(stream.Readable.call(self),self._mode=mode,self.headers={},self.rawHeaders=[],self.trailers={},self.rawTrailers=[],self.on("end",function(){process.nextTick(function(){self.emit("close")})}),"fetch"===mode){self._fetchResponse=response,self.url=response.url,self.statusCode=response.status,self.statusMessage=response.statusText;for(var header,_i,_it=response.headers[Symbol.iterator]();header=(_i=_it.next()).value,!_i.done;)self.headers[header[0].toLowerCase()]=header[1],self.rawHeaders.push(header[0],header[1]);var reader=response.body.getReader();read()}else{self._xhr=xhr,self._pos=0,self.url=xhr.responseURL,self.statusCode=xhr.status,self.statusMessage=xhr.statusText;var headers=xhr.getAllResponseHeaders().split(/\r?\n/);if(headers.forEach(function(header){var matches=header.match(/^([^:]+):\s*(.*)/);if(matches){var key=matches[1].toLowerCase();"set-cookie"===key?(void 0===self.headers[key]&&(self.headers[key]=[]),self.headers[key].push(matches[2])):void 0!==self.headers[key]?self.headers[key]+=", "+matches[2]:self.headers[key]=matches[2],self.rawHeaders.push(matches[1],matches[2])}}),self._charset="x-user-defined",!capability.overrideMimeType){var mimeType=self.rawHeaders["mime-type"];if(mimeType){var charsetMatch=mimeType.match(/;\s*charset=([^;])(;|$)/);charsetMatch&&(self._charset=charsetMatch[1].toLowerCase())}self._charset||(self._charset="utf-8")}}};inherits(IncomingMessage,stream.Readable),IncomingMessage.prototype._read=function(){},IncomingMessage.prototype._onXHRProgress=function(){var self=this,xhr=self._xhr,response=null;switch(self._mode){case"text:vbarray":if(xhr.readyState!==rStates.DONE)break;try{response=new global.VBArray(xhr.responseBody).toArray()}catch(e){}if(null!==response){self.push(new Buffer(response));break}case"text":try{response=xhr.responseText}catch(e){self._mode="text:vbarray";break}if(response.length>self._pos){var newData=response.substr(self._pos);if("x-user-defined"===self._charset){for(var buffer=new Buffer(newData.length),i=0;iself._pos&&(self.push(new Buffer(new Uint8Array(reader.result.slice(self._pos)))),self._pos=reader.result.byteLength)},reader.onload=function(){self.push(null)},reader.readAsArrayBuffer(response)}self._xhr.readyState===rStates.DONE&&"ms-stream"!==self._mode&&self.push(null)}}($__require("14c").Buffer,$__require("d4")),module.exports}),$__System.registerDynamic("15a",["15c","15d","14c","15e","15f","158","@empty","15b","160","d4"],!0,function($__require,exports,module){return function(Buffer,process){"use strict";function ReadableState(options,stream){Duplex=Duplex||$__require("15b"),options=options||{},this.objectMode=!!options.objectMode,stream instanceof Duplex&&(this.objectMode=this.objectMode||!!options.readableObjectMode);var hwm=options.highWaterMark,defaultHwm=this.objectMode?16:16384;this.highWaterMark=hwm||0===hwm?hwm:defaultHwm,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.defaultEncoding=options.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,options.encoding&&(StringDecoder||(StringDecoder=$__require("160").StringDecoder),this.decoder=new StringDecoder(options.encoding),this.encoding=options.encoding)}function Readable(options){return Duplex=Duplex||$__require("15b"),this instanceof Readable?(this._readableState=new ReadableState(options,this),this.readable=!0,options&&"function"==typeof options.read&&(this._read=options.read),void Stream.call(this)):new Readable(options)}function readableAddChunk(stream,state,chunk,encoding,addToFront){var er=chunkInvalid(state,chunk);if(er)stream.emit("error",er);else if(null===chunk)state.reading=!1,onEofChunk(stream,state);else if(state.objectMode||chunk&&chunk.length>0)if(state.ended&&!addToFront){var e=new Error("stream.push() after EOF");stream.emit("error",e)}else if(state.endEmitted&&addToFront){var e=new Error("stream.unshift() after end event");stream.emit("error",e)}else{var skipAdd;!state.decoder||addToFront||encoding||(chunk=state.decoder.write(chunk),skipAdd=!state.objectMode&&0===chunk.length),addToFront||(state.reading=!1),skipAdd||(state.flowing&&0===state.length&&!state.sync?(stream.emit("data",chunk),stream.read(0)):(state.length+=state.objectMode?1:chunk.length,addToFront?state.buffer.unshift(chunk):state.buffer.push(chunk),state.needReadable&&emitReadable(stream))),maybeReadMore(stream,state)}else addToFront||(state.reading=!1);return needMoreData(state)}function needMoreData(state){return!state.ended&&(state.needReadable||state.length=MAX_HWM?n=MAX_HWM:(n--,n|=n>>>1,n|=n>>>2,n|=n>>>4,n|=n>>>8,n|=n>>>16,n++),n}function howMuchToRead(n,state){return 0===state.length&&state.ended?0:state.objectMode?0===n?0:1:null===n||isNaN(n)?state.flowing&&state.buffer.length?state.buffer[0].length:state.length:0>=n?0:(n>state.highWaterMark&&(state.highWaterMark=computeNewHighWaterMark(n)),n>state.length?state.ended?state.length:(state.needReadable=!0,0):n)}function chunkInvalid(state,chunk){var er=null;return Buffer.isBuffer(chunk)||"string"==typeof chunk||null===chunk||void 0===chunk||state.objectMode||(er=new TypeError("Invalid non-string/buffer chunk")),er}function onEofChunk(stream,state){if(!state.ended){if(state.decoder){var chunk=state.decoder.end();chunk&&chunk.length&&(state.buffer.push(chunk),state.length+=state.objectMode?1:chunk.length)}state.ended=!0,emitReadable(stream)}}function emitReadable(stream){var state=stream._readableState;state.needReadable=!1,state.emittedReadable||(debug("emitReadable",state.flowing),state.emittedReadable=!0,state.sync?processNextTick(emitReadable_,stream):emitReadable_(stream))}function emitReadable_(stream){debug("emit readable"),stream.emit("readable"),flow(stream)}function maybeReadMore(stream,state){state.readingMore||(state.readingMore=!0,processNextTick(maybeReadMore_,stream,state))}function maybeReadMore_(stream,state){for(var len=state.length;!state.reading&&!state.flowing&&!state.ended&&state.length=length)ret=stringMode?list.join(""):1===list.length?list[0]:Buffer.concat(list,length),list.length=0;else if(ni&&n>c;i++){var buf=list[0],cpy=Math.min(n-c,buf.length);stringMode?ret+=buf.slice(0,cpy):buf.copy(ret,c,0,cpy),cpy0)throw new Error("endReadable called on non-empty stream");state.endEmitted||(state.ended=!0,processNextTick(endReadableNT,state,stream))}function endReadableNT(state,stream){state.endEmitted||0!==state.length||(state.endEmitted=!0,stream.readable=!1,stream.emit("end"))}function forEach(xs,f){for(var i=0,l=xs.length;l>i;i++)f(xs[i],i)}function indexOf(xs,x){for(var i=0,l=xs.length;l>i;i++)if(xs[i]===x)return i;return-1}module.exports=Readable;var processNextTick=$__require("15c"),isArray=$__require("15d"),Buffer=$__require("14c").Buffer;Readable.ReadableState=ReadableState;var Stream,EElistenerCount=($__require("15e"),function(emitter,type){return emitter.listeners(type).length});!function(){try{Stream=$__require("stream")}catch(_){}finally{Stream||(Stream=$__require("15e").EventEmitter);
}}();var Buffer=$__require("14c").Buffer,util=$__require("15f");util.inherits=$__require("158");var debugUtil=$__require("@empty"),debug=void 0;debug=debugUtil&&debugUtil.debuglog?debugUtil.debuglog("stream"):function(){};var StringDecoder;util.inherits(Readable,Stream);var Duplex,Duplex;Readable.prototype.push=function(chunk,encoding){var state=this._readableState;return state.objectMode||"string"!=typeof chunk||(encoding=encoding||state.defaultEncoding,encoding!==state.encoding&&(chunk=new Buffer(chunk,encoding),encoding="")),readableAddChunk(this,state,chunk,encoding,!1)},Readable.prototype.unshift=function(chunk){var state=this._readableState;return readableAddChunk(this,state,chunk,"",!0)},Readable.prototype.isPaused=function(){return this._readableState.flowing===!1},Readable.prototype.setEncoding=function(enc){return StringDecoder||(StringDecoder=$__require("160").StringDecoder),this._readableState.decoder=new StringDecoder(enc),this._readableState.encoding=enc,this};var MAX_HWM=8388608;Readable.prototype.read=function(n){debug("read",n);var state=this._readableState,nOrig=n;if(("number"!=typeof n||n>0)&&(state.emittedReadable=!1),0===n&&state.needReadable&&(state.length>=state.highWaterMark||state.ended))return debug("read: emitReadable",state.length,state.ended),0===state.length&&state.ended?endReadable(this):emitReadable(this),null;if(n=howMuchToRead(n,state),0===n&&state.ended)return 0===state.length&&endReadable(this),null;var doRead=state.needReadable;debug("need readable",doRead),(0===state.length||state.length-n0?fromList(n,state):null,null===ret&&(state.needReadable=!0,n=0),state.length-=n,0!==state.length||state.ended||(state.needReadable=!0),nOrig!==n&&state.ended&&0===state.length&&endReadable(this),null!==ret&&this.emit("data",ret),ret},Readable.prototype._read=function(n){this.emit("error",new Error("not implemented"))},Readable.prototype.pipe=function(dest,pipeOpts){function onunpipe(readable){debug("onunpipe"),readable===src&&cleanup()}function onend(){debug("onend"),dest.end()}function cleanup(){debug("cleanup"),dest.removeListener("close",onclose),dest.removeListener("finish",onfinish),dest.removeListener("drain",ondrain),dest.removeListener("error",onerror),dest.removeListener("unpipe",onunpipe),src.removeListener("end",onend),src.removeListener("end",cleanup),src.removeListener("data",ondata),cleanedUp=!0,!state.awaitDrain||dest._writableState&&!dest._writableState.needDrain||ondrain()}function ondata(chunk){debug("ondata");var ret=dest.write(chunk);!1===ret&&(1!==state.pipesCount||state.pipes[0]!==dest||1!==src.listenerCount("data")||cleanedUp||(debug("false write response, pause",src._readableState.awaitDrain),src._readableState.awaitDrain++),src.pause())}function onerror(er){debug("onerror",er),unpipe(),dest.removeListener("error",onerror),0===EElistenerCount(dest,"error")&&dest.emit("error",er)}function onclose(){dest.removeListener("finish",onfinish),unpipe()}function onfinish(){debug("onfinish"),dest.removeListener("close",onclose),unpipe()}function unpipe(){debug("unpipe"),src.unpipe(dest)}var src=this,state=this._readableState;switch(state.pipesCount){case 0:state.pipes=dest;break;case 1:state.pipes=[state.pipes,dest];break;default:state.pipes.push(dest)}state.pipesCount+=1,debug("pipe count=%d opts=%j",state.pipesCount,pipeOpts);var doEnd=(!pipeOpts||pipeOpts.end!==!1)&&dest!==process.stdout&&dest!==process.stderr,endFn=doEnd?onend:cleanup;state.endEmitted?processNextTick(endFn):src.once("end",endFn),dest.on("unpipe",onunpipe);var ondrain=pipeOnDrain(src);dest.on("drain",ondrain);var cleanedUp=!1;return src.on("data",ondata),dest._events&&dest._events.error?isArray(dest._events.error)?dest._events.error.unshift(onerror):dest._events.error=[onerror,dest._events.error]:dest.on("error",onerror),dest.once("close",onclose),dest.once("finish",onfinish),dest.emit("pipe",src),state.flowing||(debug("pipe resume"),src.resume()),dest},Readable.prototype.unpipe=function(dest){var state=this._readableState;if(0===state.pipesCount)return this;if(1===state.pipesCount)return dest&&dest!==state.pipes?this:(dest||(dest=state.pipes),state.pipes=null,state.pipesCount=0,state.flowing=!1,dest&&dest.emit("unpipe",this),this);if(!dest){var dests=state.pipes,len=state.pipesCount;state.pipes=null,state.pipesCount=0,state.flowing=!1;for(var _i=0;len>_i;_i++)dests[_i].emit("unpipe",this);return this}var i=indexOf(state.pipes,dest);return-1===i?this:(state.pipes.splice(i,1),state.pipesCount-=1,1===state.pipesCount&&(state.pipes=state.pipes[0]),dest.emit("unpipe",this),this)},Readable.prototype.on=function(ev,fn){var res=Stream.prototype.on.call(this,ev,fn);if("data"===ev&&!1!==this._readableState.flowing&&this.resume(),"readable"===ev&&!this._readableState.endEmitted){var state=this._readableState;state.readableListening||(state.readableListening=!0,state.emittedReadable=!1,state.needReadable=!0,state.reading?state.length&&emitReadable(this,state):processNextTick(nReadingNextTick,this))}return res},Readable.prototype.addListener=Readable.prototype.on,Readable.prototype.resume=function(){var state=this._readableState;return state.flowing||(debug("resume"),state.flowing=!0,resume(this,state)),this},Readable.prototype.pause=function(){return debug("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(debug("pause"),this._readableState.flowing=!1,this.emit("pause")),this},Readable.prototype.wrap=function(stream){var state=this._readableState,paused=!1,self=this;stream.on("end",function(){if(debug("wrapped end"),state.decoder&&!state.ended){var chunk=state.decoder.end();chunk&&chunk.length&&self.push(chunk)}self.push(null)}),stream.on("data",function(chunk){if(debug("wrapped data"),state.decoder&&(chunk=state.decoder.write(chunk)),(!state.objectMode||null!==chunk&&void 0!==chunk)&&(state.objectMode||chunk&&chunk.length)){var ret=self.push(chunk);ret||(paused=!0,stream.pause())}});for(var i in stream)void 0===this[i]&&"function"==typeof stream[i]&&(this[i]=function(method){return function(){return stream[method].apply(stream,arguments)}}(i));var events=["error","close","destroy","pause","resume"];return forEach(events,function(ev){stream.on(ev,self.emit.bind(self,ev))}),self._read=function(n){debug("wrapped _read",n),paused&&(paused=!1,stream.resume())},self},Readable._fromList=fromList}($__require("14c").Buffer,$__require("d4")),module.exports}),$__System.registerDynamic("161",["d4"],!0,function($__require,exports,module){return function(process){"use strict";function nextTick(fn){for(var args=new Array(arguments.length-1),i=0;i-1?setImmediate:processNextTick,Buffer=$__require("14c").Buffer;Writable.WritableState=WritableState;var util=$__require("15f");util.inherits=$__require("158");var Stream,internalUtil={deprecate:$__require("163")};!function(){try{Stream=$__require("stream")}catch(_){}finally{Stream||(Stream=$__require("15e").EventEmitter)}}();var Buffer=$__require("14c").Buffer;util.inherits(Writable,Stream);var Duplex;WritableState.prototype.getBuffer=function(){for(var current=this.bufferedRequest,out=[];current;)out.push(current),current=current.next;return out},function(){try{Object.defineProperty(WritableState.prototype,"buffer",{get:internalUtil.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")})}catch(_){}}();var Duplex;Writable.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe. Not readable."))},Writable.prototype.write=function(chunk,encoding,cb){var state=this._writableState,ret=!1;return"function"==typeof encoding&&(cb=encoding,encoding=null),Buffer.isBuffer(chunk)?encoding="buffer":encoding||(encoding=state.defaultEncoding),"function"!=typeof cb&&(cb=nop),state.ended?writeAfterEnd(this,cb):validChunk(this,state,chunk,cb)&&(state.pendingcb++,ret=writeOrBuffer(this,state,chunk,encoding,cb)),ret},Writable.prototype.cork=function(){var state=this._writableState;state.corked++},Writable.prototype.uncork=function(){var state=this._writableState;state.corked&&(state.corked--,state.writing||state.corked||state.finished||state.bufferProcessing||!state.bufferedRequest||clearBuffer(this,state))},Writable.prototype.setDefaultEncoding=function(encoding){if("string"==typeof encoding&&(encoding=encoding.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((encoding+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+encoding);this._writableState.defaultEncoding=encoding},Writable.prototype._write=function(chunk,encoding,cb){cb(new Error("not implemented"))},Writable.prototype._writev=null,Writable.prototype.end=function(chunk,encoding,cb){var state=this._writableState;"function"==typeof chunk?(cb=chunk,chunk=null,encoding=null):"function"==typeof encoding&&(cb=encoding,encoding=null),null!==chunk&&void 0!==chunk&&this.write(chunk,encoding),state.corked&&(state.corked=1,this.uncork()),state.ending||state.finished||endWritable(this,state,cb)}}($__require("14c").Buffer,$__require("d4")),module.exports}),$__System.registerDynamic("15b",["15c","15f","158","15a","164","d4"],!0,function($__require,exports,module){return function(process){"use strict";function Duplex(options){return this instanceof Duplex?(Readable.call(this,options),Writable.call(this,options),options&&options.readable===!1&&(this.readable=!1),options&&options.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,options&&options.allowHalfOpen===!1&&(this.allowHalfOpen=!1),void this.once("end",onend)):new Duplex(options)}function onend(){this.allowHalfOpen||this._writableState.ended||processNextTick(onEndNT,this)}function onEndNT(self){self.end()}var objectKeys=Object.keys||function(obj){var keys=[];for(var key in obj)keys.push(key);return keys};module.exports=Duplex;var processNextTick=$__require("15c"),util=$__require("15f");util.inherits=$__require("158");var Readable=$__require("15a"),Writable=$__require("164");util.inherits(Duplex,Readable);for(var keys=objectKeys(Writable.prototype),v=0;vi;i++)arrayCopy[i]=buf[i];return arrayCopy.buffer}throw new Error("Argument must be a Buffer")}}($__require("14c").Buffer),module.exports}),$__System.registerDynamic("169",["168"],!0,function($__require,exports,module){return module.exports=$__require("168"),module.exports}),$__System.registerDynamic("16a",["156","158","157","159","169","14c","d4"],!0,function($__require,exports,module){var global=this;return function(Buffer,process){function decideMode(preferBinary){return capability.fetch?"fetch":capability.mozchunkedarraybuffer?"moz-chunked-arraybuffer":capability.msstream?"ms-stream":capability.arraybuffer&&preferBinary?"arraybuffer":capability.vbArray&&preferBinary?"text:vbarray":"text"}function statusValid(xhr){try{var status=xhr.status;return null!==status&&0!==status}catch(e){return!1}}var capability=$__require("156"),inherits=$__require("158"),response=$__require("157"),stream=$__require("159"),toArrayBuffer=$__require("169"),IncomingMessage=response.IncomingMessage,rStates=response.readyStates,ClientRequest=module.exports=function(opts){var self=this;stream.Writable.call(self),self._opts=opts,self._body=[],self._headers={},opts.auth&&self.setHeader("Authorization","Basic "+new Buffer(opts.auth).toString("base64")),Object.keys(opts.headers).forEach(function(name){self.setHeader(name,opts.headers[name])});var preferBinary;if("prefer-streaming"===opts.mode)preferBinary=!1;else if("allow-wrong-content-type"===opts.mode)preferBinary=!capability.overrideMimeType;else{if(opts.mode&&"default"!==opts.mode&&"prefer-fast"!==opts.mode)throw new Error("Invalid value for opts.mode");preferBinary=!0}self._mode=decideMode(preferBinary),self.on("finish",function(){self._onFinish()})};inherits(ClientRequest,stream.Writable),ClientRequest.prototype.setHeader=function(name,value){var self=this,lowerName=name.toLowerCase();-1===unsafeHeaders.indexOf(lowerName)&&(self._headers[lowerName]={name:name,value:value})},ClientRequest.prototype.getHeader=function(name){var self=this;return self._headers[name.toLowerCase()].value},ClientRequest.prototype.removeHeader=function(name){var self=this;delete self._headers[name.toLowerCase()]},ClientRequest.prototype._onFinish=function(){var self=this;if(!self._destroyed){var body,opts=self._opts,headersObj=self._headers;if("POST"!==opts.method&&"PUT"!==opts.method&&"PATCH"!==opts.method||(body=capability.blobConstructor?new global.Blob(self._body.map(function(buffer){return toArrayBuffer(buffer)}),{type:(headersObj["content-type"]||{}).value||""}):Buffer.concat(self._body).toString()),"fetch"===self._mode){var headers=Object.keys(headersObj).map(function(name){return[headersObj[name].name,headersObj[name].value]});global.fetch(self._opts.url,{method:self._opts.method,headers:headers,body:body,mode:"cors",credentials:opts.withCredentials?"include":"same-origin"}).then(function(response){self._fetchResponse=response,self._connect()},function(reason){self.emit("error",reason)})}else{var xhr=self._xhr=new global.XMLHttpRequest;try{xhr.open(self._opts.method,self._opts.url,!0)}catch(err){return void process.nextTick(function(){self.emit("error",err)})}"responseType"in xhr&&(xhr.responseType=self._mode.split(":")[0]),"withCredentials"in xhr&&(xhr.withCredentials=!!opts.withCredentials),"text"===self._mode&&"overrideMimeType"in xhr&&xhr.overrideMimeType("text/plain; charset=x-user-defined"),Object.keys(headersObj).forEach(function(name){xhr.setRequestHeader(headersObj[name].name,headersObj[name].value)}),self._response=null,xhr.onreadystatechange=function(){switch(xhr.readyState){case rStates.LOADING:case rStates.DONE:self._onXHRProgress()}},"moz-chunked-arraybuffer"===self._mode&&(xhr.onprogress=function(){self._onXHRProgress()}),xhr.onerror=function(){self._destroyed||self.emit("error",new Error("XHR error"))};try{xhr.send(body)}catch(err){return void process.nextTick(function(){self.emit("error",err)})}}}},ClientRequest.prototype._onXHRProgress=function(){var self=this;statusValid(self._xhr)&&!self._destroyed&&(self._response||self._connect(),self._response._onXHRProgress())},ClientRequest.prototype._connect=function(){var self=this;self._destroyed||(self._response=new IncomingMessage(self._xhr,self._fetchResponse,self._mode),self.emit("response",self._response))},ClientRequest.prototype._write=function(chunk,encoding,cb){var self=this;self._body.push(chunk),cb()},ClientRequest.prototype.abort=ClientRequest.prototype.destroy=function(){var self=this;self._destroyed=!0,self._response&&(self._response._destroyed=!0),self._xhr&&self._xhr.abort()},ClientRequest.prototype.end=function(data,encoding,cb){var self=this;"function"==typeof data&&(cb=data,data=void 0),stream.Writable.prototype.end.call(self,data,encoding,cb)},ClientRequest.prototype.flushHeaders=function(){},ClientRequest.prototype.setTimeout=function(){},ClientRequest.prototype.setNoDelay=function(){},ClientRequest.prototype.setSocketKeepAlive=function(){};var unsafeHeaders=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}($__require("14c").Buffer,$__require("d4")),module.exports}),$__System.registerDynamic("16b",[],!0,function($__require,exports,module){function extend(){for(var target={},i=0;in||isNaN(n))throw TypeError("n must be a positive number");return this._maxListeners=n,this},EventEmitter.prototype.emit=function(type){var er,handler,len,args,i,listeners;if(this._events||(this._events={}),"error"===type&&(!this._events.error||isObject(this._events.error)&&!this._events.error.length)){if(er=arguments[1],er instanceof Error)throw er;throw TypeError('Uncaught, unspecified "error" event.')}if(handler=this._events[type],isUndefined(handler))return!1;if(isFunction(handler))switch(arguments.length){case 1:handler.call(this);break;case 2:handler.call(this,arguments[1]);break;case 3:handler.call(this,arguments[1],arguments[2]);break;default:for(len=arguments.length,args=new Array(len-1),i=1;len>i;i++)args[i-1]=arguments[i];handler.apply(this,args)}else if(isObject(handler)){for(len=arguments.length,args=new Array(len-1),i=1;len>i;i++)args[i-1]=arguments[i];for(listeners=handler.slice(),len=listeners.length,i=0;len>i;i++)listeners[i].apply(this,args)}return!0},EventEmitter.prototype.addListener=function(type,listener){var m;if(!isFunction(listener))throw TypeError("listener must be a function");if(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",type,isFunction(listener.listener)?listener.listener:listener),this._events[type]?isObject(this._events[type])?this._events[type].push(listener):this._events[type]=[this._events[type],listener]:this._events[type]=listener,isObject(this._events[type])&&!this._events[type].warned){var m;m=isUndefined(this._maxListeners)?EventEmitter.defaultMaxListeners:this._maxListeners,m&&m>0&&this._events[type].length>m&&(this._events[type].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[type].length),"function"==typeof console.trace&&console.trace())}return this},EventEmitter.prototype.on=EventEmitter.prototype.addListener,EventEmitter.prototype.once=function(type,listener){function g(){this.removeListener(type,g),fired||(fired=!0,listener.apply(this,arguments))}if(!isFunction(listener))throw TypeError("listener must be a function");var fired=!1;return g.listener=listener,this.on(type,g),this},EventEmitter.prototype.removeListener=function(type,listener){var list,position,length,i;if(!isFunction(listener))throw TypeError("listener must be a function");if(!this._events||!this._events[type])return this;if(list=this._events[type],length=list.length,position=-1,list===listener||isFunction(list.listener)&&list.listener===listener)delete this._events[type],this._events.removeListener&&this.emit("removeListener",type,listener);else if(isObject(list)){for(i=length;i-- >0;)if(list[i]===listener||list[i].listener&&list[i].listener===listener){position=i;break}if(0>position)return this;1===list.length?(list.length=0,delete this._events[type]):list.splice(position,1),this._events.removeListener&&this.emit("removeListener",type,listener)}return this},EventEmitter.prototype.removeAllListeners=function(type){var key,listeners;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[type]&&delete this._events[type],this;if(0===arguments.length){for(key in this._events)"removeListener"!==key&&this.removeAllListeners(key);return this.removeAllListeners("removeListener"),this._events={},this}if(listeners=this._events[type],isFunction(listeners))this.removeListener(type,listeners);else for(;listeners.length;)this.removeListener(type,listeners[listeners.length-1]);return delete this._events[type],this},EventEmitter.prototype.listeners=function(type){var ret;return ret=this._events&&this._events[type]?isFunction(this._events[type])?[this._events[type]]:this._events[type].slice():[]},EventEmitter.listenerCount=function(emitter,type){var ret;return ret=emitter._events&&emitter._events[type]?isFunction(emitter._events[type])?1:emitter._events[type].length:0},module.exports}),$__System.registerDynamic("17f",["17e"],!0,function($__require,exports,module){return module.exports=$__require("17e"),module.exports}),$__System.registerDynamic("180",["17f"],!0,function($__require,exports,module){return module.exports=$__System._nodeRequire?$__System._nodeRequire("events"):$__require("17f"),module.exports}),$__System.registerDynamic("15e",["180"],!0,function($__require,exports,module){return module.exports=$__require("180"),module.exports}),$__System.registerDynamic("181",["14c"],!0,function($__require,exports,module){return function(Buffer){function assertEncoding(encoding){if(encoding&&!isBufferEncoding(encoding))throw new Error("Unknown encoding: "+encoding)}function passThroughWrite(buffer){return buffer.toString(this.encoding)}function utf16DetectIncompleteChar(buffer){this.charReceived=buffer.length%2,this.charLength=this.charReceived?2:0}function base64DetectIncompleteChar(buffer){this.charReceived=buffer.length%3,this.charLength=this.charReceived?3:0}var Buffer=$__require("14c").Buffer,isBufferEncoding=Buffer.isEncoding||function(encoding){switch(encoding&&encoding.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},StringDecoder=exports.StringDecoder=function(encoding){switch(this.encoding=(encoding||"utf8").toLowerCase().replace(/[-_]/,""),assertEncoding(encoding),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=utf16DetectIncompleteChar;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=base64DetectIncompleteChar;break;default:return void(this.write=passThroughWrite)}this.charBuffer=new Buffer(6),this.charReceived=0,this.charLength=0};StringDecoder.prototype.write=function(buffer){for(var charStr="";this.charLength;){var available=buffer.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:buffer.length;if(buffer.copy(this.charBuffer,this.charReceived,0,available),this.charReceived+=available,this.charReceived=55296&&56319>=charCode)){if(this.charReceived=this.charLength=0,0===buffer.length)return charStr;break}this.charLength+=this.surrogateSize,charStr=""}this.detectIncompleteChar(buffer);var end=buffer.length;this.charLength&&(buffer.copy(this.charBuffer,0,buffer.length-this.charReceived,end),end-=this.charReceived),charStr+=buffer.toString(this.encoding,0,end);var end=charStr.length-1,charCode=charStr.charCodeAt(end);if(charCode>=55296&&56319>=charCode){var size=this.surrogateSize;return this.charLength+=size,this.charReceived+=size,this.charBuffer.copy(this.charBuffer,size,0,size),buffer.copy(this.charBuffer,0,0,size),charStr.substring(0,end)}return charStr},StringDecoder.prototype.detectIncompleteChar=function(buffer){for(var i=buffer.length>=3?3:buffer.length;i>0;i--){var c=buffer[buffer.length-i];if(1==i&&c>>5==6){this.charLength=2;break}if(2>=i&&c>>4==14){this.charLength=3;break}if(3>=i&&c>>3==30){this.charLength=4;break}}this.charReceived=i},StringDecoder.prototype.end=function(buffer){var res="";if(buffer&&buffer.length&&(res=this.write(buffer)),this.charReceived){var cr=this.charReceived,buf=this.charBuffer,enc=this.encoding;res+=buf.slice(0,cr).toString(enc)}return res}}($__require("14c").Buffer),module.exports}),$__System.registerDynamic("160",["181"],!0,function($__require,exports,module){return module.exports=$__require("181"),module.exports}),$__System.registerDynamic("173",["17d","14c","15e","178","15f","158","@empty","175","160","d4"],!0,function($__require,exports,module){return function(Buffer,process){function ReadableState(options,stream){var Duplex=$__require("175");options=options||{};var hwm=options.highWaterMark,defaultHwm=options.objectMode?16:16384;this.highWaterMark=hwm||0===hwm?hwm:defaultHwm,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.objectMode=!!options.objectMode,stream instanceof Duplex&&(this.objectMode=this.objectMode||!!options.readableObjectMode),this.defaultEncoding=options.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,options.encoding&&(StringDecoder||(StringDecoder=$__require("160").StringDecoder),this.decoder=new StringDecoder(options.encoding),this.encoding=options.encoding)}function Readable(options){$__require("175");return this instanceof Readable?(this._readableState=new ReadableState(options,this),this.readable=!0,void Stream.call(this)):new Readable(options)}function readableAddChunk(stream,state,chunk,encoding,addToFront){var er=chunkInvalid(state,chunk);if(er)stream.emit("error",er);else if(util.isNullOrUndefined(chunk))state.reading=!1,state.ended||onEofChunk(stream,state);else if(state.objectMode||chunk&&chunk.length>0)if(state.ended&&!addToFront){var e=new Error("stream.push() after EOF");stream.emit("error",e)}else if(state.endEmitted&&addToFront){var e=new Error("stream.unshift() after end event");stream.emit("error",e)}else!state.decoder||addToFront||encoding||(chunk=state.decoder.write(chunk)),addToFront||(state.reading=!1),state.flowing&&0===state.length&&!state.sync?(stream.emit("data",chunk),stream.read(0)):(state.length+=state.objectMode?1:chunk.length,addToFront?state.buffer.unshift(chunk):state.buffer.push(chunk),state.needReadable&&emitReadable(stream)),maybeReadMore(stream,state);else addToFront||(state.reading=!1);return needMoreData(state)}function needMoreData(state){return!state.ended&&(state.needReadable||state.length=MAX_HWM)n=MAX_HWM;else{n--;for(var p=1;32>p;p<<=1)n|=n>>p;n++}return n}function howMuchToRead(n,state){return 0===state.length&&state.ended?0:state.objectMode?0===n?0:1:isNaN(n)||util.isNull(n)?state.flowing&&state.buffer.length?state.buffer[0].length:state.length:0>=n?0:(n>state.highWaterMark&&(state.highWaterMark=roundUpToNextPowerOf2(n)),n>state.length?state.ended?state.length:(state.needReadable=!0,0):n)}function chunkInvalid(state,chunk){var er=null;return util.isBuffer(chunk)||util.isString(chunk)||util.isNullOrUndefined(chunk)||state.objectMode||(er=new TypeError("Invalid non-string/buffer chunk")),er}function onEofChunk(stream,state){if(state.decoder&&!state.ended){var chunk=state.decoder.end();chunk&&chunk.length&&(state.buffer.push(chunk),state.length+=state.objectMode?1:chunk.length)}state.ended=!0,emitReadable(stream)}function emitReadable(stream){var state=stream._readableState;state.needReadable=!1,state.emittedReadable||(debug("emitReadable",state.flowing),state.emittedReadable=!0,state.sync?process.nextTick(function(){emitReadable_(stream)}):emitReadable_(stream))}function emitReadable_(stream){debug("emit readable"),stream.emit("readable"),flow(stream)}function maybeReadMore(stream,state){state.readingMore||(state.readingMore=!0,process.nextTick(function(){maybeReadMore_(stream,state)}))}function maybeReadMore_(stream,state){for(var len=state.length;!state.reading&&!state.flowing&&!state.ended&&state.length=length)ret=stringMode?list.join(""):Buffer.concat(list,length),list.length=0;else if(ni&&n>c;i++){var buf=list[0],cpy=Math.min(n-c,buf.length);stringMode?ret+=buf.slice(0,cpy):buf.copy(ret,c,0,cpy),cpy0)throw new Error("endReadable called on non-empty stream");state.endEmitted||(state.ended=!0,process.nextTick(function(){state.endEmitted||0!==state.length||(state.endEmitted=!0,stream.readable=!1,stream.emit("end"))}))}function forEach(xs,f){for(var i=0,l=xs.length;l>i;i++)f(xs[i],i)}function indexOf(xs,x){for(var i=0,l=xs.length;l>i;i++)if(xs[i]===x)return i;return-1}module.exports=Readable;var isArray=$__require("17d"),Buffer=$__require("14c").Buffer;Readable.ReadableState=ReadableState;var EE=$__require("15e").EventEmitter;EE.listenerCount||(EE.listenerCount=function(emitter,type){return emitter.listeners(type).length});var Stream=$__require("178"),util=$__require("15f");util.inherits=$__require("158");var StringDecoder,debug=$__require("@empty");debug=debug&&debug.debuglog?debug.debuglog("stream"):function(){},util.inherits(Readable,Stream),Readable.prototype.push=function(chunk,encoding){var state=this._readableState;return util.isString(chunk)&&!state.objectMode&&(encoding=encoding||state.defaultEncoding,encoding!==state.encoding&&(chunk=new Buffer(chunk,encoding),encoding="")),readableAddChunk(this,state,chunk,encoding,!1)},Readable.prototype.unshift=function(chunk){var state=this._readableState;return readableAddChunk(this,state,chunk,"",!0)},Readable.prototype.setEncoding=function(enc){return StringDecoder||(StringDecoder=$__require("160").StringDecoder),this._readableState.decoder=new StringDecoder(enc),this._readableState.encoding=enc,this};var MAX_HWM=8388608;Readable.prototype.read=function(n){debug("read",n);var state=this._readableState,nOrig=n;if((!util.isNumber(n)||n>0)&&(state.emittedReadable=!1),0===n&&state.needReadable&&(state.length>=state.highWaterMark||state.ended))return debug("read: emitReadable",state.length,state.ended),0===state.length&&state.ended?endReadable(this):emitReadable(this),null;if(n=howMuchToRead(n,state),0===n&&state.ended)return 0===state.length&&endReadable(this),null;var doRead=state.needReadable;debug("need readable",doRead),(0===state.length||state.length-n0?fromList(n,state):null,util.isNull(ret)&&(state.needReadable=!0,n=0),state.length-=n,0!==state.length||state.ended||(state.needReadable=!0),nOrig!==n&&state.ended&&0===state.length&&endReadable(this),util.isNull(ret)||this.emit("data",ret),ret},Readable.prototype._read=function(n){this.emit("error",new Error("not implemented"))},Readable.prototype.pipe=function(dest,pipeOpts){function onunpipe(readable){debug("onunpipe"),readable===src&&cleanup()}function onend(){debug("onend"),dest.end()}function cleanup(){debug("cleanup"),dest.removeListener("close",onclose),dest.removeListener("finish",onfinish),dest.removeListener("drain",ondrain),dest.removeListener("error",onerror),dest.removeListener("unpipe",onunpipe),src.removeListener("end",onend),src.removeListener("end",cleanup),src.removeListener("data",ondata),!state.awaitDrain||dest._writableState&&!dest._writableState.needDrain||ondrain()}function ondata(chunk){debug("ondata");var ret=dest.write(chunk);!1===ret&&(debug("false write response, pause",src._readableState.awaitDrain),src._readableState.awaitDrain++,src.pause())}function onerror(er){debug("onerror",er),unpipe(),dest.removeListener("error",onerror),0===EE.listenerCount(dest,"error")&&dest.emit("error",er)}function onclose(){dest.removeListener("finish",onfinish),unpipe()}function onfinish(){debug("onfinish"),dest.removeListener("close",onclose),unpipe()}function unpipe(){debug("unpipe"),src.unpipe(dest)}var src=this,state=this._readableState;switch(state.pipesCount){case 0:state.pipes=dest;break;case 1:state.pipes=[state.pipes,dest];break;default:state.pipes.push(dest)}state.pipesCount+=1,debug("pipe count=%d opts=%j",state.pipesCount,pipeOpts);var doEnd=(!pipeOpts||pipeOpts.end!==!1)&&dest!==process.stdout&&dest!==process.stderr,endFn=doEnd?onend:cleanup;state.endEmitted?process.nextTick(endFn):src.once("end",endFn),dest.on("unpipe",onunpipe);var ondrain=pipeOnDrain(src);return dest.on("drain",ondrain),src.on("data",ondata),dest._events&&dest._events.error?isArray(dest._events.error)?dest._events.error.unshift(onerror):dest._events.error=[onerror,dest._events.error]:dest.on("error",onerror),dest.once("close",onclose),dest.once("finish",onfinish),dest.emit("pipe",src),state.flowing||(debug("pipe resume"),src.resume()),dest},Readable.prototype.unpipe=function(dest){var state=this._readableState;if(0===state.pipesCount)return this;if(1===state.pipesCount)return dest&&dest!==state.pipes?this:(dest||(dest=state.pipes),state.pipes=null,state.pipesCount=0,state.flowing=!1,dest&&dest.emit("unpipe",this),this);if(!dest){var dests=state.pipes,len=state.pipesCount;state.pipes=null,state.pipesCount=0,state.flowing=!1;for(var i=0;len>i;i++)dests[i].emit("unpipe",this);return this}var i=indexOf(state.pipes,dest);return-1===i?this:(state.pipes.splice(i,1),state.pipesCount-=1,1===state.pipesCount&&(state.pipes=state.pipes[0]),dest.emit("unpipe",this),this)},Readable.prototype.on=function(ev,fn){var res=Stream.prototype.on.call(this,ev,fn);if("data"===ev&&!1!==this._readableState.flowing&&this.resume(),"readable"===ev&&this.readable){var state=this._readableState;if(!state.readableListening)if(state.readableListening=!0,state.emittedReadable=!1,state.needReadable=!0,state.reading)state.length&&emitReadable(this,state);else{var self=this;process.nextTick(function(){debug("readable nexttick read 0"),self.read(0)})}}return res},Readable.prototype.addListener=Readable.prototype.on,Readable.prototype.resume=function(){var state=this._readableState;return state.flowing||(debug("resume"),state.flowing=!0,state.reading||(debug("resume read 0"),this.read(0)),resume(this,state)),this},Readable.prototype.pause=function(){return debug("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(debug("pause"),this._readableState.flowing=!1,this.emit("pause")),this},Readable.prototype.wrap=function(stream){var state=this._readableState,paused=!1,self=this;stream.on("end",function(){if(debug("wrapped end"),state.decoder&&!state.ended){var chunk=state.decoder.end();chunk&&chunk.length&&self.push(chunk)}self.push(null)}),stream.on("data",function(chunk){if(debug("wrapped data"),state.decoder&&(chunk=state.decoder.write(chunk)),chunk&&(state.objectMode||chunk.length)){var ret=self.push(chunk);ret||(paused=!0,stream.pause())}});for(var i in stream)util.isFunction(stream[i])&&util.isUndefined(this[i])&&(this[i]=function(method){return function(){return stream[method].apply(stream,arguments)}}(i));var events=["error","close","destroy","pause","resume"];return forEach(events,function(ev){stream.on(ev,self.emit.bind(self,ev))}),self._read=function(n){debug("wrapped _read",n),paused&&(paused=!1,stream.resume())},self},Readable._fromList=fromList}($__require("14c").Buffer,$__require("d4")),module.exports}),$__System.registerDynamic("174",["14c","15f","158","178","175","d4"],!0,function($__require,exports,module){return function(Buffer,process){function WriteReq(chunk,encoding,cb){this.chunk=chunk,this.encoding=encoding,this.callback=cb}function WritableState(options,stream){var Duplex=$__require("175");options=options||{};var hwm=options.highWaterMark,defaultHwm=options.objectMode?16:16384;this.highWaterMark=hwm||0===hwm?hwm:defaultHwm,this.objectMode=!!options.objectMode,stream instanceof Duplex&&(this.objectMode=this.objectMode||!!options.writableObjectMode),this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var noDecode=options.decodeStrings===!1;this.decodeStrings=!noDecode,this.defaultEncoding=options.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(er){onwrite(stream,er)},this.writecb=null,this.writelen=0,this.buffer=[],this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1}function Writable(options){var Duplex=$__require("175");return this instanceof Writable||this instanceof Duplex?(this._writableState=new WritableState(options,this),this.writable=!0,void Stream.call(this)):new Writable(options)}function writeAfterEnd(stream,state,cb){var er=new Error("write after end");stream.emit("error",er),process.nextTick(function(){cb(er)})}function validChunk(stream,state,chunk,cb){var valid=!0;if(!(util.isBuffer(chunk)||util.isString(chunk)||util.isNullOrUndefined(chunk)||state.objectMode)){var er=new TypeError("Invalid non-string/buffer chunk");stream.emit("error",er),process.nextTick(function(){cb(er)}),valid=!1}return valid}function decodeChunk(state,chunk,encoding){return!state.objectMode&&state.decodeStrings!==!1&&util.isString(chunk)&&(chunk=new Buffer(chunk,encoding)),chunk}function writeOrBuffer(stream,state,chunk,encoding,cb){chunk=decodeChunk(state,chunk,encoding),util.isBuffer(chunk)&&(encoding="buffer");var len=state.objectMode?1:chunk.length;state.length+=len;var ret=state.length1){for(var cbs=[],c=0;ci;i++)f(xs[i],i)}module.exports=Duplex;var objectKeys=Object.keys||function(obj){var keys=[];for(var key in obj)keys.push(key);return keys},util=$__require("15f");util.inherits=$__require("158");var Readable=$__require("173"),Writable=$__require("174");util.inherits(Duplex,Readable),forEach(objectKeys(Writable.prototype),function(method){Duplex.prototype[method]||(Duplex.prototype[method]=Writable.prototype[method])})}($__require("d4")),module.exports}),$__System.registerDynamic("176",["175","15f","158","d4"],!0,function($__require,exports,module){return function(process){function TransformState(options,stream){this.afterTransform=function(er,data){return afterTransform(stream,er,data)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null}function afterTransform(stream,er,data){var ts=stream._transformState;ts.transforming=!1;var cb=ts.writecb;if(!cb)return stream.emit("error",new Error("no writecb in Transform class"));ts.writechunk=null,ts.writecb=null,util.isNullOrUndefined(data)||stream.push(data),cb&&cb(er);var rs=stream._readableState;rs.reading=!1,(rs.needReadable||rs.lengththis.offset&&(this.emit("data",respBody.slice(this.offset)),this.offset=respBody.length))};var isArray=Array.isArray||function(xs){return"[object Array]"===Object.prototype.toString.call(xs)};return module.exports}),$__System.registerDynamic("188",[],!0,function($__require,exports,module){return function(){function InvalidCharacterError(message){this.message=message}var object="undefined"!=typeof exports?exports:this,chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";InvalidCharacterError.prototype=new Error,InvalidCharacterError.prototype.name="InvalidCharacterError",object.btoa||(object.btoa=function(input){for(var block,charCode,idx=0,map=chars,output="";input.charAt(0|idx)||(map="=",idx%1);output+=map.charAt(63&block>>8-idx%1*8)){if(charCode=input.charCodeAt(idx+=.75),charCode>255)throw new InvalidCharacterError("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");block=block<<8|charCode}return output}),object.atob||(object.atob=function(input){if(input=input.replace(/=+$/,""),input.length%4==1)throw new InvalidCharacterError("'atob' failed: The string to be decoded is not correctly encoded.");for(var bs,buffer,bc=0,idx=0,output="";buffer=input.charAt(idx++);~buffer&&(bs=bc%4?64*bs+buffer:buffer,bc++%4)?output+=String.fromCharCode(255&bs>>(-2*bc&6)):0)buffer=chars.indexOf(buffer);return output})}(),module.exports}),$__System.registerDynamic("189",["188"],!0,function($__require,exports,module){return module.exports=$__require("188"),module.exports}),$__System.registerDynamic("18a",["186","187","189","158"],!0,function($__require,exports,module){var Stream=$__require("186"),Response=$__require("187"),Base64=$__require("189"),inherits=$__require("158"),Request=module.exports=function(xhr,params){var self=this;self.writable=!0,self.xhr=xhr,self.body=[],self.uri=(params.protocol||"http:")+"//"+params.host+(params.port?":"+params.port:"")+(params.path||"/"),"undefined"==typeof params.withCredentials&&(params.withCredentials=!0);try{xhr.withCredentials=params.withCredentials}catch(e){}if(params.responseType)try{xhr.responseType=params.responseType}catch(e){}if(xhr.open(params.method||"GET",self.uri,!0),xhr.onerror=function(event){self.emit("error",new Error("Network error"))},self._headers={},params.headers)for(var keys=objectKeys(params.headers),i=0;i=400)throw ono({status:res.statusCode},"HTTP ERROR %d",res.statusCode);if(res.statusCode>=300)if(redirects.length>httpOptions.redirects)reject(ono({status:res.statusCode},"Error downloading %s. \nToo many redirects: \n %s",redirects[0],redirects.join(" \n ")));else{if(!res.headers.location)throw ono({status:res.statusCode},"HTTP %d redirect with no location header",res.statusCode);debug("HTTP %d redirect %s -> %s",res.statusCode,u.href,res.headers.location);var redirectTo=url.resolve(u,res.headers.location);download(redirectTo,httpOptions,redirects).then(resolve,reject)}else resolve(res.body||new Buffer(0))})["catch"](function(err){reject(ono(err,"Error downloading",u.href))})})}function get(u,httpOptions){return new Promise(function(resolve,reject){debug("GET",u.href);var protocol="https:"===u.protocol?https:http,req=protocol.get({hostname:u.hostname,port:u.port,path:u.path,auth:u.auth,headers:httpOptions.headers||{},withCredentials:httpOptions.withCredentials});"function"==typeof req.setTimeout&&req.setTimeout(httpOptions.timeout),req.on("timeout",function(){req.abort()}),req.on("error",reject),req.once("response",function(res){res.body=new Buffer(0),res.on("data",function(data){res.body=Buffer.concat([res.body,new Buffer(data)])}),res.on("error",reject),res.on("end",function(){resolve(res)})})})}var http=$__require("171"),https=$__require("190"),ono=$__require("140"),url=$__require("154"),debug=$__require("155"),Promise=$__require("14b");module.exports={order:200,headers:null,timeout:5e3,redirects:5,withCredentials:!1,canRead:function(file){return url.isHttp(file.url)},read:function(file){var u=url.parse(file.url);return process.browser&&!u.protocol&&(u.protocol=url.parse(location.href).protocol),download(u,this)}}}($__require("14c").Buffer,$__require("d4")),module.exports}),$__System.registerDynamic("192",["14c","d4"],!0,function($__require,exports,module){return function(Buffer,process){"use strict";module.exports={order:100,canValidate:function(file){return!!file.resolved},validate:function(file){}}}($__require("14c").Buffer,$__require("d4")),module.exports}),$__System.registerDynamic("147",["14a","14d","14f","150","153","191","192"],!0,function($__require,exports,module){"use strict";function $RefParserOptions(options){merge(this,$RefParserOptions.defaults),merge(this,options)}function merge(target,source){if(isMergeable(source))for(var keys=Object.keys(source),i=0;i0&&types[0]&&(paths=paths.filter(function(key){return-1!==types.indexOf($refs[key].pathType)})),paths.map(function(path){return{encoded:path,decoded:"file"===$refs[path].pathType?url.toFileSystemPath(path,!0):path}})}var ono=$__require("140"),$Ref=$__require("194"),url=$__require("154");return module.exports=$Refs,$Refs.prototype.paths=function(types){var paths=getPaths(this._$refs,arguments);return paths.map(function(path){return path.decoded})},$Refs.prototype.values=function(types){var $refs=this._$refs,paths=getPaths($refs,arguments);return paths.reduce(function(obj,path){return obj[path.decoded]=$refs[path.encoded].value,obj},{})},$Refs.prototype.toJSON=$Refs.prototype.values,$Refs.prototype.exists=function(path,options){try{return this._resolve(path,options),!0}catch(e){return!1}},$Refs.prototype.get=function(path,options){return this._resolve(path,options).value},$Refs.prototype.set=function(path,value){path=url.resolve(this._root$Ref.path,path);var withoutHash=url.stripHash(path),$ref=this._$refs[withoutHash];if(!$ref)throw ono('Error resolving $ref pointer "%s". \n"%s" not found.',path,withoutHash);$ref.set(path,value)},$Refs.prototype._add=function(path,value){var withoutHash=url.stripHash(path),$ref=new $Ref;return $ref.path=withoutHash,$ref.value=value,$ref.$refs=this,this._$refs[withoutHash]=$ref,this._root$Ref=this._root$Ref||$ref,$ref},$Refs.prototype._resolve=function(path,options){path=url.resolve(this._root$Ref.path,path);var withoutHash=url.stripHash(path),$ref=this._$refs[withoutHash];if(!$ref)throw ono('Error resolving $ref pointer "%s". \n"%s" not found.',path,withoutHash);return $ref.resolve(path,options)},$Refs.prototype._get$Ref=function(path){path=url.resolve(this._root$Ref.path,path);var withoutHash=url.stripHash(path);return this._$refs[withoutHash]},module.exports}),$__System.registerDynamic("195",["14b","155"],!0,function($__require,exports,module){"use strict";function getResult(obj,prop,file,callback){var value=obj[prop];if("function"==typeof value)return value.apply(obj,[file,callback]);if(!callback){if(value instanceof RegExp)return value.test(file.url);if("string"==typeof value)return value===file.extension;if(Array.isArray(value))return-1!==value.indexOf(file.extension)}return value}var Promise=$__require("14b"),debug=$__require("155");return exports.all=function(plugins){return Object.keys(plugins).filter(function(key){return"object"==typeof plugins[key]}).map(function(key){return plugins[key].name=key,plugins[key]})},exports.filter=function(plugins,method,file){return plugins.filter(function(plugin){return!!getResult(plugin,method,file)})},exports.sort=function(plugins){return plugins.forEach(function(plugin){plugin.order=plugin.order||Number.MAX_SAFE_INTEGER}),plugins.sort(function(a,b){return a.order-b.order})},exports.run=function(plugins,method,file){var plugin,lastError,index=0;return new Promise(function(resolve,reject){function runNextPlugin(){if(plugin=plugins[index++],!plugin)return reject(lastError);try{debug(" %s",plugin.name);var result=getResult(plugin,method,file,callback);result&&"function"==typeof result.then?result.then(onSuccess,onError):void 0!==result&&onSuccess(result)}catch(e){onError(e)}}function callback(err,result){err?onError(err):onSuccess(result)}function onSuccess(result){debug(" success"),resolve({plugin:plugin,result:result})}function onError(err){debug(" %s",err.message||err),lastError=err,runNextPlugin()}runNextPlugin()})},module.exports}),$__System.registerDynamic("196",["d4"],!0,function($__require,exports,module){var define,global=this;return function(process){(function(){"use strict";function lib$es6$promise$utils$$objectOrFunction(x){return"function"==typeof x||"object"==typeof x&&null!==x}function lib$es6$promise$utils$$isFunction(x){return"function"==typeof x}function lib$es6$promise$asap$$setScheduler(scheduleFn){lib$es6$promise$asap$$customSchedulerFn=scheduleFn}function lib$es6$promise$asap$$setAsap(asapFn){lib$es6$promise$asap$$asap=asapFn}function lib$es6$promise$asap$$useNextTick(){return function(){process.nextTick(lib$es6$promise$asap$$flush)}}function lib$es6$promise$asap$$useVertxTimer(){return function(){lib$es6$promise$asap$$vertxNext(lib$es6$promise$asap$$flush)}}function lib$es6$promise$asap$$useMutationObserver(){var iterations=0,observer=new lib$es6$promise$asap$$BrowserMutationObserver(lib$es6$promise$asap$$flush),node=document.createTextNode("");return observer.observe(node,{characterData:!0}),function(){node.data=iterations=++iterations%2}}function lib$es6$promise$asap$$useMessageChannel(){var channel=new MessageChannel;return channel.port1.onmessage=lib$es6$promise$asap$$flush,function(){channel.port2.postMessage(0)}}function lib$es6$promise$asap$$useSetTimeout(){return function(){setTimeout(lib$es6$promise$asap$$flush,1)}}function lib$es6$promise$asap$$flush(){for(var i=0;lib$es6$promise$asap$$len>i;i+=2){var callback=lib$es6$promise$asap$$queue[i],arg=lib$es6$promise$asap$$queue[i+1];callback(arg),lib$es6$promise$asap$$queue[i]=void 0,lib$es6$promise$asap$$queue[i+1]=void 0}lib$es6$promise$asap$$len=0}function lib$es6$promise$asap$$attemptVertx(){try{var r=$__require,vertx=r("vertx");return lib$es6$promise$asap$$vertxNext=vertx.runOnLoop||vertx.runOnContext,lib$es6$promise$asap$$useVertxTimer()}catch(e){return lib$es6$promise$asap$$useSetTimeout()}}function lib$es6$promise$then$$then(onFulfillment,onRejection){var parent=this,state=parent._state;if(state===lib$es6$promise$$internal$$FULFILLED&&!onFulfillment||state===lib$es6$promise$$internal$$REJECTED&&!onRejection)return this;var child=new this.constructor(lib$es6$promise$$internal$$noop),result=parent._result;if(state){var callback=arguments[state-1];lib$es6$promise$asap$$asap(function(){lib$es6$promise$$internal$$invokeCallback(state,child,callback,result)})}else lib$es6$promise$$internal$$subscribe(parent,child,onFulfillment,onRejection);return child}function lib$es6$promise$promise$resolve$$resolve(object){var Constructor=this;if(object&&"object"==typeof object&&object.constructor===Constructor)return object;var promise=new Constructor(lib$es6$promise$$internal$$noop);return lib$es6$promise$$internal$$resolve(promise,object),promise}function lib$es6$promise$$internal$$noop(){}function lib$es6$promise$$internal$$selfFulfillment(){return new TypeError("You cannot resolve a promise with itself")}function lib$es6$promise$$internal$$cannotReturnOwn(){return new TypeError("A promises callback cannot return that same promise.")}function lib$es6$promise$$internal$$getThen(promise){try{return promise.then}catch(error){return lib$es6$promise$$internal$$GET_THEN_ERROR.error=error,lib$es6$promise$$internal$$GET_THEN_ERROR}}function lib$es6$promise$$internal$$tryThen(then,value,fulfillmentHandler,rejectionHandler){try{then.call(value,fulfillmentHandler,rejectionHandler)}catch(e){return e}}function lib$es6$promise$$internal$$handleForeignThenable(promise,thenable,then){lib$es6$promise$asap$$asap(function(promise){var sealed=!1,error=lib$es6$promise$$internal$$tryThen(then,thenable,function(value){sealed||(sealed=!0,thenable!==value?lib$es6$promise$$internal$$resolve(promise,value):lib$es6$promise$$internal$$fulfill(promise,value))},function(reason){sealed||(sealed=!0,lib$es6$promise$$internal$$reject(promise,reason))},"Settle: "+(promise._label||" unknown promise"));!sealed&&error&&(sealed=!0,lib$es6$promise$$internal$$reject(promise,error))},promise)}function lib$es6$promise$$internal$$handleOwnThenable(promise,thenable){thenable._state===lib$es6$promise$$internal$$FULFILLED?lib$es6$promise$$internal$$fulfill(promise,thenable._result):thenable._state===lib$es6$promise$$internal$$REJECTED?lib$es6$promise$$internal$$reject(promise,thenable._result):lib$es6$promise$$internal$$subscribe(thenable,void 0,function(value){lib$es6$promise$$internal$$resolve(promise,value)},function(reason){lib$es6$promise$$internal$$reject(promise,reason)})}function lib$es6$promise$$internal$$handleMaybeThenable(promise,maybeThenable,then){maybeThenable.constructor===promise.constructor&&then===lib$es6$promise$then$$default&&constructor.resolve===lib$es6$promise$promise$resolve$$default?lib$es6$promise$$internal$$handleOwnThenable(promise,maybeThenable):then===lib$es6$promise$$internal$$GET_THEN_ERROR?lib$es6$promise$$internal$$reject(promise,lib$es6$promise$$internal$$GET_THEN_ERROR.error):void 0===then?lib$es6$promise$$internal$$fulfill(promise,maybeThenable):lib$es6$promise$utils$$isFunction(then)?lib$es6$promise$$internal$$handleForeignThenable(promise,maybeThenable,then):lib$es6$promise$$internal$$fulfill(promise,maybeThenable)}function lib$es6$promise$$internal$$resolve(promise,value){promise===value?lib$es6$promise$$internal$$reject(promise,lib$es6$promise$$internal$$selfFulfillment()):lib$es6$promise$utils$$objectOrFunction(value)?lib$es6$promise$$internal$$handleMaybeThenable(promise,value,lib$es6$promise$$internal$$getThen(value)):lib$es6$promise$$internal$$fulfill(promise,value)}function lib$es6$promise$$internal$$publishRejection(promise){promise._onerror&&promise._onerror(promise._result),lib$es6$promise$$internal$$publish(promise)}function lib$es6$promise$$internal$$fulfill(promise,value){promise._state===lib$es6$promise$$internal$$PENDING&&(promise._result=value,promise._state=lib$es6$promise$$internal$$FULFILLED,0!==promise._subscribers.length&&lib$es6$promise$asap$$asap(lib$es6$promise$$internal$$publish,promise))}function lib$es6$promise$$internal$$reject(promise,reason){promise._state===lib$es6$promise$$internal$$PENDING&&(promise._state=lib$es6$promise$$internal$$REJECTED,promise._result=reason,lib$es6$promise$asap$$asap(lib$es6$promise$$internal$$publishRejection,promise))}function lib$es6$promise$$internal$$subscribe(parent,child,onFulfillment,onRejection){var subscribers=parent._subscribers,length=subscribers.length;parent._onerror=null,subscribers[length]=child,subscribers[length+lib$es6$promise$$internal$$FULFILLED]=onFulfillment,subscribers[length+lib$es6$promise$$internal$$REJECTED]=onRejection,0===length&&parent._state&&lib$es6$promise$asap$$asap(lib$es6$promise$$internal$$publish,parent)}function lib$es6$promise$$internal$$publish(promise){var subscribers=promise._subscribers,settled=promise._state;if(0!==subscribers.length){for(var child,callback,detail=promise._result,i=0;ii;i++)lib$es6$promise$$internal$$subscribe(Constructor.resolve(entries[i]),void 0,onFulfillment,onRejection);return promise}function lib$es6$promise$promise$reject$$reject(reason){var Constructor=this,promise=new Constructor(lib$es6$promise$$internal$$noop);return lib$es6$promise$$internal$$reject(promise,reason),promise}function lib$es6$promise$promise$$needsResolver(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function lib$es6$promise$promise$$needsNew(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function lib$es6$promise$promise$$Promise(resolver){this._id=lib$es6$promise$promise$$counter++,this._state=void 0,this._result=void 0,this._subscribers=[],lib$es6$promise$$internal$$noop!==resolver&&("function"!=typeof resolver&&lib$es6$promise$promise$$needsResolver(),this instanceof lib$es6$promise$promise$$Promise?lib$es6$promise$$internal$$initializePromise(this,resolver):lib$es6$promise$promise$$needsNew())}function lib$es6$promise$enumerator$$Enumerator(Constructor,input){this._instanceConstructor=Constructor,this.promise=new Constructor(lib$es6$promise$$internal$$noop),Array.isArray(input)?(this._input=input,this.length=input.length,this._remaining=input.length,this._result=new Array(this.length),0===this.length?lib$es6$promise$$internal$$fulfill(this.promise,this._result):(this.length=this.length||0,this._enumerate(),0===this._remaining&&lib$es6$promise$$internal$$fulfill(this.promise,this._result))):lib$es6$promise$$internal$$reject(this.promise,this._validationError())}function lib$es6$promise$polyfill$$polyfill(){var local;if("undefined"!=typeof global)local=global;else if("undefined"!=typeof self)local=self;else try{local=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var P=local.Promise;P&&"[object Promise]"===Object.prototype.toString.call(P.resolve())&&!P.cast||(local.Promise=lib$es6$promise$promise$$default);
}var lib$es6$promise$utils$$_isArray;lib$es6$promise$utils$$_isArray=Array.isArray?Array.isArray:function(x){return"[object Array]"===Object.prototype.toString.call(x)};var lib$es6$promise$asap$$vertxNext,lib$es6$promise$asap$$customSchedulerFn,lib$es6$promise$asap$$scheduleFlush,lib$es6$promise$utils$$isArray=lib$es6$promise$utils$$_isArray,lib$es6$promise$asap$$len=0,lib$es6$promise$asap$$asap=function(callback,arg){lib$es6$promise$asap$$queue[lib$es6$promise$asap$$len]=callback,lib$es6$promise$asap$$queue[lib$es6$promise$asap$$len+1]=arg,lib$es6$promise$asap$$len+=2,2===lib$es6$promise$asap$$len&&(lib$es6$promise$asap$$customSchedulerFn?lib$es6$promise$asap$$customSchedulerFn(lib$es6$promise$asap$$flush):lib$es6$promise$asap$$scheduleFlush())},lib$es6$promise$asap$$browserWindow="undefined"!=typeof window?window:void 0,lib$es6$promise$asap$$browserGlobal=lib$es6$promise$asap$$browserWindow||{},lib$es6$promise$asap$$BrowserMutationObserver=lib$es6$promise$asap$$browserGlobal.MutationObserver||lib$es6$promise$asap$$browserGlobal.WebKitMutationObserver,lib$es6$promise$asap$$isNode="undefined"!=typeof process&&"[object process]"==={}.toString.call(process),lib$es6$promise$asap$$isWorker="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,lib$es6$promise$asap$$queue=new Array(1e3);lib$es6$promise$asap$$scheduleFlush=lib$es6$promise$asap$$isNode?lib$es6$promise$asap$$useNextTick():lib$es6$promise$asap$$BrowserMutationObserver?lib$es6$promise$asap$$useMutationObserver():lib$es6$promise$asap$$isWorker?lib$es6$promise$asap$$useMessageChannel():void 0===lib$es6$promise$asap$$browserWindow&&"function"==typeof $__require?lib$es6$promise$asap$$attemptVertx():lib$es6$promise$asap$$useSetTimeout();var lib$es6$promise$then$$default=lib$es6$promise$then$$then,lib$es6$promise$promise$resolve$$default=lib$es6$promise$promise$resolve$$resolve,lib$es6$promise$$internal$$PENDING=void 0,lib$es6$promise$$internal$$FULFILLED=1,lib$es6$promise$$internal$$REJECTED=2,lib$es6$promise$$internal$$GET_THEN_ERROR=new lib$es6$promise$$internal$$ErrorObject,lib$es6$promise$$internal$$TRY_CATCH_ERROR=new lib$es6$promise$$internal$$ErrorObject,lib$es6$promise$promise$all$$default=lib$es6$promise$promise$all$$all,lib$es6$promise$promise$race$$default=lib$es6$promise$promise$race$$race,lib$es6$promise$promise$reject$$default=lib$es6$promise$promise$reject$$reject,lib$es6$promise$promise$$counter=0,lib$es6$promise$promise$$default=lib$es6$promise$promise$$Promise;lib$es6$promise$promise$$Promise.all=lib$es6$promise$promise$all$$default,lib$es6$promise$promise$$Promise.race=lib$es6$promise$promise$race$$default,lib$es6$promise$promise$$Promise.resolve=lib$es6$promise$promise$resolve$$default,lib$es6$promise$promise$$Promise.reject=lib$es6$promise$promise$reject$$default,lib$es6$promise$promise$$Promise._setScheduler=lib$es6$promise$asap$$setScheduler,lib$es6$promise$promise$$Promise._setAsap=lib$es6$promise$asap$$setAsap,lib$es6$promise$promise$$Promise._asap=lib$es6$promise$asap$$asap,lib$es6$promise$promise$$Promise.prototype={constructor:lib$es6$promise$promise$$Promise,then:lib$es6$promise$then$$default,"catch":function(onRejection){return this.then(null,onRejection)}};var lib$es6$promise$enumerator$$default=lib$es6$promise$enumerator$$Enumerator;lib$es6$promise$enumerator$$Enumerator.prototype._validationError=function(){return new Error("Array Methods must be provided an Array")},lib$es6$promise$enumerator$$Enumerator.prototype._enumerate=function(){for(var length=this.length,input=this._input,i=0;this._state===lib$es6$promise$$internal$$PENDING&&length>i;i++)this._eachEntry(input[i],i)},lib$es6$promise$enumerator$$Enumerator.prototype._eachEntry=function(entry,i){var c=this._instanceConstructor,resolve=c.resolve;if(resolve===lib$es6$promise$promise$resolve$$default){var then=lib$es6$promise$$internal$$getThen(entry);if(then===lib$es6$promise$then$$default&&entry._state!==lib$es6$promise$$internal$$PENDING)this._settledAt(entry._state,i,entry._result);else if("function"!=typeof then)this._remaining--,this._result[i]=entry;else if(c===lib$es6$promise$promise$$default){var promise=new c(lib$es6$promise$$internal$$noop);lib$es6$promise$$internal$$handleMaybeThenable(promise,entry,then),this._willSettleAt(promise,i)}else this._willSettleAt(new c(function(resolve){resolve(entry)}),i)}else this._willSettleAt(resolve(entry),i)},lib$es6$promise$enumerator$$Enumerator.prototype._settledAt=function(state,i,value){var promise=this.promise;promise._state===lib$es6$promise$$internal$$PENDING&&(this._remaining--,state===lib$es6$promise$$internal$$REJECTED?lib$es6$promise$$internal$$reject(promise,value):this._result[i]=value),0===this._remaining&&lib$es6$promise$$internal$$fulfill(promise,this._result)},lib$es6$promise$enumerator$$Enumerator.prototype._willSettleAt=function(promise,i){var enumerator=this;lib$es6$promise$$internal$$subscribe(promise,void 0,function(value){enumerator._settledAt(lib$es6$promise$$internal$$FULFILLED,i,value)},function(reason){enumerator._settledAt(lib$es6$promise$$internal$$REJECTED,i,reason)})};var lib$es6$promise$polyfill$$default=lib$es6$promise$polyfill$$polyfill,lib$es6$promise$umd$$ES6Promise={Promise:lib$es6$promise$promise$$default,polyfill:lib$es6$promise$polyfill$$default};"function"==typeof define&&define.amd?define(function(){return lib$es6$promise$umd$$ES6Promise}):"undefined"!=typeof module&&module.exports?module.exports=lib$es6$promise$umd$$ES6Promise:"undefined"!=typeof this&&(this.ES6Promise=lib$es6$promise$umd$$ES6Promise),lib$es6$promise$polyfill$$default()}).call(this)}($__require("d4")),module.exports}),$__System.registerDynamic("149",["196"],!0,function($__require,exports,module){return module.exports=$__require("196"),module.exports}),$__System.registerDynamic("14b",["149"],!0,function($__require,exports,module){"use strict";return module.exports="function"==typeof Promise?Promise:$__require("149").Promise,module.exports}),$__System.registerDynamic("197",["140","155","154","195","14b","14c"],!0,function($__require,exports,module){return function(Buffer){"use strict";function parse(path,$refs,options){try{path=url.stripHash(path);var $ref=$refs._add(path),file={url:path,extension:url.getExtension(path)};return readFile(file,options).then(function(resolver){return $ref.pathType=resolver.plugin.name,file.data=resolver.result,parseFile(file,options)}).then(function(parser){return $ref.value=parser.result,parser.result})}catch(e){return Promise.reject(e)}}function readFile(file,options){return new Promise(function(resolve,reject){function onError(err){reject(!err||err instanceof SyntaxError?ono.syntax('Unable to resolve $ref pointer "%s"',file.url):err)}debug("Reading %s",file.url);var resolvers=plugins.all(options.resolve);resolvers=plugins.filter(resolvers,"canRead",file),plugins.sort(resolvers),plugins.run(resolvers,"read",file).then(resolve,onError)})}function parseFile(file,options){return new Promise(function(resolve,reject){function onParsed(parser){!parser.plugin.allowEmpty&&isEmpty(parser.result)?reject(ono.syntax('Error parsing "%s" as %s. \nParsed value is empty',file.url,parser.plugin.name)):resolve(parser)}function onError(err){err?(err=err instanceof Error?err:new Error(err),reject(ono.syntax(err,"Error parsing %s",file.url))):reject(ono.syntax("Unable to parse %s",file.url))}debug("Parsing %s",file.url);var allParsers=plugins.all(options.parse),filteredParsers=plugins.filter(allParsers,"canParse",file),parsers=filteredParsers.length>0?filteredParsers:allParsers;plugins.sort(parsers),plugins.run(parsers,"parse",file).then(onParsed,onError)})}function isEmpty(value){return void 0===value||"object"==typeof value&&0===Object.keys(value).length||"string"==typeof value&&0===value.trim().length||Buffer.isBuffer(value)&&0===value.length}var ono=$__require("140"),debug=$__require("155"),url=$__require("154"),plugins=$__require("195"),Promise=$__require("14b");module.exports=parse}($__require("14c").Buffer),module.exports}),$__System.registerDynamic("198",["14b","194","199","197","155","154"],!0,function($__require,exports,module){"use strict";function resolveExternal(parser,options){if(!options.resolve.external)return Promise.resolve();try{debug("Resolving $ref pointers in %s",parser.$refs._root$Ref.path);var promises=crawl(parser.schema,parser.$refs._root$Ref.path+"#",parser.$refs,options);return Promise.all(promises)}catch(e){return Promise.reject(e)}}function crawl(obj,path,$refs,options){var promises=[];return obj&&"object"==typeof obj&&($Ref.isExternal$Ref(obj)?promises.push(resolve$Ref(obj,path,$refs,options)):Object.keys(obj).forEach(function(key){var keyPath=Pointer.join(path,key),value=obj[key];$Ref.isExternal$Ref(value)?promises.push(resolve$Ref(value,keyPath,$refs,options)):promises=promises.concat(crawl(value,keyPath,$refs,options))})),promises}function resolve$Ref($ref,path,$refs,options){debug('Resolving $ref pointer "%s" at %s',$ref.$ref,path);var resolvedPath=url.resolve(path,$ref.$ref),withoutHash=url.stripHash(resolvedPath);return $ref=$refs._$refs[withoutHash],$ref?Promise.resolve($ref.value):parse(resolvedPath,$refs,options).then(function(result){debug("Resolving $ref pointers in %s",withoutHash);var promises=crawl(result,withoutHash+"#",$refs,options);return Promise.all(promises)})}var Promise=$__require("14b"),$Ref=$__require("194"),Pointer=$__require("199"),parse=$__require("197"),debug=$__require("155"),url=$__require("154");return module.exports=resolveExternal,module.exports}),$__System.registerDynamic("19a",["194","199","155","154","d4"],!0,function($__require,exports,module){return function(process){"use strict";function bundle(parser,options){debug("Bundling $ref pointers in %s",parser.$refs._root$Ref.path);var inventory=[];crawl(parser,"schema",parser.$refs._root$Ref.path+"#","#",inventory,parser.$refs,options),remap(inventory)}function crawl(parent,key,path,pathFromRoot,inventory,$refs,options){var obj=null===key?parent:parent[key];if(obj&&"object"==typeof obj)if($Ref.is$Ref(obj))inventory$Ref(parent,key,path,pathFromRoot,inventory,$refs,options);else{var keys=Object.keys(obj),defs=keys.indexOf("definitions");defs>0&&keys.splice(0,0,keys.splice(defs,1)[0]),keys.forEach(function(key){var keyPath=Pointer.join(path,key),keyPathFromRoot=Pointer.join(pathFromRoot,key),value=obj[key];$Ref.is$Ref(value)?inventory$Ref(obj,key,path,keyPathFromRoot,inventory,$refs,options):crawl(obj,key,keyPath,keyPathFromRoot,inventory,$refs,options)})}}function inventory$Ref($refParent,$refKey,path,pathFromRoot,inventory,$refs,options){if(!inventory.some(function(i){return i.parent===$refParent&&i.key===$refKey})){var $ref=null===$refKey?$refParent:$refParent[$refKey],$refPath=url.resolve(path,$ref.$ref),pointer=$refs._resolve($refPath,options),depth=Pointer.parse(pathFromRoot).length,file=url.stripHash(pointer.path),hash=url.getHash(pointer.path),external=file!==$refs._root$Ref.path,extended=$Ref.isExtended$Ref($ref);inventory.push({$ref:$ref,parent:$refParent,key:$refKey,pathFromRoot:pathFromRoot,depth:depth,file:file,hash:hash,value:pointer.value,circular:pointer.circular,extended:extended,external:external}),crawl(pointer.value,null,pointer.path,pathFromRoot,inventory,$refs,options)}}function remap(inventory){inventory.sort(function(a,b){return a.file!==b.file?a.file0&&-1==="\x00\r\nย
\u2028\u2029".indexOf(this.buffer.charAt(start-1));)if(start-=1,this.position-start>maxLength/2-1){head=" ... ",start+=5;break}for(tail="",end=this.position;endmaxLength/2-1){tail=" ... ",end-=5;break}return snippet=this.buffer.slice(start,end),common.repeat(" ",indent)+head+snippet+tail+"\n"+common.repeat(" ",indent+this.position-start+head.length)+"^"},Mark.prototype.toString=function(compact){var snippet,where="";return this.name&&(where+='in "'+this.name+'" '),where+="at line "+(this.line+1)+", column "+(this.column+1),compact||(snippet=this.getSnippet(),snippet&&(where+=":\n"+snippet)),where},module.exports=Mark,module.exports}),$__System.registerDynamic("19f",["19e","1a0","19d","1a1","1a2"],!0,function($__require,exports,module){"use strict";function is_EOL(c){return 10===c||13===c}function is_WHITE_SPACE(c){return 9===c||32===c}function is_WS_OR_EOL(c){return 9===c||32===c||10===c||13===c}function is_FLOW_INDICATOR(c){return 44===c||91===c||93===c||123===c||125===c}function fromHexCode(c){var lc;return c>=48&&57>=c?c-48:(lc=32|c,lc>=97&&102>=lc?lc-97+10:-1)}function escapedHexLen(c){return 120===c?2:117===c?4:85===c?8:0}function fromDecimalCode(c){return c>=48&&57>=c?c-48:-1}function simpleEscapeSequence(c){return 48===c?"\x00":97===c?"":98===c?"\b":116===c?" ":9===c?" ":110===c?"\n":118===c?"\x0B":102===c?"\f":114===c?"\r":101===c?"":32===c?" ":34===c?'"':47===c?"/":92===c?"\\":78===c?"ย
":95===c?"ย ":76===c?"\u2028":80===c?"\u2029":""}function charFromCodepoint(c){return 65535>=c?String.fromCharCode(c):String.fromCharCode((c-65536>>10)+55296,(c-65536&1023)+56320)}function State(input,options){this.input=input,this.filename=options.filename||null,this.schema=options.schema||DEFAULT_FULL_SCHEMA,this.onWarning=options.onWarning||null,this.legacy=options.legacy||!1,this.json=options.json||!1,this.listener=options.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=input.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function generateError(state,message){return new YAMLException(message,new Mark(state.filename,state.input,state.position,state.line,state.position-state.lineStart))}function throwError(state,message){throw generateError(state,message)}function throwWarning(state,message){state.onWarning&&state.onWarning.call(null,generateError(state,message))}function captureSegment(state,start,end,checkJson){var _position,_length,_character,_result;if(end>start){if(_result=state.input.slice(start,end),checkJson)for(_position=0,_length=_result.length;_length>_position;_position+=1)_character=_result.charCodeAt(_position),9===_character||_character>=32&&1114111>=_character||throwError(state,"expected valid JSON character");else PATTERN_NON_PRINTABLE.test(_result)&&throwError(state,"the stream contains non-printable characters");state.result+=_result}}function mergeMappings(state,destination,source,overridableKeys){var sourceKeys,key,index,quantity;for(common.isObject(source)||throwError(state,"cannot merge mappings; the provided source object is unacceptable"),sourceKeys=Object.keys(source),index=0,quantity=sourceKeys.length;quantity>index;index+=1)key=sourceKeys[index],_hasOwnProperty.call(destination,key)||(destination[key]=source[key],overridableKeys[key]=!0)}function storeMappingPair(state,_result,overridableKeys,keyTag,keyNode,valueNode){var index,quantity;if(keyNode=String(keyNode),null===_result&&(_result={}),"tag:yaml.org,2002:merge"===keyTag)if(Array.isArray(valueNode))for(index=0,quantity=valueNode.length;quantity>index;index+=1)mergeMappings(state,_result,valueNode[index],overridableKeys);else mergeMappings(state,_result,valueNode,overridableKeys);else state.json||_hasOwnProperty.call(overridableKeys,keyNode)||!_hasOwnProperty.call(_result,keyNode)||throwError(state,"duplicated mapping key"),_result[keyNode]=valueNode,delete overridableKeys[keyNode];return _result}function readLineBreak(state){var ch;ch=state.input.charCodeAt(state.position),10===ch?state.position++:13===ch?(state.position++,10===state.input.charCodeAt(state.position)&&state.position++):throwError(state,"a line break is expected"),state.line+=1,state.lineStart=state.position}function skipSeparationSpace(state,allowComments,checkIndent){for(var lineBreaks=0,ch=state.input.charCodeAt(state.position);0!==ch;){for(;is_WHITE_SPACE(ch);)ch=state.input.charCodeAt(++state.position);if(allowComments&&35===ch)do ch=state.input.charCodeAt(++state.position);while(10!==ch&&13!==ch&&0!==ch);if(!is_EOL(ch))break;for(readLineBreak(state),ch=state.input.charCodeAt(state.position),lineBreaks++,state.lineIndent=0;32===ch;)state.lineIndent++,ch=state.input.charCodeAt(++state.position)}return-1!==checkIndent&&0!==lineBreaks&&state.lineIndent1&&(state.result+=common.repeat("\n",count-1))}function readPlainScalar(state,nodeIndent,withinFlowCollection){var preceding,following,captureStart,captureEnd,hasPendingContent,_line,_lineStart,_lineIndent,ch,_kind=state.kind,_result=state.result;if(ch=state.input.charCodeAt(state.position),is_WS_OR_EOL(ch)||is_FLOW_INDICATOR(ch)||35===ch||38===ch||42===ch||33===ch||124===ch||62===ch||39===ch||34===ch||37===ch||64===ch||96===ch)return!1;if((63===ch||45===ch)&&(following=state.input.charCodeAt(state.position+1),is_WS_OR_EOL(following)||withinFlowCollection&&is_FLOW_INDICATOR(following)))return!1;for(state.kind="scalar",state.result="",captureStart=captureEnd=state.position,hasPendingContent=!1;0!==ch;){if(58===ch){if(following=state.input.charCodeAt(state.position+1),is_WS_OR_EOL(following)||withinFlowCollection&&is_FLOW_INDICATOR(following))break}else if(35===ch){if(preceding=state.input.charCodeAt(state.position-1),is_WS_OR_EOL(preceding))break}else{if(state.position===state.lineStart&&testDocumentSeparator(state)||withinFlowCollection&&is_FLOW_INDICATOR(ch))break;if(is_EOL(ch)){if(_line=state.line,_lineStart=state.lineStart,_lineIndent=state.lineIndent,skipSeparationSpace(state,!1,-1),state.lineIndent>=nodeIndent){hasPendingContent=!0,ch=state.input.charCodeAt(state.position);continue}state.position=captureEnd,state.line=_line,state.lineStart=_lineStart,state.lineIndent=_lineIndent;break}}hasPendingContent&&(captureSegment(state,captureStart,captureEnd,!1),writeFoldedLines(state,state.line-_line),captureStart=captureEnd=state.position,hasPendingContent=!1),is_WHITE_SPACE(ch)||(captureEnd=state.position+1),ch=state.input.charCodeAt(++state.position)}return captureSegment(state,captureStart,captureEnd,!1),state.result?!0:(state.kind=_kind,state.result=_result,!1)}function readSingleQuotedScalar(state,nodeIndent){var ch,captureStart,captureEnd;if(ch=state.input.charCodeAt(state.position),39!==ch)return!1;for(state.kind="scalar",state.result="",state.position++,captureStart=captureEnd=state.position;0!==(ch=state.input.charCodeAt(state.position));)if(39===ch){if(captureSegment(state,captureStart,state.position,!0),ch=state.input.charCodeAt(++state.position),39!==ch)return!0;captureStart=captureEnd=state.position,state.position++}else is_EOL(ch)?(captureSegment(state,captureStart,captureEnd,!0),writeFoldedLines(state,skipSeparationSpace(state,!1,nodeIndent)),captureStart=captureEnd=state.position):state.position===state.lineStart&&testDocumentSeparator(state)?throwError(state,"unexpected end of the document within a single quoted scalar"):(state.position++,captureEnd=state.position);throwError(state,"unexpected end of the stream within a single quoted scalar")}function readDoubleQuotedScalar(state,nodeIndent){var captureStart,captureEnd,hexLength,hexResult,tmp,ch;if(ch=state.input.charCodeAt(state.position),34!==ch)return!1;for(state.kind="scalar",state.result="",state.position++,captureStart=captureEnd=state.position;0!==(ch=state.input.charCodeAt(state.position));){if(34===ch)return captureSegment(state,captureStart,state.position,!0),state.position++,!0;if(92===ch){if(captureSegment(state,captureStart,state.position,!0),ch=state.input.charCodeAt(++state.position),is_EOL(ch))skipSeparationSpace(state,!1,nodeIndent);else if(256>ch&&simpleEscapeCheck[ch])state.result+=simpleEscapeMap[ch],state.position++;else if((tmp=escapedHexLen(ch))>0){for(hexLength=tmp,hexResult=0;hexLength>0;hexLength--)ch=state.input.charCodeAt(++state.position),(tmp=fromHexCode(ch))>=0?hexResult=(hexResult<<4)+tmp:throwError(state,"expected hexadecimal character");state.result+=charFromCodepoint(hexResult),state.position++}else throwError(state,"unknown escape sequence");captureStart=captureEnd=state.position}else is_EOL(ch)?(captureSegment(state,captureStart,captureEnd,!0),writeFoldedLines(state,skipSeparationSpace(state,!1,nodeIndent)),captureStart=captureEnd=state.position):state.position===state.lineStart&&testDocumentSeparator(state)?throwError(state,"unexpected end of the document within a double quoted scalar"):(state.position++,captureEnd=state.position)}throwError(state,"unexpected end of the stream within a double quoted scalar")}function readFlowCollection(state,nodeIndent){var _line,_result,following,terminator,isPair,isExplicitPair,isMapping,keyNode,keyTag,valueNode,ch,readNext=!0,_tag=state.tag,_anchor=state.anchor,overridableKeys={};if(ch=state.input.charCodeAt(state.position),91===ch)terminator=93,isMapping=!1,_result=[];else{if(123!==ch)return!1;terminator=125,isMapping=!0,_result={}}for(null!==state.anchor&&(state.anchorMap[state.anchor]=_result),ch=state.input.charCodeAt(++state.position);0!==ch;){if(skipSeparationSpace(state,!0,nodeIndent),ch=state.input.charCodeAt(state.position),ch===terminator)return state.position++,state.tag=_tag,state.anchor=_anchor,state.kind=isMapping?"mapping":"sequence",state.result=_result,!0;readNext||throwError(state,"missed comma between flow collection entries"),keyTag=keyNode=valueNode=null,isPair=isExplicitPair=!1,63===ch&&(following=state.input.charCodeAt(state.position+1),is_WS_OR_EOL(following)&&(isPair=isExplicitPair=!0,state.position++,skipSeparationSpace(state,!0,nodeIndent))),_line=state.line,composeNode(state,nodeIndent,CONTEXT_FLOW_IN,!1,!0),keyTag=state.tag,keyNode=state.result,skipSeparationSpace(state,!0,nodeIndent),ch=state.input.charCodeAt(state.position),!isExplicitPair&&state.line!==_line||58!==ch||(isPair=!0,ch=state.input.charCodeAt(++state.position),skipSeparationSpace(state,!0,nodeIndent),composeNode(state,nodeIndent,CONTEXT_FLOW_IN,!1,!0),valueNode=state.result),isMapping?storeMappingPair(state,_result,overridableKeys,keyTag,keyNode,valueNode):isPair?_result.push(storeMappingPair(state,null,overridableKeys,keyTag,keyNode,valueNode)):_result.push(keyNode),skipSeparationSpace(state,!0,nodeIndent),ch=state.input.charCodeAt(state.position),44===ch?(readNext=!0,ch=state.input.charCodeAt(++state.position)):readNext=!1}throwError(state,"unexpected end of the stream within a flow collection")}function readBlockScalar(state,nodeIndent){var captureStart,folding,tmp,ch,chomping=CHOMPING_CLIP,didReadContent=!1,detectedIndent=!1,textIndent=nodeIndent,emptyLines=0,atMoreIndented=!1;if(ch=state.input.charCodeAt(state.position),124===ch)folding=!1;else{if(62!==ch)return!1;folding=!0}for(state.kind="scalar",state.result="";0!==ch;)if(ch=state.input.charCodeAt(++state.position),43===ch||45===ch)CHOMPING_CLIP===chomping?chomping=43===ch?CHOMPING_KEEP:CHOMPING_STRIP:throwError(state,"repeat of a chomping mode identifier");else{if(!((tmp=fromDecimalCode(ch))>=0))break;0===tmp?throwError(state,"bad explicit indentation width of a block scalar; it cannot be less than one"):detectedIndent?throwError(state,"repeat of an indentation width identifier"):(textIndent=nodeIndent+tmp-1,detectedIndent=!0)}if(is_WHITE_SPACE(ch)){do ch=state.input.charCodeAt(++state.position);while(is_WHITE_SPACE(ch));if(35===ch)do ch=state.input.charCodeAt(++state.position);while(!is_EOL(ch)&&0!==ch)}for(;0!==ch;){for(readLineBreak(state),state.lineIndent=0,ch=state.input.charCodeAt(state.position);(!detectedIndent||state.lineIndenttextIndent&&(textIndent=state.lineIndent),is_EOL(ch))emptyLines++;else{if(state.lineIndentnodeIndent)&&0!==ch)throwError(state,"bad indentation of a sequence entry");else if(state.lineIndentnodeIndent)&&(composeNode(state,nodeIndent,CONTEXT_BLOCK_OUT,!0,allowCompact)&&(atExplicitKey?keyNode=state.result:valueNode=state.result),atExplicitKey||(storeMappingPair(state,_result,overridableKeys,keyTag,keyNode,valueNode),keyTag=keyNode=valueNode=null),skipSeparationSpace(state,!0,-1),ch=state.input.charCodeAt(state.position)),state.lineIndent>nodeIndent&&0!==ch)throwError(state,"bad indentation of a mapping entry");else if(state.lineIndentparentIndent?indentStatus=1:state.lineIndent===parentIndent?indentStatus=0:state.lineIndentparentIndent?indentStatus=1:state.lineIndent===parentIndent?indentStatus=0:state.lineIndenttypeIndex;typeIndex+=1)if(type=state.implicitTypes[typeIndex],type.resolve(state.result)){state.result=type.construct(state.result),state.tag=type.tag,null!==state.anchor&&(state.anchorMap[state.anchor]=state.result);break}}else _hasOwnProperty.call(state.typeMap,state.tag)?(type=state.typeMap[state.tag],null!==state.result&&type.kind!==state.kind&&throwError(state,"unacceptable node kind for !<"+state.tag+'> tag; it should be "'+type.kind+'", not "'+state.kind+'"'),type.resolve(state.result)?(state.result=type.construct(state.result),null!==state.anchor&&(state.anchorMap[state.anchor]=state.result)):throwError(state,"cannot resolve a node with !<"+state.tag+"> explicit tag")):throwError(state,"unknown tag !<"+state.tag+">");return null!==state.listener&&state.listener("close",state),null!==state.tag||null!==state.anchor||hasContent}function readDocument(state){var _position,directiveName,directiveArgs,ch,documentStart=state.position,hasDirectives=!1;for(state.version=null,state.checkLineBreaks=state.legacy,state.tagMap={},state.anchorMap={};0!==(ch=state.input.charCodeAt(state.position))&&(skipSeparationSpace(state,!0,-1),ch=state.input.charCodeAt(state.position),!(state.lineIndent>0||37!==ch));){for(hasDirectives=!0,ch=state.input.charCodeAt(++state.position),_position=state.position;0!==ch&&!is_WS_OR_EOL(ch);)ch=state.input.charCodeAt(++state.position);for(directiveName=state.input.slice(_position,state.position),directiveArgs=[],directiveName.length<1&&throwError(state,"directive name must not be less than one character in length");0!==ch;){for(;is_WHITE_SPACE(ch);)ch=state.input.charCodeAt(++state.position);if(35===ch){do ch=state.input.charCodeAt(++state.position);while(0!==ch&&!is_EOL(ch));break}if(is_EOL(ch))break;for(_position=state.position;0!==ch&&!is_WS_OR_EOL(ch);)ch=state.input.charCodeAt(++state.position);directiveArgs.push(state.input.slice(_position,state.position))}0!==ch&&readLineBreak(state),_hasOwnProperty.call(directiveHandlers,directiveName)?directiveHandlers[directiveName](state,directiveName,directiveArgs):throwWarning(state,'unknown document directive "'+directiveName+'"')}return skipSeparationSpace(state,!0,-1),0===state.lineIndent&&45===state.input.charCodeAt(state.position)&&45===state.input.charCodeAt(state.position+1)&&45===state.input.charCodeAt(state.position+2)?(state.position+=3,skipSeparationSpace(state,!0,-1)):hasDirectives&&throwError(state,"directives end mark is expected"),composeNode(state,state.lineIndent-1,CONTEXT_BLOCK_OUT,!1,!0),skipSeparationSpace(state,!0,-1),state.checkLineBreaks&&PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart,state.position))&&throwWarning(state,"non-ASCII line breaks are interpreted as content"),state.documents.push(state.result),state.position===state.lineStart&&testDocumentSeparator(state)?void(46===state.input.charCodeAt(state.position)&&(state.position+=3,skipSeparationSpace(state,!0,-1))):void(state.positionindex;index+=1)iterator(documents[index])}function load(input,options){var documents=loadDocuments(input,options);if(0!==documents.length){if(1===documents.length)return documents[0];throw new YAMLException("expected a single document in the stream, but found more")}}function safeLoadAll(input,output,options){loadAll(input,output,common.extend({schema:DEFAULT_SAFE_SCHEMA},options))}function safeLoad(input,options){return load(input,common.extend({schema:DEFAULT_SAFE_SCHEMA},options))}for(var common=$__require("19e"),YAMLException=$__require("1a0"),Mark=$__require("19d"),DEFAULT_SAFE_SCHEMA=$__require("1a1"),DEFAULT_FULL_SCHEMA=$__require("1a2"),_hasOwnProperty=Object.prototype.hasOwnProperty,CONTEXT_FLOW_IN=1,CONTEXT_FLOW_OUT=2,CONTEXT_BLOCK_IN=3,CONTEXT_BLOCK_OUT=4,CHOMPING_CLIP=1,CHOMPING_STRIP=2,CHOMPING_KEEP=3,PATTERN_NON_PRINTABLE=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,PATTERN_NON_ASCII_LINE_BREAKS=/[\x85\u2028\u2029]/,PATTERN_FLOW_INDICATORS=/[,\[\]\{\}]/,PATTERN_TAG_HANDLE=/^(?:!|!!|![a-z\-]+!)$/i,PATTERN_TAG_URI=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i,simpleEscapeCheck=new Array(256),simpleEscapeMap=new Array(256),i=0;256>i;i++)simpleEscapeCheck[i]=simpleEscapeSequence(i)?1:0,simpleEscapeMap[i]=simpleEscapeSequence(i);var directiveHandlers={YAML:function(state,name,args){var match,major,minor;null!==state.version&&throwError(state,"duplication of %YAML directive"),1!==args.length&&throwError(state,"YAML directive accepts exactly one argument"),match=/^([0-9]+)\.([0-9]+)$/.exec(args[0]),null===match&&throwError(state,"ill-formed argument of the YAML directive"),major=parseInt(match[1],10),minor=parseInt(match[2],10),1!==major&&throwError(state,"unacceptable YAML version of the document"),state.version=args[0],state.checkLineBreaks=2>minor,1!==minor&&2!==minor&&throwWarning(state,"unsupported YAML version of the document")},TAG:function(state,name,args){var handle,prefix;2!==args.length&&throwError(state,"TAG directive accepts exactly two arguments"),handle=args[0],prefix=args[1],PATTERN_TAG_HANDLE.test(handle)||throwError(state,"ill-formed tag handle (first argument) of the TAG directive"),_hasOwnProperty.call(state.tagMap,handle)&&throwError(state,'there is a previously declared suffix for "'+handle+'" tag handle'),PATTERN_TAG_URI.test(prefix)||throwError(state,"ill-formed tag prefix (second argument) of the TAG directive"),state.tagMap[handle]=prefix}};return module.exports.loadAll=loadAll,module.exports.load=load,module.exports.safeLoadAll=safeLoadAll,module.exports.safeLoad=safeLoad,module.exports}),$__System.registerDynamic("1a3",["19e","1a0","1a2","1a1"],!0,function($__require,exports,module){"use strict";function compileStyleMap(schema,map){var result,keys,index,length,tag,style,type;if(null===map)return{};for(result={},keys=Object.keys(map),index=0,length=keys.length;length>index;index+=1)tag=keys[index],style=String(map[tag]),"!!"===tag.slice(0,2)&&(tag="tag:yaml.org,2002:"+tag.slice(2)),type=schema.compiledTypeMap[tag],type&&_hasOwnProperty.call(type.styleAliases,style)&&(style=type.styleAliases[style]),result[tag]=style;return result}function encodeHex(character){var string,handle,length;if(string=character.toString(16).toUpperCase(),255>=character)handle="x",length=2;else if(65535>=character)handle="u",length=4;else{if(!(4294967295>=character))throw new YAMLException("code point within a string may not be greater than 0xFFFFFFFF");handle="U",length=8}return"\\"+handle+common.repeat("0",length-string.length)+string}function State(options){this.schema=options.schema||DEFAULT_FULL_SCHEMA,this.indent=Math.max(1,options.indent||2),this.skipInvalid=options.skipInvalid||!1,this.flowLevel=common.isNothing(options.flowLevel)?-1:options.flowLevel,this.styleMap=compileStyleMap(this.schema,options.styles||null),this.sortKeys=options.sortKeys||!1,this.lineWidth=options.lineWidth||80,this.noRefs=options.noRefs||!1,this.noCompatMode=options.noCompatMode||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function indentString(string,spaces){for(var line,ind=common.repeat(" ",spaces),position=0,next=-1,result="",length=string.length;length>position;)next=string.indexOf("\n",position),-1===next?(line=string.slice(position),position=length):(line=string.slice(position,next+1),position=next+1),line.length&&"\n"!==line&&(result+=ind),result+=line;return result}function generateNextLine(state,level){return"\n"+common.repeat(" ",state.indent*level)}function testImplicitResolving(state,str){var index,length,type;for(index=0,length=state.implicitTypes.length;length>index;index+=1)if(type=state.implicitTypes[index],type.resolve(str))return!0;return!1}function isWhitespace(c){return c===CHAR_SPACE||c===CHAR_TAB}function isPrintable(c){return c>=32&&126>=c||c>=161&&55295>=c&&8232!==c&&8233!==c||c>=57344&&65533>=c&&65279!==c||c>=65536&&1114111>=c}function isPlainSafe(c){return isPrintable(c)&&65279!==c&&c!==CHAR_COMMA&&c!==CHAR_LEFT_SQUARE_BRACKET&&c!==CHAR_RIGHT_SQUARE_BRACKET&&c!==CHAR_LEFT_CURLY_BRACKET&&c!==CHAR_RIGHT_CURLY_BRACKET&&c!==CHAR_COLON&&c!==CHAR_SHARP}function isPlainSafeFirst(c){return isPrintable(c)&&65279!==c&&!isWhitespace(c)&&c!==CHAR_MINUS&&c!==CHAR_QUESTION&&c!==CHAR_COLON&&c!==CHAR_COMMA&&c!==CHAR_LEFT_SQUARE_BRACKET&&c!==CHAR_RIGHT_SQUARE_BRACKET&&c!==CHAR_LEFT_CURLY_BRACKET&&c!==CHAR_RIGHT_CURLY_BRACKET&&c!==CHAR_SHARP&&c!==CHAR_AMPERSAND&&c!==CHAR_ASTERISK&&c!==CHAR_EXCLAMATION&&c!==CHAR_VERTICAL_LINE&&c!==CHAR_GREATER_THAN&&c!==CHAR_SINGLE_QUOTE&&c!==CHAR_DOUBLE_QUOTE&&c!==CHAR_PERCENT&&c!==CHAR_COMMERCIAL_AT&&c!==CHAR_GRAVE_ACCENT}function chooseScalarStyle(string,singleLineOnly,indentPerLevel,lineWidth,testAmbiguousType){var i,char,hasLineBreak=!1,hasFoldableLine=!1,shouldTrackWidth=-1!==lineWidth,previousLineBreak=-1,plain=isPlainSafeFirst(string.charCodeAt(0))&&!isWhitespace(string.charCodeAt(string.length-1));if(singleLineOnly)for(i=0;ilineWidth&&" "!==string[previousLineBreak+1],previousLineBreak=i);else if(!isPrintable(char))return STYLE_DOUBLE;plain=plain&&isPlainSafe(char)}hasFoldableLine=hasFoldableLine||shouldTrackWidth&&i-previousLineBreak-1>lineWidth&&" "!==string[previousLineBreak+1]}return hasLineBreak||hasFoldableLine?" "===string[0]&&indentPerLevel>9?STYLE_DOUBLE:hasFoldableLine?STYLE_FOLDED:STYLE_LITERAL:plain&&!testAmbiguousType(string)?STYLE_PLAIN:STYLE_SINGLE}function writeScalar(state,string,level,iskey){state.dump=function(){function testAmbiguity(string){return testImplicitResolving(state,string)}if(0===string.length)return"''";if(!state.noCompatMode&&-1!==DEPRECATED_BOOLEANS_SYNTAX.indexOf(string))return"'"+string+"'";var indent=state.indent*Math.max(1,level),lineWidth=-1===state.lineWidth?-1:Math.max(Math.min(state.lineWidth,40),state.lineWidth-indent),singleLineOnly=iskey||state.flowLevel>-1&&level>=state.flowLevel;switch(chooseScalarStyle(string,singleLineOnly,state.indent,lineWidth,testAmbiguity)){case STYLE_PLAIN:return string;case STYLE_SINGLE:return"'"+string.replace(/'/g,"''")+"'";case STYLE_LITERAL:return"|"+blockHeader(string,state.indent)+dropEndingNewline(indentString(string,indent));case STYLE_FOLDED:return">"+blockHeader(string,state.indent)+dropEndingNewline(indentString(foldString(string,lineWidth),indent));case STYLE_DOUBLE:return'"'+escapeString(string,lineWidth)+'"';default:throw new YAMLException("impossible error: invalid scalar style")}}()}function blockHeader(string,indentPerLevel){var indentIndicator=" "===string[0]?String(indentPerLevel):"",clip="\n"===string[string.length-1],keep=clip&&("\n"===string[string.length-2]||"\n"===string),chomp=keep?"+":clip?"":"-";return indentIndicator+chomp+"\n"}function dropEndingNewline(string){return"\n"===string[string.length-1]?string.slice(0,-1):string}function foldString(string,width){for(var moreIndented,match,lineRe=/(\n+)([^\n]*)/g,result=function(){var nextLF=string.indexOf("\n");return nextLF=-1!==nextLF?nextLF:string.length,lineRe.lastIndex=nextLF,foldLine(string.slice(0,nextLF),width)}(),prevMoreIndented="\n"===string[0]||" "===string[0];match=lineRe.exec(string);){var prefix=match[1],line=match[2];moreIndented=" "===line[0],result+=prefix+(prevMoreIndented||moreIndented||""===line?"":"\n")+foldLine(line,width),prevMoreIndented=moreIndented}return result}function foldLine(line,width){if(""===line||" "===line[0])return line;for(var match,end,breakRe=/ [^ ]/g,start=0,curr=0,next=0,result="";match=breakRe.exec(line);)next=match.index,next-start>width&&(end=curr>start?curr:next,result+="\n"+line.slice(start,end),start=end+1),curr=next;return result+="\n",result+=line.length-start>width&&curr>start?line.slice(start,curr)+"\n"+line.slice(curr+1):line.slice(start),result.slice(1)}function escapeString(string){for(var char,escapeSeq,result="",i=0;iindex;index+=1)writeNode(state,level,object[index],!1,!1)&&(0!==index&&(_result+=", "),_result+=state.dump);state.tag=_tag,state.dump="["+_result+"]"}function writeBlockSequence(state,level,object,compact){var index,length,_result="",_tag=state.tag;for(index=0,length=object.length;length>index;index+=1)writeNode(state,level+1,object[index],!0,!0)&&(compact&&0===index||(_result+=generateNextLine(state,level)),_result+="- "+state.dump);state.tag=_tag,state.dump=_result||"[]"}function writeFlowMapping(state,level,object){var index,length,objectKey,objectValue,pairBuffer,_result="",_tag=state.tag,objectKeyList=Object.keys(object);for(index=0,length=objectKeyList.length;length>index;index+=1)pairBuffer="",0!==index&&(pairBuffer+=", "),objectKey=objectKeyList[index],objectValue=object[objectKey],writeNode(state,level,objectKey,!1,!1)&&(state.dump.length>1024&&(pairBuffer+="? "),pairBuffer+=state.dump+": ",writeNode(state,level,objectValue,!1,!1)&&(pairBuffer+=state.dump,_result+=pairBuffer));state.tag=_tag,state.dump="{"+_result+"}"}function writeBlockMapping(state,level,object,compact){var index,length,objectKey,objectValue,explicitPair,pairBuffer,_result="",_tag=state.tag,objectKeyList=Object.keys(object);if(state.sortKeys===!0)objectKeyList.sort();else if("function"==typeof state.sortKeys)objectKeyList.sort(state.sortKeys);else if(state.sortKeys)throw new YAMLException("sortKeys must be a boolean or a function");for(index=0,length=objectKeyList.length;length>index;index+=1)pairBuffer="",compact&&0===index||(pairBuffer+=generateNextLine(state,level)),objectKey=objectKeyList[index],objectValue=object[objectKey],writeNode(state,level+1,objectKey,!0,!0,!0)&&(explicitPair=null!==state.tag&&"?"!==state.tag||state.dump&&state.dump.length>1024,explicitPair&&(pairBuffer+=state.dump&&CHAR_LINE_FEED===state.dump.charCodeAt(0)?"?":"? "),pairBuffer+=state.dump,explicitPair&&(pairBuffer+=generateNextLine(state,level)),writeNode(state,level+1,objectValue,!0,explicitPair)&&(pairBuffer+=state.dump&&CHAR_LINE_FEED===state.dump.charCodeAt(0)?":":": ",pairBuffer+=state.dump,_result+=pairBuffer));state.tag=_tag,state.dump=_result||"{}"}function detectType(state,object,explicit){var _result,typeList,index,length,type,style;for(typeList=explicit?state.explicitTypes:state.implicitTypes,index=0,length=typeList.length;length>index;index+=1)if(type=typeList[index],(type.instanceOf||type.predicate)&&(!type.instanceOf||"object"==typeof object&&object instanceof type.instanceOf)&&(!type.predicate||type.predicate(object))){if(state.tag=explicit?type.tag:"?",type.represent){if(style=state.styleMap[type.tag]||type.defaultStyle,"[object Function]"===_toString.call(type.represent))_result=type.represent(object,style);else{if(!_hasOwnProperty.call(type.represent,style))throw new YAMLException("!<"+type.tag+'> tag resolver accepts not "'+style+'" style');_result=type.represent[style](object,style)}state.dump=_result}return!0}return!1}function writeNode(state,level,object,block,compact,iskey){state.tag=null,state.dump=object,detectType(state,object,!1)||detectType(state,object,!0);var type=_toString.call(state.dump);block&&(block=state.flowLevel<0||state.flowLevel>level);var duplicateIndex,duplicate,objectOrArray="[object Object]"===type||"[object Array]"===type;if(objectOrArray&&(duplicateIndex=state.duplicates.indexOf(object),duplicate=-1!==duplicateIndex),(null!==state.tag&&"?"!==state.tag||duplicate||2!==state.indent&&level>0)&&(compact=!1),duplicate&&state.usedDuplicates[duplicateIndex])state.dump="*ref_"+duplicateIndex;else{if(objectOrArray&&duplicate&&!state.usedDuplicates[duplicateIndex]&&(state.usedDuplicates[duplicateIndex]=!0),"[object Object]"===type)block&&0!==Object.keys(state.dump).length?(writeBlockMapping(state,level,state.dump,compact),duplicate&&(state.dump="&ref_"+duplicateIndex+state.dump)):(writeFlowMapping(state,level,state.dump),duplicate&&(state.dump="&ref_"+duplicateIndex+" "+state.dump));else if("[object Array]"===type)block&&0!==state.dump.length?(writeBlockSequence(state,level,state.dump,compact),duplicate&&(state.dump="&ref_"+duplicateIndex+state.dump)):(writeFlowSequence(state,level,state.dump),duplicate&&(state.dump="&ref_"+duplicateIndex+" "+state.dump));else{if("[object String]"!==type){if(state.skipInvalid)return!1;throw new YAMLException("unacceptable kind of an object to dump "+type)}"?"!==state.tag&&writeScalar(state,state.dump,level,iskey)}null!==state.tag&&"?"!==state.tag&&(state.dump="!<"+state.tag+"> "+state.dump)}return!0}function getDuplicateReferences(object,state){var index,length,objects=[],duplicatesIndexes=[];for(inspectNode(object,objects,duplicatesIndexes),index=0,length=duplicatesIndexes.length;length>index;index+=1)state.duplicates.push(objects[duplicatesIndexes[index]]);state.usedDuplicates=new Array(length)}function inspectNode(object,objects,duplicatesIndexes){var objectKeyList,index,length;if(null!==object&&"object"==typeof object)if(index=objects.indexOf(object),-1!==index)-1===duplicatesIndexes.indexOf(index)&&duplicatesIndexes.push(index);else if(objects.push(object),Array.isArray(object))for(index=0,length=object.length;length>index;index+=1)inspectNode(object[index],objects,duplicatesIndexes);else for(objectKeyList=Object.keys(object),index=0,length=objectKeyList.length;length>index;index+=1)inspectNode(object[objectKeyList[index]],objects,duplicatesIndexes)}function dump(input,options){options=options||{};var state=new State(options);return state.noRefs||getDuplicateReferences(input,state),writeNode(state,0,input,!0,!0)?state.dump+"\n":""}function safeDump(input,options){return dump(input,common.extend({schema:DEFAULT_SAFE_SCHEMA},options))}var common=$__require("19e"),YAMLException=$__require("1a0"),DEFAULT_FULL_SCHEMA=$__require("1a2"),DEFAULT_SAFE_SCHEMA=$__require("1a1"),_toString=Object.prototype.toString,_hasOwnProperty=Object.prototype.hasOwnProperty,CHAR_TAB=9,CHAR_LINE_FEED=10,CHAR_SPACE=32,CHAR_EXCLAMATION=33,CHAR_DOUBLE_QUOTE=34,CHAR_SHARP=35,CHAR_PERCENT=37,CHAR_AMPERSAND=38,CHAR_SINGLE_QUOTE=39,CHAR_ASTERISK=42,CHAR_COMMA=44,CHAR_MINUS=45,CHAR_COLON=58,CHAR_GREATER_THAN=62,CHAR_QUESTION=63,CHAR_COMMERCIAL_AT=64,CHAR_LEFT_SQUARE_BRACKET=91,CHAR_RIGHT_SQUARE_BRACKET=93,CHAR_GRAVE_ACCENT=96,CHAR_LEFT_CURLY_BRACKET=123,CHAR_VERTICAL_LINE=124,CHAR_RIGHT_CURLY_BRACKET=125,ESCAPE_SEQUENCES={};ESCAPE_SEQUENCES[0]="\\0",ESCAPE_SEQUENCES[7]="\\a",ESCAPE_SEQUENCES[8]="\\b",ESCAPE_SEQUENCES[9]="\\t",ESCAPE_SEQUENCES[10]="\\n",ESCAPE_SEQUENCES[11]="\\v",ESCAPE_SEQUENCES[12]="\\f",ESCAPE_SEQUENCES[13]="\\r",ESCAPE_SEQUENCES[27]="\\e",ESCAPE_SEQUENCES[34]='\\"',ESCAPE_SEQUENCES[92]="\\\\",ESCAPE_SEQUENCES[133]="\\N",ESCAPE_SEQUENCES[160]="\\_",ESCAPE_SEQUENCES[8232]="\\L",ESCAPE_SEQUENCES[8233]="\\P";var DEPRECATED_BOOLEANS_SYNTAX=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],STYLE_PLAIN=1,STYLE_SINGLE=2,STYLE_LITERAL=3,STYLE_FOLDED=4,STYLE_DOUBLE=5;return module.exports.dump=dump,module.exports.safeDump=safeDump,module.exports}),$__System.registerDynamic("1a4",["19e","1a0","1a5"],!0,function($__require,exports,module){"use strict";function compileList(schema,name,result){var exclude=[];return schema.include.forEach(function(includedSchema){result=compileList(includedSchema,name,result)}),schema[name].forEach(function(currentType){result.forEach(function(previousType,previousIndex){previousType.tag===currentType.tag&&exclude.push(previousIndex)}),result.push(currentType)}),result.filter(function(type,index){return-1===exclude.indexOf(index)})}function compileMap(){function collectType(type){result[type.tag]=type}var index,length,result={};for(index=0,length=arguments.length;length>index;index+=1)arguments[index].forEach(collectType);return result}function Schema(definition){this.include=definition.include||[],this.implicit=definition.implicit||[],this.explicit=definition.explicit||[],this.implicit.forEach(function(type){if(type.loadKind&&"scalar"!==type.loadKind)throw new YAMLException("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=compileList(this,"implicit",[]),this.compiledExplicit=compileList(this,"explicit",[]),this.compiledTypeMap=compileMap(this.compiledImplicit,this.compiledExplicit)}var common=$__require("19e"),YAMLException=$__require("1a0"),Type=$__require("1a5");return Schema.DEFAULT=null,Schema.create=function(){var schemas,types;switch(arguments.length){case 1:schemas=Schema.DEFAULT,types=arguments[0];break;case 2:schemas=arguments[0],types=arguments[1];break;default:throw new YAMLException("Wrong number of arguments for Schema.create function")}if(schemas=common.toArray(schemas),types=common.toArray(types),!schemas.every(function(schema){return schema instanceof Schema}))throw new YAMLException("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!types.every(function(type){return type instanceof Type}))throw new YAMLException("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new Schema({include:schemas,explicit:types})},module.exports=Schema,module.exports}),$__System.registerDynamic("1a6",["1a5"],!0,function($__require,exports,module){"use strict";var Type=$__require("1a5");return module.exports=new Type("tag:yaml.org,2002:str",{kind:"scalar",construct:function(data){return null!==data?data:""}}),module.exports}),$__System.registerDynamic("1a7",["1a5"],!0,function($__require,exports,module){"use strict";var Type=$__require("1a5");return module.exports=new Type("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(data){return null!==data?data:[]}}),module.exports}),$__System.registerDynamic("1a8",["1a5"],!0,function($__require,exports,module){"use strict";var Type=$__require("1a5");return module.exports=new Type("tag:yaml.org,2002:map",{kind:"mapping",construct:function(data){return null!==data?data:{}}}),module.exports}),$__System.registerDynamic("1a9",["1a4","1a6","1a7","1a8"],!0,function($__require,exports,module){"use strict";var Schema=$__require("1a4");return module.exports=new Schema({explicit:[$__require("1a6"),$__require("1a7"),$__require("1a8")]}),module.exports}),$__System.registerDynamic("1aa",["1a5"],!0,function($__require,exports,module){"use strict";function resolveYamlNull(data){if(null===data)return!0;var max=data.length;return 1===max&&"~"===data||4===max&&("null"===data||"Null"===data||"NULL"===data)}function constructYamlNull(){return null}function isNull(object){return null===object}var Type=$__require("1a5");return module.exports=new Type("tag:yaml.org,2002:null",{kind:"scalar",resolve:resolveYamlNull,construct:constructYamlNull,predicate:isNull,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"}),module.exports}),$__System.registerDynamic("1ab",["1a5"],!0,function($__require,exports,module){"use strict";function resolveYamlBoolean(data){if(null===data)return!1;var max=data.length;return 4===max&&("true"===data||"True"===data||"TRUE"===data)||5===max&&("false"===data||"False"===data||"FALSE"===data)}function constructYamlBoolean(data){return"true"===data||"True"===data||"TRUE"===data}function isBoolean(object){return"[object Boolean]"===Object.prototype.toString.call(object)}var Type=$__require("1a5");return module.exports=new Type("tag:yaml.org,2002:bool",{kind:"scalar",resolve:resolveYamlBoolean,construct:constructYamlBoolean,predicate:isBoolean,represent:{lowercase:function(object){return object?"true":"false"},uppercase:function(object){return object?"TRUE":"FALSE"},camelcase:function(object){return object?"True":"False"}},defaultStyle:"lowercase"}),module.exports}),$__System.registerDynamic("1ac",["19e","1a5"],!0,function($__require,exports,module){"use strict";function isHexCode(c){return c>=48&&57>=c||c>=65&&70>=c||c>=97&&102>=c}function isOctCode(c){return c>=48&&55>=c}function isDecCode(c){return c>=48&&57>=c}function resolveYamlInteger(data){if(null===data)return!1;var ch,max=data.length,index=0,hasDigits=!1;if(!max)return!1;if(ch=data[index],"-"!==ch&&"+"!==ch||(ch=data[++index]),"0"===ch){if(index+1===max)return!0;if(ch=data[++index],"b"===ch){for(index++;max>index;index++)if(ch=data[index],"_"!==ch){if("0"!==ch&&"1"!==ch)return!1;hasDigits=!0}return hasDigits}if("x"===ch){for(index++;max>index;index++)if(ch=data[index],"_"!==ch){if(!isHexCode(data.charCodeAt(index)))return!1;hasDigits=!0}return hasDigits}for(;max>index;index++)if(ch=data[index],"_"!==ch){if(!isOctCode(data.charCodeAt(index)))return!1;hasDigits=!0}return hasDigits}for(;max>index;index++)if(ch=data[index],"_"!==ch){if(":"===ch)break;if(!isDecCode(data.charCodeAt(index)))return!1;hasDigits=!0}return hasDigits?":"!==ch?!0:/^(:[0-5]?[0-9])+$/.test(data.slice(index)):!1}function constructYamlInteger(data){var ch,base,value=data,sign=1,digits=[];return-1!==value.indexOf("_")&&(value=value.replace(/_/g,"")),ch=value[0],"-"!==ch&&"+"!==ch||("-"===ch&&(sign=-1),value=value.slice(1),ch=value[0]),"0"===value?0:"0"===ch?"b"===value[1]?sign*parseInt(value.slice(2),2):"x"===value[1]?sign*parseInt(value,16):sign*parseInt(value,8):-1!==value.indexOf(":")?(value.split(":").forEach(function(v){digits.unshift(parseInt(v,10))}),value=0,base=1,digits.forEach(function(d){value+=d*base,base*=60}),sign*value):sign*parseInt(value,10)}function isInteger(object){return"[object Number]"===Object.prototype.toString.call(object)&&object%1===0&&!common.isNegativeZero(object)}var common=$__require("19e"),Type=$__require("1a5");return module.exports=new Type("tag:yaml.org,2002:int",{kind:"scalar",resolve:resolveYamlInteger,construct:constructYamlInteger,predicate:isInteger,represent:{binary:function(object){return"0b"+object.toString(2)},octal:function(object){return"0"+object.toString(8)},decimal:function(object){return object.toString(10)},hexadecimal:function(object){return"0x"+object.toString(16).toUpperCase()}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),module.exports}),$__System.registerDynamic("19e",[],!0,function($__require,exports,module){"use strict";function isNothing(subject){return"undefined"==typeof subject||null===subject}function isObject(subject){return"object"==typeof subject&&null!==subject}function toArray(sequence){return Array.isArray(sequence)?sequence:isNothing(sequence)?[]:[sequence]}function extend(target,source){var index,length,key,sourceKeys;if(source)for(sourceKeys=Object.keys(source),index=0,length=sourceKeys.length;length>index;index+=1)key=sourceKeys[index],target[key]=source[key];return target}function repeat(string,count){var cycle,result="";for(cycle=0;count>cycle;cycle+=1)result+=string;return result}function isNegativeZero(number){return 0===number&&Number.NEGATIVE_INFINITY===1/number}return module.exports.isNothing=isNothing,module.exports.isObject=isObject,module.exports.toArray=toArray,module.exports.repeat=repeat,module.exports.isNegativeZero=isNegativeZero,module.exports.extend=extend,module.exports}),$__System.registerDynamic("1ad",["19e","1a5"],!0,function($__require,exports,module){"use strict";function resolveYamlFloat(data){return null===data?!1:!!YAML_FLOAT_PATTERN.test(data)}function constructYamlFloat(data){var value,sign,base,digits;return value=data.replace(/_/g,"").toLowerCase(),sign="-"===value[0]?-1:1,digits=[],"+-".indexOf(value[0])>=0&&(value=value.slice(1)),".inf"===value?1===sign?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===value?NaN:value.indexOf(":")>=0?(value.split(":").forEach(function(v){digits.unshift(parseFloat(v,10))}),value=0,base=1,digits.forEach(function(d){
value+=d*base,base*=60}),sign*value):sign*parseFloat(value,10)}function representYamlFloat(object,style){var res;if(isNaN(object))switch(style){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===object)switch(style){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===object)switch(style){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(common.isNegativeZero(object))return"-0.0";return res=object.toString(10),SCIENTIFIC_WITHOUT_DOT.test(res)?res.replace("e",".e"):res}function isFloat(object){return"[object Number]"===Object.prototype.toString.call(object)&&(object%1!==0||common.isNegativeZero(object))}var common=$__require("19e"),Type=$__require("1a5"),YAML_FLOAT_PATTERN=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)\\.[0-9_]*(?:[eE][-+][0-9]+)?|\\.[0-9_]+(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),SCIENTIFIC_WITHOUT_DOT=/^[-+]?[0-9]+e/;return module.exports=new Type("tag:yaml.org,2002:float",{kind:"scalar",resolve:resolveYamlFloat,construct:constructYamlFloat,predicate:isFloat,represent:representYamlFloat,defaultStyle:"lowercase"}),module.exports}),$__System.registerDynamic("1ae",["1a4","1a9","1aa","1ab","1ac","1ad"],!0,function($__require,exports,module){"use strict";var Schema=$__require("1a4");return module.exports=new Schema({include:[$__require("1a9")],implicit:[$__require("1aa"),$__require("1ab"),$__require("1ac"),$__require("1ad")]}),module.exports}),$__System.registerDynamic("1af",["1a4","1ae"],!0,function($__require,exports,module){"use strict";var Schema=$__require("1a4");return module.exports=new Schema({include:[$__require("1ae")]}),module.exports}),$__System.registerDynamic("1b0",["1a5"],!0,function($__require,exports,module){"use strict";function resolveYamlTimestamp(data){return null===data?!1:null!==YAML_DATE_REGEXP.exec(data)?!0:null!==YAML_TIMESTAMP_REGEXP.exec(data)}function constructYamlTimestamp(data){var match,year,month,day,hour,minute,second,tz_hour,tz_minute,date,fraction=0,delta=null;if(match=YAML_DATE_REGEXP.exec(data),null===match&&(match=YAML_TIMESTAMP_REGEXP.exec(data)),null===match)throw new Error("Date resolve error");if(year=+match[1],month=+match[2]-1,day=+match[3],!match[4])return new Date(Date.UTC(year,month,day));if(hour=+match[4],minute=+match[5],second=+match[6],match[7]){for(fraction=match[7].slice(0,3);fraction.length<3;)fraction+="0";fraction=+fraction}return match[9]&&(tz_hour=+match[10],tz_minute=+(match[11]||0),delta=6e4*(60*tz_hour+tz_minute),"-"===match[9]&&(delta=-delta)),date=new Date(Date.UTC(year,month,day,hour,minute,second,fraction)),delta&&date.setTime(date.getTime()-delta),date}function representYamlTimestamp(object){return object.toISOString()}var Type=$__require("1a5"),YAML_DATE_REGEXP=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),YAML_TIMESTAMP_REGEXP=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");return module.exports=new Type("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:resolveYamlTimestamp,construct:constructYamlTimestamp,instanceOf:Date,represent:representYamlTimestamp}),module.exports}),$__System.registerDynamic("1b1",["1a5"],!0,function($__require,exports,module){"use strict";function resolveYamlMerge(data){return"<<"===data||null===data}var Type=$__require("1a5");return module.exports=new Type("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge}),module.exports}),$__System.registerDynamic("1b2",["1a5","14c"],!0,function($__require,exports,module){return function(Buffer){"use strict";function resolveYamlBinary(data){if(null===data)return!1;var code,idx,bitlen=0,max=data.length,map=BASE64_MAP;for(idx=0;max>idx;idx++)if(code=map.indexOf(data.charAt(idx)),!(code>64)){if(0>code)return!1;bitlen+=6}return bitlen%8===0}function constructYamlBinary(data){var idx,tailbits,input=data.replace(/[\r\n=]/g,""),max=input.length,map=BASE64_MAP,bits=0,result=[];for(idx=0;max>idx;idx++)idx%4===0&&idx&&(result.push(bits>>16&255),result.push(bits>>8&255),result.push(255&bits)),bits=bits<<6|map.indexOf(input.charAt(idx));return tailbits=max%4*6,0===tailbits?(result.push(bits>>16&255),result.push(bits>>8&255),result.push(255&bits)):18===tailbits?(result.push(bits>>10&255),result.push(bits>>2&255)):12===tailbits&&result.push(bits>>4&255),NodeBuffer?new NodeBuffer(result):result}function representYamlBinary(object){var idx,tail,result="",bits=0,max=object.length,map=BASE64_MAP;for(idx=0;max>idx;idx++)idx%3===0&&idx&&(result+=map[bits>>18&63],result+=map[bits>>12&63],result+=map[bits>>6&63],result+=map[63&bits]),bits=(bits<<8)+object[idx];return tail=max%3,0===tail?(result+=map[bits>>18&63],result+=map[bits>>12&63],result+=map[bits>>6&63],result+=map[63&bits]):2===tail?(result+=map[bits>>10&63],result+=map[bits>>4&63],result+=map[bits<<2&63],result+=map[64]):1===tail&&(result+=map[bits>>2&63],result+=map[bits<<4&63],result+=map[64],result+=map[64]),result}function isBinary(object){return NodeBuffer&&NodeBuffer.isBuffer(object)}var NodeBuffer;try{var _require=$__require;NodeBuffer=_require("buffer").Buffer}catch(__){}var Type=$__require("1a5"),BASE64_MAP="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";module.exports=new Type("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary})}($__require("14c").Buffer),module.exports}),$__System.registerDynamic("1b3",["1a5"],!0,function($__require,exports,module){"use strict";function resolveYamlOmap(data){if(null===data)return!0;var index,length,pair,pairKey,pairHasKey,objectKeys=[],object=data;for(index=0,length=object.length;length>index;index+=1){if(pair=object[index],pairHasKey=!1,"[object Object]"!==_toString.call(pair))return!1;for(pairKey in pair)if(_hasOwnProperty.call(pair,pairKey)){if(pairHasKey)return!1;pairHasKey=!0}if(!pairHasKey)return!1;if(-1!==objectKeys.indexOf(pairKey))return!1;objectKeys.push(pairKey)}return!0}function constructYamlOmap(data){return null!==data?data:[]}var Type=$__require("1a5"),_hasOwnProperty=Object.prototype.hasOwnProperty,_toString=Object.prototype.toString;return module.exports=new Type("tag:yaml.org,2002:omap",{kind:"sequence",resolve:resolveYamlOmap,construct:constructYamlOmap}),module.exports}),$__System.registerDynamic("1b4",["1a5"],!0,function($__require,exports,module){"use strict";function resolveYamlPairs(data){if(null===data)return!0;var index,length,pair,keys,result,object=data;for(result=new Array(object.length),index=0,length=object.length;length>index;index+=1){if(pair=object[index],"[object Object]"!==_toString.call(pair))return!1;if(keys=Object.keys(pair),1!==keys.length)return!1;result[index]=[keys[0],pair[keys[0]]]}return!0}function constructYamlPairs(data){if(null===data)return[];var index,length,pair,keys,result,object=data;for(result=new Array(object.length),index=0,length=object.length;length>index;index+=1)pair=object[index],keys=Object.keys(pair),result[index]=[keys[0],pair[keys[0]]];return result}var Type=$__require("1a5"),_toString=Object.prototype.toString;return module.exports=new Type("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:resolveYamlPairs,construct:constructYamlPairs}),module.exports}),$__System.registerDynamic("1b5",["1a5"],!0,function($__require,exports,module){"use strict";function resolveYamlSet(data){if(null===data)return!0;var key,object=data;for(key in object)if(_hasOwnProperty.call(object,key)&&null!==object[key])return!1;return!0}function constructYamlSet(data){return null!==data?data:{}}var Type=$__require("1a5"),_hasOwnProperty=Object.prototype.hasOwnProperty;return module.exports=new Type("tag:yaml.org,2002:set",{kind:"mapping",resolve:resolveYamlSet,construct:constructYamlSet}),module.exports}),$__System.registerDynamic("1a1",["1a4","1af","1b0","1b1","1b2","1b3","1b4","1b5"],!0,function($__require,exports,module){"use strict";var Schema=$__require("1a4");return module.exports=new Schema({include:[$__require("1af")],implicit:[$__require("1b0"),$__require("1b1")],explicit:[$__require("1b2"),$__require("1b3"),$__require("1b4"),$__require("1b5")]}),module.exports}),$__System.registerDynamic("1b6",["1a5"],!0,function($__require,exports,module){"use strict";function resolveJavascriptUndefined(){return!0}function constructJavascriptUndefined(){}function representJavascriptUndefined(){return""}function isUndefined(object){return"undefined"==typeof object}var Type=$__require("1a5");return module.exports=new Type("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:resolveJavascriptUndefined,construct:constructJavascriptUndefined,predicate:isUndefined,represent:representJavascriptUndefined}),module.exports}),$__System.registerDynamic("1b7",["1a5"],!0,function($__require,exports,module){"use strict";function resolveJavascriptRegExp(data){if(null===data)return!1;if(0===data.length)return!1;var regexp=data,tail=/\/([gim]*)$/.exec(data),modifiers="";if("/"===regexp[0]){if(tail&&(modifiers=tail[1]),modifiers.length>3)return!1;if("/"!==regexp[regexp.length-modifiers.length-1])return!1}return!0}function constructJavascriptRegExp(data){var regexp=data,tail=/\/([gim]*)$/.exec(data),modifiers="";return"/"===regexp[0]&&(tail&&(modifiers=tail[1]),regexp=regexp.slice(1,regexp.length-modifiers.length-1)),new RegExp(regexp,modifiers)}function representJavascriptRegExp(object){var result="/"+object.source+"/";return object.global&&(result+="g"),object.multiline&&(result+="m"),object.ignoreCase&&(result+="i"),result}function isRegExp(object){return"[object RegExp]"===Object.prototype.toString.call(object)}var Type=$__require("1a5");return module.exports=new Type("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:resolveJavascriptRegExp,construct:constructJavascriptRegExp,predicate:isRegExp,represent:representJavascriptRegExp}),module.exports}),$__System.registerDynamic("1a5",["1a0"],!0,function($__require,exports,module){"use strict";function compileStyleAliases(map){var result={};return null!==map&&Object.keys(map).forEach(function(style){map[style].forEach(function(alias){result[String(alias)]=style})}),result}function Type(tag,options){if(options=options||{},Object.keys(options).forEach(function(name){if(-1===TYPE_CONSTRUCTOR_OPTIONS.indexOf(name))throw new YAMLException('Unknown option "'+name+'" is met in definition of "'+tag+'" YAML type.')}),this.tag=tag,this.kind=options.kind||null,this.resolve=options.resolve||function(){return!0},this.construct=options.construct||function(data){return data},this.instanceOf=options.instanceOf||null,this.predicate=options.predicate||null,this.represent=options.represent||null,this.defaultStyle=options.defaultStyle||null,this.styleAliases=compileStyleAliases(options.styleAliases||null),-1===YAML_NODE_KINDS.indexOf(this.kind))throw new YAMLException('Unknown kind "'+this.kind+'" is specified for "'+tag+'" YAML type.')}var YAMLException=$__require("1a0"),TYPE_CONSTRUCTOR_OPTIONS=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],YAML_NODE_KINDS=["scalar","sequence","mapping"];return module.exports=Type,module.exports}),$__System.registerDynamic("1b8",["1a5"],!0,function($__require,exports,module){"use strict";function resolveJavascriptFunction(data){if(null===data)return!1;try{var source="("+data+")",ast=esprima.parse(source,{range:!0});return"Program"===ast.type&&1===ast.body.length&&"ExpressionStatement"===ast.body[0].type&&"FunctionExpression"===ast.body[0].expression.type}catch(err){return!1}}function constructJavascriptFunction(data){var body,source="("+data+")",ast=esprima.parse(source,{range:!0}),params=[];if("Program"!==ast.type||1!==ast.body.length||"ExpressionStatement"!==ast.body[0].type||"FunctionExpression"!==ast.body[0].expression.type)throw new Error("Failed to resolve function");return ast.body[0].expression.params.forEach(function(param){params.push(param.name)}),body=ast.body[0].expression.body.range,new Function(params,source.slice(body[0]+1,body[1]-1))}function representJavascriptFunction(object){return object.toString()}function isFunction(object){return"[object Function]"===Object.prototype.toString.call(object)}var esprima;try{var _require=$__require;esprima=_require("esprima")}catch(_){"undefined"!=typeof window&&(esprima=window.esprima)}var Type=$__require("1a5");return module.exports=new Type("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:resolveJavascriptFunction,construct:constructJavascriptFunction,predicate:isFunction,represent:representJavascriptFunction}),module.exports}),$__System.registerDynamic("1a2",["1a4","1a1","1b6","1b7","1b8"],!0,function($__require,exports,module){"use strict";var Schema=$__require("1a4");return module.exports=Schema.DEFAULT=new Schema({include:[$__require("1a1")],explicit:[$__require("1b6"),$__require("1b7"),$__require("1b8")]}),module.exports}),$__System.registerDynamic("1a0",[],!0,function($__require,exports,module){"use strict";function YAMLException(reason,mark){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||"",this.name="YAMLException",this.reason=reason,this.mark=mark,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():"")}return YAMLException.prototype=Object.create(Error.prototype),YAMLException.prototype.constructor=YAMLException,YAMLException.prototype.toString=function(compact){var result=this.name+": ";return result+=this.reason||"(unknown reason)",!compact&&this.mark&&(result+=" "+this.mark.toString()),result},module.exports=YAMLException,module.exports}),$__System.registerDynamic("1b9",["19f","1a3","1a5","1a4","1a9","1ae","1af","1a1","1a2","1a0"],!0,function($__require,exports,module){"use strict";function deprecated(name){return function(){throw new Error("Function "+name+" is deprecated and cannot be used.")}}var loader=$__require("19f"),dumper=$__require("1a3");return module.exports.Type=$__require("1a5"),module.exports.Schema=$__require("1a4"),module.exports.FAILSAFE_SCHEMA=$__require("1a9"),module.exports.JSON_SCHEMA=$__require("1ae"),module.exports.CORE_SCHEMA=$__require("1af"),module.exports.DEFAULT_SAFE_SCHEMA=$__require("1a1"),module.exports.DEFAULT_FULL_SCHEMA=$__require("1a2"),module.exports.load=loader.load,module.exports.loadAll=loader.loadAll,module.exports.safeLoad=loader.safeLoad,module.exports.safeLoadAll=loader.safeLoadAll,module.exports.dump=dumper.dump,module.exports.safeDump=dumper.safeDump,module.exports.YAMLException=$__require("1a0"),module.exports.MINIMAL_SCHEMA=$__require("1a9"),module.exports.SAFE_SCHEMA=$__require("1a1"),module.exports.DEFAULT_SCHEMA=$__require("1a2"),module.exports.scan=deprecated("scan"),module.exports.parse=deprecated("parse"),module.exports.compose=deprecated("compose"),module.exports.addConstructor=deprecated("addConstructor"),module.exports}),$__System.registerDynamic("1ba",["1b9"],!0,function($__require,exports,module){"use strict";var yaml=$__require("1b9");return module.exports=yaml,module.exports}),$__System.registerDynamic("1bb",["1ba"],!0,function($__require,exports,module){return module.exports=$__require("1ba"),module.exports}),$__System.registerDynamic("14e",["1bb","140"],!0,function($__require,exports,module){"use strict";var yaml=$__require("1bb"),ono=$__require("140");return module.exports={parse:function(text,reviver){try{return yaml.safeLoad(text)}catch(e){throw e instanceof Error?e:ono(e,e.message)}},stringify:function(value,replacer,space){try{var indent=("string"==typeof space?space.length:space)||2;return yaml.safeDump(value,{indent:indent})}catch(e){throw e instanceof Error?e:ono(e,e.message)}}},module.exports}),$__System.registerDynamic("1bc",["14b","147","193","197","198","19a","1bd","154","19c","140","14e","14c"],!0,function($__require,exports,module){return function(Buffer){"use strict";function $RefParser(){this.schema=null,this.$refs=new $Refs}function normalizeArgs(args){var path,schema,options,callback;return args=Array.prototype.slice.call(args),"function"==typeof args[args.length-1]&&(callback=args.pop()),"string"==typeof args[0]?(path=args[0],"object"==typeof args[2]?(schema=args[1],options=args[2]):(schema=void 0,options=args[1])):(path="",schema=args[0],options=args[1]),options instanceof Options||(options=new Options(options)),{path:path,schema:schema,options:options,callback:callback}}var Promise=$__require("14b"),Options=$__require("147"),$Refs=$__require("193"),parse=$__require("197"),resolveExternal=$__require("198"),bundle=$__require("19a"),dereference=$__require("1bd"),url=$__require("154"),maybe=$__require("19c"),ono=$__require("140");module.exports=$RefParser,module.exports.YAML=$__require("14e"),$RefParser.parse=function(schema,options,callback){var Class=this,instance=new Class;return instance.parse.apply(instance,arguments)},$RefParser.prototype.parse=function(schema,options,callback){var promise,args=normalizeArgs(arguments);if(!args.path&&!args.schema){var err=ono("Expected a file path, URL, or object. Got %s",args.path||args.schema);return maybe(args.callback,Promise.reject(err))}this.schema=null,this.$refs=new $Refs,url.isFileSystemPath(args.path)&&(args.path=url.fromFileSystemPath(args.path)),args.path=url.resolve(url.cwd(),args.path),args.schema&&"object"==typeof args.schema?(this.$refs._add(args.path,args.schema),promise=Promise.resolve(args.schema)):promise=parse(args.path,this.$refs,args.options);var me=this;return promise.then(function(result){if(!result||"object"!=typeof result||Buffer.isBuffer(result))throw ono.syntax('"%s" is not a valid JSON Schema',me.$refs._root$Ref.path||result);return me.schema=result,maybe(args.callback,Promise.resolve(me.schema))})["catch"](function(e){return maybe(args.callback,Promise.reject(e))})},$RefParser.resolve=function(schema,options,callback){var Class=this,instance=new Class;return instance.resolve.apply(instance,arguments)},$RefParser.prototype.resolve=function(schema,options,callback){var me=this,args=normalizeArgs(arguments);return this.parse(args.path,args.schema,args.options).then(function(){return resolveExternal(me,args.options)}).then(function(){return maybe(args.callback,Promise.resolve(me.$refs))})["catch"](function(err){return maybe(args.callback,Promise.reject(err))})},$RefParser.bundle=function(schema,options,callback){var Class=this,instance=new Class;return instance.bundle.apply(instance,arguments)},$RefParser.prototype.bundle=function(schema,options,callback){var me=this,args=normalizeArgs(arguments);return this.resolve(args.path,args.schema,args.options).then(function(){return bundle(me,args.options),maybe(args.callback,Promise.resolve(me.schema))})["catch"](function(err){return maybe(args.callback,Promise.reject(err))})},$RefParser.dereference=function(schema,options,callback){var Class=this,instance=new Class;return instance.dereference.apply(instance,arguments)},$RefParser.prototype.dereference=function(schema,options,callback){var me=this,args=normalizeArgs(arguments);return this.resolve(args.path,args.schema,args.options).then(function(){return dereference(me,args.options),maybe(args.callback,Promise.resolve(me.schema))})["catch"](function(err){return maybe(args.callback,Promise.reject(err))})}}($__require("14c").Buffer),module.exports}),$__System.registerDynamic("1be",["1bc"],!0,function($__require,exports,module){return module.exports=$__require("1bc"),module.exports}),$__System.registerDynamic("194",["199","14c"],!0,function($__require,exports,module){return function(Buffer){"use strict";function $Ref(){this.path=void 0,this.value=void 0,this.$refs=void 0,this.pathType=void 0}module.exports=$Ref;var Pointer=$__require("199");$Ref.prototype.exists=function(path,options){try{return this.resolve(path,options),!0}catch(e){return!1}},$Ref.prototype.get=function(path,options){return this.resolve(path,options).value},$Ref.prototype.resolve=function(path,options){var pointer=new Pointer(this,path);return pointer.resolve(this.value,options)},$Ref.prototype.set=function(path,value){var pointer=new Pointer(this,path);this.value=pointer.set(this.value,value)},$Ref.is$Ref=function(value){return value&&"object"==typeof value&&"string"==typeof value.$ref&&value.$ref.length>0},$Ref.isExternal$Ref=function(value){return $Ref.is$Ref(value)&&"#"!==value.$ref[0]},$Ref.isAllowed$Ref=function(value,options){return!$Ref.is$Ref(value)||"#"!==value.$ref[0]&&options&&!options.resolve.external?void 0:!0},$Ref.isExtended$Ref=function(value){return $Ref.is$Ref(value)&&Object.keys(value).length>1},$Ref.dereference=function($ref,resolvedValue){if(resolvedValue&&"object"==typeof resolvedValue&&$Ref.isExtended$Ref($ref)){var merged={};return Object.keys($ref).forEach(function(key){"$ref"!==key&&(merged[key]=$ref[key])}),Object.keys(resolvedValue).forEach(function(key){key in merged||(merged[key]=resolvedValue[key])}),merged}return resolvedValue}}($__require("14c").Buffer),module.exports}),$__System.registerDynamic("1bf",[],!0,function($__require,exports,module){var lookup="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";return function(exports){"use strict";function decode(elt){var code=elt.charCodeAt(0);return code===PLUS||code===PLUS_URL_SAFE?62:code===SLASH||code===SLASH_URL_SAFE?63:NUMBER>code?-1:NUMBER+10>code?code-NUMBER+26+26:UPPER+26>code?code-UPPER:LOWER+26>code?code-LOWER+26:void 0}function b64ToByteArray(b64){function push(v){arr[L++]=v}var i,j,l,tmp,placeHolders,arr;if(b64.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var len=b64.length;placeHolders="="===b64.charAt(len-2)?2:"="===b64.charAt(len-1)?1:0,arr=new Arr(3*b64.length/4-placeHolders),l=placeHolders>0?b64.length-4:b64.length;var L=0;for(i=0,j=0;l>i;i+=4,j+=3)tmp=decode(b64.charAt(i))<<18|decode(b64.charAt(i+1))<<12|decode(b64.charAt(i+2))<<6|decode(b64.charAt(i+3)),push((16711680&tmp)>>16),push((65280&tmp)>>8),push(255&tmp);return 2===placeHolders?(tmp=decode(b64.charAt(i))<<2|decode(b64.charAt(i+1))>>4,push(255&tmp)):1===placeHolders&&(tmp=decode(b64.charAt(i))<<10|decode(b64.charAt(i+1))<<4|decode(b64.charAt(i+2))>>2,push(tmp>>8&255),push(255&tmp)),arr}function uint8ToBase64(uint8){function encode(num){return lookup.charAt(num)}function tripletToBase64(num){return encode(num>>18&63)+encode(num>>12&63)+encode(num>>6&63)+encode(63&num)}var i,temp,length,extraBytes=uint8.length%3,output="";for(i=0,length=uint8.length-extraBytes;length>i;i+=3)temp=(uint8[i]<<16)+(uint8[i+1]<<8)+uint8[i+2],output+=tripletToBase64(temp);switch(extraBytes){case 1:temp=uint8[uint8.length-1],output+=encode(temp>>2),output+=encode(temp<<4&63),output+="==";break;case 2:temp=(uint8[uint8.length-2]<<8)+uint8[uint8.length-1],output+=encode(temp>>10),output+=encode(temp>>4&63),output+=encode(temp<<2&63),output+="="}return output}var Arr="undefined"!=typeof Uint8Array?Uint8Array:Array,PLUS="+".charCodeAt(0),SLASH="/".charCodeAt(0),NUMBER="0".charCodeAt(0),LOWER="a".charCodeAt(0),UPPER="A".charCodeAt(0),PLUS_URL_SAFE="-".charCodeAt(0),SLASH_URL_SAFE="_".charCodeAt(0);exports.toByteArray=b64ToByteArray,exports.fromByteArray=uint8ToBase64}("undefined"==typeof exports?this.base64js={}:exports),module.exports}),$__System.registerDynamic("1c0",["1bf"],!0,function($__require,exports,module){return module.exports=$__require("1bf"),module.exports}),$__System.registerDynamic("1c1",[],!0,function($__require,exports,module){return exports.read=function(buffer,offset,isLE,mLen,nBytes){var e,m,eLen=8*nBytes-mLen-1,eMax=(1<>1,nBits=-7,i=isLE?nBytes-1:0,d=isLE?-1:1,s=buffer[offset+i];for(i+=d,e=s&(1<<-nBits)-1,s>>=-nBits,nBits+=eLen;nBits>0;e=256*e+buffer[offset+i],i+=d,nBits-=8);for(m=e&(1<<-nBits)-1,e>>=-nBits,nBits+=mLen;nBits>0;m=256*m+buffer[offset+i],i+=d,nBits-=8);if(0===e)e=1-eBias;else{if(e===eMax)return m?NaN:(s?-1:1)*(1/0);m+=Math.pow(2,mLen),e-=eBias}return(s?-1:1)*m*Math.pow(2,e-mLen)},exports.write=function(buffer,value,offset,isLE,mLen,nBytes){var e,m,c,eLen=8*nBytes-mLen-1,eMax=(1<>1,rt=23===mLen?Math.pow(2,-24)-Math.pow(2,-77):0,i=isLE?0:nBytes-1,d=isLE?1:-1,s=0>value||0===value&&0>1/value?1:0;for(value=Math.abs(value),isNaN(value)||value===1/0?(m=isNaN(value)?1:0,e=eMax):(e=Math.floor(Math.log(value)/Math.LN2),value*(c=Math.pow(2,-e))<1&&(e--,c*=2),value+=e+eBias>=1?rt/c:rt*Math.pow(2,1-eBias),value*c>=2&&(e++,c/=2),e+eBias>=eMax?(m=0,e=eMax):e+eBias>=1?(m=(value*c-1)*Math.pow(2,mLen),e+=eBias):(m=value*Math.pow(2,eBias-1)*Math.pow(2,mLen),e=0));mLen>=8;buffer[offset+i]=255&m,i+=d,m/=256,mLen-=8);for(e=e<0;buffer[offset+i]=255&e,i+=d,e/=256,eLen-=8);buffer[offset+i-d]|=128*s},module.exports}),$__System.registerDynamic("1c2",["1c1"],!0,function($__require,exports,module){return module.exports=$__require("1c1"),module.exports}),$__System.registerDynamic("1c3",[],!0,function($__require,exports,module){var toString={}.toString;return module.exports=Array.isArray||function(arr){return"[object Array]"==toString.call(arr)},module.exports}),$__System.registerDynamic("15d",["1c3"],!0,function($__require,exports,module){return module.exports=$__require("1c3"),module.exports}),$__System.registerDynamic("1c4",["1c0","1c2","15d"],!0,function($__require,exports,module){"use strict";function typedArraySupport(){function Bar(){}try{var arr=new Uint8Array(1);return arr.foo=function(){return 42},arr.constructor=Bar,42===arr.foo()&&arr.constructor===Bar&&"function"==typeof arr.subarray&&0===arr.subarray(1,1).byteLength}catch(e){return!1}}function kMaxLength(){return Buffer.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Buffer(arg){return this instanceof Buffer?(Buffer.TYPED_ARRAY_SUPPORT||(this.length=0,this.parent=void 0),"number"==typeof arg?fromNumber(this,arg):"string"==typeof arg?fromString(this,arg,arguments.length>1?arguments[1]:"utf8"):fromObject(this,arg)):arguments.length>1?new Buffer(arg,arguments[1]):new Buffer(arg)}function fromNumber(that,length){if(that=allocate(that,0>length?0:0|checked(length)),!Buffer.TYPED_ARRAY_SUPPORT)for(var i=0;length>i;i++)that[i]=0;return that}function fromString(that,string,encoding){"string"==typeof encoding&&""!==encoding||(encoding="utf8");var length=0|byteLength(string,encoding);return that=allocate(that,length),that.write(string,encoding),that}function fromObject(that,object){if(Buffer.isBuffer(object))return fromBuffer(that,object);if(isArray(object))return fromArray(that,object);if(null==object)throw new TypeError("must start with number, buffer, array or string");if("undefined"!=typeof ArrayBuffer){if(object.buffer instanceof ArrayBuffer)return fromTypedArray(that,object);if(object instanceof ArrayBuffer)return fromArrayBuffer(that,object)}return object.length?fromArrayLike(that,object):fromJsonObject(that,object)}function fromBuffer(that,buffer){var length=0|checked(buffer.length);return that=allocate(that,length),buffer.copy(that,0,0,length),that}function fromArray(that,array){var length=0|checked(array.length);that=allocate(that,length);for(var i=0;length>i;i+=1)that[i]=255&array[i];return that}function fromTypedArray(that,array){var length=0|checked(array.length);that=allocate(that,length);for(var i=0;length>i;i+=1)that[i]=255&array[i];return that}function fromArrayBuffer(that,array){return Buffer.TYPED_ARRAY_SUPPORT?(array.byteLength,that=Buffer._augment(new Uint8Array(array))):that=fromTypedArray(that,new Uint8Array(array)),that}function fromArrayLike(that,array){var length=0|checked(array.length);that=allocate(that,length);for(var i=0;length>i;i+=1)that[i]=255&array[i];return that}function fromJsonObject(that,object){var array,length=0;"Buffer"===object.type&&isArray(object.data)&&(array=object.data,length=0|checked(array.length)),that=allocate(that,length);for(var i=0;length>i;i+=1)that[i]=255&array[i];return that}function allocate(that,length){Buffer.TYPED_ARRAY_SUPPORT?(that=Buffer._augment(new Uint8Array(length)),that.__proto__=Buffer.prototype):(that.length=length,that._isBuffer=!0);var fromPool=0!==length&&length<=Buffer.poolSize>>>1;return fromPool&&(that.parent=rootParent),that}function checked(length){if(length>=kMaxLength())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+kMaxLength().toString(16)+" bytes");return 0|length}function SlowBuffer(subject,encoding){if(!(this instanceof SlowBuffer))return new SlowBuffer(subject,encoding);var buf=new Buffer(subject,encoding);return delete buf.parent,buf}function byteLength(string,encoding){"string"!=typeof string&&(string=""+string);var len=string.length;if(0===len)return 0;for(var loweredCase=!1;;)switch(encoding){case"ascii":case"binary":case"raw":case"raws":return len;case"utf8":case"utf-8":return utf8ToBytes(string).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*len;case"hex":return len>>>1;case"base64":return base64ToBytes(string).length;default:if(loweredCase)return utf8ToBytes(string).length;encoding=(""+encoding).toLowerCase(),loweredCase=!0}}function slowToString(encoding,start,end){var loweredCase=!1;if(start=0|start,end=void 0===end||end===1/0?this.length:0|end,encoding||(encoding="utf8"),0>start&&(start=0),end>this.length&&(end=this.length),start>=end)return"";for(;;)switch(encoding){case"hex":return hexSlice(this,start,end);case"utf8":case"utf-8":return utf8Slice(this,start,end);case"ascii":return asciiSlice(this,start,end);case"binary":return binarySlice(this,start,end);case"base64":return base64Slice(this,start,end);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,start,end);default:if(loweredCase)throw new TypeError("Unknown encoding: "+encoding);encoding=(encoding+"").toLowerCase(),loweredCase=!0}}function hexWrite(buf,string,offset,length){offset=Number(offset)||0;var remaining=buf.length-offset;length?(length=Number(length),length>remaining&&(length=remaining)):length=remaining;var strLen=string.length;if(strLen%2!==0)throw new Error("Invalid hex string");length>strLen/2&&(length=strLen/2);for(var i=0;length>i;i++){var parsed=parseInt(string.substr(2*i,2),16);if(isNaN(parsed))throw new Error("Invalid hex string");buf[offset+i]=parsed}return i}function utf8Write(buf,string,offset,length){return blitBuffer(utf8ToBytes(string,buf.length-offset),buf,offset,length)}function asciiWrite(buf,string,offset,length){return blitBuffer(asciiToBytes(string),buf,offset,length)}function binaryWrite(buf,string,offset,length){return asciiWrite(buf,string,offset,length)}function base64Write(buf,string,offset,length){return blitBuffer(base64ToBytes(string),buf,offset,length)}function ucs2Write(buf,string,offset,length){return blitBuffer(utf16leToBytes(string,buf.length-offset),buf,offset,length)}function base64Slice(buf,start,end){return 0===start&&end===buf.length?base64.fromByteArray(buf):base64.fromByteArray(buf.slice(start,end))}function utf8Slice(buf,start,end){end=Math.min(buf.length,end);for(var res=[],i=start;end>i;){var firstByte=buf[i],codePoint=null,bytesPerSequence=firstByte>239?4:firstByte>223?3:firstByte>191?2:1;if(end>=i+bytesPerSequence){var secondByte,thirdByte,fourthByte,tempCodePoint;switch(bytesPerSequence){case 1:128>firstByte&&(codePoint=firstByte);break;case 2:secondByte=buf[i+1],128===(192&secondByte)&&(tempCodePoint=(31&firstByte)<<6|63&secondByte,tempCodePoint>127&&(codePoint=tempCodePoint));break;case 3:secondByte=buf[i+1],thirdByte=buf[i+2],128===(192&secondByte)&&128===(192&thirdByte)&&(tempCodePoint=(15&firstByte)<<12|(63&secondByte)<<6|63&thirdByte,tempCodePoint>2047&&(55296>tempCodePoint||tempCodePoint>57343)&&(codePoint=tempCodePoint));break;case 4:secondByte=buf[i+1],thirdByte=buf[i+2],fourthByte=buf[i+3],128===(192&secondByte)&&128===(192&thirdByte)&&128===(192&fourthByte)&&(tempCodePoint=(15&firstByte)<<18|(63&secondByte)<<12|(63&thirdByte)<<6|63&fourthByte,
tempCodePoint>65535&&1114112>tempCodePoint&&(codePoint=tempCodePoint))}}null===codePoint?(codePoint=65533,bytesPerSequence=1):codePoint>65535&&(codePoint-=65536,res.push(codePoint>>>10&1023|55296),codePoint=56320|1023&codePoint),res.push(codePoint),i+=bytesPerSequence}return decodeCodePointsArray(res)}function decodeCodePointsArray(codePoints){var len=codePoints.length;if(MAX_ARGUMENTS_LENGTH>=len)return String.fromCharCode.apply(String,codePoints);for(var res="",i=0;len>i;)res+=String.fromCharCode.apply(String,codePoints.slice(i,i+=MAX_ARGUMENTS_LENGTH));return res}function asciiSlice(buf,start,end){var ret="";end=Math.min(buf.length,end);for(var i=start;end>i;i++)ret+=String.fromCharCode(127&buf[i]);return ret}function binarySlice(buf,start,end){var ret="";end=Math.min(buf.length,end);for(var i=start;end>i;i++)ret+=String.fromCharCode(buf[i]);return ret}function hexSlice(buf,start,end){var len=buf.length;(!start||0>start)&&(start=0),(!end||0>end||end>len)&&(end=len);for(var out="",i=start;end>i;i++)out+=toHex(buf[i]);return out}function utf16leSlice(buf,start,end){for(var bytes=buf.slice(start,end),res="",i=0;ioffset)throw new RangeError("offset is not uint");if(offset+ext>length)throw new RangeError("Trying to access beyond buffer length")}function checkInt(buf,value,offset,ext,max,min){if(!Buffer.isBuffer(buf))throw new TypeError("buffer must be a Buffer instance");if(value>max||min>value)throw new RangeError("value is out of bounds");if(offset+ext>buf.length)throw new RangeError("index out of range")}function objectWriteUInt16(buf,value,offset,littleEndian){0>value&&(value=65535+value+1);for(var i=0,j=Math.min(buf.length-offset,2);j>i;i++)buf[offset+i]=(value&255<<8*(littleEndian?i:1-i))>>>8*(littleEndian?i:1-i)}function objectWriteUInt32(buf,value,offset,littleEndian){0>value&&(value=4294967295+value+1);for(var i=0,j=Math.min(buf.length-offset,4);j>i;i++)buf[offset+i]=value>>>8*(littleEndian?i:3-i)&255}function checkIEEE754(buf,value,offset,ext,max,min){if(value>max||min>value)throw new RangeError("value is out of bounds");if(offset+ext>buf.length)throw new RangeError("index out of range");if(0>offset)throw new RangeError("index out of range")}function writeFloat(buf,value,offset,littleEndian,noAssert){return noAssert||checkIEEE754(buf,value,offset,4,3.4028234663852886e38,-3.4028234663852886e38),ieee754.write(buf,value,offset,littleEndian,23,4),offset+4}function writeDouble(buf,value,offset,littleEndian,noAssert){return noAssert||checkIEEE754(buf,value,offset,8,1.7976931348623157e308,-1.7976931348623157e308),ieee754.write(buf,value,offset,littleEndian,52,8),offset+8}function base64clean(str){if(str=stringtrim(str).replace(INVALID_BASE64_RE,""),str.length<2)return"";for(;str.length%4!==0;)str+="=";return str}function stringtrim(str){return str.trim?str.trim():str.replace(/^\s+|\s+$/g,"")}function toHex(n){return 16>n?"0"+n.toString(16):n.toString(16)}function utf8ToBytes(string,units){units=units||1/0;for(var codePoint,length=string.length,leadSurrogate=null,bytes=[],i=0;length>i;i++){if(codePoint=string.charCodeAt(i),codePoint>55295&&57344>codePoint){if(!leadSurrogate){if(codePoint>56319){(units-=3)>-1&&bytes.push(239,191,189);continue}if(i+1===length){(units-=3)>-1&&bytes.push(239,191,189);continue}leadSurrogate=codePoint;continue}if(56320>codePoint){(units-=3)>-1&&bytes.push(239,191,189),leadSurrogate=codePoint;continue}codePoint=(leadSurrogate-55296<<10|codePoint-56320)+65536}else leadSurrogate&&(units-=3)>-1&&bytes.push(239,191,189);if(leadSurrogate=null,128>codePoint){if((units-=1)<0)break;bytes.push(codePoint)}else if(2048>codePoint){if((units-=2)<0)break;bytes.push(codePoint>>6|192,63&codePoint|128)}else if(65536>codePoint){if((units-=3)<0)break;bytes.push(codePoint>>12|224,codePoint>>6&63|128,63&codePoint|128)}else{if(!(1114112>codePoint))throw new Error("Invalid code point");if((units-=4)<0)break;bytes.push(codePoint>>18|240,codePoint>>12&63|128,codePoint>>6&63|128,63&codePoint|128)}}return bytes}function asciiToBytes(str){for(var byteArray=[],i=0;i>8,lo=c%256,byteArray.push(lo),byteArray.push(hi);return byteArray}function base64ToBytes(str){return base64.toByteArray(base64clean(str))}function blitBuffer(src,dst,offset,length){for(var i=0;length>i&&!(i+offset>=dst.length||i>=src.length);i++)dst[i+offset]=src[i];return i}var global=this,base64=$__require("1c0"),ieee754=$__require("1c2"),isArray=$__require("15d");exports.Buffer=Buffer,exports.SlowBuffer=SlowBuffer,exports.INSPECT_MAX_BYTES=50,Buffer.poolSize=8192;var rootParent={};Buffer.TYPED_ARRAY_SUPPORT=void 0!==global.TYPED_ARRAY_SUPPORT?global.TYPED_ARRAY_SUPPORT:typedArraySupport(),Buffer.TYPED_ARRAY_SUPPORT?(Buffer.prototype.__proto__=Uint8Array.prototype,Buffer.__proto__=Uint8Array):(Buffer.prototype.length=void 0,Buffer.prototype.parent=void 0),Buffer.isBuffer=function(b){return!(null==b||!b._isBuffer)},Buffer.compare=function(a,b){if(!Buffer.isBuffer(a)||!Buffer.isBuffer(b))throw new TypeError("Arguments must be Buffers");if(a===b)return 0;for(var x=a.length,y=b.length,i=0,len=Math.min(x,y);len>i&&a[i]===b[i];)++i;return i!==len&&(x=a[i],y=b[i]),y>x?-1:x>y?1:0},Buffer.isEncoding=function(encoding){switch(String(encoding).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Buffer.concat=function(list,length){if(!isArray(list))throw new TypeError("list argument must be an Array of Buffers.");if(0===list.length)return new Buffer(0);var i;if(void 0===length)for(length=0,i=0;i0&&(str=this.toString("hex",0,max).match(/.{2}/g).join(" "),this.length>max&&(str+=" ... ")),""},Buffer.prototype.compare=function(b){if(!Buffer.isBuffer(b))throw new TypeError("Argument must be a Buffer");return this===b?0:Buffer.compare(this,b)},Buffer.prototype.indexOf=function(val,byteOffset){function arrayIndexOf(arr,val,byteOffset){for(var foundIndex=-1,i=0;byteOffset+i2147483647?byteOffset=2147483647:-2147483648>byteOffset&&(byteOffset=-2147483648),byteOffset>>=0,0===this.length)return-1;if(byteOffset>=this.length)return-1;if(0>byteOffset&&(byteOffset=Math.max(this.length+byteOffset,0)),"string"==typeof val)return 0===val.length?-1:String.prototype.indexOf.call(this,val,byteOffset);if(Buffer.isBuffer(val))return arrayIndexOf(this,val,byteOffset);if("number"==typeof val)return Buffer.TYPED_ARRAY_SUPPORT&&"function"===Uint8Array.prototype.indexOf?Uint8Array.prototype.indexOf.call(this,val,byteOffset):arrayIndexOf(this,[val],byteOffset);throw new TypeError("val must be string, number or Buffer")},Buffer.prototype.get=function(offset){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(offset)},Buffer.prototype.set=function(v,offset){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(v,offset)},Buffer.prototype.write=function(string,offset,length,encoding){if(void 0===offset)encoding="utf8",length=this.length,offset=0;else if(void 0===length&&"string"==typeof offset)encoding=offset,length=this.length,offset=0;else if(isFinite(offset))offset=0|offset,isFinite(length)?(length=0|length,void 0===encoding&&(encoding="utf8")):(encoding=length,length=void 0);else{var swap=encoding;encoding=offset,offset=0|length,length=swap}var remaining=this.length-offset;if((void 0===length||length>remaining)&&(length=remaining),string.length>0&&(0>length||0>offset)||offset>this.length)throw new RangeError("attempt to write outside buffer bounds");encoding||(encoding="utf8");for(var loweredCase=!1;;)switch(encoding){case"hex":return hexWrite(this,string,offset,length);case"utf8":case"utf-8":return utf8Write(this,string,offset,length);case"ascii":return asciiWrite(this,string,offset,length);case"binary":return binaryWrite(this,string,offset,length);case"base64":return base64Write(this,string,offset,length);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ucs2Write(this,string,offset,length);default:if(loweredCase)throw new TypeError("Unknown encoding: "+encoding);encoding=(""+encoding).toLowerCase(),loweredCase=!0}},Buffer.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var MAX_ARGUMENTS_LENGTH=4096;Buffer.prototype.slice=function(start,end){var len=this.length;start=~~start,end=void 0===end?len:~~end,0>start?(start+=len,0>start&&(start=0)):start>len&&(start=len),0>end?(end+=len,0>end&&(end=0)):end>len&&(end=len),start>end&&(end=start);var newBuf;if(Buffer.TYPED_ARRAY_SUPPORT)newBuf=Buffer._augment(this.subarray(start,end));else{var sliceLen=end-start;newBuf=new Buffer(sliceLen,void 0);for(var i=0;sliceLen>i;i++)newBuf[i]=this[i+start]}return newBuf.length&&(newBuf.parent=this.parent||this),newBuf},Buffer.prototype.readUIntLE=function(offset,byteLength,noAssert){offset=0|offset,byteLength=0|byteLength,noAssert||checkOffset(offset,byteLength,this.length);for(var val=this[offset],mul=1,i=0;++i0&&(mul*=256);)val+=this[offset+--byteLength]*mul;return val},Buffer.prototype.readUInt8=function(offset,noAssert){return noAssert||checkOffset(offset,1,this.length),this[offset]},Buffer.prototype.readUInt16LE=function(offset,noAssert){return noAssert||checkOffset(offset,2,this.length),this[offset]|this[offset+1]<<8},Buffer.prototype.readUInt16BE=function(offset,noAssert){return noAssert||checkOffset(offset,2,this.length),this[offset]<<8|this[offset+1]},Buffer.prototype.readUInt32LE=function(offset,noAssert){return noAssert||checkOffset(offset,4,this.length),(this[offset]|this[offset+1]<<8|this[offset+2]<<16)+16777216*this[offset+3]},Buffer.prototype.readUInt32BE=function(offset,noAssert){return noAssert||checkOffset(offset,4,this.length),16777216*this[offset]+(this[offset+1]<<16|this[offset+2]<<8|this[offset+3])},Buffer.prototype.readIntLE=function(offset,byteLength,noAssert){offset=0|offset,byteLength=0|byteLength,noAssert||checkOffset(offset,byteLength,this.length);for(var val=this[offset],mul=1,i=0;++i=mul&&(val-=Math.pow(2,8*byteLength)),val},Buffer.prototype.readIntBE=function(offset,byteLength,noAssert){offset=0|offset,byteLength=0|byteLength,noAssert||checkOffset(offset,byteLength,this.length);for(var i=byteLength,mul=1,val=this[offset+--i];i>0&&(mul*=256);)val+=this[offset+--i]*mul;return mul*=128,val>=mul&&(val-=Math.pow(2,8*byteLength)),val},Buffer.prototype.readInt8=function(offset,noAssert){return noAssert||checkOffset(offset,1,this.length),128&this[offset]?-1*(255-this[offset]+1):this[offset]},Buffer.prototype.readInt16LE=function(offset,noAssert){noAssert||checkOffset(offset,2,this.length);var val=this[offset]|this[offset+1]<<8;return 32768&val?4294901760|val:val},Buffer.prototype.readInt16BE=function(offset,noAssert){noAssert||checkOffset(offset,2,this.length);var val=this[offset+1]|this[offset]<<8;return 32768&val?4294901760|val:val},Buffer.prototype.readInt32LE=function(offset,noAssert){return noAssert||checkOffset(offset,4,this.length),this[offset]|this[offset+1]<<8|this[offset+2]<<16|this[offset+3]<<24},Buffer.prototype.readInt32BE=function(offset,noAssert){return noAssert||checkOffset(offset,4,this.length),this[offset]<<24|this[offset+1]<<16|this[offset+2]<<8|this[offset+3]},Buffer.prototype.readFloatLE=function(offset,noAssert){return noAssert||checkOffset(offset,4,this.length),ieee754.read(this,offset,!0,23,4)},Buffer.prototype.readFloatBE=function(offset,noAssert){return noAssert||checkOffset(offset,4,this.length),ieee754.read(this,offset,!1,23,4)},Buffer.prototype.readDoubleLE=function(offset,noAssert){return noAssert||checkOffset(offset,8,this.length),ieee754.read(this,offset,!0,52,8)},Buffer.prototype.readDoubleBE=function(offset,noAssert){return noAssert||checkOffset(offset,8,this.length),ieee754.read(this,offset,!1,52,8)},Buffer.prototype.writeUIntLE=function(value,offset,byteLength,noAssert){value=+value,offset=0|offset,byteLength=0|byteLength,noAssert||checkInt(this,value,offset,byteLength,Math.pow(2,8*byteLength),0);var mul=1,i=0;for(this[offset]=255&value;++i=0&&(mul*=256);)this[offset+i]=value/mul&255;return offset+byteLength},Buffer.prototype.writeUInt8=function(value,offset,noAssert){return value=+value,offset=0|offset,noAssert||checkInt(this,value,offset,1,255,0),Buffer.TYPED_ARRAY_SUPPORT||(value=Math.floor(value)),this[offset]=255&value,offset+1},Buffer.prototype.writeUInt16LE=function(value,offset,noAssert){return value=+value,offset=0|offset,noAssert||checkInt(this,value,offset,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[offset]=255&value,this[offset+1]=value>>>8):objectWriteUInt16(this,value,offset,!0),offset+2},Buffer.prototype.writeUInt16BE=function(value,offset,noAssert){return value=+value,offset=0|offset,noAssert||checkInt(this,value,offset,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[offset]=value>>>8,this[offset+1]=255&value):objectWriteUInt16(this,value,offset,!1),offset+2},Buffer.prototype.writeUInt32LE=function(value,offset,noAssert){return value=+value,offset=0|offset,noAssert||checkInt(this,value,offset,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[offset+3]=value>>>24,this[offset+2]=value>>>16,this[offset+1]=value>>>8,this[offset]=255&value):objectWriteUInt32(this,value,offset,!0),offset+4},Buffer.prototype.writeUInt32BE=function(value,offset,noAssert){return value=+value,offset=0|offset,noAssert||checkInt(this,value,offset,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[offset]=value>>>24,this[offset+1]=value>>>16,this[offset+2]=value>>>8,this[offset+3]=255&value):objectWriteUInt32(this,value,offset,!1),offset+4},Buffer.prototype.writeIntLE=function(value,offset,byteLength,noAssert){if(value=+value,offset=0|offset,!noAssert){var limit=Math.pow(2,8*byteLength-1);checkInt(this,value,offset,byteLength,limit-1,-limit)}var i=0,mul=1,sub=0>value?1:0;for(this[offset]=255&value;++i>0)-sub&255;return offset+byteLength},Buffer.prototype.writeIntBE=function(value,offset,byteLength,noAssert){if(value=+value,offset=0|offset,!noAssert){var limit=Math.pow(2,8*byteLength-1);checkInt(this,value,offset,byteLength,limit-1,-limit)}var i=byteLength-1,mul=1,sub=0>value?1:0;for(this[offset+i]=255&value;--i>=0&&(mul*=256);)this[offset+i]=(value/mul>>0)-sub&255;return offset+byteLength},Buffer.prototype.writeInt8=function(value,offset,noAssert){return value=+value,offset=0|offset,noAssert||checkInt(this,value,offset,1,127,-128),Buffer.TYPED_ARRAY_SUPPORT||(value=Math.floor(value)),0>value&&(value=255+value+1),this[offset]=255&value,offset+1},Buffer.prototype.writeInt16LE=function(value,offset,noAssert){return value=+value,offset=0|offset,noAssert||checkInt(this,value,offset,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[offset]=255&value,this[offset+1]=value>>>8):objectWriteUInt16(this,value,offset,!0),offset+2},Buffer.prototype.writeInt16BE=function(value,offset,noAssert){return value=+value,offset=0|offset,noAssert||checkInt(this,value,offset,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[offset]=value>>>8,this[offset+1]=255&value):objectWriteUInt16(this,value,offset,!1),offset+2},Buffer.prototype.writeInt32LE=function(value,offset,noAssert){return value=+value,offset=0|offset,noAssert||checkInt(this,value,offset,4,2147483647,-2147483648),Buffer.TYPED_ARRAY_SUPPORT?(this[offset]=255&value,this[offset+1]=value>>>8,this[offset+2]=value>>>16,this[offset+3]=value>>>24):objectWriteUInt32(this,value,offset,!0),offset+4},Buffer.prototype.writeInt32BE=function(value,offset,noAssert){return value=+value,offset=0|offset,noAssert||checkInt(this,value,offset,4,2147483647,-2147483648),0>value&&(value=4294967295+value+1),Buffer.TYPED_ARRAY_SUPPORT?(this[offset]=value>>>24,this[offset+1]=value>>>16,this[offset+2]=value>>>8,this[offset+3]=255&value):objectWriteUInt32(this,value,offset,!1),offset+4},Buffer.prototype.writeFloatLE=function(value,offset,noAssert){return writeFloat(this,value,offset,!0,noAssert)},Buffer.prototype.writeFloatBE=function(value,offset,noAssert){return writeFloat(this,value,offset,!1,noAssert)},Buffer.prototype.writeDoubleLE=function(value,offset,noAssert){return writeDouble(this,value,offset,!0,noAssert)},Buffer.prototype.writeDoubleBE=function(value,offset,noAssert){return writeDouble(this,value,offset,!1,noAssert)},Buffer.prototype.copy=function(target,targetStart,start,end){if(start||(start=0),end||0===end||(end=this.length),targetStart>=target.length&&(targetStart=target.length),targetStart||(targetStart=0),end>0&&start>end&&(end=start),end===start)return 0;if(0===target.length||0===this.length)return 0;if(0>targetStart)throw new RangeError("targetStart out of bounds");if(0>start||start>=this.length)throw new RangeError("sourceStart out of bounds");if(0>end)throw new RangeError("sourceEnd out of bounds");end>this.length&&(end=this.length),target.length-targetStartstart&&end>targetStart)for(i=len-1;i>=0;i--)target[i+targetStart]=this[i+start];else if(1e3>len||!Buffer.TYPED_ARRAY_SUPPORT)for(i=0;len>i;i++)target[i+targetStart]=this[i+start];else target._set(this.subarray(start,start+len),targetStart);return len},Buffer.prototype.fill=function(value,start,end){if(value||(value=0),start||(start=0),end||(end=this.length),start>end)throw new RangeError("end < start");if(end!==start&&0!==this.length){if(0>start||start>=this.length)throw new RangeError("start out of bounds");if(0>end||end>this.length)throw new RangeError("end out of bounds");var i;if("number"==typeof value)for(i=start;end>i;i++)this[i]=value;else{var bytes=utf8ToBytes(value.toString()),len=bytes.length;for(i=start;end>i;i++)this[i]=bytes[i%len]}return this}},Buffer.prototype.toArrayBuffer=function(){if("undefined"!=typeof Uint8Array){if(Buffer.TYPED_ARRAY_SUPPORT)return new Buffer(this).buffer;for(var buf=new Uint8Array(this.length),i=0,len=buf.length;len>i;i+=1)buf[i]=this[i];return buf.buffer}throw new TypeError("Buffer.toArrayBuffer not supported in this browser")};var BP=Buffer.prototype;Buffer._augment=function(arr){return arr.constructor=Buffer,arr._isBuffer=!0,arr._set=arr.set,arr.get=BP.get,arr.set=BP.set,arr.write=BP.write,arr.toString=BP.toString,arr.toLocaleString=BP.toString,arr.toJSON=BP.toJSON,arr.equals=BP.equals,arr.compare=BP.compare,arr.indexOf=BP.indexOf,arr.copy=BP.copy,arr.slice=BP.slice,arr.readUIntLE=BP.readUIntLE,arr.readUIntBE=BP.readUIntBE,arr.readUInt8=BP.readUInt8,arr.readUInt16LE=BP.readUInt16LE,arr.readUInt16BE=BP.readUInt16BE,arr.readUInt32LE=BP.readUInt32LE,arr.readUInt32BE=BP.readUInt32BE,arr.readIntLE=BP.readIntLE,arr.readIntBE=BP.readIntBE,arr.readInt8=BP.readInt8,arr.readInt16LE=BP.readInt16LE,arr.readInt16BE=BP.readInt16BE,arr.readInt32LE=BP.readInt32LE,arr.readInt32BE=BP.readInt32BE,arr.readFloatLE=BP.readFloatLE,arr.readFloatBE=BP.readFloatBE,arr.readDoubleLE=BP.readDoubleLE,arr.readDoubleBE=BP.readDoubleBE,arr.writeUInt8=BP.writeUInt8,arr.writeUIntLE=BP.writeUIntLE,arr.writeUIntBE=BP.writeUIntBE,arr.writeUInt16LE=BP.writeUInt16LE,arr.writeUInt16BE=BP.writeUInt16BE,arr.writeUInt32LE=BP.writeUInt32LE,arr.writeUInt32BE=BP.writeUInt32BE,arr.writeIntLE=BP.writeIntLE,arr.writeIntBE=BP.writeIntBE,arr.writeInt8=BP.writeInt8,arr.writeInt16LE=BP.writeInt16LE,arr.writeInt16BE=BP.writeInt16BE,arr.writeInt32LE=BP.writeInt32LE,arr.writeInt32BE=BP.writeInt32BE,arr.writeFloatLE=BP.writeFloatLE,arr.writeFloatBE=BP.writeFloatBE,arr.writeDoubleLE=BP.writeDoubleLE,arr.writeDoubleBE=BP.writeDoubleBE,arr.fill=BP.fill,arr.inspect=BP.inspect,arr.toArrayBuffer=BP.toArrayBuffer,arr};var INVALID_BASE64_RE=/[^+\/0-9A-Za-z-_]/g;return module.exports}),$__System.registerDynamic("1c5",["1c4"],!0,function($__require,exports,module){return module.exports=$__require("1c4"),module.exports}),$__System.registerDynamic("1c6",["1c5"],!0,function($__require,exports,module){return module.exports=$__System._nodeRequire?$__System._nodeRequire("buffer"):$__require("1c5"),module.exports}),$__System.registerDynamic("14c",["1c6"],!0,function($__require,exports,module){return module.exports=$__require("1c6"),module.exports}),$__System.registerDynamic("199",["194","154","140","14c"],!0,function($__require,exports,module){return function(Buffer){"use strict";function Pointer($ref,path){this.$ref=$ref,this.path=path,this.value=void 0,this.circular=!1}function resolveIf$Ref(pointer,options){if($Ref.isAllowed$Ref(pointer.value,options)){var $refPath=url.resolve(pointer.path,pointer.value.$ref);if($refPath!==pointer.path){var resolved=pointer.$ref.$refs._resolve($refPath,options);return $Ref.isExtended$Ref(pointer.value)?pointer.value=$Ref.dereference(pointer.value,resolved.value):(pointer.$ref=resolved.$ref,pointer.path=resolved.path,pointer.value=resolved.value),!0}pointer.circular=!0}}function setValue(pointer,token,value){if(!pointer.value||"object"!=typeof pointer.value)throw ono.syntax('Error assigning $ref pointer "%s". \nCannot set "%s" of a non-object.',pointer.path,token);return"-"===token&&Array.isArray(pointer.value)?pointer.value.push(value):pointer.value[token]=value,value}module.exports=Pointer;var $Ref=$__require("194"),url=$__require("154"),ono=$__require("140"),slashes=/\//g,tildes=/~/g,escapedSlash=/~1/g,escapedTilde=/~0/g;Pointer.prototype.resolve=function(obj,options){var tokens=Pointer.parse(this.path);this.value=obj;for(var i=0;i=3&&(ctx.depth=arguments[2]),arguments.length>=4&&(ctx.colors=arguments[3]),isBoolean(opts)?ctx.showHidden=opts:opts&&exports._extend(ctx,opts),isUndefined(ctx.showHidden)&&(ctx.showHidden=!1),isUndefined(ctx.depth)&&(ctx.depth=2),isUndefined(ctx.colors)&&(ctx.colors=!1),isUndefined(ctx.customInspect)&&(ctx.customInspect=!0),ctx.colors&&(ctx.stylize=stylizeWithColor),formatValue(ctx,obj,ctx.depth)}function stylizeWithColor(str,styleType){var style=inspect.styles[styleType];return style?"["+inspect.colors[style][0]+"m"+str+"["+inspect.colors[style][1]+"m":str}function stylizeNoColor(str,styleType){return str}function arrayToHash(array){var hash={};return array.forEach(function(val,idx){hash[val]=!0}),hash}function formatValue(ctx,value,recurseTimes){if(ctx.customInspect&&value&&isFunction(value.inspect)&&value.inspect!==exports.inspect&&(!value.constructor||value.constructor.prototype!==value)){var ret=value.inspect(recurseTimes,ctx);return isString(ret)||(ret=formatValue(ctx,ret,recurseTimes)),ret}var primitive=formatPrimitive(ctx,value);if(primitive)return primitive;var keys=Object.keys(value),visibleKeys=arrayToHash(keys);if(ctx.showHidden&&(keys=Object.getOwnPropertyNames(value)),isError(value)&&(keys.indexOf("message")>=0||keys.indexOf("description")>=0))return formatError(value);if(0===keys.length){if(isFunction(value)){var name=value.name?": "+value.name:"";return ctx.stylize("[Function"+name+"]","special")}if(isRegExp(value))return ctx.stylize(RegExp.prototype.toString.call(value),"regexp");if(isDate(value))return ctx.stylize(Date.prototype.toString.call(value),"date");if(isError(value))return formatError(value)}var base="",array=!1,braces=["{","}"];if(isArray(value)&&(array=!0,braces=["[","]"]),isFunction(value)){var n=value.name?": "+value.name:"";base=" [Function"+n+"]"}if(isRegExp(value)&&(base=" "+RegExp.prototype.toString.call(value)),isDate(value)&&(base=" "+Date.prototype.toUTCString.call(value)),isError(value)&&(base=" "+formatError(value)),0===keys.length&&(!array||0==value.length))return braces[0]+base+braces[1];if(0>recurseTimes)return isRegExp(value)?ctx.stylize(RegExp.prototype.toString.call(value),"regexp"):ctx.stylize("[Object]","special");ctx.seen.push(value);var output;return output=array?formatArray(ctx,value,recurseTimes,visibleKeys,keys):keys.map(function(key){return formatProperty(ctx,value,recurseTimes,visibleKeys,key,array)}),ctx.seen.pop(),reduceToSingleString(output,base,braces)}function formatPrimitive(ctx,value){if(isUndefined(value))return ctx.stylize("undefined","undefined");if(isString(value)){var simple="'"+JSON.stringify(value).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return ctx.stylize(simple,"string")}return isNumber(value)?ctx.stylize(""+value,"number"):isBoolean(value)?ctx.stylize(""+value,"boolean"):isNull(value)?ctx.stylize("null","null"):void 0}function formatError(value){return"["+Error.prototype.toString.call(value)+"]"}function formatArray(ctx,value,recurseTimes,visibleKeys,keys){for(var output=[],i=0,l=value.length;l>i;++i)hasOwnProperty(value,String(i))?output.push(formatProperty(ctx,value,recurseTimes,visibleKeys,String(i),!0)):output.push("");return keys.forEach(function(key){key.match(/^\d+$/)||output.push(formatProperty(ctx,value,recurseTimes,visibleKeys,key,!0))}),output}function formatProperty(ctx,value,recurseTimes,visibleKeys,key,array){var name,str,desc;if(desc=Object.getOwnPropertyDescriptor(value,key)||{value:value[key]},desc.get?str=desc.set?ctx.stylize("[Getter/Setter]","special"):ctx.stylize("[Getter]","special"):desc.set&&(str=ctx.stylize("[Setter]","special")),hasOwnProperty(visibleKeys,key)||(name="["+key+"]"),str||(ctx.seen.indexOf(desc.value)<0?(str=isNull(recurseTimes)?formatValue(ctx,desc.value,null):formatValue(ctx,desc.value,recurseTimes-1),str.indexOf("\n")>-1&&(str=array?str.split("\n").map(function(line){return" "+line}).join("\n").substr(2):"\n"+str.split("\n").map(function(line){return" "+line}).join("\n"))):str=ctx.stylize("[Circular]","special")),isUndefined(name)){if(array&&key.match(/^\d+$/))return str;name=JSON.stringify(""+key),name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(name=name.substr(1,name.length-2),name=ctx.stylize(name,"name")):(name=name.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),name=ctx.stylize(name,"string"))}return name+": "+str}function reduceToSingleString(output,base,braces){var numLinesEst=0,length=output.reduce(function(prev,cur){return numLinesEst++,cur.indexOf("\n")>=0&&numLinesEst++,prev+cur.replace(/\u001b\[\d\d?m/g,"").length+1},0);return length>60?braces[0]+(""===base?"":base+"\n ")+" "+output.join(",\n ")+" "+braces[1]:braces[0]+base+" "+output.join(", ")+" "+braces[1]}function isArray(ar){return Array.isArray(ar)}function isBoolean(arg){return"boolean"==typeof arg}function isNull(arg){return null===arg}function isNullOrUndefined(arg){return null==arg}function isNumber(arg){return"number"==typeof arg}function isString(arg){return"string"==typeof arg}function isSymbol(arg){return"symbol"==typeof arg}function isUndefined(arg){return void 0===arg}function isRegExp(re){return isObject(re)&&"[object RegExp]"===objectToString(re)}function isObject(arg){return"object"==typeof arg&&null!==arg}function isDate(d){return isObject(d)&&"[object Date]"===objectToString(d)}function isError(e){return isObject(e)&&("[object Error]"===objectToString(e)||e instanceof Error)}function isFunction(arg){return"function"==typeof arg}function isPrimitive(arg){return null===arg||"boolean"==typeof arg||"number"==typeof arg||"string"==typeof arg||"symbol"==typeof arg||"undefined"==typeof arg}function objectToString(o){return Object.prototype.toString.call(o)}function pad(n){return 10>n?"0"+n.toString(10):n.toString(10)}function timestamp(){var d=new Date,time=[pad(d.getHours()),pad(d.getMinutes()),pad(d.getSeconds())].join(":");return[d.getDate(),months[d.getMonth()],time].join(" ")}function hasOwnProperty(obj,prop){return Object.prototype.hasOwnProperty.call(obj,prop)}var formatRegExp=/%[sdj%]/g;exports.format=function(f){if(!isString(f)){for(var objects=[],i=0;i=len)return x;switch(x){
case"%s":return String(args[i++]);case"%d":return Number(args[i++]);case"%j":try{return JSON.stringify(args[i++])}catch(_){return"[Circular]"}default:return x}}),x=args[i];len>i;x=args[++i])str+=isNull(x)||!isObject(x)?" "+x:" "+inspect(x);return str},exports.deprecate=function(fn,msg){function deprecated(){if(!warned){if(process.throwDeprecation)throw new Error(msg);process.traceDeprecation?console.trace(msg):console.error(msg),warned=!0}return fn.apply(this,arguments)}if(isUndefined(global.process))return function(){return exports.deprecate(fn,msg).apply(this,arguments)};if(process.noDeprecation===!0)return fn;var warned=!1;return deprecated};var debugEnviron,debugs={};exports.debuglog=function(set){if(isUndefined(debugEnviron)&&(debugEnviron=process.env.NODE_DEBUG||""),set=set.toUpperCase(),!debugs[set])if(new RegExp("\\b"+set+"\\b","i").test(debugEnviron)){var pid=process.pid;debugs[set]=function(){var msg=exports.format.apply(exports,arguments);console.error("%s %d: %s",set,pid,msg)}}else debugs[set]=function(){};return debugs[set]},exports.inspect=inspect,inspect.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},inspect.styles={special:"cyan",number:"yellow","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"},exports.isArray=isArray,exports.isBoolean=isBoolean,exports.isNull=isNull,exports.isNullOrUndefined=isNullOrUndefined,exports.isNumber=isNumber,exports.isString=isString,exports.isSymbol=isSymbol,exports.isUndefined=isUndefined,exports.isRegExp=isRegExp,exports.isObject=isObject,exports.isDate=isDate,exports.isError=isError,exports.isFunction=isFunction,exports.isPrimitive=isPrimitive,exports.isBuffer=$__require("1c7");var months=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];exports.log=function(){console.log("%s - %s",timestamp(),exports.format.apply(exports,arguments))},exports.inherits=$__require("158"),exports._extend=function(origin,add){if(!add||!isObject(add))return origin;for(var keys=Object.keys(add),i=keys.length;i--;)origin[keys[i]]=add[keys[i]];return origin}}($__require("d4")),module.exports}),$__System.registerDynamic("1ca",["1c9"],!0,function($__require,exports,module){return module.exports=$__require("1c9"),module.exports}),$__System.registerDynamic("1cb",["1ca"],!0,function($__require,exports,module){return module.exports=$__System._nodeRequire?$__System._nodeRequire("util"):$__require("1ca"),module.exports}),$__System.registerDynamic("145",["1cb"],!0,function($__require,exports,module){return module.exports=$__require("1cb"),module.exports}),$__System.registerDynamic("1cc",["145"],!0,function($__require,exports,module){"use strict";function create(Klass){return function(err,props,message,params){var formattedMessage,formatter=module.exports.formatter;"string"==typeof err?(formattedMessage=formatter.apply(null,arguments),err=props=void 0):formattedMessage="string"==typeof props?formatter.apply(null,slice.call(arguments,1)):formatter.apply(null,slice.call(arguments,2)),err instanceof Error||(props=err,err=void 0),err&&(formattedMessage+=(formattedMessage?" \n":"")+err.message);var newError=new Klass(formattedMessage);return extendError(newError,err),extendToJSON(newError),extend(newError,props),newError}}function extendError(targetError,sourceError){sourceError&&(extendStack(targetError,sourceError),extend(targetError,sourceError,!0))}function extendToJSON(error){error.toJSON=errorToJSON,error.inspect=errorToString}function extend(target,source,omitVendorSpecificProperties){if(source&&"object"==typeof source)for(var keys=Object.keys(source),i=0;i=0))try{target[key]=source[key]}catch(e){}}}function errorToJSON(){var json={},keys=Object.keys(this);keys=keys.concat(vendorSpecificErrorProperties);for(var i=0;i1e4)){var match=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(str);if(match){var n=parseFloat(match[1]),type=(match[2]||"ms").toLowerCase();switch(type){case"years":case"year":case"yrs":case"yr":case"y":return n*y;case"days":case"day":case"d":return n*d;case"hours":case"hour":case"hrs":case"hr":case"h":return n*h;case"minutes":case"minute":case"mins":case"min":case"m":return n*m;case"seconds":case"second":case"secs":case"sec":case"s":return n*s;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n}}}}function short(ms){return ms>=d?Math.round(ms/d)+"d":ms>=h?Math.round(ms/h)+"h":ms>=m?Math.round(ms/m)+"m":ms>=s?Math.round(ms/s)+"s":ms+"ms"}function long(ms){return plural(ms,d,"day")||plural(ms,h,"hour")||plural(ms,m,"minute")||plural(ms,s,"second")||ms+" ms"}function plural(ms,n,name){return n>ms?void 0:1.5*n>ms?Math.floor(ms/n)+" "+name:Math.ceil(ms/n)+" "+name+"s"}var s=1e3,m=60*s,h=60*m,d=24*h,y=365.25*d;return module.exports=function(val,options){return options=options||{},"string"==typeof val?parse(val):options["long"]?long(val):short(val)},module.exports}),$__System.registerDynamic("1ce",["1cd"],!0,function($__require,exports,module){return module.exports=$__require("1cd"),module.exports}),$__System.registerDynamic("1cf",["1ce"],!0,function($__require,exports,module){function selectColor(){return exports.colors[prevColor++%exports.colors.length]}function debug(namespace){function disabled(){}function enabled(){var self=enabled,curr=+new Date,ms=curr-(prevTime||curr);self.diff=ms,self.prev=prevTime,self.curr=curr,prevTime=curr,null==self.useColors&&(self.useColors=exports.useColors()),null==self.color&&self.useColors&&(self.color=selectColor());var args=Array.prototype.slice.call(arguments);args[0]=exports.coerce(args[0]),"string"!=typeof args[0]&&(args=["%o"].concat(args));var index=0;args[0]=args[0].replace(/%([a-z%])/g,function(match,format){if("%%"===match)return match;index++;var formatter=exports.formatters[format];if("function"==typeof formatter){var val=args[index];match=formatter.call(self,val),args.splice(index,1),index--}return match}),"function"==typeof exports.formatArgs&&(args=exports.formatArgs.apply(self,args));var logFn=enabled.log||exports.log||console.log.bind(console);logFn.apply(self,args)}disabled.enabled=!1,enabled.enabled=!0;var fn=exports.enabled(namespace)?enabled:disabled;return fn.namespace=namespace,fn}function enable(namespaces){exports.save(namespaces);for(var split=(namespaces||"").split(/[\s,]+/),len=split.length,i=0;len>i;i++)split[i]&&(namespaces=split[i].replace(/\*/g,".*?"),"-"===namespaces[0]?exports.skips.push(new RegExp("^"+namespaces.substr(1)+"$")):exports.names.push(new RegExp("^"+namespaces+"$")))}function disable(){exports.enable("")}function enabled(name){var i,len;for(i=0,len=exports.skips.length;len>i;i++)if(exports.skips[i].test(name))return!1;for(i=0,len=exports.names.length;len>i;i++)if(exports.names[i].test(name))return!0;return!1}function coerce(val){return val instanceof Error?val.stack||val.message:val}exports=module.exports=debug,exports.coerce=coerce,exports.disable=disable,exports.enable=enable,exports.enabled=enabled,exports.humanize=$__require("1ce"),exports.names=[],exports.skips=[],exports.formatters={};var prevTime,prevColor=0;return module.exports}),$__System.registerDynamic("1d0",["1cf"],!0,function($__require,exports,module){function useColors(){return"WebkitAppearance"in document.documentElement.style||window.console&&(console.firebug||console.exception&&console.table)||navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31}function formatArgs(){var args=arguments,useColors=this.useColors;if(args[0]=(useColors?"%c":"")+this.namespace+(useColors?" %c":" ")+args[0]+(useColors?"%c ":" ")+"+"+exports.humanize(this.diff),!useColors)return args;var c="color: "+this.color;args=[args[0],c,"color: inherit"].concat(Array.prototype.slice.call(args,1));var index=0,lastC=0;return args[0].replace(/%[a-z%]/g,function(match){"%%"!==match&&(index++,"%c"===match&&(lastC=index))}),args.splice(lastC,0,c),args}function log(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function save(namespaces){try{null==namespaces?exports.storage.removeItem("debug"):exports.storage.debug=namespaces}catch(e){}}function load(){var r;try{r=exports.storage.debug}catch(e){}return r}function localstorage(){try{return window.localStorage}catch(e){}}return exports=module.exports=$__require("1cf"),exports.log=log,exports.formatArgs=formatArgs,exports.save=save,exports.load=load,exports.useColors=useColors,exports.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:localstorage(),exports.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],exports.formatters.j=function(v){return JSON.stringify(v)},exports.enable(load()),module.exports}),$__System.registerDynamic("144",["1d0"],!0,function($__require,exports,module){return module.exports=$__require("1d0"),module.exports}),$__System.registerDynamic("155",["144"],!0,function($__require,exports,module){"use strict";var debug=$__require("144");return module.exports=debug("json-schema-ref-parser"),module.exports}),$__System.registerDynamic("1d1",["d4"],!0,function($__require,exports,module){var define,global=this;return function(process){!function(root){function error(type){throw RangeError(errors[type])}function map(array,fn){for(var length=array.length,result=[];length--;)result[length]=fn(array[length]);return result}function mapDomain(string,fn){var parts=string.split("@"),result="";parts.length>1&&(result=parts[0]+"@",string=parts[1]),string=string.replace(regexSeparators,".");var labels=string.split("."),encoded=map(labels,fn).join(".");return result+encoded}function ucs2decode(string){for(var value,extra,output=[],counter=0,length=string.length;length>counter;)value=string.charCodeAt(counter++),value>=55296&&56319>=value&&length>counter?(extra=string.charCodeAt(counter++),56320==(64512&extra)?output.push(((1023&value)<<10)+(1023&extra)+65536):(output.push(value),counter--)):output.push(value);return output}function ucs2encode(array){return map(array,function(value){var output="";return value>65535&&(value-=65536,output+=stringFromCharCode(value>>>10&1023|55296),value=56320|1023&value),output+=stringFromCharCode(value)}).join("")}function basicToDigit(codePoint){return 10>codePoint-48?codePoint-22:26>codePoint-65?codePoint-65:26>codePoint-97?codePoint-97:base}function digitToBasic(digit,flag){return digit+22+75*(26>digit)-((0!=flag)<<5)}function adapt(delta,numPoints,firstTime){var k=0;for(delta=firstTime?floor(delta/damp):delta>>1,delta+=floor(delta/numPoints);delta>baseMinusTMin*tMax>>1;k+=base)delta=floor(delta/baseMinusTMin);return floor(k+(baseMinusTMin+1)*delta/(delta+skew))}function decode(input){var out,basic,j,index,oldi,w,k,digit,t,baseMinusT,output=[],inputLength=input.length,i=0,n=initialN,bias=initialBias;for(basic=input.lastIndexOf(delimiter),0>basic&&(basic=0),j=0;basic>j;++j)input.charCodeAt(j)>=128&&error("not-basic"),output.push(input.charCodeAt(j));for(index=basic>0?basic+1:0;inputLength>index;){for(oldi=i,w=1,k=base;index>=inputLength&&error("invalid-input"),digit=basicToDigit(input.charCodeAt(index++)),(digit>=base||digit>floor((maxInt-i)/w))&&error("overflow"),i+=digit*w,t=bias>=k?tMin:k>=bias+tMax?tMax:k-bias,!(t>digit);k+=base)baseMinusT=base-t,w>floor(maxInt/baseMinusT)&&error("overflow"),w*=baseMinusT;out=output.length+1,bias=adapt(i-oldi,out,0==oldi),floor(i/out)>maxInt-n&&error("overflow"),n+=floor(i/out),i%=out,output.splice(i++,0,n)}return ucs2encode(output)}function encode(input){var n,delta,handledCPCount,basicLength,bias,j,m,q,k,t,currentValue,inputLength,handledCPCountPlusOne,baseMinusT,qMinusT,output=[];for(input=ucs2decode(input),inputLength=input.length,n=initialN,delta=0,bias=initialBias,j=0;inputLength>j;++j)currentValue=input[j],128>currentValue&&output.push(stringFromCharCode(currentValue));for(handledCPCount=basicLength=output.length,basicLength&&output.push(delimiter);inputLength>handledCPCount;){for(m=maxInt,j=0;inputLength>j;++j)currentValue=input[j],currentValue>=n&&m>currentValue&&(m=currentValue);for(handledCPCountPlusOne=handledCPCount+1,m-n>floor((maxInt-delta)/handledCPCountPlusOne)&&error("overflow"),delta+=(m-n)*handledCPCountPlusOne,n=m,j=0;inputLength>j;++j)if(currentValue=input[j],n>currentValue&&++delta>maxInt&&error("overflow"),currentValue==n){for(q=delta,k=base;t=bias>=k?tMin:k>=bias+tMax?tMax:k-bias,!(t>q);k+=base)qMinusT=q-t,baseMinusT=base-t,output.push(stringFromCharCode(digitToBasic(t+qMinusT%baseMinusT,0))),q=floor(qMinusT/baseMinusT);output.push(stringFromCharCode(digitToBasic(q,0))),bias=adapt(delta,handledCPCountPlusOne,handledCPCount==basicLength),delta=0,++handledCPCount}++delta,++n}return output.join("")}function toUnicode(input){return mapDomain(input,function(string){return regexPunycode.test(string)?decode(string.slice(4).toLowerCase()):string})}function toASCII(input){return mapDomain(input,function(string){return regexNonASCII.test(string)?"xn--"+encode(string):string})}var freeExports="object"==typeof exports&&exports&&!exports.nodeType&&exports,freeModule="object"==typeof module&&module&&!module.nodeType&&module,freeGlobal="object"==typeof global&&global;freeGlobal.global!==freeGlobal&&freeGlobal.window!==freeGlobal&&freeGlobal.self!==freeGlobal||(root=freeGlobal);var punycode,key,maxInt=2147483647,base=36,tMin=1,tMax=26,skew=38,damp=700,initialBias=72,initialN=128,delimiter="-",regexPunycode=/^xn--/,regexNonASCII=/[^\x20-\x7E]/,regexSeparators=/[\x2E\u3002\uFF0E\uFF61]/g,errors={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},baseMinusTMin=base-tMin,floor=Math.floor,stringFromCharCode=String.fromCharCode;if(punycode={version:"1.3.2",ucs2:{decode:ucs2decode,encode:ucs2encode},decode:decode,encode:encode,toASCII:toASCII,toUnicode:toUnicode},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",function(){return punycode});else if(freeExports&&freeModule)if(module.exports==freeExports)freeModule.exports=punycode;else for(key in punycode)punycode.hasOwnProperty(key)&&(freeExports[key]=punycode[key]);else root.punycode=punycode}(this)}($__require("d4")),module.exports}),$__System.registerDynamic("1d2",["1d1"],!0,function($__require,exports,module){return module.exports=$__require("1d1"),module.exports}),$__System.registerDynamic("1d3",[],!0,function($__require,exports,module){"use strict";function hasOwnProperty(obj,prop){return Object.prototype.hasOwnProperty.call(obj,prop)}return module.exports=function(qs,sep,eq,options){sep=sep||"&",eq=eq||"=";var obj={};if("string"!=typeof qs||0===qs.length)return obj;var regexp=/\+/g;qs=qs.split(sep);var maxKeys=1e3;options&&"number"==typeof options.maxKeys&&(maxKeys=options.maxKeys);var len=qs.length;maxKeys>0&&len>maxKeys&&(len=maxKeys);for(var i=0;len>i;++i){var kstr,vstr,k,v,x=qs[i].replace(regexp,"%20"),idx=x.indexOf(eq);idx>=0?(kstr=x.substr(0,idx),vstr=x.substr(idx+1)):(kstr=x,vstr=""),k=decodeURIComponent(kstr),v=decodeURIComponent(vstr),hasOwnProperty(obj,k)?Array.isArray(obj[k])?obj[k].push(v):obj[k]=[obj[k],v]:obj[k]=v}return obj},module.exports}),$__System.registerDynamic("1d4",[],!0,function($__require,exports,module){"use strict";var stringifyPrimitive=function(v){switch(typeof v){case"string":return v;case"boolean":return v?"true":"false";case"number":return isFinite(v)?v:"";default:return""}};return module.exports=function(obj,sep,eq,name){return sep=sep||"&",eq=eq||"=",null===obj&&(obj=void 0),"object"==typeof obj?Object.keys(obj).map(function(k){var ks=encodeURIComponent(stringifyPrimitive(k))+eq;return Array.isArray(obj[k])?obj[k].map(function(v){return ks+encodeURIComponent(stringifyPrimitive(v))}).join(sep):ks+encodeURIComponent(stringifyPrimitive(obj[k]))}).join(sep):name?encodeURIComponent(stringifyPrimitive(name))+eq+encodeURIComponent(stringifyPrimitive(obj)):""},module.exports}),$__System.registerDynamic("1d5",["1d3","1d4"],!0,function($__require,exports,module){"use strict";return exports.decode=exports.parse=$__require("1d3"),exports.encode=exports.stringify=$__require("1d4"),module.exports}),$__System.registerDynamic("1d6",["1d5"],!0,function($__require,exports,module){return module.exports=$__require("1d5"),module.exports}),$__System.registerDynamic("1d7",["1d2","1d6"],!0,function($__require,exports,module){function Url(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function urlParse(url,parseQueryString,slashesDenoteHost){if(url&&isObject(url)&&url instanceof Url)return url;var u=new Url;return u.parse(url,parseQueryString,slashesDenoteHost),u}function urlFormat(obj){return isString(obj)&&(obj=urlParse(obj)),obj instanceof Url?obj.format():Url.prototype.format.call(obj)}function urlResolve(source,relative){return urlParse(source,!1,!0).resolve(relative)}function urlResolveObject(source,relative){return source?urlParse(source,!1,!0).resolveObject(relative):relative}function isString(arg){return"string"==typeof arg}function isObject(arg){return"object"==typeof arg&&null!==arg}function isNull(arg){return null===arg}function isNullOrUndefined(arg){return null==arg}var punycode=$__require("1d2");exports.parse=urlParse,exports.resolve=urlResolve,exports.resolveObject=urlResolveObject,exports.format=urlFormat,exports.Url=Url;var protocolPattern=/^([a-z0-9.+-]+:)/i,portPattern=/:[0-9]*$/,delims=["<",">",'"',"`"," ","\r","\n"," "],unwise=["{","}","|","\\","^","`"].concat(delims),autoEscape=["'"].concat(unwise),nonHostChars=["%","/","?",";","#"].concat(autoEscape),hostEndingChars=["/","?","#"],hostnameMaxLen=255,hostnamePartPattern=/^[a-z0-9A-Z_-]{0,63}$/,hostnamePartStart=/^([a-z0-9A-Z_-]{0,63})(.*)$/,unsafeProtocol={javascript:!0,"javascript:":!0},hostlessProtocol={javascript:!0,"javascript:":!0},slashedProtocol={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},querystring=$__require("1d6");return Url.prototype.parse=function(url,parseQueryString,slashesDenoteHost){if(!isString(url))throw new TypeError("Parameter 'url' must be a string, not "+typeof url);var rest=url;rest=rest.trim();var proto=protocolPattern.exec(rest);if(proto){proto=proto[0];var lowerProto=proto.toLowerCase();this.protocol=lowerProto,rest=rest.substr(proto.length)}if(slashesDenoteHost||proto||rest.match(/^\/\/[^@\/]+@[^@\/]+/)){var slashes="//"===rest.substr(0,2);!slashes||proto&&hostlessProtocol[proto]||(rest=rest.substr(2),this.slashes=!0)}if(!hostlessProtocol[proto]&&(slashes||proto&&!slashedProtocol[proto])){for(var hostEnd=-1,i=0;ihec)&&(hostEnd=hec)}var auth,atSign;atSign=-1===hostEnd?rest.lastIndexOf("@"):rest.lastIndexOf("@",hostEnd),-1!==atSign&&(auth=rest.slice(0,atSign),rest=rest.slice(atSign+1),this.auth=decodeURIComponent(auth)),hostEnd=-1;for(var i=0;ihec)&&(hostEnd=hec)}-1===hostEnd&&(hostEnd=rest.length),this.host=rest.slice(0,hostEnd),rest=rest.slice(hostEnd),this.parseHost(),this.hostname=this.hostname||"";var ipv6Hostname="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!ipv6Hostname)for(var hostparts=this.hostname.split(/\./),i=0,l=hostparts.length;l>i;i++){var part=hostparts[i];if(part&&!part.match(hostnamePartPattern)){for(var newpart="",j=0,k=part.length;k>j;j++)newpart+=part.charCodeAt(j)>127?"x":part[j];if(!newpart.match(hostnamePartPattern)){var validParts=hostparts.slice(0,i),notHost=hostparts.slice(i+1),bit=part.match(hostnamePartStart);bit&&(validParts.push(bit[1]),notHost.unshift(bit[2])),notHost.length&&(rest="/"+notHost.join(".")+rest),this.hostname=validParts.join(".");break}}}if(this.hostname.length>hostnameMaxLen?this.hostname="":this.hostname=this.hostname.toLowerCase(),!ipv6Hostname){for(var domainArray=this.hostname.split("."),newOut=[],i=0;ii;i++){var ae=autoEscape[i],esc=encodeURIComponent(ae);esc===ae&&(esc=escape(ae)),rest=rest.split(ae).join(esc)}var hash=rest.indexOf("#");-1!==hash&&(this.hash=rest.substr(hash),rest=rest.slice(0,hash));var qm=rest.indexOf("?");if(-1!==qm?(this.search=rest.substr(qm),this.query=rest.substr(qm+1),parseQueryString&&(this.query=querystring.parse(this.query)),rest=rest.slice(0,qm)):parseQueryString&&(this.search="",this.query={}),rest&&(this.pathname=rest),slashedProtocol[lowerProto]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var p=this.pathname||"",s=this.search||"";this.path=p+s}return this.href=this.format(),this},Url.prototype.format=function(){var auth=this.auth||"";auth&&(auth=encodeURIComponent(auth),auth=auth.replace(/%3A/i,":"),auth+="@");var protocol=this.protocol||"",pathname=this.pathname||"",hash=this.hash||"",host=!1,query="";this.host?host=auth+this.host:this.hostname&&(host=auth+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(host+=":"+this.port)),this.query&&isObject(this.query)&&Object.keys(this.query).length&&(query=querystring.stringify(this.query));var search=this.search||query&&"?"+query||"";return protocol&&":"!==protocol.substr(-1)&&(protocol+=":"),this.slashes||(!protocol||slashedProtocol[protocol])&&host!==!1?(host="//"+(host||""),pathname&&"/"!==pathname.charAt(0)&&(pathname="/"+pathname)):host||(host=""),hash&&"#"!==hash.charAt(0)&&(hash="#"+hash),search&&"?"!==search.charAt(0)&&(search="?"+search),pathname=pathname.replace(/[?#]/g,function(match){return encodeURIComponent(match)}),search=search.replace("#","%23"),protocol+host+pathname+search+hash},Url.prototype.resolve=function(relative){return this.resolveObject(urlParse(relative,!1,!0)).format()},Url.prototype.resolveObject=function(relative){if(isString(relative)){var rel=new Url;rel.parse(relative,!1,!0),relative=rel}var result=new Url;if(Object.keys(this).forEach(function(k){result[k]=this[k]},this),result.hash=relative.hash,""===relative.href)return result.href=result.format(),result;if(relative.slashes&&!relative.protocol)return Object.keys(relative).forEach(function(k){"protocol"!==k&&(result[k]=relative[k])}),slashedProtocol[result.protocol]&&result.hostname&&!result.pathname&&(result.path=result.pathname="/"),result.href=result.format(),result;if(relative.protocol&&relative.protocol!==result.protocol){if(!slashedProtocol[relative.protocol])return Object.keys(relative).forEach(function(k){result[k]=relative[k]}),result.href=result.format(),result;if(result.protocol=relative.protocol,relative.host||hostlessProtocol[relative.protocol])result.pathname=relative.pathname;else{for(var relPath=(relative.pathname||"").split("/");relPath.length&&!(relative.host=relPath.shift()););relative.host||(relative.host=""),relative.hostname||(relative.hostname=""),""!==relPath[0]&&relPath.unshift(""),relPath.length<2&&relPath.unshift(""),result.pathname=relPath.join("/")}if(result.search=relative.search,result.query=relative.query,result.host=relative.host||"",result.auth=relative.auth,result.hostname=relative.hostname||relative.host,result.port=relative.port,result.pathname||result.search){var p=result.pathname||"",s=result.search||"";result.path=p+s}return result.slashes=result.slashes||relative.slashes,result.href=result.format(),result}var isSourceAbs=result.pathname&&"/"===result.pathname.charAt(0),isRelAbs=relative.host||relative.pathname&&"/"===relative.pathname.charAt(0),mustEndAbs=isRelAbs||isSourceAbs||result.host&&relative.pathname,removeAllDots=mustEndAbs,srcPath=result.pathname&&result.pathname.split("/")||[],relPath=relative.pathname&&relative.pathname.split("/")||[],psychotic=result.protocol&&!slashedProtocol[result.protocol];if(psychotic&&(result.hostname="",result.port=null,result.host&&(""===srcPath[0]?srcPath[0]=result.host:srcPath.unshift(result.host)),result.host="",relative.protocol&&(relative.hostname=null,relative.port=null,relative.host&&(""===relPath[0]?relPath[0]=relative.host:relPath.unshift(relative.host)),relative.host=null),mustEndAbs=mustEndAbs&&(""===relPath[0]||""===srcPath[0])),isRelAbs)result.host=relative.host||""===relative.host?relative.host:result.host,result.hostname=relative.hostname||""===relative.hostname?relative.hostname:result.hostname,result.search=relative.search,result.query=relative.query,srcPath=relPath;else if(relPath.length)srcPath||(srcPath=[]),srcPath.pop(),srcPath=srcPath.concat(relPath),result.search=relative.search,result.query=relative.query;else if(!isNullOrUndefined(relative.search)){if(psychotic){result.hostname=result.host=srcPath.shift();var authInHost=result.host&&result.host.indexOf("@")>0?result.host.split("@"):!1;authInHost&&(result.auth=authInHost.shift(),result.host=result.hostname=authInHost.shift())}return result.search=relative.search,result.query=relative.query,isNull(result.pathname)&&isNull(result.search)||(result.path=(result.pathname?result.pathname:"")+(result.search?result.search:"")),result.href=result.format(),result}if(!srcPath.length)return result.pathname=null,result.search?result.path="/"+result.search:result.path=null,result.href=result.format(),result;for(var last=srcPath.slice(-1)[0],hasTrailingSlash=(result.host||relative.host)&&("."===last||".."===last)||""===last,up=0,i=srcPath.length;i>=0;i--)last=srcPath[i],"."==last?srcPath.splice(i,1):".."===last?(srcPath.splice(i,1),up++):up&&(srcPath.splice(i,1),up--);if(!mustEndAbs&&!removeAllDots)for(;up--;up)srcPath.unshift("..");!mustEndAbs||""===srcPath[0]||srcPath[0]&&"/"===srcPath[0].charAt(0)||srcPath.unshift(""),hasTrailingSlash&&"/"!==srcPath.join("/").substr(-1)&&srcPath.push("");var isAbsolute=""===srcPath[0]||srcPath[0]&&"/"===srcPath[0].charAt(0);if(psychotic){result.hostname=result.host=isAbsolute?"":srcPath.length?srcPath.shift():"";var authInHost=result.host&&result.host.indexOf("@")>0?result.host.split("@"):!1;authInHost&&(result.auth=authInHost.shift(),result.host=result.hostname=authInHost.shift())}return mustEndAbs=mustEndAbs||result.host&&srcPath.length,mustEndAbs&&!isAbsolute&&srcPath.unshift(""),srcPath.length?result.pathname=srcPath.join("/"):(result.pathname=null,result.path=null),isNull(result.pathname)&&isNull(result.search)||(result.path=(result.pathname?result.pathname:"")+(result.search?result.search:"")),result.auth=relative.auth||result.auth,result.slashes=result.slashes||relative.slashes,result.href=result.format(),result},Url.prototype.parseHost=function(){var host=this.host,port=portPattern.exec(host);port&&(port=port[0],":"!==port&&(this.port=port.substr(1)),host=host.substr(0,host.length-port.length)),host&&(this.hostname=host)},module.exports}),$__System.registerDynamic("1d8",["1d7"],!0,function($__require,exports,module){return module.exports=$__require("1d7"),module.exports}),$__System.registerDynamic("1d9",["1d8"],!0,function($__require,exports,module){return module.exports=$__System._nodeRequire?$__System._nodeRequire("url"):$__require("1d8"),module.exports}),$__System.registerDynamic("170",["1d9"],!0,function($__require,exports,module){return module.exports=$__require("1d9"),module.exports}),$__System.registerDynamic("154",["170","d4"],!0,function($__require,exports,module){return function(process){"use strict";var isWindows=/^win/.test(process.platform),forwardSlashPattern=/\//g,protocolPattern=/^([a-z0-9.+-]+):\/\//i,url=module.exports,urlEncodePatterns=[/\?/g,"%3F",/\#/g,"%23",isWindows?/\\/g:/\//,"/"],urlDecodePatterns=[/\%23/g,"#",/\%24/g,"$",/\%26/g,"&",/\%2C/g,",",/\%40/g,"@"];exports.parse=$__require("170").parse,exports.resolve=$__require("170").resolve,exports.cwd=function(){return process.browser?location.href:process.cwd()+"/"},exports.getProtocol=function(path){var match=protocolPattern.exec(path);return match?match[1].toLowerCase():void 0},exports.getExtension=function(path){var lastDot=path.lastIndexOf(".");return lastDot>=0?path.substr(lastDot).toLowerCase():""},exports.getHash=function(path){var hashIndex=path.indexOf("#");return hashIndex>=0?path.substr(hashIndex):"#"},exports.stripHash=function(path){var hashIndex=path.indexOf("#");return hashIndex>=0&&(path=path.substr(0,hashIndex)),path},exports.isHttp=function(path){var protocol=url.getProtocol(path);return"http"===protocol||"https"===protocol?!0:void 0===protocol?process.browser:!1},exports.isFileSystemPath=function(path){if(process.browser)return!1;var protocol=url.getProtocol(path);return void 0===protocol||"file"===protocol},exports.fromFileSystemPath=function(path){for(var i=0;ii||i>=l?TO_STRING?"":void 0:(a=s.charCodeAt(i),55296>a||a>56319||i+1===l||(b=s.charCodeAt(i+1))<56320||b>57343?TO_STRING?s.charAt(i):a:TO_STRING?s.slice(i,i+2):(a-55296<<10)+(b-56320)+65536)}},module.exports}),$__System.registerDynamic("33",["1dc","1df"],!0,function($__require,exports,module){"use strict";var $at=$__require("1dc")(!0);return $__require("1df")(String,"String",function(iterated){this._t=String(iterated),this._i=0},function(){var point,O=this._t,index=this._i;return index>=O.length?{value:void 0,done:!0}:(point=$at(O,index),this._i+=point.length,{value:point,done:!1})}),module.exports}),$__System.registerDynamic("1e0",[],!0,function($__require,exports,module){return module.exports=function(){},module.exports}),$__System.registerDynamic("1e1",["1e0","1e2","2f","1e3","1df"],!0,function($__require,exports,module){"use strict";var addToUnscopables=$__require("1e0"),step=$__require("1e2"),Iterators=$__require("2f"),toIObject=$__require("1e3");return module.exports=$__require("1df")(Array,"Array",function(iterated,kind){this._t=toIObject(iterated),this._i=0,this._k=kind},function(){var O=this._t,kind=this._k,index=this._i++;return!O||index>=O.length?(this._t=void 0,step(1)):"keys"==kind?step(0,index):"values"==kind?step(0,O[index]):step(0,[index,O[index]])},"values"),Iterators.Arguments=Iterators.Array,addToUnscopables("keys"),addToUnscopables("values"),addToUnscopables("entries"),module.exports}),$__System.registerDynamic("32",["1e1","2f"],!0,function($__require,exports,module){$__require("1e1");var Iterators=$__require("2f");return Iterators.NodeList=Iterators.HTMLCollection=Iterators.Array,module.exports}),$__System.registerDynamic("d8",[],!0,function($__require,exports,module){return module.exports=!0,module.exports}),$__System.registerDynamic("1e4",["d7","1e5","de","1e6","2e"],!0,function($__require,exports,module){"use strict";var $=$__require("d7"),descriptor=$__require("1e5"),setToStringTag=$__require("de"),IteratorPrototype={};return $__require("1e6")(IteratorPrototype,$__require("2e")("iterator"),function(){return this}),module.exports=function(Constructor,NAME,next){Constructor.prototype=$.create(IteratorPrototype,{next:descriptor(1,next)}),setToStringTag(Constructor,NAME+" Iterator")},module.exports}),$__System.registerDynamic("1df",["d8","c0","1e7","1e6","1e8","2f","1e4","de","d7","2e"],!0,function($__require,exports,module){"use strict";var LIBRARY=$__require("d8"),$export=$__require("c0"),redefine=$__require("1e7"),hide=$__require("1e6"),has=$__require("1e8"),Iterators=$__require("2f"),$iterCreate=$__require("1e4"),setToStringTag=$__require("de"),getProto=$__require("d7").getProto,ITERATOR=$__require("2e")("iterator"),BUGGY=!([].keys&&"next"in[].keys()),FF_ITERATOR="@@iterator",KEYS="keys",VALUES="values",returnThis=function(){return this};return module.exports=function(Base,NAME,Constructor,next,DEFAULT,IS_SET,FORCED){$iterCreate(Constructor,NAME,next);var methods,key,getMethod=function(kind){if(!BUGGY&&kind in proto)return proto[kind];switch(kind){case KEYS:return function(){return new Constructor(this,kind)};case VALUES:return function(){return new Constructor(this,kind)}}return function(){return new Constructor(this,kind)}},TAG=NAME+" Iterator",DEF_VALUES=DEFAULT==VALUES,VALUES_BUG=!1,proto=Base.prototype,$native=proto[ITERATOR]||proto[FF_ITERATOR]||DEFAULT&&proto[DEFAULT],$default=$native||getMethod(DEFAULT);if($native){var IteratorPrototype=getProto($default.call(new Base));setToStringTag(IteratorPrototype,TAG,!0),!LIBRARY&&has(proto,FF_ITERATOR)&&hide(IteratorPrototype,ITERATOR,returnThis),DEF_VALUES&&$native.name!==VALUES&&(VALUES_BUG=!0,$default=function(){return $native.call(this)})}if(LIBRARY&&!FORCED||!BUGGY&&!VALUES_BUG&&proto[ITERATOR]||hide(proto,ITERATOR,$default),Iterators[NAME]=$default,Iterators[TAG]=returnThis,DEFAULT)if(methods={values:DEF_VALUES?$default:getMethod(VALUES),keys:IS_SET?$default:getMethod(KEYS),entries:DEF_VALUES?getMethod("entries"):$default},FORCED)for(key in methods)key in proto||redefine(proto,key,methods[key]);else $export($export.P+$export.F*(BUGGY||VALUES_BUG),NAME,methods);return methods},module.exports}),$__System.registerDynamic("1e2",[],!0,function($__require,exports,module){return module.exports=function(done,value){return{value:value,done:!!done}},module.exports}),$__System.registerDynamic("df",["30","d7","dc","2e"],!0,function($__require,exports,module){"use strict";var core=$__require("30"),$=$__require("d7"),DESCRIPTORS=$__require("dc"),SPECIES=$__require("2e")("species");return module.exports=function(KEY){var C=core[KEY];DESCRIPTORS&&C&&!C[SPECIES]&&$.setDesc(C,SPECIES,{configurable:!0,get:function(){return this}})},module.exports}),$__System.registerDynamic("e6",["d7","1e6","dd","bf","d9","1de","da","1df","1e2","1e9","1e8","d1","df","dc"],!0,function($__require,exports,module){"use strict";var $=$__require("d7"),hide=$__require("1e6"),redefineAll=$__require("dd"),ctx=$__require("bf"),strictNew=$__require("d9"),defined=$__require("1de"),forOf=$__require("da"),$iterDefine=$__require("1df"),step=$__require("1e2"),ID=$__require("1e9")("id"),$has=$__require("1e8"),isObject=$__require("d1"),setSpecies=$__require("df"),DESCRIPTORS=$__require("dc"),isExtensible=Object.isExtensible||isObject,SIZE=DESCRIPTORS?"_s":"size",id=0,fastKey=function(it,create){if(!isObject(it))return"symbol"==typeof it?it:("string"==typeof it?"S":"P")+it;if(!$has(it,ID)){if(!isExtensible(it))return"F";if(!create)return"E";hide(it,ID,++id)}return"O"+it[ID]},getEntry=function(that,key){var entry,index=fastKey(key);if("F"!==index)return that._i[index];for(entry=that._f;entry;entry=entry.n)if(entry.k==key)return entry};return module.exports={getConstructor:function(wrapper,NAME,IS_MAP,ADDER){var C=wrapper(function(that,iterable){strictNew(that,C,NAME),that._i=$.create(null),that._f=void 0,that._l=void 0,that[SIZE]=0,void 0!=iterable&&forOf(iterable,IS_MAP,that[ADDER],that)});return redefineAll(C.prototype,{clear:function(){for(var that=this,data=that._i,entry=that._f;entry;entry=entry.n)entry.r=!0,entry.p&&(entry.p=entry.p.n=void 0),delete data[entry.i];that._f=that._l=void 0,that[SIZE]=0},"delete":function(key){var that=this,entry=getEntry(that,key);if(entry){var next=entry.n,prev=entry.p;delete that._i[entry.i],entry.r=!0,prev&&(prev.n=next),next&&(next.p=prev),that._f==entry&&(that._f=next),that._l==entry&&(that._l=prev),that[SIZE]--}return!!entry},forEach:function(callbackfn){for(var entry,f=ctx(callbackfn,arguments.length>1?arguments[1]:void 0,3);entry=entry?entry.n:this._f;)for(f(entry.v,entry.k,this);entry&&entry.r;)entry=entry.p},has:function(key){return!!getEntry(this,key)}}),DESCRIPTORS&&$.setDesc(C.prototype,"size",{get:function(){return defined(this[SIZE])}}),C},def:function(that,key,value){var prev,index,entry=getEntry(that,key);return entry?entry.v=value:(that._l=entry={i:index=fastKey(key,!0),k:key,v:value,p:prev=that._l,n:void 0,r:!1},that._f||(that._f=entry),prev&&(prev.n=entry),that[SIZE]++,"F"!==index&&(that._i[index]=entry)),that},getEntry:getEntry,setStrong:function(C,NAME,IS_MAP){$iterDefine(C,NAME,function(iterated,kind){this._t=iterated,this._k=kind,this._l=void 0},function(){for(var that=this,kind=that._k,entry=that._l;entry&&entry.r;)entry=entry.p;return that._t&&(that._l=entry=entry?entry.n:that._t._f)?"keys"==kind?step(0,entry.k):"values"==kind?step(0,entry.v):step(0,[entry.k,entry.v]):(that._t=void 0,step(1))},IS_MAP?"entries":"values",!IS_MAP,!0),setSpecies(NAME)}},module.exports}),$__System.registerDynamic("1e5",[],!0,function($__require,exports,module){return module.exports=function(bitmap,value){return{enumerable:!(1&bitmap),configurable:!(2&bitmap),writable:!(4&bitmap),value:value}},module.exports}),$__System.registerDynamic("1e6",["d7","1e5","dc"],!0,function($__require,exports,module){var $=$__require("d7"),createDesc=$__require("1e5");return module.exports=$__require("dc")?function(object,key,value){return $.setDesc(object,key,createDesc(1,value))}:function(object,key,value){return object[key]=value,object},module.exports}),$__System.registerDynamic("1e7",["1e6"],!0,function($__require,exports,module){return module.exports=$__require("1e6"),module.exports}),$__System.registerDynamic("dd",["1e7"],!0,function($__require,exports,module){var redefine=$__require("1e7");return module.exports=function(target,src){for(var key in src)redefine(target,key,src[key]);return target},module.exports}),$__System.registerDynamic("d9",[],!0,function($__require,exports,module){return module.exports=function(it,Constructor,name){if(!(it instanceof Constructor))throw TypeError(name+": use the 'new' operator!");return it},module.exports}),$__System.registerDynamic("1e8",[],!0,function($__require,exports,module){var hasOwnProperty={}.hasOwnProperty;return module.exports=function(it,key){return hasOwnProperty.call(it,key)},module.exports}),$__System.registerDynamic("de",["d7","1e8","2e"],!0,function($__require,exports,module){var def=$__require("d7").setDesc,has=$__require("1e8"),TAG=$__require("2e")("toStringTag");return module.exports=function(it,tag,stat){it&&!has(it=stat?it:it.prototype,TAG)&&def(it,TAG,{configurable:!0,value:tag})},module.exports}),$__System.registerDynamic("dc",["1ea"],!0,function($__require,exports,module){return module.exports=!$__require("1ea")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),module.exports}),$__System.registerDynamic("e7",["d7","cf","c0","1ea","1e6","dd","da","d9","d1","de","dc"],!0,function($__require,exports,module){"use strict";var global=this,$=$__require("d7"),global=$__require("cf"),$export=$__require("c0"),fails=$__require("1ea"),hide=$__require("1e6"),redefineAll=$__require("dd"),forOf=$__require("da"),strictNew=$__require("d9"),isObject=$__require("d1"),setToStringTag=$__require("de"),DESCRIPTORS=$__require("dc");return module.exports=function(NAME,wrapper,methods,common,IS_MAP,IS_WEAK){var Base=global[NAME],C=Base,ADDER=IS_MAP?"set":"add",proto=C&&C.prototype,O={};return DESCRIPTORS&&"function"==typeof C&&(IS_WEAK||proto.forEach&&!fails(function(){(new C).entries().next()}))?(C=wrapper(function(target,iterable){strictNew(target,C,NAME),target._c=new Base,void 0!=iterable&&forOf(iterable,IS_MAP,target[ADDER],target)}),$.each.call("add,clear,delete,forEach,get,has,set,keys,values,entries".split(","),function(KEY){var IS_ADDER="add"==KEY||"set"==KEY;KEY in proto&&(!IS_WEAK||"clear"!=KEY)&&hide(C.prototype,KEY,function(a,b){if(!IS_ADDER&&IS_WEAK&&!isObject(a))return"get"==KEY?void 0:!1;var result=this._c[KEY](0===a?0:a,b);return IS_ADDER?this:result})}),"size"in proto&&$.setDesc(C.prototype,"size",{get:function(){return this._c.size}})):(C=common.getConstructor(wrapper,NAME,IS_MAP,ADDER),redefineAll(C.prototype,methods)),setToStringTag(C,NAME),O[NAME]=C,$export($export.G+$export.W+$export.F,O),IS_WEAK||common.setStrong(C,NAME,IS_MAP),C},module.exports}),$__System.registerDynamic("1eb",["e6","e7"],!0,function($__require,exports,module){"use strict";var strong=$__require("e6");return $__require("e7")("Set",function(get){return function(){return get(this,arguments.length>0?arguments[0]:void 0)}},{add:function(value){return strong.def(this,value=0===value?0:value,value)}},strong),module.exports}),$__System.registerDynamic("c2",["cb"],!0,function($__require,exports,module){var anObject=$__require("cb");return module.exports=function(iterator,fn,value,entries){try{return entries?fn(anObject(value)[0],value[1]):fn(value)}catch(e){var ret=iterator["return"];throw void 0!==ret&&anObject(ret.call(iterator)),e}},module.exports}),$__System.registerDynamic("c3",["2f","2e"],!0,function($__require,exports,module){var Iterators=$__require("2f"),ITERATOR=$__require("2e")("iterator"),ArrayProto=Array.prototype;return module.exports=function(it){return void 0!==it&&(Iterators.Array===it||ArrayProto[ITERATOR]===it)},module.exports}),$__System.registerDynamic("1dd",[],!0,function($__require,exports,module){var ceil=Math.ceil,floor=Math.floor;return module.exports=function(it){return isNaN(it=+it)?0:(it>0?floor:ceil)(it)},module.exports}),$__System.registerDynamic("c4",["1dd"],!0,function($__require,exports,module){var toInteger=$__require("1dd"),min=Math.min;return module.exports=function(it){return it>0?min(toInteger(it),9007199254740991):0},module.exports}),$__System.registerDynamic("2f",[],!0,function($__require,exports,module){return module.exports={},module.exports}),$__System.registerDynamic("c5",["2d","2e","2f","30"],!0,function($__require,exports,module){var classof=$__require("2d"),ITERATOR=$__require("2e")("iterator"),Iterators=$__require("2f");return module.exports=$__require("30").getIteratorMethod=function(it){return void 0!=it?it[ITERATOR]||it["@@iterator"]||Iterators[classof(it)]:void 0},module.exports}),$__System.registerDynamic("da",["bf","c2","c3","cb","c4","c5"],!0,function($__require,exports,module){var ctx=$__require("bf"),call=$__require("c2"),isArrayIter=$__require("c3"),anObject=$__require("cb"),toLength=$__require("c4"),getIterFn=$__require("c5");return module.exports=function(iterable,entries,fn,that){var length,step,iterator,iterFn=getIterFn(iterable),f=ctx(fn,that,entries?2:1),index=0;if("function"!=typeof iterFn)throw TypeError(iterable+" is not iterable!");if(isArrayIter(iterFn))for(length=toLength(iterable.length);length>index;index++)entries?f(anObject(step=iterable[index])[0],step[1]):f(iterable[index]);else for(iterator=iterFn.call(iterable);!(step=iterator.next()).done;)call(iterator,f,step.value,entries)},module.exports}),$__System.registerDynamic("1ec",["cf"],!0,function($__require,exports,module){var global=this,global=$__require("cf"),SHARED="__core-js_shared__",store=global[SHARED]||(global[SHARED]={});return module.exports=function(key){return store[key]||(store[key]={})},module.exports}),$__System.registerDynamic("1e9",[],!0,function($__require,exports,module){var id=0,px=Math.random();return module.exports=function(key){return"Symbol(".concat(void 0===key?"":key,")_",(++id+px).toString(36))},module.exports}),$__System.registerDynamic("2e",["1ec","1e9","cf"],!0,function($__require,exports,module){var store=$__require("1ec")("wks"),uid=$__require("1e9"),Symbol=$__require("cf").Symbol;return module.exports=function(name){return store[name]||(store[name]=Symbol&&Symbol[name]||(Symbol||uid)("Symbol."+name))},module.exports}),$__System.registerDynamic("2d",["d3","2e"],!0,function($__require,exports,module){var cof=$__require("d3"),TAG=$__require("2e")("toStringTag"),ARG="Arguments"==cof(function(){return arguments}());return module.exports=function(it){var O,T,B;return void 0===it?"Undefined":null===it?"Null":"string"==typeof(T=(O=Object(it))[TAG])?T:ARG?cof(O):"Object"==(B=cof(O))&&"function"==typeof O.callee?"Arguments":B},module.exports}),$__System.registerDynamic("e9",["da","2d"],!0,function($__require,exports,module){var forOf=$__require("da"),classof=$__require("2d");return module.exports=function(NAME){return function(){if(classof(this)!=NAME)throw TypeError(NAME+"#toJSON isn't generic");var arr=[];return forOf(this,!1,arr.push,arr),arr}},module.exports}),$__System.registerDynamic("1ed",["c0","e9"],!0,function($__require,exports,module){var $export=$__require("c0");return $export($export.P,"Set",{toJSON:$__require("e9")("Set")}),module.exports}),$__System.registerDynamic("1ee",["e1","33","32","1eb","1ed","30"],!0,function($__require,exports,module){return $__require("e1"),$__require("33"),$__require("32"),$__require("1eb"),$__require("1ed"),module.exports=$__require("30").Set,module.exports}),$__System.registerDynamic("bc",["1ee"],!0,function($__require,exports,module){return module.exports={"default":$__require("1ee"),__esModule:!0},module.exports}),$__System.register("1ef",["bc"],function(_export){var _Set,methods;return{setters:[function(_bc){_Set=_bc["default"]}],execute:function(){"use strict";methods=new _Set(["get","put","post","delete","options","head","patch"]),_export("methods",methods)}}}),$__System.register("21",["9","11","35","a","e2","f","eb","1db","1ef"],function(_export){var _createClass,JsonPointer,_getIterator,_classCallCheck,_Promise,_Object$keys,_Map,SwaggerParser,swaggerMethods,SchemaManager;return{setters:[function(_){_createClass=_["default"]},function(_3){JsonPointer=_3["default"]},function(_2){_getIterator=_2["default"]},function(_a){_classCallCheck=_a["default"]},function(_e2){_Promise=_e2["default"]},function(_f){_Object$keys=_f["default"]},function(_eb){_Map=_eb["default"]},function(_db){SwaggerParser=_db["default"]},function(_ef){swaggerMethods=_ef.methods}],execute:function(){"use strict";SchemaManager=function(){function SchemaManager(){return _classCallCheck(this,SchemaManager),SchemaManager.prototype._instance?SchemaManager.prototype._instance:(SchemaManager.prototype._instance=this,void(this._schema={}))}return _createClass(SchemaManager,[{key:"load",value:function(url){var _this=this,promise=new _Promise(function(resolve,reject){_this._schema={},SwaggerParser.bundle(url,{http:{withCredentials:!1}}).then(function(schema){_this._schema=schema,resolve(_this._schema),_this.init()},function(err){return reject(err)})});return promise}},{key:"init",value:function(){this._schema&&this._schema.schemes&&(this.apiUrl=this._schema.schemes[0]+"://"+this._schema.host+this._schema.basePath,this.apiUrl.endsWith("/")&&(this.apiUrl=this.apiUrl.substr(0,this.apiUrl.length-1)))}},{key:"byPointer",value:function(pointer){var res=null;try{res=JsonPointer.get(this._schema,decodeURIComponent(pointer))}catch(e){}return res}},{key:"resolveRefs",value:function(obj){var _this2=this;return _Object$keys(obj).forEach(function(key){if(obj[key].$ref){var resolved=_this2.byPointer(obj[key].$ref);resolved._pointer=obj[key].$ref,obj[key]=resolved}}),obj}},{key:"getMethodParams",value:function(methodPtr,resolveRefs){function injectPointers(array,root){if(!Array.isArray(array))throw new Error("parameters must be an array. Got "+typeof array+" at "+root);return array.map(function(element,idx){return element._pointer=JsonPointer.join(root,idx),element})}"parameters"===JsonPointer.baseName(methodPtr)&&(methodPtr=JsonPointer.dirName(methodPtr));var pathParamsPtr=JsonPointer.join(JsonPointer.dirName(methodPtr),["parameters"]),pathParams=this.byPointer(pathParamsPtr)||[],methodParamsPtr=JsonPointer.join(methodPtr,["parameters"]),methodParams=this.byPointer(methodParamsPtr)||[];return pathParams=injectPointers(pathParams,pathParamsPtr),methodParams=injectPointers(methodParams,methodParamsPtr),resolveRefs&&(methodParams=this.resolveRefs(methodParams),pathParams=this.resolveRefs(pathParams)),methodParams.concat(pathParams)}},{key:"getTagsMap",value:function(){var tags=this._schema.tags||[],tagsMap={},_iteratorNormalCompletion=!0,_didIteratorError=!1,_iteratorError=void 0;try{for(var _step,_iterator=_getIterator(tags);!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=!0){var tag=_step.value;tagsMap[tag.name]={description:tag.description,"x-traitTag":tag["x-traitTag"]||!1}}}catch(err){_didIteratorError=!0,_iteratorError=err}finally{try{!_iteratorNormalCompletion&&_iterator["return"]&&_iterator["return"]()}finally{if(_didIteratorError)throw _iteratorError}}return tagsMap}},{key:"buildMenuTree",value:function(){var tag2MethodMapping=new _Map,definedTags=this._schema.tags||[],_iteratorNormalCompletion2=!0,_didIteratorError2=!1,_iteratorError2=void 0;try{for(var _step2,_iterator2=_getIterator(definedTags);!(_iteratorNormalCompletion2=(_step2=_iterator2.next()).done);_iteratorNormalCompletion2=!0){var tag=_step2.value;tag2MethodMapping.set(tag.name,{description:tag.description,"x-traitTag":tag["x-traitTag"],methods:[]})}}catch(err){_didIteratorError2=!0,_iteratorError2=err}finally{try{!_iteratorNormalCompletion2&&_iterator2["return"]&&_iterator2["return"]()}finally{if(_didIteratorError2)throw _iteratorError2}}var paths=this._schema.paths,_iteratorNormalCompletion3=!0,_didIteratorError3=!1,_iteratorError3=void 0;try{for(var _step3,_iterator3=_getIterator(_Object$keys(paths));!(_iteratorNormalCompletion3=(_step3=_iterator3.next()).done);_iteratorNormalCompletion3=!0){var path=_step3.value,methods=_Object$keys(paths[path]).filter(function(k){return swaggerMethods.has(k)}),_iteratorNormalCompletion4=!0,_didIteratorError4=!1,_iteratorError4=void 0;try{for(var _step4,_iterator4=_getIterator(methods);!(_iteratorNormalCompletion4=(_step4=_iterator4.next()).done);_iteratorNormalCompletion4=!0){var method=_step4.value,methodInfo=paths[path][method],tags=methodInfo.tags;tags&&tags.length||(tags=["[Other]"]);var methodPointer=JsonPointer.compile(["paths",path,method]),methodSummary=methodInfo.summary,_iteratorNormalCompletion5=!0,_didIteratorError5=!1,_iteratorError5=void 0;try{for(var _step5,_iterator5=_getIterator(tags);!(_iteratorNormalCompletion5=(_step5=_iterator5.next()).done);_iteratorNormalCompletion5=!0){var tag=_step5.value,tagDetails=tag2MethodMapping.get(tag);tagDetails||(tagDetails={},tag2MethodMapping.set(tag,tagDetails)),tagDetails["x-traitTag"]||(tagDetails.methods||(tagDetails.methods=[]),tagDetails.methods.push({pointer:methodPointer,summary:methodSummary,operationId:methodInfo.operationId}))}}catch(err){_didIteratorError5=!0,_iteratorError5=err}finally{try{!_iteratorNormalCompletion5&&_iterator5["return"]&&_iterator5["return"]()}finally{if(_didIteratorError5)throw _iteratorError5}}}}catch(err){_didIteratorError4=!0,_iteratorError4=err}finally{try{!_iteratorNormalCompletion4&&_iterator4["return"]&&_iterator4["return"]()}finally{if(_didIteratorError4)throw _iteratorError4}}}}catch(err){_didIteratorError3=!0,_iteratorError3=err}finally{try{!_iteratorNormalCompletion3&&_iterator3["return"]&&_iterator3["return"]()}finally{if(_didIteratorError3)throw _iteratorError3}}return tag2MethodMapping}},{key:"findDerivedDefinitions",value:function(defPointer){var definition=this.byPointer(defPointer);if(!definition)throw new Error("Can't load schema at "+defPointer);if(!definition.discriminator)return[];var globalDefs=this._schema.definitions||{},res=[],_iteratorNormalCompletion6=!0,_didIteratorError6=!1,_iteratorError6=void 0;try{for(var _step6,_iterator6=_getIterator(_Object$keys(globalDefs));!(_iteratorNormalCompletion6=(_step6=_iterator6.next()).done);_iteratorNormalCompletion6=!0){var defName=_step6.value;if(globalDefs[defName].allOf){var subTypes=globalDefs[defName].allOf,idx=subTypes.findIndex(function(subType){return subType.$ref===defPointer});if(!(0>idx)){var empty=!1;1===subTypes.length&&(empty=!0),res.push({name:defName,$ref:"#/definitions/"+defName,empty:empty})}}}}catch(err){_didIteratorError6=!0,_iteratorError6=err}finally{try{!_iteratorNormalCompletion6&&_iterator6["return"]&&_iterator6["return"]()}finally{if(_didIteratorError6)throw _iteratorError6}}return res}},{key:"schema",get:function(){return this._schema}}],[{key:"instance",value:function(){return new SchemaManager}}]),SchemaManager}(),_export("default",SchemaManager)}}}),$__System.registerDynamic("1f0",["c1","1f1"],!0,function($__require,exports,module){var toObject=$__require("c1");return $__require("1f1")("keys",function($keys){return function(it){return $keys(toObject(it))}}),module.exports}),$__System.registerDynamic("1f2",["1f0","30"],!0,function($__require,exports,module){return $__require("1f0"),module.exports=$__require("30").Object.keys,module.exports}),$__System.registerDynamic("f",["1f2"],!0,function($__require,exports,module){return module.exports={"default":$__require("1f2"),__esModule:!0},module.exports}),$__System.registerDynamic("1f3",[],!0,function($__require,exports,module){var global=this,_self="undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{},Prism=function(){var lang=/\blang(?:uage)?-(?!\*)(\w+)\b/i,_=_self.Prism={util:{encode:function(tokens){return tokens instanceof Token?new Token(tokens.type,_.util.encode(tokens.content),tokens.alias):"Array"===_.util.type(tokens)?tokens.map(_.util.encode):tokens.replace(/&/g,"&").replace(/text.length)break tokenloop;if(!(str instanceof Token)){pattern.lastIndex=0;var match=pattern.exec(str);if(match){lookbehind&&(lookbehindLength=match[1].length);var from=match.index-1+lookbehindLength,match=match[0].slice(lookbehindLength),len=match.length,to=from+len,before=str.slice(0,from+1),after=str.slice(to+1),args=[i,1];before&&args.push(before);var wrapped=new Token(token,inside?_.tokenize(match,inside):match,alias);args.push(wrapped),after&&args.push(after),Array.prototype.splice.apply(strarr,args)}}}}}return strarr},hooks:{all:{},add:function(name,callback){var hooks=_.hooks.all;hooks[name]=hooks[name]||[],hooks[name].push(callback)},run:function(name,env){var callbacks=_.hooks.all[name];if(callbacks&&callbacks.length)for(var callback,i=0;callback=callbacks[i++];)callback(env)}}},Token=_.Token=function(type,content,alias){this.type=type,this.content=content,this.alias=alias};if(Token.stringify=function(o,language,parent){if("string"==typeof o)return o;if("Array"===_.util.type(o))return o.map(function(element){return Token.stringify(element,language,o)}).join("");var env={type:o.type,content:Token.stringify(o.content,language,parent),tag:"span",classes:["token",o.type],attributes:{},language:language,parent:parent};if("comment"==env.type&&(env.attributes.spellcheck="true"),o.alias){var aliases="Array"===_.util.type(o.alias)?o.alias:[o.alias];Array.prototype.push.apply(env.classes,aliases)}_.hooks.run("wrap",env);var attributes="";for(var name in env.attributes)attributes+=(attributes?" ":"")+name+'="'+(env.attributes[name]||"")+'"';return"<"+env.tag+' class="'+env.classes.join(" ")+'" '+attributes+">"+env.content+""+env.tag+">"},!_self.document)return _self.addEventListener?(_self.addEventListener("message",function(evt){var message=JSON.parse(evt.data),lang=message.language,code=message.code,immediateClose=message.immediateClose;_self.postMessage(_.highlight(code,_.languages[lang],lang)),immediateClose&&_self.close()},!1),_self.Prism):_self.Prism;var script=document.getElementsByTagName("script");return script=script[script.length-1],script&&(_.filename=script.src,document.addEventListener&&!script.hasAttribute("data-manual")&&document.addEventListener("DOMContentLoaded",_.highlightAll)),_self.Prism}();return"undefined"!=typeof module&&module.exports&&(module.exports=Prism),"undefined"!=typeof global&&(global.Prism=Prism),Prism.languages.markup={comment://,prolog:/<\?[\w\W]+?\?>/,doctype://,cdata://i,tag:{pattern:/<\/?(?!\d)[^\s>\/=.$<]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\\1|\\?(?!\1)[\w\W])*\1|[^\s'">=]+))?)*\s*\/?>/i,inside:{tag:{pattern:/^<\/?[^\s>\/]+/i,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"attr-value":{pattern:/=(?:('|")[\w\W]*?(\1)|[^\s>]+)/i,inside:{punctuation:/[=>"']/}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:/?[\da-z]{1,8};/i},Prism.hooks.add("wrap",function(env){"entity"===env.type&&(env.attributes.title=env.content.replace(/&/,"&"))}),Prism.languages.xml=Prism.languages.markup,Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.css={comment:/\/\*[\w\W]*?\*\//,atrule:{pattern:/@[\w-]+?.*?(;|(?=\s*\{))/i,inside:{rule:/@[\w-]+/}},url:/url\((?:(["'])(\\(?:\r\n|[\w\W])|(?!\1)[^\\\r\n])*\1|.*?)\)/i,selector:/[^\{\}\s][^\{\};]*?(?=\s*\{)/,string:/("|')(\\(?:\r\n|[\w\W])|(?!\1)[^\\\r\n])*\1/,property:/(\b|\B)[\w-]+(?=\s*:)/i,important:/\B!important\b/i,"function":/[-a-z0-9]+(?=\()/i,punctuation:/[(){};:]/},Prism.languages.css.atrule.inside.rest=Prism.util.clone(Prism.languages.css),Prism.languages.markup&&(Prism.languages.insertBefore("markup","tag",{style:{pattern:/(