Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@angular/platform-server

Package Overview
Dependencies
Maintainers
1
Versions
864
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@angular/platform-server - npm Package Compare versions

Comparing version 4.0.0-beta.2 to 4.0.0-beta.3

2

bundles/platform-server-testing.umd.js
/**
* @license Angular v4.0.0-beta.2
* @license Angular v4.0.0-beta.3
* (c) 2010-2016 Google, Inc. https://angular.io/

@@ -4,0 +4,0 @@ * License: MIT

/**
* @license Angular v4.0.0-beta.2
* @license Angular v4.0.0-beta.3
* (c) 2010-2016 Google, Inc. https://angular.io/

@@ -13,2 +13,2 @@ * License: MIT

*/
var globalScope;globalScope="undefined"==typeof window?"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:global:window;var _global=globalScope;_global.assert=function(condition){};var treeAdapter,ListWrapper=function(){function ListWrapper(){}return ListWrapper.findLast=function(arr,condition){for(var i=arr.length-1;i>=0;i--)if(condition(arr[i]))return arr[i];return null},ListWrapper.removeAll=function(list,items){for(var i=0;i<items.length;++i){var index=list.indexOf(items[i]);index>-1&&list.splice(index,1)}},ListWrapper.remove=function(list,el){var index=list.indexOf(el);return index>-1&&(list.splice(index,1),!0)},ListWrapper.equals=function(a,b){if(a.length!=b.length)return!1;for(var i=0;i<a.length;++i)if(a[i]!==b[i])return!1;return!0},ListWrapper.flatten=function(list){return list.reduce(function(flat,item){var flatItem=Array.isArray(item)?ListWrapper.flatten(item):item;return flat.concat(flatItem)},[])},ListWrapper}(),DomAdapter=_angular_platformBrowser.__platform_browser_private__.DomAdapter,setRootDomAdapter=_angular_platformBrowser.__platform_browser_private__.setRootDomAdapter,getDOM=_angular_platformBrowser.__platform_browser_private__.getDOM,SharedStylesHost=_angular_platformBrowser.__platform_browser_private__.SharedStylesHost,NAMESPACE_URIS=_angular_platformBrowser.__platform_browser_private__.NAMESPACE_URIS,shimContentAttribute=_angular_platformBrowser.__platform_browser_private__.shimContentAttribute,shimHostAttribute=_angular_platformBrowser.__platform_browser_private__.shimHostAttribute,flattenStyles=_angular_platformBrowser.__platform_browser_private__.flattenStyles,splitNamespace=_angular_platformBrowser.__platform_browser_private__.splitNamespace,isNamespaced=_angular_platformBrowser.__platform_browser_private__.isNamespaced,__extends$1=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 __)},parse5=require("parse5"),_attrToPropMap={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},defDoc=null,mapProps=["attribs","x-attribsNamespace","x-attribsPrefix"],Parse5DomAdapter=function(_super){function Parse5DomAdapter(){_super.apply(this,arguments)}return __extends$1(Parse5DomAdapter,_super),Parse5DomAdapter.makeCurrent=function(){treeAdapter=parse5.treeAdapters.htmlparser2,setRootDomAdapter(new Parse5DomAdapter)},Parse5DomAdapter.prototype.hasProperty=function(element,name){return _HTMLElementPropertyList.indexOf(name)>-1},Parse5DomAdapter.prototype.setProperty=function(el,name,value){"innerHTML"===name?this.setInnerHTML(el,value):"className"===name?el.attribs.class=el.className=value:el[name]=value},Parse5DomAdapter.prototype.getProperty=function(el,name){return el[name]},Parse5DomAdapter.prototype.logError=function(error){console.error(error)},Parse5DomAdapter.prototype.log=function(error){console.log(error)},Parse5DomAdapter.prototype.logGroup=function(error){console.error(error)},Parse5DomAdapter.prototype.logGroupEnd=function(){},Object.defineProperty(Parse5DomAdapter.prototype,"attrToPropMap",{get:function(){return _attrToPropMap},enumerable:!0,configurable:!0}),Parse5DomAdapter.prototype.query=function(selector){throw _notImplemented("query")},Parse5DomAdapter.prototype.querySelector=function(el,selector){return this.querySelectorAll(el,selector)[0]},Parse5DomAdapter.prototype.querySelectorAll=function(el,selector){var _this=this,res=[],_recursive=function(result,node,selector,matcher){var cNodes=node.childNodes;if(cNodes&&cNodes.length>0)for(var i=0;i<cNodes.length;i++){var childNode=cNodes[i];_this.elementMatches(childNode,selector,matcher)&&result.push(childNode),_recursive(result,childNode,selector,matcher)}},matcher=new _angular_compiler.SelectorMatcher;return matcher.addSelectables(_angular_compiler.CssSelector.parse(selector)),_recursive(res,el,selector,matcher),res},Parse5DomAdapter.prototype.elementMatches=function(node,selector,matcher){if(void 0===matcher&&(matcher=null),this.isElementNode(node)&&"*"===selector)return!0;var result=!1;if(selector&&"#"==selector.charAt(0))result=this.getAttribute(node,"id")==selector.substring(1);else if(selector){matcher||(matcher=new _angular_compiler.SelectorMatcher,matcher.addSelectables(_angular_compiler.CssSelector.parse(selector)));var cssSelector=new _angular_compiler.CssSelector;if(cssSelector.setElement(this.tagName(node)),node.attribs)for(var attrName in node.attribs)cssSelector.addAttribute(attrName,node.attribs[attrName]);for(var classList=this.classList(node),i=0;i<classList.length;i++)cssSelector.addClassName(classList[i]);matcher.match(cssSelector,function(selector,cb){result=!0})}return result},Parse5DomAdapter.prototype.on=function(el,evt,listener){var listenersMap=el._eventListenersMap;listenersMap||(listenersMap={},el._eventListenersMap=listenersMap);var listeners=listenersMap[evt]||[];listenersMap[evt]=listeners.concat([listener])},Parse5DomAdapter.prototype.onAndCancel=function(el,evt,listener){return this.on(el,evt,listener),function(){ListWrapper.remove(el._eventListenersMap[evt],listener)}},Parse5DomAdapter.prototype.dispatchEvent=function(el,evt){if(evt.target||(evt.target=el),el._eventListenersMap){var listeners=el._eventListenersMap[evt.type];if(listeners)for(var i=0;i<listeners.length;i++)listeners[i](evt)}el.parent&&this.dispatchEvent(el.parent,evt),el._window&&this.dispatchEvent(el._window,evt)},Parse5DomAdapter.prototype.createMouseEvent=function(eventType){return this.createEvent(eventType)},Parse5DomAdapter.prototype.createEvent=function(eventType){var event={type:eventType,defaultPrevented:!1,preventDefault:function(){event.defaultPrevented=!0}};return event},Parse5DomAdapter.prototype.preventDefault=function(event){event.returnValue=!1},Parse5DomAdapter.prototype.isPrevented=function(event){return isPresent(event.returnValue)&&!event.returnValue},Parse5DomAdapter.prototype.getInnerHTML=function(el){return parse5.serialize(this.templateAwareRoot(el),{treeAdapter:treeAdapter})},Parse5DomAdapter.prototype.getTemplateContent=function(el){return null},Parse5DomAdapter.prototype.getOuterHTML=function(el){var fragment=treeAdapter.createDocumentFragment();return this.appendChild(fragment,el),parse5.serialize(fragment,{treeAdapter:treeAdapter})},Parse5DomAdapter.prototype.nodeName=function(node){return node.tagName},Parse5DomAdapter.prototype.nodeValue=function(node){return node.nodeValue},Parse5DomAdapter.prototype.type=function(node){throw _notImplemented("type")},Parse5DomAdapter.prototype.content=function(node){return node.childNodes[0]},Parse5DomAdapter.prototype.firstChild=function(el){return el.firstChild},Parse5DomAdapter.prototype.nextSibling=function(el){return el.nextSibling},Parse5DomAdapter.prototype.parentElement=function(el){return el.parent},Parse5DomAdapter.prototype.childNodes=function(el){return el.childNodes},Parse5DomAdapter.prototype.childNodesAsList=function(el){for(var childNodes=el.childNodes,res=new Array(childNodes.length),i=0;i<childNodes.length;i++)res[i]=childNodes[i];return res},Parse5DomAdapter.prototype.clearNodes=function(el){for(;el.childNodes.length>0;)this.remove(el.childNodes[0])},Parse5DomAdapter.prototype.appendChild=function(el,node){this.remove(node),treeAdapter.appendChild(this.templateAwareRoot(el),node)},Parse5DomAdapter.prototype.removeChild=function(el,node){el.childNodes.indexOf(node)>-1&&this.remove(node)},Parse5DomAdapter.prototype.remove=function(el){var parent=el.parent;if(parent){var index=parent.childNodes.indexOf(el);parent.childNodes.splice(index,1)}var prev=el.previousSibling,next=el.nextSibling;return prev&&(prev.next=next),next&&(next.prev=prev),el.prev=null,el.next=null,el.parent=null,el},Parse5DomAdapter.prototype.insertBefore=function(el,node){this.remove(node),treeAdapter.insertBefore(el.parent,node,el)},Parse5DomAdapter.prototype.insertAllBefore=function(el,nodes){var _this=this;nodes.forEach(function(n){return _this.insertBefore(el,n)})},Parse5DomAdapter.prototype.insertAfter=function(el,node){el.nextSibling?this.insertBefore(el.nextSibling,node):this.appendChild(el.parent,node)},Parse5DomAdapter.prototype.setInnerHTML=function(el,value){this.clearNodes(el);for(var content=parse5.parseFragment(value,{treeAdapter:treeAdapter}),i=0;i<content.childNodes.length;i++)treeAdapter.appendChild(el,content.childNodes[i])},Parse5DomAdapter.prototype.getText=function(el,isRecursive){if(this.isTextNode(el))return el.data;if(this.isCommentNode(el))return isRecursive?"":el.data;if(!el.childNodes||0==el.childNodes.length)return"";for(var textContent="",i=0;i<el.childNodes.length;i++)textContent+=this.getText(el.childNodes[i],!0);return textContent},Parse5DomAdapter.prototype.setText=function(el,value){this.isTextNode(el)||this.isCommentNode(el)?el.data=value:(this.clearNodes(el),""!==value&&treeAdapter.insertText(el,value))},Parse5DomAdapter.prototype.getValue=function(el){return el.value},Parse5DomAdapter.prototype.setValue=function(el,value){el.value=value},Parse5DomAdapter.prototype.getChecked=function(el){return el.checked},Parse5DomAdapter.prototype.setChecked=function(el,value){el.checked=value},Parse5DomAdapter.prototype.createComment=function(text){return treeAdapter.createCommentNode(text)},Parse5DomAdapter.prototype.createTemplate=function(html){var template=treeAdapter.createElement("template","http://www.w3.org/1999/xhtml",[]),content=parse5.parseFragment(html,{treeAdapter:treeAdapter});return treeAdapter.setTemplateContent(template,content),template},Parse5DomAdapter.prototype.createElement=function(tagName){return treeAdapter.createElement(tagName,"http://www.w3.org/1999/xhtml",[])},Parse5DomAdapter.prototype.createElementNS=function(ns,tagName){return treeAdapter.createElement(tagName,ns,[])},Parse5DomAdapter.prototype.createTextNode=function(text){var t=this.createComment(text);return t.type="text",t},Parse5DomAdapter.prototype.createScriptTag=function(attrName,attrValue){return treeAdapter.createElement("script","http://www.w3.org/1999/xhtml",[{name:attrName,value:attrValue}])},Parse5DomAdapter.prototype.createStyleElement=function(css){var style=this.createElement("style");return this.setText(style,css),style},Parse5DomAdapter.prototype.createShadowRoot=function(el){return el.shadowRoot=treeAdapter.createDocumentFragment(),el.shadowRoot.parent=el,el.shadowRoot},Parse5DomAdapter.prototype.getShadowRoot=function(el){return el.shadowRoot},Parse5DomAdapter.prototype.getHost=function(el){return el.host},Parse5DomAdapter.prototype.getDistributedNodes=function(el){throw _notImplemented("getDistributedNodes")},Parse5DomAdapter.prototype.clone=function(node){var _recursive=function(node){var nodeClone=Object.create(Object.getPrototypeOf(node));for(var prop in node){var desc=Object.getOwnPropertyDescriptor(node,prop);desc&&"value"in desc&&"object"!=typeof desc.value&&(nodeClone[prop]=node[prop])}nodeClone.parent=null,nodeClone.prev=null,nodeClone.next=null,nodeClone.children=null,mapProps.forEach(function(mapName){if(isPresent(node[mapName])){nodeClone[mapName]={};for(var prop in node[mapName])nodeClone[mapName][prop]=node[mapName][prop]}});var cNodes=node.children;if(cNodes){for(var cNodesClone=new Array(cNodes.length),i=0;i<cNodes.length;i++){var childNode=cNodes[i],childNodeClone=_recursive(childNode);cNodesClone[i]=childNodeClone,i>0&&(childNodeClone.prev=cNodesClone[i-1],cNodesClone[i-1].next=childNodeClone),childNodeClone.parent=nodeClone}nodeClone.children=cNodesClone}return nodeClone};return _recursive(node)},Parse5DomAdapter.prototype.getElementsByClassName=function(element,name){return this.querySelectorAll(element,"."+name)},Parse5DomAdapter.prototype.getElementsByTagName=function(element,name){throw _notImplemented("getElementsByTagName")},Parse5DomAdapter.prototype.classList=function(element){var classAttrValue=null,attributes=element.attribs;return attributes&&attributes.hasOwnProperty("class")&&(classAttrValue=attributes.class),classAttrValue?classAttrValue.trim().split(/\s+/g):[]},Parse5DomAdapter.prototype.addClass=function(element,className){var classList=this.classList(element),index=classList.indexOf(className);index==-1&&(classList.push(className),element.attribs.class=element.className=classList.join(" "))},Parse5DomAdapter.prototype.removeClass=function(element,className){var classList=this.classList(element),index=classList.indexOf(className);index>-1&&(classList.splice(index,1),element.attribs.class=element.className=classList.join(" "))},Parse5DomAdapter.prototype.hasClass=function(element,className){return this.classList(element).indexOf(className)>-1},Parse5DomAdapter.prototype.hasStyle=function(element,styleName,styleValue){void 0===styleValue&&(styleValue=null);var value=this.getStyle(element,styleName)||"";return styleValue?value==styleValue:value.length>0},Parse5DomAdapter.prototype._readStyleAttribute=function(element){var styleMap={},attributes=element.attribs;if(attributes&&attributes.hasOwnProperty("style"))for(var styleAttrValue=attributes.style,styleList=styleAttrValue.split(/;+/g),i=0;i<styleList.length;i++)if(styleList[i].length>0){var elems=styleList[i].split(/:+/g);styleMap[elems[0].trim()]=elems[1].trim()}return styleMap},Parse5DomAdapter.prototype._writeStyleAttribute=function(element,styleMap){var styleAttrValue="";for(var key in styleMap){var newValue=styleMap[key];newValue&&(styleAttrValue+=key+":"+styleMap[key]+";")}element.attribs.style=styleAttrValue},Parse5DomAdapter.prototype.setStyle=function(element,styleName,styleValue){var styleMap=this._readStyleAttribute(element);styleMap[styleName]=styleValue,this._writeStyleAttribute(element,styleMap)},Parse5DomAdapter.prototype.removeStyle=function(element,styleName){this.setStyle(element,styleName,null)},Parse5DomAdapter.prototype.getStyle=function(element,styleName){var styleMap=this._readStyleAttribute(element);return styleMap.hasOwnProperty(styleName)?styleMap[styleName]:""},Parse5DomAdapter.prototype.tagName=function(element){return"style"==element.tagName?"STYLE":element.tagName},Parse5DomAdapter.prototype.attributeMap=function(element){for(var res=new Map,elAttrs=treeAdapter.getAttrList(element),i=0;i<elAttrs.length;i++){var attrib=elAttrs[i];res.set(attrib.name,attrib.value)}return res},Parse5DomAdapter.prototype.hasAttribute=function(element,attribute){return element.attribs&&element.attribs.hasOwnProperty(attribute)},Parse5DomAdapter.prototype.hasAttributeNS=function(element,ns,attribute){throw"not implemented"},Parse5DomAdapter.prototype.getAttribute=function(element,attribute){return element.attribs&&element.attribs.hasOwnProperty(attribute)?element.attribs[attribute]:null},Parse5DomAdapter.prototype.getAttributeNS=function(element,ns,attribute){throw"not implemented"},Parse5DomAdapter.prototype.setAttribute=function(element,attribute,value){attribute&&(element.attribs[attribute]=value,"class"===attribute&&(element.className=value))},Parse5DomAdapter.prototype.setAttributeNS=function(element,ns,attribute,value){throw"not implemented"},Parse5DomAdapter.prototype.removeAttribute=function(element,attribute){attribute&&delete element.attribs[attribute]},Parse5DomAdapter.prototype.removeAttributeNS=function(element,ns,name){throw"not implemented"},Parse5DomAdapter.prototype.templateAwareRoot=function(el){return this.isTemplateElement(el)?treeAdapter.getTemplateContent(el):el},Parse5DomAdapter.prototype.createHtmlDocument=function(){var newDoc=treeAdapter.createDocument();newDoc.title="fake title";var head=treeAdapter.createElement("head",null,[]),body=treeAdapter.createElement("body","http://www.w3.org/1999/xhtml",[]);return this.appendChild(newDoc,head),this.appendChild(newDoc,body),newDoc.head=head,newDoc.body=body,newDoc._window={},newDoc},Parse5DomAdapter.prototype.defaultDoc=function(){return defDoc=defDoc||this.createHtmlDocument()},Parse5DomAdapter.prototype.getBoundingClientRect=function(el){return{left:0,top:0,width:0,height:0}},Parse5DomAdapter.prototype.getTitle=function(){return this.defaultDoc().title||""},Parse5DomAdapter.prototype.setTitle=function(newTitle){this.defaultDoc().title=newTitle},Parse5DomAdapter.prototype.isTemplateElement=function(el){return this.isElementNode(el)&&"template"===this.tagName(el)},Parse5DomAdapter.prototype.isTextNode=function(node){return treeAdapter.isTextNode(node)},Parse5DomAdapter.prototype.isCommentNode=function(node){return treeAdapter.isCommentNode(node)},Parse5DomAdapter.prototype.isElementNode=function(node){return!!node&&treeAdapter.isElementNode(node)},Parse5DomAdapter.prototype.hasShadowRoot=function(node){return isPresent(node.shadowRoot)},Parse5DomAdapter.prototype.isShadowRoot=function(node){return this.getShadowRoot(node)==node},Parse5DomAdapter.prototype.importIntoDoc=function(node){return this.clone(node)},Parse5DomAdapter.prototype.adoptNode=function(node){return node},Parse5DomAdapter.prototype.getHref=function(el){return el.href},Parse5DomAdapter.prototype.resolveAndSetHref=function(el,baseUrl,href){null==href?el.href=baseUrl:el.href=baseUrl+"/../"+href},Parse5DomAdapter.prototype._buildRules=function(parsedRules,css){for(var rules=[],i=0;i<parsedRules.length;i++){var parsedRule=parsedRules[i],rule={};if(rule.cssText=css,rule.style={content:"",cssText:""},"rule"==parsedRule.type){if(rule.type=1,rule.selectorText=parsedRule.selectors.join(", ".replace(/\s{2,}/g," ").replace(/\s*~\s*/g," ~ ").replace(/\s*\+\s*/g," + ").replace(/\s*>\s*/g," > ").replace(/\[(\w+)=(\w+)\]/g,'[$1="$2"]')),isBlank(parsedRule.declarations))continue;for(var j=0;j<parsedRule.declarations.length;j++){var declaration=parsedRule.declarations[j];rule.style=declaration.property[declaration.value],rule.style.cssText+=declaration.property+": "+declaration.value+";"}}else"media"==parsedRule.type&&(rule.type=4,rule.media={mediaText:parsedRule.media},parsedRule.rules&&(rule.cssRules=this._buildRules(parsedRule.rules)));rules.push(rule)}return rules},Parse5DomAdapter.prototype.supportsDOMEvents=function(){return!1},Parse5DomAdapter.prototype.supportsNativeShadowDOM=function(){return!1},Parse5DomAdapter.prototype.getGlobalEventTarget=function(target){return"window"==target?this.defaultDoc()._window:"document"==target?this.defaultDoc():"body"==target?this.defaultDoc().body:void 0},Parse5DomAdapter.prototype.getBaseHref=function(){throw"not implemented"},Parse5DomAdapter.prototype.resetBaseElement=function(){throw"not implemented"},Parse5DomAdapter.prototype.getHistory=function(){throw"not implemented"},Parse5DomAdapter.prototype.getLocation=function(){throw"not implemented"},Parse5DomAdapter.prototype.getUserAgent=function(){return"Fake user agent"},Parse5DomAdapter.prototype.getData=function(el,name){return this.getAttribute(el,"data-"+name)},Parse5DomAdapter.prototype.getComputedStyle=function(el){throw"not implemented"},Parse5DomAdapter.prototype.setData=function(el,name,value){this.setAttribute(el,"data-"+name,value)},Parse5DomAdapter.prototype.setGlobalVar=function(path,value){setValueOnPath(_global,path,value)},Parse5DomAdapter.prototype.supportsWebAnimation=function(){return!1},Parse5DomAdapter.prototype.performanceNow=function(){return Date.now()},Parse5DomAdapter.prototype.getAnimationPrefix=function(){return""},Parse5DomAdapter.prototype.getTransitionEnd=function(){return"transitionend"},Parse5DomAdapter.prototype.supportsAnimation=function(){return!0},Parse5DomAdapter.prototype.replaceChild=function(el,newNode,oldNode){throw new Error("not implemented")},Parse5DomAdapter.prototype.parse=function(templateHtml){throw new Error("not implemented")},Parse5DomAdapter.prototype.invoke=function(el,methodName,args){throw new Error("not implemented")},Parse5DomAdapter.prototype.getEventKey=function(event){throw new Error("not implemented")},Parse5DomAdapter.prototype.supportsCookies=function(){return!1},Parse5DomAdapter.prototype.getCookie=function(name){throw new Error("not implemented")},Parse5DomAdapter.prototype.setCookie=function(name,value){throw new Error("not implemented")},Parse5DomAdapter.prototype.animate=function(element,keyframes,options){throw new Error("not implemented")},Parse5DomAdapter}(DomAdapter),_HTMLElementPropertyList=["webkitEntries","incremental","webkitdirectory","selectionDirection","selectionEnd","selectionStart","labels","validationMessage","validity","willValidate","width","valueAsNumber","valueAsDate","value","useMap","defaultValue","type","step","src","size","required","readOnly","placeholder","pattern","name","multiple","min","minLength","maxLength","max","list","indeterminate","height","formTarget","formNoValidate","formMethod","formEnctype","formAction","files","form","disabled","dirName","checked","defaultChecked","autofocus","autocomplete","alt","align","accept","onautocompleteerror","onautocomplete","onwaiting","onvolumechange","ontoggle","ontimeupdate","onsuspend","onsubmit","onstalled","onshow","onselect","onseeking","onseeked","onscroll","onresize","onreset","onratechange","onprogress","onplaying","onplay","onpause","onmousewheel","onmouseup","onmouseover","onmouseout","onmousemove","onmouseleave","onmouseenter","onmousedown","onloadstart","onloadedmetadata","onloadeddata","onload","onkeyup","onkeypress","onkeydown","oninvalid","oninput","onfocus","onerror","onended","onemptied","ondurationchange","ondrop","ondragstart","ondragover","ondragleave","ondragenter","ondragend","ondrag","ondblclick","oncuechange","oncontextmenu","onclose","onclick","onchange","oncanplaythrough","oncanplay","oncancel","onblur","onabort","spellcheck","isContentEditable","contentEditable","outerText","innerText","accessKey","hidden","webkitdropzone","draggable","tabIndex","dir","translate","lang","title","childElementCount","lastElementChild","firstElementChild","children","onwebkitfullscreenerror","onwebkitfullscreenchange","nextElementSibling","previousElementSibling","onwheel","onselectstart","onsearch","onpaste","oncut","oncopy","onbeforepaste","onbeforecut","onbeforecopy","shadowRoot","dataset","classList","className","outerHTML","innerHTML","scrollHeight","scrollWidth","scrollTop","scrollLeft","clientHeight","clientWidth","clientTop","clientLeft","offsetParent","offsetHeight","offsetWidth","offsetTop","offsetLeft","localName","prefix","namespaceURI","id","style","attributes","tagName","parentElement","textContent","baseURI","ownerDocument","nextSibling","previousSibling","lastChild","firstChild","childNodes","parentNode","nodeType","nodeValue","nodeName","closure_lm_714617","__jsaction"],DebugDomRootRenderer=_angular_core.__core_private__.DebugDomRootRenderer,TEMPLATE_COMMENT_TEXT="template bindings={}",TEMPLATE_BINDINGS_EXP=/^template bindings=(.*)$/,ServerRootRenderer=function(){function ServerRootRenderer(document,sharedStylesHost,animationDriver,appId,_zone){this.document=document,this.sharedStylesHost=sharedStylesHost,this.animationDriver=animationDriver,this.appId=appId,this._zone=_zone,this.registeredComponents=new Map}return ServerRootRenderer.prototype.renderComponent=function(componentProto){var renderer=this.registeredComponents.get(componentProto.id);return renderer||(renderer=new ServerRenderer(this,componentProto,this.animationDriver,this.appId+"-"+componentProto.id,this._zone),this.registeredComponents.set(componentProto.id,renderer)),renderer},ServerRootRenderer.decorators=[{type:_angular_core.Injectable}],ServerRootRenderer.ctorParameters=function(){return[{type:void 0,decorators:[{type:_angular_core.Inject,args:[_angular_platformBrowser.DOCUMENT]}]},{type:SharedStylesHost},{type:_angular_platformBrowser.AnimationDriver},{type:void 0,decorators:[{type:_angular_core.Inject,args:[_angular_core.APP_ID]}]},{type:_angular_core.NgZone}]},ServerRootRenderer}(),ServerRenderer=function(){function ServerRenderer(_rootRenderer,componentProto,_animationDriver,styleShimId,_zone){if(this._rootRenderer=_rootRenderer,this.componentProto=componentProto,this._animationDriver=_animationDriver,this._zone=_zone,this._styles=flattenStyles(styleShimId,componentProto.styles,[]),componentProto.encapsulation===_angular_core.ViewEncapsulation.Native)throw new Error("Native encapsulation is not supported on the server!");this.componentProto.encapsulation===_angular_core.ViewEncapsulation.Emulated?(this._contentAttr=shimContentAttribute(styleShimId),this._hostAttr=shimHostAttribute(styleShimId)):(this._contentAttr=null,this._hostAttr=null)}return ServerRenderer.prototype.selectRootElement=function(selectorOrNode,debugInfo){var el;if("string"==typeof selectorOrNode){if(el=getDOM().querySelector(this._rootRenderer.document,selectorOrNode),isBlank(el))throw new Error('The selector "'+selectorOrNode+'" did not match any elements')}else el=selectorOrNode;return getDOM().clearNodes(el),el},ServerRenderer.prototype.createElement=function(parent,name,debugInfo){var el;if(isNamespaced(name)){var nsAndName=splitNamespace(name);el=getDOM().createElementNS(NAMESPACE_URIS[nsAndName[0]],nsAndName[1])}else el=getDOM().createElement(name);return isPresent(this._contentAttr)&&getDOM().setAttribute(el,this._contentAttr,""),isPresent(parent)&&getDOM().appendChild(parent,el),el},ServerRenderer.prototype.createViewRoot=function(hostElement){var nodesParent;return isPresent(this._hostAttr)&&getDOM().setAttribute(hostElement,this._hostAttr,""),nodesParent=hostElement},ServerRenderer.prototype.createTemplateAnchor=function(parentElement,debugInfo){var comment=getDOM().createComment(TEMPLATE_COMMENT_TEXT);return isPresent(parentElement)&&getDOM().appendChild(parentElement,comment),comment},ServerRenderer.prototype.createText=function(parentElement,value,debugInfo){var node=getDOM().createTextNode(value);return isPresent(parentElement)&&getDOM().appendChild(parentElement,node),node},ServerRenderer.prototype.projectNodes=function(parentElement,nodes){isBlank(parentElement)||appendNodes(parentElement,nodes)},ServerRenderer.prototype.attachViewAfter=function(node,viewRootNodes){moveNodesAfterSibling(node,viewRootNodes)},ServerRenderer.prototype.detachView=function(viewRootNodes){for(var i=0;i<viewRootNodes.length;i++)getDOM().remove(viewRootNodes[i])},ServerRenderer.prototype.destroyView=function(hostElement,viewAllNodes){},ServerRenderer.prototype.listen=function(renderElement,name,callback){var _this=this,outsideHandler=function(event){return _this._zone.runGuarded(function(){return callback(event)})};return this._zone.runOutsideAngular(function(){return getDOM().onAndCancel(renderElement,name,outsideHandler)})},ServerRenderer.prototype.listenGlobal=function(target,name,callback){var renderElement=getDOM().getGlobalEventTarget(target);return this.listen(renderElement,name,callback)},ServerRenderer.prototype.setElementProperty=function(renderElement,propertyName,propertyValue){getDOM().setProperty(renderElement,propertyName,propertyValue)},ServerRenderer.prototype.setElementAttribute=function(renderElement,attributeName,attributeValue){var attrNs,attrNameWithoutNs=attributeName;if(isNamespaced(attributeName)){var nsAndName=splitNamespace(attributeName);attrNameWithoutNs=nsAndName[1],attributeName=nsAndName[0]+":"+nsAndName[1],attrNs=NAMESPACE_URIS[nsAndName[0]]}isPresent(attributeValue)?isPresent(attrNs)?getDOM().setAttributeNS(renderElement,attrNs,attributeName,attributeValue):getDOM().setAttribute(renderElement,attributeName,attributeValue):isPresent(attrNs)?getDOM().removeAttributeNS(renderElement,attrNs,attrNameWithoutNs):getDOM().removeAttribute(renderElement,attributeName)},ServerRenderer.prototype.setBindingDebugInfo=function(renderElement,propertyName,propertyValue){if(getDOM().isCommentNode(renderElement)){var existingBindings=getDOM().getText(renderElement).replace(/\n/g,"").match(TEMPLATE_BINDINGS_EXP),parsedBindings=JSON.parse(existingBindings[1]);parsedBindings[propertyName]=propertyValue,getDOM().setText(renderElement,TEMPLATE_COMMENT_TEXT.replace("{}",JSON.stringify(parsedBindings,null,2)))}else this.setElementAttribute(renderElement,propertyName,propertyValue)},ServerRenderer.prototype.setElementClass=function(renderElement,className,isAdd){isAdd?getDOM().addClass(renderElement,className):getDOM().removeClass(renderElement,className)},ServerRenderer.prototype.setElementStyle=function(renderElement,styleName,styleValue){isPresent(styleValue)?getDOM().setStyle(renderElement,styleName,stringify(styleValue)):getDOM().removeStyle(renderElement,styleName)},ServerRenderer.prototype.invokeElementMethod=function(renderElement,methodName,args){getDOM().invoke(renderElement,methodName,args)},ServerRenderer.prototype.setText=function(renderNode,text){getDOM().setText(renderNode,text)},ServerRenderer.prototype.animate=function(element,startingStyles,keyframes,duration,delay,easing,previousPlayers){return void 0===previousPlayers&&(previousPlayers=[]),this._animationDriver.animate(element,startingStyles,keyframes,duration,delay,easing,previousPlayers)},ServerRenderer}(),__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 __)},ServerPlatformLocation=function(_super){function ServerPlatformLocation(){_super.apply(this,arguments)}return __extends(ServerPlatformLocation,_super),ServerPlatformLocation.prototype.getBaseHrefFromDOM=function(){throw notSupported("getBaseHrefFromDOM")},ServerPlatformLocation.prototype.onPopState=function(fn){notSupported("onPopState")},ServerPlatformLocation.prototype.onHashChange=function(fn){notSupported("onHashChange")},Object.defineProperty(ServerPlatformLocation.prototype,"pathname",{get:function(){throw notSupported("pathname")},enumerable:!0,configurable:!0}),Object.defineProperty(ServerPlatformLocation.prototype,"search",{get:function(){throw notSupported("search")},enumerable:!0,configurable:!0}),Object.defineProperty(ServerPlatformLocation.prototype,"hash",{get:function(){throw notSupported("hash")},enumerable:!0,configurable:!0}),ServerPlatformLocation.prototype.replaceState=function(state,title,url){notSupported("replaceState")},ServerPlatformLocation.prototype.pushState=function(state,title,url){notSupported("pushState")},ServerPlatformLocation.prototype.forward=function(){notSupported("forward")},ServerPlatformLocation.prototype.back=function(){notSupported("back")},ServerPlatformLocation}(_angular_common.PlatformLocation),INTERNAL_SERVER_PLATFORM_PROVIDERS=[{provide:_angular_core.PLATFORM_INITIALIZER,useValue:initParse5Adapter,multi:!0},{provide:_angular_common.PlatformLocation,useClass:ServerPlatformLocation}],SERVER_RENDER_PROVIDERS=[ServerRootRenderer,{provide:_angular_core.RootRenderer,useFactory:_createConditionalRootRenderer,deps:[ServerRootRenderer]},SharedStylesHost],ServerModule=function(){function ServerModule(){}return ServerModule.decorators=[{type:_angular_core.NgModule,args:[{exports:[_angular_platformBrowser.BrowserModule],providers:SERVER_RENDER_PROVIDERS}]}],ServerModule.ctorParameters=function(){return[]},ServerModule}(),platformServer=_angular_core.createPlatformFactory(_angular_core.platformCore,"server",INTERNAL_SERVER_PLATFORM_PROVIDERS),platformDynamicServer=_angular_core.createPlatformFactory(_angular_compiler.platformCoreDynamic,"serverDynamic",INTERNAL_SERVER_PLATFORM_PROVIDERS),__platform_server_private__={INTERNAL_SERVER_PLATFORM_PROVIDERS:INTERNAL_SERVER_PLATFORM_PROVIDERS,SERVER_RENDER_PROVIDERS:SERVER_RENDER_PROVIDERS},VERSION=new _angular_core.Version("4.0.0-beta.2");exports.ServerModule=ServerModule,exports.platformDynamicServer=platformDynamicServer,exports.platformServer=platformServer,exports.VERSION=VERSION,exports.__platform_server_private__=__platform_server_private__});
var globalScope;globalScope="undefined"==typeof window?"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:global:window;var _global=globalScope;_global.assert=function(condition){};var treeAdapter,ListWrapper=function(){function ListWrapper(){}return ListWrapper.findLast=function(arr,condition){for(var i=arr.length-1;i>=0;i--)if(condition(arr[i]))return arr[i];return null},ListWrapper.removeAll=function(list,items){for(var i=0;i<items.length;++i){var index=list.indexOf(items[i]);index>-1&&list.splice(index,1)}},ListWrapper.remove=function(list,el){var index=list.indexOf(el);return index>-1&&(list.splice(index,1),!0)},ListWrapper.equals=function(a,b){if(a.length!=b.length)return!1;for(var i=0;i<a.length;++i)if(a[i]!==b[i])return!1;return!0},ListWrapper.flatten=function(list){return list.reduce(function(flat,item){var flatItem=Array.isArray(item)?ListWrapper.flatten(item):item;return flat.concat(flatItem)},[])},ListWrapper}(),DomAdapter=_angular_platformBrowser.__platform_browser_private__.DomAdapter,setRootDomAdapter=_angular_platformBrowser.__platform_browser_private__.setRootDomAdapter,getDOM=_angular_platformBrowser.__platform_browser_private__.getDOM,SharedStylesHost=_angular_platformBrowser.__platform_browser_private__.SharedStylesHost,NAMESPACE_URIS=_angular_platformBrowser.__platform_browser_private__.NAMESPACE_URIS,shimContentAttribute=_angular_platformBrowser.__platform_browser_private__.shimContentAttribute,shimHostAttribute=_angular_platformBrowser.__platform_browser_private__.shimHostAttribute,flattenStyles=_angular_platformBrowser.__platform_browser_private__.flattenStyles,splitNamespace=_angular_platformBrowser.__platform_browser_private__.splitNamespace,isNamespaced=_angular_platformBrowser.__platform_browser_private__.isNamespaced,__extends$1=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 __)},parse5=require("parse5"),_attrToPropMap={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},defDoc=null,mapProps=["attribs","x-attribsNamespace","x-attribsPrefix"],Parse5DomAdapter=function(_super){function Parse5DomAdapter(){_super.apply(this,arguments)}return __extends$1(Parse5DomAdapter,_super),Parse5DomAdapter.makeCurrent=function(){treeAdapter=parse5.treeAdapters.htmlparser2,setRootDomAdapter(new Parse5DomAdapter)},Parse5DomAdapter.prototype.hasProperty=function(element,name){return _HTMLElementPropertyList.indexOf(name)>-1},Parse5DomAdapter.prototype.setProperty=function(el,name,value){"innerHTML"===name?this.setInnerHTML(el,value):"className"===name?el.attribs.class=el.className=value:el[name]=value},Parse5DomAdapter.prototype.getProperty=function(el,name){return el[name]},Parse5DomAdapter.prototype.logError=function(error){console.error(error)},Parse5DomAdapter.prototype.log=function(error){console.log(error)},Parse5DomAdapter.prototype.logGroup=function(error){console.error(error)},Parse5DomAdapter.prototype.logGroupEnd=function(){},Object.defineProperty(Parse5DomAdapter.prototype,"attrToPropMap",{get:function(){return _attrToPropMap},enumerable:!0,configurable:!0}),Parse5DomAdapter.prototype.query=function(selector){throw _notImplemented("query")},Parse5DomAdapter.prototype.querySelector=function(el,selector){return this.querySelectorAll(el,selector)[0]},Parse5DomAdapter.prototype.querySelectorAll=function(el,selector){var _this=this,res=[],_recursive=function(result,node,selector,matcher){var cNodes=node.childNodes;if(cNodes&&cNodes.length>0)for(var i=0;i<cNodes.length;i++){var childNode=cNodes[i];_this.elementMatches(childNode,selector,matcher)&&result.push(childNode),_recursive(result,childNode,selector,matcher)}},matcher=new _angular_compiler.SelectorMatcher;return matcher.addSelectables(_angular_compiler.CssSelector.parse(selector)),_recursive(res,el,selector,matcher),res},Parse5DomAdapter.prototype.elementMatches=function(node,selector,matcher){if(void 0===matcher&&(matcher=null),this.isElementNode(node)&&"*"===selector)return!0;var result=!1;if(selector&&"#"==selector.charAt(0))result=this.getAttribute(node,"id")==selector.substring(1);else if(selector){matcher||(matcher=new _angular_compiler.SelectorMatcher,matcher.addSelectables(_angular_compiler.CssSelector.parse(selector)));var cssSelector=new _angular_compiler.CssSelector;if(cssSelector.setElement(this.tagName(node)),node.attribs)for(var attrName in node.attribs)cssSelector.addAttribute(attrName,node.attribs[attrName]);for(var classList=this.classList(node),i=0;i<classList.length;i++)cssSelector.addClassName(classList[i]);matcher.match(cssSelector,function(selector,cb){result=!0})}return result},Parse5DomAdapter.prototype.on=function(el,evt,listener){var listenersMap=el._eventListenersMap;listenersMap||(listenersMap={},el._eventListenersMap=listenersMap);var listeners=listenersMap[evt]||[];listenersMap[evt]=listeners.concat([listener])},Parse5DomAdapter.prototype.onAndCancel=function(el,evt,listener){return this.on(el,evt,listener),function(){ListWrapper.remove(el._eventListenersMap[evt],listener)}},Parse5DomAdapter.prototype.dispatchEvent=function(el,evt){if(evt.target||(evt.target=el),el._eventListenersMap){var listeners=el._eventListenersMap[evt.type];if(listeners)for(var i=0;i<listeners.length;i++)listeners[i](evt)}el.parent&&this.dispatchEvent(el.parent,evt),el._window&&this.dispatchEvent(el._window,evt)},Parse5DomAdapter.prototype.createMouseEvent=function(eventType){return this.createEvent(eventType)},Parse5DomAdapter.prototype.createEvent=function(eventType){var event={type:eventType,defaultPrevented:!1,preventDefault:function(){event.defaultPrevented=!0}};return event},Parse5DomAdapter.prototype.preventDefault=function(event){event.returnValue=!1},Parse5DomAdapter.prototype.isPrevented=function(event){return isPresent(event.returnValue)&&!event.returnValue},Parse5DomAdapter.prototype.getInnerHTML=function(el){return parse5.serialize(this.templateAwareRoot(el),{treeAdapter:treeAdapter})},Parse5DomAdapter.prototype.getTemplateContent=function(el){return null},Parse5DomAdapter.prototype.getOuterHTML=function(el){var fragment=treeAdapter.createDocumentFragment();return this.appendChild(fragment,el),parse5.serialize(fragment,{treeAdapter:treeAdapter})},Parse5DomAdapter.prototype.nodeName=function(node){return node.tagName},Parse5DomAdapter.prototype.nodeValue=function(node){return node.nodeValue},Parse5DomAdapter.prototype.type=function(node){throw _notImplemented("type")},Parse5DomAdapter.prototype.content=function(node){return node.childNodes[0]},Parse5DomAdapter.prototype.firstChild=function(el){return el.firstChild},Parse5DomAdapter.prototype.nextSibling=function(el){return el.nextSibling},Parse5DomAdapter.prototype.parentElement=function(el){return el.parent},Parse5DomAdapter.prototype.childNodes=function(el){return el.childNodes},Parse5DomAdapter.prototype.childNodesAsList=function(el){for(var childNodes=el.childNodes,res=new Array(childNodes.length),i=0;i<childNodes.length;i++)res[i]=childNodes[i];return res},Parse5DomAdapter.prototype.clearNodes=function(el){for(;el.childNodes.length>0;)this.remove(el.childNodes[0])},Parse5DomAdapter.prototype.appendChild=function(el,node){this.remove(node),treeAdapter.appendChild(this.templateAwareRoot(el),node)},Parse5DomAdapter.prototype.removeChild=function(el,node){el.childNodes.indexOf(node)>-1&&this.remove(node)},Parse5DomAdapter.prototype.remove=function(el){var parent=el.parent;if(parent){var index=parent.childNodes.indexOf(el);parent.childNodes.splice(index,1)}var prev=el.previousSibling,next=el.nextSibling;return prev&&(prev.next=next),next&&(next.prev=prev),el.prev=null,el.next=null,el.parent=null,el},Parse5DomAdapter.prototype.insertBefore=function(el,node){this.remove(node),treeAdapter.insertBefore(el.parent,node,el)},Parse5DomAdapter.prototype.insertAllBefore=function(el,nodes){var _this=this;nodes.forEach(function(n){return _this.insertBefore(el,n)})},Parse5DomAdapter.prototype.insertAfter=function(el,node){el.nextSibling?this.insertBefore(el.nextSibling,node):this.appendChild(el.parent,node)},Parse5DomAdapter.prototype.setInnerHTML=function(el,value){this.clearNodes(el);for(var content=parse5.parseFragment(value,{treeAdapter:treeAdapter}),i=0;i<content.childNodes.length;i++)treeAdapter.appendChild(el,content.childNodes[i])},Parse5DomAdapter.prototype.getText=function(el,isRecursive){if(this.isTextNode(el))return el.data;if(this.isCommentNode(el))return isRecursive?"":el.data;if(!el.childNodes||0==el.childNodes.length)return"";for(var textContent="",i=0;i<el.childNodes.length;i++)textContent+=this.getText(el.childNodes[i],!0);return textContent},Parse5DomAdapter.prototype.setText=function(el,value){this.isTextNode(el)||this.isCommentNode(el)?el.data=value:(this.clearNodes(el),""!==value&&treeAdapter.insertText(el,value))},Parse5DomAdapter.prototype.getValue=function(el){return el.value},Parse5DomAdapter.prototype.setValue=function(el,value){el.value=value},Parse5DomAdapter.prototype.getChecked=function(el){return el.checked},Parse5DomAdapter.prototype.setChecked=function(el,value){el.checked=value},Parse5DomAdapter.prototype.createComment=function(text){return treeAdapter.createCommentNode(text)},Parse5DomAdapter.prototype.createTemplate=function(html){var template=treeAdapter.createElement("template","http://www.w3.org/1999/xhtml",[]),content=parse5.parseFragment(html,{treeAdapter:treeAdapter});return treeAdapter.setTemplateContent(template,content),template},Parse5DomAdapter.prototype.createElement=function(tagName){return treeAdapter.createElement(tagName,"http://www.w3.org/1999/xhtml",[])},Parse5DomAdapter.prototype.createElementNS=function(ns,tagName){return treeAdapter.createElement(tagName,ns,[])},Parse5DomAdapter.prototype.createTextNode=function(text){var t=this.createComment(text);return t.type="text",t},Parse5DomAdapter.prototype.createScriptTag=function(attrName,attrValue){return treeAdapter.createElement("script","http://www.w3.org/1999/xhtml",[{name:attrName,value:attrValue}])},Parse5DomAdapter.prototype.createStyleElement=function(css){var style=this.createElement("style");return this.setText(style,css),style},Parse5DomAdapter.prototype.createShadowRoot=function(el){return el.shadowRoot=treeAdapter.createDocumentFragment(),el.shadowRoot.parent=el,el.shadowRoot},Parse5DomAdapter.prototype.getShadowRoot=function(el){return el.shadowRoot},Parse5DomAdapter.prototype.getHost=function(el){return el.host},Parse5DomAdapter.prototype.getDistributedNodes=function(el){throw _notImplemented("getDistributedNodes")},Parse5DomAdapter.prototype.clone=function(node){var _recursive=function(node){var nodeClone=Object.create(Object.getPrototypeOf(node));for(var prop in node){var desc=Object.getOwnPropertyDescriptor(node,prop);desc&&"value"in desc&&"object"!=typeof desc.value&&(nodeClone[prop]=node[prop])}nodeClone.parent=null,nodeClone.prev=null,nodeClone.next=null,nodeClone.children=null,mapProps.forEach(function(mapName){if(isPresent(node[mapName])){nodeClone[mapName]={};for(var prop in node[mapName])nodeClone[mapName][prop]=node[mapName][prop]}});var cNodes=node.children;if(cNodes){for(var cNodesClone=new Array(cNodes.length),i=0;i<cNodes.length;i++){var childNode=cNodes[i],childNodeClone=_recursive(childNode);cNodesClone[i]=childNodeClone,i>0&&(childNodeClone.prev=cNodesClone[i-1],cNodesClone[i-1].next=childNodeClone),childNodeClone.parent=nodeClone}nodeClone.children=cNodesClone}return nodeClone};return _recursive(node)},Parse5DomAdapter.prototype.getElementsByClassName=function(element,name){return this.querySelectorAll(element,"."+name)},Parse5DomAdapter.prototype.getElementsByTagName=function(element,name){throw _notImplemented("getElementsByTagName")},Parse5DomAdapter.prototype.classList=function(element){var classAttrValue=null,attributes=element.attribs;return attributes&&attributes.hasOwnProperty("class")&&(classAttrValue=attributes.class),classAttrValue?classAttrValue.trim().split(/\s+/g):[]},Parse5DomAdapter.prototype.addClass=function(element,className){var classList=this.classList(element),index=classList.indexOf(className);index==-1&&(classList.push(className),element.attribs.class=element.className=classList.join(" "))},Parse5DomAdapter.prototype.removeClass=function(element,className){var classList=this.classList(element),index=classList.indexOf(className);index>-1&&(classList.splice(index,1),element.attribs.class=element.className=classList.join(" "))},Parse5DomAdapter.prototype.hasClass=function(element,className){return this.classList(element).indexOf(className)>-1},Parse5DomAdapter.prototype.hasStyle=function(element,styleName,styleValue){void 0===styleValue&&(styleValue=null);var value=this.getStyle(element,styleName)||"";return styleValue?value==styleValue:value.length>0},Parse5DomAdapter.prototype._readStyleAttribute=function(element){var styleMap={},attributes=element.attribs;if(attributes&&attributes.hasOwnProperty("style"))for(var styleAttrValue=attributes.style,styleList=styleAttrValue.split(/;+/g),i=0;i<styleList.length;i++)if(styleList[i].length>0){var elems=styleList[i].split(/:+/g);styleMap[elems[0].trim()]=elems[1].trim()}return styleMap},Parse5DomAdapter.prototype._writeStyleAttribute=function(element,styleMap){var styleAttrValue="";for(var key in styleMap){var newValue=styleMap[key];newValue&&(styleAttrValue+=key+":"+styleMap[key]+";")}element.attribs.style=styleAttrValue},Parse5DomAdapter.prototype.setStyle=function(element,styleName,styleValue){var styleMap=this._readStyleAttribute(element);styleMap[styleName]=styleValue,this._writeStyleAttribute(element,styleMap)},Parse5DomAdapter.prototype.removeStyle=function(element,styleName){this.setStyle(element,styleName,null)},Parse5DomAdapter.prototype.getStyle=function(element,styleName){var styleMap=this._readStyleAttribute(element);return styleMap.hasOwnProperty(styleName)?styleMap[styleName]:""},Parse5DomAdapter.prototype.tagName=function(element){return"style"==element.tagName?"STYLE":element.tagName},Parse5DomAdapter.prototype.attributeMap=function(element){for(var res=new Map,elAttrs=treeAdapter.getAttrList(element),i=0;i<elAttrs.length;i++){var attrib=elAttrs[i];res.set(attrib.name,attrib.value)}return res},Parse5DomAdapter.prototype.hasAttribute=function(element,attribute){return element.attribs&&element.attribs.hasOwnProperty(attribute)},Parse5DomAdapter.prototype.hasAttributeNS=function(element,ns,attribute){throw"not implemented"},Parse5DomAdapter.prototype.getAttribute=function(element,attribute){return element.attribs&&element.attribs.hasOwnProperty(attribute)?element.attribs[attribute]:null},Parse5DomAdapter.prototype.getAttributeNS=function(element,ns,attribute){throw"not implemented"},Parse5DomAdapter.prototype.setAttribute=function(element,attribute,value){attribute&&(element.attribs[attribute]=value,"class"===attribute&&(element.className=value))},Parse5DomAdapter.prototype.setAttributeNS=function(element,ns,attribute,value){throw"not implemented"},Parse5DomAdapter.prototype.removeAttribute=function(element,attribute){attribute&&delete element.attribs[attribute]},Parse5DomAdapter.prototype.removeAttributeNS=function(element,ns,name){throw"not implemented"},Parse5DomAdapter.prototype.templateAwareRoot=function(el){return this.isTemplateElement(el)?treeAdapter.getTemplateContent(el):el},Parse5DomAdapter.prototype.createHtmlDocument=function(){var newDoc=treeAdapter.createDocument();newDoc.title="fake title";var head=treeAdapter.createElement("head",null,[]),body=treeAdapter.createElement("body","http://www.w3.org/1999/xhtml",[]);return this.appendChild(newDoc,head),this.appendChild(newDoc,body),newDoc.head=head,newDoc.body=body,newDoc._window={},newDoc},Parse5DomAdapter.prototype.defaultDoc=function(){return defDoc=defDoc||this.createHtmlDocument()},Parse5DomAdapter.prototype.getBoundingClientRect=function(el){return{left:0,top:0,width:0,height:0}},Parse5DomAdapter.prototype.getTitle=function(){return this.defaultDoc().title||""},Parse5DomAdapter.prototype.setTitle=function(newTitle){this.defaultDoc().title=newTitle},Parse5DomAdapter.prototype.isTemplateElement=function(el){return this.isElementNode(el)&&"template"===this.tagName(el)},Parse5DomAdapter.prototype.isTextNode=function(node){return treeAdapter.isTextNode(node)},Parse5DomAdapter.prototype.isCommentNode=function(node){return treeAdapter.isCommentNode(node)},Parse5DomAdapter.prototype.isElementNode=function(node){return!!node&&treeAdapter.isElementNode(node)},Parse5DomAdapter.prototype.hasShadowRoot=function(node){return isPresent(node.shadowRoot)},Parse5DomAdapter.prototype.isShadowRoot=function(node){return this.getShadowRoot(node)==node},Parse5DomAdapter.prototype.importIntoDoc=function(node){return this.clone(node)},Parse5DomAdapter.prototype.adoptNode=function(node){return node},Parse5DomAdapter.prototype.getHref=function(el){return el.href},Parse5DomAdapter.prototype.resolveAndSetHref=function(el,baseUrl,href){null==href?el.href=baseUrl:el.href=baseUrl+"/../"+href},Parse5DomAdapter.prototype._buildRules=function(parsedRules,css){for(var rules=[],i=0;i<parsedRules.length;i++){var parsedRule=parsedRules[i],rule={};if(rule.cssText=css,rule.style={content:"",cssText:""},"rule"==parsedRule.type){if(rule.type=1,rule.selectorText=parsedRule.selectors.join(", ".replace(/\s{2,}/g," ").replace(/\s*~\s*/g," ~ ").replace(/\s*\+\s*/g," + ").replace(/\s*>\s*/g," > ").replace(/\[(\w+)=(\w+)\]/g,'[$1="$2"]')),isBlank(parsedRule.declarations))continue;for(var j=0;j<parsedRule.declarations.length;j++){var declaration=parsedRule.declarations[j];rule.style=declaration.property[declaration.value],rule.style.cssText+=declaration.property+": "+declaration.value+";"}}else"media"==parsedRule.type&&(rule.type=4,rule.media={mediaText:parsedRule.media},parsedRule.rules&&(rule.cssRules=this._buildRules(parsedRule.rules)));rules.push(rule)}return rules},Parse5DomAdapter.prototype.supportsDOMEvents=function(){return!1},Parse5DomAdapter.prototype.supportsNativeShadowDOM=function(){return!1},Parse5DomAdapter.prototype.getGlobalEventTarget=function(target){return"window"==target?this.defaultDoc()._window:"document"==target?this.defaultDoc():"body"==target?this.defaultDoc().body:void 0},Parse5DomAdapter.prototype.getBaseHref=function(){throw"not implemented"},Parse5DomAdapter.prototype.resetBaseElement=function(){throw"not implemented"},Parse5DomAdapter.prototype.getHistory=function(){throw"not implemented"},Parse5DomAdapter.prototype.getLocation=function(){throw"not implemented"},Parse5DomAdapter.prototype.getUserAgent=function(){return"Fake user agent"},Parse5DomAdapter.prototype.getData=function(el,name){return this.getAttribute(el,"data-"+name)},Parse5DomAdapter.prototype.getComputedStyle=function(el){throw"not implemented"},Parse5DomAdapter.prototype.setData=function(el,name,value){this.setAttribute(el,"data-"+name,value)},Parse5DomAdapter.prototype.setGlobalVar=function(path,value){setValueOnPath(_global,path,value)},Parse5DomAdapter.prototype.supportsWebAnimation=function(){return!1},Parse5DomAdapter.prototype.performanceNow=function(){return Date.now()},Parse5DomAdapter.prototype.getAnimationPrefix=function(){return""},Parse5DomAdapter.prototype.getTransitionEnd=function(){return"transitionend"},Parse5DomAdapter.prototype.supportsAnimation=function(){return!0},Parse5DomAdapter.prototype.replaceChild=function(el,newNode,oldNode){throw new Error("not implemented")},Parse5DomAdapter.prototype.parse=function(templateHtml){throw new Error("not implemented")},Parse5DomAdapter.prototype.invoke=function(el,methodName,args){throw new Error("not implemented")},Parse5DomAdapter.prototype.getEventKey=function(event){throw new Error("not implemented")},Parse5DomAdapter.prototype.supportsCookies=function(){return!1},Parse5DomAdapter.prototype.getCookie=function(name){throw new Error("not implemented")},Parse5DomAdapter.prototype.setCookie=function(name,value){throw new Error("not implemented")},Parse5DomAdapter.prototype.animate=function(element,keyframes,options){throw new Error("not implemented")},Parse5DomAdapter}(DomAdapter),_HTMLElementPropertyList=["webkitEntries","incremental","webkitdirectory","selectionDirection","selectionEnd","selectionStart","labels","validationMessage","validity","willValidate","width","valueAsNumber","valueAsDate","value","useMap","defaultValue","type","step","src","size","required","readOnly","placeholder","pattern","name","multiple","min","minLength","maxLength","max","list","indeterminate","height","formTarget","formNoValidate","formMethod","formEnctype","formAction","files","form","disabled","dirName","checked","defaultChecked","autofocus","autocomplete","alt","align","accept","onautocompleteerror","onautocomplete","onwaiting","onvolumechange","ontoggle","ontimeupdate","onsuspend","onsubmit","onstalled","onshow","onselect","onseeking","onseeked","onscroll","onresize","onreset","onratechange","onprogress","onplaying","onplay","onpause","onmousewheel","onmouseup","onmouseover","onmouseout","onmousemove","onmouseleave","onmouseenter","onmousedown","onloadstart","onloadedmetadata","onloadeddata","onload","onkeyup","onkeypress","onkeydown","oninvalid","oninput","onfocus","onerror","onended","onemptied","ondurationchange","ondrop","ondragstart","ondragover","ondragleave","ondragenter","ondragend","ondrag","ondblclick","oncuechange","oncontextmenu","onclose","onclick","onchange","oncanplaythrough","oncanplay","oncancel","onblur","onabort","spellcheck","isContentEditable","contentEditable","outerText","innerText","accessKey","hidden","webkitdropzone","draggable","tabIndex","dir","translate","lang","title","childElementCount","lastElementChild","firstElementChild","children","onwebkitfullscreenerror","onwebkitfullscreenchange","nextElementSibling","previousElementSibling","onwheel","onselectstart","onsearch","onpaste","oncut","oncopy","onbeforepaste","onbeforecut","onbeforecopy","shadowRoot","dataset","classList","className","outerHTML","innerHTML","scrollHeight","scrollWidth","scrollTop","scrollLeft","clientHeight","clientWidth","clientTop","clientLeft","offsetParent","offsetHeight","offsetWidth","offsetTop","offsetLeft","localName","prefix","namespaceURI","id","style","attributes","tagName","parentElement","textContent","baseURI","ownerDocument","nextSibling","previousSibling","lastChild","firstChild","childNodes","parentNode","nodeType","nodeValue","nodeName","closure_lm_714617","__jsaction"],DebugDomRootRenderer=_angular_core.__core_private__.DebugDomRootRenderer,TEMPLATE_COMMENT_TEXT="template bindings={}",TEMPLATE_BINDINGS_EXP=/^template bindings=(.*)$/,ServerRootRenderer=function(){function ServerRootRenderer(document,sharedStylesHost,animationDriver,appId,_zone){this.document=document,this.sharedStylesHost=sharedStylesHost,this.animationDriver=animationDriver,this.appId=appId,this._zone=_zone,this.registeredComponents=new Map}return ServerRootRenderer.prototype.renderComponent=function(componentProto){var renderer=this.registeredComponents.get(componentProto.id);return renderer||(renderer=new ServerRenderer(this,componentProto,this.animationDriver,this.appId+"-"+componentProto.id,this._zone),this.registeredComponents.set(componentProto.id,renderer)),renderer},ServerRootRenderer.decorators=[{type:_angular_core.Injectable}],ServerRootRenderer.ctorParameters=function(){return[{type:void 0,decorators:[{type:_angular_core.Inject,args:[_angular_platformBrowser.DOCUMENT]}]},{type:SharedStylesHost},{type:_angular_platformBrowser.AnimationDriver},{type:void 0,decorators:[{type:_angular_core.Inject,args:[_angular_core.APP_ID]}]},{type:_angular_core.NgZone}]},ServerRootRenderer}(),ServerRenderer=function(){function ServerRenderer(_rootRenderer,componentProto,_animationDriver,styleShimId,_zone){if(this._rootRenderer=_rootRenderer,this.componentProto=componentProto,this._animationDriver=_animationDriver,this._zone=_zone,this._styles=flattenStyles(styleShimId,componentProto.styles,[]),componentProto.encapsulation===_angular_core.ViewEncapsulation.Native)throw new Error("Native encapsulation is not supported on the server!");this.componentProto.encapsulation===_angular_core.ViewEncapsulation.Emulated?(this._contentAttr=shimContentAttribute(styleShimId),this._hostAttr=shimHostAttribute(styleShimId)):(this._contentAttr=null,this._hostAttr=null)}return ServerRenderer.prototype.selectRootElement=function(selectorOrNode,debugInfo){var el;if("string"==typeof selectorOrNode){if(el=getDOM().querySelector(this._rootRenderer.document,selectorOrNode),isBlank(el))throw new Error('The selector "'+selectorOrNode+'" did not match any elements')}else el=selectorOrNode;return getDOM().clearNodes(el),el},ServerRenderer.prototype.createElement=function(parent,name,debugInfo){var el;if(isNamespaced(name)){var nsAndName=splitNamespace(name);el=getDOM().createElementNS(NAMESPACE_URIS[nsAndName[0]],nsAndName[1])}else el=getDOM().createElement(name);return isPresent(this._contentAttr)&&getDOM().setAttribute(el,this._contentAttr,""),isPresent(parent)&&getDOM().appendChild(parent,el),el},ServerRenderer.prototype.createViewRoot=function(hostElement){var nodesParent;return isPresent(this._hostAttr)&&getDOM().setAttribute(hostElement,this._hostAttr,""),nodesParent=hostElement},ServerRenderer.prototype.createTemplateAnchor=function(parentElement,debugInfo){var comment=getDOM().createComment(TEMPLATE_COMMENT_TEXT);return isPresent(parentElement)&&getDOM().appendChild(parentElement,comment),comment},ServerRenderer.prototype.createText=function(parentElement,value,debugInfo){var node=getDOM().createTextNode(value);return isPresent(parentElement)&&getDOM().appendChild(parentElement,node),node},ServerRenderer.prototype.projectNodes=function(parentElement,nodes){isBlank(parentElement)||appendNodes(parentElement,nodes)},ServerRenderer.prototype.attachViewAfter=function(node,viewRootNodes){moveNodesAfterSibling(node,viewRootNodes)},ServerRenderer.prototype.detachView=function(viewRootNodes){for(var i=0;i<viewRootNodes.length;i++)getDOM().remove(viewRootNodes[i])},ServerRenderer.prototype.destroyView=function(hostElement,viewAllNodes){},ServerRenderer.prototype.listen=function(renderElement,name,callback){var _this=this,outsideHandler=function(event){return _this._zone.runGuarded(function(){return callback(event)})};return this._zone.runOutsideAngular(function(){return getDOM().onAndCancel(renderElement,name,outsideHandler)})},ServerRenderer.prototype.listenGlobal=function(target,name,callback){var renderElement=getDOM().getGlobalEventTarget(target);return this.listen(renderElement,name,callback)},ServerRenderer.prototype.setElementProperty=function(renderElement,propertyName,propertyValue){getDOM().setProperty(renderElement,propertyName,propertyValue)},ServerRenderer.prototype.setElementAttribute=function(renderElement,attributeName,attributeValue){var attrNs,attrNameWithoutNs=attributeName;if(isNamespaced(attributeName)){var nsAndName=splitNamespace(attributeName);attrNameWithoutNs=nsAndName[1],attributeName=nsAndName[0]+":"+nsAndName[1],attrNs=NAMESPACE_URIS[nsAndName[0]]}isPresent(attributeValue)?isPresent(attrNs)?getDOM().setAttributeNS(renderElement,attrNs,attributeName,attributeValue):getDOM().setAttribute(renderElement,attributeName,attributeValue):isPresent(attrNs)?getDOM().removeAttributeNS(renderElement,attrNs,attrNameWithoutNs):getDOM().removeAttribute(renderElement,attributeName)},ServerRenderer.prototype.setBindingDebugInfo=function(renderElement,propertyName,propertyValue){if(getDOM().isCommentNode(renderElement)){var existingBindings=getDOM().getText(renderElement).replace(/\n/g,"").match(TEMPLATE_BINDINGS_EXP),parsedBindings=JSON.parse(existingBindings[1]);parsedBindings[propertyName]=propertyValue,getDOM().setText(renderElement,TEMPLATE_COMMENT_TEXT.replace("{}",JSON.stringify(parsedBindings,null,2)))}else this.setElementAttribute(renderElement,propertyName,propertyValue)},ServerRenderer.prototype.setElementClass=function(renderElement,className,isAdd){isAdd?getDOM().addClass(renderElement,className):getDOM().removeClass(renderElement,className)},ServerRenderer.prototype.setElementStyle=function(renderElement,styleName,styleValue){isPresent(styleValue)?getDOM().setStyle(renderElement,styleName,stringify(styleValue)):getDOM().removeStyle(renderElement,styleName)},ServerRenderer.prototype.invokeElementMethod=function(renderElement,methodName,args){getDOM().invoke(renderElement,methodName,args)},ServerRenderer.prototype.setText=function(renderNode,text){getDOM().setText(renderNode,text)},ServerRenderer.prototype.animate=function(element,startingStyles,keyframes,duration,delay,easing,previousPlayers){return void 0===previousPlayers&&(previousPlayers=[]),this._animationDriver.animate(element,startingStyles,keyframes,duration,delay,easing,previousPlayers)},ServerRenderer}(),__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 __)},ServerPlatformLocation=function(_super){function ServerPlatformLocation(){_super.apply(this,arguments)}return __extends(ServerPlatformLocation,_super),ServerPlatformLocation.prototype.getBaseHrefFromDOM=function(){throw notSupported("getBaseHrefFromDOM")},ServerPlatformLocation.prototype.onPopState=function(fn){notSupported("onPopState")},ServerPlatformLocation.prototype.onHashChange=function(fn){notSupported("onHashChange")},Object.defineProperty(ServerPlatformLocation.prototype,"pathname",{get:function(){throw notSupported("pathname")},enumerable:!0,configurable:!0}),Object.defineProperty(ServerPlatformLocation.prototype,"search",{get:function(){throw notSupported("search")},enumerable:!0,configurable:!0}),Object.defineProperty(ServerPlatformLocation.prototype,"hash",{get:function(){throw notSupported("hash")},enumerable:!0,configurable:!0}),ServerPlatformLocation.prototype.replaceState=function(state,title,url){notSupported("replaceState")},ServerPlatformLocation.prototype.pushState=function(state,title,url){notSupported("pushState")},ServerPlatformLocation.prototype.forward=function(){notSupported("forward")},ServerPlatformLocation.prototype.back=function(){notSupported("back")},ServerPlatformLocation}(_angular_common.PlatformLocation),INTERNAL_SERVER_PLATFORM_PROVIDERS=[{provide:_angular_core.PLATFORM_INITIALIZER,useValue:initParse5Adapter,multi:!0},{provide:_angular_common.PlatformLocation,useClass:ServerPlatformLocation}],SERVER_RENDER_PROVIDERS=[ServerRootRenderer,{provide:_angular_core.RootRenderer,useFactory:_createConditionalRootRenderer,deps:[ServerRootRenderer]},SharedStylesHost],ServerModule=function(){function ServerModule(){}return ServerModule.decorators=[{type:_angular_core.NgModule,args:[{exports:[_angular_platformBrowser.BrowserModule],providers:SERVER_RENDER_PROVIDERS}]}],ServerModule.ctorParameters=function(){return[]},ServerModule}(),platformServer=_angular_core.createPlatformFactory(_angular_core.platformCore,"server",INTERNAL_SERVER_PLATFORM_PROVIDERS),platformDynamicServer=_angular_core.createPlatformFactory(_angular_compiler.platformCoreDynamic,"serverDynamic",INTERNAL_SERVER_PLATFORM_PROVIDERS),__platform_server_private__={INTERNAL_SERVER_PLATFORM_PROVIDERS:INTERNAL_SERVER_PLATFORM_PROVIDERS,SERVER_RENDER_PROVIDERS:SERVER_RENDER_PROVIDERS},VERSION=new _angular_core.Version("4.0.0-beta.3");exports.ServerModule=ServerModule,exports.platformDynamicServer=platformDynamicServer,exports.platformServer=platformServer,exports.VERSION=VERSION,exports.__platform_server_private__=__platform_server_private__});
{
"name": "@angular/platform-server",
"version": "4.0.0-beta.2",
"version": "4.0.0-beta.3",
"description": "Angular - library for using Angular in Node.js",

@@ -11,6 +11,6 @@ "main": "bundles/platform-server.umd.js",

"peerDependencies": {
"@angular/core": "4.0.0-beta.2",
"@angular/common": "4.0.0-beta.2",
"@angular/compiler": "4.0.0-beta.2",
"@angular/platform-browser": "4.0.0-beta.2"
"@angular/core": "4.0.0-beta.3",
"@angular/common": "4.0.0-beta.3",
"@angular/compiler": "4.0.0-beta.3",
"@angular/platform-browser": "4.0.0-beta.3"
},

@@ -17,0 +17,0 @@ "dependencies": {

@@ -12,3 +12,3 @@ /**

*/
export var /** @type {?} */ VERSION = new Version('4.0.0-beta.2');
export var /** @type {?} */ VERSION = new Version('4.0.0-beta.3');
//# sourceMappingURL=version.js.map

@@ -1,1 +0,1 @@

[{"__symbolic":"module","version":3,"metadata":{"VERSION":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"Version"},"arguments":["4.0.0-beta.2"]}}},{"__symbolic":"module","version":1,"metadata":{"VERSION":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"Version"},"arguments":["4.0.0-beta.2"]}}}]
[{"__symbolic":"module","version":3,"metadata":{"VERSION":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"Version"},"arguments":["4.0.0-beta.3"]}}},{"__symbolic":"module","version":1,"metadata":{"VERSION":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"Version"},"arguments":["4.0.0-beta.3"]}}}]

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc