text: /*!
   * OpenUI5
   * (c) Copyright 2009-2019 SAP SE or an SAP affiliate company.
   * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
   */
  sap.ui.define(["sap/ui/Device"],function(t){"use strict";var e={value:function(t,e){t.value=e==null?"":e},checked:function(t,e){t.checked=e==null?false:true},selected:function(t,e){t.selected=e==null?false:true}};if(t.browser.msie){e.style=function(t,e,r){if(e&&r&&e!=r&&e.length==r.length){return(e+" ").split("; ").sort().toString()==(r+" ").split("; ").sort().toString()}}}function r(t,e){if(t=="svg"){return document.createElementNS("http://www.w3.org/2000/svg","svg")}var r=e.namespaceURI;if(r=="http://www.w3.org/1999/xhtml"||e.localName=="foreignObject"){return document.createElement(t)}return document.createElementNS(r,t)}var i={_sStyles:"",_sClasses:"",_aContexts:[],_mAttributes:Object.create(null)};i.setRootNode=function(t){if(this._oRoot){this._aContexts.push(this._getContext())}this._setContext({_oRoot:t})};i.getCurrentNode=function(){return this._oCurrent};i.reset=function(){this._setContext(this._aContexts.pop());this._oParent=this._oReference=null};i.matchElement=function(t,e,r,i){return null};i.createElement=function(t,e,r){return null};i._getContext=function(){return this._applyContext(this,{})};i._setContext=function(t){this._applyContext(t||{},this)};i._applyContext=function(t,e){e._oRoot=t._oRoot||null;e._oCurrent=t._oCurrent||null;e._oNewElement=t._oNewElement||null;e._oNewParent=t._oNewParent||null;e._oNewReference=t._oNewReference||null;e._iTagOpenState=t._iTagOpenState||0;return e};i._walkOnTree=function(){this._oReference=null;if(!this._oCurrent){this._oParent=this._oRoot.parentNode;this._oCurrent=this._oRoot}else if(this._iTagOpenState){this._oParent=this._oCurrent;this._oCurrent=this._oCurrent.firstChild}else{this._oParent=this._oCurrent.parentNode;this._oCurrent=this._oCurrent.nextSibling}};i._matchElement=function(t,e){if(!t){return}if(this._oCurrent){if(this._oCurrent==this._oRoot||this._oCurrent.id==t){return}var r=document.getElementById(t);if(r){this._oCurrent=this._oParent.insertBefore(r,this._oCurrent);return}var i=this.matchElement(t,e,this._oCurrent,this._oParent);if(i){if(i!==this._oCurrent){this._oCurrent=this._oParent.insertBefore(i,this._oCurrent)}}else if(this._oCurrent.id){this._oReference=this._oCurrent;this._oCurrent=null}}if(!this._oCurrent){this._oCurrent=this.createElement(t,e,this._oParent);this._setNewElement(this._oCurrent)}};i._matchNodeName=function(t){if(!this._oCurrent){return}var e=this._oCurrent.nodeType==1?this._oCurrent.localName:this._oCurrent.nodeName;if(e==t){return}if(this._oCurrent==this._oRoot){this._oReference=this._oCurrent.nextSibling;this._oParent.removeChild(this._oCurrent)}else{this._oReference=this._oCurrent}this._oCurrent=null};i._getAttributes=t.browser.msie||t.browser.edge?function(){for(var t=0,e=this._oCurrent.attributes,r=e.length;t<r;t++){this._mAttributes[e[t].name]=e[t].value}}:function(){for(var t=0,e=this._oCurrent.getAttributeNames();t<e.length;t++){this._mAttributes[e[t]]=this._oCurrent.getAttribute(e[t])}};i._setNewElement=function(t){if(!t){return}if(!this._oNewElement){this._oNewElement=this._oCurrent;this._oNewParent=this._oParent;this._oNewReference=this._oReference}else{this._oParent.insertBefore(this._oCurrent,this._oReference)}};i._insertNewElement=function(){if(this._oCurrent==this._oNewElement){this._oNewParent.insertBefore(this._oNewElement,this._oNewReference);this._oNewElement=this._oNewParent=this._oNewReference=null}};i.openStart=function(t,e){this._walkOnTree();this._matchElement(e,t);this._matchNodeName(t);if(this._oCurrent){this._getAttributes();this._iTagOpenState=2}else{this._oCurrent=r(t,this._oParent);this._setNewElement(this._oCurrent);this._iTagOpenState=1}if(e){this.attr("id",e)}return this};i.voidStart=i.openStart;i.attr=function(t,r){if(this._iTagOpenState==1){this._oCurrent.setAttribute(t,r);return this}var i=String(r);var n=this._mAttributes[t];var s=e[t];if(n!==undefined){delete this._mAttributes[t]}if(s&&s(this._oCurrent,i,n)){return this}if(n!==i){this._oCurrent.setAttribute(t,i)}return this};i.class=function(t){if(t){this._sClasses+=this._sClasses?" "+t:t}return this};i.style=function(t,e){if(!t||e==null||e==""){return this}this._sStyles+=(this._sStyles?" ":"")+(t+": "+e+";");return this};i.openEnd=function(){if(this._sClasses){this.attr("class",this._sClasses);this._sClasses=""}if(this._sStyles){this.attr("style",this._sStyles);this._sStyles=""}if(this._iTagOpenState==1){return this}var t=Object.keys(this._mAttributes);for(var r=0;r<t.length;r++){var i=t[r];var n=e[i];n&&n(this._oCurrent,null);this._oCurrent.removeAttribute(i);delete this._mAttributes[i]}return this};i.voidEnd=function(){this.openEnd();this._iTagOpenState=0;this._insertNewElement();return this};i.text=function(t){this._walkOnTree();this._matchNodeName("#text");if(!this._oCurrent){this._oCurrent=document.createTextNode(t);this._oParent.insertBefore(this._oCurrent,this._oReference)}else if(this._oCurrent.data!=t){this._oCurrent.data=t}this._iTagOpenState=0;return this};i.close=function(t){if(this._iTagOpenState){this._iTagOpenState=0;this._oCurrent.textContent=""}else{var e=this._oCurrent.parentNode;for(var r=e.lastChild;r&&r!=this._oCurrent;r=e.lastChild){e.removeChild(r)}this._oCurrent=e}this._insertNewElement();return this};i.unsafeHtml=function(t,e){var r=null;if(!this._oCurrent){r=this._oRoot;if(t){r.outerHTML=t}}else if(this._iTagOpenState){r=this._oCurrent.firstChild;if(t){this._iTagOpenState=0;this._oCurrent.insertAdjacentHTML("afterbegin",t);if(r){this._oCurrent=r.previousSibling;if(!this._oCurrent){r.data=t;this._oCurrent=r}}else{this._oCurrent=this._oCurrent.lastChild}}}else{r=this._oCurrent.nextSibling;if(t){this._oCurrent.insertAdjacentHTML("afterend",t);this._oCurrent=r?r.previousSibling:this._oCurrent.parentNode.lastChild}}if(e&&r&&r.id==e){r.parentNode.removeChild(r)}return this};return i});