//@ui5-bundle sap/fiori/core-min-1.js
// Copyright (c) 2009-2017 SAP SE, All Rights Reserved
sap.ui.predefine('sap/ushell/services/_ClientSideTargetResolution/XAppStateProcessing',["sap/ushell/utils","sap/ushell/services/_ClientSideTargetResolution/Utils","sap/ushell/navigationMode","sap/ushell/services/AppConfiguration","sap/ushell/Config","sap/ui/thirdparty/jquery","sap/base/util/ObjectPath","sap/base/util/isEmptyObject","sap/base/util/isPlainObject","sap/ui/generic/app/navigation/service/SelectionVariant"],function(u,c,n,a,C,q,O,i,b,S){"use strict";function m(M,A){var D=new q.Deferred(),N,R=M.resolutionResult,t=M.inbound&&(M.inbound.signature||{}),v=h(R)||t.additionalParameters==="ignored"||k(M);if(!v){e(D,M);return D.promise();}var w=M.intentParamsPlusAllDefaults["sap-xapp-state"]&&M.intentParamsPlusAllDefaults["sap-xapp-state"][0];if(w){s(A,w).then(p).then(function(V){if(h(R)){var P=c.constructParameterDominatorMap(t.parameters);Object.keys(R.oNewAppStateMembers).forEach(function(x){var y=P[x].dominatedBy;if(g(V,y)){delete R.oNewAppStateMembers[x];}});}var I=t.additionalParameters==="ignored";if(!h(R)&&!k(M)&&!I){e(D,M);return;}N=A.createEmptyAppState(undefined,true);if(N){N.setData(V);d(N,M,D);}},function(){delete R.oNewAppStateMembers;e(D,M);return;});return D.promise();}if(h(R)){var E=A.createEmptyAppState(undefined,true);d(E,M,D);return D.promise();}e(D,M);return D.promise();}function d(N,M,D){var t=N.getData()||{},v,w={},x=M.inbound.signature,R=M.resolutionResult;if(t.selectionVariant){v=new S(JSON.stringify(t.selectionVariant));}else{v=new S();}if(h(R)){Object.keys(R.oNewAppStateMembers).forEach(function(y){v.massAddSelectOption(y,R.oNewAppStateMembers[y].Ranges);});}var I=x.additionalParameters==="ignored";v=r(v,w,x.parameters,I);if(v.getParameterNames().length!==0||v.getSelectOptionsPropertyNames().length!==0||w.deleted){t.selectionVariant=v.toJSONObject();}if(!w.changed&&!w.deleted&&!h(R)){e(D,M);return;}N.setData(t);N.save().done(function(){M.intentParamsPlusAllDefaults["sap-xapp-state"]=[N.getKey()];M.mappedIntentParamsPlusSimpleDefaults["sap-xapp-state"]=[N.getKey()];e(D,M);});}function e(D,M){var N;l(M);o(M);N=n.compute(O.get("inbound.resolutionResult.applicationType",M),(M.intentParamsPlusAllDefaults["sap-ushell-next-navmode"]||[])[0],(M.intentParamsPlusAllDefaults["sap-ushell-navmode"]||[])[0],(a.getCurrentApplication()||{}).applicationType,C.last("/core/navigation/enableInPlaceForClassicUIs"));u.shallowMergeObject(M.resolutionResult,N);delete M.resolutionResult.oNewAppStateMembers;D.resolve(M);}function h(R){return R.oNewAppStateMembers&&!i(R.oNewAppStateMembers);}function f(L,P){return Array.isArray(L)&&L.some(function(M){return(P.indexOf(M)!==-1);});}function g(A,P){if(A&&A.selectionVariant){var t=new S(JSON.stringify(A.selectionVariant)),v=(t.getSelectOptionsPropertyNames()||[]),w=(t.getParameterNames()||[]);if(f(v,P)||f(w,P)){return true;}}return false;}function r(t,R,P,I){var v=new S(),w=(t.getParameterNames()||[]),x=(t.getSelectOptionsPropertyNames()||[]),y,z;w.forEach(function(A){y=t.getParameter(A);if(I&&!P[A]){R.deleted=true;return;}if(P[A]&&P[A].renameTo){if((v.getParameter(P[A].renameTo)===undefined)&&(v.getSelectOption(P[A].renameTo)===undefined)){v.addParameter(P[A].renameTo,y);R.changed=true;}else{q.sap.log.error("renaming of appstate creates duplicates "+A+"->"+P[A].renameTo);}}else if((v.getParameter(A)===undefined)&&(v.getSelectOption(A)===undefined)){v.addParameter(A,y);}});x.forEach(function(A){z=t.getSelectOption(A);if(I&&!P[A]){R.deleted=true;return;}if(P[A]&&P[A].renameTo){if((v.getSelectOption(P[A].renameTo)===undefined)&&(v.getParameter(P[A].renameTo)===undefined)){v.massAddSelectOption(P[A].renameTo,z);R.changed=true;}else{q.sap.log.error("renaming of appstate creates duplicates "+A+"->"+P[A].renameTo);}}else if((v.getSelectOption(A)===undefined)&&(v.getParameter(A)===undefined)){v.massAddSelectOption(A,z);}});w.forEach(function(A){t.removeParameter(A);});x.forEach(function(A){t.removeSelectOption(A);});v.getParameterNames().forEach(function(A){t.addParameter(A,v.getParameter(A));});v.getSelectOptionsPropertyNames().forEach(function(A){t.massAddSelectOption(A,v.getSelectOption(A));});return t;}function j(D){if(D===undefined||b(D)){return false;}return true;}function k(M){return M.inbound&&M.inbound.signature&&M.inbound.signature.parameters&&Object.keys(M.inbound.signature.parameters).some(function(K){return!!(M.inbound.signature.parameters[K].renameTo);});}function l(M){M.defaultedParamNames=M.defaultedParamNames.filter(function(N){if(M.intentParamsPlusAllDefaults[N]&&!Array.isArray(M.intentParamsPlusAllDefaults[N])){if(!(M.resolutionResult.oNewAppStateMembers&&M.resolutionResult.oNewAppStateMembers[N])){return false;}}return true;});}function o(M){var P=(O.get("inbound.signature.parameters",M)||{}),t={};M.defaultedParamNames.forEach(function(N){var v=(P[N]&&P[N].renameTo)||N;if(t[v]){q.sap.log.error("renaming of defaultedParamNames creates duplicates"+N+"->"+v);}else{t[v]=true;}});M.mappedDefaultedParamNames=Object.keys(t).sort();}function p(A){if(j(A)){return Promise.reject();}return Promise.resolve(A);}function s(A,t){return new Promise(function(R,v){A.getAppState(t).done(function(w){R(w.getData());}).fail(function(E){v(E);});});}return{mixAppStateIntoResolutionResultAndRename:m,_hasRenameTo:k};});
sap.ui.predefine('sap/ushell/services/_CommonDataModel/PersonalizationProcessor',["sap/ui/thirdparty/jquery","sap/base/util/isEmptyObject","sap/base/Log"],function(q,i,L){"use strict";function P(){}P.prototype._getItemIndex=function(I,s){var r;for(r=0;r<I.length;r++){if(I[r].id===s){break;}}r=(r>=I.length)?-1:r;return r;};P.prototype._applyRenameGroup=function(g,n,o){var G,b=false;if(!n){return false;}if(g&&o&&o.groups&&o.groups[g]){G=o.groups[g];if(G.identification&&G.identification.title){o.groups[g].identification.title=n;b=true;}}return b;};P.prototype._applyGroupVisibility=function(g,G,o){var b=false;if(G===undefined){return false;}if(g&&o&&o.groups&&o.groups[g]){o.groups[g].identification.isVisible=G;b=true;}return b;};P.prototype.mixinPersonalization=function(o,p){var d=new q.Deferred(),t=this;if(!p||i(p)){return d.resolve(o).promise();}if(p.groups){Object.keys(p.groups).forEach(function(g){var G=p.groups[g];if(o.groups[g]){if(G.identification){if(G.identification.title){t._applyRenameGroup(g,G.identification.title,o);}if(G.identification.hasOwnProperty("isVisible")&&G.identification.isVisible===false){t._applyGroupVisibility(g,false,o);}}}});}this._applyAddGroups(o,p);if(p.removedGroups&&Array.isArray(p.removedGroups)){p.removedGroups.forEach(function(g){t._applyRemoveGroup(o,g);});}this._applyMoveGroup(o,p);this._applyItemChanges(o,p);this._applyTileSettings(o,p);return d.resolve(o).promise();};P.prototype._applyAddGroups=function(o,p){var n=[];o.site=o.site||{};o.site.payload=o.site.payload||{};o.site.payload.groupsOrder=o.site.payload.groupsOrder||[];o.groups=o.groups||{};if(Array.isArray(p.groupOrder)){o.site.payload.groupsOrder.forEach(function(g){if(p.groupOrder.indexOf(g)===-1){if((p.removedGroups&&p.removedGroups.indexOf(g)===-1)||!p.removedGroups){n.push(g);}}});}if(Array.isArray(p.groupOrder)&&p.addedGroups&&Object.keys(p.addedGroups).length>0){Object.keys(p.addedGroups).forEach(function(g){o.groups[g]=p.addedGroups[g];o.groups[g].payload.isPreset=false;});o.site.payload.groupsOrder=p.groupOrder;}n.forEach(function(N){o.site.payload.groupsOrder.push(N);});};P.prototype._checkRenameGroup=function(g,p,o,a){if(g&&p&&o){if(o[g]){if(p[g].identification.title!==o[g].identification.title){a=a||{};a.groups=a.groups||{};a.groups[g]=a.groups[g]||{};a.groups[g].identification=a.groups[g].identification||{};a.groups[g].identification.title=p[g].identification.title;}}}return a;};P.prototype._checkTileSettings=function(p,o){if(!p.modifiedTiles){return;}o.modifiedTiles=p.modifiedTiles;};P.prototype._applyTileSettings=function(s,p){var g,m;if(!p.modifiedTiles){return;}g=Object.keys(s.groups).map(function(k){return this[k];},s.groups);m=Object.keys(p.modifiedTiles).map(function(k){return this[k];},p.modifiedTiles);g.some(function(G){["tiles","links"].forEach(function(t){if(G.payload[t]){G.payload[t].some(function(T){var a;m.some(function(u,I){if(u.id===T.id){if(u.title!==undefined){T.title=u.title;}if(u.subTitle!==undefined){T.subTitle=u.subTitle;}if(u.info!==undefined){T.info=u.info;}a=I;return true;}return false;});if(a!==undefined){m.splice(a,1);}return m.length===0;});}});return m.length===0;});s.modifiedTiles=p.modifiedTiles;};P.prototype._checkGroupVisibility=function(g,p,o,a){if(g&&p&&o){if(o[g]){if(p[g].identification.isVisible!==o[g].identification.isVisible&&typeof p[g].identification.isVisible==="boolean"){a=a||{};a.groups=a.groups||{};a.groups[g]=a.groups[g]||{};a.groups[g].identification=a.groups[g].identification||{};a.groups[g].identification.isVisible=p[g].identification.isVisible;}}}return a;};P.prototype._addGroupToPersonalizationDelta=function(p,o,g){var s=false,G,n;if(p&&p.site&&p.site.payload&&p.site.payload.groupsOrder&&p.groups&&g&&p.groups[g]&&o){G=p.site.payload.groupsOrder;n=p.groups[g];o.addedGroups=o.addedGroups||{};o.addedGroups[g]={};o.addedGroups[g].identification=q.extend({},n.identification);o.addedGroups[g].payload=q.extend({},n.payload);o.addedGroups[g].payload.tiles=[];o.addedGroups[g].payload.links=[];o.groupOrder=G;s=true;}return s;};P.prototype.extractPersonalization=function(p,o){var d=new q.Deferred(),a,b={},O,e,t=this;if(o&&o._version){b._version=o._version;}if(p&&p.groups&&o&&o.groups){a=p.groups;O=o.groups;e=this._getExtractHelperObject(o,p,b);Object.keys(O).forEach(function(g){t._checkRemoveGroup(p,b,g);t._extractFromOriginalSiteOneGroup(o,e,g,"tiles");t._extractFromOriginalSiteOneGroup(o,e,g,"links");});Object.keys(a).forEach(function(g){if(O[g]){t._checkRenameGroup(g,a,O,b);t._checkGroupVisibility(g,a,O,b);}else{t._addGroupToPersonalizationDelta(p,b,g);}t._extractFromPersonalizedSiteOneGroup(p,e,g,"tiles");t._extractFromPersonalizedSiteOneGroup(p,e,g,"links");});this._checkMoveGroup(p,o,b);this._checkTileSettings(p,b);this._cleanupRemovedGroups(o,b);if(e.oPersonalizationDelta.movedTiles&&i(e.oPersonalizationDelta.movedTiles)){delete(e.oPersonalizationDelta.movedTiles);}if(e.oPersonalizationDelta.movedLinks&&i(e.oPersonalizationDelta.movedLinks)){delete(e.oPersonalizationDelta.movedLinks);}}return d.resolve(b).promise();};P.prototype._checkRemoveGroup=function(p,o,O){var s=false;if(p&&p.groups&&o&&O){if(!p.groups[O]){o.removedGroups=o.removedGroups||[];o.groupOrder=o.groupOrder||[];if(o.removedGroups.indexOf(O)===-1){o.removedGroups.push(O);}if(p.site&&p.site.payload&&p.site.payload.groupsOrder&&Array.isArray(p.site.payload.groupsOrder)){o.groupOrder=p.site.payload.groupsOrder.slice(0);}}s=true;}return s;};P.prototype._applyRemoveGroup=function(o,g){var O,G,a;if(o&&o.groups&&o.site&&o.site.payload&&o.site.payload.groupsOrder&&g){O=o.groups;G=o.site.payload.groupsOrder;a=G.indexOf(g);if(!(a===-1)){G.splice(a,1);delete(O[g]);return true;}}return false;};P.prototype._checkMoveGroup=function(p,o,a){var b,O,c=false,s=false;if(p.site&&p.site.payload&&Array.isArray(p.site.payload.groupsOrder)&&o.site&&o.site.payload&&Array.isArray(o.site.payload.groupsOrder)){b=p.site.payload.groupsOrder;O=o.site.payload.groupsOrder;if(b.length===O.length){c=(function(){var S=false,I;for(I=0;I<O.length;I++){if(O[I]!==b[I]){S=true;break;}}return S;})();if(c){a.groupOrder=b;s=true;}}}return s;};P.prototype._applyMoveGroup=function(o,p){var s=false;if(Array.isArray(p.groupOrder)){o.site=o.site||{};o.site.payload=o.site.payload||{};if(!Array.isArray(o.site.payload.groupsOrder)){o.site.payload.groupsOrder=[];}if(o.site.payload.groupsOrder.length===p.groupOrder.length){o.site.payload.groupsOrder=p.groupOrder;s=true;}}return s;};P.prototype._getHashedItemsFromSite=function(s){var r=null;if(s&&s.groups){if(Object.keys(s.groups).length>0){r={};Object.keys(s.groups).forEach(function(g){var G=s.groups[g],a;r[g]={};if(G.payload){["tiles","links"].forEach(function(t){r[g][t]={};if(Array.isArray(G.payload[t])){a=G.payload[t];a.forEach(function(I,b){var c;if(I.id){c=I.id;r[g][t][c]={iIndex:b,sItemId:I};}});}});}});}}return r;};P.prototype._getExtractHelperObject=function(o,p,a){var r=null;r={};r.oHashedItemsOriginal=this._getHashedItemsFromSite(o)||{};r.oHashedItemsPersonalized=this._getHashedItemsFromSite(p);r.oPersonalizationDelta=a;return r;};P.prototype._extractFromOriginalSiteOneGroup=function(o,e,g,I){var s=false,O,m,M,p="movedTiles";I=I||"tiles";if(I!=="tiles"){p="movedLinks";}M=function(a,f){m[a]=m[a]?m[a]:{};m[a].fromGroup=f;m[a].toGroup=null;};if(e&&e.oHashedItemsPersonalized&&e.oPersonalizationDelta&&o&&o.groups&&o.groups[g]&&o.groups[g].payload&&Array.isArray(o.groups[g].payload[I])){O=o.groups[g].payload[I];e.oPersonalizationDelta[p]=e.oPersonalizationDelta[p]?e.oPersonalizationDelta[p]:{};m=e.oPersonalizationDelta[p];if(e.oHashedItemsPersonalized[g]){O.forEach(function(a){if(!e.oHashedItemsPersonalized[g][I][a.id]){M(a.id,g);}});s=true;}else{O.forEach(function(a){M(a.id,g);});s=true;}}return s;};P.prototype._handleItemChangeExtract=function(e,g,I){return false;};P.prototype._extractFromPersonalizedSiteOneGroup=function(p,e,g,I){var s=false,m,t,T=false,a,b=this,c="movedTiles";I=I||"tiles";if((I!=="tiles")&&(I!=="links")){return s;}if(I!=="tiles"){c="movedLinks";}if(e&&e.oPersonalizationDelta&&p&&p.groups&&p.groups[g]&&p.groups[g].payload&&Array.isArray(p.groups[g].payload[I])){a=p.groups[g].payload[I];e.oPersonalizationDelta[c]=e.oPersonalizationDelta[c]?e.oPersonalizationDelta[c]:{};m=e.oPersonalizationDelta[c];t=[];a.forEach(function(o,d){t.push(o.id);if(e.oHashedItemsOriginal[g]&&e.oHashedItemsOriginal[g][I][o.id]){if(m[o.id]){L.error("Extract personalization failed","The Tile ID "+o.id+" is not unique in the site","PersonalizationProcessor");delete(m[o.id]);}if(e.oHashedItemsOriginal[g][I][o.id].iIndex!==d){T=true;}b._handleItemChangeExtract(e,g,I);}else{T=true;if(m[o.id]){if(m[o.id].fromGroup&&(m[o.id].fromGroup!==g)){if(!m[o.id].toGroup){m[o.id].toGroup=g;b._handleItemChangeExtract(e,g,I);}}}else{m[o.id]={};m[o.id].fromGroup=null;m[o.id].toGroup=g;m[o.id].item=o;}}});if(T){e.oPersonalizationDelta.groups=e.oPersonalizationDelta.groups||{};e.oPersonalizationDelta.groups[g]=e.oPersonalizationDelta.groups[g]||{};e.oPersonalizationDelta.groups[g].payload=e.oPersonalizationDelta.groups[g].payload||{};if(I==="tiles"){e.oPersonalizationDelta.groups[g].payload.tileOrder=t;}else{e.oPersonalizationDelta.groups[g].payload.linkOrder=t;}}s=true;}return s;};P.prototype._cleanupRemovedGroups=function(o,p){var I,m;if(p.removedGroups&&p&&Array.isArray(p.removedGroups)&&(p.removedGroups.length>0)){p.removedGroups.forEach(function(g){if(o&&o.groups&&o.groups[g]&&o.groups[g].payload){[{sType:"tiles",sPersonalizationDeltaType:"movedTiles"},{sType:"links",sPersonalizationDeltaType:"movedLinks"}].forEach(function(t){if(Array.isArray(o.groups[g].payload[t.sType])){I=o.groups[g].payload[t.sType];I.forEach(function(a){if(p[t.sPersonalizationDeltaType]){m=p[t.sPersonalizationDeltaType][a.id];if(m&&m.fromGroup&&(m.fromGroup===g)&&!m.toGroup){delete(p[t.sPersonalizationDeltaType][a.id]);}}});}});}});}};P.prototype._setItemOrderOnSiteCollection=function(o,I){var s=true,S=o.length,a,b={},c,C,d,f;if(!Array.isArray(o)||!Array.isArray(o)||(o.length!==I.length)){return false;}a=o.splice(0,o.length);for(c=0;c<I.length;c++){d=I[c];C=a.shift();if(C&&d===C.id){o.push(C);}else if(b[d]){o.push(b[d]);delete(b[d]);if(C){b[C.id]=C;}}else if(C){b[C.id]=C;f=false;while(a.length>0){C=a.shift();if(d===C.id){o.push(C);f=true;break;}else{b[C.id]=C;}}if(!f){s=false;}}}if(o.length!==S){s=false;}return s;};P.prototype._setItemOrderOnSiteGroupForItemType=function(o,d,I){var s=true,t,a;if((I==="tiles")||(I==="links")){a=(I==="tiles")?"tileOrder":"linkOrder";}else{return false;}if(d.payload&&Array.isArray(d.payload[a])&&(d.payload[a].length>0)){if(o.payload&&Array.isArray(o.payload[I])&&(o.payload[I].length>0)){t=this._setItemOrderOnSiteCollection(o.payload[I],d.payload[a]);if(!t){s=false;}}else{s=false;}}return s;};P.prototype._setItemOrderOnSite=function(o,p){var s=true,t,a=this;if(o.groups&&p.groups){Object.keys(p.groups).forEach(function(g){if(p.groups[g]&&o.groups[g]){t=a._setItemOrderOnSiteGroupForItemType(o.groups[g],p.groups[g],"tiles");if(!t){s=false;}t=a._setItemOrderOnSiteGroupForItemType(o.groups[g],p.groups[g],"links");if(!t){s=false;}}});}return s;};P.prototype._applyMoveItemsWithoutOrder=function(o,p,I){var s=true,t,T,a="tileOrder",d,b,c,O=[],e=this;function f(C,g){var s=true;if(o.groups[g]&&o.groups[g].payload&&p.groups&&p.groups[g]&&p.groups[g].payload&&Array.isArray(p.groups[g].payload[a])&&(p.groups[g].payload[a].length>0)){if(!Array.isArray(o.groups[g].payload[I])){o.groups[g].payload[I]=[];}o.groups[g].payload[I].push(C);}else{s=false;}return s;}if((I==="tiles")||(I==="links")){T=(I==="tiles")?"movedTiles":"movedLinks";a=(I==="tiles")?"tileOrder":"linkOrder";}else{return false;}if(!o||!o.groups||!o.site||!o.site.payload||!Array.isArray(o.site.payload.groupsOrder)||!p){return false;}if(p[T]){Object.keys(p[T]).forEach(function(g){d=p[T][g];if(d.fromGroup){if(d.toGroup){if(d.fromGroup!==d.toGroup){if(o.groups[d.fromGroup]&&o.groups[d.fromGroup].payload&&Array.isArray(o.groups[d.fromGroup].payload[I])){O=o.groups[d.fromGroup].payload[I];b=e._getItemIndex(O,g);if(b>=0){c=O.splice(b,1);t=f(c[0],d.toGroup);if(!t){s=false;}}else{s=false;}}else{s=false;}}else{s=false;}}else if(o.groups[d.fromGroup]&&o.groups[d.fromGroup].payload&&Array.isArray(o.groups[d.fromGroup].payload[I])){O=o.groups[d.fromGroup].payload[I];b=e._getItemIndex(O,g);if(b>=0){O.splice(b,1);}else{s=false;}}else{s=false;}}else if(d.toGroup){if(d.item&&!i(d.item)){t=f(d.item,d.toGroup);if(!t){s=false;}}else{s=false;}}else{s=false;}});}return s;};P.prototype._applyItemChanges=function(o,p){var s=true,S;S=this._applyMoveItemsWithoutOrder(o,p,"tiles");if(!S){s=false;}S=this._applyMoveItemsWithoutOrder(o,p,"links");if(!S){s=false;}if(p.groups){S=this._setItemOrderOnSite(o,p);if(!S){s=false;}}return s;};return P;});
sap.ui.predefine('sap/ushell/services/_ContentExtensionAdapterFactory/ContentExtensionAdapterConfig',["sap/ushell/Config","sap/ushell/System","sap/ushell/services/_ContentExtensionAdapterFactory/FeaturedGroupConfig"],function(C,S,F){"use strict";var a={};var c=[{contentProviderName:"featured",adapter:"sap.ushell.adapters.cdm.v3.StaticGroupsAdapter",configSwitch:"/core/home/featuredGroup/enable",system:{alias:"",platform:"cdm"},configHandler:function(){var r=C.last("/core/shell/enableRecentActivity")&&C.last("/core/shell/model/currentState/showRecentActivity"),e=r&&C.last("/core/home/featuredGroup/frequentCard"),E=r&&C.last("/core/home/featuredGroup/recentCard");return F.getMockAdapterConfig(e,E);}}];a._getConfigAdapters=function(){c.forEach(function(o){o.system=new S(o.system);});return c;};return a;});
sap.ui.predefine('sap/ushell/services/_ContentExtensionAdapterFactory/FeaturedGroupConfig',["sap/ushell/resources"],function(r){"use strict";var f={};var g=r.i18n.getText("featuredGroup.title");var R=r.i18n.getText("recentActivities");var F=r.i18n.getText("frequentActivities");var t=r.i18n.getText("top",3);var o={"_version":"3.0.0","site":{"identification":{"version":"3.0","id":"c9dcc1f3-dec0-4db4-91d3-639bf38d91ce","title":"Featured Group","description":"Sample site for featured group cards"},"payload":{"groupsOrder":["FeaturedGroupCards"]}},"catalogs":{},"vizTypes":{"sap.ushell.Card":{"sap.app":{"id":"sap.ushell.Card","type":"card","applicationVersion":{"version":"1.0.0"}},"sap.ui":{"deviceTypes":{"desktop":true,"tablet":true,"phone":true}}}},"visualizations":{"FrequentCard":{"vizType":"sap.ushell.Card","businessApp":"fin.cash.bankmaster.manage.BusinessApp","target":{"appId":"fin.cash.bankmaster.manage","inboundId":"Bank-manage","parameters":{}},"vizConfig":{"sap.flp":{"columns":"4","rows":"3"},"sap.app":{"id":"FrequentCard","type":"card"},"sap.ui5":{"services":{"CardNavigationService":{"factoryName":"sap.ushell.ui5service.CardNavigation"},"CardUserFrequentsService":{"factoryName":"sap.ushell.ui5service.CardUserFrequents"}}},"sap.card":{"type":"List","header":{"title":F,"status":{"text":t},"actions":[{"type":"Navigation","service":"CardNavigationService","parameters":{"openUI":"FrequentActivities"}}]},"content":{"maxItems":3,"data":{"service":{"name":"CardUserFrequentsService"}},"item":{"title":{"value":"{Name}"},"description":{"value":"{Description}"},"highlight":"{Highlight}","icon":{"src":"{Icon}","label":"icon"},"actions":[{"type":"Navigation","service":"CardNavigationService","parameters":{"title":"{Name}","url":"{Url}","intentSemanticObject":"{Intent/SemanticObject}","intentAction":"{Intent/Action}","intentAppRoute":"{Intent/AppSpecificRoute}","intentParameters":"{Intent/Parameters}"}}]}}}}},"RecentCard":{"vizType":"sap.ushell.Card","businessApp":"fin.cash.bankmaster.manage.BusinessApp","target":{"appId":"fin.cash.bankmaster.manage","inboundId":"Bank-manage","parameters":{}},"vizConfig":{"sap.flp":{"columns":"4","rows":"3"},"sap.app":{"id":"RecentCard","type":"card"},"sap.ui5":{"services":{"CardNavigationService":{"factoryName":"sap.ushell.ui5service.CardNavigation"},"CardUserRecentsService":{"factoryName":"sap.ushell.ui5service.CardUserRecents"}}},"sap.card":{"type":"List","header":{"title":R,"status":{"text":t},"actions":[{"type":"Navigation","service":"CardNavigationService","parameters":{"openUI":"RecentActivities"}}]},"content":{"maxItems":3,"data":{"service":{"name":"CardUserRecentsService"}},"item":{"title":{"label":"{{title_label}}","value":"{Name}"},"description":{"label":"{{description_label}}","value":"{Description}"},"icon":{"src":"{Icon}","label":"icon"},"highlight":"{Highlight}","actions":[{"type":"Navigation","service":"CardNavigationService","parameters":{"title":"{Name}","url":"{Url}","intentSemanticObject":"{Intent/SemanticObject}","intentAction":"{Intent/Action}","intentAppRoute":"{Intent/AppSpecificRoute}","intentParameters":"{Intent/Parameters}"}}]}}}}}},"applications":{},"groups":{"FeaturedGroupCards":{"identification":{"id":"FeaturedGroupCards","title":g},"contentProvider":"featured","isFeatured":true,"payload":{"locked":true,"tiles":[{"id":"frequentCard","vizId":"FrequentCard","contentProvider":"featured"},{"id":"recentCard","vizId":"RecentCard","contentProvider":"featured"}],"links":[],"groups":[]}}},"systemAliases":{}};f.getMockAdapterConfig=function(e,E){var T=o.groups.FeaturedGroupCards.payload.tiles,v=o.visualizations;for(var i=0;i<T.length;i++){var a=T[i],s=!e&&a.vizId==="FrequentCard",S=!E&&a.vizId==="RecentCard";if(s||S){delete v[a.vizId];T.splice(i,1);i--;}}return o;};return f;},true);
sap.ui.predefine('sap/ushell/services/_Personalization/ContextContainer',["sap/ushell/utils","sap/ushell/services/_Personalization/utils","sap/ushell/services/_Personalization/constants.private","sap/ui/core/format/DateFormat","sap/ui/core/UIComponent","sap/ui/thirdparty/jquery"],function(u,p,c,D,U,q){"use strict";function C(){this._init.apply(this,arguments);}C.prototype._init=function(s,a,b,S,o){this._oService=s;this._sContainerKey=b;this._oAdapterContainer={};this._oScope=S||p.adjustScope(S);this._aLoadedKeys=[];this._oUnmodifiableContainer=undefined;var A;if(!(o instanceof U)&&o!==undefined){throw new Error("oComponent passed must be a UI5 Component or must be undefined");}if(o&&o.getMetadata&&o.getMetadata().getComponentName){A=o.getMetadata().getComponentName();}this.clear();if(!this._sContainerKey||typeof this._sContainerKey!=="string"){throw new u.Error("Invalid container key: sap.ushell.services.Personalization"," ");}this._oAdapterContainer=a.getAdapterContainer(this._sContainerKey,this._oScope,A);return this;};C.prototype.getValidity=function(){return this._oScope.validity;};C.prototype.clear=function(){this._oItemMap={};this._aLoadedItemKeys=[];this._clear=true;this._oItemMap=new u.Map();};C.prototype.load=function(){var d={},P,t=this;d=new q.Deferred();if(!this._sContainerKey){throw new u.Error("Invalid container key: sap.ushell.services.Personalization"," ");}this.clear();P=this._oService._pendingContainerOperations_flushAddNext(this._sContainerKey,d);P.always(function(){t._oAdapterContainer.load().fail(function(){d.reject();}).done(function(){t._copyFromAdapter();if(t._isExpired()){t.clear();}d.resolve();});});return d.promise();};C.prototype._copyFromAdapter=function(){var t=this,a;a=t._oAdapterContainer.getItemKeys().splice(0);a.forEach(function(i){t._oItemMap.put(i,JSON.stringify(t._oAdapterContainer.getItemValue(i)));});this._aLoadedItemKeys=t._oItemMap.keys().splice(0);};C.prototype._isExpired=function(){var f,t,T;if(this.getValidity()===Infinity||this.getValidity()===0){return false;}t=this._getItemValueInternal(c.S_ADMIN_PREFIX,c.S_ITEMKEY_EXPIRE);f=D.getDateInstance({pattern:c.S_ABAPTIMESTAMPFORMAT});T=f.format(this._getNow(),true);return t&&T>t;};C.prototype._getNow=function(){return new Date();};C.prototype._copyToAdapterUpdatingValidity=function(){var i=[],d=[],t=this,n,f,T,s;if(this._clear){i=this._oAdapterContainer.getItemKeys().splice(0);i.forEach(function(I){t._oAdapterContainer.delItem(I);});this._clear=false;}if(this.getValidity()===Infinity||this.getValidity()===0){this._delItemInternal(c.S_ADMIN_PREFIX,c.S_ITEMKEY_SCOPE);this._delItemInternal(c.S_ADMIN_PREFIX,c.S_ITEMKEY_EXPIRE);this._delItemInternal(c.S_ADMIN_PREFIX,c.S_ITEMKEY_STORAGE);}else{f=D.getDateInstance({pattern:c.S_ABAPTIMESTAMPFORMAT});n=this._getNow();s=f.format(n,true);T=f.format(new Date(n.getTime()+this.getValidity()*60000),true);this._setItemValueInternal(c.S_ADMIN_PREFIX,c.S_ITEMKEY_SCOPE,this._oScope);this._setItemValueInternal(c.S_ADMIN_PREFIX,c.S_ITEMKEY_EXPIRE,T);this._setItemValueInternal(c.S_ADMIN_PREFIX,c.S_ITEMKEY_STORAGE,s);}i=this._oItemMap.keys();i.forEach(function(I){t._oAdapterContainer.setItemValue(I,p.cloneToObject(t._oItemMap.get(I)));});d=this._aLoadedItemKeys.filter(function(I){return!(i.indexOf(I)>-1);});d.forEach(function(I){t._oAdapterContainer.delItem(I);});};C.prototype.save=function(){var s,P,t=this;this._copyToAdapterUpdatingValidity();s=new q.Deferred();P=this._oService._pendingContainerOperations_cancelAddNext(this._sContainerKey,s);P.always(function(){try{t._oAdapterContainer.save().fail(function(){s.reject();}).done(function(){s.resolve();});}catch(e){s.reject();}});return s.promise();};C.prototype.saveDeferred=function(n){var s,P,t=this;this._copyToAdapterUpdatingValidity();s=new q.Deferred();P=this._oService._pendingContainerOperations_cancelAddNext(this._sContainerKey,s);function d(){P.always(function(){try{t._oAdapterContainer.save().fail(function(){s.reject();}).done(function(){s.resolve();});}catch(e){s.reject();}});}s._sapFnSave=d;s._sapTimeoutId=setTimeout(d,n);return s.promise();};C.prototype.flush=function(){var s,P;this._copyToAdapterUpdatingValidity();s=new q.Deferred();P=this._oService._pendingContainerOperations_flushAddNext(this._sContainerKey,s);P.fail(function(){s.reject();}).done(function(){s.resolve();});return s.promise();};C.prototype.getItemKeys=function(){var f=this._oItemMap.keys().filter(function(s){return s.indexOf(c.S_ITEM_PREFIX)===0;});return f.map(function(e){return e.replace(c.S_ITEM_PREFIX,"","");});};C.prototype._getInternalKeys=function(){return this._oItemMap.keys().splice(0);};C.prototype.getItemValue=function(i){return this._getItemValueInternal(c.S_ITEM_PREFIX,i);};C.prototype._getItemValueInternal=function(P,i){if(typeof i!=="string"||typeof P!=="string"){return undefined;}return p.cloneToObject(this._oItemMap.get(P+i));};C.prototype.containsItem=function(i){if(typeof i!=="string"){return undefined;}return this._oItemMap.containsKey(c.S_ITEM_PREFIX+i);};C.prototype.setItemValue=function(i,I){this._setItemValueInternal(c.S_ITEM_PREFIX,i,I);};C.prototype._setItemValueInternal=function(i,I,o){if(typeof I!=="string"||typeof i!=="string"){throw new u.Error("Parameter value of sItemKey or sItemValue is not a string: sap.ushell.services.Personalization"," ");}if(I.length>40){q.sap.log.error("Personalization Service item key/variant set name (\""+I+"\") should be less than 40 characters [current :"+I.length+"]");}this._oItemMap.put(i+I,JSON.stringify(o));};C.prototype.delItem=function(i){this._delItemInternal(c.S_ITEM_PREFIX,i);};C.prototype._delItemInternal=function(P,i){if(typeof i!=="string"){return undefined;}if(typeof P!=="string"){return undefined;}this._oItemMap.remove(P+i);};C.prototype.getKey=function(){return this._sContainerKey.substring(c.S_CONTAINER_PREFIX.length);};C.prototype.getUnmodifiableContainer=function(){var t=this;if(!this._oUnmodifiableContainer){this._oUnmodifiableContainer=(function(){var o={};["clear","delItem","flush","load","save","saveDeferred","setItemValue"].forEach(function(f){o[f]=function(n){throw new u.Error("Function "+n+" can't be called on unmodifiable container","ContextContainer"," ");}.bind(undefined,f);});["containsItem","getItemKeys","getItemValue","getUnmodifiableContainer","getValidity"].forEach(function(f){if(t[f]){o[f]=t[f].bind(t);}});return o;}());}return this._oUnmodifiableContainer;};return C;});
sap.ui.predefine('sap/ushell/services/_Personalization/PersonalizationContainer',["sap/ushell/utils","sap/ushell/services/_Personalization/utils","sap/ushell/services/_Personalization/constants.private","sap/ushell/services/_Personalization/PersonalizationContainerVariantSet","sap/ui/thirdparty/jquery"],function(u,p,c,P,q){"use strict";function a(A,C){this._sContainerKey=C;this._oAdapterContainer={};this._aLoadedVariantSetKeys=[];this._aLoadedItemKeys=[];var d={},t=this;this._init();d=new q.Deferred();if(!this._sContainerKey||typeof this._sContainerKey!=="string"){throw new u.Error("Invalid container key: sap.ushell.services.Personalization"," ");}this._oAdapterContainer=A.getAdapterContainer(this._sContainerKey);this.load().fail(function(){d.reject();}).done(function(){d.resolve(t);});return d.promise();}a.prototype._init=function(){this._oVariantSetMap={};this._oItemMap={};this._aLoadedVariantSetKeys=[];this._aLoadedItemKeys=[];this._oVariantSetMap=new u.Map();this._oItemMap=new u.Map();};a.prototype.load=function(){var d={},i=[],v=[],I=[],m=[],t=this;function b(I){var n=[],e=[];n=I.filter(function(s){return s.indexOf(c.S_ITEM_PREFIX)!==0;});if(n.length===0){return I;}e=I.filter(function(s){return s.indexOf(c.S_ITEM_PREFIX)===0;});n.forEach(function(s){var o={},f="";f=c.S_ITEM_PREFIX+s;o=p.clone(t._oAdapterContainer.getItemValue(s));t._oAdapterContainer.setItemValue(f,o);t._oAdapterContainer.delItem(s);if(e&&Array.prototype.indexOf.call(e,f)===-1){e.push(f);}});return e;}d=new q.Deferred();if(!this._sContainerKey){throw new u.Error("Invalid container key: sap.ushell.services.Personalization"," ");}this._init();this._oAdapterContainer.load().fail(function(){d.reject();}).done(function(){i=t._oAdapterContainer.getItemKeys().splice(0);v=i.filter(function(s){return s.indexOf(c.S_VARIANT_PREFIX)===0;});v.forEach(function(V){var o={};o=new P(V,t._oAdapterContainer);t._oVariantSetMap.put(V,o);});I=i.filter(function(s){return s.indexOf(c.S_VARIANT_PREFIX)!==0;});m=b(I);m.forEach(function(s){t._oItemMap.put(s,p.clone(t._oAdapterContainer.getItemValue(s)));});t._aLoadedVariantSetKeys=t._oVariantSetMap.keys().splice(0);t._aLoadedItemKeys=t._oItemMap.keys().splice(0);d.resolve();});return d.promise();};a.prototype.save=function(){var s,i;this._serializeVariantSets();this._serializeItems();s=new q.Deferred();function S(){s.resolve();}function f(){s.reject();}try{i=this._oAdapterContainer.save();i.fail(f);i.done(S);}catch(e){s.reject();}return s.promise();};a.prototype.getItemKeys=function(){return this._oItemMap.keys().map(function(e){return e.replace(c.S_ITEM_PREFIX,"","");});};a.prototype.getItemValue=function(i){if(typeof i!=="string"){return undefined;}return this._oItemMap.get(c.S_ITEM_PREFIX+i);};a.prototype.containsItem=function(i){if(typeof i!=="string"){return undefined;}return this._oItemMap.containsKey(c.S_ITEM_PREFIX+i);};a.prototype.setItemValue=function(i,I){if(typeof i!=="string"){throw new u.Error("Parameter value of sItemKey is not a string: sap.ushell.services.Personalization"," ");}this._oItemMap.put(c.S_ITEM_PREFIX+i,I);};a.prototype.delItem=function(i){if(typeof i!=="string"){return undefined;}if(this.containsItem(i)){this._oItemMap.remove(c.S_ITEM_PREFIX+i);}};a.prototype._serializeItems=function(){var i=[],d=[],t=this;i=this._oItemMap.keys();i.forEach(function(I){t._oAdapterContainer.setItemValue(I,p.clone(t._oItemMap.get(I)));});d=this._aLoadedItemKeys.filter(function(I){return!(i.indexOf(I)>-1);});d.forEach(function(I){t._oAdapterContainer.delItem(I);});};a.prototype.getVariantSetKeys=function(){var v=[],b=[];b=this._oVariantSetMap.keys();v=b.map(function(e){return e.replace(c.S_VARIANT_PREFIX,"","");});return v;};a.prototype.containsVariantSet=function(v){return this._oVariantSetMap.containsKey(c.S_VARIANT_PREFIX+v);};a.prototype.getVariantSet=function(v){var s,V={};s=c.S_VARIANT_PREFIX+v;V=this._oVariantSetMap.get(s);return V;};a.prototype.addVariantSet=function(v){var e={},V={},s="";if(this.containsVariantSet(v)){throw new u.Error("Container already contains a variant set with key '"+v+"': sap.ushell.services.Personalization"," ");}s=c.S_VARIANT_PREFIX+v;e={currentVariant:null,variants:{}};this._oAdapterContainer.setItemValue(s,e);V=new P(s,this._oAdapterContainer);this._oVariantSetMap.put(s,V);return V;};a.prototype._serializeVariantSets=function(){var v=[],d=[],t=this;v=this._oVariantSetMap.keys();v.forEach(function(V){var o={},b={};o=t._oVariantSetMap.get(V);b=o._serialize();t._oAdapterContainer.setItemValue(V,p.clone(b));});d=this._aLoadedVariantSetKeys.filter(function(V){return!(v.indexOf(V)>-1);});d.forEach(function(V){t._oAdapterContainer.delItem(V);});};a.prototype.delVariantSet=function(v){var s="";s=c.S_VARIANT_PREFIX+v;this._oVariantSetMap.remove(s);return this._oAdapterContainer.delItem(s);};return a;});
sap.ui.predefine('sap/ushell/services/_Personalization/PersonalizationContainerVariant',["sap/ushell/utils"],function(u){"use strict";function P(v,V,o){if(typeof v!=="string"){throw new u.Error("Parameter value of sVariantKey is not a string: sap.ushell.services.Personalization"," ");}if(typeof V!=="string"){throw new u.Error("Parameter value of sVariantName is not a string: sap.ushell.services.Personalization"," ");}if(o&&typeof o!=="object"){throw new u.Error("Parameter value of sVariantName is not a string: sap.ushell.services.Personalization"," ");}this._oVariantKey=v;this._oVariantName=V;this._oItemMap=new u.Map();this._oItemMap.entries=o||{};};P.prototype.getVariantKey=function(){return this._oVariantKey;};P.prototype.getVariantName=function(){return this._oVariantName;};P.prototype.getItemValue=function(i){if(typeof i!=="string"){return undefined;}return this._oItemMap.get(i);};P.prototype.setItemValue=function(i,I){if(typeof i!=="string"){throw new u.Error("Parameter value of sItemKey is not a string: sap.ushell.services.Personalization"," ");}return this._oItemMap.put(i,I);};P.prototype.containsItem=function(i){if(typeof i!=="string"){return undefined;}return this._oItemMap.containsKey(i);};P.prototype.getItemKeys=function(){return this._oItemMap.keys();};P.prototype.delItem=function(i){if(typeof i!=="string"){return undefined;}return this._oItemMap.remove(i);};P.prototype._serialize=function(){var i=[],v={},I={},t=this;v.name=this.getVariantName();i=this._oItemMap.keys();i.forEach(function(s){I[s]=t.getItemValue(s);});v.variantData=I;return v;};return P;});
sap.ui.predefine('sap/ushell/services/_Personalization/PersonalizationContainerVariantSet',["sap/ushell/utils","sap/ushell/services/_Personalization/utils","sap/ushell/services/_Personalization/PersonalizationContainerVariant"],function(u,p,P){"use strict";function c(v,a){var V,s,b,o,d;this._sVariantSetKey=v;this._oAdapterContainer=a;this._oVariantNameMap=new u.Map();this._oVariantMap=new u.Map();V=p.clone(this._oAdapterContainer.getItemValue(v));if(V.hasOwnProperty("currentVariant")){this._sCurrentVariantKey=V.currentVariant;}else{throw new u.Error("Corrupt variant set data: sap.ushell.services.Personalization"," ");}if(V.hasOwnProperty("variants")){for(s in V.variants){if(V.variants.hasOwnProperty(s)){b=V.variants[s].name;o=V.variants[s].variantData;if(this._oVariantNameMap.containsKey(b)){throw new u.Error("Variant name already exists: sap.ushell.services.Personalization"," ");}else{this._oVariantNameMap.put(b,s);d=new P(s,b,o);this._oVariantMap.put(s,d);}}}}else{throw new u.Error("Corrupt variant set data: sap.ushell.services.Personalization"," ");}return this;};c.prototype.getCurrentVariantKey=function(){return this._sCurrentVariantKey;};c.prototype.setCurrentVariantKey=function(v){this._sCurrentVariantKey=v;};c.prototype.getVariantKeys=function(){return this._oVariantMap.keys();};c.prototype.getVariantNamesAndKeys=function(){return JSON.parse(JSON.stringify(this._oVariantNameMap.entries));};c.prototype.getVariant=function(v){if(typeof v!=="string"){return undefined;}return this._oVariantMap.get(v);};c.prototype.getVariantKeyByName=function(v){if(typeof v!=="string"){return undefined;}return this._oVariantNameMap.get(v);};c.prototype.containsVariant=function(v){if(typeof v!=="string"){return undefined;}return this._oVariantMap.containsKey(v);};c.prototype.addVariant=function(v){var m=0,V="",o={};m=parseInt(this._oVariantMap.keys().sort(function(a,b){return a-b;}).reverse()[0],10);V=isNaN(m)?"0":(m+1).toString();if(this._oVariantMap.containsKey(V)){throw new u.Error("Variant key '"+V+"' already exists in variant set"+this._sVariantSetKey+"': sap.ushell.services.Personalization"," ");}if(typeof v!=="string"){throw new u.Error("Parameter value of sVariantName is not a string: sap.ushell.services.Personalization"," ");}if(this._oVariantNameMap.containsKey(v)){throw new u.Error("Variant name '"+v+"' already exists in variant set '"+this._sVariantSetKey+"' (Old key: '"+this._oVariantNameMap.get(v)+"' New key: '"+V+"') ': sap.ushell.services.Personalization"," ");}o=new P(V,v);this._oVariantMap.put(V,o);this._oVariantNameMap.put(v,V);return o;};c.prototype._serialize=function(){var v=[],V={},o={},t=this;V.currentVariant=this._sCurrentVariantKey;v=this.getVariantKeys();v.forEach(function(s){var a={};a=t._oVariantMap.get(s);o[s]=a._serialize();});V.variants=o;return V;};c.prototype.delVariant=function(v){var V=this._oVariantMap.get(v);if(V){this._oVariantNameMap.remove(V.getVariantName());this._oVariantMap.remove(v);}};return c;});
sap.ui.predefine('sap/ushell/services/_Personalization/Personalizer',["sap/ushell/utils","sap/ui/thirdparty/jquery","sap/base/Log"],function(u,q,L){"use strict";function P(s,a,p,S,c){this._sPersContainer="";this._sPersItem="";this._sPersVariant=null;this._oAdapter=a;this._oService=s;this._oScope=S;this._oComponent=c;if(!p||!p.container||!p.item||typeof p.container!=="string"||typeof p.item!=="string"){throw new u.Error("Invalid input for oPersId: sap.ushell.services.Personalization"," ");}this._sPersContainer=p.container;this._sPersItem=p.item;}P.prototype._getContainer=function(p){if(!this._oGetContainerPromise){this._oGetContainerPromise=this._oService.getContainer(p,this._oScope,this._oComponent);}return this._oGetContainerPromise;};P.prototype.getPersData=function(){var d={},t=this;d=new q.Deferred();this._getContainer(this._sPersContainer).fail(function(){d.reject();}).done(function(c){d.resolve(c.getItemValue(t._sPersItem));});d.fail(function(){L.error("Fail to get Personalization data for Personalizer container: "+t._sPersContainer);});return d.promise();};P.prototype.setPersData=function(v){var d={},t=this;d=new q.Deferred();this._getContainer(this._sPersContainer).fail(function(){d.reject();}).done(function(c){c.setItemValue(t._sPersItem,v);c.save().fail(function(){d.reject();}).done(function(){d.resolve();});});d.fail(function(){L.error("Fail to set Personalization data for Personalizer container: "+t._sPersContainer);});return d.promise();};P.prototype.delPersData=function(){var d={},t=this,m;d=new q.Deferred();this._oService.getPersonalizationContainer(this._sPersContainer).fail(function(){d.reject();}).done(function(c){c.delItem(t._sPersItem);c.save().fail(function(){d.reject();}).done(function(){d.resolve();});});m=d.promise();m.fail(function(){L.error("Fail to delete Personalization data for Personalizer container: "+this._sPersContainer);});return m;};return P;});
sap.ui.predefine('sap/ushell/services/_Personalization/TransientPersonalizer',["sap/ui/thirdparty/jquery"],function(q){"use strict";function T(){this._oValue=undefined;}T.prototype.getPersData=function(){var d;d=new q.Deferred();d.resolve(this._oValue);return d.promise();};T.prototype.setPersData=function(v){var d;d=new q.Deferred();this._oValue=v;d.resolve();return d.promise();};T.prototype.delPersData=function(){var d;d=new q.Deferred();this._oValue=undefined;d.resolve();return d.promise();};T.prototype.setValue=function(v){this._oValue=v;};T.prototype.getValue=function(){return this._oValue;};return T;});
sap.ui.predefine('sap/ushell/services/_Personalization/Variant',["sap/ushell/utils","sap/ushell/services/_Personalization/utils"],function(u,p){"use strict";function V(v,s,a){if(typeof s!=="string"){throw new u.Error("Parameter value of sVariantKey is not a string: sap.ushell.services.Personalization"," ");}if(typeof a!=="string"){throw new u.Error("Parameter value of sVariantName is not a string: sap.ushell.services.Personalization"," ");}this._oVariantSet=v;this._sVariantKey=s;this._sVariantName=a;};V.prototype.getVariantKey=function(){return this._sVariantKey;};V.prototype.getVariantName=function(){return this._sVariantName;};V.prototype.setVariantName=function(v){var o=this._oVariantSet._getVariantSet(),a;if(typeof v!=="string"){throw new u.Error("Parameter value of sVariantName is not a string: sap.ushell.services.Personalization"," ");}if(this._oVariantSet.getVariantKeyByName(v)!==undefined){throw new u.Error("Variant with name '"+v+"' already exists in variant set '"+this._oVariantSet._sVariantSetKey+"': sap.ushell.services.Personalization"," ");}if(Object.prototype.hasOwnProperty.call(o,"variants")&&Object.prototype.hasOwnProperty.call(o.variants,this._sVariantKey)){a=o.variants[this._sVariantKey];a.name=v;this._sVariantName=v;this._oVariantSet._serialize();}else{throw new u.Error("Variant does not longer exist"," ");}};V.prototype.getItemValue=function(i){if(typeof i!=="string"){return undefined;}var v=this._oVariantSet._getVariantSet().variants[this._sVariantKey].variantData;return Object.prototype.hasOwnProperty.call(v,i)&&p.clone(v[i]);};V.prototype.setItemValue=function(i,I){if(typeof i!=="string"){throw new u.Error("Parameter value of sItemKey is not a string: sap.ushell.services.Personalization"," ");}var v,a=this._oVariantSet._getVariantSet().variants&&this._oVariantSet._getVariantSet().variants[this._sVariantKey];if(!a){throw new u.Error("Variant does not longer exist"," ");}if(!a.variantData){a.variantData={};}v=a.variantData;v[i]=p.clone(I);this._oVariantSet._serialize();};V.prototype.containsItem=function(i){if(typeof i!=="string"){return undefined;}var v=this.oAccess.variantSet._getVariantSet().variants[this._sVariantKey].variantData;return Object.prototype.hasOwnProperty.call(v,i);};V.prototype.getItemKeys=function(){var v=this._oVariantSet._getVariantSet().variants[this._sVariantKey].variantData,i,I=[];for(i in v){if(Object.prototype.hasOwnProperty.call(v,i)){I.push(i);}}I.sort();return I;};V.prototype.delItem=function(i){if(typeof i!=="string"){return undefined;}var v=this.oVariantSet._getVariantSet().variants[this._sVariantKey].variantData;delete v[i];this.oVariantSet._serialize();};return V;});
sap.ui.predefine('sap/ushell/services/_Personalization/VariantSet',["sap/ushell/utils","sap/ushell/services/_Personalization/constants.private","sap/ushell/services/_Personalization/PersonalizationContainerVariant","sap/ushell/services/_Personalization/Variant"],function(u,c,P,V){"use strict";function d(v,C){var s,a,o=new u.Map(),b=new u.Map(),e,f;this._oContextContainer=C;this._sVariantSetKey=v;this._oVariantSetData=this._oContextContainer._getItemValueInternal(c.S_VARIANT_PREFIX,this._sVariantSetKey);if(!Object.prototype.hasOwnProperty.call(this._oVariantSetData,"currentVariant")){throw new u.Error("Corrupt variant set data: sap.ushell.services.Personalization"," ");}if(Object.prototype.hasOwnProperty.call(this._oVariantSetData,"variants")){for(s in this._oVariantSetData.variants){if(Object.prototype.hasOwnProperty.call(this._oVariantSetData.variants,s)){a=this._oVariantSetData.variants[s].name;e=this._oVariantSetData.variants[s].variantData;if(o.containsKey(a)){throw new u.Error("Variant name already exists: sap.ushell.services.Personalization"," ");}else{o.put(a,s);f=new P(s,a,e);b.put(s,f);}}}}else{throw new u.Error("Corrupt variant set data: sap.ushell.services.Personalization"," ");}return this;}d.prototype._getVariantSet=function(){return this._oVariantSetData;};d.prototype._serialize=function(){this._oContextContainer._setItemValueInternal(c.S_VARIANT_PREFIX,this._sVariantSetKey,this._oVariantSetData);};d.prototype.getCurrentVariantKey=function(){return this._getVariantSet().currentVariant;};d.prototype.setCurrentVariantKey=function(v){this._getVariantSet().currentVariant=v;this._serialize();};d.prototype.getVariantKeys=function(){var v=new u.Map(),o=this._getVariantSet(this._sVariantSetKey),s;if(Object.prototype.hasOwnProperty.call(o,"variants")){for(s in o.variants){if(Object.prototype.hasOwnProperty.call(o.variants,s)){v.put(s,"dummy");}}}else{throw new u.Error("Corrupt variant set data: sap.ushell.services.Personalization"," ");}return v.keys();};d.prototype.getVariantNamesAndKeys=function(){var v=new u.Map(),o=new u.Map(),a=this._getVariantSet(this._sVariantSetKey),s,b;if(Object.prototype.hasOwnProperty.call(a,"variants")){for(s in a.variants){if(Object.prototype.hasOwnProperty.call(a.variants,s)){b=a.variants[s].name;if(v.containsKey(b)){throw new u.Error("Variant name already exists: sap.ushell.services.Personalization"," ");}else{v.put(b,s);}o.put(s,"dummy");}}}else{throw new u.Error("Corrupt variant set data: sap.ushell.services.Personalization"," ");}return v.entries;};d.prototype.getVariant=function(v){if(typeof v!=="string"){return undefined;}var o=this._getVariantSet(this._sVariantSetKey),s,a,b;if(Object.prototype.hasOwnProperty.call(o,"variants")&&Object.prototype.hasOwnProperty.call(o.variants,v)){s=o.variants[v].name;b=o.variants[v].variantData;a=new V(this,v,s,b);return a;}return undefined;};d.prototype.getVariantKeyByName=function(v){if(typeof v!=="string"){return undefined;}var o=this._getVariantSet(this._sVariantSetKey),s;if(Object.prototype.hasOwnProperty.call(o,"variants")){for(s in o.variants){if(Object.prototype.hasOwnProperty.call(o.variants,s)){if(v===o.variants[s].name){return s;}}}}else{throw new u.Error("Corrupt variant set data: sap.ushell.services.Personalization"," ");}return undefined;};d.prototype.containsVariant=function(v){var o=this._getVariantSet();if(typeof v!=="string"){return undefined;}return Object.prototype.hasOwnProperty.call(o,"variants")&&Object.prototype.hasOwnProperty.call(o.variants,v);};d.prototype.addVariant=function(v){var k=[],m=0,s="",o={};k=this.getVariantKeys();m=parseInt(k.sort(function(a,b){return a-b;}).reverse()[0],10);s=isNaN(m)?"0":(m+1).toString();if(k.indexOf(s)>=0){throw new u.Error("Variant key '"+s+"' already exists in variant set"+this._sVariantSetKey+"': sap.ushell.services.Personalization"," ");}if(typeof v!=="string"){throw new u.Error("Parameter value of sVariantName is not a string: sap.ushell.services.Personalization"," ");}if(this.getVariantKeyByName(v)!==undefined){throw new u.Error("Variant name '"+v+"' already exists in variant set '"+this._sVariantSetKey+"' (Old key: '"+this.getVariantKeyByName(v)+"' New key: '"+s+"') ': sap.ushell.services.Personalization"," ");}o=new V(this,s,v);this._getVariantSet(this._sVariantSetKey).variants[s]={name:v,variantData:{}};this._serialize();return o;};d.prototype.delVariant=function(v){var o;if(typeof v!=="string"){return undefined;}o=this._getVariantSet();if(o&&o.variants){delete this._oVariantSetData.variants[v];}this._serialize();};return d;});
sap.ui.predefine('sap/ushell/services/_Personalization/VariantSetAdapter',["sap/ushell/services/_Personalization/constants.private","sap/ushell/services/_Personalization/utils","sap/ushell/services/_Personalization/VariantSet"],function(c,u,V){"use strict";function a(C){this._oContextContainer=C;};a.prototype.save=function(){return this._oContextContainer.save();};a.prototype.getVariantSetKeys=function(){var p=this._oContextContainer._getInternalKeys(),v=[];v=p.map(function(e){return e.replace(c.S_VARIANT_PREFIX,"","");});return v;};a.prototype.containsVariantSet=function(v){return this.getVariantSetKeys().indexOf(v)>=0;};a.prototype.getVariantSet=function(v){var o=this._oContextContainer._getItemValueInternal(c.S_VARIANT_PREFIX,v);if(!o){return undefined;}return new V(v,this._oContextContainer);};a.prototype.addVariantSet=function(v){var e={},o={};if(this.containsVariantSet(v)){throw new u.Error("Container already contains a variant set with key '"+v+"': sap.ushell.services.Personalization"," ");}e={currentVariant:null,variants:{}};this._oContextContainer._setItemValueInternal(c.S_VARIANT_PREFIX,v,e);o=new V(v,this._oContextContainer);return o;};a.prototype.delVariantSet=function(v){this._oContextContainer._delItemInternal(c.S_VARIANT_PREFIX,v);};return a;});
sap.ui.predefine('sap/ushell/services/_Personalization/WindowAdapter',["sap/ui/thirdparty/jquery"],function(q){"use strict";var W=function(p,b){this._oBackendAdapter=b;if(b){this.supportsGetWithoutSubsequentLoad=b.supportsGetWithoutSubsequentLoad;}};W.prototype.data={};W.prototype.getAdapterContainer=function(c,s,a){var b=this._oBackendAdapter&&this._oBackendAdapter.getAdapterContainer(c,s,a);var d=sap.ui.requireSync("sap/ushell/services/_Personalization/WindowAdapterContainer");return new d(c,s,b);};W.prototype.delAdapterContainer=function(c,s){var d=new q.Deferred();delete W.prototype.data[c];if(this._oBackendAdapter){this._oBackendAdapter.delAdapterContainer(c,s).done(function(){d.resolve();}).fail(function(m){d.reject(m);});}else{d.resolve();}return d.promise();};return W;});
sap.ui.predefine('sap/ushell/services/_Personalization/WindowAdapterContainer',["sap/ushell/utils","sap/ushell/services/_Personalization/utils","sap/ushell/services/_Personalization/WindowAdapter","sap/ui/thirdparty/jquery"],function(u,p,W,q){"use strict";function a(C,s,b){this._oBackendContainer=b;this._oItemMap=new u.Map();this._sContainerKey=C;}function c(C){var i,k=C.getItemKeys();for(i=0;i<k.length;i=i+1){C.delItem(k[i]);}}a.prototype.load=function(){var d=new q.Deferred(),i,k,t=this;if(W.prototype.data[this._sContainerKey]){this._oItemMap.entries=p.clone(W.prototype.data[this._sContainerKey]);if(this._oBackendContainer){c(this._oBackendContainer);k=this.getItemKeys();for(i=0;i<k.length;i=i+1){this._oBackendContainer.setItemValue(k[i],this._oItemMap.get(k[i]));}}d.resolve();}else if(this._oBackendContainer){this._oBackendContainer.load().done(function(){k=t._oBackendContainer.getItemKeys();for(i=0;i<k.length;i=i+1){t.setItemValue(k[i],t._oBackendContainer.getItemValue(k[i]));}W.prototype.data[t._sContainerKey]=p.clone(t._oItemMap.entries);d.resolve();}).fail(function(m){d.reject(m);});}else{W.prototype.data[this._sContainerKey]={};d.resolve();}return d.promise();};a.prototype.save=function(){var d=new q.Deferred();W.prototype.data[this._sContainerKey]=p.clone(this._oItemMap.entries);if(this._oBackendContainer){this._oBackendContainer.save().done(function(){d.resolve();}).fail(function(m){d.reject(m);});}else{d.resolve();}return d.promise();};a.prototype.getItemKeys=function(){return this._oItemMap.keys();};a.prototype.containsItem=function(i){this._oItemMap.containsKey(i);};a.prototype.getItemValue=function(i){return this._oItemMap.get(i);};a.prototype.setItemValue=function(i,I){this._oItemMap.put(i,I);if(this._oBackendContainer){this._oBackendContainer.setItemValue(i,I);}};a.prototype.delItem=function(i){this._oItemMap.remove(i);if(this._oBackendContainer){this._oBackendContainer.delItem(i);}};return a;});
sap.ui.predefine('sap/ushell/services/_Personalization/constants',[],function(){"use strict";return{keyCategory:{"FIXED_KEY":"FIXED_KEY","GENERATED_KEY":"GENERATED_KEY"},writeFrequency:{"HIGH":"HIGH","LOW":"LOW"}};});
sap.ui.predefine('sap/ushell/services/_Personalization/constants.private',[],function(){"use strict";return{S_CONTAINER_PREFIX:"sap.ushell.personalization#",S_ITEM_PREFIX:"ITEM#",S_VARIANT_PREFIX:"VARIANTSET#",S_ABAPTIMESTAMPFORMAT:"yyyyMMddHHmmss",S_ADMIN_PREFIX:"ADMIN#",S_ITEMKEY_SCOPE:"sap-ushell-container-scope",S_ITEMKEY_STORAGE:"sap-ushell-container-storageUTCTimestamp",S_ITEMKEY_EXPIRE:"sap-ushell-container-expireUTCTimestamp"};});
sap.ui.predefine('sap/ushell/services/_Personalization/utils',["sap/ushell/services/_Personalization/constants","sap/ushell/services/_Personalization/constants.private","sap/ui/thirdparty/jquery"],function(c,p,q){"use strict";function a(e,k){var m;for(m in k){if(typeof k[m]!=="function"){if(k.hasOwnProperty(m)){if(m===e){return true;}}}}return false;}function b(C){if(C.length>40){q.sap.log.error("Personalization Service container key (\""+C+"\") should be less than 40 characters [current :"+C.length+"]");}return p.S_CONTAINER_PREFIX+C;}function d(o,L,t,P){if(o&&o.validity===0&&!L){return t;}return P;}function i(){var r=window["sap-ushell-config"]&&window["sap-ushell-config"].services&&window["sap-ushell-config"].services.ShellNavigation&&window["sap-ushell-config"].services.ShellNavigation.config&&window["sap-ushell-config"].services.ShellNavigation.config.reload;return r;}function f(s,L){var A={validity:Infinity,keyCategory:c.keyCategory.GENERATED_KEY,writeFrequency:c.writeFrequency.HIGH,clientStorageAllowed:false};if(s){A.validity=s.validity;if(A.validity===null||A.validity===undefined||typeof A.validity!=="number"){A.validity=Infinity;}if(!(typeof A.validity==="number"&&((A.validity>=0&&A.validity<1000)||A.validity===Infinity))){A.liftime=Infinity;}A.keyCategory=a(s.keyCategory,c.keyCategory)?s.keyCategory:A.keyCategory;A.writeFrequency=a(s.writeFrequency,c.writeFrequency)?s.writeFrequency:A.writeFrequency;if(typeof s.clientStorageAllowed==="boolean"&&(s.clientStorageAllowed===true||s.clientStorageAllowed===false)){A.clientStorageAllowed=s.clientStorageAllowed;}}if(A.validity===0&&L){A.validity=1440;}return A;}function l(A){if(!A.lazy){return q.when(A.instance);}try{return A.create.call(null);}catch(e){return new q.Deferred().reject(e).promise();}}function g(C){if(!C){return false;}var A=C.getManifestObject();if(!A){return false;}var s=A.getEntry("/sap.ui5/appVariantId");if(!s){return false;}var e=A.getComponentName();if(s===e){return false;}return true;}function h(o){if(o===undefined){return undefined;}try{return JSON.parse(o);}catch(e){return undefined;}}function j(o){if(o===undefined){return undefined;}try{return JSON.parse(JSON.stringify(o));}catch(e){return undefined;}}return{adjustScope:f,cloneToObject:h,clone:j,addContainerPrefix:b,pickAdapter:d,isAppVariant:g,loadAdapter:l,isLaunchpadReload:i};});
sap.ui.predefine('sap/ushell/services/_PluginManager/Extensions',['sap/ushell/services/_PluginManager/HeaderExtensions'],function(H){"use strict";var O={"Header":g};function g(){return Promise.resolve(H);}function a(e){var E=O[e];if(!E){return Promise.reject("Unsupported extension: '"+e+"'");}return E();}return a;});
sap.ui.predefine('sap/ushell/services/_PluginManager/HeaderExtensions',['sap/ushell/EventHub'],function(E){"use strict";function s(i,c,a){E.emit("setHeaderCentralAreaElement",{id:i,currentState:c,states:a});}return{setHeaderCentralAreaElement:s};});
sap.ui.predefine('sap/ushell/services/_Ui5ComponentLoader/utils',["sap/ui/thirdparty/jquery","sap/base/util/UriParameters"],function(q,U){"use strict";var i=sap.ushell&&sap.ushell.Container&&sap.ushell.Container.getLogonSystem().getPlatform()==="abap";var O={name:"core-ext-light",count:4,debugName:"core-ext-light",path:i?"sap/ushell_abap/bootstrap/evo/":"sap/fiori/"};function c(C,o){var D=new q.Deferred();C.componentData=o;C.async=true;sap.ui.component(C).then(function(n){D.resolve(n);},function(E){D.reject(E);});return D.promise();}function s(S){var A=(S&&S.hasOwnProperty("amendedLoading"))?S.amendedLoading:true;return A;}function a(A){var L=true;if(A.hasOwnProperty("loadCoreExt")){L=A.loadCoreExt;}return L;}function b(A,S,n){var L=true;if(A.hasOwnProperty("loadDefaultDependencies")){L=A.loadDefaultDependencies;}if(S&&S.hasOwnProperty("loadDefaultDependencies")){L=L&&S.loadDefaultDependencies;}L=L&&n;return L;}function d(P){var S=P.semanticObject||null;var A=P.action||null;if(!S||!A){return null;}return"application-"+S+"-"+A+"-component";}function u(n){return n&&n.indexOf("?")>=0;}function r(n){if(!n){return n;}var I=n.indexOf("?");if(I>=0){return n.slice(0,I);}return n;}function e(){return q.sap.isDeclared("sap.fiori.core",true)||q.sap.isDeclared("sap.fiori.core-ext-light",true);}function l(A,E,n,o,C){var t="The issue is most likely caused by application "+A,w="Failed to load UI5 component with properties: '"+C+"'.";if(o){w+=" Error likely caused by:\n"+o;}else{w+=" Error: '"+E+"'";}if(n==="parsererror"){t+=", as one or more of its resources could not be parsed";}t+=". Please create a support incident and assign it to the support component of the respective application.";q.sap.log.error(t,w,A);}function g(n){var P=new U(n||window.location.href).mParams,x=P["sap-xapp-state"],R;delete P["sap-xapp-state"];R={startupParameters:P};if(x){R["sap-xapp-state"]=x;}return R;}function f(A,M){if(!Array.isArray(M)){return;}M.forEach(function(o){var S=String.prototype.toLowerCase.call(o.severity||"");S=["trace","debug","info","warning","error","fatal"].indexOf(S)!==-1?S:"error";q.sap.log[S](o.text,o.details,A);});}function p(C){var B,o={name:"CoreResourcesComplement"};if(v(C)){B=C;}else{B=O;}if(window["sap-ui-debug"]===true){o.aResources=[B.path+B.debugName+".js"];}else{o.aResources=h(B.name,B.path,B.count);}return o;}function h(B,P,R){var n=arguments[3]||[],o=P;if(typeof B!=="string"||typeof o!=="string"||typeof R!=="number"){q.sap.log.error("Ui5ComponentLoader: _buildBundleResourcesArray called with invalid arguments");return null;}if(o.substr(-1)!=="/"){o+="/";}if(R===1){n.push(o+B+".js");}if(n.length>=R){return n;}n.push(o+B+"-"+n.length+".js");return h(B,o,R,n);}function v(C){var n=true;if(!C){return false;}if(!C.name||typeof C.name!=="string"){q.sap.log.error("Ui5ComponentLoader: Configured CoreResourcesComplement Bundle has incorrect 'name' property");n=false;}if(!C.count||typeof C.count!=="number"){q.sap.log.error("Ui5ComponentLoader: Configured CoreResourcesComplement Bundle has incorrect 'count' property");n=false;}if(!C.debugName||typeof C.debugName!=="string"){q.sap.log.error("Ui5ComponentLoader: Configured CoreResourcesComplement Bundle has incorrect 'debugName' property");n=false;}if(!C.path||typeof C.path!=="string"){q.sap.log.error("Ui5ComponentLoader: Configured CoreResourcesComplement Bundle has incorrect 'path' property");n=false;}return n;}function j(B){if(!B||!Array.isArray(B.aResources)||!B.name){q.sap.log.error("Ui5ComponentLoader: loadBundle called with invalid arguments");return null;}var P=[],D=new q.Deferred();B.aResources.forEach(function(R){P.push(q.sap._loadJSResourceAsync(R));});Promise.all(P).then(function(){D.resolve();}).catch(function(){q.sap.log.error("Ui5ComponentLoader: failed to load bundle: "+B.name);D.reject();});return D.promise();}function k(A,L,w,o,n,C,t,x){var y=q.extend(true,{},o);if(!y.asyncHints){y.asyncHints=L?{"libs":["sap.ca.scfld.md","sap.ca.ui","sap.me","sap.ui.unified"]}:{};}if(A){y.asyncHints.preloadBundles=y.asyncHints.preloadBundles||[];y.asyncHints.preloadBundles=y.asyncHints.preloadBundles.concat(x.aResources);}if(w){y.asyncHints.waitFor=w;}if(!y.name){y.name=n;}if(C){y.url=r(C);}if(t){y.id=t;}return y;}function m(B,C,A,t){var o=q.extend(true,{startupParameters:{}},B);if(A){o.config=A;}if(t){o.technicalParameters=t;}if(u(C)){var n=g(C);o.startupParameters=n.startupParameters;if(n["sap-xapp-state"]){o["sap-xapp-state"]=n["sap-xapp-state"];}}return o;}return{constructAppComponentId:d,getParameterMap:g,isCoreExtAlreadyLoaded:e,logAnyApplicationDependenciesMessages:f,logInstantiateComponentError:l,shouldLoadCoreExt:a,shouldLoadDefaultDependencies:b,shouldUseAmendedLoading:s,urlHasParameters:u,removeParametersFromUrl:r,createUi5Component:c,prepareBundle:p,loadBundle:j,createComponentProperties:k,createComponentData:m,buildBundleResourcesArray:h};},false);
sap.ui.predefine('sap/ushell/ui/AppContainer',["sap/ui/thirdparty/jquery","sap/ui/core/Control","sap/ui/Device","sap/base/Log","./AppContainerRenderer"],function(q,C,D,L){"use strict";var A=C.extend("sap.ushell.ui.AppContainer",{metadata:{library:"sap.ushell",properties:{visible:{type:"boolean",group:"Appearance",defaultValue:true}},aggregations:{pages:{type:"sap.ui.core.Control",multiple:true,singularName:"pages"}},events:{beforeNavigate:{parameters:{fromId:{type:"string"},from:{type:"sap.ui.core.Control"},toId:{type:"string"},to:{type:"sap.ui.core.Control"}}},afterNavigate:{parameters:{fromId:{type:"string"},from:{type:"sap.ui.core.Control"},toId:{type:"string"},to:{type:"sap.ui.core.Control"}}}}}});A.prototype.addPages=function(c){if(this.getPages().indexOf(c)>-1){return;}c.toggleStyleClass("hidden",true);this.addAggregation("pages",c,true);var r,d=this.getDomRef();if(d){r=sap.ui.getCore().createRenderManager();r.render(c,d);r.destroy();}};A.prototype.addCenterViewPort=A.prototype.addPages;A.prototype.removeCenterViewPort=function(i){this.removeAggregation("pages",i,true);};A.prototype.getCurrentCenterPage=function(){return this.getPages().reduce(function(c,p){return(p&&!p.hasStyleClass("hidden"))?p.getId():c;},null);};A.prototype.navTo=function(v,p){var t=sap.ui.getCore().byId(p),c=this.getCurrentCenterPage(),o=sap.ui.getCore().byId(c)||null,h=sap.ushell.Container.getRenderer("fiori2").byId("Shell-home-component-container"),H=h&&h.getId(),N=c&&(H===c),b=H===p;if(v!=="centerViewPort"){L.error("Navigation to "+v+" is not allowed in Fiori3");return;}if(this.getPages().indexOf(t)===-1){L.error("AppContainer: invalid navigation target");return;}if(D.system.desktop&&N){this._saveFocus();}if(c!==p){this.fireBeforeNavigate({toId:p,to:t,fromId:c,from:o});}this.getPages().forEach(function(P){if(P){P.toggleStyleClass("hidden",P.getId()!==p);}});if(D.system.desktop&&b){this._restoreFocus();}if(c!==p){this.fireAfterNavigate({toId:p,to:t,fromId:c,from:o});}};A.prototype._restoreFocus=function(){var c;if(this.sLastFocusId){sap.ushell.renderers.fiori2.AccessKeysHandler.registerAppKeysHandler(this.fnLastAppKeyHandler);c=sap.ui.getCore().byId(this.sLastFocusId);if(c){c.focus();}}};A.prototype._saveFocus=function(){var a=q(document.activeElement).control(0);this.sLastFocusId=a?a.getId():null;this.fnLastAppKeyHandler=sap.ushell.renderers.fiori2.AccessKeysHandler.getAppKeysHandler();};A.prototype.getViewPortControl=function(v,c){return this.getPages().reduce(function(o,p){return(v==="centerViewPort"&&p&&p.getId()===c)?p:o;},null);};var n=function(){};A.prototype.switchState=n;A.prototype._handleSizeChange=n;A.prototype.shiftCenterTransitionEnabled=n;A.prototype.shiftCenterTransition=n;A.prototype.addLeftViewPort=n;A.prototype.addRightViewPort=n;A.prototype.attachAfterSwitchState=n;A.prototype.detachAfterSwitchState=n;A.prototype.attachAfterSwitchStateAnimationFinished=n;A.prototype.detachAfterSwitchStateAnimationFinished=n;A.prototype.getCurrentState=function(){return"Center";};return A;});
sap.ui.predefine('sap/ushell/ui/AppContainerRenderer',[],function(){"use strict";var A={};A.render=function(r,c){if(!c.getVisible()){return;}r.write("<div");r.writeControlData(c);r.write(">");c.getPages().forEach(function(p){r.renderControl(p);});r.write("</div>");};return A;},true);
sap.ui.predefine('sap/ushell/ui/ShellHeader',["sap/ui/core/Control","sap/ui/core/theming/Parameters","sap/ui/Device","sap/ui/dom/units/Rem","sap/ushell/ui/shell/ShellAppTitle","./ShellHeaderRenderer"],function(C,T,D,R){"use strict";var s="sapUshellShellShowSearchOverlay";var _=0;var a;var b="data:image/png;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";var c=sap.ui.require.toUrl("sap/ushell")+"/themes/base/img/sap_55x27.png";var S=C.extend("sap.ushell.ui.ShellHeader",{metadata:{properties:{logo:{type:"sap.ui.core.URI",defaultValue:""},showLogo:{type:"boolean",defaultValue:true},homeUri:{type:"sap.ui.core.URI",defaultValue:"#"},searchState:{type:"string",defaultValue:"COL"},ariaLabel:{type:"string",defaultValue:undefined},centralAreaElement:{type:"string",defaultValue:null},title:{type:"string",defaultValue:""}},aggregations:{headItems:{type:"sap.ushell.ui.shell.ShellHeadItem",multiple:true},headEndItems:{type:"sap.ushell.ui.shell.ShellHeadItem",multiple:true},search:{type:"sap.ui.core.Control",multiple:false},appTitle:{type:"sap.ushell.ui.shell.ShellAppTitle",multiple:false}},associations:{shellLayout:{type:"sap.ui.base.ManagedObject",multiple:false}},events:{searchSizeChanged:{}}}});S.prototype.getShellLayoutControl=function(){return sap.ui.getCore().byId(this.getShellLayout());};S.prototype.createUIArea=function(i){var h=window.document.getElementById("shell-hdrcntnt");var d=window.document.getElementById(i||"canvas");if(d&&!h){d.insertAdjacentHTML("beforebegin","<header id=\"shell-hdr\" class=\"sapContrastPlus sapUshellShellHead\">"+"</header>");if(!this.getVisible()){this.setVisible(false);}this.placeAt("shell-hdr");}};S.prototype.SearchState={COL:"COL",EXP:"EXP",EXP_S:"EXP_S"};S.prototype.init=function(){D.media.attachHandler(this.refreshLayout,this,D.media.RANGESETS.SAP_STANDARD);D.resize.attachHandler(this.refreshLayout,this);this.data("sap-ui-fastnavgroup","true",true);this._fnFocusListener=this._handleFocus.bind(this);};S.prototype.exit=function(){D.media.detachHandler(this.refreshLayout,this,D.media.RANGESETS.SAP_STANDARD);D.resize.detachHandler(this.refreshLayout,this);var o=window.document.getElementById("shell-hdr");if(o){o.parentElement.removeChild(o);}};S.prototype._toggleFocusListener=function(t){var A=window.document.getElementById("sapUshellHeaderAccessibilityHelper");if(A){A[t?"addEventListener":"removeEventListener"]("focus",this._fnFocusListener);}};S.prototype.setAccessKeyHandler=function(A){this._accessKeyHandler=A;};S.prototype._handleFocus=function(e){var t=this;function d(){if(t._accessKeyHandler.bForwardNavigation){var h=t.getHeadItems();if(h.length>0){h[0].focus();}else{t.getAppTitle().focus();}}else{var H=t.getHeadEndItems();if(H.length>0){H[H.length-1].focus();}else{t.getAppTitle().focus();}}t._accessKeyHandler.fromOutside=false;}if(this._accessKeyHandler){if(this._accessKeyHandler.fromOutside||this._accessKeyHandler.bForwardNavigation){d();}else{this._accessKeyHandler._handleEventUsingExternalKeysHandler(e);var A=window.document.getElementById("sapUshellHeaderAccessibilityHelper");if(window.document.activeElement===A){var f=window.document.querySelectorAll("#canvas [tabindex='0']");if(f.length){f[f.length-1].focus();}else{d();return;}}this._accessKeyHandler.bFocusOnShell=false;}}};S.prototype.onsapspace=function(e){if(e.target===this.getDomRef("logo")){window.location.href=e.target.href;}};S.prototype.onBeforeRendering=function(){this._toggleFocusListener(false);};S.prototype.onAfterRendering=function(){var h=this.getDomRef();if(!a&&h.parentElement.getBoundingClientRect().height>0){h.style.visibility="hidden";h.style.height="2.75rem";return;}this.refreshLayout();this._toggleFocusListener(true);};S.prototype.onThemeChanged=function(e){a=e.theme;this.invalidate();};S.prototype.getLogo=function(){return this.getProperty("logo")||(sap.ui.getCore().isThemeApplied()?T._getThemeImage()||c:b);};S.prototype.refreshLayout=function(){if(!this.getDomRef()){return;}this._setAppTitleFontSize();if(this.getSearchVisible()){var o=this.getDomRef("hdr-search");o.style.display="none";this._hideElementsForSearch();o.style.display="";o.style["max-width"]=_+"rem";this.fireSearchSizeChanged({remSize:R.fromPx(o.getBoundingClientRect().width),isFullWidth:this.isPhoneState()});}};S.prototype._setAppTitleFontSize=function(){var B=this.getDomRef("hdr-begin"),A=window.document.getElementById("shellAppTitle"),d="sapUshellHeadTitleWithSmallerFontSize";if(B&&A){A.classList.remove(d);A.style.overflow="visible";var o=B.getBoundingClientRect(),i=o.x+o.width,e=A.getBoundingClientRect(),f=e.x+e.width;if(f>i){A.classList.add(d);}A.style.overflow="";}};S.prototype.removeHeadItem=function(i){if(typeof i==="number"){i=this.getHeadItems()[i];}this.removeAggregation("headItems",i);};S.prototype.addHeadItem=function(i){this.addAggregation("headItems",i);};S.prototype.isPhoneState=function(){var d=D.media.getCurrentRange(D.media.RANGESETS.SAP_STANDARD).name;var e=window.document.getElementById(this.getId()).getBoundingClientRect().width>_;return(D.system.phone||d==="Phone"||!e);};S.prototype.isLSize=function(){return D.media.getCurrentRange(D.media.RANGESETS.SAP_STANDARD).name==="Desktop";};S.prototype.setSearchState=function(d,m,w){if(this.SearchState[d]&&this.getSearchState()!==d){if(typeof m==="boolean"){w=m;m=undefined;}this.setProperty("searchState",d,false);var e=(d!=="COL");var f=this.getShellLayoutControl();if(f){f.toggleStyleClass(s,e&&w);}_=e?m||35:0;}};S.prototype._hideElementsForSearch=function(){var n,o=this.getDomRef("hdr-search-container"),B=this.getDomRef("hdr-begin"),d=this.getDomRef("hdr-center"),e=this.getDomRef("hdr-end");if(this.getSearchState()==="EXP"||this.isPhoneState()){n=R.toPx(_+3);}else{n=R.toPx(9+0.5);}var E=[d,B,e];Array.prototype.forEach.call(B.childNodes,function(g){E.splice(1,0,g);});var f;for(var i=0;i<E.length-1;i++){f=E[i];if(f){if(n>o.getBoundingClientRect().width){f.style.display="none";B.style.flexBasis="auto";continue;}return;}}if(R.toPx(_)>o.getBoundingClientRect().width){e.style.display="none";}};S.prototype.getSearchWidth=function(){return _;};S.prototype.isHomepage=function(){return!!window.hasher&&"#"+window.hasher.getHash()===this.getHomeUri();};S.prototype.getSearchVisible=function(){return this.getSearchState()!==this.SearchState.COL;};S.prototype.getCentralControl=function(){return sap.ui.getCore().byId(this.getCentralAreaElement());};S.prototype.setNoLogo=function(){this.setLogo(b);};S.prototype._getLeanMode=function(){return(window.location.search||"").indexOf("appState=lean")>=0;};return S;},true);
sap.ui.predefine('sap/ushell/ui/ShellHeaderRenderer',["sap/ushell/resources","sap/ui/Device"],function(r,D){"use strict";var S={apiVersion:2};S.render=function(a,s){var i=s.getId();var c=s.getCentralControl();a.openStart("div",s);if(!s.getVisible()){a.style("display","none");}a.class("sapUshellShellHeader");a.class("sapUshellShellCntnt");a.openEnd();a.openStart("div");a.attr("id","sapUshellHeaderAccessibilityHelper");a.attr("tabindex","0");a.openEnd();a.close("div");a.openStart("div");a.attr("id",i+"-hdr-begin");a.class("sapUshellShellHeadBegin");if(c){a.class("sapUshellHeadWithCenter");}a.openEnd();this.renderHeaderItems(a,s);this.renderLogo(a,s);this.renderTitle(a,s);a.close("div");if(c){a.openStart("div",c);a.attr("id",i+"-hdr-center");a.class("sapUshellShellHeadCenter");a.openEnd();a.close("div");}a.openStart("div");a.attr("id",i+"-hdr-search-container");a.class("sapUshellShellHeadSearchContainer");a.openEnd();this.renderSearch(a,s);a.close("div");a.openStart("div");a.attr("id",i+"-hdr-end");a.class("sapUshellShellHeadEnd");a.openEnd();this.renderHeaderEndItems(a,s);a.close("div");a.close("div");};S.renderSearch=function(a,s){var o=s.getSearch();a.openStart("div");a.attr("id",s.getId()+"-hdr-search");a.class("sapUshellShellSearch");if(D.system.desktop){a.class("sapUshellShellSearch");}a.style("max-width",s.getSearchWidth()+"rem");if(s.getSearchState()==="COL"){a.style("display","none");}a.openEnd();if(o){a.renderControl(o);}a.close("div");};S.renderTitle=function(a,s){var t=s.getTitle();a.renderControl(s.getAppTitle());if(t){a.openStart("div");a.attr("id",s.getId()+"-hdr-shell-title");a.class(s.getAppTitle()?"sapUshellShellHeadSubtitle":"sapUshellShellHeadTitle");a.openEnd();a.openStart("span");a.class("sapUshellHeadTitle");a.openEnd();a.text(t);a.close("span");a.close("div");}};S.renderHeaderItems=function(a,h){var I=h.getHeadItems();for(var i=0;i<I.length;i++){if(I[i].getId()==="homeBtn"&&h.getShowLogo()){continue;}a.renderControl(I[i]);}};S.renderHeaderEndItems=function(a,h){h.getHeadEndItems().forEach(a.renderControl);};S.renderLogo=function(a,h){if(!h.getShowLogo()){return;}var l=h._getLeanMode();var A=r.i18n.getText("homeBtn_tooltip"),t=r.i18n.getText("homeBtn_tooltip_text"),i=h.getLogo();a.openStart(l?"div":"a");a.attr("id",h.getId()+"-logo");a.class("sapUshellShellIco");if(l){a.class("sapUshellLean");}else if(h.isHomepage()){a.class("sapUshellLogoLinkDisabled");}else{a.attr("tabindex","0");a.attr("title",t);a.attr("href",h.getHomeUri());a.accessibilityState({label:A,role:"button"});}a.openEnd();a.voidStart("img");a.attr("id",h.getId()+"-icon");a.attr("role","presentation");a.attr("src",i);a.voidEnd();a.close(l?"div":"a");};return S;},true);
sap.ui.predefine('sap/ushell/ui/footerbar/ContactSupportButton',["sap/ushell/resources","sap/ushell/ui/launchpad/AccessibilityCustomData","sap/ushell/ui/launchpad/ActionItem","sap/ui/thirdparty/jquery","sap/base/Log","sap/ui/Device","./ContactSupportButtonRenderer"],function(r,A,a,q,L,D){"use strict";var C=a.extend("sap.ushell.ui.footerbar.ContactSupportButton",{metadata:{library:"sap.ushell"}});C.prototype.init=function(){if(a.prototype.init){a.prototype.init.apply(this,arguments);}this.setIcon("sap-icon://email");this.setText(r.i18n.getText("contactSupportBtn"));this.attachPress(this.showContactSupportDialog);this.setEnabled();};C.prototype.showContactSupportDialog=function(){sap.ui.require(["sap/ui/layout/form/SimpleForm","sap/ui/layout/form/SimpleFormLayout","sap/m/TextArea","sap/m/Link","sap/m/Label","sap/m/Text","sap/m/Dialog","sap/m/Button","sap/ushell/UserActivityLog"],function(S,b,T,c,d,e,f,B,U){var g="",u="",h="",i=[],o,j;j=function(){this.oDialog.removeContent(this.oBottomSimpleForm.getId());this.oBottomSimpleForm.destroy();if(this.oClientContext.navigationData.applicationInformation){g=this.oClientContext.navigationData.applicationInformation.applicationType;u=this.oClientContext.navigationData.applicationInformation.url;h=this.oClientContext.navigationData.applicationInformation.additionalInformation;}i.push(new e({text:this.translationBundle.getText("loginDetails")}).addStyleClass("sapUshellContactSupportHeaderInfoText"));i.push(new d({text:this.translationBundle.getText("userFld")}));i.push(new e({text:this.oClientContext.userDetails.fullName||""}));i.push(new d({text:this.translationBundle.getText("serverFld")}));i.push(new e({text:window.location.host}));if(this.oClientContext.userDetails.eMail&&this.oClientContext.userDetails.eMail!==""){i.push(new d({text:this.translationBundle.getText("eMailFld")}));i.push(new e({text:this.oClientContext.userDetails.eMail||""}));}i.push(new d({text:this.translationBundle.getText("languageFld")}));i.push(new e({text:this.oClientContext.userDetails.Language||""}));if(this.oClientContext.shellState==="app"||this.oClientContext.shellState==="standalone"){i.push(new e({text:""}));i.push(new e({text:this.translationBundle.getText("navigationDataFld")}).addStyleClass("sapUshellContactSupportHeaderInfoText"));i.push(new d({text:this.translationBundle.getText("hashFld")}));i.push(new e({text:this.oClientContext.navigationData.navigationHash||""}));i.push(new e({text:""}));i.push(new e({text:this.translationBundle.getText("applicationInformationFld")}).addStyleClass("sapUshellContactSupportHeaderInfoText"));i.push(new d({text:this.translationBundle.getText("applicationTypeFld")}));i.push(new e({text:g}));i.push(new d({text:this.translationBundle.getText("urlFld")}));i.push(new e({text:u}));i.push(new d({text:this.translationBundle.getText("additionalInfoFld")}));i.push(new e({text:h}));}this.oBottomSimpleForm=new S("technicalInfoBox",{layout:b.ResponsiveLayout,content:i}).addStyleClass("sapUshellTechnicalInfoBox");if(D.os.ios&&D.system.phone){this.oBottomSimpleForm.addStyleClass("sapUshellContactSupportFixWidth");}o=this.oBottomSimpleForm.onAfterRendering;this.oBottomSimpleForm.onAfterRendering=function(){o.apply(this,arguments);var n=q(this.getDomRef());n.attr("tabIndex",0);setTimeout(function(){this.focus();}.bind(n),700);};this.oDialog.addContent(this.oBottomSimpleForm);}.bind(this);this._embedLoginDetailsInBottomForm=j;this.translationBundle=r.i18n;this.oClientContext=U.getMessageInfo();this.oLink=new c({text:this.translationBundle.getText("technicalDataLink")});this.oBottomSimpleForm=new S("bottomForm",{editable:false,content:[this.oLink]});this.sendButton=new B("contactSupportSendBtn",{text:this.translationBundle.getText("sendBtn"),enabled:false,press:function(){var s=sap.ushell.Container.getService("SupportTicket"),t=this.oTextArea.getValue(),k={text:t,clientContext:this.oClientContext},p=s.createTicket(k);p.done(function(){sap.ushell.Container.getService("Message").info(this.translationBundle.getText("supportTicketCreationSuccess"));}.bind(this));p.fail(function(){sap.ushell.Container.getService("Message").error(this.translationBundle.getText("supportTicketCreationFailed"));}.bind(this));this.oDialog.close();}.bind(this)});this.cancelButton=new B("contactSupportCancelBtn",{text:this.translationBundle.getText("cancelBtn"),press:function(){this.oDialog.close();}.bind(this)});this.oTextArea=new T("textArea",{rows:7,liveChange:function(){if(/\S/.test(this.oTextArea.getValue())){this.sendButton.setEnabled(true);}else{this.sendButton.setEnabled(false);this.oTextArea.setValue("");}}.bind(this)});this.oTopSimpleForm=new S("topForm",{editable:false,content:[this.oTextArea],layout:b.ResponsiveGridLayout});this.oDialog=new f({id:"ContactSupportDialog",title:this.translationBundle.getText("contactSupportBtn"),contentWidth:"29.6rem",leftButton:this.sendButton,rightButton:this.cancelButton,initialFocus:"textArea",afterOpen:function(){q("#textArea").on("focusout",function(){window.scrollTo(0,0);});},afterClose:function(){this.oDialog.destroy();if(window.document.activeElement&&window.document.activeElement.tagName==="BODY"){window.document.getElementById("meAreaHeaderButton").focus();}}.bind(this)}).addStyleClass("sapUshellContactSupportDialog");this.oTextArea.setPlaceholder(this.translationBundle.getText("txtAreaPlaceHolderHeader"));this.oLink.attachPress(j.bind(this));this.oDialog.addCustomData(new A({key:"aria-label",value:this.translationBundle.getText("ContactSupportArialLabel"),writeToDom:true}));this.oDialog.addContent(this.oTopSimpleForm);this.oDialog.addContent(this.oBottomSimpleForm);this.oDialog.open();}.bind(this));};C.prototype.setEnabled=function(e){if(!sap.ushell.Container){if(this.getEnabled()){L.warning("Disabling 'Contact Support' button: unified shell container not initialized",null,"sap.ushell.ui.footerbar.ContactSupportButton");}e=false;}a.prototype.setEnabled.call(this,e);};return C;});
sap.ui.predefine('sap/ushell/ui/footerbar/ContactSupportButtonRenderer',['sap/ui/core/Renderer','sap/m/ButtonRenderer'],function(R,B){"use strict";var C=R.extend(B);return C;},true);
sap.ui.predefine('sap/ushell/ui/footerbar/EndUserFeedback',["sap/ushell/resources","sap/ushell/ui/launchpad/AccessibilityCustomData","sap/ushell/ui/launchpad/ActionItem","sap/ushell/services/AppConfiguration","sap/ui/thirdparty/jquery","sap/base/Log","sap/ushell/utils","sap/ui/model/json/JSONModel","sap/ui/Device","sap/ui/core/IconPool","sap/ui/core/Icon","./EndUserFeedbackRenderer"],function(r,A,a,b,q,L,u,J,D,I,c){"use strict";var E=a.extend("sap.ushell.ui.footerbar.EndUserFeedback",{metadata:{library:"sap.ushell",properties:{showAnonymous:{type:"boolean",group:"Misc",defaultValue:true},anonymousByDefault:{type:"boolean",group:"Misc",defaultValue:true},showLegalAgreement:{type:"boolean",group:"Misc",defaultValue:true},showCustomUIContent:{type:"boolean",group:"Misc",defaultValue:true},feedbackDialogTitle:{type:"string",group:"Misc",defaultValue:null},textAreaPlaceholder:{type:"string",group:"Misc",defaultValue:null}},aggregations:{customUIContent:{type:"sap.ui.core.Control",multiple:true,singularName:"customUIContent"}}}});E.prototype.init=function(){if(a.prototype.init){a.prototype.init.apply(this,arguments);}var d=sap.ushell.Container.getUser(),f=u.getFormFactor();this.oUserDetails={userId:d.getId(),eMail:d.getEmail()};this.translationBundle=r.i18n;this.appConfiguration=b;this.oEndUserFeedbackModel=new J();this.oEndUserFeedbackModel.setData({feedbackViewTitle:this.translationBundle.getText("userFeedback_title"),legalAgreementViewTitle:this.translationBundle.getText("userFeedbackLegal_title"),textAreaPlaceholderText:this.translationBundle.getText("feedbackPlaceHolderHeader"),presentationStates:{showAnonymous:this.getShowAnonymous(),showLegalAgreement:this.getShowLegalAgreement(),showCustomUIContent:this.getShowCustomUIContent()},clientContext:{userDetails:q.extend(true,{},this.oUserDetails),navigationData:{formFactor:f,applicationInformation:{},navigationHash:null}},isAnonymous:this.getAnonymousByDefault(),applicationIconPath:"",leftButton:{feedbackView:this.translationBundle.getText("sendBtn"),legalAgreementView:this.translationBundle.getText("approveBtn")},rightButton:{feedbackView:this.translationBundle.getText("cancelBtn"),legalAgreementView:this.translationBundle.getText("declineBtn")},states:{isLegalAgreementChecked:false,isRatingSelected:false,isInFeedbackView:true},technicalLink:{state:0,title:[this.translationBundle.getText("technicalDataLink"),this.translationBundle.getText("technicalDataLinkHide")]},textArea:{inputText:""},contextText:"",ratingButtons:[{text:r.i18n.getText("ratingExcellentText"),color:"sapUshellRatingLabelFeedbackPositiveText",iconSymbol:"sap-icon://BusinessSuiteInAppSymbols/icon-face-very-happy",id:"rateBtn1",index:1},{text:r.i18n.getText("ratingGoodText"),color:"sapUshellRatingLabelFeedbackPositiveText",iconSymbol:"sap-icon://BusinessSuiteInAppSymbols/icon-face-happy",id:"rateBtn2",index:2},{text:r.i18n.getText("ratingAverageText"),color:"sapUshellRatingLabelFeedbackNeutralText",iconSymbol:"sap-icon://BusinessSuiteInAppSymbols/icon-face-neutral",id:"rateBtn3",index:3},{text:r.i18n.getText("ratingPoorText"),color:"sapUshellRatingLabelFeedbackCriticalText",iconSymbol:"sap-icon://BusinessSuiteInAppSymbols/icon-face-bad",id:"rateBtn4",index:4},{text:r.i18n.getText("ratingVeyPoorText"),color:"sapUshellRatingLabelFeedbackNegativeText",iconSymbol:"sap-icon://BusinessSuiteInAppSymbols/icon-face-very-bad",id:"rateBtn5",index:5}],selectedRating:{text:"",color:"",index:0}});this.setIcon("sap-icon://marketing-campaign");this.setText(r.i18n.getText("endUserFeedbackBtn"));this.attachPress(this.ShowEndUserFeedbackDialog);this.setEnabled();};E.prototype.ShowEndUserFeedbackDialog=function(){sap.ui.require(["sap/ui/layout/form/SimpleForm","sap/ui/layout/form/SimpleFormLayout","sap/ui/layout/HorizontalLayout","sap/ui/layout/VerticalLayout","sap/m/TextArea","sap/m/Link","sap/m/Label","sap/m/Text","sap/m/Dialog","sap/m/Button","sap/m/Image","sap/m/Bar","sap/m/SegmentedButton","sap/m/SegmentedButtonItem","sap/m/CheckBox"],function(S,d,H,V,T,e,f,g,h,B,i,j,k,l,C){var m,n,s,o,p,M,t,v;this.oEndUserFeedbackService=sap.ushell.Container.getService("EndUserFeedback");m=function(){var F=[],x=this.oEndUserFeedbackModel.getProperty("/clientContext/navigationData/formFactor"),U=this.oEndUserFeedbackModel.getProperty("/clientContext/userDetails/userId"),y=this.oEndUserFeedbackModel.getProperty("/clientContext/userDetails/eMail"),z=this.oEndUserFeedbackModel.getProperty("/clientContext/navigationData/applicationInformation/url"),G=this.oEndUserFeedbackModel.getProperty("/clientContext/navigationData/applicationInformation/applicationType"),K=this.oEndUserFeedbackModel.getProperty("/clientContext/navigationData/applicationInformation/additionalInformation"),N=this.oEndUserFeedbackModel.getProperty("/clientContext/navigationData/navigationHash"),O=this.getModel().getProperty("/currentState/stateName"),P=!(O==="home"||O==="catalog");F.push(new g({text:this.translationBundle.getText("loginDetails")}).addStyleClass("sapUshellContactSupportHeaderInfoText"));F.push(U?new f({text:this.translationBundle.getText("userFld")}):null);F.push(U?new g("technicalInfoUserIdTxt",{text:"{/clientContext/userDetails/userId}"}):null);F.push(y?new f({text:this.translationBundle.getText("eMailFld")}):null);F.push(y?new g({text:"{/clientContext/userDetails/eMail}"}):null);F.push(x?new f({text:this.translationBundle.getText("formFactorFld")}):null);F.push(x?new g({text:"{/clientContext/navigationData/formFactor}"}):null);F.push(new g({text:""}));F.push(new g({text:this.translationBundle.getText(this.currentApp?"applicationInformationFld":"feedbackHeaderText")}).addStyleClass("sapUshellEndUserFeedbackHeaderInfoText").addStyleClass("sapUshellEndUserFeedbackInfoTextSpacing"));F.push(z&&P?new f({text:this.translationBundle.getText("urlFld")}):null);F.push(z&&P?new g({text:"{/clientContext/navigationData/applicationInformation/url}"}):null);F.push(G?new f({text:this.translationBundle.getText("applicationTypeFld")}):null);F.push(G?new g({text:"{/clientContext/navigationData/applicationInformation/applicationType}"}):null);F.push(K?new f({text:this.translationBundle.getText("additionalInfoFld")}):null);F.push(K?new g({text:"{/clientContext/navigationData/applicationInformation/additionalInformation}"}):null);F.push(N&&P?new f({text:this.translationBundle.getText("hashFld")}):null);F.push(N&&P?new g({text:"{/clientContext/navigationData/navigationHash}"}):null);return F.filter(Boolean);}.bind(this);n=function(){this.oTechnicalInfoBox=new S("feedbackTechnicalInfoBox",{layout:d.ResponsiveLayout,content:m()});if(D.os.ios&&D.system.phone){this.oTechnicalInfoBox.addStyleClass("sapUshellContactSupportFixWidth");}var x=this.oTechnicalInfoBox.onAfterRendering;this.oTechnicalInfoBox.onAfterRendering=function(){x.apply(this,arguments);var y=q(this.getDomRef());y.attr("tabIndex",0);setTimeout(function(){this.focus();}.bind(y),700);};return new H("technicalInfoBoxLayout",{visible:{path:"/technicalLink/state",formatter:function(y){return y===1;}},content:[this.oTechnicalInfoBox]});}.bind(this);p=function(){this.oTechnicalInfoBox.destroyContent();this.oTechnicalInfoBox.removeAllContent();var x=m(),y;for(y in x){this.oTechnicalInfoBox.addContent(x[y]);}this.oRatingButtons.setSelectedButton("none");}.bind(this);M=sap.ui.require.toUrl("sap/ushell");t=M+"/themes/base/img/launchpadDefaultIcon.jpg";v=this.oEndUserFeedbackModel.getProperty("/clientContext/navigationData/formFactor")==="desktop";this.updateModelContext();if(this.oDialog){p();this.oDialog.open();return;}this.oLegalAgreementInfoLayout=null;this.oPopoverTitle=new g("PopoverTitle",{text:{parts:[{path:"/states/isInFeedbackView"},{path:"/feedbackViewTitle"}],formatter:function(x){return this.oEndUserFeedbackModel.getProperty(x?"/feedbackViewTitle":"/legalAgreementViewTitle");}.bind(this)}});this.oBackButton=new B("endUserFeedbackBackBtn",{visible:{path:"/states/isInFeedbackView",formatter:function(x){return!x;}},icon:I.getIconURI("nav-back"),press:function(){this.oEndUserFeedbackModel.setProperty("/states/isInFeedbackView",true);this.bBackNavigationHappened=true;}.bind(this),tooltip:r.i18n.getText("feedbackGoBackBtn_tooltip"),ariaDescribedBy:this.oPopoverTitle});this.oHeadBar=new j({contentLeft:[this.oBackButton],contentMiddle:[this.oPopoverTitle]});this.oLogoImg=new i("sapFeedbackLogo",{src:t,width:"4.5rem",height:"4.5rem",visible:{path:"/applicationIconPath",formatter:function(x){return!x;}}});this.oAppIcon=new c("sapFeedbackAppIcon",{src:"{/applicationIconPath}",width:"4.5rem",height:"4.5rem",visible:{path:"/applicationIconPath",formatter:function(x){return!!x;}}}).addStyleClass("sapUshellFeedbackAppIcon");this.oContextName=new g("contextName",{text:"{/contextText}"});this.oContextLayout=new H("contextLayout",{allowWrapping:true,content:[this.oLogoImg,this.oAppIcon,this.oContextName]});this.oRatingLabel=new f("ratingLabel",{required:true,text:r.i18n.getText("ratingLabelText")});this.oRatingSelectionText=new g("ratingSelectionText",{text:{path:"/selectedRating",formatter:function(x){if(this.lastSelectedColor){this.removeStyleClass(this.lastSelectedColor);}if(x.color){this.addStyleClass(x.color);}this.lastSelectedColor=x.color;return x.text;}}});this.oRatingButtonTemplate=new l({icon:"{iconSymbol}",height:"100%",width:"20%",tooltip:"{text}"});this.oRatingButtonTemplate.addCustomData(new A({key:"aria-label",value:"{text}",writeToDom:true}));this.oRatingButtons=new k("ratingButton",{items:{path:"/ratingButtons",template:this.oRatingButtonTemplate},selectionChange:function(x){var P=x.getParameters().item.getBindingContext().getPath(),y=this.oEndUserFeedbackModel.getProperty(P);this.oEndUserFeedbackModel.setProperty("/selectedRating",{text:y.text,color:y.color,index:y.index});this.oEndUserFeedbackModel.setProperty("/states/isRatingSelected",true);}.bind(this),width:"100%"});this.oRatingButtons.setSelectedButton("none");this.oRatingButtons.addAriaLabelledBy("ratingLabel");this.oRatingButtons.addCustomData(new A({key:"aria-required",value:"true",writeToDom:true}));if(v){this.oRatingIndicationLayout=new H("ratingIndicationLayout",{content:[this.oRatingLabel,this.oRatingSelectionText]});}else{this.oRatingIndicationLayout=new V("ratingIndicationLayoutMob",{content:[this.oRatingLabel,this.oRatingSelectionText]});}this.oRatingLayout=new V("ratingLayout",{width:"100%",content:[this.oRatingIndicationLayout,this.oRatingButtons]});this.oAnonymousCheckbox=new C("anonymousCheckbox",{name:"anonymousCheckbox",visible:"{/presentationStates/showAnonymous}",text:r.i18n.getText("feedbackSendAnonymousText"),selected:!this.oEndUserFeedbackModel.getProperty("/isAnonymous"),select:function(x){var y=x.getParameter("selected");this._handleAnonymousSelection(!y);}.bind(this)});var w=(!this.oEndUserFeedbackModel.getProperty("/presentationStates/showAnonymous")||this.oEndUserFeedbackModel.getProperty("/isAnonymous"));this._handleAnonymousSelection(w);this.oLegalAgrementCheckbox=new C("legalAgreement",{name:"legalAgreement",visible:"{/presentationStates/showLegalAgreement}",selected:"{/states/isLegalAgreementChecked}",text:this.translationBundle.getText("agreementAcceptanceText")});this.oLegalAgreementLink=new e("legalAgreementLink",{text:this.translationBundle.getText("legalAgreementLinkText"),visible:"{/presentationStates/showLegalAgreement}",press:function(){var P=this.oEndUserFeedbackService.getLegalText();P.done(s.bind(this));}.bind(this)});this.oLegalAgreementLink.addEventDelegate({onAfterRendering:function(){if(this.bBackNavigationHappened){this.oLegalAgreementLink.focus();}}.bind(this)});this.aCustomUIContent=q.extend([],this.getCustomUIContent());this.oCustomUILayout=new V("customUILayout",{visible:{path:"/presentationStates/showCustomUIContent",formatter:function(x){return!(x&&this.aCustomUIContent.length);}.bind(this)},content:this.getCustomUIContent(),width:"100%"});this.oLegalLayout=new V("legalLayout",{content:[this.oAnonymousCheckbox,this.oLegalAgrementCheckbox,this.oLegalAgreementLink]});this.oTechnicalDataLink=new e("technicalDataLink",{text:{path:"/technicalLink/state",formatter:function(x){return this.getModel().getProperty("/technicalLink/title/"+x);}},press:function(){var _=this.oEndUserFeedbackModel.getProperty("/technicalLink/state");this.oEndUserFeedbackModel.setProperty("/technicalLink/state",Math.abs(_-1));this.oDialog.rerender();}.bind(this)});this.oTechnicalDataLayout=new H("technicalDataLayout",{content:[this.oTechnicalDataLink]});this.leftButton=new B("EndUserFeedbackLeftBtn",{text:{path:"/states/isInFeedbackView",formatter:function(x){return this.getModel().getProperty("/leftButton/"+(x?"feedbackView":"legalAgreementView"));}},enabled:{parts:[{path:"/states/isInFeedbackView"},{path:"/states/isLegalAgreementChecked"},{path:"/states/isRatingSelected"},{path:"/presentationStates/showLegalAgreement"}],formatter:function(x,y,z,F){return!x||(z&&(y||!F));}},press:function(){var x=this.oEndUserFeedbackModel.getProperty("/states/isInFeedbackView");if(x){var F={feedbackText:this.oEndUserFeedbackModel.getProperty("/textArea/inputText"),ratings:[{questionId:"Q10",value:this.oEndUserFeedbackModel.getProperty("/selectedRating/index")}],clientContext:this.oEndUserFeedbackModel.getProperty("/clientContext"),isAnonymous:this.oEndUserFeedbackModel.getProperty("/isAnonymous")},y=this.oEndUserFeedbackService.sendFeedback(F);y.done(function(){sap.ushell.Container.getService("Message").info(this.translationBundle.getText("feedbackSendToastTxt"));}.bind(this));y.fail(function(){sap.ushell.Container.getService("Message").error(this.translationBundle.getText("feedbackFailedToastTxt"));}.bind(this));this.oDialog.close();}else{this.oEndUserFeedbackModel.setProperty("/states/isInFeedbackView",true);this.oEndUserFeedbackModel.setProperty("/states/isLegalAgreementChecked",true);}}.bind(this)});this.rightButton=new B("EndUserFeedbackRightBtn",{text:{path:"/states/isInFeedbackView",formatter:function(x){return this.getModel().getProperty("/rightButton/"+(x?"feedbackView":"legalAgreementView"));}},press:function(){var x=this.oEndUserFeedbackModel.getProperty("/states/isInFeedbackView");if(x){this.oDialog.close();}else{this.oEndUserFeedbackModel.setProperty("/states/isInFeedbackView",true);this.oEndUserFeedbackModel.setProperty("/states/isLegalAgreementChecked",false);}}.bind(this)});this.oTextArea=new T("feedbackTextArea",{rows:6,value:"{/textArea/inputText}",placeholder:"{/textAreaPlaceholderText}"});this.oDialog=new h({id:"UserFeedbackDialog",contentWidth:"25rem",leftButton:this.leftButton,rightButton:this.rightButton,stretch:D.system.phone,initialFocus:"ratingButton",afterOpen:function(){q("#textArea").on("focusout",function(){window.scrollTo(0,0);});},afterClose:function(){if(window.document.activeElement&&window.document.activeElement.tagName==="BODY"){window.document.getElementById("meAreaHeaderButton").focus();}this.oEndUserFeedbackModel.setProperty("/states/isInFeedbackView",true);}.bind(this)}).addStyleClass("sapUshellEndUserFeedbackDialog");this.oDialog.setModel(this.oEndUserFeedbackModel);this.oDialog.setCustomHeader(this.oHeadBar);this.oDialog.addCustomData(new A({key:"aria-label",value:this.translationBundle.getText("endUserFeedbackAreaLabel"),writeToDom:true}));this.oTechnicalInfoBoxLayout=n();this.oFeedbackLayout=new V("feedbackLayout",{visible:"{/states/isInFeedbackView}",content:[this.oContextLayout,this.oRatingLayout,this.oTextArea,this.oTechnicalDataLayout,this.oTechnicalInfoBoxLayout,this.oLegalLayout,this.oCustomUILayout]}).addStyleClass("sapUshellFeedbackLayout");this.oMainLayout=new V("mainLayout",{editable:false,content:[this.oFeedbackLayout]});this.oDialog.addContent(this.oMainLayout);this.oDialog.open();s=function(x){this.oEndUserFeedbackModel.setProperty("/states/isInFeedbackView",false);if(!this.oLegalAgreementInfoLayout){o(x);}else{this.oBackButton.focus();}};o=function(x){this.oLegalText=new T("legalText",{cols:50,rows:22});this.oLegalText.setValue([x]);this.oLegalText.setEditable(false);var y=this.oLegalText.onAfterRendering;var z=this.oBackButton;this.oLegalText.onAfterRendering=function(){if(y){y.apply(this,arguments);}var F=q(this.getDomRef());F.find("textarea").attr("tabindex","0");z.focus();};this.oLegalAgreementInfoLayout=new V("legalAgreementInfoLayout",{visible:{path:"/states/isInFeedbackView",formatter:function(F){return!F;}},content:[this.oLegalText]});this.oMainLayout.addContent(this.oLegalAgreementInfoLayout);}.bind(this);}.bind(this));};E.prototype._handleAnonymousSelection=function(i){var d=this.translationBundle.getText("feedbackAnonymousTechFld");this.oEndUserFeedbackModel.setProperty("/isAnonymous",i);this.oEndUserFeedbackModel.setProperty("/clientContext/userDetails/eMail",i?d:this.oUserDetails.eMail);this.oEndUserFeedbackModel.setProperty("/clientContext/userDetails/userId",i?d:this.oUserDetails.userId);};E.prototype.addCustomUIContent=function(C){var i=C&&C.getMetadata&&C.getMetadata().getStereotype&&C.getMetadata().getStereotype()==="control";if(i){if(this.getShowCustomUIContent()){this.oEndUserFeedbackModel.setProperty("/presentationStates/showCustomUIContent",true);}this.addAggregation("customUIContent",C);}};E.prototype.setShowAnonymous=function(v){if(typeof v==="boolean"){this.oEndUserFeedbackModel.setProperty("/presentationStates/showAnonymous",v);this.setProperty("showAnonymous",v,true);}};E.prototype.setAnonymousByDefault=function(v){if(typeof v==="boolean"){this.oEndUserFeedbackModel.setProperty("/isAnonymous",v);this.setProperty("anonymousByDefault",v,true);}};E.prototype.setShowLegalAgreement=function(v){if(typeof v==="boolean"){this.oEndUserFeedbackModel.setProperty("/presentationStates/showLegalAgreement",v);this.setProperty("showLegalAgreement",v,true);}};E.prototype.setShowCustomUIContent=function(v){if(typeof v==="boolean"){this.oEndUserFeedbackModel.setProperty("/presentationStates/showCustomUIContent",v);this.setProperty("showCustomUIContent",v,true);}};E.prototype.setFeedbackDialogTitle=function(v){if(typeof v==="string"){this.oEndUserFeedbackModel.setProperty("/feedbackViewTitle",v);this.setProperty("feedbackDialogTitle",v,true);}};E.prototype.setTextAreaPlaceholder=function(v){if(typeof v==="string"){this.oEndUserFeedbackModel.setProperty("/textAreaPlaceholderText",v);this.setProperty("textAreaPlaceholder",v,true);}};E.prototype.updateModelContext=function(){var U=sap.ushell.Container.getService("URLParsing"),h,p,i,d,s,e;h=U.getShellHash(window.location);p=U.parseShellHash(h);i=(p!==undefined)?p.semanticObject+"-"+p.action:"";d=this.getModel().getProperty("/currentState/stateName");if(d==="home"||d==="catalog"){s=this.translationBundle.getText(d+"_title");}this.currentApp=this.appConfiguration.getCurrentApplication();this.bHasAppName=(this.currentApp&&this.appConfiguration.getMetadata(this.currentApp)&&this.appConfiguration.getMetadata(this.currentApp).title);this.sAppIconPath=(this.currentApp&&this.appConfiguration.getMetadata(this.currentApp)&&this.appConfiguration.getMetadata(this.currentApp).icon);this.oEndUserFeedbackModel.setProperty("/contextText",this.bHasAppName?this.appConfiguration.getMetadata(this.currentApp).title:this.translationBundle.getText("feedbackHeaderText"));e=null;if(this.currentApp&&this.currentApp.url){e=this.currentApp.url.split("?")[0];}else if(d){e=this.translationBundle.getText("flp_page_name");}this.oEndUserFeedbackModel.setProperty("/clientContext/navigationData/applicationInformation",{url:e,additionalInformation:(this.currentApp&&this.currentApp.additionalInformation)?this.currentApp.additionalInformation:null,applicationType:(this.currentApp&&this.currentApp.applicationType)?this.currentApp.applicationType:null});this.oEndUserFeedbackModel.setProperty("/clientContext/navigationData/navigationHash",s||i);this.oEndUserFeedbackModel.setProperty("/selectedRating",{text:"",color:"",index:0});this.oEndUserFeedbackModel.setProperty("/states/isRatingSelected",false);this.oEndUserFeedbackModel.setProperty("/states/isLegalAgreementChecked",false);this.oEndUserFeedbackModel.setProperty("/technicalLink/state",0);this.oEndUserFeedbackModel.setProperty("/textArea/inputText","");this.oEndUserFeedbackModel.setProperty("/applicationIconPath",this.sAppIconPath);this._handleAnonymousSelection(this.oEndUserFeedbackModel.getProperty("/isAnonymous"));};E.prototype.setEnabled=function(e){if(!sap.ushell.Container){if(this.getEnabled()){L.warning("Disabling 'End User Feedback' button: unified shell container not initialized",null,"sap.ushell.ui.footerbar.EndUserFeedback");}e=false;}a.prototype.setEnabled.call(this,e);};return E;});
sap.ui.predefine('sap/ushell/ui/footerbar/EndUserFeedbackRenderer',['sap/ui/core/Renderer','sap/m/ButtonRenderer'],function(R,B){"use strict";var E=R.extend(B);return E;},true);
sap.ui.predefine('sap/ushell/ui/footerbar/SendAsEmailButton',["sap/base/Log","sap/m/Button","sap/ushell/library","sap/ushell/resources","./SendAsEmailButtonRenderer","sap/ushell/Config"],function(L,B,l,r,S,C){"use strict";var a=B.extend("sap.ushell.ui.footerbar.SendAsEmailButton",{metadata:{library:"sap.ushell",properties:{beforePressHandler:{type:"any",group:"Misc",defaultValue:null},afterPressHandler:{type:"any",group:"Misc",defaultValue:null}}}});a.prototype.init=function(){var t=this;if(B.prototype.init){B.prototype.init.apply(this,arguments);}this.setIcon("sap-icon://email");this.setText(r.i18n.getText("sendEmailBtn"));this.setTooltip(r.i18n.getText("sendEmailBtn_tooltip"));this.attachPress(function(){if(t.getBeforePressHandler()){t.getBeforePressHandler()();}this.sendAsEmailPressed(t.getAfterPressHandler());});};a.prototype.sendAsEmailPressed=function(c){if(sap.ushell.Container.runningInIframe&&sap.ushell.Container.runningInIframe()){sap.ui["require"](["sap/ushell/appRuntime/ui5/AppRuntimeService"],function(b){b.sendMessageToOuterShell("sap.ushell.services.ShellUIService.sendEmailWithFLPButton",{"bSetAppStateToPublic":true});});}else{var u=document.URL;var A=C.last("/core/shellHeader/application").title;var s=(A===undefined)?sap.ushell.resources.i18n.getText("linkToApplication"):sap.ushell.resources.i18n.getText("linkTo")+"'"+A+"'";sap.ushell.Container.getServiceAsync("AppState").then(function(o){o.setAppStateToPublic(u).done(function(n){sap.m.URLHelper.triggerEmail(null,s,n);}).fail(L.error);});}if(c){c();}};return a;},true);
sap.ui.predefine('sap/ushell/ui/footerbar/SendAsEmailButtonRenderer',['sap/m/ButtonRenderer','sap/ui/core/Renderer'],function(B,R){"use strict";var S=R.extend(B);return S;},true);
sap.ui.predefine('sap/ushell/ui/launchpad/AccessibilityCustomData',["sap/ui/core/CustomData","sap/base/Log","sap/ui/events/F6Navigation","sap/ui/core/library"],function(C,L,F,c){"use strict";var I=c.ID;var A=C.extend("sap.ushell.ui.launchpad.AccessibilityCustomData"),o=C.prototype._checkWriteToDom;A.prototype._checkWriteToDom=function(r){var k=this.getKey().toLowerCase(),i=sap.ui.getCore().getConfiguration().getAccessibility();if(!i){return;}if(k.indexOf("aria")===0||k==="role"||k==="tabindex"){if(!this.getWriteToDom()){return null;}var v=this.getValue();if(typeof v!=="string"){L.error("CustomData with key "+k+" should be written to HTML of "+r+" but the value is not a string.");return null;}if(!(I.isValid(k))||(k.indexOf(":")!=-1)){L.error("CustomData with key "+k+" should be written to HTML of "+r+" but the key is not valid (must be a valid sap.ui.core.ID without any colon).");return null;}if(k==F.fastNavigationKey){v=/^\s*(x|true)\s*$/i.test(v)?"true":"false";}else if(k.indexOf("sap-ui")==0){L.error("CustomData with key "+k+" should be written to HTML of "+r+" but the key is not valid (may not start with 'sap-ui').");return null;}return{key:k,value:v};}return o.apply(this,arguments);};return A;});
sap.ui.predefine('sap/ushell/ui/launchpad/ActionItem',["sap/m/Button","sap/m/library","sap/ushell/library","./ActionItemRenderer"],function(B,m){"use strict";var a=m.ButtonType;var A=B.extend("sap.ushell.ui.launchpad.ActionItem",{metadata:{library:"sap.ushell",properties:{actionType:{type:"string",group:"Appearance",defaultValue:"standard"}},events:{press:{},afterRendering:{}}}});A.prototype.init=function(){if(B.prototype.init){B.prototype.init.apply(this,arguments);}this.sOrigType=undefined;};A.prototype.setActionType=function(t){if(!this.sOrigType){this.sOrigType=this.getType();}if(t==="action"){this.setType(a.Unstyled);}else if(this.sOrigType){this.setType(this.sOrigType);}else{this.setType(a.Standard);}this.setProperty("actionType",t,true);};return A;});
sap.ui.predefine('sap/ushell/ui/launchpad/ActionItemRenderer',["sap/m/ButtonRenderer","sap/ui/core/Renderer"],function(B,R){"use strict";var A=R.extend(B);return A;},true);
sap.ui.predefine('sap/ushell/ui/launchpad/ShortcutsHelpContainer',["sap/ui/core/Control","./ShortcutsHelpContainerRenderer"],function(C){"use strict";var S=C.extend("sap.ushell.ui.launchpad.ShortcutsHelpContainer",{metadata:{aggregations:{content:{type:"sap.ui.core.Element",multiple:true,singularName:"content"}}}});return S;});
sap.ui.predefine('sap/ushell/ui/launchpad/ShortcutsHelpContainerRenderer',[],function(){"use strict";var S={};S.render=function(r,c){var C=c.getContent()||[];r.write("<div");r.writeControlData(c);r.addClass("sapUshelShortcutsHelpContainer");r.writeClasses();r.writeAccessibilityState(c,{role:"group"});r.write(">");C.forEach(function(e){var s=e.isA("sap.m.Label")?"sapUshelShortcutsHelpContainerLabel":"sapUshelShortcutsHelpContainerText";r.write("<div");r.addClass(s);r.writeClasses();r.write(">");r.renderControl(e);r.write("</div>");});r.write("</div>");};return S;},true);
sap.ui.predefine('sap/ushell/ui/launchpad/Tile',["sap/ui/thirdparty/jquery","sap/ui/base/ManagedObject","sap/ui/core/Control","sap/ui/core/Icon","sap/ushell/resources","sap/ushell/ui/launchpad/AccessibilityCustomData","sap/base/Log","./TileRenderer"],function(q,M,C,I,r,A,L){"use strict";var T=C.extend("sap.ushell.ui.launchpad.Tile",{metadata:{library:"sap.ushell",properties:{long:{type:"boolean",group:"Misc",defaultValue:false},uuid:{type:"string",group:"Misc",defaultValue:null},tileCatalogId:{type:"string",group:"Misc",defaultValue:null},isCustomTile:{type:"boolean",group:"Misc",defaultValue:false},target:{type:"string",group:"Misc",defaultValue:null},debugInfo:{type:"string",group:"Misc",defaultValue:null},rgba:{type:"string",group:"Misc",defaultValue:null},animationRendered:{type:"boolean",group:"Misc",defaultValue:false},isLocked:{type:"boolean",group:"Misc",defaultValue:false},showActionsIcon:{type:"boolean",group:"Misc",defaultValue:false},tileActionModeActive:{type:"boolean",group:"Misc",defaultValue:false},ieHtml5DnD:{type:"boolean",group:"Misc",defaultValue:false},navigationMode:{type:"string",group:"Misc",defaultValue:null},isDraggedInTabBarToSourceGroup:{type:"boolean",group:"Misc",defaultValue:false}},aggregations:{tileViews:{type:"sap.ui.core.Control",multiple:true,singularName:"tileView"},pinButton:{type:"sap.ui.core.Control",multiple:true,singularName:"pinButton"}},events:{press:{},coverDivPress:{},afterRendering:{},showActions:{},deletePress:{}}}});T.prototype.getActionSheetIcon=function(){if(!this.getTileActionModeActive()){return undefined;}if(!this.actionSheetIcon){this.actionSheetIcon=new I({src:"sap-icon://overflow"});this.actionSheetIcon.setTooltip(r.i18n.getText("configuration.category.tile_actions"));this.actionSheetIcon.addStyleClass("sapUshellTileActionIconDivBottomInner");}return this.actionSheetIcon;};T.prototype.ontap=function(){L.info("Tile clicked:",this.getDebugInfo(),"sap.ushell.ui.launchpad.Tile");this.firePress();};T.prototype.destroy=function(s){this.destroyTileViews();C.prototype.destroy.call(this,s);};T.prototype.addTileView=function(o,s){o.setParent(null);M.prototype.addAggregation.call(this,"tileViews",o,s);};T.prototype.destroyTileViews=function(){if(this.mAggregations.tileViews){this.mAggregations.tileViews.length=0;}};T.prototype.onBeforeRendering=function(){var d=this.getDomRef();if(!d){return;}var i=d.querySelector("a.sapUshellTileInner");if(i){i.onclick=null;}};T.prototype.onAfterRendering=function(){if(this.getIsDraggedInTabBarToSourceGroup()===true){var t=this.getParent();t.removeAggregation("tiles",this,false);}this._redrawRGBA();this._disableInnerLink();this.fireAfterRendering();};T.prototype._disableInnerLink=function(){var d=this.getDomRef();var i=d.querySelector("a.sapUshellTileInner");if(i){i.onclick=function(e){e.preventDefault();};}};T.prototype._launchTileViaKeyboard=function(e){if(this.getTileActionModeActive()){this.fireCoverDivPress({id:this.getId()});}else if(e.target.tagName!=="BUTTON"){var t=this.getTileViews()[0],p=false,c,o;if(t.firePress){t.firePress({id:this.getId()});}else if(t.getComponentInstance){c=t.getComponentInstance();if(c._oController&&c._oController.oView.getContent()){o=c._oController.oView.getContent()[0];if(o&&o.firePress){o.firePress({id:this.getId()});}}}else{while(t.getContent&&!p){t=t.getContent()[0];if(t.firePress){t.firePress({id:this.getId()});p=true;}}}}};T.prototype.onsapenter=function(e){this._launchTileViaKeyboard(e);if(!this.getTileActionModeActive()){this._announceLoadingApplication();}};T.prototype.onsapspace=function(e){this._launchTileViaKeyboard(e);if(!this.getTileActionModeActive()){this._announceLoadingApplication();}};T.prototype.onfocusin=function(){var c=this.getDomRef().getAttribute("class"),p;p=c?c.indexOf("sapUshellPlusTile")!==-1:false;if(!p){var j=q(this.getDomRef()).prevUntil("h3"),e,s="",t,n,a;if(j.length>0){e=j[j.length-1].previousSibling;}else{e=this.getDomRef().previousSibling;}if(e){s=e.getAttribute("id");}a=this.getDomRef().querySelector(".sapUshellTileInner");var d=this.getDomRef().querySelector(".sapUshellTileDeleteClickArea .sapUiIcon");var b=d?d.id:"";if(a&&a.children&&a.children[0]){var f=(s&&s!=="")?"sapUshellCatalogAccessibilityTileText":"sapUshellDashboardAccessibilityTileText";t=a.children[0].getAttribute("id");var l=[f,t,b,s];n=this.getId()+"_navigationMode";var N=document.getElementById(n);if(N==null){var g=this.getNavigationMode();if(g){N=document.createElement("div");var i=document.createAttribute("id");i.value=n;N.setAttributeNode(i);N.style.display="none";var h=r.i18n.getText(g+"NavigationMode");if(h){N.innerHTML=h;}else{L.warning("could not get the navigation mode text of this tile to be added on the aria-labelledBby attribute");}a.appendChild(N);l.splice(1,0,n);}}else{l.splice(1,0,n);}if(this.getTileActionModeActive()){l.push("sapUshellDashboardAccessibilityTileEditModeText");}this.getDomRef().setAttribute("aria-labelledby",l.join(" "));}}};T.prototype.onclick=function(e){if(this.getTileActionModeActive()){var s=e.originalEvent.srcElement;if(q(s).closest(".sapUshellTileDeleteClickArea").length>0){this.fireDeletePress();}else{this.fireCoverDivPress({id:this.getId()});}}else{this._announceLoadingApplication();}};T.prototype._announceLoadingApplication=function(){var a=document.getElementById("sapUshellLoadingAccessibilityHelper-appInfo"),l=r.i18n.getText("screenReaderNavigationLoading");if(a){a.setAttribute("role","alert");a.innerHTML=l;setTimeout(function(){a.removeAttribute("role");a.innerHTML="";},0);}};T.prototype._initDeleteAction=function(){var t=this;if(!this.deleteIcon){this.deleteIcon=new I({src:"sap-icon://decline",tooltip:r.i18n.getText("removeButtonTItle")});this.deleteIcon.addEventDelegate({onclick:function(e){t.fireDeletePress();e.stopPropagation();}});this.deleteIcon.addStyleClass("sapUshellTileDeleteIconInnerClass");this.deleteIcon.addCustomData(new A({key:"aria-label",value:r.i18n.getText("removeButtonLabel"),writeToDom:true}));}return this.deleteIcon;};T.prototype.setShowActionsIcon=function(s){var t=this,i;if(s){i=new I({size:"1rem",src:"sap-icon://overflow",press:function(e){t.fireShowActions();t.addStyleClass("showTileActionsIcon");var E=sap.ui.getCore().getEventBus(),a=function(n,b,c){c.removeStyleClass("showTileActionsIcon");E.unsubscribe("dashboard","actionSheetClose",a);};E.subscribe("dashboard","actionSheetClose",a);}});i.addStyleClass("sapUshellTileActionsIconClass");this.actionIcon=i;}else if(this.actionIcon){this.actionIcon.destroy(true);}this.setProperty("showActionsIcon",s);};T.prototype.setIsDraggedInTabBarToSourceGroup=function(d){this.setProperty("isDraggedInTabBarToSourceGroup",d,true);this.setVisible(!d);};T.prototype.setVisible=function(v){this.setProperty("visible",v,false);return this.toggleStyleClass("sapUshellHidden",!v);};T.prototype.setTarget=function(v){this.setProperty("target",v,true);this.$().find(".sapUshellTileInner").attr("href",v);};T.prototype.setRgba=function(v){this.setProperty("rgba",v,true);this._redrawRGBA(arguments);};T.prototype.setAnimationRendered=function(v){this.setProperty("animationRendered",v,true);};T.prototype.setNavigationMode=function(v){this.setProperty("navigationMode",v,true);};T.prototype._handleTileShadow=function(j){if(j.length){j.unbind("mouseenter mouseleave");var u,t=j.css("border").split("px")[0],m=this.getModel();if(t>0){u=j.css("border-color");}else{u=this.getRgba();}j.hover(function(){if(!m.getProperty("/tileActionModeActive")){var o=q(j).css("box-shadow"),s=o?o.split(") ")[1]:null,U;if(s){U=s+" "+u;q(this).css("box-shadow",U);}}},function(){q(this).css("box-shadow","");});}};T.prototype._redrawRGBA=function(a){var R=this.getRgba(),j;if(R){j=q(document.getElementById(this.getId()));if(!j){return;}if(!this.getModel().getProperty("/animationRendered")){j.css("transition","background-color 2s");j.css("background-color",R);}else{j.css("background-color",R);}this._handleTileShadow(j,a);}};T.prototype.setLong=function(l){this.setProperty("long",l,true);return this.toggleStyleClass("sapUshellLong",!!l);};T.prototype.setUuid=function(u){this.setProperty("uuid",u,true);return this;};return T;});
sap.ui.predefine('sap/ushell/ui/launchpad/TileRenderer',["sap/ushell/Config","sap/base/Log","sap/m/Text"],function(C,L,T){"use strict";var a={};a.render=function(r,c){var t=null,b,p=c.getPinButton();p=p.length?p[0]:undefined;try{t=c.getTileViews()[0];}catch(e){L.warning("Failed to load tile view: ",e.message);t=new T({text:"Failed to load. "});}var o=C.last("/core/home/gridContainer")&&c.getParent().getParent()||c.getParent(),d=o&&o.getTiles?o.getTiles():[],v=d.filter(function(g){return g.getVisible();}),i=v.indexOf(c)>-1?v.indexOf(c)+1:"";if(!o){return;}r.write("<li");if(C.last("/core/shell/model/enableHelp")){r.writeAttribute("data-help-id",c.getTileCatalogId());}r.writeControlData(c);r.addClass("sapUshellTile");if(c.getTileActionModeActive()){r.addClass("sapUshellTileWrapper");}if(t&&t.getContent){b=t.getContent();b.forEach(function(I){if(I.isA("sap.suite.ui.commons.FeedTile")){r.addClass("sapUshellFeedTileBG");}});}if(c.getLong()){r.addClass("sapUshellLong");}if(!c.getVisible()){r.addClass("sapUshellHidden");}if(c.getIsLocked()){r.addClass("sapUshellLockedTile");}if(C.last("/core/home/sizeBehavior")==="Small"){r.addClass("sapUshellSmall");}r.writeClasses();r.writeAccessibilityState(c,{role:"option",posinset:i,setsize:v.length});var f=o.getId()+"-titleText";r.writeAttribute("aria-describedby",f);if(c.getIeHtml5DnD()){r.writeAttribute("draggable","true");}r.writeAttributeEscaped("tabindex","-1");var l=c.data("layoutPosition");if(l){var s="-webkit-transform:"+l.translate3D+";-ms-transform:"+l.translate2D+";transform:"+l.translate3D;r.writeAttribute("style",s);}r.write(">");if(!c.getTileActionModeActive()){r.write("<div");r.addClass("sapUshellTileWrapper");r.writeClasses();r.write(">");}this.renderTileActionMode(r,c);r.addClass("sapUshellTileInner");if(c.getProperty("tileActionModeActive")){r.addClass("sapUshellTileActionBG");}if(this.renderTileView){this.renderTileView(r,t,p,c.getTarget(),c.getIsCustomTile());}if(c.getShowActionsIcon()&&!c.getTileActionModeActive()){r.renderControl(c.actionIcon);}if(!c.getTileActionModeActive()){r.write("</div>");if(this.renderTileActionsContainer){this.renderTileActionsContainer(r,t,p,c.getTarget(),c.getIsCustomTile());}}r.write("</li>");};a.renderTileActionsContainer=function(r,t,p){if(p){p.addStyleClass("sapUshellActionButton");r.write("<div");r.addClass("sapUshellTilePinButtonOverlay");r.writeClasses();if(t.getHeader){r.writeAccessibilityState(t,{role:"toolbar",label:t.getHeader()});}r.write(">");r.renderControl(p);r.write("</div>");}};a.renderTileView=function(r,t,p,s,i){var u="";if(i){r.write("<div");r.writeClasses();r.write(">");r.renderControl(t);r.write("</div>");}else{r.write("<a");r.writeClasses();if(s){if(s.charAt(0)==="#"){if(window.location.search&&window.location.search.length>0){u=window.location.origin+window.location.pathname+window.location.search+"&appState=lean"+s;}else{u=window.location.origin+window.location.pathname+"?appState=lean"+s;}}else{u=s;}r.writeAttributeEscaped("target","_blank");r.writeAttributeEscaped("href",u);}r.write("tabindex=\"-1\">");r.renderControl(t);r.write("</a>");}};a.renderTileActionMode=function(r,c){if(!c.getTileActionModeActive()){return;}r.write("<div");r.addClass("sapUshellTileActionLayerDiv");r.writeClasses();r.write(">");if(c.getTileActionModeActive()&&!c.getIsLocked()){r.write("<div");r.addClass("sapUshellTileDeleteClickArea");r.writeClasses();r.write(">");r.write("<div");r.addClass("sapUshellTileDeleteIconOuterClass");r.writeClasses();r.write(">");r.renderControl(c._initDeleteAction());r.write("</div>");r.write("</div>");}r.write("<div class='sapUshellTileActionDivCenter'></div>");r.write("<div");r.addClass("sapUshellTileActionIconDivBottom");r.writeClasses();r.write(">");r.write("<div");r.addClass("sapUshellTileActionIconDivBottomInnerDiv");r.writeClasses();r.write(">");r.renderControl(c.getActionSheetIcon());r.write("</div>");r.write("</div>");r.write("</div>");};return a;},true);
sap.ui.predefine('sap/ushell/ui/launchpad/TileState',['sap/ui/core/Control','sap/ushell/library','sap/ui/core/Icon','sap/ushell/resources','./TileStateRenderer'],function(C,l,I,r){"use strict";var T=C.extend("sap.ushell.ui.launchpad.TileState",{metadata:{library:"sap.ushell",properties:{state:{type:"string",group:"Misc",defaultValue:'Loaded'}}}});T.prototype.init=function(){this._rb=r.i18n;this._sFailedToLoad=this._rb.getText("cannotLoadTile");this._oWarningIcon=new I(this.getId()+"-warn-icon",{src:"sap-icon://notification",size:"1.37rem"});this._oWarningIcon.addStyleClass("sapSuiteGTFtrFldIcnMrk");};T.prototype.exit=function(){this._oWarningIcon.destroy();};T.prototype.setState=function(s,i){this.setProperty("state",s,i);return this;};return T;});
sap.ui.predefine('sap/ushell/ui/launchpad/TileStateRenderer',['sap/ui/core/HTML'],function(H){"use strict";var T={};T.render=function(r,c){r.write("<div");r.writeControlData(c);r.addClass("sapUshellGT");r.writeClasses();r.write(">");var s=c.getState();r.write("<div");r.addClass("sapUshellOverlay");r.writeClasses();r.writeAttribute("id",c.getId()+"-overlay");if(s==="Failed"){r.writeAttribute("title",c._sFailedToLoad);}r.write(">");switch(s){case"Loading":var b=new H({content:"<div class='sapUshellTileStateLoading'><div>"});b.setBusyIndicatorDelay(0);b.setBusy(true);r.renderControl(b);break;case"Failed":r.write("<div");r.writeAttribute("id",c.getId()+"-failed-ftr");r.addClass("sapUshellTileStateFtrFld");r.writeClasses();r.write(">");r.write("<div");r.writeAttribute("id",c.getId()+"-failed-icon");r.addClass("sapUshellTileStateFtrFldIcn");r.writeClasses();r.write(">");r.renderControl(c._oWarningIcon);r.write("</div>");r.write("<div");r.writeAttribute("id",c.getId()+"-failed-text");r.addClass("sapUshellTileStateFtrFldTxt");r.writeClasses();r.write(">");r.writeEscaped(c._sFailedToLoad);r.write("</div>");r.write("</div>");break;default:}r.write("</div>");r.write("</div>");};return T;},true);
sap.ui.predefine('sap/ushell/ui/shell/ContentRenderer',["sap/ui/base/Object"],function(B){"use strict";var C=B.extend("sap.ushell.ui.shell.ContentRenderer",{constructor:function(c,s,o,a){B.apply(this);this._id=s;this._cntnt=o;this._ctrl=c;this._rm=sap.ui.getCore().createRenderManager();this._cb=a||function(){};},destroy:function(){this._rm.destroy();delete this._rm;delete this._id;delete this._cntnt;delete this._cb;delete this._ctrl;if(this._rerenderTimer){clearTimeout(this._rerenderTimer);delete this._rerenderTimer;}B.prototype.destroy.apply(this,arguments);},render:function(){if(!this._rm){return;}if(this._rerenderTimer){clearTimeout(this._rerenderTimer);}this._rerenderTimer=setTimeout(function(){var $=jQuery(document.getElementById(this._id));var d=$.length>0;if(d){if(typeof(this._cntnt)==="string"){var c=this._ctrl.getAggregation(this._cntnt,[]);for(var i=0;i<c.length;i++){this._rm.renderControl(c[i]);}}else{this._cntnt(this._rm);}this._rm.flush($[0]);}this._cb(d);}.bind(this),0);}});return C;});
sap.ui.predefine('sap/ushell/ui/shell/OverflowListItem',["sap/ui/core/IconPool","sap/m/StandardListItem","sap/ui/core/CustomData","sap/ushell/library"],function(I,S,C){"use strict";var O=S.extend("sap.ushell.ui.shell.OverflowListItem",{metadata:{properties:{floatingNumber:{type:"int",group:"Appearance",defaultValue:null},floatingNumberMaxValue:{type:"int",group:"Appearance",defaultValue:99}}},renderer:{}});O.prototype.getDisplayFloatingNumber=function(){var n=this.getFloatingNumber(),m=this.getFloatingNumberMaxValue();var d=n+"";if(n>m){d=m+"+";}return d;};O.prototype._getImage=function(){var i=this._oImage;if(!i){i=S.prototype._getImage.call(this);}if(this.getFloatingNumber()>0){i.addStyleClass("sapUshellShellHeadItmCounter");i.addCustomData(new C({key:"counter-content",value:this.getDisplayFloatingNumber(),writeToDom:true}));}else{i.removeStyleClass("sapUshellShellHeadItmCounter");}this._oImage=i;return this._oImage;};sap.ui.unified.OverflowListItem=O;return O;},true);
sap.ui.predefine('sap/ushell/ui/shell/RightFloatingContainer',["sap/ui/thirdparty/jquery","sap/ui/core/Control"],function(q,C){"use strict";var R=C.extend("sap.ushell.ui.shell.RightFloatingContainer",{metadata:{properties:{size:{type:"sap.ui.core.CSSSize",group:"Appearance",defaultValue:"56px"},top:{type:"string",group:"Appearance",defaultValue:"0"},right:{type:"string",group:"Appearance",defaultValue:"0"},textVisible:{type:"boolean",group:"Appearance",defaultValue:true},insertItemsWithAnimation:{type:"boolean",group:"Appearance",defaultValue:true},hideItemsAfterPresentation:{type:"boolean",group:"Appearance",defaultValue:false},enableBounceAnimations:{type:"boolean",group:"Appearance",defaultValue:false},actAsPreviewContainer:{type:"boolean",group:"Appearance",defaultValue:false}},aggregations:{floatingContainerItems:{type:"sap.ui.core.Control",multiple:true}},events:{afterRendering:{}}},renderer:{render:function(r,o){var i=sap.ui.getCore().getConfiguration().getRTL();r.write("<div");r.writeControlData(o);r.addClass("sapUshellRightFloatingContainer");r.writeClasses();r.addStyle("top",o.getTop()+"rem");r.addStyle(i?"left":"right",o.getRight());r.writeStyles();r.writeAttribute("data-role","alert");r.write(">");r.write("<ul");r.addClass("sapUshellNotificationListContainer");r.writeClasses();r.writeAttribute("role","list");r.write(">");this.renderFloatingContainerItems(r,o);r.write("</ul>");r.write("</div>");},renderFloatingContainerItems:function(r,o){var I=o.getInsertItemsWithAnimation(),a=o.getActAsPreviewContainer(),b=o.getFloatingContainerItems(),i;for(i=0;i<b.length;i++){if(a&&!I){b[i].addStyleClass("sapUshellNonAnimatedNotificationListItem");}else if(b[i].hasStyleClass("sapUshellNonAnimatedNotificationListItem")){b[i].addStyleClass("sapUshellNotificationsListItem");b[i].addStyleClass("sapUshellRightFloatingContainerItemBackToViewport");b[i].addStyleClass("sapUshellRightFloatingContainerItemHidden");b[i].addStyleClass("sapUshellRightFloatingContainerItmHeightVisible");b[i].removeStyleClass("sapUshellNonAnimatedNotificationListItem");}r.renderControl(b[i]);}}}});R.prototype.init=function(){var t;q(window).bind("resize",function(){clearTimeout(t);t=setTimeout(this._handleResize.bind(this),100);}.bind(this));this.iRequiredItemsNumber=5;};R.prototype.onBeforeRendering=function(){};R.prototype._setSize=function(){};R.prototype._handleResize=function(){if(this.getDomRef()&&this.getFloatingContainerItems().length){var n=this.iRequiredItemsNumber,a=window.innerHeight,d=this.getDomRef(),b=d.getBoundingClientRect().top,c=q(".sapUiSizeCompact").length>0?56:64,j=this.$().find("li").eq(0),e,I;if(!j.length){return;}e=j[0].clientHeight;var f=q("#sapUshellDashboardFooter").outerHeight();this.iRequiredItemsNumber=Math.min(parseInt((a-b-c-f)/e,10),5);if(n!==this.iRequiredItemsNumber){I=this.getFloatingContainerItems();for(var i=0;i<I.length;i++){if(i<this.iRequiredItemsNumber||isNaN(this.iRequiredItemsNumber)){I[i].removeStyleClass("sapUshellShellHidden");}else{I[i].addStyleClass("sapUshellShellHidden");}}}}};R.prototype.onAfterRendering=function(){this.fireAfterRendering();setTimeout(function(){this._handleResize();}.bind(this),500);this.addStyleClass("sapContrastPlus");this.addStyleClass("sapContrast");this.addStyleClass("sapUshellNotificationsListItem");};R.prototype.setVisible=function(v){this.setProperty("visible",v,true);if(v){q(this.getDomRef()).css("visibility","visible");}else{q(this.getDomRef()).css("visibility","hidden");}};R.prototype.setFloatingContainerItemsVisiblity=function(v){var a=this.getFloatingContainerItems(),t=v?300:0,I=this.getInsertItemsWithAnimation(),_=function(b){if(v){a[b].removeStyleClass("sapUshellRightFloatingContainerItemBounceOut").addStyleClass("sapUshellRightFloatingContainerItemBounceIn");}else{a[b].removeStyleClass("sapUshellRightFloatingContainerItemBounceIn").addStyleClass("sapUshellRightFloatingContainerItemBounceOut");}};for(var i=0;i<a.length;i++){(function(b){return function(){if(I){setTimeout(function(){_(b);},t+b*100);}else{a[b].setVisible(v);}};})(i)();}};R.prototype._animationBouncer=function _animationBouncer(n){var _=function(){if(!_animationBouncer._animationQueue.length){_animationBouncer._itemTimeoutId=undefined;return;}var i=_animationBouncer._animationQueue.shift();i.addStyleClass("sapUshellRightFloatingContainerItmHeightVisible").addStyleClass("sapUshellRightFloatingContainerItemBounceIn");_animationBouncer._itemTimeoutId=setTimeout(_,100);};if(!_animationBouncer._animationQueue){_animationBouncer._animationQueue=[];}_animationBouncer._animationQueue.push(n);if(_animationBouncer._mainTimeoutId||_animationBouncer._itemTimeoutId){return;}_animationBouncer._mainTimeoutId=setTimeout(function(){_animationBouncer._mainTimeoutId=undefined;_();},500);};R.prototype.addFloatingContainerItem=function(n){this.addAggregation("floatingContainerItems",n);n.addStyleClass("sapContrastPlus");if(this.getInsertItemsWithAnimation()){n.addStyleClass("sapUshellNotificationsListItem");n.addStyleClass("sapUshellRightFloatingContainerItemHidden");if(this.getEnableBounceAnimations()){R.prototype._animationBouncer(n);}else{setTimeout(function(){var i=this.getFloatingContainerItems();if(i.length>5){var l=i[i.length-1];l.addStyleClass("sapUshellRightFloatingContainerHideLastItem");}n.addStyleClass("sapUshellRightFloatingContainerItemBackToViewport").addStyleClass("sapUshellRightFloatingContainerItmHeightVisible");}.bind(this),500);}}else if(this.getActAsPreviewContainer()){n.addStyleClass("sapUshellNonAnimatedNotificationListItem");}if(this.getHideItemsAfterPresentation()){setTimeout(function(){n.removeStyleClass("sapUshellRightFloatingContainerItemBackToViewport");},3200);}};return R;});
sap.ui.predefine('sap/ushell/ui/shell/ShellAppTitle',["sap/m/Bar","sap/m/Button","sap/m/Label","sap/m/PlacementType","sap/m/Popover","sap/m/ResponsivePopover","sap/m/ToggleButton","sap/ui/core/IconPool","sap/ui/Device","sap/ushell/Config","sap/ushell/ui/launchpad/AccessibilityCustomData","sap/ushell/resources","sap/ui/performance/Measurement","sap/ushell/ui/shell/ShellNavigationMenu","sap/ushell/services/AllMyApps"],function(B,a,L,P,b,R,T,I,D,C,A,r,M){"use strict";var s={SHELL_NAV_MENU_ONLY:0,ALL_MY_APPS_ONLY:1,SHELL_NAV_MENU:2,ALL_MY_APPS:3};var S=a.extend("sap.ushell.ui.shell.ShellAppTitle",{metadata:{associations:{navigationMenu:{type:"sap.ushell.ui.shell.ShellNavigationMenu"},allMyApps:{type:"sap.ui.core.mvc.ViewType.JS"}},events:{textChanged:{deprecated:true}}},renderer:{apiVersion:2,render:function(c,d){var v=d._getControlVisibilityAndState(),t=d.getText(),m=d.getModel();c.openStart("h1",d);c.class("sapUshellHeadTitle");if(v||D.system.phone){c.class("sapUshellAppTitleClickable");}c.attr("aria-level","1");c.openEnd();c.openStart("div",d.getId()+"-button");c.class("sapUshellAppTitle");if(v||D.system.phone){c.attr("tabindex","0");}if(d.getTooltip_AsString()){c.attr("title",d.getTooltip_AsString());}if(v){c.attr("role","button");c.attr("aria-haspopup","dialog");if(m&&C.last("/core/shellHeader/ShellAppTitleState")===s.ALL_MY_APPS_ONLY){c.attr("aria-label",r.i18n.getText("ShowAllMyApps_AriaLabel",[t]));}else{c.attr("aria-label",r.i18n.getText("ShellNavigationMenu_AriaLabel",[t]));}}c.openEnd();c.openStart("span");c.class("sapUshellAppTitleText");c.openEnd();c.text(t||"");c.close("span");if(v&&t){c.openStart("span");c.class("sapUshellShellHeadAction");c.openEnd();c.renderControl(d.oIcon);c.close("span");}c.close("div");c.close("h1");}}});S.prototype.init=function(){if(a.prototype.init){a.prototype.init.apply(this,arguments);}this.oIcon=I.createControlByURI(I.getIconURI("megamenu"));this.oIcon.addStyleClass("sapUshellAppTitleMenuIcon");if(D.system.desktop){this.addEventDelegate({onkeydown:function(e){if(e.altKey&&e.keyCode===40){this.onclick(e);}}.bind(this)});}};S.prototype.getFocusDomRef=function(){return this.getDomRef("button");};S.prototype.onclick=function(e){if(e){e.preventDefault();}this.firePress();if(!this._getControlVisibilityAndState()){if(D.system.phone){window.hasher.setHash(C.last("/core/shellHeader/rootIntent"));}return;}if(C.last("/core/shellHeader/ShellAppTitleState")===s.ALL_MY_APPS_ONLY){M.start("FLP:ShellAppTitle.onClick","Click ShellAppTitle in HOME state, Launching AllMyApps","FLP");this._openCloseAllMyAppsPopover();return;}this._openCloseNavMenuPopover();};S.prototype._openCloseAllMyAppsPopover=function(){if(!this.oAllMyAppsPopover){this.oAllMyAppsPopover=this._createAllMyAppsPopover();}if(this.oAllMyAppsPopover){if(this.oAllMyAppsPopover.isOpen()){this.oAllMyAppsPopover.close();}else{this.oAllMyAppsPopover.openBy(this);}}};S.prototype._openCloseNavMenuPopover=function(){if(!this.oNavMenuPopover){this.oNavMenuPopover=this._createNavMenuPopover();}this.getModel().setProperty("/ShellAppTitleState",s.SHELL_NAV_MENU);if(this.oNavMenuPopover.isOpen()){this.oNavMenuPopover.close();}else{this.oNavMenuPopover.openBy(this);}if(this.oNavMenuPopover.getFooter()){var c=C.last("/core/shell/model/currentState/stateName");this.oNavMenuPopover.getFooter().setVisible(c==="home"||c==="app");}};S.prototype.onsapskipback=function(e){e.preventDefault();sap.ushell.renderers.fiori2.AccessKeysHandler.bFocusOnShell=false;};S.prototype._getControlVisibilityAndState=function(){M.start("FLP:ShellAppTitle.getControlVisibilityAndState","Check AllMyApps and NavShellMenu visibility","FLP");var m=this.getModel(),c=C.last("/core/shell/model/currentState/stateName"),n=this._isNavMenuEnabled(),v=n;if(!m){return false;}if(c==="app"||c==="home"){var d=sap.ushell.Container.getService("AllMyApps").isEnabled();v=d||n;if(d&&n){m.setProperty("/ShellAppTitleState",s.SHELL_NAV_MENU);}else if(!d&&n){m.setProperty("/ShellAppTitleState",s.SHELL_NAV_MENU_ONLY);}else if(d&&!n){m.setProperty("/ShellAppTitleState",s.ALL_MY_APPS_ONLY);}}else{m.setProperty("/ShellAppTitleState",s.SHELL_NAV_MENU_ONLY);}M.end("FLP:ShellAppTitle.getControlVisibilityAndState");return v;};S.prototype._createAllMyAppsPopover=function(){var o=sap.ui.getCore().byId(this.getAllMyApps());if(!o){return null;}var c=new R("sapUshellAllMyAppsPopover",{placement:P.Bottom,title:"",showArrow:true,customHeader:this._getPopoverHeader(),showHeader:{path:"/ShellAppTitleState",formatter:function(d){return d!==s.SHELL_NAV_MENU;}},content:[o]});c.setModel(this.getModel());c.addStyleClass("sapUshellAppTitleAllMyAppsPopover");c.attachAfterOpen(function(){o._afterOpen();var h=c.getCustomHeader(),d=h.getContentLeft()[0],t=h.getContentLeft()[1];if(t.getVisible()){t.firePress();t.setPressed(true);}d.focus();});c.attachAfterClose(this._afterCloseAllMyAppsPopover.bind(this));return c;};S.prototype._afterCloseAllMyAppsPopover=function(){if(this._bOpenNavigationMenu===true){this._bOpenNavigationMenu=false;this.oNavMenuPopover.openBy(this);}else if(!D.system.phone){this.focus();}};S.prototype._createNavMenuPopover=function(){var n=sap.ui.getCore().byId(this.getNavigationMenu());var N=new b("sapUshellAppTitlePopover",{placement:P.Bottom,title:"",showArrow:true,showHeader:{path:"/ShellAppTitleState",formatter:function(c){return c!==s.SHELL_NAV_MENU;}},contentWidth:"20rem",content:n});if(sap.ushell.Container.getService("AllMyApps").isEnabled()){N.setFooter(this._getPopoverFooterContent());}N.addStyleClass("sapUshellAppTitleNavigationMenuPopover");N.setModel(this.getModel());C.emit("/core/shell/model/allMyAppsMasterLevel",0);N.attachBeforeOpen(function(){n._beforeOpen();});N.attachAfterOpen(function(){n.$().on("touchmove.scrollFix",function(e){e.stopPropagation();});n._afterOpen();});N.attachAfterClose(this._afterCloseNavigationMenuPopover.bind(this));return N;};S.prototype._afterCloseNavigationMenuPopover=function(){if(this._bOpenAllMyApps){this._bOpenAllMyApps=false;this._openCloseAllMyAppsPopover();}else if(!D.system.phone){this.focus();}};S.prototype._getPopoverHeader=function(){var o=new L({text:r.i18n.getText("allMyApps_headerTitle")});this.addCustomData(o,"role","heading");this.addCustomData(o,"aria-level","2");var p=new B("sapUshellShellAppPopoverHeader",{contentLeft:[this._createPopoverBackButton(),this._createPopoverToggleButton()],contentMiddle:[o]});return p;};S.prototype.onAfterRendering=function(){var o=sap.ui.getCore().byId("shell-header");if(o){o.refreshLayout();}};S.prototype._createPopoverBackButton=function(){var o=new a("sapUshellAppTitleBackButton",{icon:I.getIconURI("nav-back"),press:[this._popoverBackButtonPressHandler,this],tooltip:r.i18n.getText("backBtn_tooltip"),visible:this.getAllMyAppsController().getBackButtonVisible()});o.addStyleClass("sapUshellCatalogNewGroupBackButton");return o;};S.prototype._popoverBackButtonPressHandler=function(){var o=this.getAllMyAppsController(),c=o.getCurrentState(),d=o.getStateEnum(),m=this.getModel();if((c===d.FIRST_LEVEL)||(c===d.FIRST_LEVEL_SPREAD)){if(C.last("/core/shellHeader/ShellAppTitleState")!==s.ALL_MY_APPS_ONLY){m.setProperty("/ShellAppTitleState",s.SHELL_NAV_MENU);this.oAllMyAppsPopover.close();this._bOpenNavigationMenu=true;}}else if(c===d.SECOND_LEVEL){o.switchToInitialState();}else{o.handleSwitchToMasterAreaOnPhone();}o.updateHeaderButtonsState();};S.prototype._createPopoverToggleButton=function(){var o=this.getAllMyAppsController();var t=new T("sapUshellAllMyAppsToggleListButton",{icon:I.getIconURI("sap-icon://menu2"),press:function(e){o.switchToInitialState();this.setTooltip(e.getParameter("pressed")?r.i18n.getText("ToggleButtonHide"):r.i18n.getText("ToggleButtonShow"));},tooltip:r.i18n.getText("ToggleButtonShow"),visible:o.getToggleListButtonVisible()});D.media.attachHandler(function(){t.setVisible(o.getToggleListButtonVisible());},this,D.media.RANGESETS.SAP_STANDARD);t.addStyleClass("sapUshellAllMyAppsToggleListButton");return t;};S.prototype._getPopoverFooterContent=function(){var o=new a("allMyAppsButton",{text:r.i18n.getText("allMyApps_launchingButtonTitle"),press:this._allMyAppsButtonPressHandler.bind(this),visible:{path:"/ShellAppTitleState",formatter:function(c){return c===s.SHELL_NAV_MENU;}}});var p=new B("shellpopoverFooter",{contentMiddle:[o]});this.addCustomData(o,"role","button");this.addCustomData(o,"aria-label",r.i18n.getText("allMyApps_launchingButtonTitle"));return p;};S.prototype._allMyAppsButtonPressHandler=function(){if(sap.ui.getCore().byId(this.getAllMyApps())){M.start("FLP:ShellNavMenu.footerClick","Click the footer of ShellNavMenu, Launching AllMyApps","FLP");this.getModel().setProperty("/ShellAppTitleState",s.ALL_MY_APPS);this.oNavMenuPopover.close();this._bOpenAllMyApps=true;}};S.prototype._isNavMenuEnabled=function(){var n=sap.ui.getCore().byId(this.getNavigationMenu());return n?n.getItems()&&n.getItems().length>0:false;};S.prototype.addCustomData=function(i,k,v){i.addCustomData(new A({key:k,value:v,writeToDom:true}));};S.prototype.close=function(){if(this.oNavMenuPopover&&this.oNavMenuPopover.isOpen()){this.oNavMenuPopover.close();}if(this.oAllMyAppsPopover&&this.oAllMyAppsPopover.isOpen()){this.oAllMyAppsPopover.close();}};S.prototype.setTooltip=function(t){this.setAggregation("tooltip",t);this.oIcon.setTooltip(t);};S.prototype.getAllMyAppsController=function(){var o=sap.ui.getCore().byId(this.getAllMyApps());return o.getController();};S.prototype.getStateEnum=function(){return s;};S.prototype.onsapspace=S.prototype.onclick;S.prototype.onsapenter=S.prototype.onclick;S.prototype.exit=function(){var n=sap.ui.getCore().byId(this.getNavigationMenu()),o=sap.ui.getCore().byId(this.getAllMyApps());if(n){n.destroy();}if(o){o.destroy();}if(this.oAllMyAppsPopover){this.oAllMyAppsPopover.destroy();}if(this.oNavMenuPopover){this.oNavMenuPopover.destroy();}if(this.oIcon){this.oIcon.destroy();}};return S;},true);
sap.ui.predefine('sap/ushell/ui/shell/ShellHeadItem',["sap/ui/core/Control","sap/ui/core/IconPool","sap/base/util/ObjectPath"],function(C,I,O){"use strict";var S=C.extend("sap.ushell.ui.shell.ShellHeadItem",{metadata:{properties:{startsSection:{type:"boolean",group:"Appearance",defaultValue:false,deprecated:true},showSeparator:{type:"boolean",group:"Appearance",defaultValue:false,deprecated:true},enabled:{type:"boolean",group:"Appearance",defaultValue:true},selected:{type:"boolean",group:"Appearance",defaultValue:false},showMarker:{type:"boolean",group:"Appearance",defaultValue:false,deprecated:true},icon:{type:"sap.ui.core.URI",group:"Appearance",defaultValue:null},target:{type:"sap.ui.core.URI",group:"Appearance",defaultValue:null},ariaLabel:{type:"string",group:"Appearance",defaultValue:null},addAriaHiddenFalse:{type:"boolean",group:"Appearance",defaultValue:false},text:{type:"string",group:"Appearance",defaultValue:null},floatingNumber:{type:"int",group:"Appearance",defaultValue:null},floatingNumberMaxValue:{type:"int",group:"Appearance",defaultValue:999}},events:{press:{}}},renderer:{apiVersion:2,render:function(r,s){var a={role:"button"};if(s.getAriaLabel()){a.label=s.getAriaLabel();}if(s.getAddAriaHiddenFalse()){a.hidden=false;}r.openStart("a",s);r.attr("tabindex","0");if((s.getTarget()||"")!==""){r.attr("href",s.getTarget());}r.accessibilityState(a);if(s.getFloatingNumber()>0){r.class("sapUshellShellHeadItmCounter");r.attr("data-counter-content",s.getDisplayFloatingNumber());}r.class("sapUshellShellHeadItm");if(!s.getEnabled()){r.class("sapUshellShellHeadItmDisabled");}if(!s.getVisible()){r.class("sapUshellShellHidden");}if(s.getSelected()){r.class("sapUshellShellHeadItmSel");}if(s.getTooltip_AsString()){r.attr("title",s.getTooltip_AsString());}r.openEnd();r.openStart("span");r.class("sapUshellShellHeadItmCntnt");var i=s.getIcon();var o=I.isIconURI(i)&&I.getIconInfo(i);if(o){r.style("font-family",o.fontFamily);r.openEnd();r.text(o.content);}else{r.openEnd();r.voidStart("img");r.attr("id",s.getId()+"-img-inner");r.attr("src",i);r.voidEnd();}r.close("span");r.close("a");}}});S.prototype.getDisplayFloatingNumber=function(){var n=this.getFloatingNumber(),m=this.getFloatingNumberMaxValue();var d=n+"";if(n>m){d=m+"+";}return d;};S.prototype.onclick=function(e){if(this.getEnabled()){this.firePress();if(!this.getTarget()){e.preventDefault();}}};S.prototype.onsapspace=S.prototype.onclick;S.prototype.onsapenter=S.prototype.onclick;O.set("sap.ui.unified.ShellHeadItem",S);return S;},true);
sap.ui.predefine('sap/ushell/ui/shell/ShellLayout',["sap/ui/thirdparty/jquery","sap/ui/Device","sap/ui/core/Control","sap/ushell/Config","sap/ui/util/Storage","sap/base/Log","sap/ushell/library","sap/ushell/ui/shell/ToolArea","sap/ushell/ui/shell/ShellLayoutRenderer"],function(q,D,C,a,S,L){"use strict";var b=C.extend("sap.ushell.ui.shell.ShellLayout",{metadata:{properties:{headerHiding:{type:"boolean",group:"Appearance",defaultValue:false},headerVisible:{type:"boolean",group:"Appearance",defaultValue:true},toolAreaVisible:{type:"boolean",group:"Appearance",defaultValue:false},floatingContainerVisible:{type:"boolean",group:"Appearance",defaultValue:false},backgroundColorForce:{type:"boolean",group:"Appearance",defaultValue:true},showBrandLine:{type:"boolean",group:"Appearance",defaultValue:true},showAnimation:{type:"boolean",group:"Appearance",defaultValue:true},enableCanvasShapes:{type:"boolean",group:"Appearance",defaultValue:false}},aggregations:{toolArea:{type:"sap.ushell.ui.shell.ToolArea",multiple:false},rightFloatingContainer:{type:"sap.ushell.ui.shell.RightFloatingContainer",multiple:false},canvasSplitContainer:{type:"sap.ushell.ui.shell.SplitContainer",multiple:false},floatingActionsContainer:{type:"sap.ushell.ui.shell.ShellFloatingActions",multiple:false},footer:{type:"sap.ui.core.Control",multiple:false}},associations:{header:{type:"sap.ushell.ui.shell.ShellHeader",multiple:false},floatingContainer:{type:"sap.ushell.ui.shell.FloatingContainer",multiple:false}}}});b._SIDEPANE_WIDTH_PHONE=13;b._SIDEPANE_WIDTH_TABLET=13;b._SIDEPANE_WIDTH_DESKTOP=15;b.prototype.getHeader=function(){return sap.ui.getCore().byId(this.getAssociation("header"));};b.prototype.init=function(){this._rtl=sap.ui.getCore().getConfiguration().getRTL();this._showHeader=true;this._useStrongBG=false;D.media.attachHandler(this._handleMediaChange,this,D.media.RANGESETS.SAP_STANDARD);this._oDoable=a.on("/core/shellHeader/headerVisible").do(this.setHeaderVisible.bind(this));};b.prototype.destroy=function(){D.media.detachHandler(this._handleMediaChange,this,D.media.RANGESETS.SAP_STANDARD);if(this._oDoable){this._oDoable.off();this._oDoable=null;}if(this._oRm){this._oRm.destroy();this._oRm=null;}C.prototype.destroy.apply(this,arguments);};b.prototype.onAfterRendering=function(){this._setSidePaneWidth();};b.prototype.renderFloatingContainerWrapper=function(){var f=document.getElementById("sapUshellFloatingContainerWrapper"),c=document.getElementsByTagName("body"),s=q.sap.storage?new S(S.Type.local,"com.sap.ushell.adapters.local.FloatingContainer"):undefined;if(!f){f=document.createElement("DIV");f.setAttribute("id","sapUshellFloatingContainerWrapper");f.setAttribute("class","sapUshellShellFloatingContainerWrapper sapUshellShellHidden");c[0].appendChild(f);}if(s&&s.get("floatingContainerStyle")){f.setAttribute("style",s.get("floatingContainerStyle"));}};b.prototype.renderFloatingContainer=function(f){this.renderFloatingContainerWrapper();if(f&&!f.getDomRef()){q("#sapUshellFloatingContainerWrapper").toggleClass("sapUshellShellHidden",true);f.placeAt("sapUshellFloatingContainerWrapper");}};b.prototype.onThemeChanged=function(){return!!this.getDomRef();};b.prototype.setToolAreaVisible=function(v){this.setProperty("toolAreaVisible",!!v,true);if(this.getToolArea()){this.getToolArea().toggleStyleClass("sapUshellShellHidden",!v);this.applySplitContainerSecondaryContentSize();return this;}if(v){sap.ui.require(["sap/ushell/EventHub"],function(E){E.emit("CreateToolArea");});return this;}L.debug("Tool area not created but visibility updated",null,"sap.ushell.ShellLayout");return this;};b.prototype.getToolAreaSize=function(){if(this.getToolAreaVisible()){if(this.getToolArea().hasItemsWithText()){return"15rem";}return"3.0625rem";}return"0";};b.prototype.setFooter=function(f){this.setAggregation("footer",f,true);this._renderFooter(f);};b.prototype.applySplitContainerSecondaryContentSize=function(){var t=this.getToolAreaSize();this.getCanvasSplitContainer().applySecondaryContentSize(t);};b.prototype.setFloatingContainer=function(c){this.setAssociation("floatingContainer",c,true);this.renderFloatingContainer(c);};b.prototype.setFloatingContainerVisible=function(v){this.setProperty("floatingContainerVisible",!!v,true);if(this.getDomRef()){var s=q.sap.storage?new S(S.Type.local,"com.sap.ushell.adapters.local.FloatingContainer"):undefined,f=document.getElementById("sapUshellFloatingContainerWrapper");if(v&&s&&!s.get("floatingContainerStyle")){var e=q(".sapUshellShellHeadItm").position()?q(".sapUshellShellHeadItm").position().left:0;var l=(q(window).width()-q("#shell-floatingContainer").width()-e)*100/q(window).width();var t=q(".sapUshellShellHeader").height()*100/q(window).height();f.setAttribute("style","left:"+l+"%;top:"+t+"%;position:absolute;");s.put("floatingContainerStyle",f.getAttribute("style"));}q(".sapUshellShellFloatingContainerWrapper").toggleClass("sapUshellShellHidden",!v);}return this;};b.prototype.setFloatingActionsContainer=function(c){this.setAggregation("floatingActionsContainer",c,true);};b.prototype.setHeaderVisible=function(h){this.setProperty("headerVisible",!!h,true);this.$().toggleClass("sapUshellShellNoHead",!h);return this;};b.prototype._setStrongBackground=function(u){this._useStrongBG=!!u;this.$("strgbg").toggleClass("sapUiStrongBackgroundColor",this._useStrongBG);};b.prototype._setSidePaneWidth=function(r){var s=this.getCanvasSplitContainer();if(s){if(!r){r=D.media.getCurrentRange(D.media.RANGESETS.SAP_STANDARD).name;}var w=b["_SIDEPANE_WIDTH_"+r.toUpperCase()]+"rem";s.setSecondaryContentSize(w);}};b.prototype._hideFooter=function(d,f){d.classList.remove("sapUshellShellFooterVisible");f.classList.add("sapUiHidden");};b.prototype._showFooter=function(d,f,c){if(c._applyContextClassFor){c._applyContextClassFor("footer");}this._oRm=this._oRm||sap.ui.getCore().createRenderManager();d.classList.add("sapUshellShellFooterVisible");f.classList.remove("sapUiHidden");this._oRm.render(c,f);};b.prototype._renderFooter=function(f){var d=this.getDomRef();if(!d){return;}var F=d.querySelector("#"+this.getId()+"-footer");F.innerHTML="";if(!f){this._hideFooter(d,F);return;}this._showFooter(d,F,f);};b.prototype._handleMediaChange=function(p){if(!this.getDomRef()){return false;}this._setSidePaneWidth(p.name);};return b;},true);
sap.ui.predefine('sap/ushell/ui/shell/ShellLayoutRenderer',[],function(){"use strict";var S={};S.render=function(r,s){var i=s.getId(),c,a=(window.innerWidth>0)?window.innerWidth:screen.width,b=(window.innerHeight>0)?window.innerHeight:screen.height;r.write("<div");r.writeControlData(s);r.addClass("sapUshellShell");if(!s.getHeaderVisible()){r.addClass("sapUshellShellNoHead");}r.addClass("sapUshellShellHead"+(s._showHeader?"Visible":"Hidden"));r.writeClasses();r.write(">");r.write("<div style='z-index:-2' class='sapUiShellBackgroundImage sapUiGlobalBackgroundImageForce sapUshellShellBG sapContrastPlus'></div>");if(s.getEnableCanvasShapes()){r.write("<canvas id="+i+"-shapes height="+b+" width="+a+" aria-hidden=true style=position:absolute;z-index:-1 >");r.write("</canvas>");}if(s.getToolArea()){r.write("<aside>");r.renderControl(s.getToolArea());r.write("</aside>");}if(s.getRightFloatingContainer()){r.write("<aside>");r.renderControl(s.getRightFloatingContainer());r.write("</aside>");}c="sapUshellShellCntnt sapUshellShellCanvas";r.write("<div id='",i,"-cntnt' class='"+c+"'>");r.renderControl(s.getCanvasSplitContainer());r.write("</div>");r.write("<span id='",i,"-main-focusDummyOut' tabindex='-1'></span>");r.renderControl(s.getFloatingActionsContainer());var f=s.getFooter();r.openStart("footer",i+"-footer");r.class("sapMPageFooter");if(!f){r.class("sapUiHidden");}r.openEnd();if(f){if(f._applyContextClassFor){f._applyContextClassFor("footer");}r.renderControl(f);}r.close("footer");r.write("</div>");};return S;},true);
sap.ui.predefine('sap/ushell/ui/shell/ShellNavigationMenu',["sap/ui/thirdparty/jquery","sap/ushell/ui/launchpad/AccessibilityCustomData","sap/m/List","sap/m/FlexBox","sap/ui/core/Control","sap/m/StandardListItem","sap/m/Label","sap/ushell/resources","sap/m/VBox","sap/ui/Device","sap/ui/events/KeyCodes","sap/base/Log"],function(q,A,L,F,C,S,a,r,V,D,K,b){"use strict";var c=C.extend("sap.ushell.ui.shell.ShellNavigationMenu",{metadata:{properties:{title:{type:"string",group:"Misc",defaultValue:null},icon:{type:"sap.ui.core.URI",group:"Appearance",defaultValue:null},showTitle:{type:"boolean",defaultValue:false},showRelatedApps:{type:"boolean",defaultValue:true}},aggregations:{items:{type:"sap.m.ListItem",group:"Misc",defaultValue:null,singularName:"item"},miniTiles:{type:"sap.ushell.ui.shell.NavigationMiniTile",group:"Misc",defaultValue:null,singularName:"miniTile"}},events:{}},renderer:{render:function(R,o){var t,m;R.write("<div ");R.writeControlData(o);R.write(">");if(o.getShowTitle()){t=o.oTitle;t.setIcon(o.getIcon());t.setTitle(o.getTitle());R.write("<div id=\"sapUshellNavTitle\" >");R.renderControl(t);R.write("</div>");}if(o.oItemsList){R.renderControl(o.oItemsList);}if(o.getShowRelatedApps()){m=o.getMiniTiles();if(m&&m.length>0){R.renderControl(o.oRelatedAppsVbox);}}R.write("</div>");}}});var d=function(m){this.init(m);};d.prototype.init=function(m){this.keyCodes=K;this.jqElement=m.$();this.jqElement.on("keydown.keyboardNavigation",this.keydownHandler.bind(this));};d.prototype.destroy=function(){if(this.jqElement){this.jqElement.off(".keyboardNavigation");}delete this.jqElement;};d.prototype.keydownHandler=function(e){switch(e.keyCode){case this.keyCodes.ARROW_UP:this.upDownHandler(e,true);break;case this.keyCodes.ARROW_DOWN:this.upDownHandler(e,false);break;case this.keyCodes.ARROW_LEFT:this.leftRightHandler(e,false);break;case this.keyCodes.ARROW_RIGHT:this.leftRightHandler(e,true);break;case this.keyCodes.HOME:this.homeEndHandler(e,true);break;case this.keyCodes.END:this.homeEndHandler(e,false);break;case this.keyCodes.PAGE_UP:this.homeEndHandler(e,true);break;case this.keyCodes.PAGE_DOWN:this.homeEndHandler(e,false);break;default:break;}};d.prototype.upDownHandler=function(e,i){var j=q(document.activeElement);if(!j.hasClass("sapUshellNavMiniTile")){return false;}var f=j.parent().parent();var g=j.parent().index();var h=f.children();var n;if(i){n=g-3;if(n<0){n+=9;}}else{n=(g+3)%h.length;}var k=h[n].children[0];this._setItemFocus(e,q(k));};d.prototype.leftRightHandler=function(e,i){var n=i?"next":"prev",f,g,h,j,k,l,m=q(document.activeElement);if(!m.hasClass("sapUshellNavMiniTile")){return false;}f=m.parent();g=f[n]();h=g.index();j=f.parent();if(h===-1){k=i?0:j.children().length-1;}else{k=h;}l=j.children()[k].children[0];if(!l){return false;}this._setItemFocus(e,q(l));};d.prototype.homeEndHandler=function(e,i){var n=i?"first":"last";var j=q(document.activeElement);if(!j.hasClass("sapUshellNavMiniTile")){return false;}e.preventDefault();var f=this.jqElement.find(".sapUshellNavMiniTile")[n]();this._setItemFocus(e,f);};d.prototype._setItemFocus=function(e,j){e.preventDefault();e.stopImmediatePropagation();q(".sapUshellNavMiniTile").attr("tabindex",-1);j.attr("tabindex",0);j.focus();};d.prototype.setFocusToLastFocusedMiniTile=function(e){var j=q(".sapUshellNavMiniTile[tabindex='0']");if(j&&j[0]){this._setItemFocus(e,q(j));}else{this._setItemFocus(e,q(q(".sapUshellNavMiniTile")[0]));}};c.prototype.init=function(){};c.prototype._createItemsList=function(){this.oItemsList=new L("sapUshellNavHierarchyItems");};c.prototype._createMiniTilesBox=function(){this.oMiniTilesBox=new F("sapUshellNavRelatedAppsFlexBox");};c.prototype._beforeOpen=function(){if(!this.bInitialized){this.oTitle=new S("navMenuInnerTitle").addStyleClass("sapUshellNavigationMenuTitleItem");this.oRelatedAppsTitle=new a("sapUshellRelatedAppsLabel",{text:r.i18n.getText("shellNavMenu_relatedApps")});if(!this.oMiniTilesBox){this._createMiniTilesBox();}this.oRelatedAppsVbox=new V("sapUshellRelatedAppsItems",{items:[this.oRelatedAppsTitle,this.oMiniTilesBox]});this._extendInnerControlsForAccKeyboard();this.bInitialized=true;}};c.prototype._afterOpen=function(){if(D.system.desktop){if(this.keyboardNavigation){this.keyboardNavigation.destroy();}this.keyboardNavigation=new d(this.oMiniTilesBox);}};c.prototype._extendInnerControlsForAccKeyboard=function(){this.oTitle.addCustomData(new A({key:"aria-level",value:"1",writeToDom:true}));if(D.system.desktop){this.oTitle.addCustomData(new A({key:"tabindex",value:"0",writeToDom:true}));this.oItemsList.addEventDelegate({onsaptabprevious:function(e){if(this.getShowTitle()){e.preventDefault();e.stopImmediatePropagation();q("#navMenuInnerTitle").focus();}else{this.keyboardNavigation.setFocusToLastFocusedMiniTile(e);}}.bind(this),onsaptabnext:function(e){if(q(".sapUshellNavMiniTile").length){this.keyboardNavigation.setFocusToLastFocusedMiniTile(e);}else{var o=sap.ui.getCore().byId("allMyAppsButton");this.keyboardNavigation._setItemFocus(e,q((o.getDomRef())));}}.bind(this)});}};c.prototype.getMiniTiles=function(){if(this.oMiniTilesBox){return this.oMiniTilesBox.getItems();}return[];};c.prototype.insertMiniTile=function(m,i){if(!this.oMiniTilesBox){this._createMiniTilesBox();}this.oMiniTilesBox.insertItem(m,i);return this;};c.prototype.addMiniTile=function(m){if(!this.oMiniTilesBox){this._createMiniTilesBox();}if(this.oMiniTilesBox.getItems().length<9){this.oMiniTilesBox.addItem(m);}else{b.warning("ShellNavigationMenu.addMiniTile - miniTiles aggregation is already at maximum size of 9 elements "+"- current item was not added.");}return this;};c.prototype.removeMiniTile=function(i){if(this.oMiniTilesBox){this.oMiniTilesBox.removeItem(i);}return this;};c.prototype.removeAllMiniTiles=function(){if(this.oMiniTilesBox){this.oMiniTilesBox.removeAllItems();}return this;};c.prototype.destroyMiniTiles=function(){if(this.oMiniTilesBox){this.oMiniTilesBox.destroyItems();}return this;};c.prototype.indexOfMiniTile=function(m){if(this.oMiniTilesBox){return this.oMiniTilesBox.indexOfItem(m);}return-1;};c.prototype.getItems=function(){if(this.oItemsList){return this.oItemsList.getItems();}return[];};c.prototype.insertItem=function(h,i){if(!this.oItemsList){this._createItemsList();}h=this._extendHierarchyItemForAcc(h);this.oItemsList.insertItem(h,i);return this;};c.prototype.addItem=function(h){if(!this.oItemsList){this._createItemsList();}h=this._extendHierarchyItemForAcc(h);this.oItemsList.addItem(h);return this;};c.prototype.removeItem=function(i){if(this.oItemsList){this.oItemsList.removeItem(i);}return this;};c.prototype.removeAllItems=function(){if(this.oItemsList){this.oItemsList.removeAllItems();}return this;};c.prototype.destroyItems=function(){if(this.oItemsList){this.oItemsList.destroyItems();}return this;};c.prototype.indexOfItem=function(h){if(this.oItemsList){return this.oItemsList.indexOfItem(h);}return-1;};c.prototype._extendHierarchyItemForAcc=function(i){if(D.system.desktop){i.addEventDelegate({onsapspace:function(e){this.firePress();}.bind(i)});}return i;};c.prototype.exit=function(){if(this.oItemsList){this.oItemsList.destroy();}if(this.oMiniTilesBox){this.oMiniTilesBox.destroy();}if(this.bInitialized){this.oTitle.destroy();this.oRelatedAppsVbox.destroy();this.oRelatedAppsTitle.destroy();}if(this.keyboardNavigation){this.keyboardNavigation.destroy();}};c.prototype.onAfterRendering=function(){if(this.getShowTitle()){q("#sapUshellAppTitlePopover-intHeader").css("height",0);}else{q("#sapUshellAppTitlePopover-intHeader").css("height","0.5rem");}if(this.getShowTitle()){var j=q("#navMenuInnerTitle");j.attr("aria-readonly","true");j.attr("readonly","readonly");}var e=q("#sapUshellNavHierarchyItems ul");e.attr("role","group");e.attr("aria-label",r.i18n.getText("ShellNavigationMenu_HierarchyItemsAriaLabel"));var f=q("#sapUshellNavRelatedAppsFlexBox");f.attr("role","listbox");f.attr("aria-labelledBy","sapUshellRelatedAppsLabel");var g=q(".sapUshellNavMiniTile");for(var i=0;i<g.length;i++){q(g[i]).attr("aria-setsize",g.length);q(g[i]).attr("aria-posinset",i+1);}};return c;});
sap.ui.predefine('sap/ushell/ui/shell/SplitContainer',["sap/ui/core/Control","sap/ui/core/library","sap/base/Log","sap/ushell/ui/shell/ContentRenderer","sap/ushell/ui/shell/SplitContainerRenderer"],function(C,c,L,a){"use strict";var O=c.Orientation;var S=C.extend("sap.ushell.ui.shell.SplitContainer",{metadata:{library:"sap.ushell.ui.shell",properties:{showSecondaryContent:{type:"boolean",group:"Appearance",defaultValue:null},secondaryContentSize:{type:"sap.ui.core.CSSSize",group:"Appearance",defaultValue:"250px"},secondaryContentWidth:{type:"sap.ui.core.CSSSize",group:"Appearance",defaultValue:"250px",deprecated:true},orientation:{type:"sap.ui.core.Orientation",group:"Appearance",defaultValue:O.Horizontal}},defaultAggregation:"content",aggregations:{content:{type:"sap.ui.core.Control",multiple:true,singularName:"content"},secondaryContent:{type:"sap.ui.core.Control",multiple:true,singularName:"secondaryContent"},subHeader:{type:"sap.ui.core.Control",multiple:true,singularName:"subHeader"}}}});(function(){S.prototype.init=function(){this._paneRenderer=new a(this,this.getId()+"-panecntnt","secondaryContent");this._subHeadersRenderer=new a(this,this.getId()+"-canvassubHeader","subHeader");this._canvasRenderer=new a(this,this.getId()+"-canvasrootContent","content");};S.prototype.exit=function(){this._paneRenderer.destroy();delete this._paneRenderer;this._canvasRenderer.destroy();delete this._canvasRenderer;this._subHeadersRenderer.destroy();delete this._subHeadersRenderer;};S.prototype.onAfterRendering=function(){var t=this.getParent()?this.getParent().getToolAreaSize():"0";this.applySecondaryContentSize(t);};S.prototype.applySecondaryContentSize=function(t){if(this.getDomRef()){var s=this.getSecondaryContentSize(),b=this.getShowSecondaryContent(),r=sap.ui.getCore().getConfiguration().getRTL()?"right":"left",o=this.getDomRef("pane"),d,e;if(this.getOrientation()===O.Vertical){d="top";e=r;o.style.height=s;o.style.width="";}else{d=r;e="top";o.style.height="";o.style.width=s;}o.style[d]=b?t:"-"+s;o.style[e]="";this.$("pane").toggleClass("sapUshellSplitContSecondClosed",!b);s=parseFloat(s)+parseFloat(t)+"rem";this.getDomRef("canvas").style[d]=b?s:t;}};S.prototype._modifyAggregationOrProperty=function(m,d){var r=!!this.getDomRef();var b=m.apply(this,[r]);if(r&&d){d.render();}return b;};S.prototype.setShowSecondaryContent=function(s){this.setProperty("showSecondaryContent",!!s,!!this.getDomRef());this.onAfterRendering();return this;};S.prototype.setSecondaryContentSize=function(s){this.setProperty("secondaryContentSize",s,true);this.onAfterRendering();return this;};S.prototype.getSecondaryContentWidth=function(){L.warning("SplitContainer: Use of deprecated property \"SecondaryContentWidth\", please use "+"\"SecondaryContentSize\" instead.");return this.getSecondaryContentSize.apply(this,arguments);};S.prototype.setSecondaryContentWidth=function(){L.warning("SplitContainer: Use of deprecated property \"SecondaryContentWidth\", please use "+"\"SecondaryContentSize\" instead.");return this.setSecondaryContentSize.apply(this,arguments);};S.prototype.insertContent=function(o,i){return this._modifyAggregationOrProperty(function(r){return this.insertAggregation("content",o,i,r);},this._canvasRenderer);};S.prototype.addContent=function(o){return this._modifyAggregationOrProperty(function(r){return this.addAggregation("content",o,r);},this._canvasRenderer);};S.prototype.removeContent=function(i){return this._modifyAggregationOrProperty(function(r){return this.removeAggregation("content",i,r);},this._canvasRenderer);};S.prototype.removeAllContent=function(){return this._modifyAggregationOrProperty(function(r){return this.removeAllAggregation("content",r);},this._canvasRenderer);};S.prototype.destroyContent=function(){return this._modifyAggregationOrProperty(function(r){return this.destroyAggregation("content",r);},this._canvasRenderer);};S.prototype.insertSecondaryContent=function(o,i){return this._modifyAggregationOrProperty(function(r){return this.insertAggregation("secondaryContent",o,i,r);},this._paneRenderer);};S.prototype.addSecondaryContent=function(o){return this._modifyAggregationOrProperty(function(r){return this.addAggregation("secondaryContent",o,r);},this._paneRenderer);};S.prototype.removeSecondaryContent=function(i){return this._modifyAggregationOrProperty(function(r){return this.removeAggregation("secondaryContent",i,r);},this._paneRenderer);};S.prototype.removeAllSecondaryContent=function(){return this._modifyAggregationOrProperty(function(r){return this.removeAllAggregation("secondaryContent",r);},this._paneRenderer);};S.prototype.destroySecondaryContent=function(){return this._modifyAggregationOrProperty(function(r){return this.destroyAggregation("secondaryContent",r);},this._paneRenderer);};S.prototype.addSubHeader=function(o){return this._modifyAggregationOrProperty(function(r){return this.addAggregation("subHeader",o,r);},this._subHeadersRenderer);};S.prototype.removeSubHeader=function(){return this._modifyAggregationOrProperty(function(r){return this.removeAllAggregation("subHeader",r);},this._subHeadersRenderer);};S.prototype.destroySubHeader=function(){return this._modifyAggregationOrProperty(function(r){return this.destroyAggregation("subHeader",r);},this._subHeadersRenderer);};S.prototype.setSecondaryContentSize=function(s){this.setProperty("secondaryContentSize",s,true);this.onAfterRendering();};})();return S;});
sap.ui.predefine('sap/ushell/ui/shell/SplitContainerRenderer',["sap/ui/core/library"],function(c){"use strict";var O=c.Orientation;var S={};S.render=function(r,C){var i=C.getId();var v=C.getOrientation()===O.Vertical;r.write("<div");r.writeControlData(C);r.addClass("sapUshellSpltCont");r.addClass("sapUshellSpltCont"+(v?"V":"H"));if(sap.ui.getCore().getConfiguration().getAnimation()){r.addClass("sapUshellSpltContAnim");}if(!C.getShowSecondaryContent()){r.addClass("sapUshellSpltContPaneHidden");}r.writeClasses();r.write(">");var s=i+"-pane";var w=C.getShowSecondaryContent()?C.getSecondaryContentSize():"0";r.write("<aside id='",s,"' style='width:",w,"'");r.addClass("sapUshellSpltContPane");if(!C.getShowSecondaryContent()){r.addClass("sapUshellSplitContSecondClosed");}r.writeClasses();r.write(">");this.renderSecondaryContent(r,s,C.getSecondaryContent());r.write("</aside>");var a=i+"-canvas";r.write("<section id='",a,"' class='sapUshellSpltContCanvas'>");var o=C.getAggregation("subHeader");this.renderRootContent(r,a,C.getContent(),o);r.write("</section>");r.write("</div>");};S.renderRootContent=function(r,i,C,s){r.write("<div id='",i,"cntnt' class='sapUshellSpltContCntnt'");r.writeAttribute("data-sap-ui-root-content","true");r.write(">");r.write("<div id='",i,"subHeader'>");if(s&&s.length){r.renderControl(s[0]);}r.write("</div>");if(C&&C.length){r.write("<div id='",i,"rootContent' class='sapUshellSpltContainerContentWrapper'>");C.forEach(function(o,a){r.renderControl(o);});r.write("</div>");}r.write("</div>");};S.renderSecondaryContent=function(r,I,C){r.write("<div id='",I,"cntnt' class='sapUshellSpltContCntnt'");r.writeAttribute("data-sap-ui-root-content","true");r.write(">");for(var i=0;i<C.length;i++){r.renderControl(C[i]);}r.write("</div>");};return S;},true);
sap.ui.predefine('sap/ushell/ui/shell/ToolArea',["sap/ui/core/Control"],function(C){"use strict";var T=C.extend("sap.ushell.ui.shell.ToolArea",{metadata:{aggregations:{toolAreaItems:{type:"sap.ushell.ui.shell.ToolAreaItem",multiple:true}}},renderer:{apiVersion:2,render:function(r,t){r.openStart("div",t);r.class("sapUshellToolArea");if(!t.hasItemsWithText()){r.class("sapUshellToolAreaTextHidden");}r.openEnd();r.openStart("div");r.attr("id",t.getId()+"-cntnt");r.class("sapUshellToolAreaContainer");r.openEnd();var i=t.getToolAreaItems(),a,o;for(a=0;a<i.length;a++){o=i[a];if(o.getVisible()){r.openStart("div");r.class("sapUshellToolAreaContent");if(o.getSelected()){r.class("sapUshellToolAreaItemSelected");}r.openEnd();r.renderControl(o);r.close("div");r.openStart("div");r.class("sapUshellToolAreaContentSeparator");r.openEnd();r.close("div");}}r.close("div");r.close("div");}}});T.prototype.hasItemsWithText=function(){var i=this.getToolAreaItems(),a,t;for(a=0;a<i.length;a++){t=i[a];if(t.getVisible()&&t.getText()){return true;}}return false;};return T;});
sap.ui.predefine('sap/ushell/ui/shell/ToolAreaItem',["sap/ui/thirdparty/jquery","sap/ui/core/Control","sap/ui/core/IconPool","sap/ushell/library"],function(q,C,I){"use strict";var T=C.extend("sap.ushell.ui.shell.ToolAreaItem",{metadata:{properties:{icon:{type:"sap.ui.core.URI",group:"Appearance",defaultValue:null},selected:{type:"boolean",group:"Appearance",defaultValue:false},text:{type:"string",group:"Appearance",defaultValue:null},ariaLabel:{type:"string",group:"Appearance",defaultValue:null},visible:{type:"boolean",group:"Appearance",defaultValue:true},expandable:{type:"boolean",group:"Appearance",defaultValue:false}},events:{press:{},expand:{}}},renderer:{render:function(r,t){var i;r.write("<div");r.writeControlData(t);if(!t.getIcon()){r.addClass("sapUshellToolAreaItmTextOnly");}else{r.addClass("sapUshellToolAreaItm");}if(!t.getVisible()){r.addClass("sapUshellShellHidden");}if(t.getAriaLabel()){r.writeAccessibilityState({label:this.getAriaLabel(),role:"button"});}r.writeClasses();var a=t.getTooltip_AsString();if(a){r.writeAttributeEscaped("title",a);}r.write(">");if(t.getIcon()){i=I.createControlByURI(t.getIcon());i.setUseIconTooltip(false);i.addStyleClass("sapUshellToolAreaItemIcon");r.renderControl(i);}if(t.getText()){r.write("<span");r.addClass("sapUshellToolAreaItemText");r.writeClasses();r.write(">");r.writeEscaped(t.getText());r.write("</span>");}if(t.getExpandable()){this.renderExpandable(r);}r.write("</div>");},renderExpandable:function(r){var i=I.createControlByURI("sap-icon://icon-dropdown");i.addStyleClass("sapUshellToolAreaItemExpandable");r.renderControl(i);}}});T.prototype.onclick=function(e){if(this.$().parent().hasClass("sapUshellToolAreaItemSelected")){this.setSelected(false);}else{this.setSelected(true);}if(e.target.className.indexOf("sapUshellToolAreaItemExpandable")>0){this.fireExpand();}else{this.firePress();}};T.prototype.onsapenter=T.prototype.onclick;T.prototype.setExpandable=function(e){e=!!e;this.setProperty("expandable",e,true);this.$().toggleClass("sapUshellToolAreaItemExpandable",e);};T.prototype.setSelected=function(s){s=!!s;if(s){var j=q(".sapUshellToolAreaItemSelected");j.each(function(){q(this).removeClass("sapUshellToolAreaItemSelected");});}this.setProperty("selected",s,true);this.$().parent().toggleClass("sapUshellToolAreaItemSelected",s);};T.prototype.setVisible=function(v){var r=this.getParent()&&this.getParent().getDomRef();this.setProperty("visible",!!v,r);this.$().toggleClass("sapUshellShellHidden",!v);};T.prototype.setAriaLabel=function(a){this.setProperty("ariaLabel",a);return this;};return T;},true);
sap.ui.predefine('sap/ushell/ui5service/AppIsolationService',["sap/ui/core/service/ServiceFactoryRegistry","sap/ui/core/service/ServiceFactory","sap/ui/core/service/Service","./_AppIsolationService/appisolationservice.class.factory"],function(S,a,b,d){"use strict";return d({serviceRegistry:S,serviceFactory:a,service:b});});
sap.ui.predefine('sap/ushell/ui5service/CardNavigation',["sap/ui/core/service/Service","sap/ushell/Config","sap/ushell/services/AppType","sap/base/Log","sap/ushell/utils/WindowUtils"],function(S,C,A,U,W){"use strict";var a=S.extend("sap.ushell.ui5service.CardNavigation",{constructor:function(){this.oCrossAppNav=sap.ushell.Container.getService("CrossApplicationNavigation");}});a.prototype.navigate=function(c){var p=c.parameters;if(p.openUI){if(p.openUI==="RecentActivities"||p.openUI==="FrequentActivities"){sap.ui.require(["sap/ushell/ui/QuickAccess"],function(Q){var t=p.openUI==="RecentActivities"?"recentActivityFilter":"frequentlyUsedFilter";Q.openQuickAccessDialog(t);});}else{U.error("Request to open unknown User Interface: '"+p.openUI+"'");}}else if(p.url&&p.url!==""){var l=C.last("/core/shell/enableRecentActivity")&&C.last("/core/shell/enableRecentActivityLogging");if(l){var r={title:p.title,url:p.url,appType:A.URL,appId:p.url};sap.ushell.Container.getRenderer("fiori2").logRecentActivity(r);}W.openURL(p.url,"_blank");}else{this.oCrossAppNav.toExternal({target:{semanticObject:p.intentSemanticObject,action:p.intentAction},params:p.intentParameters,appSpecificRoute:p.intentAppRoute});}};a.prototype.enabled=function(c){var p=c.parameters;if(p.openUI){if(["RecentActivities","FrequentActivities"].indexOf(p.openUI)>-1){return Promise.resolve(true);}return Promise.resolve(false);}var n={target:{semanticObject:p.intentSemanticObject,action:p.intentAction},params:p.intentParameters};return new Promise(function(r){this.oCrossAppNav.isNavigationSupported([n]).done(function(R){r(R[0].supported);}).fail(function(){r(false);});}.bind(this));};return a;});
sap.ui.predefine('sap/ushell/ui5service/CardUserFrequents',["sap/ushell/ui5service/_CardUserRecents/CardUserRecentsBase","sap/ushell/EventHub","sap/ushell/Config"],function(C,E,c){"use strict";var d=C.extend("sap.ushell.ui5service.CardUserFrequents");d.prototype.getData=function(){if(!c.last("/core/shell/model/enableTrackingActivity")){return Promise.resolve([]);}return new Promise(function(r,a){this.oUserRecents.getFrequentActivity().done(function(f){r(this._getActivitiesAsCardItems(f));}.bind(this)).fail(function(e){a(e);});}.bind(this));};d.prototype.attachDataChanged=function(u){E.on("newUserRecentsItem").do(function(r){var U=this._sortAsFrequentActivities(r.recentUsageArray);var a=[];for(var i=0;i<U.length;i++){a.push(U[i].oItem);}var p=this._getActivitiesAsCardItems(a);u({data:p});}.bind(this));E.on("userRecentsCleared").do(function(){u({data:[]});});};d.prototype._sortAsFrequentActivities=function(r){var A,w=0,f=[],o,p=r[0]?new Date(r[0].iTimestamp):undefined,e;for(A=0;A<r.length&&w<30;A++){o=r[A];if(o.iCount>1){f.push(o);}e=new Date(o.iTimestamp);if(p.toDateString()!==e.toDateString()){w++;p=e;}}f.sort(function(a,b){return b.iCount-a.iCount;});return f.slice(0,30);};d.prototype.detachDataChanged=function(){E.on("newUserRecentsItem").off();E.on("userRecentsCleared").off();};d.hasNoAdapter=true;return d;},true);
sap.ui.predefine('sap/ushell/ui5service/CardUserRecents',["sap/ushell/ui5service/_CardUserRecents/CardUserRecentsBase","sap/ushell/EventHub","sap/ushell/Config"],function(C,E,a){"use strict";var b=C.extend("sap.ushell.ui5service.CardUserRecents");b.prototype.getData=function(){if(!a.last("/core/shell/model/enableTrackingActivity")){return Promise.resolve([]);}return new Promise(function(r,c){this.oUserRecents.getRecentActivity().done(function(R){r(this._getActivitiesAsCardItems(R));}.bind(this)).fail(function(e){c(e);});}.bind(this));};b.prototype.attachDataChanged=function(u){E.on("newUserRecentsItem").do(function(r){var U=r.recentUsageArray;var c=[];for(var i=0;i<U.length;i++){c.push(U[i].oItem);}var p=this._getActivitiesAsCardItems(c);u({data:p});}.bind(this));E.on("userRecentsCleared").do(function(){u({data:[]});});};b.prototype.detachDataChanged=function(){E.on("newUserRecentsItem").off();E.on("userRecentsCleared").off();};b.hasNoAdapter=true;return b;});
sap.ui.predefine('sap/ushell/ui5service/ShellUIService',["sap/ui/core/service/ServiceFactoryRegistry","sap/ui/core/service/ServiceFactory","sap/ui/core/service/Service","./_ShellUIService/shelluiservice.class.factory"],function(S,a,b,d){"use strict";return d({serviceRegistry:S,serviceFactory:a,service:b});},true);
sap.ui.predefine('sap/ushell/ui5service/_AppIsolationService/appisolationservice.class.factory',["sap/ui/base/EventProvider","sap/ushell/EventHub","sap/base/util/isPlainObject","sap/base/Log","sap/base/util/Version"],function(E,a,i,L,V){"use strict";return function(s){var S=s.serviceRegistry,b=s.serviceFactory,c=s.service;var e=new E(),A;var o;var d=c.extend("sap.ushell.ui5service.AppIsolationService",{init:function(){var t=this,p=this.getInterface();p.init=function(){t._amendPublicServiceInstance.call(t,this);};S.register("sap.ushell.ui5service.AppIsolationService",new b(p));},_setActiveComponentId:function(I){A=I;},_getActiveComponentId:function(){return A;},_getEventProvider:function(){return e;},_ensureArrayOfObjectOfStrings:function(v,m){var f=Array.isArray(v)&&v.every(function(O){return i(O)&&Object.keys(O).length>0&&Object.keys(O).every(function(k){return typeof O[k]==="string";});});if(!f){L.error("'"+m+"' was called with invalid parameters","An array of non-empty objects with string values is expected","sap.ushell.ui5service.AppIsolationService");}return f;},_ensureFunction:function(v,m){var t=typeof v;if(t!=="function"){L.error("'"+m+"' was called with invalid arguments","the parameter should be a function, got '"+t+"' instead","sap.ushell.ui5service.AppIsolationService");return false;}return true;},_ensureString:function(v,m){var t=typeof v;if(t!=="string"){L.error("'"+m+"' was called with invalid arguments","the parameter should be a string, got '"+t+"' instead","sap.ushell.ui5service.AppIsolationService");return false;}return true;},_addCallAllowedCheck:function(p,P){var t=this;p[P]=function(){var C=p.getContext();if(!C||C.scopeObject.getId()!==A){L.warning("Call to "+P+" is not allowed","This may be caused by an app component other than the active '"+A+"' that tries to call the method","sap.ushell.ui5service.AppIsolationService");return undefined;}return t[P].apply(p,arguments);};},_amendPublicServiceInstance:function(p){var C;var P={AppLifeCycle:undefined};sap.ui.getCore().getEventBus().publish("sap.ushell","getAppLifeCycle",P);o=P.AppLifeCycle;C=p.getContext();if(typeof C==="undefined"){return;}if(C.scopeType==="component"){this._setActiveComponentId(C.scopeObject.getId());return;}L.error("Invalid context for AppIsolationService interface","The context must be empty or an object like { scopeType: ..., scopeObject: ... }","sap.ushell.ui5service.AppIsolationService");},getUxdVersion:function(){if((new V(sap.ui.version).compareTo("1.37.0"))>=0){return 2;}return 1;},registerTunnels:function(t){o.registerTunnels(t);},registerEvents:function(f){o.registerEvents(f);},registerShellCommunicationHandler:function(C){o.registerShellCommunicationHandler(C);},registerIframeCommunicationHandler:function(h,f){o.registerIframeCommunicationHandler(h,f);},getCurrentAppHash:function(){return o.getCurrentApplication().hash;},getCurrentAppTargetResolution:function(){return o.getCurrentApplication().target;},createTunnel:function(C,f,m){return o.createTunnel(C,f,m);},getIframeHandelrs:function(){return o.getCurrentApplication().container.getIframeHandlers();},jsonStringifyFn:function(j){var r=JSON.stringify(j,function(k,v){return(typeof v==="function")?v.toString():v;});return r;}});return d;};});
sap.ui.predefine('sap/ushell/ui5service/_CardUserRecents/CardUserRecentsBase',["sap/ui/core/service/Service","sap/ushell/resources","sap/ushell/services/AppType"],function(S,r,A){"use strict";function _(t,s){if(s===A.SEARCH){return"\""+t+"\"";}return t;}function a(s){if(s===A.SEARCH){return r.i18n.getText("recentActivitiesSearchDescription");}return A.getDisplayName(s);}var C=S.extend("sap.ushell.ui5service._CardUserRecents.CardUserRecentsBase",{constructor:function(){S.apply(this);this.oUserRecents=sap.ushell.Container.getService("UserRecents");this.oURLParsing=sap.ushell.Container.getService("URLParsing");}});C.prototype._getActivitiesAsCardItems=function(b){var c=[],s={},o;for(var i=0;i<b.length;i++){if(b[i].url&&b[i].url!==""){s=this.oURLParsing.parseShellHash(b[i].url);o={Name:_(b[i].title,b[i].appType),Description:a(b[i].appType),Icon:b[i].icon||"sap-icon://product"};if(s){o.Intent={SemanticObject:s.semanticObject,Action:s.action,Parameters:s.params,AppSpecificRoute:s.appSpecificRoute};}else{o.Url=b[i].url;}c.push(o);}}return c;};return C;},true);
sap.ui.predefine('sap/ushell/ui5service/_ShellUIService/shelluiservice.class.factory',["sap/ui/base/EventProvider","sap/ui/thirdparty/hasher","sap/base/util/isPlainObject","sap/base/util/Version"],function(E,h,i,V){"use strict";return function(s){var S=s.serviceRegistry,a=s.serviceFactory,b=s.service;var l;var e=new E();var O={hierarchyChanged:"hierarchyChanged",relatedAppsChanged:"relatedAppsChanged",titleChanged:"titleChanged",backNavigationChanged:"backNavigationChanged"};var A;var c=b.extend("sap.ushell.ui5service.ShellUIService",{init:function(){var t=this,p=this.getInterface();p.init=function(){t._amendPublicServiceInstance.call(t,this);};S.register("sap.ushell.ui5service.ShellUIService",new a(p));},_setActiveComponentId:function(I){A=I;},_getActiveComponentId:function(){return A;},_shouldEnableAutoHierarchy:function(o){return typeof o.getManifestEntry==="function"&&o.getManifestEntry("/sap.ui5/services/ShellUIService/settings/setHierarchy")==="auto";},_shouldEnableAutoTitle:function(o){return typeof o.getManifestEntry==="function"&&o.getManifestEntry("/sap.ui5/services/ShellUIService/settings/setTitle")==="auto";},_enableAutoHierarchy:function(o){var t=this;var r=o.getRouter&&o.getRouter();if(!r){jQuery.sap.log.error("Could not enable automatic setHierarchy on the current app","Router could not be obtained on the app root component via getRouter","sap.ushell.ui5service.ShellUIService");return;}r.attachTitleChanged(function(d){var H=d.getParameter("history");t.setHierarchy(H.reverse().map(function(u){var f=t._getCurrentShellHashWithoutAppRoute();return{title:u.title,intent:f+"&/"+u.hash};}));});},_enableAutoTitle:function(o){var t=this;var r=o.getRouter&&o.getRouter();if(!r){jQuery.sap.log.error("Could not enable automatic setTitle on the current app","Router could not be obtained on the app root component via getRouter","sap.ushell.ui5service.ShellUIService");return;}var T=r.getTitleHistory()[0];if(T&&T.title){setTimeout(function(){t.setTitle(T.title);},0);}r.attachTitleChanged(function(d){var f=d.getParameter("title");t.setTitle(f);});},_getCurrentShellHashWithoutAppRoute:function(){var f="#"+h.getHash();var u=sap.ushell.Container.getService("URLParsing");var U=u.getShellHash(f);if(!U){jQuery.sap.log.error("Cannot get the current shell hash","URLParsing service returned a falsy value for "+f,"sap.ushell.ui5service.ShellUIService");return"";}return"#"+U;},_getEventProvider:function(){return e;},_getLastSetTitle:function(){return l;},_ensureArrayOfObjectOfStrings:function(v,m){var d=Array.isArray(v)&&v.every(function(o){return i(o)&&Object.keys(o).length>0&&Object.keys(o).every(function(k){return typeof o[k]==="string";});});if(!d){jQuery.sap.log.error("'"+m+"' was called with invalid parameters","An array of non-empty objects with string values is expected","sap.ushell.ui5service.ShellUIService");}return d;},_ensureFunction:function(v,m){var t=typeof v;if(t!=="function"){jQuery.sap.log.error("'"+m+"' was called with invalid arguments","the parameter should be a function, got '"+t+"' instead","sap.ushell.ui5service.ShellUIService");return false;}return true;},_ensureString:function(v,m){var t=typeof v;if(t!=="string"){jQuery.sap.log.error("'"+m+"' was called with invalid arguments","the parameter should be a string, got '"+t+"' instead","sap.ushell.ui5service.ShellUIService");return false;}return true;},_addCallAllowedCheck:function(p,P){var t=this;p[P]=function(){var C=p.getContext();if(!C||C.scopeObject.getId()!==A){jQuery.sap.log.warning("Call to "+P+" is not allowed","This may be caused by an app component other than the active '"+A+"' that tries to call the method","sap.ushell.ui5service.ShellUIService");return undefined;}if(P==="setHierarchy"&&C.scopeType==="component"&&C.scopeObject&&t._shouldEnableAutoHierarchy(C.scopeObject)){jQuery.sap.log.warning("Call to "+P+" is not allowed","The app defines that setHierarchy should be called automatically","sap.ushell.ui5service.ShellUIService");return undefined;}if(P==="setTitle"&&C.scopeType==="component"&&C.scopeObject&&t._shouldEnableAutoTitle(C.scopeObject)){jQuery.sap.log.warning("Call to "+P+" is not allowed","The app defines that setTitle should be called automatically","sap.ushell.ui5service.ShellUIService");return undefined;}return t[P].apply(p,arguments);};},_amendPublicServiceInstance:function(p){var t=this,C;C=p.getContext();if(typeof C==="undefined"){return;}["setTitle","setHierarchy","setRelatedApps","setBackNavigation"].forEach(function(m){t._addCallAllowedCheck(p,m);});var o=C.scopeObject;if(C.scopeType==="component"&&o){this._setActiveComponentId(o.getId());if(this._shouldEnableAutoHierarchy(o)){this._enableAutoHierarchy(o);}if(this._shouldEnableAutoTitle(o)){this._enableAutoTitle(o);}return;}jQuery.sap.log.error("Invalid context for ShellUIService interface","The context must be empty or an object like { scopeType: ..., scopeObject: ... }","sap.ushell.ui5service.ShellUIService");},setHierarchy:function(H){if(typeof H!=="undefined"&&!c.prototype._ensureArrayOfObjectOfStrings(H,"setHierarchy")){return;}var C=this.getContext().scopeObject;e.fireEvent(O.hierarchyChanged,{data:H,component:C});return;},setTitle:function(t){if(typeof t!=="undefined"&&!c.prototype._ensureString(t,"setTitle")){return;}var C=this.getContext().scopeObject;l=t;e.fireEvent(O.titleChanged,{data:t,component:C});return;},setBackNavigation:function(C){if(typeof C!=="undefined"&&!c.prototype._ensureFunction(C,"setBackNavigation")){return;}var o=this.getContext().scopeObject;e.fireEvent(O.backNavigationChanged,{data:C,component:o});return;},getTitle:function(){return this._getLastSetTitle();},setRelatedApps:function(r){if(typeof r!=="undefined"&&!c.prototype._ensureArrayOfObjectOfStrings(r,"setRelatedApps")){return;}var C=this.getContext().scopeObject;e.fireEvent(O.relatedAppsChanged,{data:r,component:C});return;},getUxdVersion:function(){if((new V(sap.ui.version).compareTo("1.37.0"))>=0){return 2;}return 1;},_attachHierarchyChanged:function(f){this._getEventProvider().attachEvent(O.hierarchyChanged,f);},_detachHierarchyChanged:function(f){this._getEventProvider().detachEvent(O.hierarchyChanged,f);},_attachTitleChanged:function(f){this._getEventProvider().attachEvent(O.titleChanged,f);},_attachBackNavigationChanged:function(f){this._getEventProvider().attachEvent(O.backNavigationChanged,f);},_detachBackNavigationChanged:function(f){this._getEventProvider().detachEvent(O.backNavigationChanged,f);},_detachTitleChanged:function(f){this._getEventProvider().detachEvent(O.titleChanged,f);},_attachRelatedAppsChanged:function(f){this._getEventProvider().attachEvent(O.relatedAppsChanged,f);},_detachRelatedAppsChanged:function(f){this._getEventProvider().detachEvent(O.relatedAppsChanged,f);}});return c;};});
sap.ui.predefine('sap/ushell/utils',["sap/base/util/UriParameters","sap/base/util/uid","sap/ui/core/theming/Parameters","sap/ui/thirdparty/URI","sap/ushell/utils/clone","sap/ushell/utils/type","sap/ui/Device"],function(U,u,P,b,c,t,D){"use strict";var d={};d.isArray=t.isArray;d.isPlainObject=t.isPlainObject;d.isDefined=t.isDefined;d.clone=c;d.getMember=function(o,a){var p=a.split("."),n=o;if(!o){return undefined;}p.forEach(function(s){if(typeof n!=="object"){return undefined;}n=n[s.replace(/[|]/g,".")];});return n;};d.updateProperties=function(T,s){Object.keys(T).forEach(function(p){if(s.hasOwnProperty(p)){T[p]=s[p];}});};d.getNestedObjectProperty=function(o,a,e){var M="Missing or invalid parameter";if(!o||!jQuery.isArray(o)||o.length==0||!a){throw new Error(M);}if(jQuery.isArray(a)&&a.length!=o.length){throw new Error(M);}var A=a;if(!jQuery.isArray(a)){A=Array.apply(null,Array(o.length)).map(function(){return a;});}var n=o.reduce(function(f,O,i){return f||d.getMember(O,A[i]);},undefined);return(n!=undefined)?n:e;};d.removeDuplicatedActions=function(a){if(jQuery.isArray(a)){var f=a.reduce(function(r,i){if(r.indexOf(i)<0){r.push(i);}return r;},[]);return f;}return a;};d.storeSapSystemData=function(s,S){var k,l,a,f=[s.id];if(arguments.length>1){f.unshift(S);}try{a=JSON.stringify(s);}catch(e){jQuery.sap.log.error("Cannot stringify and store expanded system data: "+e);}if(a){l=d.getLocalStorage();k=d.generateLocalStorageKey("sap-system-data",f);l.setItem(k,a);}};d.getLocalSystemInSidFormat=function(){var s=sap.ushell.Container.getLogonSystem(),S=s.getName(),a=s.getClient();return"sid("+S+"."+a+")";};d.matchesLocalSid=function(s){return d.getLocalSystemInSidFormat().toLowerCase()===s.toLowerCase();};d.storeSapSystemToLocalStorage=function(a){var p=(a||{}).params;if(!p||!p.hasOwnProperty("sap-system")){return;}if(d.isPlainObject(p["sap-system"])){var s=p["sap-system"],S=p["sap-system-src"];if(typeof S==="string"){d.storeSapSystemData(s,S);p["sap-system-src"]=S;}else{d.storeSapSystemData(s);}p["sap-system"]=s.id;}else if(d.matchesLocalSid(p["sap-system"])){delete p["sap-system"];}};d.setPerformanceMark=function(m,C){if(performance&&performance.mark){if(!C){C={};}if(C.bUseUniqueMark){if(C.bUseLastMark){performance.clearMarks(m);}else if(performance.getEntriesByName(m,"mark").length!=0){return;}}performance.mark(m);}};d.setPerformanceMeasure=function(m,s,e){if(performance&&performance.measure&&s&&e){performance.measure(m,s,e);}};d.addTime=function(i,I,e){if(!window["sap-ushell-startTime"]){window["sap-ushell-startTime"]=Date.now();}var s=window["sap-ushell-startTime"];e=e||Date.now();if(e<s){e=s+1;}jQuery.sap.measure.add("sap.ushell.fromStart."+i,I,s,e,e-s,e-s);};d.Error=function(m,C){this.name="sap.ushell.utils.Error";this.message=m;jQuery.sap.log.error(m,null,C);};d.Error.prototype=new Error();d.localStorageSetItem=function(k,v,l){var E;try{localStorage.setItem(k,v);if(l){E=document.createEvent("StorageEvent");E.initStorageEvent("storage",false,false,k,"",v,"",localStorage);dispatchEvent(E);}}catch(e){jQuery.sap.log.warning("Error calling localStorage.setItem(): "+e,null,"sap.ushell.utils");}};d.getLocalStorage=function(){return window.localStorage;};d.getLocalStorageItem=function(k){return window.localStorage.getItem(k);};d.generateUniqueId=function(T){var s,e,i;if(jQuery.isArray(T)){e=T;i=function(g){return e.indexOf(g)===-1;};}else{i=T;}do{s=d._getUid();}while(!i(s));return s;};d._getUid=function(){return u();};d.reload=function(){location.reload();};d.calculateOrigin=function(o){var a;if(o.origin){return o.origin;}if(o.protocol&&o.hostname){return o.protocol+"//"+o.hostname+(o.port?":"+o.port:"");}if(o.href){a=new b(o.href);return a.protocol()+"://"+a.hostname()+(a.port()?":"+a.port():"");}};d.getPrivateEpcm=function(){if(window.external&&window.external&&typeof window.external.getPrivateEpcm!=="undefined"){return window.external.getPrivateEpcm();}return undefined;};d.hasNativeNavigationCapability=function(){return d.isFeatureBitEnabled(1);};d.hasNativeLogoutCapability=function(){return d.isFeatureBitEnabled(2);};d.hasNavigationModeCapability=function(){return d.isFeatureBitEnabled(4);};d.hasFLPReadyNotificationCapability=function(){return d.isFeatureBitEnabled(8);};d.isFeatureBitEnabled=function(f){var F="0",p;p=d.getPrivateEpcm();if(p){try{F=p.getNwbcFeatureBits();jQuery.sap.log.debug("Detected epcm getNwbcFeatureBits returned feature bits: "+F);}catch(e){jQuery.sap.log.error("failed to get feature bit vector via call getNwbcFeatureBits on private epcm object",e.stack,"sap.ushell.utils");}}return(parseInt(F,16)&f)>0;};d.isApplicationTypeEmbeddedInIframe=function(a){return a==="NWBC"||a==="TR"||a==="WCF";};d.appendUserIdToUrl=function(p,s){var a=sap.ushell.Container.getService("UserInfo").getUser().getId(),S=s.indexOf("?")>=0?"&":"?";return s+S+p+"="+a;};d.appendSapShellParam=function(s,a){var e=a==="TR"?"":"-NWBC",v=d.getUi5Version();if(v){s+=s.indexOf("?")>=0?"&":"?";s+="sap-shell="+encodeURIComponent("FLP"+v+e);}return s;};d.getUi5Version=function(){var v,m;try{v=sap.ui.getVersionInfo().version;}catch(e){jQuery.sap.log.error("sap ui version could not be determined, using sap.ui.version (core version) as fallback "+e);v=window.sap&&sap.ui&&sap.ui.version;}m=/\d+\.\d+\.\d+/.exec(v);if(m&&m[0]){v=m[0];}else{v=undefined;}return v;};d.isNativeWebGuiNavigation=function(r){if(this.hasNativeNavigationCapability()&&r&&r.applicationType==="TR"){return true;}return false;};d.Map=function(){this.entries={};};d.Map.prototype.put=function(k,v){var o=this.get(k);this.entries[k]=v;return o;};d.Map.prototype.containsKey=function(k){if(typeof k!=="string"){throw new d.Error("Not a string key: "+k,"sap.ushell.utils.Map");}return Object.prototype.hasOwnProperty.call(this.entries,k);};d.Map.prototype.get=function(k){if(this.containsKey(k)){return this.entries[k];}};d.Map.prototype.keys=function(){return Object.keys(this.entries);};d.Map.prototype.remove=function(k){delete this.entries[k];};d.Map.prototype.toString=function(){var r=["sap.ushell.utils.Map("];r.push(JSON.stringify(this.entries));r.push(")");return r.join("");};d.getParameterValueBoolean=function(p,s){var o=U.fromURL(s||window.location.href),a=o.mParams&&o.mParams[p],T=["true","x"],f=["false",""],v;if(!a||a.length===0){return undefined;}v=a[0].toLowerCase();if(T.indexOf(v)>=0){return true;}if(f.indexOf(v)>=0){return false;}return undefined;};d.call=function(s,f,a){var m;if(a){setTimeout(function(){d.call(s,f,false);},0);return;}try{s();}catch(e){m=e.message||e.toString();jQuery.sap.log.error("Call to success handler failed: "+m,e.stack,"sap.ushell.utils");if(f){f(m);}}};d.handleTilesVisibility=function(){d.getVisibleTiles();};d.refreshTiles=function(){sap.ui.getCore().getEventBus().publish("launchpad","refreshTiles");};d.setTilesNoVisibility=function(){sap.ui.getCore().getEventBus().publish("launchpad","setTilesNoVisibility");};d.getBasicHash=function(h){if(!d.validHash(h)){jQuery.sap.log.debug("Utils ; getBasicHash ; Got invalid hash");return false;}var o=sap.ushell.Container.getService("URLParsing"),s=o.parseShellHash(h);return s?s.semanticObject+"-"+s.action:h;};d.validHash=function(h){return(h&&h.constructor===String&&jQuery.trim(h)!=="");};d.handleTilesOpacity=function(m){var T,a,e,C=P.get("sapUshellTileBackgroundColor"),r=this.hexToRgb(C),j,f,R,g,s,h,o,p,i,k,l,n=sap.ushell.Container.getService("UserRecents");if(r){R="rgba("+r.r+","+r.g+","+r.b+",{0})";e=n.getAppsUsage();e.done(function(q){T=q.usageMap;j=jQuery(".sapUshellTile").not(".sapUshellTileFooter");var v=m.getProperty("/groups");m.setProperty("/animationRendered",true);for(l=0;l<j.length;l++){g=jQuery(j[l]);s=this.getBasicHash(g.find(".sapUshellTileBase").attr("data-targeturl"));if(s){f=this.convertToRealOpacity(T[s],q.maxUsage);h=R.replace("{0}",f);a=sap.ui.getCore().byId(g.attr("id"));o=a.getBindingContext();p=o.sPath.split("/");i=p[2];k=p[4];v[i].tiles[k].rgba=h;}}m.setProperty("/groups",v);}.bind(this));}};d.convertToRealOpacity=function(a,m){var o=[1,0.95,0.9,0.85,0.8],O=Math.floor(m/o.length),i;if(!a){return o[0];}if(!m){return o[o.length-1];}i=Math.floor((m-a)/O);return i<o.length?o[i]:o[o.length-1];};d.getCurrentHiddenGroupIds=function(m){var l=sap.ushell.Container.getService("LaunchPage"),g=m.getProperty("/groups"),h=[],G,a,e;for(a=0;a<g.length;a++){e=g[a]?g[a].isGroupVisible:true;if(g[a].object){G=l.getGroupId(g[a].object);}if(!e&&G!==undefined){h.push(G);}}return h;};d.hexToRgb=function(h){var i=!h||h[0]!="#"||(h.length!=4&&h.length!=7),r;h=!i&&h.length===4?"#"+h[1]+h[1]+h[2]+h[2]+h[3]+h[3]:h;r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(h);return r?{r:parseInt(r[1],16),g:parseInt(r[2],16),b:parseInt(r[3],16)}:null;};d.getFormFactor=function(){var s=sap.ui.Device.system;if(s.desktop){return s.SYSTEMTYPE.DESKTOP;}if(s.tablet){return s.SYSTEMTYPE.TABLET;}if(s.phone){return s.SYSTEMTYPE.PHONE;}};d.getVisibleTiles=function(){var n=document.body.clientHeight,C=sap.ui.getCore().byId("dashboardGroups"),N=sap.ui.getCore().byId("viewPortContainer"),g,a,e,f,h,i,T,j,k,l,m,s=jQuery("#shell-hdr").height(),o=[],G,I,v=[],E=sap.ui.getCore().getEventBus(),p,q,r,w;if(window.document.hidden){E.publish("launchpad","onHiddenTab");}if(C&&C.getGroups()&&N){G=jQuery(C.getDomRef());I=G?G.is(":visible"):false;p=C.getGroups();for(g=0;g<p.length;g=g+1){f=p[g];h=f.getTiles();i=f.getLinks();q=[h,i];for(e=0;e<q.length;e++){r=q[e];if(r){for(a=0;a<r.length;a++){T=r[a];if(!I||window.document.hidden){o.push(T);}else{j=jQuery(T.getDomRef());k=j.offset();if(k){l=j.offset().top;m=l+j.height();w=f.getVisible()&&(m>s-300)&&(l<n+300);if(w){v.push({oTile:d.getTileModel(T),iGroup:g,bIsExtanded:!(m>s)||!(l<n)});}else if(v.length>0){E.publish("launchpad","visibleTilesChanged",v);return o;}o.push(T);}}}}}}}if(v.length>0){E.publish("launchpad","visibleTilesChanged",v);}return o;};d.getTileModel=function(a){var e=a.getBindingContext();return e.getObject()?e.getObject():null;};d.getTileObject=function(a){var e=a.getBindingContext();return e.getObject()?e.getObject().object:null;};d.recalculateBottomSpace=function(){var j=jQuery("#dashboardGroups").find(".sapUshellTileContainer:visible"),l=j.last(),h=jQuery(".sapUshellShellHead > div").height(),a=l.parent().height(),g=parseInt(l.find(".sapUshellContainerTitle").css("margin-top"),10),e=parseInt(jQuery(".sapUshellDashboardGroupsContainer").css("padding-bottom"),10),n;if(j.length===1){n=0;}else{n=jQuery(window).height()-h-a-g-e;n=(n<0)?0:n;}jQuery(".sapUshellDashboardGroupsContainer").css("margin-bottom",n+"px");};d.calcVisibilityModes=function(g,p){var i=true,I=true,l=g.pendingLinks&&g.pendingLinks.length?g.pendingLinks:g.links,h=d.groupHasVisibleTiles(g.tiles,l);if(!h&&(!p||(g.isGroupLocked)||(g.isDefaultGroup)||D.system.phone||(D.system.tablet&&!D.system.desktop))){i=false;}if(!h&&!p){I=false;}return[i,I];};d.groupHasVisibleTiles=function(g,a){var v=false,e,f,h=!g?[]:g,l=!a?[]:a;h=h.concat(l);if(!h.length){return false;}for(e=0;e<h.length;e=e+1){f=h[e];if(f.isTileIntentSupported){v=true;break;}}return v;};d.invokeUnfoldingArrayArguments=function(f,A){var e=this,g,o,p,r,h;if(!jQuery.isArray(A[0])){return f.apply(this,A);}g=A[0];if(g.length===0){return new jQuery.Deferred().resolve([]).promise();}o=new jQuery.Deferred();p=[];r=[];h=new jQuery.Deferred().resolve();g.forEach(function(n,i){if(!jQuery.isArray(n)){jQuery.sap.log.error("Expected Array as nTh Argument of multivalue invokation: first Argument must be array of array of arguments: single valued f(p1,p2), f(p1_2,p2_2), f(p1_3,p2_3) : multivalued : f([[p1,p2],[p1_2,p2_2],[p1_3,p2_3]]");throw new Error("Expected Array as nTh Argument of multivalue invokation: first Argument must be array of array of arguments: single valued f(p1,p2), f(p1_2,p2_2), f(p1_3,p2_3) : multivalued : f([[p1,p2],[p1_2,p2_2],[p1_3,p2_3]]");}var j=f.apply(e,n),k=new jQuery.Deferred();j.done(function(){var a=Array.prototype.slice.call(arguments);r[i]=a;k.resolve();}).fail(k.reject.bind(k));p.push(k.promise());h=jQuery.when(h,k);});jQuery.when.apply(jQuery,p).done(function(){o.resolve(r);}).fail(function(){o.reject("failure");});return o.promise();};d.isClientSideNavTargetResolutionEnabled=function(){var a=true,l;if(jQuery.sap.storage===undefined){l=window.localStorage.getItem("targetresolution-client");l=!(l===false||l==="false"||l==="");}else{l=jQuery.sap.storage(jQuery.sap.getObject("jQuery.sap.storage.Type.local"),"targetresolution").get("client");}if(l===""||l===false||d.getParameterValueBoolean("sap-ushell-nav-cs")===false){return false;}return a;};d._getCurrentDate=function(){return new Date();};d._convertToUTC=function(a){return Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate(),a.getUTCHours(),a.getUTCMinutes(),a.getUTCSeconds(),a.getUTCMilliseconds());};d.formatDate=function(C){var i,n,T,a,h,m;i=d._convertToUTC(new Date(C));n=d._convertToUTC(d._getCurrentDate());T=n-i;a=parseInt(T/(1000*60*60*24),10);if(a>0){if(a===1){return sap.ushell.resources.i18n.getText("time_day",a);}return sap.ushell.resources.i18n.getText("time_days",a);}h=parseInt(T/(1000*60*60),10);if(h>0){if(h===1){return sap.ushell.resources.i18n.getText("time_hour",h);}return sap.ushell.resources.i18n.getText("time_hours",h);}m=parseInt(T/(1000*60),10);if(m>0){if(m===1){return sap.ushell.resources.i18n.getText("time_minute",m);}return sap.ushell.resources.i18n.getText("time_minutes",m);}return sap.ushell.resources.i18n.getText("just_now");};d.toExternalWithParameters=function(s,a,p){var C=sap.ushell.Container.getService("CrossApplicationNavigation"),T={},o={},i,e,f;T.target={semanticObject:s,action:a};if(p&&p.length>0){o={};for(i=0;i<p.length;i++){e=p[i].Key;f=p[i].Value;o[e]=f;}T.params=o;}C.toExternal(T);};d.moveElementInsideOfArray=function(a,n,e){if(!d.isArray(a)||n===undefined||e===undefined){throw"Incorrect input parameters passed";}if(n>=a.length||e>=a.length||e<0||n<0){throw"Index out of bounds";}var E=a.splice(n,1)[0];a.splice(e,0,E);return a;};d.shallowMergeObject=function(T){return Array.prototype.slice.call(arguments,1,arguments.length).map(function(s){return{sourceObject:s,properties:Object.keys(s)};}).reduce(function(r,s){s.properties.forEach(function(p){r[p]=s.sourceObject[p];});return r;},T);};d.getLocationHref=function(){return window.location.href;};d.generateLocalStorageKey=function(p,i){var n=i.length;if(n===0){throw new Error("At least one id should be provided when generating the local storage key");}var s="$";if(n===2){s="#";}else if(n>2){s="@"+n+"@";}return p+s+i.join(":");};d.urlParametersToString=function(p,e,f){var g,a,k,i,l,s="";e=e||"&";f=f||"=";g="";a=null;l=[];for(a in p){if(p.hasOwnProperty(a)){l.push(a);}}l.sort();for(k=0;k<l.length;k=k+1){a=l[k];if(jQuery.isArray(p[a])){for(i=0;i<p[a].length;i=i+1){s+=g+encodeURIComponent(a)+f+encodeURIComponent(p[a][i]);g=e;}}else{s+=g+encodeURIComponent(a)+f+encodeURIComponent(p[a]);g=e;}}return s;};return d;},true);
sap.ui.predefine('sap/ushell/utils/WindowUtils',["sap/base/Log","sap/ui/Device","sap/ui/util/isCrossOriginURL"],function(L,D,i){"use strict";var W={};W.hasInvalidProtocol=function(U){var u=document.createElement("a");u.setAttribute("href",U);if(u.protocol==="javascript:"){return true;}return false;};W.isCrossOriginUrl=function(u){return i(u);};W.openURL=function(U,w,a,s){var S=(s===undefined)?true:s,I=this.isCrossOriginUrl(U);a=a||"";if(S&&this.hasInvalidProtocol(U)){L.fatal("Tried to open a URL with an invalid protocol");throw new Error("Tried to open a URL with an invalid protocol");}if(D.browser.msie){if(a!==undefined&&a!==null){L.warning("WindowUtils.js - 'windowFeatures' is ignored for new windows in Internet Explorer.");}var n=window.open("about:blank",w||"_blank");if(I){n.opener=null;}n.location.href=U;return I?true:n;}if(I){if(a.toLowerCase().indexOf("noopener")===-1){if(a!==""){a+=",";}a+="noopener";}if(a.toLowerCase().indexOf("noreferrer")===-1){a+=",noreferrer";}window.open(U,w,a);return true;}return window.open(U,w,a);};return W;});
sap.ui.predefine('sap/ushell/utils/clone',["sap/ushell/utils/type"],function(t){"use strict";function c(d){function a(o){return t.isPlainObject(o)?{}:[];}function b(v){if(v instanceof Promise){return false;}return t.isPlainObject(v)||t.isArray(v);}function g(v){if(t.isPlainObject(v)){return Object.keys(v).map(function(k){return{key:k,value:v[k]};});}var j=v.length;var I=[];for(var i=0;i<j;i++){I.push({value:v[i]});}return I;}function e(i,v){var A=t.isPlainObject(v)?function(i,v){v[i.key]=i.value;}:function(i,v){v.push(i.value);};A(i,v);}function s(i,j,q){j.push(i.length);Array.prototype.push.apply(q,i);}if(!b(d)){return d;}var C=a(d);var f=[C];var r=[];var R=[];var V=new WeakMap();V.set(d,C);s(g(d),R,r);while(f.length>0){var T=f.shift();var h=R.shift();r.splice(0,h).forEach(function(i){var p=i.value;if(!b(p)){e(i,T);return;}var o=p;var A=V.get(o);if(A){e({key:i.key,value:A},T);return;}var v=a(o);V.set(o,v);e({key:i.key,value:v},T);f.push(v);s(g(o),R,r);});}return C;}return c;},false);
sap.ui.predefine('sap/ushell/utils/type',[],function(){"use strict";function i(v){return Object.prototype.toString.apply(v)==="[object Array]";}function a(v){return Object.prototype.toString.apply(v)==="[object Object]";}function b(v){return typeof v!=="undefined";}return{isArray:i,isPlainObject:a,isDefined:b};},false);
/*!
 * 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.predefine('jquery.sap.global',["sap/base/util/now","sap/base/util/Version","sap/base/assert","sap/base/Log","sap/ui/dom/getComputedStyleFix","sap/ui/dom/activeElementFix","sap/ui/dom/includeScript","sap/ui/dom/includeStylesheet","sap/ui/core/support/Hotkeys","sap/ui/security/FrameOptions","sap/ui/performance/Measurement","sap/ui/performance/trace/Interaction","sap/ui/base/syncXHRFix","sap/base/util/LoaderExtensions",'sap/ui/events/PasteEventFix',"sap/ui/Device","sap/ui/thirdparty/URI","sap/ui/thirdparty/jquery","sap/ui/thirdparty/jqueryui/jquery-ui-position","ui5loader-autoconfig","jquery.sap.stubs"],function(now,Version,assert,Log,getComputedStyleFix,activeElementFix,includeScript,includeStylesheet,SupportHotkeys,FrameOptions,Measurement,Interaction,syncXHRFix,LoaderExtensions,PasteEventFix,Device,URI,jQuery){"use strict";if(!jQuery){throw new Error("Loading of jQuery failed");}var ui5loader=sap.ui.loader;if(!ui5loader||!ui5loader._){throw new Error("The UI5 compatilbility module requires a UI5 specific AMD implementation");}var _ui5loader=ui5loader._;var _earlyLogs=[];function _earlyLog(l,m){_earlyLogs.push({level:l,message:m});}var oJQVersion=Version(jQuery.fn.jquery);(function(){jQuery.support=jQuery.support||{};jQuery.support.retina=Device.support.retina;jQuery.support.touch=Device.support.touch;jQuery.support.cssTransforms=true;jQuery.support.cssTransforms3d=true;jQuery.support.cssTransitions=true;jQuery.support.cssAnimations=true;jQuery.support.cssGradients=true;jQuery.support.flexBoxPrefixed=false;jQuery.support.flexBoxLayout=false;jQuery.support.newFlexBoxLayout=true;jQuery.support.ie10FlexBoxLayout=false;jQuery.support.hasFlexBoxSupport=true;}());if(Device.browser.msie){jQuery.support.cors=true;if(window.ActiveXObject!==undefined&&oJQVersion.inRange("1.11","2")){var fnCreateStandardXHR=function(){try{return new XMLHttpRequest();}catch(e){}};var fnCreateActiveXHR=function(){try{return new ActiveXObject("Microsoft.XMLHTTP");}catch(e){}};jQuery.ajaxSettings=jQuery.ajaxSettings||{};jQuery.ajaxSettings.xhr=function(){return!this.isLocal?fnCreateStandardXHR():fnCreateActiveXHR();};}}if(Device.browser.firefox){getComputedStyleFix();}if(Device.browser.msie||Device.browser.edge){activeElementFix();}if(Device.browser.firefox&&window.Proxy){syncXHRFix();}var oCfgData=window["sap-ui-config"]=(function(){function n(o){for(var i in o){var v=o[i];var b=i.toLowerCase();if(!o.hasOwnProperty(b)){o[b]=v;delete o[i];}}return o;}function l(u){var b="sap-ui-config.json",d;Log.warning("Loading external bootstrap configuration from \""+u+"\". This is a design time feature and not for productive usage!");if(u!==b){Log.warning("The external bootstrap configuration file should be named \""+b+"\"!");}var x=new XMLHttpRequest();x.addEventListener('load',function(e){if(x.status===200&&x.responseText){try{d=JSON.parse(x.responseText);}catch(f){Log.error("Parsing externalized bootstrap configuration from \""+u+"\" failed! Reason: "+f+"!");}}else{Log.error("Loading externalized bootstrap configuration from \""+u+"\" failed! Response: "+x.status+"!");}});x.open('GET',u,false);try{x.send();}catch(f){Log.error("Loading externalized bootstrap configuration from \""+u+"\" failed! Reason: "+f+"!");}d=d||{};d.__loaded=true;return d;}function g(){function b(o,f){var u=o&&o.getAttribute("src");var M=f.exec(u);if(M){return{tag:o,url:u,resourceRoot:M[1]||""};}}var r=/^((?:.*\/)?resources\/)/,d,S,i,R;R=b(document.querySelector('SCRIPT[src][id=sap-ui-bootstrap]'),r);if(!R){S=document.querySelectorAll('SCRIPT[src]');d=/^([^?#]*\/)?(?:sap-ui-(?:core|custom|boot|merged)(?:-[^?#/]*)?|jquery.sap.global|ui5loader(?:-autoconfig)?)\.js(?:[?#]|$)/;for(i=0;i<S.length;i++){R=b(S[i],d);if(R){break;}}}return R||{};}var _=g(),s=_.tag,c=window["sap-ui-config"];if(typeof c==="string"){c=l(c);}c=n(c||{});c.resourceroots=c.resourceroots||{};c.themeroots=c.themeroots||{};if(/(^|\/)(sap-?ui5|[^\/]+-all).js([?#]|$)/.test(_.url)){Log.error("The all-in-one file 'sap-ui-core-all.js' has been abandoned in favour of standard preloads."+" Please migrate to sap-ui-core.js and consider to use async preloads.");c.preload='sync';}if(s){var C=s.getAttribute("data-sap-ui-config");if(C){try{var p;try{p=JSON.parse("{"+C+"}");}catch(e){Log.error("JSON.parse on the data-sap-ui-config attribute failed. Please check the config for JSON syntax violations.");p=(new Function("return {"+C+"};"))();}Object.assign(c,n(p));}catch(e){Log.error("failed to parse data-sap-ui-config attribute: "+(e.message||e));}}for(var i=0;i<s.attributes.length;i++){var a=s.attributes[i];var m=a.name.match(/^data-sap-ui-(.*)$/);if(m){m=m[1].toLowerCase();if(m==='resourceroots'){Object.assign(c[m],JSON.parse(a.value));}else if(m==='theme-roots'){Object.assign(c.themeroots,JSON.parse(a.value));}else if(m!=='config'){c[m]=a.value;}}}}return c;}());var syncCallBehavior=0;if(oCfgData['xx-nosync']==='warn'||/(?:\?|&)sap-ui-xx-nosync=(?:warn)/.exec(window.location.search)){syncCallBehavior=1;}if(oCfgData['xx-nosync']===true||oCfgData['xx-nosync']==='true'||/(?:\?|&)sap-ui-xx-nosync=(?:x|X|true)/.exec(window.location.search)){syncCallBehavior=2;}ui5loader.config({reportSyncCalls:syncCallBehavior});if(syncCallBehavior&&oCfgData.__loaded){_earlyLog(syncCallBehavior===1?"warning":"error","[nosync]: configuration loaded via sync XHR");}if(oCfgData.noconflict===true||oCfgData.noconflict==="true"||oCfgData.noconflict==="x"){jQuery.noConflict();}jQuery.sap=jQuery.sap||{};jQuery.sap.Version=Version;jQuery.sap.now=now;var fnMakeLocalStorageAccessor=function(k,t,c){return function(v){try{if(v!=null||t==='string'){if(v){localStorage.setItem(k,t==='boolean'?'X':v);}else{localStorage.removeItem(k);}c(v);}v=localStorage.getItem(k);return t==='boolean'?v==='X':v;}catch(e){Log.warning("Could not access localStorage while accessing '"+k+"' (value: '"+v+"', are cookies disabled?): "+e.message);}};};jQuery.sap.debug=fnMakeLocalStorageAccessor.call(this,'sap-ui-debug','',function(d){alert("Usage of debug sources is "+(d?"on":"off")+" now.\nFor the change to take effect, you need to reload the page.");});jQuery.sap.setReboot=fnMakeLocalStorageAccessor.call(this,'sap-ui-reboot-URL','string',function(r){if(r){alert("Next time this app is launched (only once), it will load UI5 from:\n"+r+".\nPlease reload the application page now.");}});jQuery.sap.statistics=fnMakeLocalStorageAccessor.call(this,'sap-ui-statistics','boolean',function(u){alert("Usage of Gateway statistics "+(u?"on":"off")+" now.\nFor the change to take effect, you need to reload the page.");});jQuery.sap.log=Object.assign(Log.getLogger(),{Level:Log.Level,getLogger:Log.getLogger,getLogEntries:Log.getLogEntries,addLogListener:Log.addLogListener,removeLogListener:Log.removeLogListener,logSupportInfo:Log.logSupportInfo,LogLevel:Log.Level,getLog:Log.getLogEntries});var sWindowName=(typeof window==="undefined"||window.top==window)?"":"["+window.location.pathname.split('/').slice(-1)[0]+"] ";jQuery.sap.assert=function(r,m){if(!r){var M=typeof m==="function"?m():m;assert(r,sWindowName+M);}};if(!window["sap-ui-optimized"]){Log.setLevel(Log.Level.DEBUG);}oCfgData.loglevel=(function(){var m=/(?:\?|&)sap-ui-log(?:L|-l)evel=([^&]*)/.exec(window.location.search);return m&&m[1];}())||oCfgData.loglevel;if(oCfgData.loglevel){Log.setLevel(Log.Level[oCfgData.loglevel.toUpperCase()]||parseInt(oCfgData.loglevel));}Log.info("SAP Logger started.");jQuery.each(_earlyLogs,function(i,e){Log[e.level](e.message);});_earlyLogs=null;jQuery.sap.factory=function factory(p){function F(){}F.prototype=p;return F;};jQuery.sap.newObject=function newObject(p){return Object.create(p||null);};jQuery.sap.getter=function(v){return function(){return v;};};jQuery.sap.getObject=function(n,N,c){var o=c||window,a=(n||"").split("."),l=a.length,e=isNaN(N)?0:l-N,i;if(syncCallBehavior&&c===window){Log.error("[nosync] getObject called to retrieve global name '"+n+"'");}for(i=0;o&&i<l;i++){if(!o[a[i]]&&i<e){o[a[i]]={};}o=o[a[i]];}return o;};jQuery.sap.setObject=function(n,v,c){var o=c||window,N=(n||"").split("."),l=N.length,i;if(l>0){for(i=0;o&&i<l-1;i++){if(!o[N[i]]){o[N[i]]={};}o=o[N[i]];}o[N[l-1]]=v;}};jQuery.sap.measure=Measurement;jQuery.sap.measure.clearInteractionMeasurements=Interaction.clear;jQuery.sap.measure.startInteraction=Interaction.start;jQuery.sap.measure.endInteraction=Interaction.end;jQuery.sap.measure.getPendingInteractionMeasurement=Interaction.getPending;jQuery.sap.measure.filterInteractionMeasurements=Interaction.filter;jQuery.sap.measure.getAllInteractionMeasurements=Interaction.getAll;jQuery.sap.measure.getRequestTimings=function(){if(window.performance.getEntriesByType){return window.performance.getEntriesByType("resource");}return[];};jQuery.sap.measure.clearRequestTimings=function(){if(window.performance.clearResourceTimings){window.performance.clearResourceTimings();}};jQuery.sap.measure.setRequestBufferSize=function(s){if(window.performance.setResourceTimingBufferSize){window.performance.setResourceTimingBufferSize(s);}};var getModuleSystemInfo=(function(){var l=_ui5loader.logger=Log.getLogger("sap.ui.ModuleSystem",(/sap-ui-xx-debug(M|-m)odule(L|-l)oading=(true|x|X)/.test(location.search)||oCfgData["xx-debugModuleLoading"])?Log.Level.DEBUG:Log.Level.INFO),k=LoaderExtensions.getKnownSubtypes(),r;(function(){var s="";for(var t in k){s=(s?s+"|":"")+"(?:(?:"+k[t].join("\\.|")+"\\.)?"+t+")";}s="\\.(?:"+s+"|[^./]+)$";l.debug("constructed regexp for file sub-types :"+s);r=new RegExp(s);}());function u(N){if(/^jquery\.sap\./.test(N)){return N;}return N.replace(/\./g,"/");}jQuery.sap.getModulePath=function(m,s){return jQuery.sap.getResourcePath(u(m),s);};jQuery.sap.getResourcePath=function(R,s){if(arguments.length===1&&R!=''){var S=R.split(/\//);var m=r.exec(S[S.length-1]);if(m){s=m[0];S[S.length-1]=S[S.length-1].slice(0,m.index);R=S.join('/');}else{s="";}}return _ui5loader.getResourcePath(R,s);};jQuery.sap.registerModulePath=function registerModulePath(m,v){m=m.replace(/\./g,"/");v=v||'.';LoaderExtensions.registerResourcePath(m,v);};jQuery.sap.registerResourcePath=LoaderExtensions.registerResourcePath;jQuery.sap.registerModuleShims=function(s){ui5loader.config({shim:s});};jQuery.sap.isDeclared=function isDeclared(m,i){var s=_ui5loader.getModuleState(u(m)+".js");return s&&(i||s>0);};jQuery.sap.isResourceLoaded=function isResourceLoaded(R){return!!_ui5loader.getModuleState(R);};jQuery.sap.getAllDeclaredModules=LoaderExtensions.getAllRequiredModules;var p={};for(var n in oCfgData.resourceroots){p[u(n)]=oCfgData.resourceroots[n]||".";}ui5loader.config({paths:p});var U=_ui5loader.getUrlPrefixes();l.info("URL prefixes set to:");for(var n in U){l.info("  "+(n?"'"+n+"'":"(default)")+" : "+U[n]);}jQuery.sap.declare=function(m,c){var N=m;if(typeof(m)==="object"){N=m.modName;m=u(m.modName)+(m.type?"."+m.type:"")+".js";}else{m=u(m)+".js";}_ui5loader.declareModule(m);if(c!==false){jQuery.sap.getObject(N,1);}};jQuery.sap.require=function(m){if(arguments.length>1){for(var i=0;i<arguments.length;i++){jQuery.sap.require(arguments[i]);}return this;}if(typeof(m)==="object"){m=u(m.modName)+(m.type?"."+m.type:"");}else{m=u(m);}sap.ui.requireSync(m);};Object.defineProperty(jQuery.sap.require,"_hook",{get:function(){return _ui5loader.translate;},set:function(h){_ui5loader.translate=h;}});jQuery.sap.preloadModules=function(P,a,s){Log.error("jQuery.sap.preloadModules was never a public API and has been removed. Migrate to Core.loadLibrary()!");};jQuery.sap.registerPreloadedModules=function(d){var m=d.modules;if(Version(d.version||"1.0").compareTo("2.0")<0){m={};for(var N in d.modules){m[u(N)+".js"]=d.modules[N];}}sap.ui.require.preload(m,d.name,d.url);};jQuery.sap.unloadResources=_ui5loader.unloadResources;jQuery.sap.getResourceName=function(m,s){return u(m)+(s==null?".js":s);};jQuery.sap.loadResource=LoaderExtensions.loadResource;jQuery.sap._loadJSResourceAsync=_ui5loader.loadJSResourceAsync;return function(){return{modules:_ui5loader.getAllModules(),prefixes:_ui5loader.getUrlPrefixes()};};}());jQuery.sap.includeScript=includeScript;jQuery.sap.includeStyleSheet=includeStylesheet;if(!(oCfgData.productive===true||oCfgData.productive==="true"||oCfgData.productive==="x")){SupportHotkeys.init(getModuleSystemInfo,oCfgData);}if(oJQVersion.compareTo("2.2.3")!=0){Log.warning("SAPUI5's default jQuery version is 2.2.3; current version is "+jQuery.fn.jquery+". Please note that we only support version 2.2.3.");}jQuery.sap.FrameOptions=FrameOptions;jQuery.sap.globalEval=function(){eval(arguments[0]);};(function(){var b=Device.browser;var i=b.name;if(!jQuery.browser){jQuery.browser=(function(u){var r=/(webkit)[ \/]([\w.]+)/,a=/(opera)(?:.*version)?[ \/]([\w.]+)/,c=/(msie) ([\w.]+)/,d=/(mozilla)(?:.*? rv:([\w.]+))?/,u=u.toLowerCase(),m=r.exec(u)||a.exec(u)||c.exec(u)||u.indexOf("compatible")<0&&d.exec(u)||[],e={};if(m[1]){e[m[1]]=true;e.version=m[2]||"0";if(e.webkit){e.safari=true;}}return e;}(window.navigator.userAgent));}if(i===b.BROWSER.CHROME){jQuery.browser.safari=false;jQuery.browser.chrome=true;}else if(i===b.BROWSER.SAFARI){jQuery.browser.safari=true;jQuery.browser.chrome=false;}if(i){jQuery.browser.fVersion=b.version;jQuery.browser.mobile=b.mobile;}}());return jQuery;});
sap.ui.predefine('jquery.sap.resources',['sap/base/i18n/ResourceBundle','jquery.sap.global'],function(R,q){"use strict";q.sap.resources=function(){return R.create.apply(R,arguments);};q.sap.resources.isBundle=function(b){return b instanceof R;};q.sap.resources._getFallbackLocales=R._getFallbackLocales;return q;});
sap.ui.predefine('jquery.sap.stubs',["sap/base/Log","sap/base/util/defineLazyProperty","sap/ui/thirdparty/jquery"],function(L,d,q){"use strict";q.sap=q.sap||{};var s={"jQuery.sap.":{target:q.sap,stubs:{"jquery.sap.act":["act"],"jquery.sap.dom":["domById","byId","focus","pxToRem","remToPx","containsOrEquals","denormalizeScrollLeftRTL","denormalizeScrollBeginRTL","ownerWindow","scrollbarSize","syncStyleClass"],"jquery.sap.encoder":["encodeHTML","encodeXML","escapeHTML","encodeJS","escapeJS","encodeURL","encodeURLParameters","encodeCSS","clearUrlWhitelist","addUrlWhitelist","removeUrlWhitelist","getUrlWhitelist","validateUrl","_sanitizeHTML"],"jquery.sap.events":["PseudoEvents","ControlEvents","disableTouchToMouseHandling","touchEventMode","bindAnyEvent","unbindAnyEvent","checkMouseEnterOrLeave","isSpecialKey","handleF6GroupNavigation","_FASTNAVIGATIONKEY","_refreshMouseEventDelayedFlag","isMouseEventDelayed"],"jquery.sap.global":["Version","now","debug","setReboot","statistics","log","assert","factory","newObject","getter","getObject","setObject","measure","getModulePath","getResourcePath","registerModulePath","registerResourcePath","registerModuleShims","isDeclared","isResourceLoaded","getAllDeclaredModules","declare","require","preloadModules","registerPreloadedModules","unloadResources","getResourceName","loadResource","_loadJSResourceAsync","includeScript","includeStyleSheet","FrameOptions","globalEval"],"jquery.sap.history":["history"],"jquery.sap.keycodes":["KeyCodes"],"jquery.sap.mobile":["initMobile","setIcons","setMobileWebAppCapable"],"jquery.sap.properties":["properties"],"jquery.sap.resources":["resources"],"jquery.sap.script":["uid","hashCode","unique","equal","each","arraySymbolDiff","_createJSTokenizer","parseJS","extend","getUriParameters","delayedCall","clearDelayedCall","intervalCall","clearIntervalCall","forIn","arrayDiff"],"jquery.sap.sjax":["sjaxSettings","sjax","syncHead","syncGet","syncPost","syncGetText","syncGetJSON"],"jquery.sap.storage":["storage"],"jquery.sap.strings":["endsWith","endsWithIgnoreCase","startsWith","startsWithIgnoreCase","charToUpperCase","padLeft","padRight","camelCase","hyphen","escapeRegExp","formatMessage"],"jquery.sap.trace":["interaction","fesr","passport"],"jquery.sap.unicode":["isStringNFC"],"jquery.sap.xml":["parseXML","serializeXML","isEqualNode","getParseError"]}},"jQuery.":{target:q,stubs:{"jquery.sap.mobile":["os","device"]}},"jQuery Plugin ":{target:q.fn,stubs:{"jquery.sap.ui":["root","uiarea","sapui"],"jquery.sap.dom":["outerHTML"],"sap/ui/dom/jquery/Aria":["addAriaLabelledBy","removeAriaLabelledBy","addAriaDescribedBy","removeAriaDescribedBy"],"sap/ui/dom/jquery/control":["control"],"sap/ui/dom/jquery/cursorPos":["cursorPos"],"sap/ui/dom/jquery/Focusable":["firstFocusableDomRef","lastFocusableDomRef"],"sap/ui/dom/jquery/getSelectedText":["getSelectedText"],"sap/ui/dom/jquery/hasTabIndex":["hasTabIndex"],"sap/ui/dom/jquery/parentByAttribute":["parentByAttribute"],"sap/ui/dom/jquery/rect":["rect"],"sap/ui/dom/jquery/rectContains":["rectContains"],"sap/ui/dom/jquery/scrollLeftRTL":["scrollLeftRTL"],"sap/ui/dom/jquery/scrollRightRTL":["scrollRightRTL"],"sap/ui/dom/jquery/selectText":["selectText"],"sap/ui/dom/jquery/zIndex":["zIndex"],"sap/ui/dom/jquery/Selection":["disableSelection","enableSelection"]}},"jQuery Selector :":{target:q.expr[":"],stubs:{"sap/ui/dom/jquery/Selectors":["focusable","sapTabbable","sapFocusable"]}}};function l(m,t,p,T){return function(){L.warning("Sync loading of module '"+m+"' due to usage of deprecated API '"+T+p+"'","jquery.sap.stubs",null,function(){return{type:"jquery.sap.stubs",name:T+p};});sap.ui.requireSync(m);return t[p];};}function a(t,T,m){if(!T){return;}Object.keys(m).forEach(function(M){var p=m[M];p.forEach(function(P){if(T&&!T[P]){d(T,P,l(M,T,P,t),"jquery.sap.stubs");}});});}L.debug("Applying lazy loading stubs for legacy APIs","jquery.sap.stubs");Object.keys(s).forEach(function(S){var o=s[S];a(S,o.target,o.stubs);});if(typeof window==="object"&&window["jquery.sap.stubs-test"]){window["jquery.sap.stubs-test"]=s;}return q;});
sap.ui.predefine('sap/base/Log',["sap/base/util/now"],function(n){"use strict";var L={};L.Level={NONE:-1,FATAL:0,ERROR:1,WARNING:2,INFO:3,DEBUG:4,TRACE:5,ALL:(5+1)};var d,l=[],m={'':L.Level.ERROR},a=3000,o=null,b=false;function p(i,w){return("000"+String(i)).slice(-w);}function c(C){return(!C||isNaN(m[C]))?m['']:m[C];}function e(){var i=l.length;if(i){var E=Math.min(i,Math.floor(a*0.7));if(o){o.onDiscardLogEntries(l.slice(0,i-E));}if(E){l=l.slice(-E,i);}else{l=[];}}}function g(){if(!o){o={listeners:[],onLogEntry:function(j){for(var i=0;i<o.listeners.length;i++){if(o.listeners[i].onLogEntry){o.listeners[i].onLogEntry(j);}}},onDiscardLogEntries:function(D){for(var i=0;i<o.listeners.length;i++){if(o.listeners[i].onDiscardLogEntries){o.listeners[i].onDiscardLogEntries(D);}}},attach:function(i,j){if(j){o.listeners.push(j);if(j.onAttachToLog){j.onAttachToLog(i);}}},detach:function(j,k){for(var i=0;i<o.listeners.length;i++){if(o.listeners[i]===k){if(k.onDetachFromLog){k.onDetachFromLog(j);}o.listeners.splice(i,1);return;}}}};}return o;}L.fatal=function(M,D,C,s){f(L.Level.FATAL,M,D,C,s);};L.error=function(M,D,C,s){f(L.Level.ERROR,M,D,C,s);};L.warning=function(M,D,C,s){f(L.Level.WARNING,M,D,C,s);};L.info=function(M,D,C,s){f(L.Level.INFO,M,D,C,s);};L.debug=function(M,D,C,s){f(L.Level.DEBUG,M,D,C,s);};L.trace=function(M,D,C,s){f(L.Level.TRACE,M,D,C,s);};L.setLevel=function(i,C,_){C=C||d||'';if(!_||m[C]==null){m[C]=i;var s;Object.keys(L.Level).forEach(function(j){if(L.Level[j]===i){s=j;}});f(L.Level.INFO,"Changing log level "+(C?"for '"+C+"' ":"")+"to "+s,"","sap.base.log");}};L.getLevel=function(C){return c(C||d);};L.isLoggable=function(i,C){return(i==null?L.Level.DEBUG:i)<=c(C||d);};L.logSupportInfo=function(E){b=E;};function f(i,M,D,C,s){if(!s&&!C&&typeof D==="function"){s=D;D="";}if(!s&&typeof C==="function"){s=C;C="";}C=C||d;if(i<=c(C)){var N=n(),j=new Date(N),k=Math.floor((N-Math.floor(N))*1000),q={time:p(j.getHours(),2)+":"+p(j.getMinutes(),2)+":"+p(j.getSeconds(),2)+"."+p(j.getMilliseconds(),3)+p(k,3),date:p(j.getFullYear(),4)+"-"+p(j.getMonth()+1,2)+"-"+p(j.getDate(),2),timestamp:N,level:i,message:String(M||""),details:String(D||""),component:String(C||"")};if(b&&typeof s==="function"){q.supportInfo=s();}if(a){if(l.length>=a){e();}l.push(q);}if(o){o.onLogEntry(q);}if(console){var r=D instanceof Error,t=q.date+" "+q.time+" "+q.message+" - "+q.details+" "+q.component;switch(i){case L.Level.FATAL:case L.Level.ERROR:r?console.error(t,"\n",D):console.error(t);break;case L.Level.WARNING:r?console.warn(t,"\n",D):console.warn(t);break;case L.Level.INFO:if(console.info){r?console.info(t,"\n",D):console.info(t);}else{r?console.log(t,"\n",D):console.log(t);}break;case L.Level.DEBUG:if(console.debug){r?console.debug(t,"\n",D):console.debug(t);}else{r?console.log(t,"\n",D):console.log(t);}break;case L.Level.TRACE:if(console.trace){r?console.trace(t,"\n",D):console.trace(t);}else{r?console.log(t,"\n",D):console.log(t);}break;}if(console.info&&q.supportInfo){console.info(q.supportInfo);}}return q;}}L.getLogEntries=function(){return l.slice();};L.getLogEntriesLimit=function(){return a;};L.setLogEntriesLimit=function(i){if(i<0){throw new Error("The log entries limit needs to be greater than or equal to 0!");}a=i;if(l.length>=a){e();}};L.addLogListener=function(o){g().attach(this,o);};L.removeLogListener=function(o){g().detach(this,o);};function h(C){this.fatal=function(i,j,k,s){L.fatal(i,j,k||C,s);return this;};this.error=function(i,j,k,s){L.error(i,j,k||C,s);return this;};this.warning=function(i,j,k,s){L.warning(i,j,k||C,s);return this;};this.info=function(i,j,k,s){L.info(i,j,k||C,s);return this;};this.debug=function(i,j,k,s){L.debug(i,j,k||C,s);return this;};this.trace=function(i,j,k,s){L.trace(i,j,k||C,s);return this;};this.setLevel=function(c,i){L.setLevel(c,i||C);return this;};this.getLevel=function(i){return L.getLevel(i||C);};this.isLoggable=function(c,i){return L.isLoggable(c,i||C);};}L.getLogger=function(C,D){if(!isNaN(D)&&m[C]==null){m[C]=D;}return new h(C);};return L;});
sap.ui.predefine('sap/base/assert',["./Log"],function(L){"use strict";var a=function(r,m){if(!r){var M=typeof m==="function"?m():m;if(console&&console.assert){console.assert(r,M);}else{L.debug("[Assertions] "+M);}}};return a;});
sap.ui.predefine('sap/base/i18n/ResourceBundle',['sap/base/assert','sap/base/Log','sap/base/strings/formatMessage','sap/base/util/Properties'],function(a,L,f,P){"use strict";var r=/^((?:[A-Z]{2,3}(?:-[A-Z]{3}){0,3})|[A-Z]{4}|[A-Z]{5,8})(?:-([A-Z]{4}))?(?:-([A-Z]{2}|[0-9]{3}))?((?:-[0-9A-Z]{5,8}|-[0-9][0-9A-Z]{3})*)((?:-[0-9A-WYZ](?:-[0-9A-Z]{2,8})+)*)(?:-(X(?:-[0-9A-Z]{1,8})+))?$/i;var M={"he":"iw","yi":"ji","nb":"no","sr":"sh"};var b={"iw":"he","ji":"yi","no":"nb"};var c={"en_US_saptrc":"1Q","en_US_sappsd":"2Q"};var d=/(?:^|-)(saptrc|sappsd)(?:-|$)/i;function n(i){var m;if(typeof i==='string'&&(m=r.exec(i.replace(/_/g,'-')))){var p=m[1].toLowerCase();p=M[p]||p;var S=m[2]?m[2].toLowerCase():undefined;var q=m[3]?m[3].toUpperCase():undefined;var v=m[4]?m[4].slice(1):undefined;var u=m[6];if((u&&(m=d.exec(u)))||(v&&(m=d.exec(v)))){return"en_US_"+m[1].toLowerCase();}if(p==="zh"&&!q){if(S==="hans"){q="CN";}else if(S==="hant"){q="TW";}}if(p==="sr"&&S==="latn"){p="sh";}return p+(q?"_"+q+(v?"_"+v.replace("-","_"):""):"");}}function e(){var i;if(window.sap&&window.sap.ui&&sap.ui.getCore){i=sap.ui.getCore().getConfiguration().getLanguage();i=n(i);}return i||"en";}function g(i){if(!i){return null;}if(i==="zh_HK"){return"zh_TW";}var p=i.lastIndexOf('_');if(p>=0){return i.slice(0,p);}return i!=='en'?'en':'';}function h(i){var m;if(typeof i==='string'&&(m=r.exec(i.replace(/_/g,'-')))){var p=m[1].toLowerCase();var S=m[2]?m[2].toLowerCase():undefined;if(p==="sr"&&S==="latn"){p="sh";}p=b[p]||p;return p+(m[3]?"-"+m[3].toUpperCase()+(m[4]?"-"+m[4].slice(1).replace("_","-"):""):"");}}var j=/^((?:[^?#]*\/)?[^\/?#]*)(\.[^.\/?#]+)((?:\?([^#]*))?(?:#(.*))?)$/;var A=[".properties",".hdbtextbundle"];function s(u){var m=j.exec(u);if(!m||A.indexOf(m[2])<0){throw new Error("resource URL '"+u+"' has unknown type (should be one of "+A.join(",")+")");}return{url:u,prefix:m[1],ext:m[2],query:m[4],hash:(m[5]||""),suffix:m[2]+(m[3]||"")};}function R(u,i,I,m){this.sLocale=this._sNextLocale=n(i)||e();this.oUrlInfo=s(u);this.bIncludeInfo=I;this.aCustomBundles=[];this.aPropertyFiles=[];this.aLocales=[];if(m){var p=function(){return this;}.bind(this);return l(this).then(p,p);}k(this);}R.prototype._enhance=function(C){if(C instanceof R){this.aCustomBundles.push(C);}else{L.error("Custom resource bundle is either undefined or not an instanceof sap/base/i18n/ResourceBundle. Therefore this custom resource bundle will be ignored!");}};R.prototype.getText=function(K,i,I){var v=this._getTextFromProperties(K,i);if(v!=null){return v;}v=this._getTextFromFallback(K,i);if(v!=null){return v;}a(false,"could not find any translatable text for key '"+K+"' in bundle '"+this.oUrlInfo.url+"'");if(I){return undefined;}else{return this._formatValue(K,K,i);}};R.prototype._formatValue=function(v,K,i){if(typeof v==="string"){if(i){v=f(v,i);}if(this.bIncludeInfo){v=new String(v);v.originInfo={source:"Resource Bundle",url:this.oUrlInfo.url,locale:this.sLocale,key:K};}}return v;};R.prototype._getTextFromFallback=function(K,m){var v,i;for(i=this.aCustomBundles.length-1;i>=0;i--){v=this.aCustomBundles[i]._getTextFromFallback(K,m);if(v!=null){return v;}}while(typeof v!=="string"&&this._sNextLocale!=null){var p=k(this);if(p){v=p.getProperty(K);if(typeof v==="string"){return this._formatValue(v,K,m);}}}return null;};R.prototype._getTextFromProperties=function(K,m){var v=null,i;for(i=this.aCustomBundles.length-1;i>=0;i--){v=this.aCustomBundles[i]._getTextFromProperties(K,m);if(v!=null){return v;}}for(i=0;i<this.aPropertyFiles.length;i++){v=this.aPropertyFiles[i].getProperty(K);if(typeof v==="string"){return this._formatValue(v,K,m);}}return null;};R.prototype.hasText=function(K){return this.aPropertyFiles.length>0&&typeof this.aPropertyFiles[0].getProperty(K)==="string";};function l(B){if(B._sNextLocale!=null){return t(B,true).then(function(p){return p||l(B);});}return Promise.resolve(null);}function k(B){while(B._sNextLocale!=null){var p=t(B,false);if(p){return p;}}return null;}function o(i,S){return!S||S.length===0||S.indexOf(i)>=0;}function t(B,i){var m=B._sNextLocale;B._sNextLocale=g(m);var S=window.sap&&window.sap.ui&&sap.ui.getCore&&sap.ui.getCore().getConfiguration().getSupportedLanguages();if(m!=null&&o(m,S)){var u=B.oUrlInfo,U,H;if(u.ext==='.hdbtextbundle'){if(c[m]){U=u.prefix+u.suffix+'?'+(u.query?u.query+"&":"")+"sap-language="+c[m]+(u.hash?"#"+u.hash:"");}else{U=u.url;}H={"Accept-Language":h(m)||""};}else{U=u.prefix+(m?"_"+m:"")+u.suffix;}var p=P.create({url:U,headers:H,async:!!i,returnNullIfMissing:true});var q=function(v){if(v){B.aPropertyFiles.push(v);B.aLocales.push(m);}return v;};return i?p.then(q):q(p);}return i?Promise.resolve(null):null;}R.create=function(p){p=Object.assign({url:"",locale:undefined,includeInfo:false},p);return new R(p.url,p.locale,p.includeInfo,!!p.async);};R._getFallbackLocales=function(i,S){var T=n(i),m=[];while(T!=null){if(o(T,S)){m.push(T);}T=g(T);}return m;};return R;});
sap.ui.predefine('sap/base/security/URLWhitelist',["sap/base/assert"],function(a){"use strict";var u={};function U(p,h,c,d){if(p){this.protocol=p.toUpperCase();}if(h){this.host=h.toUpperCase();}this.port=c;this.path=d;}var w=[];u.clear=function(){w.splice(0,w.length);};u.add=function(p,h,c,d){var e=new U(p,h,c,d);var i=w.length;w[i]=e;};u.delete=function(e){w.splice(w.indexOf(e),1);};u.entries=function(){return w.slice();};var r=/[\u0009\u000A\u000D]/;var b=/^((?:ftp|https?|wss?):)([\s\S]+)$/;u.validate=function(s){if(typeof s==="string"){if(r.test(s)){return false;}}var c=b.exec(s);if(c&&!/^[\/\\]{2}/.test(c[2])){s=c[1]+"//"+c[2];}c=/^(?:([^:\/?#]+):)?((?:[\/\\]{2,}((?:\[[^\]]+\]|[^\/?#:]+))(?::([0-9]+))?)?([^?#]*))(?:\?([^#]*))?(?:#(.*))?$/.exec(s);if(!c){return false;}var p=c[1],B=c[2],h=c[3],P=c[4],d=c[5],q=c[6],H=c[7];var e=/^([a-z0-9-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*$/i;var f=/^([a-z0-9-._~!$&'()*+,;=:@\/?]|%[0-9a-f]{2})*$/i;var g=f;var j=/^([a-z0-9!$'*+:^_`{|}~-]|%[0-9a-f]{2})+(?:\.([a-z0-9!$'*+:^_`{|}~-]|%[0-9a-f]{2})+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i;var k=/^([0-9]{1,3}\.){3}[0-9]{1,3}$/;var l=/^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$/;var m=/^\[[^\]]+\]$/;var n=/^\[(((([0-9a-f]{1,4}:){6}|(::([0-9a-f]{1,4}:){5})|(([0-9a-f]{1,4})?::([0-9a-f]{1,4}:){4})|((([0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::([0-9a-f]{1,4}:){3})|((([0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::([0-9a-f]{1,4}:){2})|((([0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:)|((([0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::))(([0-9a-f]{1,4}:[0-9a-f]{1,4})|(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])))|((([0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4})|((([0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::))\]$/i;var o=/^([a-z0-9]([a-z0-9\-]*[a-z0-9])?\.)*[a-z0-9]([a-z0-9\-]*[a-z0-9])?$/i;if(p){p=p.toUpperCase();if(w.length<=0){if(!/^(https?|ftp)/i.test(p)){return false;}}}if(h){if(k.test(h)){if(!l.test(h)){return false;}}else if(m.test(h)){if(!n.test(h)){return false;}}else if(!o.test(h)){return false;}h=h.toUpperCase();}if(d){if(p==="MAILTO"){var A=B.split(",");for(var i=0;i<A.length;i++){if(!j.test(A[i])){return false;}}}else{var C=d.split("/");for(var i=0;i<C.length;i++){if(!e.test(C[i])){return false;}}}}if(q){if(!f.test(q)){return false;}}if(H){if(!g.test(H)){return false;}}if(w.length>0){var F=false;for(var i=0;i<w.length;i++){a(w[i]instanceof U,"whitelist entry type wrong");if(!p||!w[i].protocol||p==w[i].protocol){var O=false;if(h&&w[i].host&&/^\*/.test(w[i].host)){var t=w[i].host.slice(1).replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");var v=RegExp(t+"$");if(v.test(h)){O=true;}}else if(!h||!w[i].host||h==w[i].host){O=true;}if(O){if((!h&&!P)||!w[i].port||P==w[i].port){if(w[i].path&&/\*$/.test(w[i].path)){var x=w[i].path.slice(0,-1).replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");var v=RegExp("^"+x);if(v.test(d)){F=true;}}else if(!w[i].path||d==w[i].path){F=true;}}}}if(F){break;}}if(!F){return false;}}return true;};return u;});
sap.ui.predefine('sap/base/security/encodeCSS',["sap/base/strings/toHex"],function(t){"use strict";var r=/[\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xff\u2028\u2029][0-9A-Fa-f]?/g;var c=function(C){var i=C.charCodeAt(0);if(C.length===1){return"\\"+t(i);}else{return"\\"+t(i)+" "+C.substr(1);}};var e=function(s){return s.replace(r,c);};return e;});
sap.ui.predefine('sap/base/security/encodeURL',["sap/base/strings/toHex"],function(t){"use strict";var r=/[\x00-\x2c\x2f\x3a-\x40\x5b-\x5e\x60\x7b-\uffff]/g,u={};var U=function(c){var E=u[c];if(!E){var C=c.charCodeAt(0);if(C<128){E="%"+t(C,2);}else if(C<2048){E="%"+t((C>>6)|192,2)+"%"+t((C&63)|128,2);}else{E="%"+t((C>>12)|224,2)+"%"+t(((C>>6)&63)|128,2)+"%"+t((C&63)|128,2);}u[c]=E;}return E;};var e=function(s){return s.replace(r,U);};return e;});
sap.ui.predefine('sap/base/security/encodeURLParameters',["./encodeURL"],function(e){"use strict";var E=function(p){if(!p){return"";}var u=[];Object.keys(p).forEach(function(n){var v=p[n];if(v instanceof String||typeof v==="string"){v=e(v);}u.push(e(n)+"="+v);});return u.join("&");};return E;});
sap.ui.predefine('sap/base/security/encodeXML',["sap/base/strings/toHex"],function(t){"use strict";var r=/[\x00-\x2b\x2f\x3a-\x40\x5b-\x5e\x60\x7b-\xff\u2028\u2029]/g,a=/[\x00-\x08\x0b\x0c\x0e-\x1f\x7f-\x9f]/,h={"<":"&lt;",">":"&gt;","&":"&amp;","\"":"&quot;"};var H=function(c){var E=h[c];if(!E){if(a.test(c)){E="&#xfffd;";}else{E="&#x"+t(c.charCodeAt(0))+";";}h[c]=E;}return E;};var e=function(s){return s.replace(r,H);};return e;});
sap.ui.predefine('sap/base/security/sanitizeHTML',["sap/base/assert","sap/base/security/URLWhitelist","sap/ui/thirdparty/caja-html-sanitizer"],function(a,U){"use strict";var s=function(h,o){a(window.html&&window.html.sanitize,"Sanitizer should have been loaded");o=o||{uriRewriter:function(u){if(U.validate(u)){return u;}}};var t=o.tagPolicy||window.html.makeTagPolicy(o.uriRewriter,o.tokenPolicy);return window.html.sanitizeWithPolicy(h,t);};return s;});
sap.ui.predefine('sap/base/strings/camelize',[],function(){"use strict";var r=/-(.)/ig;var c=function(s){return s.replace(r,function(m,C){return C.toUpperCase();});};return c;});
sap.ui.predefine('sap/base/strings/capitalize',[],function(){"use strict";var c=function(s){return s.charAt(0).toUpperCase()+s.substring(1);};return c;});
sap.ui.predefine('sap/base/strings/escapeRegExp',[],function(){"use strict";var r=/[[\]{}()*+?.\\^$|]/g;var e=function(s){return s.replace(r,"\\$&");};return e;});
sap.ui.predefine('sap/base/strings/formatMessage',["sap/base/assert"],function(a){"use strict";var r=/('')|'([^']+(?:''[^']*)*)(?:'|$)|\{([0-9]+(?:\s*,[^{}]*)?)\}|[{}]/g;var f=function(p,v){a(typeof p==="string"||p instanceof String,"pattern must be string");if(arguments.length>2||(v!=null&&!Array.isArray(v))){v=Array.prototype.slice.call(arguments,1);}v=v||[];return p.replace(r,function($,b,c,d,o){if(b){return"'";}else if(c){return c.replace(/''/g,"'");}else if(d){return String(v[parseInt(d)]);}throw new Error("formatMessage: pattern syntax error at pos. "+o);});};return f;});
sap.ui.predefine('sap/base/strings/hash',[],function(){"use strict";var h=function(s){var i=s.length,H=0;while(i--){H=(H<<5)-H+s.charCodeAt(i);H=H&H;}return H;};return h;});
sap.ui.predefine('sap/base/strings/toHex',[],function(){"use strict";var t=function(c,l){var h=c.toString(16);if(l){h=h.padStart(l,'0');}return h;};return t;});
sap.ui.predefine('sap/base/util/LoaderExtensions',['sap/ui/thirdparty/jquery','sap/base/Log','sap/base/assert'],function(q,L,a){"use strict";var b={};var F="fragment";var V="view";var K={js:[V,F,"controller","designtime"],xml:[V,F],json:[V,F],html:[V,F]};var r;(function(){var s="";for(var t in K){s=(s?s+"|":"")+t;}s="\\.("+s+")$";r=new RegExp(s);}());b.getKnownSubtypes=function(){return K;};b.getAllRequiredModules=function(){var m=[],M=sap.ui.loader._.getAllModules(true),o;for(var s in M){o=M[s];if(o.ui5&&o.state!==-1){m.push(o.ui5);}}return m;};var f=Object.create(null);b.registerResourcePath=function(R,u){if(!u){u={url:null};}if(!f[R]){var U;if(typeof u==="string"||u instanceof String){U=u;}else{U=u.url;if(u.final){f[R]=u.final;}}var o=sap.ui.require.toUrl(R);var c;if(U!==o||u.final){c={paths:{}};c.paths[R]=U;sap.ui.loader.config(c);L.info("LoaderExtensions.registerResourcePath ('"+R+"', '"+U+"')"+(u['final']?" (final)":""));}}else{L.warning("LoaderExtensions.registerResourcePath with prefix "+R+" already set as final. This call is ignored.");}};b.loadResource=function(R,o){var t,D,u,E,c,s;if(typeof R==="string"){o=o||{};}else{o=R||{};R=o.name;}o=q.extend({failOnError:true,async:false},o);t=o.dataType;if(t==null&&R){t=(t=r.exec(R||o.url))&&t[1];}a(/^(xml|html|json|text)$/.test(t),"type must be one of xml, html, json or text");c=o.async?new q.Deferred():null;function h(d,e){if(d==null&&o.failOnError){E=e||new Error("no data returned for "+R);if(o.async){c.reject(E);L.error(E);}return null;}if(o.async){c.resolve(d);}return d;}function g(d){var C=q.ajaxSettings.converters["text "+t];if(typeof C==="function"){d=C(d);}return h(d);}D=sap.ui.loader._.getModuleContent(R,o.url);if(D!=undefined){if(o.async){setTimeout(function(){g(D);},0);}else{D=g(D);}}else{s=sap.ui.loader._.getSyncCallBehavior();if(!o.async&&s){if(s>=1){L.error("[nosync] loading resource '"+(R||o.url)+"' with sync XHR");}else{throw new Error("[nosync] loading resource '"+(R||o.url)+"' with sync XHR");}}q.ajax({url:u=o.url||sap.ui.loader._.getResourcePath(R),async:o.async,dataType:t,headers:o.headers,success:function(d,e,x){D=h(d);},error:function(x,d,e){E=new Error("resource "+R+" could not be loaded from "+u+". Check for 'file not found' or parse errors. Reason: "+e);E.status=d;E.error=e;E.statusCode=x.status;D=h(null,E);}});}if(o.async){return Promise.resolve(c);}if(E!=null&&o.failOnError){throw E;}return D;};return b;});
sap.ui.predefine('sap/base/util/ObjectPath',[],function(){"use strict";var O={};var d=window;function g(o){return Array.isArray(o)?o:o.split(".");}O.create=function(o,r){var a=r||d;var n=g(o);for(var i=0;i<n.length;i++){var N=n[i];if(a[N]===null||(a[N]!==undefined&&(typeof a[N]!=="object"&&typeof a[N]!=="function"))){throw new Error("Could not set object-path for '"+n.join(".")+"', path segment '"+N+"' already exists.");}a[N]=a[N]||{};a=a[N];}return a;};O.get=function(o,r){var a=r||d;var n=g(o);var p=n.pop();for(var i=0;i<n.length&&a;i++){a=a[n[i]];}return a?a[p]:undefined;};O.set=function(o,v,r){r=r||d;var n=g(o);var p=n.pop();var a=O.create(n,r);a[p]=v;};return O;});
sap.ui.predefine('sap/base/util/Properties',['sap/base/util/LoaderExtensions'],function(L){"use strict";var P=function(){this.mProperties={};this.aKeys=null;};P.prototype.getProperty=function(k,d){var v=this.mProperties[k];if(typeof(v)=="string"){return v;}else if(d){return d;}return null;};P.prototype.getKeys=function(){return this.aKeys||(this.aKeys=Object.keys(this.mProperties));};P.prototype.setProperty=function(k,v){if(typeof(v)!="string"){return;}if(typeof(this.mProperties[k])!="string"&&this.aKeys){this.aKeys.push(String(k));}this.mProperties[k]=v;};P.prototype.clone=function(){var c=new P();c.mProperties=Object.assign({},this.mProperties);return c;};var f=(typeof chrome==="object"||typeof v8==="object")?function(s,c){if(c>2&&40*c>s.length){Number(s);}return s;}:function(s){return s;};var r=/(?:\r\n|\r|\n|^)[ \t\f]*/;var a=/(\\u[0-9a-fA-F]{0,4})|(\\.)|(\\$)|([ \t\f]*[ \t\f:=][ \t\f]*)/g;var b=/(\\u[0-9a-fA-F]{0,4})|(\\.)|(\\$)/g;var e={'\\f':'\f','\\n':'\n','\\r':'\r','\\t':'\t'};function p(t,o){var l=t.split(r),c,d,k,v,i,m,g,C;function h(s){if(v){v=v+s;C++;}else{v=s;C=0;}}o.mProperties={};for(i=0;i<l.length;i++){c=l[i];if(c===""||c.charAt(0)==="#"||c.charAt(0)==="!"){continue;}d=a;d.lastIndex=g=0;k=null;v="";while((m=d.exec(c))!==null){if(g<m.index){h(c.slice(g,m.index));}g=d.lastIndex;if(m[1]){if(m[1].length!==6){throw new Error("Incomplete Unicode Escape '"+m[1]+"'");}h(String.fromCharCode(parseInt(m[1].slice(2),16)));}else if(m[2]){h(e[m[2]]||m[2].slice(1));}else if(m[3]){c=l[++i];d.lastIndex=g=0;}else if(m[4]){k=v;v="";d=b;d.lastIndex=g;}}if(g<c.length){h(c.slice(g));}if(k==null){k=v;v="";}o.mProperties[k]=f(v,v?C:0);}}P.create=function(m){m=Object.assign({url:undefined,headers:{}},m);var A=!!m.async,o=new P(),R;function _(t){if(typeof t==="string"){p(t,o);return o;}return m.returnNullIfMissing?null:o;}if(typeof m.url==="string"){R=L.loadResource({url:m.url,dataType:'text',headers:m.headers,failOnError:false,async:A});}if(A){if(!R){return Promise.resolve(_(null));}return R.then(function(v){return _(v);},function(v){throw(v instanceof Error?v:new Error("Problem during loading of property file '"+m.url+"': "+v));});}return _(R);};return P;});
sap.ui.predefine('sap/base/util/UriParameters',["sap/base/Log"],function(L){"use strict";function g(u){var h=u.indexOf('#');if(h>=0){u=u.slice(0,h);}var s=u.indexOf('?');if(s>=0){return u.slice(s+1);}return"";}function d(s){return decodeURIComponent(s.replace(/\+/g,' '));}function p(P,q){function a(n,v){if(n in P){P[n].push(v);}else{P[n]=[v];}}q.split("&").forEach(function(n){var i=n.indexOf("=");if(i>=0){a(d(n.slice(0,i)),d(n.slice(i+1)));}else if(n.length){a(d(n),"");}});}var U=function(u){var P=Object.create(null);if(u!=null){if(typeof u!=="string"){throw new TypeError("query parameter must be a string");}p(P,g(u));}this.has=function(n){return n in P;};this._get=function(n,a){return n in P?P[n][0]:null;};this.getAll=function(n){return n in P?P[n].slice():[];};this.keys=function(){return Object.keys(P).values();};var b=false;Object.defineProperty(this,"mParams",{get:function(){if(!b){L.warning("[Deprecated] UriParameters.mParams must not be accessed.");b=true;}return Object.assign({},P);},configurable:false});};U.prototype.get=function(n,a){if(a){L.warning("[Deprecated] UriParameters.get(..., true) must not be used, use getAll() instead.");return this.getAll(n);}return this._get(n);};U.fromURL=function(u){return new U(u);};U.fromQuery=function(q){if(typeof q==="string"){if(q[0]!=="?"){q="?"+q;}q=q.replace(/#/g,"%23");}return new U(q);};return U;});
sap.ui.predefine('sap/base/util/Version',[],function(){"use strict";var r=/^[0-9]+(?:\.([0-9]+)(?:\.([0-9]+))?)?(.*)$/;function V(M,i,p,s){if(M instanceof V){return M;}if(!(this instanceof V)){return new V(M,i,p,s);}var m;if(typeof M==="string"){m=r.exec(M);}else if(Array.isArray(M)){m=M;}else{m=arguments;}m=m||[];function n(v){v=parseInt(v);return isNaN(v)?0:v;}M=n(m[0]);i=n(m[1]);p=n(m[2]);s=String(m[3]||"");this.toString=function(){return M+"."+i+"."+p+s;};this.getMajor=function(){return M;};this.getMinor=function(){return i;};this.getPatch=function(){return p;};this.getSuffix=function(){return s;};this.compareTo=function(){var o=V.apply(window,arguments);return M-o.getMajor()||i-o.getMinor()||p-o.getPatch()||((s<o.getSuffix())?-1:(s===o.getSuffix())?0:1);};}V.prototype.inRange=function(m,M){return this.compareTo(m)>=0&&this.compareTo(M)<0;};return V;});
sap.ui.predefine('sap/base/util/array/diff',['sap/base/util/deepEqual','sap/base/strings/hash'],function(d,h){"use strict";var D=function(o,n,c){var s={},O=[],N=[],a,S,b,f,e=0,g=0,j,k,l,m,r,p=[];if(o===n||d(o,n)){return p;}if(!c||typeof c=="function"){f=c;}else{f=c.symbol;r=c.replace;}f=f||function(v){if(typeof v!=="string"){v=JSON.stringify(v)||"";}return h(v);};for(var i=0;i<n.length;i++){S=f(n[i]);b=s[S];if(!b){b=s[S]={iNewCount:0,iOldCount:0};}b.iNewCount++;N[i]={symbol:b};}for(var i=0;i<o.length;i++){S=f(o[i]);b=s[S];if(!b){b=s[S]={iNewCount:0,iOldCount:0};}b.iOldCount++;b.iOldLine=i;O[i]={symbol:b};}for(var i=0;i<N.length;i++){b=N[i].symbol;if(b.iNewCount===1&&b.iOldCount===1){N[i].line=b.iOldLine;O[b.iOldLine].line=i;}}for(var i=0;i<N.length-1;i++){a=N[i].line;if(a!==undefined&&a<O.length-1){if(O[a+1].symbol===N[i+1].symbol){O[a+1].line=i+1;N[i+1].line=a+1;}}}for(var i=N.length-1;i>0;i--){a=N[i].line;if(a!==undefined&&a>0){if(O[a-1].symbol===N[i-1].symbol){O[a-1].line=i-1;N[i-1].line=a-1;}}}while(e<o.length||g<n.length){k=O[e]&&O[e].line;j=N[g]&&N[g].line;if(r&&k===undefined&&j===undefined&&e<o.length&&g<n.length){p.push({index:g,type:"replace"});e++;g++;}else if(e<o.length&&(k===undefined||k<g)){p.push({index:g,type:"delete"});e++;}else if(g<n.length&&(j===undefined||j<e)){p.push({index:g,type:"insert"});g++;}else if(g===k){g++;e++;}else{m=k-g;l=j-e;if(m<=l){p.push({index:g,type:"insert"});g++;}else{p.push({index:g,type:"delete"});e++;}}}return p;};return D;});
sap.ui.predefine('sap/base/util/array/uniqueSort',['sap/base/assert'],function(a){"use strict";var u=function(A){a(A instanceof Array,"uniqueSort: input parameter must be an Array");var l=A.length;if(l>1){A.sort();var j=0;for(var i=1;i<l;i++){if(A[i]!==A[j]){A[++j]=A[i];}}if(++j<l){A.splice(j,l-j);}}return A;};return u;});
sap.ui.predefine('sap/base/util/deepClone',["./isPlainObject"],function(a){"use strict";var d=function(s,m){if(!m){m=10;}return c(s,0,m);};function c(s,f,m){if(f>m){throw new TypeError("The structure depth of the source exceeds the maximum depth ("+m+")");}if(s==null){return s;}else if(s instanceof Date){return new Date(s);}else if(Array.isArray(s)){return b(s,f,m);}else if(typeof s==="object"){return e(s,f,m);}else{return s;}}function b(s,f,m){var C=[];for(var i=0;i<s.length;i++){C.push(c(s[i],f+1,m));}return C;}function e(s,f,m){if(!a(s)){throw new TypeError("Cloning is only supported for plain objects");}var C={};for(var k in s){if(k==="__proto__"){continue;}C[k]=c(s[k],f+1,m);}return C;}return d;});
sap.ui.predefine('sap/base/util/deepEqual',["sap/base/Log"],function(L){"use strict";var e=function(a,b,m,c,d){if(typeof m=="boolean"){c=m;m=undefined;}if(!d){d=0;}if(!m){m=10;}if(d>m){L.warning("deepEqual comparison exceeded maximum recursion depth of "+m+". Treating values as unequal");return false;}if(a===b){return true;}var I=(typeof a==="number"&&typeof b==="number"&&isNaN(a)&&isNaN(b));if(I){return true;}if(Array.isArray(a)&&Array.isArray(b)){if(!c&&a.length!==b.length){return false;}if(a.length>b.length){return false;}for(var i=0;i<a.length;i++){if(!e(a[i],b[i],m,c,d+1)){return false;}}return true;}if(typeof a=="object"&&typeof b=="object"){if(!a||!b){return false;}if(a.constructor!==b.constructor){return false;}if(!c&&Object.keys(a).length!==Object.keys(b).length){return false;}if(a instanceof Node){return a.isEqualNode(b);}if(a instanceof Date){return a.valueOf()===b.valueOf();}for(var i in a){if(!e(a[i],b[i],m,c,d+1)){return false;}}return true;}return false;};return e;});
sap.ui.predefine('sap/base/util/defineLazyProperty',[],function(){"use strict";var l=function(t,p,c,m){var P={configurable:true,get:function(){delete t[p];t[p]=c();return t[p];},set:function(v){delete t[p];t[p]=v;}};if(m){P.get[m]=true;}Object.defineProperty(t,p,P);};return l;});
sap.ui.predefine('sap/base/util/each',[],function(){"use strict";var e=function(o,c){var a=Array.isArray(o),l,i;if(a){for(i=0,l=o.length;i<l;i++){if(c.call(o[i],i,o[i])===false){break;}}}else{for(i in o){if(c.call(o[i],i,o[i])===false){break;}}}return o;};return e;});
sap.ui.predefine('sap/base/util/includes',["sap/base/util/values"],function(v){"use strict";function e(a,b){return a===b||(a!==a&&b!==b);}var I=function(c,V,f){if(typeof f!=='number'){f=0;}if(Array.isArray(c)){if(typeof c.includes==='function'){return c.includes(V,f);}f=f<0?f+c.length:f;f=f<0?0:f;for(var i=f;i<c.length;i++){if(e(c[i],V)){return true;}}return false;}else if(typeof c==='string'){f=f<0?c.length+f:f;if(typeof c.includes==='function'){return c.includes(V,f);}return c.indexOf(V,f)!==-1;}else{return I(v(c),V,f);}};return I;});
sap.ui.predefine('sap/base/util/isEmptyObject',[],function(){"use strict";var i=function isEmptyObject(o){for(var n in o){return false;}return true;};return i;});
sap.ui.predefine('sap/base/util/merge',["./_merge"],function(_){"use strict";var m=function(){var a=[true,false];a.push.apply(a,arguments);return _.apply(null,a);};return m;});
sap.ui.predefine('sap/base/util/now',[],function(){"use strict";var n=!(typeof window!="undefined"&&window.performance&&performance.now&&performance.timing)?Date.now:(function(){var N=performance.timing.navigationStart;return function perfnow(){return N+performance.now();};}());return n;});
sap.ui.predefine('sap/base/util/resolveReference',["sap/base/util/ObjectPath"],function(O){"use strict";var n=Object.create(null);function _(p,R,o){var v,c;if(R&&(p[0]in R)){c=p.length>1?O.get(p.slice(0,-1),R):R;v=c&&c[p[p.length-1]];if(typeof v==="function"&&o.bindContext){v=v.bind(o.rootContext||c);}return v;}return n;}var r=function(p,v,o){v=v||{};o=o||{};o.bindContext=o.bindContext!==false;o.bindDotContext=o.bindDotContext!==false;var P=p.split("."),V=P.shift()||".",d=V===".",R=n;P.unshift(V);if(o.preferDotContext&&!d){R=_(P,v["."],{bindContext:o.bindContext&&o.bindDotContext,rootContext:v["."]});}if(R===n){R=_(P,v,{bindContext:o.bindContext&&(d?o.bindDotContext:(P.length>1)),rootContext:d?v["."]:undefined});}if(R===n){R=O.get(p);}return R;};return r;});
sap.ui.predefine('sap/base/util/restricted/_uniqWith',["sap/base/util/restricted/_/lodash.custom"],function(l){"use strict";return l.uniqWith;});
sap.ui.predefine('sap/base/util/uid',[],function(){"use strict";var i=0;var u=function uid(){return"id-"+new Date().valueOf()+"-"+i++;};return u;});
sap.ui.predefine('sap/base/util/values',function(){"use strict";var v=function values(o){if(typeof o==="undefined"||o===null||o!==o){return[];}if(typeof Object.values==='function'){return Object.values(o);}if(typeof o==='string'){return o.split('');}if(typeof o!=='object'){return[];}return Object.keys(o).map(function(V){return o[V];});};return v;});
sap.ui.predefine('sap/m/App',['./NavContainer','./library','./AppRenderer','sap/ui/base/DataType',"sap/ui/util/Mobile","sap/base/Log","sap/ui/thirdparty/jquery"],function(N,l,A,D,M,L,q){"use strict";var a=N.extend("sap.m.App",{metadata:{library:"sap.m",properties:{homeIcon:{type:"any",group:"Misc",defaultValue:null},backgroundColor:{type:"string",group:"Appearance",defaultValue:null},backgroundImage:{type:"sap.ui.core.URI",group:"Appearance",defaultValue:null},backgroundRepeat:{type:"boolean",group:"Appearance",defaultValue:false},backgroundOpacity:{type:"float",group:"Appearance",defaultValue:1},mobileWebAppCapable:{type:"boolean",group:"Appearance",defaultValue:true}},events:{orientationChange:{deprecated:true,parameters:{landscape:{type:"boolean"}}}}}});a.prototype.init=function(){N.prototype.init.apply(this,arguments);this.addStyleClass("sapMApp");M.init({viewport:!this._debugZoomAndScroll,statusBar:"default",hideBrowser:true,preventScroll:!this._debugZoomAndScroll,rootId:this.getId()});q(window).bind("resize",q.proxy(this._handleOrientationChange,this));};a.prototype.onBeforeRendering=function(){if(N.prototype.onBeforeRendering){N.prototype.onBeforeRendering.apply(this,arguments);}M.init({homeIcon:this.getHomeIcon(),mobileWebAppCapable:this.getMobileWebAppCapable()});};a.prototype.onAfterRendering=function(){if(N.prototype.onAfterRendering){N.prototype.onAfterRendering.apply(this,arguments);}var r=this.getDomRef().parentNode;while(r&&r!==document.documentElement){var $=q(r);if($.attr("data-sap-ui-root-content")){break;}if(!r.style.height){r.style.height="100%";}r=r.parentNode;}};a.prototype.exit=function(){q(window).unbind("resize",this._handleOrientationChange);if(this._sInitTimer){clearTimeout(this._sInitTimer);}};a.prototype._handleOrientationChange=function(){var $=q(window);var i=$.width()>$.height();if(this._oldIsLandscape!==i){this.fireOrientationChange({landscape:i});this._oldIsLandscape=i;}};a.prototype.setBackgroundOpacity=function(o){if(o>1||o<0){L.warning("Invalid value "+o+" for App.setBackgroundOpacity() ignored. Valid values are: floats between 0 and 1.");return this;}this.$("BG").css("opacity",o);return this.setProperty("backgroundOpacity",o,true);};return a;});
sap.ui.predefine('sap/m/AppRenderer',['./NavContainerRenderer','sap/ui/core/Renderer','sap/m/library'],function(N,R,l){"use strict";var B=l.BackgroundHelper;var A={};var A=R.extend(N);A.renderAttributes=function(r,c){B.addBackgroundColorStyles(r,c.getBackgroundColor(),c.getBackgroundImage());};A.renderBeforeContent=function(r,c){B.renderBackgroundImageTag(r,c,"sapMAppBG",c.getBackgroundImage(),c.getBackgroundRepeat(),c.getBackgroundOpacity());};return A;},true);
sap.ui.predefine('sap/m/AssociativeOverflowToolbar',['sap/base/Log','./OverflowToolbar','./OverflowToolbarRenderer','./Toolbar','sap/ui/Device'],function(L,O,a,T,D){"use strict";var A=O.extend("sap.m.AssociativeOverflowToolbar",{metadata:{associations:{content:{type:"sap.ui.core.Control",multiple:true,singularName:"content"}}},renderer:a});A.prototype.getContent=function(){var b=this.getAssociation("content")||[];return b.map(function(c){return sap.ui.getCore().byId(c);});};A.prototype.insertContent=function(c,I){var s=c.getId(),b=this.getAssociation("content").filter(function(d){return d!==s;});var i;if(I<0){i=0;}else if(I>b.length){i=b.length;}else{i=I;}if(i!==I){L.warning("AssociativeOverflowToolbar.insertContent: index '"+I+"' out of range [0,"+b.length+"], forced to "+i);}b.splice(i,0,s);this.removeAllAssociation("content");b.forEach(function(d){this.addAssociation("content",d);},this);return this;};A.prototype.exit=function(){O.prototype.exit.apply(this,arguments);return this._callToolbarMethod('destroyContent',[true]);};A.prototype.indexOfContent=function(c){var b=this.getAssociation("content")||[];return b.indexOf(c.getId());};A.prototype._handleResize=function(){if(D.system.phone){this._resetAndInvalidateToolbar();}else{this._bControlsInfoCached=false;O.prototype._handleResize.apply(this,arguments);}};A.prototype._callToolbarMethod=function(f,b){switch(f){case'addContent':return this.addAssociation("content",b[0]);case'getContent':return this.getContent();case'insertContent':return this.insertContent(b[0],b[1]);case'removeContent':return sap.ui.getCore().byId(this.removeAssociation("content",b[0],b[1],b[2]))||null;case'destroyContent':this.removeAllAssociation("content",b[0]);return this;case'removeAllContent':return this.removeAllAssociation("content",b[0]).map(function(c){return sap.ui.getCore().byId(c);});default:return T.prototype[f].apply(this,b);}};return A;});
sap.ui.predefine('sap/m/Bar',['./BarInPageEnabler','./library','sap/ui/core/Control','sap/ui/core/ResizeHandler','sap/ui/Device','./BarRenderer',"sap/ui/thirdparty/jquery"],function(B,l,C,R,D,a,q){"use strict";var b=l.BarDesign;var c=C.extend("sap.m.Bar",{metadata:{interfaces:["sap.m.IBar"],library:"sap.m",properties:{enableFlexBox:{type:"boolean",group:"Misc",defaultValue:false,deprecated:true},translucent:{type:"boolean",group:"Appearance",defaultValue:false,deprecated:true},design:{type:"sap.m.BarDesign",group:"Appearance",defaultValue:b.Auto}},aggregations:{contentLeft:{type:"sap.ui.core.Control",multiple:true,singularName:"contentLeft"},contentMiddle:{type:"sap.ui.core.Control",multiple:true,singularName:"contentMiddle"},contentRight:{type:"sap.ui.core.Control",multiple:true,singularName:"contentRight"}},associations:{ariaLabelledBy:{type:"sap.ui.core.Control",multiple:true,singularName:"ariaLabelledBy"}},designtime:"sap/m/designtime/Bar.designtime",dnd:{draggable:false,droppable:true}}});c.prototype.onBeforeRendering=function(){this._removeAllListeners();};c.prototype.onAfterRendering=function(){this._handleResize();};c.prototype.init=function(){this.data("sap-ui-fastnavgroup","true",true);};c.prototype.exit=function(){this._removeAllListeners();if(this._oflexBox){this._oflexBox.destroy();this._oflexBox=null;}this._$MidBarPlaceHolder=null;this._$RightBar=null;this._$LeftBar=null;};c._aResizeHandlers=["_sResizeListenerId","_sResizeListenerIdMid","_sResizeListenerIdRight","_sResizeListenerIdLeft"];c.prototype._removeAllListeners=function(){var t=this;c._aResizeHandlers.forEach(function(i){t._removeListenerFailsave(i);});};c.prototype._removeListenerFailsave=function(L){if(this[L]){R.deregister(this[L]);this[L]=null;}};c.prototype._handleResize=function(){this._removeAllListeners();var e=!!this.getContentLeft().length,f=!!this.getContentMiddle().length,g=!!this.getContentRight().length;if(!this.getVisible()){return;}if(!e&&!f&&!g){return;}this._$LeftBar=this.$("BarLeft");this._$RightBar=this.$("BarRight");this._$MidBarPlaceHolder=this.$("BarPH");this._updatePosition(e,f,g);this._sResizeListenerId=R.register(this.getDomRef(),q.proxy(this._handleResize,this));if(this.getEnableFlexBox()){return;}if(e){this._sResizeListenerIdLeft=R.register(this._$LeftBar[0],q.proxy(this._handleResize,this));}if(f){this._sResizeListenerIdMid=R.register(this._$MidBarPlaceHolder[0],q.proxy(this._handleResize,this));}if(g){this._sResizeListenerIdRight=R.register(this._$RightBar[0],q.proxy(this._handleResize,this));}};c.prototype._updatePosition=function(e,f,g){if(!e&&!g&&f){return;}if(e&&!f&&!g){return;}if(!e&&!f&&g){return;}var i=this.$().outerWidth(true);this._$RightBar.css({width:""});this._$LeftBar.css({width:""});if(D.browser.msie){this._$MidBarPlaceHolder.css({position:"",width:""});}else{this._$MidBarPlaceHolder.css({position:"",width:"",visibility:"hidden"});}var r=this._$RightBar.outerWidth(true);if(r>i){if(e){this._$LeftBar.css({width:"0px"});}if(f){this._$MidBarPlaceHolder.css({width:"0px"});}this._$RightBar.css({width:i+"px"});return;}var L=this._getBarContainerWidth(this._$LeftBar);if(i<(L+r)){L=i-r;this._$LeftBar.css({width:L+"px"});this._$MidBarPlaceHolder.css({width:"0px"});return;}this._$MidBarPlaceHolder.css(this._getMidBarCss(r,i,L));};c.prototype._getMidBarCss=function(r,i,L){var m=this._$MidBarPlaceHolder.outerWidth(true),e=sap.ui.getCore().getConfiguration().getRTL(),s=e?"right":"left",M={visibility:""};if(this.getEnableFlexBox()){m=i-L-r-parseInt(this._$MidBarPlaceHolder.css('margin-left'))-parseInt(this._$MidBarPlaceHolder.css('margin-right'));M.position="absolute";M.width=m+"px";M[s]=L;return M;}var S=i-L-r,f=(i/2)-(m/2),g=L>f,h=(i/2)+(m/2),j=(i-r)<h;if(S>0&&(g||j)){M.position="absolute";M.width=S+"px";M.left=e?r:L;}return M;};c.prototype._getBarContainerWidth=function($){var i,e=0,f=$.children(),g=0;if(D.browser.webkit||D.browser.firefox||D.browser.edge){for(i=0;i<f.length;i++){g+=q(f[i]).outerWidth(true);}e=$.outerWidth(true);}else{var o;for(i=0;i<f.length;i++){o=window.getComputedStyle(f[i]);if(o.width=="auto"){g+=q(f[i]).width()+1;}else{g+=parseFloat(o.width);}g+=parseFloat(o.marginLeft);g+=parseFloat(o.marginRight);g+=parseFloat(o.paddingLeft);g+=parseFloat(o.paddingRight);}var h=window.getComputedStyle($[0]);e+=parseFloat(h.width);e+=parseFloat(h.marginLeft);e+=parseFloat(h.marginRight);e+=parseFloat(h.paddingLeft);e+=parseFloat(h.paddingRight);}if(e<g){e=g;}return e;};var d=B.extend("sap.m.BarInAnyContentEnabler",{});d.mContexts={dialogFooter:{contextClass:"sapMFooter-CTX",tag:"Footer"}};d.prototype.getContext=function(){var p=B.prototype.getContext.call();for(var k in d.mContexts){p[k]=d.mContexts[k];}return p;};c.prototype.getContext=d.prototype.getContext;c.prototype.isContextSensitive=d.prototype.isContextSensitive;c.prototype.setHTMLTag=d.prototype.setHTMLTag;c.prototype.getHTMLTag=d.prototype.getHTMLTag;c.prototype.applyTagAndContextClassFor=d.prototype.applyTagAndContextClassFor;c.prototype._applyContextClassFor=d.prototype._applyContextClassFor;c.prototype._applyTag=d.prototype._applyTag;c.prototype._getContextOptions=d.prototype._getContextOptions;c.prototype._setRootAccessibilityRole=d.prototype._setRootAccessibilityRole;c.prototype._getRootAccessibilityRole=d.prototype._getRootAccessibilityRole;c.prototype._setRootAriaLevel=d.prototype._setRootAriaLevel;c.prototype._getRootAriaLevel=d.prototype._getRootAriaLevel;return c;});
sap.ui.predefine('sap/m/BarInPageEnabler',['sap/ui/base/Object','sap/m/library',"sap/base/Log"],function(O,l,L){"use strict";var I=l.IBarHTMLTag;var c={footer:{contextClass:"sapMFooter-CTX sapContrast sapContrastPlus",tag:"Footer",internalAriaLabel:"BAR_ARIA_DESCRIPTION_FOOTER"},header:{contextClass:"sapMHeader-CTX",tag:"Header",internalAriaLabel:"BAR_ARIA_DESCRIPTION_HEADER"},subheader:{contextClass:"sapMSubHeader-CTX",tag:"Header",internalAriaLabel:"BAR_ARIA_DESCRIPTION_SUBHEADER"}};var a="sapMIBar";var B=O.extend("sap.m.BarInPageEnabler",{isContextSensitive:function(){return this.getDesign&&this.getDesign()==="Auto";},setHTMLTag:function(n){if(n===this.sTag){return this;}this.sTag=n;return this;},getHTMLTag:function(){if(!this.hasOwnProperty("sTag")){this.sTag=I.Div;}return this.sTag;},getContext:function(){return c;},_getRootAccessibilityRole:function(){var r=this._sRootAccessibilityRole||"toolbar";return r;},_setRootAccessibilityRole:function(r){this._sRootAccessibilityRole=r;return this;},_getRootAriaLevel:function(){var A=this.sAriaLevel;return A;},_setRootAriaLevel:function(s){this.sAriaLevel=s;return this;},applyTagAndContextClassFor:function(C){this._applyTag(C);return this._applyContextClassFor(C);},_applyContextClassFor:function(C){var o=this._getContextOptions(C);if(!o){return this;}if(!this.isContextSensitive){L.error("The bar control you are using does not implement all the members of the IBar interface",this);return this;}if(!this.getRenderer().shouldAddIBarContext()){this.addStyleClass(a+"-CTX");}if(this.isContextSensitive()){this.addStyleClass(o.contextClass);}return this;},_applyTag:function(C){var o=this._getContextOptions(C);if(!o){return this;}if(!this.setHTMLTag){L.error("The bar control you are using does not implement all the members of the IBar interface",this);return this;}this.setHTMLTag(o.tag);return this;},_getContextOptions:function(C){var o;if(this.getContext){o=this.getContext();}else{o=c;}var b=o[C];if(!b){L.error("The context "+C+" is not known",this);return null;}return b;},render:function(r,C){var t=C.getHTMLTag().toLowerCase();r.openStart(t,C);r.class(a);if(this.shouldAddIBarContext(C)){r.class(a+"-CTX");}B.renderTooltip(r,C);this.decorateRootElement(r,C);r.openEnd();this.renderBarContent(r,C);r.close(t);}});B.renderTooltip=function(r,C){var t=C.getTooltip_AsString();if(t){r.attr("title",t);}};B.addChildClassTo=function(C){C.addStyleClass("sapMBarChild");};return B;});
sap.ui.predefine('sap/m/BarRenderer',['./BarInPageEnabler','sap/ui/Device',"sap/base/Log",'sap/m/HBox'],function(B,D,L,H){"use strict";var a={apiVersion:2};a.render=B.prototype.render;a.decorateRootElement=function(r,c){r.class("sapMBar");r.class(this.getContext(c));r.accessibilityState(c,{"role":c._getRootAccessibilityRole(),"level":c._getRootAriaLevel()});if(c.getTranslucent()&&D.support.touch){r.class("sapMBarTranslucent");}r.class("sapMBar-CTX");};a.shouldAddIBarContext=function(){return true;};a.renderBarContent=function(r,c){r.openStart("div",c.getId()+"-BarLeft");r.class("sapMBarLeft");r.class("sapMBarContainer");w("left",r,c);r.openEnd();this.renderAllControls(c.getContentLeft(),r,c);r.close("div");r.openStart("div",c.getId()+"-BarMiddle");r.class("sapMBarMiddle");r.openEnd();if(c.getEnableFlexBox()){c._oflexBox=c._oflexBox||new H(c.getId()+"-BarPH",{alignItems:"Center"}).addStyleClass("sapMBarPH").setParent(c,null,true);var C=!!c.getContentLeft().length,b=!!c.getContentMiddle().length,d=!!c.getContentRight().length;if(b&&!C&&!d){c._oflexBox.addStyleClass("sapMBarFlexBoxWidth100");}c.getContentMiddle().forEach(function(m){c._oflexBox.addItem(m);});r.renderControl(c._oflexBox);}else{r.openStart("div",c.getId()+"-BarPH");r.class("sapMBarPH");r.class("sapMBarContainer");w("middle",r,c);r.openEnd();this.renderAllControls(c.getContentMiddle(),r,c);r.close("div");}r.close("div");r.openStart("div",c.getId()+"-BarRight");r.class("sapMBarRight");r.class("sapMBarContainer");if(sap.ui.getCore().getConfiguration().getRTL()){r.class("sapMRTL");}w("right",r,c);r.openEnd();this.renderAllControls(c.getContentRight(),r,c);r.close("div");};a.renderAllControls=function(c,r,b){c.forEach(function(C){B.addChildClassTo(C,b);r.renderControl(C);});};a._mContexts={Header:"sapMHeader-CTX",SubHeader:"sapMSubHeader-CTX",Footer:"sapMFooter-CTX",Default:"sapMContent-CTX"};a.getContext=function(c){var d=c.getDesign(),C=a._mContexts;return C[d]||C.Default;};function w(A,r,c){var C=!!c.getContentLeft().length,b=!!c.getContentMiddle().length,d=!!c.getContentRight().length;switch(A.toLowerCase()){case"left":if(C&&!b&&!d){r.style("width","100%");}break;case"middle":if(b&&!C&&!d){r.style("width","100%");}break;case"right":if(d&&!C&&!b){r.style("width","100%");}break;default:L.error("Cannot determine which of the three content aggregations is alone");}}return a;},true);
sap.ui.predefine('sap/m/BusyIndicator',['./library','sap/ui/core/Control','sap/ui/core/library','sap/m/Image','sap/m/Label',"./BusyIndicatorRenderer"],function(l,C,c,I,L,B){"use strict";var T=c.TextDirection;var a=C.extend("sap.m.BusyIndicator",{metadata:{library:"sap.m",properties:{text:{type:"string",group:"Data",defaultValue:""},textDirection:{type:"sap.ui.core.TextDirection",group:"Appearance",defaultValue:T.Inherit},customIcon:{type:"sap.ui.core.URI",group:"Misc",defaultValue:""},customIconRotationSpeed:{type:"int",group:"Appearance",defaultValue:1000},customIconDensityAware:{type:"boolean",defaultValue:true},customIconWidth:{type:"sap.ui.core.CSSSize",group:"Appearance",defaultValue:"44px"},customIconHeight:{type:"sap.ui.core.CSSSize",group:"Appearance",defaultValue:"44px"},size:{type:"sap.ui.core.CSSSize",group:"Misc",defaultValue:"1rem"},design:{type:"string",group:"Appearance",defaultValue:"auto"}},associations:{ariaLabelledBy:{type:"sap.ui.core.Control",multiple:true,singularName:"ariaLabelledBy"}}}});a.prototype.init=function(){this.setBusyIndicatorDelay(0);};a.prototype.setText=function(t){this.setProperty("text",t,true);this._createLabel("setText",t);return this;};a.prototype.setTextDirection=function(d){this.setProperty("textDirection",d,true);this._createLabel("setTextDirection",d);return this;};a.prototype.setCustomIcon=function(s){this.setProperty("customIcon",s,false);this._createCustomIcon("setSrc",s);return this;};a.prototype.setCustomIconRotationSpeed=function(s){if(isNaN(s)||s<0){s=0;}if(s!==this.getCustomIconRotationSpeed()){this.setProperty("customIconRotationSpeed",s,true);this._setRotationSpeed();}return this;};a.prototype.setCustomIconDensityAware=function(A){this.setProperty("customIconDensityAware",A,true);this._createCustomIcon("setDensityAware",A);return this;};a.prototype.setCustomIconWidth=function(w){this.setProperty("customIconWidth",w,true);this._createCustomIcon("setWidth",w);this._iconImage.$().css("width",w);return this;};a.prototype.setCustomIconHeight=function(h){this.setProperty("customIconHeight",h,true);this._createCustomIcon("setHeight",h);this._iconImage.$().css("height",h);return this;};a.prototype.setSize=function(s){this.setProperty("size",s,true);var d=this.getDomRef();if(d){d.style.fontSize=s;}return this;};a.prototype.onBeforeRendering=function(){if(this.getCustomIcon()){this.setBusy(false);}else{this.setBusy(true,"busy-area");}};a.prototype.exit=function(){if(this._iconImage){this._iconImage.destroy();this._iconImage=null;}if(this._busyLabel){this._busyLabel.destroy();this._busyLabel=null;}};a.prototype._createCustomIcon=function(n,v){if(!this._iconImage){this._iconImage=new I(this.getId()+"-icon",{width:"44px",height:"44px"}).addStyleClass("sapMBsyIndIcon");this._iconImage.addEventDelegate({onAfterRendering:function(){this._setRotationSpeed();}},this);}this._iconImage[n](v);this._setRotationSpeed();};a.prototype._createLabel=function(n,v){if(!this._busyLabel){this._busyLabel=new L(this.getId()+"-label",{labelFor:this.getId(),textAlign:"Center"});}this._busyLabel[n](v);};a.prototype._setRotationSpeed=function(){if(!this._iconImage){return;}var $=this._iconImage.$();var r=this.getCustomIconRotationSpeed()+"ms";$.css("-webkit-animation-duration",r).css("animation-duration",r);$.css("display","none");setTimeout(function(){$.css("display","inline");},0);};return a;});
sap.ui.predefine('sap/m/BusyIndicatorRenderer',[],function(){"use strict";var B={};B.render=function(r,b){this.startBusyIndicator(r,b);this.renderBusyIndication(r,b);this.renderLabel(r,b);this.endBusyIndicator(r);};B.startBusyIndicator=function(r,b){r.write("<div ");r.writeControlData(b);r.addClass("sapMBusyIndicator");r.writeClasses();r.addStyle("font-size",b.getSize());r.writeStyles();r.writeAccessibilityState(b);this.renderTooltip(r,b.getTooltip_AsString());r.write(">");};B.renderTooltip=function(r,t){if(t){r.writeAttributeEscaped("title",t);}};B.renderBusyIndication=function(r,b){if(b.getCustomIcon()){r.renderControl(b._iconImage);}else{r.write("<div class='sapMBusyIndicatorBusyArea'");r.writeAttribute("id",b.getId()+"-busy-area");r.write("></div>");}};B.renderLabel=function(r,b){if(b.getText()){r.renderControl(b._busyLabel);}};B.endBusyIndicator=function(r){r.write("</div>");};return B;},true);
sap.ui.predefine('sap/m/Button',['./library','sap/ui/core/Control','sap/ui/core/EnabledPropagator','sap/ui/core/IconPool','sap/ui/Device','sap/ui/core/ContextMenuSupport','sap/ui/core/library','./ButtonRenderer',"sap/ui/events/KeyCodes","sap/ui/core/LabelEnablement"],function(l,C,E,I,D,a,c,B,K,L){"use strict";var T=c.TextDirection;var b=l.ButtonType;var d=C.extend("sap.m.Button",{metadata:{interfaces:["sap.ui.core.IFormContent","sap.m.IToolbarInteractiveControl"],library:"sap.m",properties:{text:{type:"string",group:"Misc",defaultValue:""},type:{type:"sap.m.ButtonType",group:"Appearance",defaultValue:b.Default},width:{type:"sap.ui.core.CSSSize",group:"Misc",defaultValue:null},enabled:{type:"boolean",group:"Behavior",defaultValue:true},icon:{type:"sap.ui.core.URI",group:"Appearance",defaultValue:""},iconFirst:{type:"boolean",group:"Appearance",defaultValue:true},activeIcon:{type:"sap.ui.core.URI",group:"Misc",defaultValue:null},iconDensityAware:{type:"boolean",group:"Misc",defaultValue:true},textDirection:{type:"sap.ui.core.TextDirection",group:"Appearance",defaultValue:T.Inherit}},associations:{ariaDescribedBy:{type:"sap.ui.core.Control",multiple:true,singularName:"ariaDescribedBy"},ariaLabelledBy:{type:"sap.ui.core.Control",multiple:true,singularName:"ariaLabelledBy"}},events:{tap:{deprecated:true},press:{}},designtime:"sap/m/designtime/Button.designtime",dnd:{draggable:true,droppable:false}}});E.call(d.prototype);a.apply(d.prototype);d.prototype.init=function(){this._onmouseenter=this._onmouseenter.bind(this);this._buttonPressed=false;};d.prototype.exit=function(){if(this._image){this._image.destroy();}if(this._iconBtn){this._iconBtn.destroy();}this.$().off("mouseenter",this._onmouseenter);};d.prototype.onBeforeRendering=function(){this._bRenderActive=this._bActive;this.$().off("mouseenter",this._onmouseenter);};d.prototype.onAfterRendering=function(){if(this._bRenderActive){this._activeButton();this._bRenderActive=this._bActive;}this.$().on("mouseenter",this._onmouseenter);};d.prototype.ontouchstart=function(e){e.setMarked();if(this._bRenderActive){delete this._bRenderActive;}if(e.targetTouches.length===1){this._buttonPressed=true;this._activeButton();}if(this.getEnabled()&&this.getVisible()){if(D.browser.safari&&(e.originalEvent&&e.originalEvent.type==="mousedown")){this.focus();e.preventDefault();}}};d.prototype.ontouchend=function(e){this._buttonPressed=e.originalEvent&&e.originalEvent.buttons&1;this._inactiveButton();if(this._bRenderActive){delete this._bRenderActive;this.ontap(e,true);}};d.prototype.ontouchcancel=function(){this._buttonPressed=false;this._inactiveButton();};d.prototype.ontap=function(e,f){e.setMarked();delete this._bRenderActive;if(this.bFromTouchEnd){return;}if(this.getEnabled()&&this.getVisible()){if((e.originalEvent&&e.originalEvent.type==="touchend")){this.focus();}this.fireTap({});this.firePress({});}this.bFromTouchEnd=f;if(this.bFromTouchEnd){setTimeout(function(){delete this.bFromTouchEnd;}.bind(this),0);}};d.prototype.onkeydown=function(e){if(e.which===K.SPACE||e.which===K.ENTER||e.which===K.ESCAPE||e.which===K.SHIFT){if(e.which===K.SPACE||e.which===K.ENTER){e.setMarked();this._activeButton();}if(e.which===K.ENTER){this.firePress({});}if(e.which===K.SPACE){this._bPressedSpace=true;}if(this._bPressedSpace){if(e.which===K.SHIFT||e.which===K.ESCAPE){this._bPressedEscapeOrShift=true;this._inactiveButton();}}}else{if(this._bPressedSpace){e.preventDefault();}}};d.prototype.onkeyup=function(e){if(e.which===K.ENTER){e.setMarked();this._inactiveButton();}if(e.which===K.SPACE){if(!this._bPressedEscapeOrShift){e.setMarked();this._inactiveButton();this.firePress({});}else{this._bPressedEscapeOrShift=false;}this._bPressedSpace=false;}if(e.which===K.ESCAPE){this._bPressedSpace=false;}};d.prototype._onmouseenter=function(e){if(this._buttonPressed&&e.originalEvent&&e.originalEvent.buttons&1){this._activeButton();}};d.prototype.onfocusout=function(){this._inactiveButton();};d.prototype._activeButton=function(){if(!this._isUnstyled()){this.$("inner").addClass("sapMBtnActive");}this._bActive=this.getEnabled();if(this._bActive){if(this.getIcon()&&this.getActiveIcon()&&this._image){this._image.setSrc(this.getActiveIcon());}}};d.prototype._inactiveButton=function(){if(!this._isUnstyled()){this.$("inner").removeClass("sapMBtnActive");}this._bActive=false;if(this.getEnabled()){if(this.getIcon()&&this.getActiveIcon()&&this._image){this._image.setSrc(this.getIcon());}}};d.prototype._isHoverable=function(){return this.getEnabled()&&D.system.desktop;};d.prototype._getImage=function(i,s,A,e){var f=I.isIconURI(s),g;if(this._image instanceof sap.m.Image&&f||this._image instanceof sap.ui.core.Icon&&!f){this._image.destroy();this._image=undefined;}g=this.getIconFirst();if(this._image){this._image.setSrc(s);if(this._image instanceof sap.m.Image){this._image.setActiveSrc(A);this._image.setDensityAware(e);}}else{this._image=I.createControlByURI({id:i,src:s,activeSrc:A,densityAware:e,useIconTooltip:false},sap.m.Image).addStyleClass("sapMBtnCustomIcon").setParent(this,null,true);}this._image.addStyleClass("sapMBtnIcon");this._image.toggleStyleClass("sapMBtnIconLeft",g);this._image.toggleStyleClass("sapMBtnIconRight",!g);return this._image;};d.prototype._getInternalIconBtn=function(i,s){var o=this._iconBtn;if(o){o.setSrc(s);}else{o=I.createControlByURI({id:i,src:s,useIconTooltip:false},sap.m.Image).setParent(this,null,true);}o.addStyleClass("sapMBtnIcon");o.addStyleClass("sapMBtnIconLeft");this._iconBtn=o;return this._iconBtn;};d.prototype._isUnstyled=function(){var u=false;if(this.getType()===b.Unstyled){u=true;}return u;};d.prototype.getPopupAnchorDomRef=function(){return this.getDomRef("inner");};d.prototype._getText=function(){return this.getText();};d.prototype._getTooltip=function(){var t=this.getTooltip_AsString();if(!t&&!this.getText()){var i=I.getIconInfo(this.getIcon());if(i){t=i.text?i.text:i.name;}}return t;};d.prototype.getAccessibilityInfo=function(){var s=this.getText()||this.getTooltip_AsString();if(!s&&this.getIcon()){var i=I.getIconInfo(this.getIcon());if(i){s=i.text||i.name;}}return{role:"button",type:sap.ui.getCore().getLibraryResourceBundle("sap.m").getText("ACC_CTR_TYPE_BUTTON"),description:s,focusable:this.getEnabled(),enabled:this.getEnabled()};};d.prototype._determineSelfReferencePresence=function(){var A=this.getAriaLabelledBy(),e=A.indexOf(this.getId())!==-1,h=L.getReferencingLabels(this).length>0,p=this.getParent(),f=!!(p&&p.enhanceAccessibilityState);return!e&&this._getText()&&(A.length>0||h||f);};d.prototype._determineTooltipReferencePresence=function(){var h=this.getAriaLabelledBy().length>0||L.getReferencingLabels(this).length>0;return this.getIcon()&&!(this.getText()||h);};d.prototype._getToolbarInteractive=function(){return true;};return d;});
sap.ui.predefine('sap/m/ButtonRenderer',['sap/ui/Device','sap/ui/core/library','sap/ui/core/IconPool','sap/m/library','sap/ui/core/InvisibleText'],function(D,c,I,l,a){"use strict";var B=l.ButtonType;var T=c.TextDirection;var b={apiVersion:2};b.render=function(R,o){var t=o.getType();var e=o.getEnabled();var w=o.getWidth();var s=o._getTooltip();var d=o._getText();var f=o.getTextDirection();var i=D.browser.internet_explorer||D.browser.edge;var g=(f===T.Inherit)&&!i;var h=I.getIconURI("nav-back");R.openStart("button",o);R.class("sapMBtnBase");if(!o._isUnstyled()){R.class("sapMBtn");if((t===B.Back||t===B.Up)&&o.getIcon()&&!d){R.class("sapMBtnBack");}}var m={};var j=o.getId()+"-tooltip";var k=b.getButtonTypeAriaLabelId(t);if(k&&s){m["describedby"]={value:j+" "+k,append:true};}else if(k){m["describedby"]={value:k,append:true};}else if(s){m["describedby"]={value:j,append:true};}if(o._determineSelfReferencePresence()){m["labelledby"]={value:o.getId()+"-content",append:true};}if(o._determineTooltipReferencePresence()&&s){m["labelledby"]={value:j,append:true};}m["disabled"]=null;if(this.renderAccessibilityAttributes){this.renderAccessibilityAttributes(R,o,m);}R.accessibilityState(o,m);if(!e){R.attr("disabled","disabled");if(!o._isUnstyled()){R.class("sapMBtnDisabled");}}else{switch(t){case B.Accept:case B.Reject:case B.Emphasized:R.class("sapMBtnInverted");break;default:break;}}if(s){R.attr("title",s);}if(w!=""||w.toLowerCase()==="auto"){R.style("width",w);}r(o,R);R.openEnd();R.openStart("span",o.getId()+"-inner");if(!o._isUnstyled()){R.class("sapMBtnInner");}if(o._isHoverable()){R.class("sapMBtnHoverable");}if(e){R.class("sapMFocusable");if(i){R.class("sapMIE");}}if(!o._isUnstyled()){if(d){R.class("sapMBtnText");}if(t===B.Back||t===B.Up){R.class("sapMBtnBack");}if(o.getIcon()){if(o.getIconFirst()){R.class("sapMBtnIconFirst");}else{R.class("sapMBtnIconLast");}}}if(this.renderButtonAttributes){this.renderButtonAttributes(R,o);}if(!o._isUnstyled()&&t!==""){R.class("sapMBtn"+t);}r(o,R);R.openEnd();if(t===B.Back||t===B.Up){this.writeInternalIconPoolHtml(R,o,h);}if(o.getIcon()){this.writeImgHtml(R,o);}if(d){R.openStart("span",o.getId()+"-content");R.class("sapMBtnContent");if(f!==T.Inherit){R.attr("dir",f.toLowerCase());}R.openEnd();if(g){R.openStart("bdi",o.getId()+"-BDI-content");R.openEnd();}R.text(d);if(g){R.close("bdi");}R.close("span");}if(i&&e){R.openStart("span");R.class("sapMBtnFocusDiv");R.openEnd();R.close("span");}R.close("span");if(s){R.openStart("span",j);R.class("sapUiInvisibleText");R.openEnd();R.text(s);R.close("span");}R.close("button");};b.writeImgHtml=function(R,o){R.renderControl(o._getImage((o.getId()+"-img"),o.getIcon(),o.getActiveIcon(),o.getIconDensityAware()));};b.writeInternalIconPoolHtml=function(R,o,u){R.renderControl(o._getInternalIconBtn((o.getId()+"-iconBtn"),u));};function r(o,R){if(o._bExcludeFromTabChain){R.attr("tabindex",-1);}}var A={Accept:"BUTTON_ARIA_TYPE_ACCEPT",Reject:"BUTTON_ARIA_TYPE_REJECT",Emphasized:"BUTTON_ARIA_TYPE_EMPHASIZED"};b.getButtonTypeAriaLabelId=function(t){return a.getStaticId("sap.m",A[t]);};return b;},true);
sap.ui.predefine('sap/m/CheckBox',['./Label','./library','sap/ui/Device','sap/ui/core/Control','sap/ui/core/IconPool','sap/ui/core/EnabledPropagator','sap/ui/core/library','./CheckBoxRenderer',"sap/ui/thirdparty/jquery","sap/ui/events/KeyCodes",'sap/ui/core/LabelEnablement'],function(L,l,D,C,I,E,c,a,q,K,b){"use strict";var V=c.ValueState;var T=c.TextAlign;var d=c.TextDirection;var e=C.extend("sap.m.CheckBox",{metadata:{interfaces:["sap.m.IToolbarInteractiveControl","sap.ui.core.IFormContent"],library:"sap.m",properties:{selected:{type:"boolean",group:"Data",defaultValue:false},partiallySelected:{type:"boolean",group:"Data",defaultValue:false},enabled:{type:"boolean",group:"Behavior",defaultValue:true},name:{type:"string",group:"Misc",defaultValue:null},text:{type:"string",group:"Appearance",defaultValue:null},textDirection:{type:"sap.ui.core.TextDirection",group:"Appearance",defaultValue:d.Inherit},textAlign:{type:"sap.ui.core.TextAlign",group:"Appearance",defaultValue:T.Begin},width:{type:"sap.ui.core.CSSSize",group:"Dimension",defaultValue:''},useEntireWidth:{type:"boolean",group:"Appearance",defaultValue:false},activeHandling:{type:"boolean",group:"Misc",defaultValue:true},editable:{type:"boolean",group:"Behavior",defaultValue:true},valueState:{type:"sap.ui.core.ValueState",group:"Data",defaultValue:V.None},displayOnly:{type:"boolean",group:"Behavior",defaultValue:false},wrapping:{type:"boolean",group:"Appearance",defaultValue:false}},aggregations:{_label:{type:"sap.m.Label",group:"Behavior",multiple:false,visibility:"hidden"}},associations:{ariaDescribedBy:{type:"sap.ui.core.Control",multiple:true,singularName:"ariaDescribedBy"},ariaLabelledBy:{type:"sap.ui.core.Control",multiple:true,singularName:"ariaLabelledBy"}},events:{select:{parameters:{selected:{type:"boolean"}}}},dnd:{draggable:true,droppable:false},designtime:"sap/m/designtime/CheckBox.designtime"}});E.call(e.prototype);e.prototype.init=function(){this.addActiveState(this);I.insertFontFaceStyle();this._handleReferencingLabels();};e.prototype.exit=function(){this._oLabel=null;delete this._iTabIndex;};e.prototype.setText=function(t){var o=this._getLabel();this.setProperty("text",t);o.setText(t);return this;};e.prototype.setWidth=function(w){this.setProperty("width",w,true);this._setWidth();return this;};e.prototype.setUseEntireWidth=function(u){this.setProperty("useEntireWidth",u,true);this._setWidth();return this;};e.prototype.setTextDirection=function(s){var o=this._getLabel();this.setProperty("textDirection",s);o.setTextDirection(s);return this;};e.prototype.setTextAlign=function(A){var o=this._getLabel();this.setProperty("textAlign",A);o.setTextAlign(A);return this;};e.prototype.setWrapping=function(w){var o=this._getLabel();this.setProperty("wrapping",w);o.setWrapping(w);return this;};e.prototype.addActiveState=function(o){if(D.os.blackberry){o.addDelegate({ontouchstart:function(f){q(o.getDomRef()).addClass("sapMActive");},ontouchend:function(f){q(o.getDomRef()).removeClass("sapMActive");}});}};e.prototype.ontouchstart=function(o){o.originalEvent._sapui_handledByControl=true;};e.prototype.ontap=function(o){var s;if(this.getEnabled()&&this.getEditable()&&!this.getDisplayOnly()){this.$().focus();s=this._getSelectedState();this.setSelected(s);this.setPartiallySelected(false);this.fireSelect({selected:s});o&&o.setMarked();}};e.prototype.onkeyup=function(o){if(o&&o.which===K.SPACE&&!o.shiftKey){this.ontap(o);o.preventDefault();o.stopPropagation();}};e.prototype.onsapspace=function(o){o.preventDefault();};e.prototype.onsapenter=function(o){this.ontap(o);};e.prototype.setTabIndex=function(t){this._iTabIndex=t;this.$("CbBg").attr("tabindex",t);return this;};e.prototype.getTabIndex=function(){if(this.hasOwnProperty("_iTabIndex")){return this._iTabIndex;}return(this.getEnabled()&&!this.getDisplayOnly())?0:-1;};e.prototype._getLabel=function(){if(!this._oLabel){this._oLabel=new L(this.getId()+"-label",{labelFor:this.getId()}).addStyleClass("sapMCbLabel");this.setAggregation("_label",this._oLabel,true);}return this.getAggregation("_label");};e.prototype._setWidth=function(){var o=this._getLabel(),$=this.$(),w=this.getWidth();if(this.getUseEntireWidth()){o.setWidth("");$.outerWidth(w);}else{$.outerWidth("");o.setWidth(w);}};e.prototype._getSelectedState=function(){var s=this.getSelected(),p=this.getPartiallySelected();return(s===p)||(!s&&p);};e.prototype._getAriaChecked=function(){var s=this.getSelected();if(this.getPartiallySelected()&&s){return"mixed";}return s;};e.prototype._fnLabelTapHandler=function(){this.$().focus();};e.prototype._handleReferencingLabels=function(){var f=b.getReferencingLabels(this),t=this;if(f.length>0){f.forEach(function(s){sap.ui.getCore().byId(s).addEventDelegate({ontap:function(){t._fnLabelTapHandler();}});});}};e.prototype.getAccessibilityInfo=function(){var B=sap.ui.getCore().getLibraryResourceBundle("sap.m");return{role:"checkbox",type:B.getText("ACC_CTR_TYPE_CHECKBOX"),description:(this.getText()||"")+(this.getSelected()?(" "+B.getText("ACC_CTR_STATE_CHECKED")):""),focusable:this.getEnabled()&&!this.getDisplayOnly(),enabled:this.getEnabled(),editable:this.getEditable()};};e.prototype._getToolbarInteractive=function(){return true;};e.prototype.getFormDoNotAdjustWidth=function(){return this.getText()?false:true;};return e;});
sap.ui.predefine('sap/m/CheckBoxRenderer',['sap/ui/core/library','sap/ui/core/ValueStateSupport','sap/ui/Device'],function(c,V,D){"use strict";var a=c.ValueState;var C={apiVersion:2};C.render=function(r,o){var i=o.getId(),e=o.getEnabled(),d=o.getDisplayOnly(),E=o.getEditable(),I=e&&!d,b=e&&d,f=o.getAggregation("_label"),v=o.getValueState(),g=a.Error===v,h=a.Warning===v,j=a.Success===v,k=a.Information===v,u=o.getUseEntireWidth();r.openStart("div",o);r.class("sapMCb");if(!E){r.class("sapMCbRo");}if(b){r.class("sapMCbDisplayOnly");}if(!e){r.class("sapMCbBgDis");}if(o.getText()){r.class("sapMCbHasLabel");}if(o.getWrapping()){r.class("sapMCbWrapped");}if(g){r.class("sapMCbErr");}else if(h){r.class("sapMCbWarn");}else if(j){r.class("sapMCbSucc");}else if(k){r.class("sapMCbInfo");}if(u){r.style("width",o.getWidth());}var t=V.enrichTooltip(o,o.getTooltip_AsString());if(t){r.attr("title",t);}if(I){r.attr("tabindex",o.getTabIndex());}r.accessibilityState(o,{role:"checkbox",selected:null,checked:o._getAriaChecked(),describedby:t?i+"-Descr":undefined});if(b){r.attr("aria-readonly",true);}r.openEnd();r.openStart("div",o.getId()+"-CbBg");r.class("sapMCbBg");if(I&&E&&D.system.desktop){r.class("sapMCbHoverable");}if(!o.getActiveHandling()){r.class("sapMCbActiveStateOff");}r.class("sapMCbMark");if(o.getSelected()){r.class("sapMCbMarkChecked");}if(o.getPartiallySelected()){r.class("sapMCbMarkPartiallyChecked");}r.openEnd();r.voidStart("input",o.getId()+"-CB");r.attr("type","CheckBox");if(o.getSelected()){r.attr("checked","checked");}if(o.getName()){r.attr("name",o.getName());}if(!e){r.attr("disabled","disabled");}if(!E){r.attr("readonly","readonly");}r.voidEnd();r.close("div");r.renderControl(f);if(t&&sap.ui.getCore().getConfiguration().getAccessibility()){r.openStart("span",i+"-Descr");r.class("sapUiHidden");r.openEnd();r.text(t);r.close("span");}r.close("div");};return C;},true);
sap.ui.predefine('sap/m/ColumnListItem',["sap/ui/core/Element","sap/ui/core/library","./library","./ListItemBase","./ColumnListItemRenderer","sap/ui/thirdparty/jquery","sap/ui/dom/jquery/Selectors"],function(E,c,l,L,C,q){"use strict";var a=l.ListType;var V=c.VerticalAlign;var b=L.extend("sap.m.ColumnListItem",{metadata:{library:"sap.m",properties:{vAlign:{type:"sap.ui.core.VerticalAlign",group:"Appearance",defaultValue:V.Inherit}},defaultAggregation:"cells",aggregations:{cells:{type:"sap.ui.core.Control",multiple:true,singularName:"cell",bindable:"bindable"}}}});var T=E.extend("sap.m.TablePopin",{ontap:function(e){if(e.isMarked()||L.detectTextSelection(this.getDomRef())){return e.stopImmediatePropagation(true);}if(e.srcControl===this||!q(e.target).is(":sapFocusable")){this.getParent().focus();}}});b.prototype.TagName="tr";b.prototype._bAnnounceNotSelected=true;b.prototype.init=function(){L.prototype.init.call(this);this._bNeedsTypeColumn=false;this._aClonedHeaders=[];};b.prototype.onAfterRendering=function(){L.prototype.onAfterRendering.call(this);this._checkTypeColumn();};b.prototype.exit=function(){L.prototype.exit.call(this);this._checkTypeColumn(false);this._destroyClonedHeaders();if(this._oPopin){this._oPopin.destroy(true);this._oPopin=null;}};b.prototype.setVisible=function(v){L.prototype.setVisible.call(this,v);if(!v&&this.hasPopin()){this.removePopin();}return this;};b.prototype.getTable=function(){var p=this.getParent();if(p&&p.isA("sap.m.Table")){return p;}};b.prototype.getPopin=function(){if(!this._oPopin){this._oPopin=new T({id:this.getId()+"-sub"}).addDelegate({ontouchstart:this.ontouchstart,ontouchmove:this.ontouchmove,ontap:this.ontap,ontouchend:this.ontouchend,ontouchcancel:this.ontouchcancel,onsaptabnext:this.onsaptabnext,onsaptabprevious:this.onsaptabprevious,onsapup:this.onsapup,onsapdown:this.onsapdown,oncontextmenu:this.oncontextmenu},this).setParent(this,null,true);}return this._oPopin;};b.prototype.$Popin=function(){return this.$("sub");};b.prototype.hasPopin=function(){return this._oPopin;};b.prototype.removePopin=function(){this._oPopin&&this.$Popin().remove();};b.prototype.getTabbables=function(){return this.$().add(this.$Popin()).find(":sapTabbable");};b.prototype.getAccessibilityType=function(B){return B.getText("ACC_CTR_TYPE_ROW");};b.prototype.getContentAnnouncement=function(B){var t=this.getTable();if(!t){return;}var A="",d=this.getCells(),e=t.getColumns(true);e.forEach(function(o){var f=d[o.getInitialOrder()];if(!f||!o.getVisible()||(o.isHidden()&&!o.isPopin())){return;}var h=o.getHeader();if(h&&h.getVisible()){A+=L.getAccessibilityText(h)+" ";}A+=L.getAccessibilityText(f,true)+" ";});return A;};b.prototype.updateSelectedDOM=function(s,t){L.prototype.updateSelectedDOM.apply(this,arguments);if(this.hasPopin()){this.$Popin().attr("aria-selected",s);}};b.prototype.onfocusin=function(e){if(e.isMarked()||e.srcControl!==this){return;}this.$().children(".sapMListTblCellDup").find(":sapTabbable").attr("tabindex",-1);L.prototype.onfocusin.apply(this,arguments);};b.prototype._checkTypeColumn=function(n){if(n==undefined){n=this._needsTypeColumn();}if(this._bNeedsTypeColumn!=n){this._bNeedsTypeColumn=n;this.informList("TypeColumnChange",n);}};b.prototype._needsTypeColumn=function(){var t=this.getType();return this.getVisible()&&(t==a.Detail||t==a.Navigation||t==a.DetailAndActive);};b.prototype._addClonedHeader=function(h){return this._aClonedHeaders.push(h);};b.prototype._destroyClonedHeaders=function(){if(this._aClonedHeaders.length){this._aClonedHeaders.forEach(function(o){o.destroy("KeepDom");});this._aClonedHeaders=[];}};b.prototype._activeHandlingInheritor=function(){this._toggleActiveClass(true);};b.prototype._inactiveHandlingInheritor=function(){this._toggleActiveClass(false);};b.prototype._toggleActiveClass=function(s){if(this.hasPopin()){this.$Popin().toggleClass("sapMLIBActive",s);}};return b;});
sap.ui.predefine('sap/m/ColumnListItemRenderer',["sap/ui/core/Renderer","sap/ui/core/library","sap/ui/core/Core","sap/ui/Device","sap/base/Log","./library","./ListItemBaseRenderer"],function(R,c,C,D,L,l,a){"use strict";var P=l.PopinDisplay;var V=c.VerticalAlign;var b=l.PopinLayout;var d=R.extend(a);d.apiVersion=2;d.render=function(r,o){var t=o.getTable();if(!t){return;}a.render.apply(this,arguments);if(o.getVisible()&&t.hasPopin()){this.renderPopin(r,o,t);}};d.renderHighlight=function(r,o){r.openStart("td");r.class("sapMListTblHighlightCell");r.attr("role","presentation");r.attr("aria-hidden","true");r.openEnd();a.renderHighlight.apply(this,arguments);r.close("td");};d.renderType=function(r,o){r.openStart("td");r.class("sapMListTblNavCol");r.attr("role","presentation");r.attr("aria-hidden","true");r.openEnd();a.renderType.apply(this,arguments);r.close("td");};d.renderModeContent=function(r,o){r.openStart("td");r.class("sapMListTblSelCol");r.attr("role","presentation");r.attr("aria-hidden","true");r.openEnd();a.renderModeContent.apply(this,arguments);r.close("td");};d.renderCounter=function(r,o){};d.getAriaRole=function(o){return"";};d.renderLIAttributes=function(r,o){r.class("sapMListTblRow");var A=o.getVAlign();if(A!=V.Inherit){r.class("sapMListTblRow"+A);}var t=o.getTable();if(t&&t.getAlternateRowColors()){var p=t.indexOfItem(o);if(p%2==0){r.class("sapMListTblRowAlternate");}}};d.renderLIContentWrapper=function(r,o){var t=o.getTable();if(!t){return;}var e=t.getColumns(true),f=o.getCells();o._destroyClonedHeaders();e.forEach(function(g,i){var h,j=true,k=f[g.getInitialOrder()];if(!k||!g.getVisible()||g.isPopin()){g.setIndex(-1);return;}r.openStart("td",o.getId()+"_cell"+i);r.class("sapMListTblCell");r.attr("data-sap-ui-column",g.getId());if(g){r.class(g.getStyleClass(true));h=g.getHeader();if(h){r.attr("headers",g.getId());}if(!t.hasPopin()&&g.getMergeDuplicates()){var F=g.getMergeFunctionName(),m=F.split("#"),s=m[1],n=m[0];if(typeof k[n]!="function"){L.warning("mergeFunctionName property is defined on "+g+" but this is not function of "+k);}else if(t._bRendering||!k.bOutput){var p=g.getLastValue(),q=k[n](s);if(p===q){j=C.getConfiguration().getAccessibility();k.addStyleClass("sapMListTblCellDupCnt");r.class("sapMListTblCellDup");}else{g.setLastValue(q);}}else if(k.hasStyleClass("sapMListTblCellDupCnt")){r.class("sapMListTblCellDup");}}g.getVAlign()!="Inherit"&&r.style("vertical-align",g.getVAlign().toLowerCase());r.style("text-align",g.getCssAlign());}r.openEnd();if(j){this.applyAriaLabelledBy(h,k);r.renderControl(k);}r.close("td");},this);};d.applyAriaLabelledBy=function(h,o){if(h&&h.getText&&h.getVisible()&&o.getAriaLabelledBy&&(o.getAriaLabelledBy()||[]).indexOf(h.getId())==-1){o.addAriaLabelledBy(h);}};d.renderPopin=function(r,o,t){o.removePopin();r.openStart("tr",o.getPopin());r.class("sapMListTblSubRow");r.attr("tabindex","-1");if(o.isSelectable()){r.attr("aria-selected",o.getSelected());}r.openEnd();this.renderHighlight(r,o);r.openStart("td",o.getId()+"-subcell");r.class("sapMListTblSubRowCell");r.attr("colspan",t.getColSpan());var p=t.getPopinLayout();if(D.browser.msie||(D.browser.edge&&D.browser.version<16)){p=b.Block;}r.attr("aria-labelledby",this.getAriaAnnouncement(null,"TABLE_POPIN_ROLE_DESCRIPTION"));r.openEnd();r.openStart("div");r.class("sapMListTblSubCnt");r.class("sapMListTblSubCnt"+p);r.openEnd();var e=o.getCells(),f=t.getColumns(true);f.forEach(function(g){if(!g.getVisible()||!g.isPopin()){return;}var h=e[g.getInitialOrder()],H=g.getHeader();if(!H&&!h){return;}var s=g.getStyleClass(),i=g.getPopinDisplay();r.openStart("div");r.class("sapMListTblSubCntRow");s&&r.class(s);r.openEnd();if(H&&i!=P.WithoutHeader){r.openStart("div").class("sapMListTblSubCntHdr").openEnd();H=H.clone();g.addDependent(H);o._addClonedHeader(H);r.renderControl(H);r.close("div");r.openStart("div").class("sapMListTblSubCntSpr").openEnd();r.text(":");r.close("div");}if(h){r.openStart("div");r.class("sapMListTblSubCntVal");r.class("sapMListTblSubCntVal"+i);r.openEnd();this.applyAriaLabelledBy(H,h);r.renderControl(h);r.close("div");}r.close("div");},this);r.close("div");r.close("td");r.close("tr");};d.addLegacyOutlineClass=function(r,o){};return d;},true);
sap.ui.predefine('sap/m/ComboBox',['./InputBase','./ComboBoxTextField','./ComboBoxBase','./List','./library','sap/ui/Device','sap/ui/core/Item','./StandardListItem','./ComboBoxRenderer','sap/ui/base/ManagedObjectObserver',"sap/ui/dom/containsOrEquals","sap/ui/events/KeyCodes","./Toolbar","sap/base/assert","sap/base/security/encodeXML","sap/ui/core/Core","sap/base/Log","sap/ui/base/ManagedObject","sap/ui/dom/jquery/control"],function(I,C,a,L,l,D,b,S,c,M,d,K,T,f,g,h,j,k,q){"use strict";var m=l.ListType;var n=l.ListMode;var o=a.extend("sap.m.ComboBox",{metadata:{interfaces:["sap.m.IToolbarInteractiveControl"],library:"sap.m",designtime:"sap/m/designtime/ComboBox.designtime",properties:{selectedKey:{type:"string",group:"Data",defaultValue:""},selectedItemId:{type:"string",group:"Misc",defaultValue:""},filterSecondaryValues:{type:"boolean",group:"Misc",defaultValue:false}},associations:{selectedItem:{type:"sap.ui.core.Item",multiple:false}},events:{change:{parameters:{value:{type:"string"},itemPressed:{type:"boolean"}}},selectionChange:{parameters:{selectedItem:{type:"sap.ui.core.Item"}}}},dnd:{draggable:false,droppable:true}}});function H(e,i){if(!i){return;}var r=e.getFocusDomRef(),t=e._getSelectionRange().start,u=r.value.substring(0,r.selectionStart),v=e._shouldResetSelectionStart(i),w=e.getSelectedItem(),G=i.isA("sap.ui.core.SeparatorItem"),x;e.setSelection(i);if(i!==w&&!G){e.updateDomValue(i.getText());e.fireSelectionChange({selectedItem:i});i=e.getSelectedItem();if(v){t=0;}e.selectText(t,r.value.length);e._bIsLastFocusedItemHeader=false;}if(G){e.setSelectedItem(null);e.fireSelectionChange({selectedItem:null});e.updateDomValue(u);e._bIsLastFocusedItemHeader=true;e._handleAriaActiveDescendant(i);e._getGroupHeaderInvisibleText().setText(e._oRb.getText("LIST_ITEM_GROUP_HEADER")+" "+i.getText());}x=this.getListItem(i);e.handleListItemsVisualFocus(x);if(e.isOpen()){e.removeStyleClass("sapMFocus");e._getList().addStyleClass("sapMListFocus");}else{e.addStyleClass("sapMFocus");}e.scrollToItem(i);}o.prototype.scrollToItem=function(i){var P=this.getPicker(),e=P.getDomRef("cont"),r=this.getListItem(i),t=i&&r&&r.getDomRef();if(!P||!e||!t){return;}var u=e.scrollTop,v=t.offsetTop,w=e.clientHeight,x=t.offsetHeight;if(u>v){e.scrollTop=v;}else if((v+x)>(u+w)){e.scrollTop=Math.ceil(v+x-w);}};function s(i,e){if(document.activeElement===this.getFocusDomRef()){this.selectText(i,e);}}function p(i){var e=this.getSelectedItem(),r=this.getListItem(e),t=e&&r&&r.getDomRef(),u=t&&t.offsetTop,v=t&&t.offsetHeight,P=this.getPicker(),w=P.getDomRef("cont"),x=w.clientHeight;if(e&&((u+v)>(x))){if(!i){this._getList().$().css("visibility","hidden");}else{w.scrollTop=u-v/2;this._getList().$().css("visibility","visible");}}}o.prototype._handleAriaActiveDescendant=function(i){var e=this.getFocusDomRef(),r=this.getListItem(i),A="aria-activedescendant";if(e){if(i&&r&&r.getDomRef()&&this.isOpen()){e.setAttribute(A,r.getId());}else{e.removeAttribute(A);}}};o.prototype._getSelectedItemText=function(i){i=i||this.getSelectedItem();if(!i){i=this.getDefaultSelectedItem();}if(i){return i.getText();}return"";};o.prototype._setItemVisibility=function(i,v){var O=i&&this.getListItem(i).$(),e="sapMSelectListItemBaseInvisible";if(v){i.bVisible=true;O.length&&O.removeClass(e);}else{i.bVisible=false;O.length&&O.addClass(e);}};o.prototype.setSelectedIndex=function(i,_){var e;_=_||this.getItems();i=(i>_.length-1)?_.length-1:Math.max(0,i);e=_[i];if(e){this.setSelection(e);}};o.prototype.revertSelection=function(){var P,e=this.getPickerTextField();this.setSelectedItem(this._oSelectedItemBeforeOpen);this.setValue(this._sValueBeforeOpen);if(this.getSelectedItem()===null){P=this._sValueBeforeOpen;}else{P=this._oSelectedItemBeforeOpen.getText();}e&&e.setValue(P);};o.prototype.filterItems=function(O){var i=this.getItems(),F=[],e=[],r=O.properties.indexOf("additionalText")>-1,t=this.fnFilter||a.DEFAULT_TEXT_FILTER,G=[],u=false;this._oFirstItemTextMatched=null;i.forEach(function(v){if(v.isA("sap.ui.core.SeparatorItem")){if(!v.getText()){this.getListItem(v).setVisible(false);return;}G.push({separator:v,show:false});u=true;this.getListItem(v).setVisible(false);return;}var w=t.call(this,O.value,v,"getText");var x=t.call(this,O.value,v,"getAdditionalText");if((w||x)&&u){G[G.length-1].show=true;u=false;}if(w){e.push(v);F.push(v);}else if(x&&r){F.push(v);}}.bind(this));i.forEach(function(v){if(v.isA("sap.ui.core.SeparatorItem")){return;}var w=F.indexOf(v)>-1;var x=e.indexOf(v)>-1;if(!this._oFirstItemTextMatched&&x){this._oFirstItemTextMatched=v;}this.getListItem(v).setVisible(w);if(!v.getEnabled()){this.getListItem(v).setVisible(false);}},this);G.forEach(function(v){if(v.show){this.getListItem(v.separator).setVisible(true);}}.bind(this));return F;};o.prototype._filterStartsWithItems=function(i,e){var r=i.toLowerCase();var t=this.getItems(),F=t.filter(function(u){return u[e]&&u[e]().toLowerCase().startsWith(r);});return F;};o.prototype._getFilters=function(){return this.getFilterSecondaryValues()?["text","additionalText"]:["text"];};o.prototype.getNextFocusableItem=function(e){var A=this.getSelectableItems(),i=this.getNonSeparatorSelectableItems(A),F=this.hasStyleClass("sapMFocus"),r=this.getSelectedItem()||this._getItemByListItem(this._oLastFocusedListItem),N;if(F&&this.isOpen()){N=A[0];}else if(F){N=i[i.indexOf(r)+(e?1:-1)];}else{N=A[A.indexOf(r)+(e?1:-1)];}return N;};o.prototype.getNonSeparatorSelectableItems=function(i){return i.filter(function(e){return!e.isA("sap.ui.core.SeparatorItem");});};o.prototype._itemsTextStartsWithTypedValue=function(i,t){if(!i||typeof t!="string"||t==""){return false;}return i.getText().toLowerCase().startsWith(t.toLowerCase());};o.prototype._shouldResetSelectionStart=function(i){var e=this.getFocusDomRef(),r=this._getSelectionRange(),t=r.start!==r.end,u=e.value.substring(0,r.start),v=this._itemsTextStartsWithTypedValue(i,u);return!(v&&(t||this._bIsLastFocusedItemHeader));};o.prototype._getSelectionRange=function(){var e=this.getFocusDomRef(),v=this.getValue(),i=e.selectionStart,r=e.selectionEnd,R={start:i,end:r};if(!(D.browser.msie||D.browser.edge)){return R;}if(this._bIsLastFocusedItemHeader){R.start=v.length;R.end=v.length;}return R;};o.prototype.handleListItemsVisualFocus=function(e){if(this._oLastFocusedListItem){this._oLastFocusedListItem.removeStyleClass("sapMLIBFocused");this._oLastFocusedListItem=null;}if(e){this._oLastFocusedListItem=e;e.addStyleClass("sapMLIBFocused");}};o.prototype.init=function(){this._oRb=h.getLibraryResourceBundle("sap.m");a.prototype.init.apply(this,arguments);this.bOpenValueStateMessage=true;this._sValueBeforeOpen="";this._sInputValueBeforeOpen="";this._oSelectedItemBeforeOpen=null;this._oFirstItemTextMatched=null;this.bIsFocused=false;if(D.system.phone){this.attachEvent("_change",this.onPropertyChange,this);}this._oLastFocusedListItem=null;this._bIsLastFocusedItemHeader=null;this._oItemObserver=new M(this._forwardItemProperties.bind(this));};o.prototype.onBeforeRendering=function(){a.prototype.onBeforeRendering.apply(this,arguments);this.synchronizeSelection();};o.prototype._fillList=function(){var e=this._getList(),r,t,u,i,v;if(!e){return;}if(this._oLastFocusedListItem){v=this._getItemByListItem(this._oLastFocusedListItem);}e.destroyItems();r=this.getItems();if(this._sInputValueBeforeOpen){r=this.filterItems({properties:this._getFilters(),value:this._sInputValueBeforeOpen});}for(i=0,u=r.length;i<u;i++){t=this._mapItemToListItem(r[i]);e.addAggregation("items",t,true);}if(v){this._oLastFocusedListItem=this.getListItem(v);}};o.prototype.exit=function(){a.prototype.exit.apply(this,arguments);this._oRb=null;this._oSelectedItemBeforeOpen=null;this._oFirstItemTextMatched=null;this._oLastFocusedListItem=null;if(this._oSuggestionPopover){if(this._oPickerCustomHeader){this._oPickerCustomHeader.destroy();this._oPickerCustomHeader=null;}this._oSuggestionPopover.destroy();this._oSuggestionPopover=null;}if(this._oItemObserver){this._oItemObserver.disconnect();this._oItemObserver=null;}};o.prototype.onBeforeRenderingPicker=function(){var O=this["onBeforeRendering"+this.getPickerType()];O&&O.call(this);};o.prototype.onBeforeRenderingDropdown=function(){var P=this.getPicker(),w=(this.$().outerWidth()/parseFloat(l.BaseFontSize))+"rem";if(P){P.setContentMinWidth(w);}};o.prototype.onBeforeRenderingList=function(){if(this.bProcessingLoadItemsEvent){var e=this._getList(),F=this.getFocusDomRef();if(e){e.setBusy(true);}if(F){F.setAttribute("aria-busy","true");}}};o.prototype.onAfterRenderingPicker=function(){var O=this["onAfterRendering"+this.getPickerType()];O&&O.call(this);p.call(this,false);};o.prototype.onAfterRenderingList=function(){var e=this.getSelectedItem(),i=this.getListItem(e);if(this.bProcessingLoadItemsEvent&&(this.getItems().length===0)){return;}var r=this._getList(),F=this.getFocusDomRef();this._highlightList(this._sInputValueBeforeOpen);if(e){r.setSelectedItem(i);this.handleListItemsVisualFocus(i);}if(r){r.setBusy(false);}if(F){F.removeAttribute("aria-busy");}};o.prototype.oninput=function(e){a.prototype.oninput.apply(this,arguments);this.syncPickerContent();if(e.isMarked("invalid")){return;}this.loadItems(function(){this.handleInputValidation(e,this.isComposingCharacter());},{name:"input",busyIndicator:false});if(this.bProcessingLoadItemsEvent&&(this.getPickerType()==="Dropdown")){this.open();}this.addStyleClass("sapMFocus");this._getList().removeStyleClass("sapMListFocus");};o.prototype.handleInputValidation=function(e,i){var r=this.getSelectedItem(),v=e.target.value,E=v==="",t=e.srcControl,V,u=(this.getPickerType()==="Dropdown");if(E&&!this.bOpenedByKeyboardOrButton&&!this.isPickerDialog()){V=this.getItems();}else{V=this.filterItems({properties:this._getFilters(),value:v});}var w=!!V.length;var F=V[0];if(!E&&F&&F.getEnabled()){this.handleTypeAhead(t,V,v,i);}if(E||!w||(!t._bDoTypeAhead&&(this._getSelectedItemText()!==v))){this.setSelection(null);if(r!==this.getSelectedItem()){this.fireSelectionChange({selectedItem:this.getSelectedItem()});}}this._sInputValueBeforeOpen=v;if(this.isOpen()){setTimeout(function(){this._highlightList(v);}.bind(this));}if(w){if(E&&!this.bOpenedByKeyboardOrButton){this.close();}else if(u){this.open();this.scrollToItem(this.getSelectedItem());}}else if(this.isOpen()){if(u&&!this.bOpenedByKeyboardOrButton){this.close();}}else{this.clearFilter();}};o.prototype.handleTypeAhead=function(i,e,v,r){var t=this.intersectItems(this._filterStartsWithItems(v,'getText'),e);var u=this.getFilterSecondaryValues();var w=D.system.desktop;var x=this.getSelectedItem();if(i._bDoTypeAhead){var y=this.intersectItems(this._filterStartsWithItems(v,'getAdditionalText'),e);if(u&&!t[0]&&y[0]){!r&&i.updateDomValue(y[0].getAdditionalText());this.setSelection(y[0]);}else if(t[0]){!r&&i.updateDomValue(t[0].getText());this.setSelection(t[0]);}}else{this.setSelection(t[0]);}if(x!==this.getSelectedItem()){this.fireSelectionChange({selectedItem:this.getSelectedItem()});}if(i._bDoTypeAhead){if(w){s.call(i,v.length,i.getValue().length);}else{setTimeout(s.bind(i,v.length,i.getValue().length),0);}}this.addStyleClass("sapMFocus");this._getList().removeStyleClass("sapMListFocus");};o.prototype.onSelectionChange=function(e){var i=this._getItemByListItem(e.getParameter("listItem")),P=this.getChangeEventParams(),r=(i!==this.getSelectedItem());this.updateDomValue(i.getText());this.setSelection(i);this.fireSelectionChange({selectedItem:this.getSelectedItem()});if(r){P.itemPressed=true;this.onChange(null,P);}};o.prototype.onItemPress=function(e){var i=e.getParameter("listItem"),t=i.getTitle(),P=this.getChangeEventParams(),r=(i!==this.getListItem(this.getSelectedItem()));if(i.isA("sap.m.GroupHeaderListItem")){return;}this.handleListItemsVisualFocus(i);this.updateDomValue(t);if(!r){P.itemPressed=true;this.onChange(null,P);}this._setPropertyProtected("value",t,true);if(this.getPickerType()==="Dropdown"&&!this.isPlatformTablet()){this.selectText.bind(this,this.getValue().length,this.getValue().length);}this.close();};o.prototype.onBeforeOpen=function(){var P=this["onBeforeOpen"+this.getPickerType()],e=this.getFocusDomRef();if(this.hasLoadItemsEventListeners()&&!this.bProcessingLoadItemsEvent){this.loadItems();}this.addStyleClass(I.ICON_PRESSED_CSS_CLASS);if(e){this.getRoleComboNodeDomRef().setAttribute("aria-owns",this._getList().getId());}this.addContent();P&&P.call(this);};o.prototype.onBeforeOpenDialog=function(){var P=this.getPickerTextField();this._oSelectedItemBeforeOpen=this.getSelectedItem();this._sValueBeforeOpen=this.getValue();if(this.getSelectedItem()){this.filterItems({properties:this._getFilters(),value:""});}P.setValue(this._sValueBeforeOpen);};o.prototype.onAfterOpen=function(){var e=this.getFocusDomRef(),i=this.getSelectedItem(),r=this.getListItem(i),t=this._getSelectionRange(),u=this.isPlatformTablet();if(e){this.getRoleComboNodeDomRef().setAttribute("aria-expanded","true");r&&e.setAttribute("aria-activedescendant",r.getId());}p.call(this,true);if(!u&&i&&t.start===t.end&&t.start>1){setTimeout(function(){this.selectText(0,t.end);}.bind(this),0);}};o.prototype.onBeforeClose=function(){a.prototype.onBeforeClose.apply(this,arguments);var e=this.getFocusDomRef();if(e){this.getRoleComboNodeDomRef().removeAttribute("aria-owns");e.removeAttribute("aria-activedescendant");}this.removeStyleClass(I.ICON_PRESSED_CSS_CLASS);};o.prototype.onAfterClose=function(){var e=this.getFocusDomRef();if(e){this.getRoleComboNodeDomRef().setAttribute("aria-expanded","false");}this.clearFilter();this._sInputValueBeforeOpen="";if(this.shouldValueStateMessageBeOpened()&&(document.activeElement===e)){this.openValueStateMessage();}};o.prototype.onItemChange=function(e){var i=this.getAssociation("selectedItem"),N=e.getParameter("newValue"),P=e.getParameter("name");if(i===e.getParameter("id")){switch(P){case"text":if(!this.isBound("value")){this.setValue(N);}break;case"key":if(!this.isBound("selectedKey")){this.setSelectedKey(N);}break;}}};o.prototype.onkeydown=function(e){var i=e.srcControl;a.prototype.onkeydown.apply(i,arguments);if(!i.getEnabled()||!i.getEditable()){return;}var r=K;i._bDoTypeAhead=!D.os.android&&(e.which!==r.BACKSPACE)&&(e.which!==r.DELETE);};o.prototype.oncut=function(e){var i=e.srcControl;a.prototype.oncut.apply(i,arguments);i._bDoTypeAhead=false;};o.prototype.onsapenter=function(e){var i=e.srcControl,r=i.getSelectedItem();if(r&&this.getFilterSecondaryValues()){i.updateDomValue(r.getText());}a.prototype.onsapenter.apply(i,arguments);if(!i.getEnabled()||!i.getEditable()){return;}if(i.isOpen()&&!this.isComposingCharacter()){i.close();}};o.prototype.onsapdown=function(e){var i=e.srcControl;if(!i.getEnabled()||!i.getEditable()){return;}this.syncPickerContent();e.setMarked();e.preventDefault();this.loadItems(function navigateToNextSelectableItem(){H.call(this,i,this.getNextFocusableItem(true));});};o.prototype.onsapup=function(e){var i=e.srcControl;if(!i.getEnabled()||!i.getEditable()){return;}this.syncPickerContent();e.setMarked();e.preventDefault();this.loadItems(function navigateToPrevSelectableItem(){H.call(this,i,this.getNextFocusableItem(false));});};o.prototype.onsaphome=function(e){var i=e.srcControl;if(!i.getEnabled()||!i.getEditable()){return;}this.syncPickerContent();e.setMarked();e.preventDefault();this.loadItems(function navigateToFirstSelectableItem(){var F=this.getSelectableItems()[0];H.call(this,i,F);});};o.prototype.onsapend=function(e){var i=e.srcControl;if(!i.getEnabled()||!i.getEditable()){return;}this.syncPickerContent();e.setMarked();e.preventDefault();this.loadItems(function navigateToLastSelectableItem(){var r=this.findLastEnabledItem(this.getSelectableItems());H.call(this,i,r);});};o.prototype.onsappagedown=function(e){var i=e.srcControl;if(!i.getEnabled()||!i.getEditable()){return;}this.syncPickerContent();e.setMarked();e.preventDefault();this.loadItems(function(){var r=this.getNonSeparatorSelectableItems(this.getSelectableItems()),t=r.indexOf(this.getSelectedItem())+10,u;t=(t>r.length-1)?r.length-1:Math.max(0,t);u=r[t];H.call(this,i,u);});};o.prototype.onsappageup=function(e){var i=e.srcControl;if(!i.getEnabled()||!i.getEditable()){return;}this.syncPickerContent();e.setMarked();e.preventDefault();this.loadItems(function(){var r=this.getNonSeparatorSelectableItems(this.getSelectableItems()),t=r.indexOf(this.getSelectedItem())-10,u;t=(t>r.length-1)?r.length-1:Math.max(0,t);u=r[t];H.call(this,i,u);});};o.prototype.onsapshow=function(e){var i,r,E=this.getEditable();a.prototype.onsapshow.apply(this,arguments);this.syncPickerContent();if(!this.getValue()&&E){i=this.getSelectableItems();r=this.getNonSeparatorSelectableItems(i)[0];if(r){this.setSelection(r);this.updateDomValue(r.getText());this.fireSelectionChange({selectedItem:r});setTimeout(function(){this.selectText(0,r.getText().length);}.bind(this),0);}}};o.prototype.onsaphide=o.prototype.onsapshow;o.prototype.onfocusin=function(e){var i=this.getPickerType()==="Dropdown";if(this._bIsBeingDestroyed){return;}if(e.target===this.getOpenArea()){this.bOpenValueStateMessage=false;if(i&&!this.isPlatformTablet()){this.focus();}}else{if(i){setTimeout(function(){if(document.activeElement===this.getFocusDomRef()&&!this.bIsFocused&&!this.bFocusoutDueRendering&&!this.getSelectedText()){this.selectText(0,this.getValue().length);}this.bIsFocused=true;}.bind(this),0);}if(!this.isOpen()&&this.bOpenValueStateMessage&&this.shouldValueStateMessageBeOpened()){this.openValueStateMessage();}this.bOpenValueStateMessage=true;}if(this.getEnabled()&&(!this.isOpen()||!this.getSelectedItem()||!this._getList().hasStyleClass("sapMListFocus"))){this.addStyleClass("sapMFocus");}};o.prototype.onsapfocusleave=function(e){this.bIsFocused=false;var t,P,r,F,i=this.getSelectedItem();if(i&&this.getFilterSecondaryValues()){this.updateDomValue(i.getText());}a.prototype.onsapfocusleave.apply(this,arguments);if(this.isPickerDialog()){return;}P=this.getPicker();if(!e.relatedControlId||!P){return;}t=this.isPlatformTablet();r=h.byId(e.relatedControlId);F=r&&r.getFocusDomRef();if(d(P.getFocusDomRef(),F)&&!t){this.focus();}};o.prototype.setSelection=function(i){var e=this._getList(),r,t;this.setAssociation("selectedItem",i,true);this._setPropertyProtected("selectedItemId",(i instanceof b)?i.getId():i,true);if(typeof i==="string"){i=h.byId(i);}if(e){r=this.getListItem(i);if(r){e.setSelectedItem(r,true);}else{e.removeSelections(true);}}t=i?i.getKey():"";this._setPropertyProtected("selectedKey",t,true);this._handleAriaActiveDescendant(i);if(this._oSuggestionPopover){this._oSuggestionPopover._iPopupListSelectedIndex=this.getItems().indexOf(i);}};o.prototype.isSelectionSynchronized=function(){var i=this.getSelectedItem();return this.getSelectedKey()===(i&&i.getKey());};o.prototype.synchronizeSelection=function(){if(this.isSelectionSynchronized()){return;}var e=this.getSelectedKey(),i=this.getItemByKey(""+e);if(i&&(e!=="")){this.setAssociation("selectedItem",i,true);this._setPropertyProtected("selectedItemId",i.getId(),true);if(this._sValue===this.getValue()){this.setValue(i.getText());this._sValue=this.getValue();}}};o.prototype.isFiltered=function(){var e=this._getList();return e&&(e.getVisibleItems().length!==this.getItems().length);};o.prototype.isItemVisible=function(i){return i&&(i.bVisible===undefined||i.bVisible);};o.prototype.configPicker=function(P){var r=this.getRenderer(),e=r.CSS_CLASS_COMBOBOXBASE;P.setHorizontalScrolling(false).addStyleClass(e+"Picker").addStyleClass(e+"Picker-CTX").attachBeforeOpen(this.onBeforeOpen,this).attachAfterOpen(this.onAfterOpen,this).attachBeforeClose(this.onBeforeClose,this).attachAfterClose(this.onAfterClose,this).addEventDelegate({onBeforeRendering:this.onBeforeRenderingPicker,onAfterRendering:this.onAfterRenderingPicker},this);};o.prototype._configureList=function(e){var r=this.getRenderer();if(!e){return;}e.setMode(n.SingleSelectMaster).addStyleClass(r.CSS_CLASS_COMBOBOXBASE+"List").addStyleClass(r.CSS_CLASS_COMBOBOX+"List");e.attachSelectionChange(this.onSelectionChange,this).attachItemPress(this.onItemPress,this);e.addEventDelegate({onBeforeRendering:this.onBeforeRenderingList,onAfterRendering:this.onAfterRenderingList},this);};o.prototype.destroyItems=function(){this.destroyAggregation("items");if(this._getList()){this._getList().destroyItems();}return this;};o.prototype._mapItemToListItem=function(i){var e,r,t;var A="";var R=this.getRenderer();if(!i){return null;}if(i.getAdditionalText&&this.getShowSecondaryValues()){A=k.escapeSettingsValue(i.getAdditionalText());}r=R.CSS_CLASS_COMBOBOXBASE+"Item";t=(this.isItemSelected(i))?r+"Selected":"";if(i.isA("sap.ui.core.SeparatorItem")){e=this._mapSeparatorItemToGroupHeader(i,R);}else{e=new S({type:m.Active,info:A,visible:i.getEnabled()}).addStyleClass(r+" "+t);}e.setTitle(i.getText());this.setSelectable(i,i.getEnabled());e.setTooltip(i.getTooltip());i.data(R.CSS_CLASS_COMBOBOXBASE+"ListItem",e);i.getCustomData().forEach(function(u){e.addCustomData(u.clone(null,null,{cloneBindings:false}));});this._oItemObserver.observe(i,{properties:["text","additionalText","enabled","tooltip"]});return e;};o.prototype._forwardItemProperties=function(P){var i=P.object,e=i.data(this.getRenderer().CSS_CLASS_COMBOBOXBASE+"ListItem"),r={text:"title",enabled:"visible",tooltip:"tooltip"},A,t,u;if(Object.keys(r).indexOf(P.name)>-1){t=r[P.name];u="set"+t.charAt(0).toUpperCase()+t.slice(1);e[u](P.current);}if(P.name==="additionalText"){A=this.getShowSecondaryValues()?P.current:"";e.setInfo(A);}};o.prototype.isItemSelected=function(i){return i&&(i.getId()===this.getAssociation("selectedItem"));};o.prototype.getDefaultSelectedItem=function(){return null;};o.prototype.getChangeEventParams=function(){return{itemPressed:false};};o.prototype.clearSelection=function(){this.setSelection(null);};o.prototype.selectText=function(i,e){a.prototype.selectText.apply(this,arguments);this.textSelectionStart=i;this.textSelectionEnd=e;return this;};o.prototype.setAssociation=function(A,i,e){var r=this._getList();if(r&&(A==="selectedItem")){if(!(i instanceof b)){i=this.findItem("id",i);}r.setSelectedItem(this.getListItem(i),true);}return a.prototype.setAssociation.apply(this,arguments);};o.prototype.removeAllAssociation=function(A,e){var i=this._getList();if(i&&(A==="selectedItem")){L.prototype.removeAllAssociation.apply(i,arguments);}return a.prototype.removeAllAssociation.apply(this,arguments);};o.prototype.removeAllItems=function(){var i=a.prototype.removeAllItems.apply(this,arguments);this._fillList();return i;};o.prototype.clone=function(i){var e=a.prototype.clone.apply(this,arguments),r=this._getList();if(!this.isBound("items")&&r){e.syncPickerContent();e.setSelectedIndex(this.indexOfItem(this.getSelectedItem()));}return e;};o.prototype.open=function(){this.syncPickerContent();var e=this._getList();a.prototype.open.call(this);if(this.getSelectedItem()){e.addStyleClass("sapMListFocus");this.removeStyleClass("sapMFocus");}return this;};o.prototype.syncPickerContent=function(){var P,e=this.getPicker(),i=this.getInputForwardableProperties();if(!e){var r,G;e=this.createPicker(this.getPickerType());P=this.getPickerTextField();this._updateSuggestionsPopoverValueState();this._fillList();if(P){i.forEach(function(t){t=t.charAt(0).toUpperCase()+t.slice(1);r="set"+t;G="get"+t;if(P[r]){P[r](this[G]());}},this);}}this.synchronizeSelection();return e;};o.prototype.close=function(){var e=this._getList();a.prototype.close.call(this);this.addStyleClass("sapMFocus");e&&e.removeStyleClass("sapMListFocus");return this;};o.prototype.findAggregatedObjects=function(){var e=this._getList();if(e){return L.prototype.findAggregatedObjects.apply(e,arguments);}return[];};o.prototype.setSelectedItem=function(i){if(typeof i==="string"){this.setAssociation("selectedItem",i,true);i=h.byId(i);}if(!(i instanceof b)&&i!==null){return this;}if(!i){i=this.getDefaultSelectedItem();}this.setSelection(i);this.setValue(this._getSelectedItemText(i));return this;};o.prototype.setSelectedItemId=function(i){i=this.validateProperty("selectedItemId",i);if(!i){i=this.getDefaultSelectedItem();}this.setSelection(i);i=this.getSelectedItem();this.setValue(this._getSelectedItemText(i));return this;};o.prototype.setSelectedKey=function(e){e=this.validateProperty("selectedKey",e);var i=(e===""),r=this.isBound("selectedKey")&&this.isBound("value")&&this.getBindingInfo("selectedKey").skipModelUpdate;if(i){this.setSelection(null);if(!r){this.setValue("");}return this;}var t=this.getItemByKey(e);if(t){this.setSelection(t);if(!r){this.setValue(this._getSelectedItemText(t));}return this;}this._sValue=this.getValue();return this._setPropertyProtected("selectedKey",e);};o.prototype._setPropertyProtected=function(P,v,i){try{return this.setProperty(P,v,i);}catch(e){j.warning("setSelectedKey update failed due to exception. Loggable in support mode log",null,null,function(){return{exception:e};});}};o.prototype.getSelectedItem=function(){var v=this.getAssociation("selectedItem");return(v===null)?null:h.byId(v)||null;};o.prototype.updateItems=function(){var r,e=this.getSelectedItem(),r=a.prototype.updateItems.apply(this,arguments);clearTimeout(this._debounceItemsUpdate);this._debounceItemsUpdate=setTimeout(this["_syncItemsSelection"].bind(this,e),0);return r;};o.prototype._syncItemsSelection=function(e){var i,N,r=this.getSelectedKey();if(!e||e===this.getSelectedItem()){return;}N=this.getItems();i=N.some(function(t){return r===t.getKey();});this.setSelectedItem(i&&r?this.getItemByKey(r):null);};o.prototype.removeItem=function(i){i=a.prototype.removeItem.apply(this,arguments);var e;if(this._getList()){this._getList().removeItem(i&&this.getListItem(i));}if(this.isBound("items")&&!this.bItemsUpdated){return i;}var v=this.getValue();if(this.getItems().length===0){this.clearSelection();}else if(this.isItemSelected(i)){e=this.getDefaultSelectedItem();this.setSelection(e);this.setValue(v);}return i;};o.prototype._modifyPopupInput=function(i){a.prototype._modifyPopupInput.apply(this,arguments);i.addEventDelegate({onsapenter:function(){var t=i.getValue();this.updateDomValue(t);this.onChange();if(t){this.updateDomValue(t);this.onChange();this.close();}}},this);return i;};o.prototype.applyShowItemsFilters=function(){var P,e;this.syncPickerContent();P=this.getPicker();e=function(){P.detachBeforeOpen(e,this);P=null;this.filterItems({value:this.getValue()||"_",properties:this._getFilters()});};P.attachBeforeOpen(e,this);};o.prototype._getToolbarInteractive=function(){return true;};return o;});
sap.ui.predefine('sap/m/ComboBoxBase',['./Dialog','./ComboBoxTextField','./Input','./GroupHeaderListItem','./SuggestionsPopover','sap/ui/core/SeparatorItem','sap/ui/core/InvisibleText','sap/base/Log','./library','sap/ui/Device','sap/ui/core/library','./ComboBoxBaseRenderer',"sap/ui/dom/containsOrEquals","sap/ui/events/KeyCodes","sap/ui/thirdparty/jquery","sap/base/security/encodeXML","sap/base/strings/escapeRegExp","sap/ui/base/ManagedObject"],function(D,C,I,G,S,a,b,L,l,c,d,e,f,K,q,g,h,M){"use strict";var P=l.PlacementType;var j=["value","enabled","name","placeholder","editable","textAlign","textDirection","valueState","valueStateText"];var k=C.extend("sap.m.ComboBoxBase",{metadata:{library:"sap.m","abstract":true,defaultAggregation:"items",properties:{showSecondaryValues:{type:"boolean",group:"Misc",defaultValue:false}},aggregations:{items:{type:"sap.ui.core.Item",multiple:true,singularName:"item",bindable:"bindable"},picker:{type:"sap.ui.core.PopupInterface",multiple:false,visibility:"hidden"}},events:{loadItems:{}},dnd:{draggable:false,droppable:true}}});k.DEFAULT_TEXT_FILTER=function(i,o,p){var s,m,n;if(!o[p]){return false;}s=o[p]().toLowerCase();m=i.toLowerCase();n=new RegExp('(^|\\s)'+h(m)+".*",'g');return n.test(s);};k.prototype.oncompositionstart=function(){this._bIsComposingCharacter=true;};k.prototype.oncompositionend=function(E){this._bIsComposingCharacter=false;this._sComposition=E.target.value;if(!c.browser.edge&&!c.browser.firefox){C.prototype.handleInput.apply(this,arguments);this.handleInputValidation(E,this.isComposingCharacter());}};k.prototype.isComposingCharacter=function(){return this._bIsComposingCharacter;};k.prototype.updateItems=function(r){this.bItemsUpdated=false;this.destroyItems();this.updateAggregation("items");this.bItemsUpdated=true;if(this.hasLoadItemsEventListeners()){this.onItemsLoaded();}};k.prototype.setFilterFunction=function(F){if(F===null||F===undefined){this.fnFilter=null;return this;}if(typeof(F)!=="function"){L.warning("Passed filter is not a function and the default implementation will be used");}else{this.fnFilter=F;}return this;};k.prototype.highLightList=function(v,i,B){if(B&&typeof B==="function"){B(i,v);}else{this._oSuggestionPopover.highlightSuggestionItems(i,v,true);}};k.prototype._highlightList=function(v){var i=[],m=[],o,n,p;this._getList().getItems().forEach(function(r){n=r.getDomRef();p=n&&n.getElementsByClassName("sapMSLITitleOnly")[0];if(p){i.push(p);o=n.querySelector(".sapMSLIInfo");if(o&&r.getInfo){m.push(o);}}});this.highLightList(v,i);this.highLightList(v,m);};k.prototype._modifyPopupInput=function(i){this.setTextFieldHandler(i);return i;};k.prototype.setTextFieldHandler=function(t){var i=this,T=t._handleEvent;t._handleEvent=function(E){T.apply(this,arguments);if(/keydown|sapdown|sapup|saphome|sapend|sappagedown|sappageup|input/.test(E.type)){i._handleEvent(E);}};};k.prototype.refreshItems=function(){this.bItemsUpdated=false;this.refreshAggregation("items");};k.prototype.loadItems=function(i,o){var m=typeof i==="function";if(this.hasLoadItemsEventListeners()&&(this.getItems().length===0)){this._bOnItemsLoadedScheduled=false;if(m){o=q.extend({action:i,busyIndicator:true,busyIndicatorDelay:300},o);this.aMessageQueue.push(o);if((this.iLoadItemsEventInitialProcessingTimeoutID===-1)&&(o.busyIndicator)){this.iLoadItemsEventInitialProcessingTimeoutID=setTimeout(function onItemsNotLoadedAfterDelay(){this.setInternalBusyIndicatorDelay(0);this.setInternalBusyIndicator(true);}.bind(this),o.busyIndicatorDelay);}}if(!this.bProcessingLoadItemsEvent){this.bProcessingLoadItemsEvent=true;this.fireLoadItems();}}else if(m){i.call(this);}};k.prototype.onItemsLoaded=function(){this.bProcessingLoadItemsEvent=false;clearTimeout(this.iLoadItemsEventInitialProcessingTimeoutID);if(this.bInitialBusyIndicatorState!==this.getBusy()){this.setInternalBusyIndicator(this.bInitialBusyIndicatorState);}if(this.iInitialBusyIndicatorDelay!==this.getBusyIndicatorDelay()){this.setInternalBusyIndicatorDelay(this.iInitialBusyIndicatorDelay);}for(var i=0,m,n,o;i<this.aMessageQueue.length;i++){m=this.aMessageQueue.shift();i--;o=(i+1)===this.aMessageQueue.length;n=o?null:this.aMessageQueue[i+1];if(typeof m.action==="function"){if((m.name==="input")&&!o&&(n.name==="input")){continue;}m.action.call(this);}}};k.prototype.hasLoadItemsEventListeners=function(){return this.hasListeners("loadItems");};k.prototype._scheduleOnItemsLoadedOnce=function(){if(!this._bOnItemsLoadedScheduled&&!this.isBound("items")&&this.hasLoadItemsEventListeners()&&this.bProcessingLoadItemsEvent){this._bOnItemsLoadedScheduled=true;setTimeout(this.onItemsLoaded.bind(this),0);}};k.prototype.getPickerInvisibleTextId=function(){return b.getStaticId("sap.m","COMBOBOX_AVAILABLE_OPTIONS");};k.prototype._getGroupHeaderInvisibleText=function(){if(!this._oGroupHeaderInvisibleText){this._oGroupHeaderInvisibleText=new b();this._oGroupHeaderInvisibleText.toStatic();}return this._oGroupHeaderInvisibleText;};k.prototype._getItemByListItem=function(o){return this._getItemBy(o,"ListItem");};k.prototype._getItemBy=function(o,s){s=this.getRenderer().CSS_CLASS_COMBOBOXBASE+s;for(var i=0,m=this.getItems(),n=m.length;i<n;i++){if(m[i].data(s)===o){return m[i];}}return null;};k.prototype._isListInSuggestMode=function(){return this._getList().getItems().some(function(o){return!o.getVisible()&&this._getItemByListItem(o).getEnabled();},this);};k.prototype.getListItem=function(i){return i?i.data(this.getRenderer().CSS_CLASS_COMBOBOXBASE+"ListItem"):null;};k.prototype.getSelectable=function(i){return i._bSelectable;};k.prototype.init=function(){C.prototype.init.apply(this,arguments);this.setPickerType(c.system.phone?"Dialog":"Dropdown");this.bItemsUpdated=false;this.bOpenedByKeyboardOrButton=false;this._bShouldClosePicker=false;this._oPickerValueStateText=null;this.bProcessingLoadItemsEvent=false;this.iLoadItemsEventInitialProcessingTimeoutID=-1;this.aMessageQueue=[];this.bInitialBusyIndicatorState=this.getBusy();this.iInitialBusyIndicatorDelay=this.getBusyIndicatorDelay();this._bOnItemsLoadedScheduled=false;this._bDoTypeAhead=true;this.getIcon().addEventDelegate({onmousedown:function(E){this._bShouldClosePicker=this.isOpen();}},this);this.getIcon().attachPress(this._handlePopupOpenAndItemsLoad.bind(this,true));this._sComposition="";this.fnFilter=null;};k.prototype._handlePopupOpenAndItemsLoad=function(o){var p;if(!this.getEnabled()||!this.getEditable()){return;}if(this._bShouldClosePicker){this._bShouldClosePicker=false;this.close();return;}this.loadItems();this.bOpenedByKeyboardOrButton=o;if(this.isPlatformTablet()){this.syncPickerContent();p=this.getPicker();p.setInitialFocus(p);}this.open();};k.prototype.exit=function(){C.prototype.exit.apply(this,arguments);if(this._getList()){this._getList().destroy();this._oList=null;}if(this._getGroupHeaderInvisibleText()){this._getGroupHeaderInvisibleText().destroy();this._oGroupHeaderInvisibleText=null;}clearTimeout(this.iLoadItemsEventInitialProcessingTimeoutID);this.aMessageQueue=null;this.fnFilter=null;};k.prototype.onsapshow=function(E){if(!this.getEnabled()||!this.getEditable()){return;}E.setMarked();if(E.keyCode===K.F4){this.onF4(E);}if(this.isOpen()){this.close();return;}this.selectText(0,this.getValue().length);this.loadItems();this.bOpenedByKeyboardOrButton=true;this.open();};k.prototype.onF4=function(E){E.preventDefault();};k.prototype.onsapescape=function(E){if(this.getEnabled()&&this.getEditable()&&this.isOpen()){E.setMarked();E.preventDefault();this.close();}else{C.prototype.onsapescape.apply(this,arguments);}};k.prototype.onsaphide=k.prototype.onsapshow;k.prototype.onsapfocusleave=function(E){if(!E.relatedControlId){C.prototype.onsapfocusleave.apply(this,arguments);return;}var r=sap.ui.getCore().byId(E.relatedControlId);if(r===this){return;}var p=this.getPicker(),F=r&&r.getFocusDomRef();if(p&&f(p.getFocusDomRef(),F)){return;}C.prototype.onsapfocusleave.apply(this,arguments);};k.prototype.getPopupAnchorDomRef=function(){return this.getDomRef();};k.prototype.addContent=function(p){};k.prototype.getList=function(){L.warning("[Warning]:","You are attempting to use deprecated method 'getList()', please refer to SAP note 2746748.",this);return this._getList();};k.prototype._getList=function(){if(this.bIsDestroyed){return null;}return this._oList;};k.prototype.setPickerType=function(p){this._sPickerType=p;};k.prototype.getPickerType=function(){return this._sPickerType;};k.prototype._updateSuggestionsPopoverValueState=function(){var s=this._getSuggestionsPopover();if(s){s.updateValueState(this.getValueState(),this.getValueStateText(),this.getShowValueStateMessage());}};k.prototype.setValueState=function(v){C.prototype.setValueState.apply(this,arguments);this._updateSuggestionsPopoverValueState();return this;};k.prototype.setValueStateText=function(v){C.prototype.setValueStateText.apply(this,arguments);this._updateSuggestionsPopoverValueState();return this;};k.prototype.setShowValueStateMessage=function(s){C.prototype.setShowValueStateMessage.apply(this,arguments);this._updateSuggestionsPopoverValueState();return this;};k.prototype.shouldValueStateMessageBeOpened=function(){var s=C.prototype.shouldValueStateMessageBeOpened.apply(this,arguments);return(s&&!this.isOpen());};k.prototype.onPropertyChange=function(o,i){var n=o.getParameter("newValue"),p=o.getParameter("name"),m="set"+p.charAt(0).toUpperCase()+p.slice(1),r=(i&&i.srcControl)||this.getPickerTextField();if(this.getInputForwardableProperties().indexOf(p)>-1&&r&&(typeof r[m]==="function")){r[m](n);}};k.prototype.getInputForwardableProperties=function(){return j;};k.prototype.isPickerDialog=function(){return this.getPickerType()==="Dialog";};k.prototype.isPlatformTablet=function(){var n=!c.system.combi,t=c.system.tablet&&n;return t;};k.prototype.createPickerTextField=function(){var i=new I({width:"100%",showValueStateMessage:false});return i;};k.prototype.getDropdownSettings=function(){return{showArrow:false,placement:P.VerticalPreferredBottom,offsetX:0,offsetY:0,bounce:false,ariaLabelledBy:this.getPickerInvisibleTextId()||undefined};};k.prototype._configureList=function(){};k.prototype.createPicker=function(p){var o=this.getAggregation("picker");if(o){return o;}this._oSuggestionPopover=this._createSuggestionsPopover();o=this._oSuggestionPopover._oPopover;this.setAggregation("picker",o,true);this.configPicker(o);return o;};k.prototype.configPicker=function(p){};k.prototype._hasShowSelectedButton=function(){return false;};k.prototype._createSuggestionsPopover=function(){var u=this.isPickerDialog(),s;s=new S(this);if(u){var i=this.createPickerTextField();s._oPopupInput=this._modifyPopupInput(i);}s._createSuggestionPopup({showSelectedButton:this._hasShowSelectedButton()});s._createSuggestionPopupContent(false,false,false);this.forwardEventHandlersToSuggPopover(s);this._updateSuggestionsPopoverValueState();this._oList=s._oList;this._configureList(this._oList);return s;};k.prototype.forwardEventHandlersToSuggPopover=function(s){s.setOkPressHandler(this._handleOkPress.bind(this));s.setCancelPressHandler(this._handleCancelPress.bind(this));s.setInputLabels(this.getLabels.bind(this));};k.prototype._handleOkPress=function(){var t=this,T=t.getPickerTextField();t.updateDomValue(T.getValue());t.onChange();t.close();};k.prototype._handleCancelPress=function(){this.close();this.revertSelection();};k.prototype.setSelectable=function(i,s){if(this.indexOfItem(i)<0){return;}i._bSelectable=s;var o=this.getListItem(i);if(o){o.setVisible(s);}};k.prototype.onBeforeClose=function(){this.bOpenedByKeyboardOrButton=false;};k.prototype.getPicker=function(){var p=this.getAggregation("picker");if(p&&!p.bIsDestroyed&&!this.bIsDestroyed){return p;}return null;};k.prototype._getSuggestionsPopover=function(){return this._oSuggestionPopover;};k.prototype.getPickerTextField=function(){var p=this.getPicker(),s=p&&p.getSubHeader();return s&&s.getContent()[0]||null;};k.prototype.getPickerTitle=function(){var p=this.getPicker(),H=p&&p.getCustomHeader();if(this.isPickerDialog()&&H){return H.getContentMiddle()[0];}return null;};k.prototype.getRoleComboNodeDomRef=function(){var F=this.getFocusDomRef();if(!F){return null;}return F.parentNode;};k.prototype.revertSelection=function(){};k.prototype.hasContent=function(){return this.getItems().length>0;};k.prototype.syncPickerContent=function(){};k.prototype.findFirstEnabledItem=function(m){m=m||this.getItems();for(var i=0;i<m.length;i++){if(m[i].getEnabled()){return m[i];}}return null;};k.prototype.findLastEnabledItem=function(i){i=i||this.getItems();return this.findFirstEnabledItem(i.reverse());};k.prototype.open=function(){var p=this.getPicker();if(p){this._updateSuggestionsPopoverValueState();p.open();}return this;};k.prototype.getVisibleItems=function(){for(var i=0,o,m=this.getItems(),v=[];i<m.length;i++){o=this.getListItem(m[i]);if(o&&o.getVisible()){v.push(m[i]);}}return v;};k.prototype.isItemSelected=function(){};k.prototype.getKeys=function(m){m=m||this.getItems();for(var i=0,n=[];i<m.length;i++){n[i]=m[i].getKey();}return n;};k.prototype.getSelectableItems=function(){return this.getEnabledItems(this.getVisibleItems());};k.prototype.findItem=function(p,v){var m="get"+p.charAt(0).toUpperCase()+p.slice(1);for(var i=0,n=this.getItems();i<n.length;i++){if(n[i][m]()===v){return n[i];}}return null;};k.prototype.getItemByText=function(t){return this.findItem("text",t);};k.prototype.scrollToItem=function(i){var p=this.getPicker(),o=p.getDomRef("cont"),m=i&&i.getDomRef();if(!p||!o||!m){return;}var n=o.scrollTop,r=m.offsetTop,s=o.clientHeight,t=m.offsetHeight;if(n>r){o.scrollTop=r;}else if((r+t)>(n+s)){o.scrollTop=Math.ceil(r+t-s);}};k.prototype.clearFilter=function(){this.getItems().forEach(function(i){var o=this.getListItem(i);if(o){o.setVisible(i.getEnabled()&&this.getSelectable(i));}},this);};k.prototype.onItemChange=function(o){};k.prototype.clearSelection=function(){};k.prototype.setInternalBusyIndicator=function(B){this.bInitialBusyIndicatorState=this.getBusy();return this.setBusy.apply(this,arguments);};k.prototype.setInternalBusyIndicatorDelay=function(i){this.iInitialBusyIndicatorDelay=this.getBusyIndicatorDelay();return this.setBusyIndicatorDelay.apply(this,arguments);};k.prototype.addItem=function(i){this.addAggregation("items",i);if(i){i.attachEvent("_change",this.onItemChange,this);}if(this._getList()){this._getList().addItem(this._mapItemToListItem(i));}return this;};k.prototype.insertItem=function(i,m){this.insertAggregation("items",i,m,true);if(i){i.attachEvent("_change",this.onItemChange,this);}if(this._getList()){this._getList().insertItem(this._mapItemToListItem(i),m);}this._scheduleOnItemsLoadedOnce();return this;};k.prototype.getItemAt=function(i){return this.getItems()[+i]||null;};k.prototype.getFirstItem=function(){return this.getItems()[0]||null;};k.prototype.getLastItem=function(){var i=this.getItems();return i[i.length-1]||null;};k.prototype.getEnabledItems=function(i){i=i||this.getItems();return i.filter(function(o){return o.getEnabled();});};k.prototype.getItemByKey=function(s){return this.findItem("key",s);};k.prototype.addItemGroup=function(o,H,s){H=H||new a({text:M.escapeSettingsValue(o.text)||M.escapeSettingsValue(o.key)});this.addAggregation("items",H,s);if(this._getList()&&H.isA("sap.ui.core.SeparatorItem")){this._getList().addItem(this._mapItemToListItem(H));}return H;};k.prototype._mapSeparatorItemToGroupHeader=function(s,o){var i=new G({title:M.escapeSettingsValue(s.getText()),ariaLabelledBy:this._getGroupHeaderInvisibleText().getId()});i.addStyleClass(o.CSS_CLASS_COMBOBOXBASE+"NonInteractiveItem");if(s.getText&&!s.getText()){i.addStyleClass(o.CSS_CLASS_COMBOBOXBASE+"SeparatorItemNoText");}return i;};k.prototype.isOpen=function(){var p=this.getPicker();return!!(p&&p.isOpen());};k.prototype.close=function(){var p=this.getPicker();if(p){p.close();}return this;};k.prototype.removeItem=function(i){i=this.removeAggregation("items",i);if(i){i.detachEvent("_change",this.onItemChange,this);}return i;};k.prototype.removeAllItems=function(){var m=this.removeAllAggregation("items");this.clearSelection();for(var i=0;i<m.length;i++){m[i].detachEvent("_change",this.onItemChange,this);}return m;};k.prototype.intersectItems=function(i,o){return i.filter(function(m){return o.map(function(O){return O.getId();}).indexOf(m.getId())!==-1;});};k.prototype.showItems=function(F){var i=this.fnFilter,m=function(){if(!this.getItems().length){return;}this.detachLoadItems(m);this.setFilterFunction(F||function(){return true;});this.applyShowItemsFilters();this._handlePopupOpenAndItemsLoad(false);this.setFilterFunction(i);}.bind(this);if(!this.getEnabled()||!this.getEditable()){return;}this.attachLoadItems(m);this.loadItems(m);};k.prototype.applyShowItemsFilters=function(){};return k;});
sap.ui.predefine('sap/m/ComboBoxBaseRenderer',['./ComboBoxTextFieldRenderer','sap/ui/core/Renderer','sap/ui/core/Core'],function(C,R,a){"use strict";var b=R.extend(C);b.CSS_CLASS_COMBOBOXBASE="sapMComboBoxBase";b.getAccessibilityState=function(c){var A=C.getAccessibilityState.call(this,c),l=c._getList();if(l){A.controls=l.getId();}return A;};b.writeAccAttributes=function(r,c){C.writeAccAttributes.apply(this,arguments);if(a.getConfiguration().getAccessibility()){r.writeAttribute("aria-expanded",c.isOpen());}};b.addOuterClasses=function(r,c){C.addOuterClasses.apply(this,arguments);var d=b.CSS_CLASS_COMBOBOXBASE;r.addClass(d);if(!c.getEnabled()){r.addClass(d+"Disabled");}if(!c.getEditable()){r.addClass(d+"Readonly");}};b.addButtonClasses=function(r,c){C.addButtonClasses.apply(this,arguments);r.addClass(b.CSS_CLASS_COMBOBOXBASE+"Arrow");};return b;},true);
sap.ui.predefine('sap/m/ComboBoxRenderer',['./ComboBoxBaseRenderer','sap/ui/core/Renderer'],function(C,R){"use strict";var a=R.extend(C);a.CSS_CLASS_COMBOBOX="sapMComboBox";a.addOuterClasses=function(r,c){C.addOuterClasses.apply(this,arguments);r.addClass(a.CSS_CLASS_COMBOBOX);};a.addInnerClasses=function(r,c){C.addInnerClasses.apply(this,arguments);r.addClass(a.CSS_CLASS_COMBOBOX+"Inner");};a.addButtonClasses=function(r,c){C.addButtonClasses.apply(this,arguments);r.addClass(a.CSS_CLASS_COMBOBOX+"Arrow");};a.addPlaceholderClasses=function(r,c){C.addPlaceholderClasses.apply(this,arguments);r.addClass(a.CSS_CLASS_COMBOBOX+"Placeholder");};return a;},true);
sap.ui.predefine('sap/m/ComboBoxTextField',['./InputBase','./library','sap/ui/core/InvisibleText','sap/ui/core/library','sap/ui/Device','sap/ui/core/LabelEnablement',"./ComboBoxTextFieldRenderer"],function(I,l,a,c,D,L,C){"use strict";var b=I.extend("sap.m.ComboBoxTextField",{metadata:{library:"sap.m",properties:{maxWidth:{type:"sap.ui.core.CSSSize",group:"Dimension",defaultValue:"100%"},showButton:{type:"boolean",group:"Appearance",defaultValue:true}},aggregations:{_buttonLabelText:{type:"sap.ui.core.InvisibleText",multiple:false,visibility:"hidden"}}}});var r=sap.ui.getCore().getLibraryResourceBundle("sap.m");b.prototype.init=function(){I.prototype.init.apply(this,arguments);var r=sap.ui.getCore().getLibraryResourceBundle("sap.m");var i=this.addEndIcon({id:this.getId()+"-arrow",src:"sap-icon://slim-arrow-down",noTabStop:true,alt:r.getText("COMBOBOX_BUTTON"),decorative:false});i.addAriaLabelledBy("");};b.prototype.getIcon=function(){return this.getAggregation("_endIcon")[0];};b.prototype.onBeforeRendering=function(){I.prototype.onBeforeRendering.apply(this,arguments);var R=L.getReferencingLabels(this)||[];R.forEach(function(s){if(this.getIcon().getAriaLabelledBy().indexOf(s)===-1){this.getIcon().addAssociation("ariaLabelledBy",s,true);}},this);if(!this.oInvisibleText&&D.browser.msie){this.oInvisibleText=new a(this.getId()+'-describedby',{text:r.getText("ACC_CTR_TYPE_COMBO")}).toStatic();}};b.prototype.setShowButton=function(s){this.getIcon().setVisible(s);return this.setProperty("showButton",s,true);};b.prototype.getOpenArea=function(){var d=this.getIcon().getDomRef();return d?d.parentNode:d;};b.prototype.onsapenter=function(e){I.prototype.onsapenter.apply(this,arguments);if(!this.getEnabled()||!this.getEditable()){return;}e.setMarked();var v=this.getValue(),V=v.length;this.setValue(v);this.selectText(V,V);};b.prototype.getValue=function(){var d=this.getFocusDomRef();if(d){return d.value;}return this.getProperty("value");};b.prototype.getDomRefForValueStateMessage=function(){return this.getDomRef();};b.prototype.getAccessibilityInfo=function(){var i=I.prototype.getAccessibilityInfo.apply(this,arguments);i.type=sap.ui.getCore().getLibraryResourceBundle("sap.m").getText("ACC_CTR_TYPE_COMBO");return i;};b.prototype.exit=function(){I.prototype.exit.apply(this,arguments);if(this.oInvisibleText){this.oInvisibleText.destroy();this.oInvisibleText=null;}};return b;});
sap.ui.predefine('sap/m/ComboBoxTextFieldRenderer',['./InputBaseRenderer','sap/ui/core/Renderer','sap/ui/core/LabelEnablement','sap/ui/Device'],function(I,R,L,D){"use strict";var C=R.extend(I);C.CSS_CLASS_COMBOBOXTEXTFIELD="sapMComboBoxTextField";C.writeInnerAttributes=function(r,c){r.writeAttribute("autocomplete","off");r.writeAttribute("autocorrect","off");r.writeAttribute("autocapitalize","off");r.writeAttribute("type","text");};C.writeAccAttributes=function(r,c){if(sap.ui.getCore().getConfiguration().getAccessibility()){r.writeAttribute("aria-haspopup","listbox");r.writeAttribute("aria-autocomplete","inline");r.writeAttribute("role","combobox");}};C.getAriaRole=function(){};C.getAriaDescribedBy=function(c){var a=I.getAriaDescribedBy.apply(this,arguments);if(D.browser.msie){return(a||"")+" "+c.oInvisibleText.getId();}return a;};C.addOuterStyles=function(r,c){r.addStyle("max-width",c.getMaxWidth());};return C;},true);
sap.ui.predefine('sap/m/CustomListItem',['./ListItemBase','./library','./CustomListItemRenderer'],function(L,l,C){"use strict";var a=L.extend("sap.m.CustomListItem",{metadata:{library:"sap.m",defaultAggregation:"content",aggregations:{content:{type:"sap.ui.core.Control",multiple:true,singularName:"content",bindable:"bindable"}},designtime:"sap/m/designtime/CustomListItem.designtime"}});a.prototype.getContentAnnouncement=function(){return this.getContent().map(function(c){return L.getAccessibilityText(c);}).join(" ").trim();};return a;});
sap.ui.predefine('sap/m/CustomListItemRenderer',["./ListItemBaseRenderer","sap/ui/core/Renderer"],function(L,R){"use strict";var C=R.extend(L);C.apiVersion=2;C.renderLIAttributes=function(r,l){r.class("sapMCLI");};C.renderLIContent=function(r,l){l.getContent().forEach(r.renderControl,r);};return C;},true);
sap.ui.predefine('sap/m/Dialog',['./Bar','./InstanceManager','./AssociativeOverflowToolbar','./ToolbarSpacer','./Title','./library','sap/ui/core/Control','sap/ui/core/IconPool','sap/ui/core/Popup','sap/ui/core/delegate/ScrollEnablement','sap/ui/core/RenderManager','sap/ui/core/InvisibleText','sap/ui/core/ResizeHandler',"sap/ui/core/theming/Parameters",'sap/ui/Device','sap/ui/base/ManagedObject','sap/ui/core/library','./TitlePropagationSupport','./DialogRenderer',"sap/base/Log","sap/ui/thirdparty/jquery","sap/ui/core/Core","sap/ui/core/Configuration","sap/ui/dom/jquery/control","sap/ui/dom/jquery/Focusable"],function(B,I,A,T,a,l,C,b,P,S,R,c,d,f,D,M,g,h,j,L,q,k,m){"use strict";var O=g.OpenState;var n=l.DialogType;var o=l.DialogRoleType;var V=g.ValueState;var s=k.getConfiguration().getAnimationMode();var u=s!==m.AnimationMode.none&&s!==m.AnimationMode.minimal;var p=u?300:10;var r=17;var H=5;var t=f.get({name:"_sap_m_Dialog_VerticalMargin",callback:function(e){t=parseFloat(e);}});if(t){t=parseFloat(t);}else{t=3;}var v=C.extend("sap.m.Dialog",{metadata:{interfaces:["sap.ui.core.PopupInterface"],library:"sap.m",properties:{icon:{type:"sap.ui.core.URI",group:"Appearance",defaultValue:null},title:{type:"string",group:"Appearance",defaultValue:null},showHeader:{type:"boolean",group:"Appearance",defaultValue:true},type:{type:"sap.m.DialogType",group:"Appearance",defaultValue:n.Standard},state:{type:"sap.ui.core.ValueState",group:"Appearance",defaultValue:V.None},stretchOnPhone:{type:"boolean",group:"Appearance",defaultValue:false,deprecated:true},stretch:{type:"boolean",group:"Appearance",defaultValue:false},contentWidth:{type:"sap.ui.core.CSSSize",group:"Dimension",defaultValue:null},contentHeight:{type:"sap.ui.core.CSSSize",group:"Dimension",defaultValue:null},horizontalScrolling:{type:"boolean",group:"Behavior",defaultValue:true},verticalScrolling:{type:"boolean",group:"Behavior",defaultValue:true},resizable:{type:"boolean",group:"Behavior",defaultValue:false},draggable:{type:"boolean",group:"Behavior",defaultValue:false},escapeHandler:{type:"any",group:"Behavior",defaultValue:null},role:{type:"sap.m.DialogRoleType",group:"Data",defaultValue:o.Dialog,visibility:"hidden"}},defaultAggregation:"content",aggregations:{content:{type:"sap.ui.core.Control",multiple:true,singularName:"content"},subHeader:{type:"sap.m.IBar",multiple:false},customHeader:{type:"sap.m.IBar",multiple:false},beginButton:{type:"sap.m.Button",multiple:false},endButton:{type:"sap.m.Button",multiple:false},buttons:{type:"sap.m.Button",multiple:true,singularName:"button"},_header:{type:"sap.ui.core.Control",multiple:false,visibility:"hidden"},_title:{type:"sap.ui.core.Control",multiple:false,visibility:"hidden"},_icon:{type:"sap.ui.core.Control",multiple:false,visibility:"hidden"},_toolbar:{type:"sap.m.OverflowToolbar",multiple:false,visibility:"hidden"},_valueState:{type:"sap.ui.core.InvisibleText",multiple:false,visibility:"hidden"}},associations:{leftButton:{type:"sap.m.Button",multiple:false,deprecated:true},rightButton:{type:"sap.m.Button",multiple:false,deprecated:true},initialFocus:{type:"sap.ui.core.Control",multiple:false},ariaDescribedBy:{type:"sap.ui.core.Control",multiple:true,singularName:"ariaDescribedBy"},ariaLabelledBy:{type:"sap.ui.core.Control",multiple:true,singularName:"ariaLabelledBy"}},events:{beforeOpen:{},afterOpen:{},beforeClose:{parameters:{origin:{type:"sap.m.Button"}}},afterClose:{parameters:{origin:{type:"sap.m.Button"}}}},designtime:"sap/m/designtime/Dialog.designtime"}});h.call(v.prototype,"content",function(){return this._headerTitle?this._headerTitle.getId():false;});v._bPaddingByDefault=(sap.ui.getCore().getConfiguration().getCompatibilityVersion("sapMDialogWithPadding").compareTo("1.16")<0);v._mIcons={};v._mIcons[V.Success]=b.getIconURI("message-success");v._mIcons[V.Warning]=b.getIconURI("message-warning");v._mIcons[V.Error]=b.getIconURI("message-error");v._mIcons[V.Information]=b.getIconURI("hint");v.prototype.init=function(){var e=this;this._externalIcon=undefined;this._oManuallySetSize=null;this._oManuallySetPosition=null;this._bRTL=sap.ui.getCore().getConfiguration().getRTL();this._scrollContentList=["sap.m.NavContainer","sap.m.Page","sap.m.ScrollContainer","sap.m.SplitContainer","sap.m.MultiInput","sap.m.SimpleFixFlex"];this.oPopup=new P();this.oPopup.setShadow(true);this.oPopup.setNavigationMode("SCOPE");if(D.os.ios&&D.system.phone&&!this._bMessageType){this.oPopup.setModal(true,"sapMDialogTransparentBlk");}else{this.oPopup.setModal(true,"sapMDialogBlockLayerInit");}this.oPopup.setAnimations(q.proxy(this._openAnimation,this),q.proxy(this._closeAnimation,this));this.oPopup._applyPosition=function(i,F){e._setDimensions();e._adjustScrollingPane();if(e._oManuallySetPosition){i.at={left:e._oManuallySetPosition.x,top:e._oManuallySetPosition.y};}else{i.at=e._calcPosition();}e._deregisterContentResizeHandler();P.prototype._applyPosition.call(this,i);e._registerContentResizeHandler();};if(v._bPaddingByDefault){this.addStyleClass("sapUiPopupWithPadding");}this._initTitlePropagationSupport();};v.prototype.onBeforeRendering=function(){if(this._hasSingleScrollableContent()){this.setProperty("verticalScrolling",false);this.setProperty("horizontalScrolling",false);L.info("VerticalScrolling and horizontalScrolling in sap.m.Dialog with ID "+this.getId()+" has been disabled because there's scrollable content inside");}else if(!this._oScroller){this._oScroller=new S(this,this.getId()+"-scroll",{horizontal:this.getHorizontalScrolling(),vertical:this.getVerticalScrolling()});}this._createToolbarButtons();if(sap.ui.getCore().getConfiguration().getAccessibility()&&this.getState()!=V.None){var e=new c({text:this.getValueStateString(this.getState())});this.setAggregation("_valueState",e);this.addAriaLabelledBy(e.getId());}};v.prototype.onAfterRendering=function(){this._$scrollPane=this.$("scroll");this._$content=this.$("cont");this._$dialog=this.$();if(this.isOpen()){this._setInitialFocus();}};v.prototype.exit=function(){I.removeDialogInstance(this);this._deregisterContentResizeHandler();this._deregisterResizeHandler();if(this.oPopup){this.oPopup.detachOpened(this._handleOpened,this);this.oPopup.detachClosed(this._handleClosed,this);this.oPopup.destroy();this.oPopup=null;}if(this._oScroller){this._oScroller.destroy();this._oScroller=null;}if(this._header){this._header.destroy();this._header=null;}if(this._headerTitle){this._headerTitle.destroy();this._headerTitle=null;}if(this._iconImage){this._iconImage.destroy();this._iconImage=null;}if(this._toolbarSpacer){this._toolbarSpacer.destroy();this._toolbarSpacer=null;}};v.prototype.open=function(){var e=this.oPopup;e.setInitialFocusId(this.getId());var i=e.getOpenState();switch(i){case O.OPEN:case O.OPENING:return this;case O.CLOSING:this._bOpenAfterClose=true;break;default:}this._oCloseTrigger=null;this.fireBeforeOpen();e.attachOpened(this._handleOpened,this);this._iLastWidthAndHeightWithScroll=null;e.setContent(this);e.open();this._registerResizeHandler();I.addDialogInstance(this);return this;};v.prototype.close=function(){this._bOpenAfterClose=false;this.$().removeClass('sapDialogDisableTransition');this._deregisterResizeHandler();var e=this.oPopup;var i=this.oPopup.getOpenState();if(!(i===O.CLOSED||i===O.CLOSING)){l.closeKeyboard();this.fireBeforeClose({origin:this._oCloseTrigger});e.attachClosed(this._handleClosed,this);this._bDisableRepositioning=false;this._oManuallySetPosition=null;this._oManuallySetSize=null;e.close();this._deregisterContentResizeHandler();}return this;};v.prototype.isOpen=function(){return this.oPopup&&this.oPopup.isOpen();};v.prototype._handleOpened=function(){this.oPopup.detachOpened(this._handleOpened,this);this._setInitialFocus();this.fireAfterOpen();};v.prototype._handleClosed=function(){if(!this.oPopup){return;}this.oPopup.detachClosed(this._handleClosed,this);if(this.getDomRef()){R.preserveContent(this.getDomRef());this.$().remove();}I.removeDialogInstance(this);this.fireAfterClose({origin:this._oCloseTrigger});if(this._bOpenAfterClose){this._bOpenAfterClose=false;this.open();}};v.prototype.onfocusin=function(e){var i=e.target;if(i.id===this.getId()+"-firstfe"){var x=this.$("footer").lastFocusableDomRef()||this.$("cont").lastFocusableDomRef()||(this.getSubHeader()&&this.getSubHeader().$().firstFocusableDomRef())||(this._getAnyHeader()&&this._getAnyHeader().$().lastFocusableDomRef());if(x){x.focus();}}else if(i.id===this.getId()+"-lastfe"){var F=(this._getAnyHeader()&&this._getAnyHeader().$().firstFocusableDomRef())||(this.getSubHeader()&&this.getSubHeader().$().firstFocusableDomRef())||this.$("cont").firstFocusableDomRef()||this.$("footer").firstFocusableDomRef();if(F){F.focus();}}};v.prototype._getPromiseWrapper=function(){var e=this;return{reject:function(){e.currentPromise.reject();},resolve:function(){e.currentPromise.resolve();}};};v.prototype.onsapescape=function(e){var E=this.getEscapeHandler(),i={},x=this;if(e.originalEvent&&e.originalEvent._sapui_handledByControl){return;}this._oCloseTrigger=null;if(typeof E==='function'){new window.Promise(function(y,z){i.resolve=y;i.reject=z;x.currentPromise=i;E(x._getPromiseWrapper());}).then(function(y){x.close();}).catch(function(){L.info("Disallow dialog closing");});}else{this.close();}e.stopPropagation();};v.prototype._openAnimation=function($,i,e){$.addClass("sapMDialogOpen");setTimeout(e,p);};v.prototype._closeAnimation=function($,i,e){$.removeClass("sapMDialogOpen");setTimeout(e,p);};v.prototype._setDimensions=function(){var $=this.$(),e=this.getStretch(),i=this.getStretchOnPhone()&&D.system.phone,x=this._bMessageType,y={};if(!e){if(!this._oManuallySetSize){y.width=this.getContentWidth()||undefined;y.height=this.getContentHeight()||undefined;}else{y.width=this._oManuallySetSize.width;y.height=this._oManuallySetSize.height;}}if(y.width=='auto'){y.width=undefined;}if(y.height=='auto'){y.height=undefined;}if((e&&!x)||(i)){this.$().addClass('sapMDialogStretched');}$.css(y);$.css(this._calcMaxSizes());if(D.browser.msie){this.$("cont").css("maxHeight",this._calcMaxSizes().maxHeight);}if(!this._oManuallySetSize&&!this._bDisableRepositioning){$.css(this._calcPosition());}if(window.navigator.userAgent.toLowerCase().indexOf("chrome")!==-1&&this.getStretch()){$.find('> footer').css({bottom:'0.001px'});}};v.prototype._adjustScrollingPane=function(){if(this._oScroller){this._oScroller.refresh();}};v.prototype._reposition=function(){};v.prototype._repositionAfterOpen=function(){};v.prototype._reapplyPosition=function(){this._adjustScrollingPane();};v.prototype._onResize=function(){var $=this.$(),e=this.$('cont'),i=this.getContentWidth(),x=this._calcMaxSizes().maxWidth,y=D.browser;if(this._oManuallySetSize){e.css({width:'auto'});return;}if(D.system.desktop&&!y.chrome){var z=e.width()+"x"+e.height(),E=$.css("min-width")!==$.css("width");if(z!==this._iLastWidthAndHeightWithScroll&&E){if(this._hasVerticalScrollbar()&&(!i||i=='auto')&&!this.getStretch()&&e.width()<x){$.addClass("sapMDialogVerticalScrollIncluded");e.css({"padding-right":r});this._iLastWidthAndHeightWithScroll=z;}else{$.removeClass("sapMDialogVerticalScrollIncluded");e.css({"padding-right":""});this._iLastWidthAndHeightWithScroll=null;}}else if(!this._hasVerticalScrollbar()||!E){$.removeClass("sapMDialogVerticalScrollIncluded");e.css({"padding-right":""});this._iLastWidthAndHeightWithScroll=null;}}if(!this._oManuallySetSize&&!this._bDisableRepositioning){this._positionDialog();}};v.prototype._hasVerticalScrollbar=function(){var $=this.$('cont');if(D.browser.msie){return $[0].clientWidth<$.outerWidth();}return $[0].clientHeight<$[0].scrollHeight;};v.prototype._positionDialog=function(){var $=this.$();$.css(this._calcMaxSizes());$.css(this._calcPosition());};v.prototype._calcPosition=function(){var e=this._getAreaDimensions(),$=this.$(),i,x,y;if(D.system.phone&&this.getStretch()){i=0;x=0;}else if(this.getStretch()){i=this._percentOfSize(e.width,H);x=this._percentOfSize(e.height,t);}else{i=(e.width-$.outerWidth())/2;x=(e.height-$.outerHeight())/2;}y={top:Math.round(e.top+x)};y[this._bRTL?"right":"left"]=Math.round(e.left+i);return y;};v.prototype._calcMaxSizes=function(){var e=this._getAreaDimensions(),$=this.$(),i=$.find(".sapMDialogTitleGroup").height()||0,x=$.find(".sapMDialogSubHeader").height()||0,F=$.find("footer").height()||0,y=i+x+F,z,E;if(D.system.phone&&this.getStretch()){E=e.width;z=e.height-y;}else{E=this._percentOfSize(e.width,100-2*H);z=this._percentOfSize(e.height,100-2*t)-y;}return{maxWidth:Math.floor(E),maxHeight:Math.floor(z)};};v.prototype._getAreaDimensions=function(){var W=P.getWithinAreaDomRef(),e;if(W===window){e={left:0,top:0,width:W.innerWidth,height:W.innerHeight};}else{var i=W.getBoundingClientRect(),$=q(W);e={left:i.left+parseFloat($.css("border-left-width")),top:i.top+parseFloat($.css("border-top-width")),width:W.clientWidth,height:W.clientHeight};}e.right=e.left+e.width;e.bottom=e.top+e.height;return e;};v.prototype._percentOfSize=function(i,e){return Math.round(i*e/100);};v.prototype._createHeader=function(){if(!this._header){this._header=new B(this.getId()+"-header");this._header._setRootAccessibilityRole("heading");this._header._setRootAriaLevel("2");this.setAggregation("_header",this._header,false);}};v.prototype._hasSingleScrollableContent=function(){var e=this.getContent();while(e.length===1&&e[0]instanceof C&&e[0].isA("sap.ui.core.mvc.View")){e=e[0].getContent();}if(e.length===1&&e[0]instanceof C&&e[0].isA(this._scrollContentList)){return true;}return false;};v.prototype._initBlockLayerAnimation=function(){this.oPopup._hideBlockLayer=function(){var $=q("#sap-ui-blocklayer-popup");$.removeClass("sapMDialogTransparentBlk");P.prototype._hideBlockLayer.call(this);};};v.prototype._clearBlockLayerAnimation=function(){if(D.os.ios&&D.system.phone&&!this._bMessageType){delete this.oPopup._showBlockLayer;this.oPopup._hideBlockLayer=function(){var $=q("#sap-ui-blocklayer-popup");$.removeClass("sapMDialogTransparentBlk");P.prototype._hideBlockLayer.call(this);};}};v.prototype._getFocusId=function(){return this.getInitialFocus()||this._getFirstFocusableContentSubHeader()||this._getFirstFocusableContentElementId()||this._getFirstVisibleButtonId()||this.getId();};v.prototype._getFirstVisibleButtonId=function(){var e=this.getBeginButton(),E=this.getEndButton(),x=this.getButtons(),y="";if(e&&e.getVisible()){y=e.getId();}else if(E&&E.getVisible()){y=E.getId();}else if(x&&x.length>0){for(var i=0;i<x.length;i++){if(x[i].getVisible()){y=x[i].getId();break;}}}return y;};v.prototype._getFirstFocusableContentSubHeader=function(){var $=this.$().find('.sapMDialogSubHeader');var e;var F=$.firstFocusableDomRef();if(F){e=F.id;}return e;};v.prototype._getFirstFocusableContentElementId=function(){var e="";var $=this.$("cont");var F=$.firstFocusableDomRef();if(F){e=F.id;}return e;};v.prototype._setInitialFocus=function(){var F=this._getFocusId();var e=sap.ui.getCore().byId(F);var i;if(e){if(e.getVisible&&!e.getVisible()){this.focus();return;}i=e.getFocusDomRef();}i=i||((F?window.document.getElementById(F):null));if(!i){this.setInitialFocus("");i=sap.ui.getCore().byId(this._getFocusId());}if(!this.getInitialFocus()){this.setAssociation('initialFocus',i?i.id:this.getId(),true);}if(D.system.desktop||(i&&!/input|textarea|select/i.test(i.tagName))){if(i){i.focus();}}else{this.focus();}};v.prototype.getScrollDelegate=function(){return this._oScroller;};v.prototype._composeAggreNameInHeader=function(e){var i;if(e==="Begin"){i="contentLeft";}else if(e==="End"){i="contentRight";}else{i="content"+e;}return i;};v.prototype._isToolbarEmpty=function(){var e=this._oToolbar.getContent().filter(function(i){return i.getMetadata().getName()!=='sap.m.ToolbarSpacer';});return e.length===0;};v.prototype._setButton=function(e,i,x){return this;};v.prototype._getButton=function(e){var i=e.toLowerCase()+"Button",x="_o"+this._firstLetterUpperCase(e)+"Button";if(D.system.phone){return this.getAggregation(i,null,true);}else{return this[x];}};v.prototype._getButtonFromHeader=function(e){if(this._header){var i=this._composeAggreNameInHeader(this._firstLetterUpperCase(e)),x=this._header.getAggregation(i);return x&&x[0];}else{return null;}};v.prototype._firstLetterUpperCase=function(e){return e.charAt(0).toUpperCase()+e.slice(1);};v.prototype._getAnyHeader=function(){var e=this.getCustomHeader();if(e){e._setRootAriaLevel("2");return e._setRootAccessibilityRole("heading");}else{var i=this.getShowHeader();if(!i){return null;}this._createHeader();return this._header;}};v.prototype._deregisterResizeHandler=function(){var W=P.getWithinAreaDomRef();if(this._resizeListenerId){d.deregister(this._resizeListenerId);this._resizeListenerId=null;}if(W===window){D.resize.detachHandler(this._onResize,this);}else{d.deregister(this._withinResizeListenerId);this._withinResizeListenerId=null;}};v.prototype._registerResizeHandler=function(){var _=this.$("scroll"),W=P.getWithinAreaDomRef();this._resizeListenerId=d.register(_.get(0),q.proxy(this._onResize,this));if(W===window){D.resize.attachHandler(this._onResize,this);}else{this._withinResizeListenerId=d.register(W,this._onResize.bind(this));}};v.prototype._deregisterContentResizeHandler=function(){if(this._sContentResizeListenerId){d.deregister(this._sContentResizeListenerId);this._sContentResizeListenerId=null;}};v.prototype._registerContentResizeHandler=function(){if(!this._sContentResizeListenerId){this._sContentResizeListenerId=d.register(this.getDomRef("scrollCont"),q.proxy(this._onResize,this));}this._onResize();};v.prototype._attachHandler=function(e){var i=this;if(!this._oButtonDelegate){this._oButtonDelegate={ontap:function(){i._oCloseTrigger=this;},onkeyup:function(){i._oCloseTrigger=this;},onkeydown:function(){i._oCloseTrigger=this;}};}if(e){e.addDelegate(this._oButtonDelegate,true,e);}};v.prototype._createToolbarButtons=function(){var e=this._getToolbar();var i=this.getButtons();var x=this.getBeginButton();var y=this.getEndButton(),z=this,E=[x,y];E.forEach(function(F){if(F&&z._oButtonDelegate){F.removeDelegate(z._oButtonDelegate);}});e.removeAllContent();if(!("_toolbarSpacer"in this)){this._toolbarSpacer=new T();}e.addContent(this._toolbarSpacer);E.forEach(function(F){z._attachHandler(F);});if(i&&i.length){i.forEach(function(F){e.addContent(F);});}else{if(x){e.addContent(x);}if(y){e.addContent(y);}}};v.prototype._getToolbar=function(){if(!this._oToolbar){this._oToolbar=new A(this.getId()+"-footer").addStyleClass("sapMTBNoBorders");this._oToolbar.addDelegate({onAfterRendering:function(){if(this.getType()===n.Message){this.$("footer").removeClass("sapContrast sapContrastPlus");}}},false,this);this.setAggregation("_toolbar",this._oToolbar);}return this._oToolbar;};v.prototype.getValueStateString=function(e){var i=sap.ui.getCore().getLibraryResourceBundle("sap.m");switch(e){case(V.Success):return i.getText("LIST_ITEM_STATE_SUCCESS");case(V.Warning):return i.getText("LIST_ITEM_STATE_WARNING");case(V.Error):return i.getText("LIST_ITEM_STATE_ERROR");case(V.Information):return i.getText("LIST_ITEM_STATE_INFORMATION");default:return"";}};v.prototype.setSubHeader=function(e){this.setAggregation("subHeader",e);if(e){e.setVisible=function(i){this.$().toggleClass('sapMDialogWithSubHeader',i);e.setProperty("visible",i);}.bind(this);}return this;};v.prototype.setLeftButton=function(e){if(typeof e==="string"){e=sap.ui.getCore().byId(e);}this.setBeginButton(e);return this.setAssociation("leftButton",e);};v.prototype.setRightButton=function(e){if(typeof e==="string"){e=sap.ui.getCore().byId(e);}this.setEndButton(e);return this.setAssociation("rightButton",e);};v.prototype.getLeftButton=function(){var e=this.getBeginButton();return e?e.getId():null;};v.prototype.getRightButton=function(){var e=this.getEndButton();return e?e.getId():null;};v.prototype.setBeginButton=function(e){if(e&&e.isA("sap.m.Button")){e.addStyleClass("sapMDialogBeginButton");}return this.setAggregation("beginButton",e);};v.prototype.setEndButton=function(e){if(e&&e.isA("sap.m.Button")){e.addStyleClass("sapMDialogEndButton");}return this.setAggregation("endButton",e);};v.prototype.getAggregation=function(e,i,x){var y=C.prototype.getAggregation.apply(this,Array.prototype.slice.call(arguments,0,2));if(e==='buttons'&&y.length===0){this.getBeginButton()&&y.push(this.getBeginButton());this.getEndButton()&&y.push(this.getEndButton());}return y;};v.prototype.getAriaLabelledBy=function(){var e=this._getAnyHeader(),i=this.getAssociation("ariaLabelledBy",[]).slice();var x=this.getSubHeader();if(x){i.unshift(x.getId());}if(e){var y=e.findAggregatedObjects(true,function(z){return z.isA("sap.m.Title");});if(y.length){i=y.map(function(z){return z.getId();}).concat(i);}else{i.unshift(e.getId());}}return i;};v.prototype.setTitle=function(e){this.setProperty("title",e,true);if(this._headerTitle){this._headerTitle.setText(e);}else{this._headerTitle=new a(this.getId()+"-title",{text:e,level:"H2"}).addStyleClass("sapMDialogTitle");this._createHeader();this._header.addContentMiddle(this._headerTitle);}return this;};v.prototype.setState=function(e){var F={},$=this.$(),N;F[e]=true;this.setProperty("state",e,true);for(N in j._mStateClasses){$.toggleClass(j._mStateClasses[N],!!F[N]);}this.setIcon(v._mIcons[e],true);return this;};v.prototype.setIcon=function(i,e){if(!e){this._externalIcon=i;}else{if(this._externalIcon){i=this._externalIcon;}}if(i){if(i!==this.getIcon()){if(this._iconImage){this._iconImage.setSrc(i);}else{this._iconImage=b.createControlByURI({id:this.getId()+"-icon",src:i,useIconTooltip:false},sap.m.Image).addStyleClass("sapMDialogIcon");this._createHeader();this._header.insertAggregation("contentMiddle",this._iconImage,0);}}}else{var x=this.getState();if(!e&&x!==V.None){if(this._iconImage){this._iconImage.setSrc(v._mIcons[x]);}}else{if(this._iconImage){this._iconImage.destroy();this._iconImage=null;}}}this.setProperty("icon",i,true);return this;};v.prototype.setType=function(e){var i=this.getType();if(i===e){return this;}this._bMessageType=(e===n.Message);return this.setProperty("type",e,false);};v.prototype.setStretch=function(e){this._bStretchSet=true;return this.setProperty("stretch",e);};v.prototype.setStretchOnPhone=function(e){if(this._bStretchSet){L.warning("sap.m.Dialog: stretchOnPhone property is deprecated. Setting stretchOnPhone property is ignored when there's already stretch property set.");return this;}this.setProperty("stretchOnPhone",e);return this.setProperty("stretch",e&&D.system.phone);};v.prototype.setVerticalScrolling=function(e){var i=this.getVerticalScrolling(),x=this._hasSingleScrollableContent();if(x){L.warning("sap.m.Dialog: property verticalScrolling automatically reset to false. See documentation.");e=false;}if(i===e){return this;}this.$().toggleClass("sapMDialogVerScrollDisabled",!e);this.setProperty("verticalScrolling",e);if(this._oScroller){this._oScroller.setVertical(e);}return this;};v.prototype.setHorizontalScrolling=function(e){var i=this.getHorizontalScrolling(),x=this._hasSingleScrollableContent();if(x){L.warning("sap.m.Dialog: property horizontalScrolling automatically reset to false. See documentation.");e=false;}if(i===e){return this;}this.$().toggleClass("sapMDialogHorScrollDisabled",!e);this.setProperty("horizontalScrolling",e);if(this._oScroller){this._oScroller.setHorizontal(e);}return this;};v.prototype.setInitialFocus=function(i){return this.setAssociation("initialFocus",i,true);};v.prototype.invalidate=function(e){if(this.isOpen()){C.prototype.invalidate.call(this,e);}};function w(e){var $=q(e);var i=$.control(0);if($.parents('.sapMDialogSection').length){return false;}if(!i||i.getMetadata().getInterfaces().indexOf("sap.m.IBar")>-1){return true;}return $.hasClass('sapMDialogTitleGroup');}if(D.system.desktop){v.prototype.ondblclick=function(e){if(w(e.target)){var $=this.$('cont');this._bDisableRepositioning=false;this._oManuallySetPosition=null;this._oManuallySetSize=null;this.oPopup&&this.oPopup._applyPosition(this.oPopup._oLastPosition,true);$.css({height:'100%'});}};v.prototype.onmousedown=function(e){if(e.which===3){return;}if(this.getStretch()||(!this.getDraggable()&&!this.getResizable())){return;}var i;var x=this;var $=q(document);var y=q(e.target);var z=y.hasClass('sapMDialogResizeHandler')&&this.getResizable();var E=function(X){i=i?clearTimeout(i):setTimeout(function(){X();},0);};var F=this._getAreaDimensions();var G={x:e.pageX,y:e.pageY,width:x._$dialog.width(),height:x._$dialog.height(),outerHeight:x._$dialog.outerHeight(),offset:{x:e.offsetX?e.offsetX:e.originalEvent.layerX,y:e.offsetY?e.offsetY:e.originalEvent.layerY},position:{x:x._$dialog.offset().left,y:x._$dialog.offset().top}};function J(){var X=x.$(),Y=x.$('cont'),Z,_;$.off("mouseup mousemove");if(z){x._$dialog.removeClass('sapMDialogResizing');Z=parseInt(X.height());_=parseInt(X.css("border-top-width"))+parseInt(X.css("border-bottom-width"));Y.height(Z+_);}}if((w(e.target)&&this.getDraggable())||z){x._bDisableRepositioning=true;x._$dialog.addClass('sapDialogDisableTransition');x._oManuallySetPosition={x:G.position.x,y:G.position.y};x._$dialog.css({left:Math.min(Math.max(F.left,x._oManuallySetPosition.x),F.right-G.width),top:Math.min(Math.max(F.top,x._oManuallySetPosition.y),F.bottom-G.height),width:G.width});}if(w(e.target)&&this.getDraggable()){$.on("mousemove",function(X){if(X.buttons===0){J();return;}E(function(){x._bDisableRepositioning=true;x._oManuallySetPosition={x:Math.max(F.left,Math.min(X.pageX-e.pageX+G.position.x,F.right-G.width)),y:Math.max(F.top,Math.min(X.pageY-e.pageY+G.position.y,F.bottom-G.outerHeight))};x._$dialog.css({top:x._oManuallySetPosition.y,left:x._oManuallySetPosition.x,right:x._bRTL?"":undefined});});});}else if(z){x._$dialog.addClass('sapMDialogResizing');var K={};var N=parseInt(x._$dialog.css('min-width'));var Q=G.x+G.width-N;var U=y.width()-e.offsetX;var W=y.height()-e.offsetY;$.on("mousemove",function(X){E(function(){x._bDisableRepositioning=true;x.$('cont').height('').width('');if(X.pageY+W>F.bottom){X.pageY=F.bottom-W;}if(X.pageX+U>F.right){X.pageX=F.right-U;}x._oManuallySetSize={width:G.width+X.pageX-G.x,height:G.height+X.pageY-G.y};if(x._bRTL){K.left=Math.min(Math.max(X.pageX,0),Q);x._oManuallySetSize.width=G.width+G.x-Math.max(X.pageX,0);}K.width=x._oManuallySetSize.width;K.height=x._oManuallySetSize.height;x._$dialog.css(K);});});}else{return;}$.on("mouseup",J);e.preventDefault();e.stopPropagation();};}v.prototype._applyContextualSettings=function(){M.prototype._applyContextualSettings.call(this,M._defaultContextualSettings);};return v;});
sap.ui.predefine('sap/m/DialogRenderer',["sap/m/library","sap/ui/Device","sap/ui/core/library"],function(l,D,c){"use strict";var a=l.DialogType;var b=l.DialogRoleType;var V=c.ValueState;var d={};d._mStateClasses={};d._mStateClasses[V.None]="";d._mStateClasses[V.Success]="sapMDialogSuccess";d._mStateClasses[V.Warning]="sapMDialogWarning";d._mStateClasses[V.Error]="sapMDialogError";d._mStateClasses[V.Information]="sapMDialogInformation";d.render=function(r,C){var e=C.getId(),t=C.getType(),h=C._getAnyHeader(),s=C.getSubHeader(),m=(t===a.Message),L=C.getBeginButton(),R=C.getEndButton(),H=C.getHorizontalScrolling(),v=C.getVerticalScrolling(),S=C.getState(),f=C.getStretch(),g=C.getStretchOnPhone()&&D.system.phone,j=C.getResizable(),k=C.getDraggable(),o=C.getAggregation("_valueState");var n=C.getContentWidth()&&C.getContentWidth()!='auto'?' width: '+C.getContentWidth()+';':'';var p=C.getContentHeight()&&C.getContentHeight()!='auto'?' height: '+C.getContentHeight()+';':'';var q="style='"+n+p+"'";r.write('<div '+q);r.writeControlData(C);r.addClass("sapMDialog");r.addClass("sapMDialog-CTX");r.addClass("sapMPopup-CTX");if(C.isOpen()){r.addClass("sapMDialogOpen");}if(window.devicePixelRatio>1){r.addClass("sapMDialogHighPixelDensity");}if(C._bDisableRepositioning){r.addClass("sapMDialogTouched");}if(f||(g)){r.addClass("sapMDialogStretched");}r.addClass(d._mStateClasses[S]);var u=!C._oToolbar&&!L&&!R;var w=C._oToolbar&&C._isToolbarEmpty()&&!L&&!R;var x=C._oToolbar&&!C._oToolbar.getVisible();if(u||w||x){r.addClass("sapMDialog-NoFooter");}if(!h){r.addClass("sapMDialog-NoHeader");}var y=C.getProperty("role");if(S===V.Error||S===V.Warning){y=b.AlertDialog;}r.writeAccessibilityState(C,{role:y,modal:true});if(C._forceDisableScrolling){r.addClass("sapMDialogWithScrollCont");}if(s&&s.getVisible()){r.addClass("sapMDialogWithSubHeader");if(s.getDesign()==l.ToolbarDesign.Info){r.addClass("sapMDialogSubHeaderInfoBar");}}if(m){r.addClass("sapMMessageDialog");}if(!v){r.addClass("sapMDialogVerScrollDisabled");}if(!H){r.addClass("sapMDialogHorScrollDisabled");}if(D.system.phone){r.addClass("sapMDialogPhone");}if(k&&!f){r.addClass("sapMDialogDraggable");}if(l._bSizeCompact){r.addClass("sapUiSizeCompact");}r.writeClasses();var T=C.getTooltip_AsString();if(T){r.writeAttributeEscaped("title",T);}r.writeAttribute("tabindex","-1");r.write(">");if(D.system.desktop){if(j&&!f){r.writeIcon("sap-icon://resize-corner",["sapMDialogResizeHandler"],{"title":""});}r.write('<span id="'+C.getId()+'-firstfe" tabindex="0" class="sapMDialogFirstFE"></span>');}if(h||s){r.write("<header>");if(h){h._applyContextClassFor("header");r.write("<div ");r.addClass("sapMDialogTitleGroup");r.writeClasses();r.write(">");r.renderControl(h);r.write("</div>");}if(s&&s.getVisible()){s._applyContextClassFor("subheader");r.write("<div ");r.addClass("sapMDialogSubHeader");r.writeClasses();r.write(">");r.renderControl(s);r.write("</div>");}r.write("</header>");}if(o){r.renderControl(o);}r.write('<section id="'+e+'-cont" class="sapMDialogSection">');r.write('<div id="'+e+'-scroll" class="sapMDialogScroll">');r.write('<div id="'+e+'-scrollCont" class="sapMDialogScrollCont');if(C.getStretch()||p){r.write(' sapMDialogStretchContent');}r.write('">');var z=C.getContent();for(var i=0;i<z.length;i++){r.renderControl(z[i]);}r.write("</div>");r.write("</div>");r.write("</section>");if(!u&&!w&&!x){r.write("<footer");r.addClass("sapMDialogFooter");r.writeClasses();r.write(">");C._oToolbar._applyContextClassFor("footer");r.renderControl(C._oToolbar);r.write("</footer>");}if(D.system.desktop){r.write('<span id="'+C.getId()+'-lastfe" tabindex="0" class="sapMDialogLastFE"></span>');}r.write("</div>");};return d;},true);
sap.ui.predefine('sap/m/DisplayListItem',["sap/ui/core/library","./library","./ListItemBase","./DisplayListItemRenderer"],function(c,l,L,D){"use strict";var T=c.TextDirection;var a=L.extend("sap.m.DisplayListItem",{metadata:{library:"sap.m",properties:{label:{type:"string",group:"Misc",defaultValue:null},value:{type:"string",group:"Data",defaultValue:null},valueTextDirection:{type:"sap.ui.core.TextDirection",group:"Appearance",defaultValue:T.Inherit}}}});a.prototype.getContentAnnouncement=function(){return this.getLabel()+" "+this.getValue();};return a;});
sap.ui.predefine('sap/m/DisplayListItemRenderer',["sap/ui/core/library","sap/ui/core/Renderer","./ListItemBaseRenderer"],function(c,R,L){"use strict";var T=c.TextDirection;var D=R.extend(L);D.apiVersion=2;D.renderLIAttributes=function(r,l){r.class("sapMDLI");};D.renderLIContent=function(r,l){var s=l.getLabel();if(s){r.openStart("label");r.attr("for",l.getId()+"-value");r.class("sapMDLILabel");r.openEnd();r.text(s);r.close("label");}var v=l.getValue();if(v){r.openStart("div",l.getId()+"-value");r.class("sapMDLIValue");var V=l.getValueTextDirection();if(V!=T.Inherit){r.attr("dir",V.toLowerCase());}r.openEnd();r.text(v);r.close("div");}};return D;},true);
sap.ui.predefine('sap/m/Fiori20Adapter',['sap/ui/base/Object','sap/ui/base/EventProvider','sap/ui/base/ManagedObjectObserver','sap/ui/Device',"sap/base/Log","sap/ui/thirdparty/jquery"],function(O,E,M,D,L,q){"use strict";var e=new E(),i,c;var H=O.extend("HeaderAdapter",{constructor:function(o,A){if(!o||!A){L.error("Cannot initialize: Invalid arguments.");return;}this._oHeader=o;this._oStyledPage=null;this._oTitleInfo=null;this._oSubTitleInfo=null;this._oBackButtonInfo=null;this._oAdaptOptions=A;}});H.prototype.adapt=function(){var s=this._oAdaptOptions.bStylePage,C=this._oAdaptOptions.bCollapseHeader;if(s){this._toggleStyle("sapF2Adapted",true,true);}this._adaptTitle();this._adaptBackButton();if(C){this._collapseHeader();}return this.getAdaptedContent();};H.prototype.getAdaptedContent=function(){return{oTitleInfo:this._oTitleInfo,oSubTitleInfo:this._oSubTitleInfo,oBackButtonInfo:this._oBackButtonInfo,oStyledPage:this._oStyledPage};};H.prototype._adaptTitle=function(){if(!H._isAdaptableHeader(this._oHeader)||this._oAdaptOptions.bMoveTitle!==true){return false;}this._oTitleInfo=this._detectTitle();this._oSubTitleInfo=this._detectSubTitle();var s=!!this._oTitleInfo||!!this._oSubTitleInfo;if(this._oTitleInfo){this._oTitleInfo.oControl.toggleStyleClass("sapF2AdaptedTitle",true);}return s;};H.prototype._adaptBackButton=function(){if(!H._isAdaptableHeader(this._oHeader)||this._oAdaptOptions.bHideBackButton!==true){return false;}var j,B=false;this._oBackButtonInfo=this._detectBackButton();if(this._oBackButtonInfo){j=this._oBackButtonInfo.oControl.getVisible();this._oBackButtonInfo.oControl.toggleStyleClass("sapF2AdaptedNavigation",j);B=true;}return B;};H.prototype._toggleStyle=function(s,A,S){var p=this._oHeader.getParent();if(!p){return;}this._oStyledPage=p;if(A===true){p.addStyleClass(s,S);}else if(A===false){p.removeStyleClass(s,S);}else if(A===undefined){p.hasStyleClass(s)?p.removeStyleClass(s,S):p.addStyleClass(s,S);}};H._isAdaptableHeader=function(o){if(!o||!f(o,"sap/m/Bar")){return false;}var p=o.getParent();return p&&(f(p,"sap/m/Page")||f(p,"sap/m/MessagePage")||f(p,"sap/uxap/ObjectPageHeader"));};H.prototype._detectTitle=function(){var t;if(H._isAdaptableHeader(this._oHeader)){var m=this._oHeader.getContentMiddle();if(m.length===1&&a(m[0])){var T=m[0];t={id:T.getId(),text:T.getText(),oControl:T,sChangeEventId:"_change",sPropertyName:"text"};}}return t;};H.prototype._detectSubTitle=function(p){if(f(p,"sap/uxap/ObjectPageHeader")){var o=p.getHeaderTitle();if(o){return{id:o.getId(),text:o.getObjectTitle(),oControl:o,sChangeEventId:"_titleChange",sPropertyName:"objectTitle"};}}};H.prototype._detectBackButton=function(){var B,o;if(H._isAdaptableHeader(this._oHeader)){B=this._oHeader.getContentLeft();if(B.length>0&&f(B[0],"sap/m/Button")&&(B[0].getType()==="Back"||B[0].getType()==="Up"||B[0].getIcon()==="sap-icon://nav-back")){o=B[0];return{id:o.getId(),oControl:o,sChangeEventId:"_change",sPropertyName:"visible"};}}};H.prototype._collapseHeader=function(){var t=this._oTitleInfo,B=this._oBackButtonInfo,j,m,k,l,n,o,A;if(H._isAdaptableHeader(this._oHeader)){j=this._oHeader.getContentLeft();m=this._oHeader.getContentMiddle();k=this._oHeader.getContentRight();l=(j.length===1)&&(h(j[0])||B);n=(m.length===1)&&(h(m[0])||t);o=(k.length===1)&&h(k[0]);A=(j.length===0||l)&&(m.length===0||n)&&((k.length===0)||o);this._toggleStyle("sapF2CollapsedHeader",A,true);}};var F=O.extend("sap.m.Fiori20Adapter",{});F.attachViewChange=function(l,o){e.attachEvent("adaptedViewChange",l,o);};F.detachViewChange=function(l,o){e.detachEvent("adaptedViewChange",l,o);};F.traverse=function(C,A){i={aViewTitles:{},aViewSubTitles:{},aViewBackButtons:{},aChangeListeners:{}};c=null;this._doBFS([{oNode:C,oAdaptOptions:A}]);if(this._getCurrentlyAdaptedTopViewId()){this._fireViewChange(this._getCurrentlyAdaptedTopViewId(),A);}};F._doBFS=function(Q){var n=Q.shift();if(!n){return;}var N=n.oNode,A=n.oAdaptOptions,s=A.iSearchDepth;A=this._applyRules(A,N);if(!this._isAdaptationRequired(N,A)||(s<=0)){return;}var I=this._isTopNavigableView(N);if(I){this._setAsCurrentlyAdaptedTopViewId(N.getId());}var o=this._processNode(N,A);var C=this._getNodeChildren(N),j=q.extend({},A,{iSearchDepth:this._updateSearchDepth(s,N)});if(o){var t=!!o.oTitleInfo,B=!!o.oBackButton,p=!!o.oStyledPage;j=q.extend(j,{bMoveTitle:A.bMoveTitle&&!t,bHideBackButton:A.bHideBackButton&&!B,bStylePage:A.bStylePage&&!p});}C.forEach(function(k){if(k){Q.push({oNode:k,oAdaptOptions:j});}});this._doBFS(Q);};F._processNode=function(C,A){this._attachDefferedAdaptationListeners(C,A);if(H._isAdaptableHeader(C)){return this._adaptHeader(C,A);}if(C.getParent()&&f(C.getParent(),"sap/m/NavContainer")){return this._getCachedViewInfoToMerge(C.getId());}};F._attachDefferedAdaptationListeners=function(C,A){this._attachAdaptableContentChange(C,A);this._attachNavigablePageChange(C,A);if(f(C,"sap/m/Page")||f(C,"sap/ui/core/mvc/XMLView")){this._attachModifyAggregation(C,"content",A);}if((A.bLateAdaptation===true)&&f(C,"sap/m/Bar")){this._attachModifyAggregation(C,"contentLeft",A,C);this._attachModifyAggregation(C,"contentMiddle",A,C);this._attachModifyAggregation(C,"contentRight",A,C);}if(f(C,"sap/ui/core/ComponentContainer")){var o=C.getComponentInstance();if(!o&&C.getName()&&!C.getDomRef()){var t=this;var j={onBeforeRendering:function(){C.removeEventDelegate(j);t._doBFS([{oNode:C.getComponentInstance(),oAdaptOptions:A}]);if(t._getCurrentlyAdaptedTopViewId()){t._fireViewChange(t._getCurrentlyAdaptedTopViewId(),A);}}};C.addEventDelegate(j,this);}}};F._checkHasListener=function(k){return i.aChangeListeners[k];};F._setHasListener=function(k,v){i.aChangeListeners[k]=v;};F._attachAdaptableContentChange=function(C,A){if(!C._getAdaptableContent||!q.isFunction(C._getAdaptableContent)){return;}var k=C.getId()+"_adaptableContentChange";if(this._checkHasListener(k)){return;}var o=this._getCurrentlyAdaptedTopViewId();var j=function(l){var m=l.getParameter("adaptableContent");this._setAsCurrentlyAdaptedTopViewId(o);this._doBFS([{oNode:m,oAdaptOptions:A}]);if(this._getCurrentlyAdaptedTopViewId()){this._fireViewChange(this._getCurrentlyAdaptedTopViewId(),A);}}.bind(this);C.attachEvent("_adaptableContentChange",j);this._setHasListener(k,j);};F._attachNavigablePageChange=function(C,A){if(!f(C,"sap/m/NavContainer")){return;}var k=C.getId()+"navigate";if(this._checkHasListener(k)){return;}var o=function(j){var n=j.getParameter("to");A=this._applyRules(A,n);this._doBFS([{oNode:n,oAdaptOptions:A}]);if(this._getCurrentlyAdaptedTopViewId()){this._fireViewChange(this._getCurrentlyAdaptedTopViewId(),A);}}.bind(this);C.attachNavigate(o);this._setHasListener(k,o);};F._attachModifyAggregation=function(C,A,o,j){var k=C.getId()+A;if(this._checkHasListener(k)){return;}var l=this._getCurrentlyAdaptedTopViewId(),m=function(p){var s=p.mutation,r=p.object;if((s==="add")||(s==="insert")){this._setAsCurrentlyAdaptedTopViewId(l);this._doBFS([{oNode:j?j:r,oAdaptOptions:o}]);if(this._getCurrentlyAdaptedTopViewId()){this._fireViewChange(this._getCurrentlyAdaptedTopViewId(),o);}}}.bind(this),n=new M(m);n.observe(C,{aggregations:[A]});this._setHasListener(k,n);};F._getNodeChildren=function(C){if(C._getAdaptableContent&&q.isFunction(C._getAdaptableContent)){var j=[C._getAdaptableContent()];if(f(C,"sap/m/Page")){j=j.concat(C.getContent());}return j;}if(f(C,"sap/m/SplitContainer")){return[].concat(C.getAggregation("_navMaster"),C.getAggregation("_navDetail"));}if(f(C,"sap/uxap/ObjectPageLayout")){return[C.getHeaderTitle()];}if(f(C,"sap/ui/core/ComponentContainer")){return[C.getComponentInstance()];}if(f(C,"sap/ui/core/UIComponent")){return[C.getAggregation("rootControl")];}return C.findAggregatedObjects(false,g);};F._updateSearchDepth=function(s,C){if(f(C,"sap/ui/core/mvc/View")||f(C,"sap/ui/core/Component")||f(C,"sap/ui/core/ComponentContainer")){return s;}return s-1;};F._getTotalCachedInfoToMerge=function(v){var V=sap.ui.getCore().byId(v),C=this._getCachedViewInfoToMerge(v),j,k,s,S,o,p,l;if(!D.system.phone&&this._isTopSplitContainerSubView(V)){p=V.getParent();o=p&&p.getParent();if(o){j=o._oMasterNav&&(o._oMasterNav.getId()===p.getId());k=o._oDetailNav&&(o._oDetailNav.getId()===p.getId());}}if(j){s=o.getCurrentDetailPage();S=s&&s.getId();l=this._getCachedViewInfoToMerge(S);C=this._mergeSplitViewInfos(C,l);}if(k){s=o.getCurrentMasterPage();S=s&&s.getId();l=this._getCachedViewInfoToMerge(S);C=this._mergeSplitViewInfos(l,C);}C.sViewId=(j||k)?o.getId():v;return C;};F._isTopSplitContainerSubView=function(C){var p=C&&C.getParent();return this._isTopmostNavContainer(p)&&f(p.getParent(),"sap/m/SplitContainer");};F._mergeSplitViewInfos=function(m,o){q.each(m,function(k,v){m[k]=v||o[k];});return m;};F._getCachedViewInfoToMerge=function(v){var B=(i.aViewBackButtons[v])?i.aViewBackButtons[v].oControl:undefined;return{oTitleInfo:i.aViewTitles[v],oSubTitleInfo:i.aViewSubTitles[v],oBackButton:B};};F._applyRules=function(A,C){var p=C.getParent();if(f(p,"sap/m/SplitContainer")){var I=D.system.phone,m=A.bMoveTitle,j=A.bHideBackButton;if(m){m=I;}if(j&&!D.system.phone){j='initialPage';}return q.extend({},A,{bMoveTitle:m,bHideBackButton:j});}if(f(p,"sap/m/NavContainer")){if(A.bHideBackButton==='initialPage'){var k=p._getActualInitialPage()&&(p._getActualInitialPage().getId()===C.getId());return q.extend({},A,{bHideBackButton:k});}}if((A.bMoveTitle===false)||(A.bHideBackButton===false)){return q.extend({},A,{bCollapseHeader:false});}return A;};F._getCurrentlyAdaptedTopViewId=function(){return c;};F._setAsCurrentlyAdaptedTopViewId=function(v){c=v;};F._isTopNavigableView=function(n){var p=n.getParent();return p&&this._isTopmostNavContainer(p);};F._isTopmostNavContainer=function(C){var o,n=C;while(n){if(f(n,"sap/m/NavContainer")){o=n;}n=n.getParent();}return o&&(o.getId()===C.getId());};F._adaptHeader=function(o,A){if(!o||!A){return;}var j=new H(o,A),k=j.adapt();var t=this._getCurrentlyAdaptedTopViewId();if(k.oTitleInfo){i.aViewTitles[t]=k.oTitleInfo;this._registerTextChangeListener(i.aViewTitles,t,A);}if(k.oSubTitleInfo){i.aViewSubTitles[t]=k.oSubTitleInfo;this._registerTextChangeListener(i.aViewSubTitles,t,A);}if(k.oBackButtonInfo){if(k.oBackButtonInfo.oControl.getVisible()){i.aViewBackButtons[t]=k.oBackButtonInfo;}this._registerVisibilityChangeListener(k.oBackButtonInfo,i.aViewBackButtons,t,A);}return k;};F._registerTextChangeListener=function(t,v,A){var T=t[v];if(T&&T.oControl&&T.sChangeEventId&&!i.aChangeListeners[T.id]){var C=function(o){var T=t[v];if(o.getParameter("name")!==T.sPropertyName){return;}T.text=o.getParameter("newValue");this._fireViewChange(v,A);}.bind(this);T.oControl.attachEvent(T.sChangeEventId,C);i.aChangeListeners[T.id]=C;}};F._registerVisibilityChangeListener=function(C,j,v,A){var V;if(C&&C.oControl&&C.sChangeEventId&&!i.aChangeListeners[C.id]){var k=function(o){if(o.getParameter("name")!==C.sPropertyName){return;}V=o.getParameter("newValue");if(!V){q.each(j,function(I,l){if(l.oControl.getId()===C.oControl.getId()){delete j[I];}});}var p=C.oControl.getParent();if(H._isAdaptableHeader(p)){F._adaptHeader(p,A);this._fireViewChange(v,A);}}.bind(this);C.oControl.attachEvent(C.sChangeEventId,k);i.aChangeListeners[C.id]=k;}};F._fireViewChange=function(v,A){var t=this._getTotalCachedInfoToMerge(v);t.oAdaptOptions=A;e.fireEvent("adaptedViewChange",t);};F._isAdaptationRequired=function(n,A){if(!n||this._isNonAdaptableControl(n)){return false;}for(var o in A){if(A.hasOwnProperty(o)&&((A[o]===true)||(A[o]==="initialPage"))){return true;}}return false;};F._isNonAdaptableControl=function(C){return b(C);};function a(C){return d(C,["sap/m/Label","sap/m/Text","sap/m/Title"]);}function b(C){return d(C,["sap/m/List","sap/m/SelectList","sap/m/Table","sap/ui/table/Table","sap/ui/table/TreeTable","sap/ui/comp/variants/VariantManagement"]);}function d(C,t){if(!C||!t){return;}return t.some(function(T){return f(C,T);});}function f(C,t){var T=sap.ui.require(t);return T&&(C instanceof T);}function g(o){return o&&(o.sParentAggregationName!=="dependents");}function h(o){return o&&(typeof o.getVisible==="function")&&(o.getVisible()===false);}return F;});
sap.ui.predefine('sap/m/FlexBox',['./FlexBoxStylingHelper','./FlexItemData','./library','sap/ui/core/Control','sap/ui/core/InvisibleRenderer','./FlexBoxRenderer','sap/ui/thirdparty/jquery'],function(F,a,l,C,I,b,q){"use strict";var B=l.BackgroundDesign;var c=l.FlexAlignContent;var d=l.FlexWrap;var e=l.FlexAlignItems;var f=l.FlexJustifyContent;var g=l.FlexRendertype;var h=l.FlexDirection;var j=C.extend("sap.m.FlexBox",{metadata:{library:"sap.m",properties:{height:{type:"sap.ui.core.CSSSize",group:"Dimension",defaultValue:''},width:{type:"sap.ui.core.CSSSize",group:"Dimension",defaultValue:''},displayInline:{type:"boolean",group:"Appearance",defaultValue:false},direction:{type:"sap.m.FlexDirection",group:"Appearance",defaultValue:h.Row},fitContainer:{type:"boolean",group:"Appearance",defaultValue:false},renderType:{type:"sap.m.FlexRendertype",group:"Misc",defaultValue:g.Div},justifyContent:{type:"sap.m.FlexJustifyContent",group:"Appearance",defaultValue:f.Start},alignItems:{type:"sap.m.FlexAlignItems",group:"Appearance",defaultValue:e.Stretch},wrap:{type:"sap.m.FlexWrap",group:"Appearance",defaultValue:d.NoWrap},alignContent:{type:"sap.m.FlexAlignContent",group:"Appearance",defaultValue:c.Stretch},backgroundDesign:{type:"sap.m.BackgroundDesign",group:"Appearance",defaultValue:B.Transparent}},defaultAggregation:"items",aggregations:{items:{type:"sap.ui.core.Control",multiple:true,singularName:"item"}},designtime:"sap/m/designtime/FlexBox.designtime",dnd:{draggable:false,droppable:true}}});j.prototype.init=function(){this._oItemDelegate={onAfterRendering:this._onAfterItemRendering};};j.prototype.addItem=function(i){this.addAggregation("items",i);this._onItemInserted(i);return this;};j.prototype.insertItem=function(i,k){this.insertAggregation("items",i,k);this._onItemInserted(i);return this;};j.prototype.removeItem=function(i){var o=this.removeAggregation("items",i);this._onItemRemoved(o);return o;};j.prototype.removeAllItems=function(){var k=this.getItems();for(var i=0;i<k.length;i++){this._onItemRemoved(k[i]);}return this.removeAllAggregation("items");};j.prototype._onItemInserted=function(i){if(i&&!(i instanceof j)){i.attachEvent("_change",this._onItemChange,this);if(this.getRenderType()===g.Bare){i.addEventDelegate(this._oItemDelegate,i);}}};j.prototype._onItemRemoved=function(i){if(i&&!(i instanceof j)){i.detachEvent("_change",this._onItemChange,this);if(this.getRenderType()===g.Bare){i.removeEventDelegate(this._oItemDelegate,i);}}};j.prototype._onItemChange=function(o){if(o.getParameter("name")!=="visible"||(this.getRenderType()!==g.List&&this.getRenderType()!==g.Div)){return;}var i=sap.ui.getCore().byId(o.getParameter("id")),w=null;if(i.getLayoutData()){w=q(document.getElementById(i.getLayoutData().getId()));}else{w=q(document.getElementById(I.createInvisiblePlaceholderId(i))).parent();}if(o.getParameter("newValue")){w.removeClass("sapUiHiddenPlaceholder").removeAttr("aria-hidden");}else{w.addClass("sapUiHiddenPlaceholder").attr("aria-hidden","true");}};j.prototype._onAfterItemRendering=function(){var L=this.getLayoutData();if(L instanceof a){F.setFlexItemStyles(null,L);}};j.prototype.setRenderType=function(v){var o=this.getRenderType(),i=this.getItems();if(v===o){return this;}this.setProperty("renderType",v);if(o==="Bare"){i.forEach(this._onItemRemoved,this);}if(v==="Bare"){i.forEach(this._onItemInserted,this);}return this;};j.prototype.setDisplayInline=function(i){this.setProperty("displayInline",i,true);this.$().toggleClass("sapMFlexBoxInline",this.getDisplayInline());return this;};j.prototype.setDirection=function(v){this.setProperty("direction",v,true);if(this.getDirection()===h.Column||this.getDirection()===h.ColumnReverse){this.$().removeClass("sapMHBox").addClass("sapMVBox");}else{this.$().removeClass("sapMVBox").addClass("sapMHBox");}if(this.getDirection()===h.RowReverse||this.getDirection()===h.ColumnReverse){this.$().addClass("sapMFlexBoxReverse");}else{this.$().removeClass("sapMFlexBoxReverse");}return this;};j.prototype.setFitContainer=function(v){this.setProperty("fitContainer",v,true);this.$().toggleClass("sapMFlexBoxFit",this.getFitContainer());return this;};j.prototype.setWrap=function(v){var o=this.getWrap();this.setProperty("wrap",v,true);this.$().removeClass("sapMFlexBoxWrap"+o).addClass("sapMFlexBoxWrap"+this.getWrap());return this;};j.prototype.setJustifyContent=function(v){var o=this.getJustifyContent();this.setProperty("justifyContent",v,true);this.$().removeClass("sapMFlexBoxJustify"+o).addClass("sapMFlexBoxJustify"+this.getJustifyContent());return this;};j.prototype.setAlignItems=function(v){var o=this.getAlignItems();this.setProperty("alignItems",v,true);this.$().removeClass("sapMFlexBoxAlignItems"+o).addClass("sapMFlexBoxAlignItems"+this.getAlignItems());return this;};j.prototype.setAlignContent=function(v){var o=this.getAlignContent();this.setProperty("alignContent",v,true);this.$().removeClass("sapMFlexBoxAlignContent"+o).addClass("sapMFlexBoxAlignContent"+this.getAlignContent());return this;};j.prototype.setHeight=function(v){this.setProperty("height",v,true);this.$().css("height",this.getHeight());return this;};j.prototype.setWidth=function(v){this.setProperty("width",v,true);this.$().css("width",this.getWidth());return this;};j.prototype.setBackgroundDesign=function(v){var o=this.getBackgroundDesign();this.setProperty("backgroundDesign",v,true);this.$().removeClass("sapMFlexBoxBG"+o).addClass("sapMFlexBoxBG"+this.getBackgroundDesign());return this;};j.prototype.getAccessibilityInfo=function(){return{children:this.getItems()};};return j;});
sap.ui.predefine('sap/m/FlexBoxCssPropertyMap',[],function(){"use strict";var F={'specie10':{'order':{'<number>':{'flex-order':'<number>'}},'flex-grow':{'<number>':{'flex-positive':'<number>','flex-preferred-size':'auto'}},'flex-shrink':{'<number>':{'flex-negative':'<number>'}},'flex-basis':{'<number>':{'flex-preferred-size':'<number>'}}}};return F;},true);
sap.ui.predefine('sap/m/FlexBoxRenderer',['./FlexBoxStylingHelper','sap/m/library',"sap/base/Log","sap/m/FlexItemData"],function(F,l,L,a){"use strict";var b=l.FlexDirection;var c=l.FlexRendertype;var d={apiVersion:2};d.render=function(r,C){r.openStart(C.getRenderType()==c.List?"ul":"div",C);var p=C.getParent();if(p&&p.isA("sap.m.FlexBox")){if(!C.hasStyleClass("sapMFlexItem")){r.class("sapMFlexItem");}var o=C.getLayoutData();if(o instanceof a){F.setFlexItemStyles(r,o);}}else if(C.getFitContainer()){r.class("sapMFlexBoxFit");}r.class("sapMFlexBox");if(C.getDisplayInline()){r.class("sapMFlexBoxInline");}if(C.getDirection()===b.Column||C.getDirection()===b.ColumnReverse){r.class("sapMVBox");}else{r.class("sapMHBox");}if(C.getDirection()===b.RowReverse||C.getDirection()===b.ColumnReverse){r.class("sapMFlexBoxReverse");}r.class("sapMFlexBoxJustify"+C.getJustifyContent());r.class("sapMFlexBoxAlignItems"+C.getAlignItems());r.class("sapMFlexBoxWrap"+C.getWrap());r.class("sapMFlexBoxAlignContent"+C.getAlignContent());var B="sapMFlexBoxBG"+C.getBackgroundDesign();if(!C.hasStyleClass(B)){r.class(B);}r.style("height",C.getHeight());r.style("width",C.getWidth());var t=C.getTooltip_AsString();if(t){r.attr("title",t);}r.openEnd();d.renderItems(C,r);if(C.getRenderType()===c.List){r.close("ul");}else{r.close("div");}};d.renderItems=function(C,r){var e=C.getItems(),w='';for(var i=0;i<e.length;i++){if(e[i].isA('sap.m.FlexBox')||C.getRenderType()===c.Bare){w="";}else if(C.getRenderType()===c.List){w="li";}else{w="div";}d.renderItem(e[i],w,r);}};d.renderItem=function(i,w,r){var o=i.getLayoutData();if(w&&!o){i.setAggregation("layoutData",new a(),true);o=i.getLayoutData();}if(!(o instanceof a)){if(o){L.warning(o+" set on "+i+" is not of type sap.m.FlexItemData");}if(w){r.openStart(w);}}else{if(w){r.openStart(w,o.getId());}if(o.getStyleClass()){d.addItemClass(o.getStyleClass(),i,w,r);}d.addItemClass("sapMFlexItemAlign"+o.getAlignSelf(),i,w,r);d.addItemClass("sapMFlexBoxBG"+o.getBackgroundDesign(),i,w,r);if(w){F.setFlexItemStyles(r,o);}}d.addItemClass("sapMFlexItem",i,w,r);if(w){if(i.isA("sap.m.ScrollContainer")){r.class("sapMFlexBoxScroll");}if(!i.getVisible()){r.class("sapUiHiddenPlaceholder");}r.openEnd();}r.renderControl(i);if(w){r.close(w);}};d.addItemClass=function(C,i,w,r){if(w){r.class(C);}else{i.addStyleClass(C);}};return d;},true);
sap.ui.predefine('sap/m/FlexBoxStylingHelper',['./FlexBoxCssPropertyMap','sap/ui/Device'],function(F,D){"use strict";var a={};a.setFlexItemStyles=function(r,l){r=r||null;var o=''+l.getOrder(),g=''+l.getGrowFactor(),s=''+l.getShrinkFactor(),b=l.getBaseSize().toLowerCase(),m=l.getMinHeight(),M=l.getMaxHeight(),c=l.getMinWidth(),d=l.getMaxWidth();if(typeof o!=='undefined'){a.setStyle(r,l,"order",o);}if(typeof g!=='undefined'){a.setStyle(r,l,"flex-grow",g);}if(typeof s!=='undefined'){a.setStyle(r,l,"flex-shrink",s);}if(typeof b!=='undefined'){a.setStyle(r,l,"flex-basis",b);}if(typeof m!=='undefined'){a.setStyle(r,l,"min-height",m);}if(typeof M!=='undefined'){a.setStyle(r,l,"max-height",M);}if(typeof c!=='undefined'){a.setStyle(r,l,"min-width",c);}if(typeof d!=='undefined'){a.setStyle(r,l,"max-width",d);}};a.setStyle=function(r,l,p,v){if(typeof(v)==="string"){v=v.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();}else if(typeof(v)==="number"){v=v.toString();}a.writeStyle(r,l,p,v);};a.writeStyle=function(r,l,p,v){if(D.browser.internet_explorer&&(p==="flex-basis"||p==="flex-preferred-size")){if(l.getParent()){if(l.getParent().getParent().getDirection().indexOf("Row")>-1){p="width";}else{p="height";}}}if(r){if(v==="0"||v){r.style(p,v);}}else{if(l.$().length){if(v!=="0"&&!v){l.$().css(p,null);}else{l.$().css(p,v);}}else{if(l.getParent()){if(v!=="0"&&!v){l.getParent().$().css(p,null);}else{l.getParent().$().css(p,v);}}}}};return a;},true);
sap.ui.predefine('sap/m/FlexItemData',['./FlexBoxStylingHelper','./library','sap/ui/core/LayoutData'],function(F,l,L){"use strict";var B=l.BackgroundDesign;var a=l.FlexAlignSelf;var b=L.extend("sap.m.FlexItemData",{metadata:{library:"sap.m",properties:{alignSelf:{type:"sap.m.FlexAlignSelf",group:"Misc",defaultValue:a.Auto},order:{type:"int",group:"Misc",defaultValue:0},growFactor:{type:"float",group:"Misc",defaultValue:0},shrinkFactor:{type:"float",group:"Misc",defaultValue:1},baseSize:{type:"sap.ui.core.CSSSize",group:"Misc",defaultValue:"auto"},minHeight:{type:"sap.ui.core.CSSSize",group:"Dimension",defaultValue:'auto'},maxHeight:{type:"sap.ui.core.CSSSize",group:"Dimension",defaultValue:''},minWidth:{type:"sap.ui.core.CSSSize",group:"Dimension",defaultValue:'auto'},maxWidth:{type:"sap.ui.core.CSSSize",group:"Dimension",defaultValue:''},styleClass:{type:"string",group:"Misc",defaultValue:''},backgroundDesign:{type:"sap.m.BackgroundDesign",group:"Appearance",defaultValue:B.Transparent}}}});b.prototype.setAlignSelf=function(v){var o=this.getAlignSelf();this.setProperty("alignSelf",v,true);this.$().removeClass("sapMFlexItemAlign"+o).addClass("sapMFlexItemAlign"+this.getAlignSelf());return this;};b.prototype.setOrder=function(v){this.setProperty("order",v,true);F.setStyle(null,this,"order",this.getOrder());return this;};b.prototype.setGrowFactor=function(v){this.setProperty("growFactor",v,true);F.setStyle(null,this,"flex-grow",this.getGrowFactor());return this;};b.prototype.setShrinkFactor=function(v){this.setProperty("shrinkFactor",v,true);F.setStyle(null,this,"flex-shrink",this.getShrinkFactor());return this;};b.prototype.setBaseSize=function(v){this.setProperty("baseSize",v,true);F.setStyle(null,this,"flex-basis",this.getBaseSize());return this;};b.prototype.setMinHeight=function(v){this.setProperty("minHeight",v,true);this.$().css("min-height",this.getMinHeight());return this;};b.prototype.setMaxHeight=function(v){this.setProperty("maxHeight",v,true);this.$().css("max-height",this.getMaxHeight());return this;};b.prototype.setMinWidth=function(v){this.setProperty("minWidth",v,true);this.$().css("min-width",this.getMinWidth());return this;};b.prototype.setMaxWidth=function(v){this.setProperty("maxWidth",v,true);this.$().css("max-width",this.getMaxWidth());return this;};b.prototype.setBackgroundDesign=function(v){var o=this.getBackgroundDesign();this.setProperty("backgroundDesign",v,true);this.$().removeClass("sapMFlexBoxBG"+o).addClass("sapMFlexBoxBG"+this.getBackgroundDesign());return this;};b.prototype.setStyleClass=function(v){var o=this.getStyleClass();this.setProperty("styleClass",v,true);this.$().removeClass(o).addClass(this.getStyleClass());return this;};return b;});
sap.ui.predefine('sap/m/FormattedText',['./library','sap/ui/core/Control','./FormattedTextAnchorGenerator','./FormattedTextRenderer',"sap/base/Log","sap/base/security/URLWhitelist","sap/base/security/sanitizeHTML","sap/ui/util/openWindow"],function(l,C,F,a,L,U,s,o){"use strict";var b=l.LinkConversion;var c=C.extend("sap.m.FormattedText",{metadata:{library:"sap.m",properties:{htmlText:{type:"string",group:"Misc",defaultValue:""},width:{type:"sap.ui.core.CSSSize",group:"Appearance",defaultValue:null},convertLinksToAnchorTags:{type:"sap.m.LinkConversion",group:"Behavior",defaultValue:b.None},convertedLinksDefaultTarget:{type:"string",group:"Behavior",defaultValue:"_blank"},height:{type:"sap.ui.core.CSSSize",group:"Appearance",defaultValue:null}}}});var _={ATTRIBS:{'style':1,'class':1,'a::href':1,'a::target':1},ELEMENTS:{'a':{cssClass:'sapMLnk'},'abbr':1,'blockquote':1,'br':1,'cite':1,'code':1,'em':1,'h1':{cssClass:'sapMTitle sapMTitleStyleH1'},'h2':{cssClass:'sapMTitle sapMTitleStyleH2'},'h3':{cssClass:'sapMTitle sapMTitleStyleH3'},'h4':{cssClass:'sapMTitle sapMTitleStyleH4'},'h5':{cssClass:'sapMTitle sapMTitleStyleH5'},'h6':{cssClass:'sapMTitle sapMTitleStyleH6'},'p':1,'pre':1,'strong':1,'span':1,'u':1,'dl':1,'dt':1,'dd':1,'ol':1,'ul':1,'li':1}},d={ATTRIBS:{'a::href':1,'a::target':1},ELEMENTS:{'a':{cssClass:'sapMLnk'},'em':1,'strong':1,'u':1}};c.prototype._renderingRules=_;c.prototype.init=function(){};function S(t,g){var w;var h,v,j=t==="a";var k=this._renderingRules.ELEMENTS[t].cssClass||"";for(var i=0;i<g.length;i+=2){h=g[i];v=g[i+1];if(!this._renderingRules.ATTRIBS[h]&&!this._renderingRules.ATTRIBS[t+"::"+h]){w='FormattedText: <'+t+'> with attribute ['+h+'="'+v+'"] is not allowed';L.warning(w,this);g[i+1]=null;continue;}if(h=="href"){if(!U.validate(v)){L.warning("FormattedText: incorrect href attribute:"+v,this);g[i+1]="#";j=false;}}if(h=="target"){j=false;}if(k&&h.toLowerCase()=="class"){g[i+1]=k+" "+v;k="";}}if(j){g.push("target");g.push("_blank");}if(k){g.push("class");g.push(k);}return g;}function p(t,g){if(this._renderingRules.ELEMENTS[t]){return S.call(this,t,g);}else{var w='<'+t+'> is not allowed';L.warning(w,this);}}function e(t){return s(t,{tagPolicy:p.bind(this),uriRewriter:function(u){if(U.validate(u)){return u;}}});}function f(E){E.preventDefault();o(E.currentTarget.href,E.currentTarget.target);}c.prototype.onAfterRendering=function(){this.$().find('a').on("click",f);this.getDomRef&&this._sanitizeCSSPosition(this.getDomRef());};c.prototype.onBeforeRendering=function(){this.$().find('a').off("click",f);};c.prototype._sanitizeCSSPosition=function(D){if(!D){return;}var w=document.createTreeWalker(D,NodeFilter.SHOW_ELEMENT,null,false),g=w.nextNode();while(g){g.style.setProperty("position","static","important");g=w.nextNode();}};c.prototype._getDisplayHtml=function(){var t=this.getHtmlText(),A=this.getConvertLinksToAnchorTags();if(A===l.LinkConversion.None){return t;}t=F.generateAnchors(t,A,this.getConvertedLinksDefaultTarget());return e.call(this,t);};c.prototype.setHtmlText=function(t){return this.setProperty("htmlText",e.call(this,t));};c.prototype._setUseLimitedRenderingRules=function(g){this._renderingRules=g?d:_;};return c;});
sap.ui.predefine('sap/m/FormattedTextAnchorGenerator',["sap/ui/base/Metadata","sap/m/library","sap/base/security/URLWhitelist"],function(M,l,U){"use strict";var L=l.LinkConversion;var A=M.createClass("sap.m.FormattedTextAnchorGenerator",{});var c=/(\b(https?|ftp):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;()$]*[-A-Z0-9+&@#\/%=~_|])/gim;var W=/(www\.[^\s><]+(\b|$))/gim;var d="//";var D=/<(?:"[^"]*"['"]*|'[^']*'['"]*|[^'">])+(?!\/\s\*)>/gim;var E=/<a[^>]*>([^<]+)<\/a>/gim;var e=[D,E];A.generateAnchors=function(t,s,T){if(s===L.ProtocolOnly){t=A._createAnchors(t,c,T);}if(s===L.All){t=A._createAnchors(t,c,T);t=A._createAnchors(t,W,T,d);}return t;};A._createPositionObject=function(i,a){return{iStartPos:i,iEndPos:i+a};};A._isNested=function(f,s){return f.iStartPos<s.iStartPos&&f.iEndPos>s.iEndPos;};A._isAllowed=function(b,C){return b.some(function(B){return A._isNested(B,C);});};A._shouldBeProcessed=function(u,C,b){return U.validate(u)&&!A._isAllowed(b,C);};A._scanForEntitiesToSkip=function(r,t){var a=[],C;while((C=r.exec(t))!==null){a.push(A._createPositionObject(C.index,C[0].length));}return a;};A._getEntitiesToSkipWhileSearchingForLinks=function(t){return e.map(function(s){return A._scanForEntitiesToSkip(s,t);}).reduce(function(a,b){return a.concat(b);});};A._createAnchors=function(t,r,T,p){var a=A._getEntitiesToSkipWhileSearchingForLinks(t),C;p=p||'';C=function(P){var o=A._createPositionObject(arguments[3],P.length);if(!A._shouldBeProcessed(P,o,a)){return P;}return"<a href=\""+p+P+"\" target=\""+T+"\">"+P+"</a>";};return t.replace(r,C);};return A;},false);
sap.ui.predefine('sap/m/FormattedTextRenderer',[],function(){"use strict";var F={};F.render=function(r,c){var w=c.getWidth();var h=c.getHeight();r.write("<div");r.writeControlData(c);r.addClass("sapMFT");if(w){r.addClass("sapMFTOverflowWidth");}if(h){r.addClass("sapMFTOverflowHeight");}r.writeClasses();if(c.getTooltip_AsString()){r.writeAttributeEscaped("title",c.getTooltip_AsString());}r.addStyle("width",w||null);r.addStyle("height",h||null);r.writeStyles();r.write(">");r.write(c._getDisplayHtml());r.write("</div>");};return F;},true);
sap.ui.predefine('sap/m/GenericTile',['./library','sap/ui/core/Control','sap/m/Text','sap/ui/core/HTML','sap/ui/core/Icon','sap/ui/core/IconPool','sap/m/Button','sap/m/GenericTileRenderer','sap/m/GenericTileLineModeRenderer','sap/ui/Device','sap/ui/core/ResizeHandler',"sap/base/strings/camelize","sap/base/util/deepEqual","sap/ui/events/PseudoEvents","sap/ui/thirdparty/jquery"],function(l,C,T,H,I,a,B,G,L,D,R,c,d,P,q){"use strict";var b=l.GenericTileScope,e=l.LoadState,F=l.FrameType,S=l.Size,f=l.GenericTileMode,g=l.TileSizeBehavior,W=l.WrappingType;var h="GenericTileDeviceSet";var j=C.extend("sap.m.GenericTile",{metadata:{library:"sap.m",properties:{mode:{type:"sap.m.GenericTileMode",group:"Appearance",defaultValue:f.ContentMode},header:{type:"string",group:"Appearance",defaultValue:null},subheader:{type:"string",group:"Appearance",defaultValue:null},failedText:{type:"string",group:"Appearance",defaultValue:null},size:{type:"sap.m.Size",group:"Misc",defaultValue:S.Auto},frameType:{type:"sap.m.FrameType",group:"Misc",defaultValue:F.OneByOne},backgroundImage:{type:"sap.ui.core.URI",group:"Misc",defaultValue:null},headerImage:{type:"sap.ui.core.URI",group:"Misc",defaultValue:null},state:{type:"sap.m.LoadState",group:"Misc",defaultValue:e.Loaded},imageDescription:{type:"string",group:"Accessibility",defaultValue:null},scope:{type:"sap.m.GenericTileScope",group:"Misc",defaultValue:b.Display},sizeBehavior:{type:"sap.m.TileSizeBehavior",defaultValue:g.Responsive},ariaLabel:{type:"string",group:"Accessibility",defaultValue:null},wrappingType:{type:"sap.m.WrappingType",group:"Appearance",defaultValue:W.Normal},width:{type:"sap.ui.core.CSSSize",group:"Appearance"}},defaultAggregation:"tileContent",aggregations:{tileContent:{type:"sap.m.TileContent",multiple:true,bindable:"bindable"},icon:{type:"sap.ui.core.Control",multiple:false},_titleText:{type:"sap.m.Text",multiple:false,visibility:"hidden"},_failedMessageText:{type:"sap.m.Text",multiple:false,visibility:"hidden"}},events:{press:{parameters:{scope:{type:"sap.m.GenericTileScope"},action:{type:"string"},domRef:{type:"any"}}}}},renderer:function(r,o){if(o.getMode()===l.GenericTileMode.LineMode){L.render(r,o);}else{G.render(r,o);}}});j._Action={Press:"Press",Remove:"Remove"};j.LINEMODE_SIBLING_PROPERTIES=["state","subheader","header","scope"];j.prototype.init=function(){this._oRb=sap.ui.getCore().getLibraryResourceBundle("sap.m");if(!D.media.hasRangeSet(h)){D.media.initRangeSet(h,[450],"px",["small","large"]);}this._oTitle=new T(this.getId()+"-title");this._oTitle.addStyleClass("sapMGTTitle");this._oTitle.cacheLineHeight=false;this.setAggregation("_titleText",this._oTitle,true);this._oSubTitle=new T(this.getId()+"-subTitle");this._oSubTitle.cacheLineHeight=false;this.addDependent(this._oSubTitle);this._sFailedToLoad=this._oRb.getText("INFOTILE_CANNOT_LOAD_TILE");this._sLoading=this._oRb.getText("INFOTILE_LOADING");this._oFailedText=new T(this.getId()+"-failed-txt",{maxLines:2});this._oFailedText.cacheLineHeight=false;this._oFailedText.addStyleClass("sapMGTFailed");this.setAggregation("_failedMessageText",this._oFailedText,true);this._oWarningIcon=new I(this.getId()+"-warn-icon",{src:"sap-icon://notification",size:"1.375rem"});this._oWarningIcon.addStyleClass("sapMGTFtrFldIcnMrk");this._oBusy=new H(this.getId()+"-overlay");this._oBusy.setBusyIndicatorDelay(0);this._bTilePress=true;this._bThemeApplied=true;if(!sap.ui.getCore().isInitialized()){this._bThemeApplied=false;sap.ui.getCore().attachInit(this._handleCoreInitialized.bind(this));}else{this._handleCoreInitialized();}};j.prototype.setWrappingType=function(w){this.setProperty("wrappingType",w,true);this._oTitle.setWrappingType(w);this._oFailedText.setWrappingType(w);this._oSubTitle.setWrappingType(w);return this;};j.prototype.setSubheader=function(s){this.setProperty("subheader",s);this._oSubTitle.setText(s);return this;};j.prototype._handleCoreInitialized=function(){this._bThemeApplied=sap.ui.getCore().isThemeApplied();if(!this._bThemeApplied){sap.ui.getCore().attachThemeChanged(this._handleThemeApplied,this);}};j.prototype._handleThemeApplied=function(){this._bThemeApplied=true;this._oTitle.clampHeight();sap.ui.getCore().detachThemeChanged(this._handleThemeApplied,this);};j.prototype._initScopeContent=function(t){switch(this.getScope()){case l.GenericTileScope.Actions:if(this.getState&&this.getState()===l.LoadState.Disabled){break;}this._oMoreIcon=this._oMoreIcon||a.createControlByURI({id:this.getId()+"-action-more",size:"1rem",useIconTooltip:false,src:"sap-icon://overflow"}).addStyleClass("sapMPointer").addStyleClass(t+"MoreIcon");this._oRemoveButton=this._oRemoveButton||new B({id:this.getId()+"-action-remove",icon:"sap-icon://decline",tooltip:this._oRb.getText("GENERICTILE_REMOVEBUTTON_TEXT")}).addStyleClass("sapUiSizeCompact").addStyleClass(t+"RemoveButton");this._oRemoveButton._bExcludeFromTabChain=true;break;default:}};j.prototype._isSmall=function(){return this.getSizeBehavior()===g.Small||window.matchMedia("(max-width: 374px)").matches;};j.prototype.exit=function(){if(this._sParentResizeListenerId){R.deregister(this._sResizeListenerId);this._sParentResizeListenerId=null;}D.media.detachHandler(this._handleMediaChange,this,h);if(this._$RootNode){this._$RootNode.off(this._getAnimationEvents());this._$RootNode=null;}this._clearAnimationUpdateQueue();this._oWarningIcon.destroy();if(this._oImage){this._oImage.destroy();}this._oBusy.destroy();if(this._oMoreIcon){this._oMoreIcon.destroy();}if(this._oRemoveButton){this._oRemoveButton.destroy();}};j.prototype.onBeforeRendering=function(){var s=!!this.getSubheader();if(this.getMode()===l.GenericTileMode.HeaderMode){this._applyHeaderMode(s);}else{this._applyContentMode(s);}var t=this.getTileContent().length;for(var i=0;i<t;i++){this.getTileContent()[i].setProperty("disabled",this.getState()===l.LoadState.Disabled,true);}this._initScopeContent("sapMGT");this._generateFailedText();this.$().unbind("mouseenter");this.$().unbind("mouseleave");if(this._sParentResizeListenerId){R.deregister(this._sResizeListenerId);this._sParentResizeListenerId=null;}D.media.detachHandler(this._handleMediaChange,this,h);if(this._$RootNode){this._$RootNode.off(this._getAnimationEvents());}if(this.getFrameType()===l.FrameType.Auto){this.setProperty("frameType",l.FrameType.OneByOne,true);}};j.prototype.onAfterRendering=function(){this._setupResizeClassHandler();this.$().bind("mouseenter",this._updateAriaAndTitle.bind(this));this.$().bind("mouseleave",this._removeTooltipFromControl.bind(this));var m=this.getMode();if(m===l.GenericTileMode.LineMode&&this._isScreenLarge()){this.$().parent().addClass("sapMGTLineModeContainer");this._updateHoverStyle(true);if(this.getParent()instanceof C){this._sParentResizeListenerId=R.register(this.getParent(),this._handleResize.bind(this));}else{this._sParentResizeListenerId=R.register(this.$().parent(),this._handleResize.bind(this));}}if(m===l.GenericTileMode.LineMode&&this._bUpdateLineTileSiblings){this._updateLineTileSiblings();this._bUpdateLineTileSiblings=false;}if(m===l.GenericTileMode.LineMode){D.media.attachHandler(this._handleMediaChange,this,h);}};j.prototype._handleResize=function(){if(this.getMode()===l.GenericTileMode.LineMode&&this._isScreenLarge()&&this.getParent()){this._queueAnimationEnd();}};j.prototype._setupResizeClassHandler=function(){var i=function(){if(this.getSizeBehavior()===g.Small||window.matchMedia("(max-width: 374px)").matches){this.$().addClass("sapMTileSmallPhone");}else{this.$().removeClass("sapMTileSmallPhone");}}.bind(this);q(window).resize(i);i();};j.prototype._isCompact=function(){return q("body").hasClass("sapUiSizeCompact")||this.$().is(".sapUiSizeCompact")||this.$().closest(".sapUiSizeCompact").length>0;};j.prototype._calculateStyleData=function(){this.$("lineBreak").remove();if(!this._isScreenLarge()||!this.getDomRef()||this.$().is(":hidden")){return null;}var $=this.$(),E=this.$("endMarker"),s=this.$("startMarker");if(E.length===0||s.length===0){return null;}var k=this._getLineCount(),m,n,o=Math.ceil(L._getCSSPixelValue(this,"margin-top")),p,A=this.$().parent().innerWidth(),r=Math.ceil(L._getCSSPixelValue(this,"min-height")),t=L._getCSSPixelValue(this,"line-height"),u=this.$().is(":not(:first-child)")&&k>1,v=q("<span><br></span>"),i=0,w=sap.ui.getCore().getConfiguration().getRTL(),x=E.position();if(u){v.attr("id",this.getId()+"-lineBreak");$.prepend(v);k=this._getLineCount();x=E.position();}var y={rtl:w,lineBreak:u,startOffset:s.offset(),endOffset:E.offset(),availableWidth:A,lines:[]};var z;if(D.browser.msie||D.browser.edge){z=v.find("br").position();}else{z=v.position();}var J=z;if(!(D.browser.mozilla||D.browser.msie||D.browser.edge)&&z.left<x.left){J=x;}y.positionLeft=u?z.left:$.position().left;y.positionRight=u?$.width()-J.left:y.availableWidth-$.position().left;if(!u&&k>1){y.positionRight=s.parent().innerWidth()-(s.position().left+s.width());}for(i;i<k;i++){if(u&&i===0){continue;}if(k===1){m=w?y.availableWidth-y.positionLeft:y.positionLeft;p=$.width();}else if(i===k-1){m=0;p=w?$.width()-x.left:x.left;}else if(u&&i===1){m=0;p=A;}else{m=0;p=A;}n=i*t+o;y.lines.push({offset:{x:m,y:n},width:p,height:r});}return y;};j.prototype._getStyleData=function(){var s=this._calculateStyleData();if(!d(this._oStyleData,s)){delete this._oStyleData;this._oStyleData=s;return true;}return false;};j.prototype._getAnimationEvents=function(){return"transitionend.sapMGT$id animationend.sapMGT$id".replace(/\$id/g,c(this.getId()));};j.prototype._updateHoverStyle=function(i){if(!this._getStyleData()&&!i){return;}this._clearAnimationUpdateQueue();this._cHoverStyleUpdates=-1;this._oAnimationEndCallIds={};if(this._oStyleData&&this._oStyleData.lineBreak&&this.getUIArea()){this._$RootNode=q(this.getUIArea().getRootNode());this._$RootNode.on(this._getAnimationEvents(),this._queueAnimationEnd.bind(this));}this._queueAnimationEnd();};j.prototype._queueAnimationEnd=function(E){if(E){var t=q(E.target);if(t.is(".sapMGT, .sapMGT *")){return false;}}if(typeof this._cHoverStyleUpdates!=="number"){this._cHoverStyleUpdates=-1;}if(!this._oAnimationEndCallIds){this._oAnimationEndCallIds={};}this._cHoverStyleUpdates++;this._oAnimationEndCallIds[this._cHoverStyleUpdates]=setTimeout(this._handleAnimationEnd.bind(this,this._cHoverStyleUpdates),10);};j.prototype._handleAnimationEnd=function(i){delete this._oAnimationEndCallIds[i];if(this._cHoverStyleUpdates===i){this._getStyleData();L._updateHoverStyle.call(this);}};j.prototype._clearAnimationUpdateQueue=function(){for(var k in this._oAnimationEndCallIds){clearTimeout(this._oAnimationEndCallIds[k]);delete this._oAnimationEndCallIds[k];}};j.prototype._getLineCount=function(){var o=this.getDomRef().getBoundingClientRect(),i=L._getCSSPixelValue(this,"line-height");return Math.round(o.height/i);};j.prototype.getBoundingRects=function(){var p=this.$().offset();if(this.getMode()===l.GenericTileMode.LineMode&&this._isScreenLarge()){this._getStyleData();var r=[],s,o;this.$().find(".sapMGTLineStyleHelper").each(function(){s=q(this);o=s.offset();r.push({offset:{x:o.left,y:o.top},width:s.width(),height:s.height()});});return r;}else{return[{offset:{x:p.left,y:p.top},width:this.$().width(),height:this.$().height()}];}};j.prototype._updateLineTileSiblings=function(){var p=this.getParent();if(this.getMode()===l.GenericTileMode.LineMode&&this._isScreenLarge()&&p){var i=p.indexOfAggregation(this.sParentAggregationName,this);var s=p.getAggregation(this.sParentAggregationName).splice(i+1);for(i=0;i<s.length;i++){var o=s[i];if(o instanceof l.GenericTile&&o.getMode()===l.GenericTileMode.LineMode){o._updateHoverStyle();}}}};j.prototype.ontouchstart=function(){this.addStyleClass("sapMGTPressActive");if(this.$("hover-overlay").length>0){this.$("hover-overlay").addClass("sapMGTPressActive");}if(this.getMode()===l.GenericTileMode.LineMode){this.addStyleClass("sapMGTLineModePress");}};j.prototype.ontouchcancel=function(){this.removeStyleClass("sapMGTPressActive");if(this.$("hover-overlay").length>0){this.$("hover-overlay").removeClass("sapMGTPressActive");}};j.prototype.ontouchend=function(){this.removeStyleClass("sapMGTPressActive");if(this.$("hover-overlay").length>0){this.$("hover-overlay").removeClass("sapMGTPressActive");}if(this.getMode()===l.GenericTileMode.LineMode){this.removeStyleClass("sapMGTLineModePress");}};j.prototype.ontap=function(i){var p;if(this._bTilePress&&this.getState()!==l.LoadState.Disabled){this.$().focus();p=this._getEventParams(i);this.firePress(p);i.preventDefault();}};j.prototype.onkeydown=function(i){if(P.events.sapselect.fnCheck(i)&&this.getState()!==l.LoadState.Disabled){this.addStyleClass("sapMGTPressActive");if(this.$("hover-overlay").length>0){this.$("hover-overlay").addClass("sapMGTPressActive");}i.preventDefault();}};j.prototype._updateAriaLabel=function(){var A=this._getAriaText(),t=this.$(),i=false;if(t.attr("aria-label")!==A){t.attr("aria-label",A);i=true;}return i;};j.prototype.onkeyup=function(i){var p,k=false,s=this.getScope(),A=s===l.GenericTileScope.Actions;if(A&&(P.events.sapdelete.fnCheck(i)||P.events.sapbackspace.fnCheck(i))){p={scope:s,action:j._Action.Remove,domRef:this._oRemoveButton.getPopupAnchorDomRef()};k=true;}if(P.events.sapselect.fnCheck(i)&&this.getState()!==l.LoadState.Disabled){this.addStyleClass("sapMGTPressActive");if(this.$("hover-overlay").length>0){this.$("hover-overlay").removeClass("sapMGTPressActive");}p=this._getEventParams(i);k=true;}if(k){this.firePress(p);i.preventDefault();}this._updateAriaLabel();};j.prototype.setProperty=function(p){C.prototype.setProperty.apply(this,arguments);if(this.getMode()===l.GenericTileMode.LineMode&&j.LINEMODE_SIBLING_PROPERTIES.indexOf(p)!==-1){this._bUpdateLineTileSiblings=true;}return this;};j.prototype.getHeader=function(){return this._oTitle.getText();};j.prototype.setHeader=function(t){this.setProperty("header",t);this._oTitle.setText(t);return this;};j.prototype.setHeaderImage=function(u){var v=!d(this.getHeaderImage(),u);if(v){if(this._oImage){this._oImage.destroy();this._oImage=undefined;}if(u){this._oImage=a.createControlByURI({id:this.getId()+"-icon-image",src:u},l.Image);this._oImage.addStyleClass("sapMGTHdrIconImage");}}return this.setProperty("headerImage",u);};j.prototype._applyHeaderMode=function(s){if(s){this._oTitle.setProperty("maxLines",4,true);}else{this._oTitle.setProperty("maxLines",5,true);}this._changeTileContentContentVisibility(false);};j.prototype._applyContentMode=function(s){if(s){this._oTitle.setProperty("maxLines",2,true);}else{this._oTitle.setProperty("maxLines",3,true);}this._changeTileContentContentVisibility(true);};j.prototype._changeTileContentContentVisibility=function(v){var t;t=this.getTileContent();for(var i=0;i<t.length;i++){t[i].setRenderContent(v);}};j.prototype._getHeaderAriaAndTooltipText=function(){var t="";var i=true;if(this.getHeader()){t+=this.getHeader();i=false;}if(this.getSubheader()){t+=(i?"":"\n")+this.getSubheader();i=false;}if(this.getImageDescription()){t+=(i?"":"\n")+this.getImageDescription();}return t;};j.prototype._getContentAriaAndTooltipText=function(){var t="";var k=true;var m=this.getTileContent();for(var i=0;i<m.length;i++){if(q.isFunction(m[i]._getAriaAndTooltipText)){t+=(k?"":"\n")+m[i]._getAriaAndTooltipText();}else if(m[i].getTooltip_AsString()){t+=(k?"":"\n")+m[i].getTooltip_AsString();}k=false;}return t;};j.prototype._getAriaAndTooltipText=function(){var A=(this.getTooltip_AsString()&&!this._isTooltipSuppressed())?this.getTooltip_AsString():(this._getHeaderAriaAndTooltipText()+"\n"+this._getContentAriaAndTooltipText());switch(this.getState()){case l.LoadState.Disabled:return"";case l.LoadState.Loading:return A+"\n"+this._sLoading;case l.LoadState.Failed:return A+"\n"+this._oFailedText.getText();default:if(A.trim().length===0){return"";}else{return A;}}};j.prototype._getAriaText=function(){var A=this.getTooltip_Text();var s=this.getAriaLabel();if(!A||this._isTooltipSuppressed()){A=this._getAriaAndTooltipText();}if(this.getScope()===l.GenericTileScope.Actions){A=this._oRb.getText("GENERICTILE_ACTIONS_ARIA_TEXT")+" "+A;}if(s){A=s+" "+A;}return A;};j.prototype._getTooltipText=function(){var t=this.getTooltip_Text();if(this._isTooltipSuppressed()===true){t=null;}return t;};j.prototype._checkFooter=function(t,i){var s=i.getState();var A=this.getScope()===l.GenericTileScope.Actions||this._bShowActionsView===true;if(s===l.LoadState.Failed||A&&s!==l.LoadState.Disabled){t.setRenderFooter(false);}else{t.setRenderFooter(true);}};j.prototype._generateFailedText=function(){var s=this.getFailedText();var i=s?s:this._sFailedToLoad;this._oFailedText.setProperty("text",i,true);this._oFailedText.setAggregation("tooltip",i,true);};j.prototype._isTooltipSuppressed=function(){var t=this.getTooltip_Text();if(t&&t.length>0&&t.trim().length===0){return true;}else{return false;}};j.prototype._isHeaderTextTruncated=function(){var o,m,$,w;if(this.getMode()===l.GenericTileMode.LineMode){$=this.$("hdr-text");if($.length>0){w=Math.ceil($[0].getBoundingClientRect().width);return($[0]&&w<$[0].scrollWidth);}else{return false;}}else{o=this.getAggregation("_titleText").getDomRef("inner");m=this.getAggregation("_titleText").getClampHeight(o);return(m<o.scrollHeight);}};j.prototype._isSubheaderTextTruncated=function(){var s;if(this.getMode()===l.GenericTileMode.LineMode){s=this.$("subHdr-text");}else{s=this.$("subTitle");}if(s.length>0){var w=Math.ceil(s[0].getBoundingClientRect().width);return(s[0]&&w<s[0].scrollWidth);}else{return false;}};j.prototype._setTooltipFromControl=function(){var t="";var i=true;var k=this.getTileContent();if(this._oTitle.getText()){t=this._oTitle.getText();i=false;}if(this.getSubheader()){t+=(i?"":"\n")+this.getSubheader();i=false;}if(this.getScope()!==l.GenericTileScope.Actions&&this.getMode()!==l.GenericTileMode.LineMode){if(k[0]&&k[0].getTooltip_AsString()&&k[0].getTooltip_AsString()!==""){t+=(i?"":"\n")+k[0].getTooltip_AsString();i=false;}if(this.getFrameType()==="TwoByOne"&&k[1]&&k[1].getTooltip_AsString()&&k[1].getTooltip_AsString()!==""){t+=(i?"":"\n")+k[1].getTooltip_AsString();}}if(t&&!this._getTooltipText()&&!this._isTooltipSuppressed()){this.$().attr("title",t.trim());this._bTooltipFromControl=true;}};j.prototype._updateAriaAndTitle=function(){var A=this._getAriaAndTooltipText();var s=this._getAriaText();var t=this.$();if(t.attr("title")!==A){t.attr("aria-label",s);}if(this.getScope()===l.GenericTileScope.Actions){t.find('*:not(.sapMGTRemoveButton)').removeAttr("aria-label").removeAttr("title").unbind("mouseenter");}else{t.find('*').removeAttr("aria-label").removeAttr("title").unbind("mouseenter");}this._setTooltipFromControl();};j.prototype._removeTooltipFromControl=function(){if(this._bTooltipFromControl){this.$().removeAttr("title");this._bTooltipFromControl=false;}};j.prototype._isScreenLarge=function(){return this._getCurrentMediaContainerRange(h).name==="large";};j.prototype._getEventParams=function(E){var p,A=j._Action.Press,s=this.getScope(),o=this.getDomRef();if(s===l.GenericTileScope.Actions&&E.target.id.indexOf("-action-remove")>-1){A=j._Action.Remove;o=this._oRemoveButton.getPopupAnchorDomRef();}else if(s===l.GenericTileScope.Actions){o=this._oMoreIcon.getDomRef();}p={scope:s,action:A,domRef:o};return p;};j.prototype._handleMediaChange=function(){this._bUpdateLineTileSiblings=true;this.invalidate();};j.prototype.setPressEnabled=function(v){this._bTilePress=v;};j.prototype.showActionsView=function(v){if(this._bShowActionsView!==v){this._bShowActionsView=v;this.invalidate();}};return j;});
sap.ui.predefine('sap/m/GenericTileLineModeRenderer',["sap/m/library","sap/base/security/encodeCSS","sap/ui/thirdparty/jquery"],function(l,e,q){"use strict";var G=l.GenericTileScope;var L=l.LoadState;var a={};a.render=function(r,c){var t=c._getTooltipText(),i=c._isScreenLarge(),A=c._getAriaText(),s=e("sapMGTScope"+c.getScope()),h=c.hasListeners("press");this._bRTL=sap.ui.getCore().getConfiguration().getRTL();r.write("<span");r.writeControlData(c);r.writeAttributeEscaped("aria-label",A);if(h){r.writeAttribute("role","button");}else{r.writeAttribute("role","presentation");}r.addClass("sapMGT");r.addClass(s);r.addClass("sapMGTLineMode");this._writeDirection(r);if(t){r.writeAttributeEscaped("title",t);}var S=c.getState();if(S!==L.Disabled){r.addClass("sapMPointer");r.writeAttribute("tabindex","0");}else{r.addClass("sapMGTDisabled");}if(S===L.Failed){r.addClass("sapMGTFailed");}r.writeClasses();r.write(">");if(i){r.write("<div");r.writeAttribute("id",c.getId()+"-startMarker");r.addClass("sapMGTStartMarker");r.writeClasses();r.write("></div>");this._renderFailedIcon(r,c);this._renderHeader(r,c);if(c.getSubheader()){this._renderSubheader(r,c);}r.write("<div");r.writeAttribute("id",c.getId()+"-endMarker");r.addClass("sapMGTEndMarker");r.writeClasses();r.write(">");if(c.getScope()===G.Actions){this._renderActionsScope(r,c);}r.write("</div>");r.write("<div");r.writeAttribute("id",c.getId()+"-styleHelper");r.addClass("sapMGTStyleHelper");r.writeClasses();r.write("></div>");}else{if(c.getState()!==L.Disabled){this._renderFocusDiv(r,c);}r.write("<div");r.writeAttribute("id",c.getId()+"-touchArea");r.addClass("sapMGTTouchArea");r.writeClasses();r.write(">");this._renderFailedIcon(r,c);r.write("<span");r.writeAttribute("id",c.getId()+"-lineModeHelpContainer");r.addClass("sapMGTLineModeHelpContainer");r.writeClasses();r.write(">");this._renderHeader(r,c);if(c.getSubheader()){this._renderSubheader(r,c);}r.write("</span>");if(c.getScope()===G.Actions){this._renderActionsScope(r,c);}r.write("</div>");}r.write("</span>");};a._writeDirection=function(r){if(this._bRTL){r.writeAttribute("dir","rtl");}};a._renderFailedIcon=function(r,c){if(c.getState()===L.Failed){if(c._isCompact()){c._oWarningIcon.setSize("1.25rem");}else{c._oWarningIcon.setSize("1.375rem");}r.renderControl(c._oWarningIcon.addStyleClass("sapMGTLineModeFailedIcon"));}};a._renderHeader=function(r,c){r.write("<span");this._writeDirection(r);r.addClass("sapMGTHdrTxt");r.writeClasses();r.writeAttribute("id",c.getId()+"-hdr-text");r.write(">");r.writeEscaped(c._oTitle.getText());r.write("</span>");};a._renderSubheader=function(r,c){r.write("<span");this._writeDirection(r);r.addClass("sapMGTSubHdrTxt");r.writeClasses();r.writeAttribute("id",c.getId()+"-subHdr-text");r.write(">");r.writeEscaped(c._oSubTitle.getText());r.write("</span>");};a._renderActionsScope=function(r,c){if(c.getState()!==L.Disabled){r.write("<span");r.writeAttribute("id",c.getId()+"-actions");r.addClass("sapMGTActionsContainer");r.writeClasses();r.write(">");r.renderControl(c._oMoreIcon);r.renderControl(c._oRemoveButton);r.write("</span>");}};a._updateHoverStyle=function(){var s=this.$("styleHelper"),o,i=0,h="";s.empty();if(!this._oStyleData||this.$().is(":hidden")){return;}if(this._oStyleData.rtl){s.css("right",-this._oStyleData.positionRight);}else{s.css("left",-this._oStyleData.positionLeft);}for(i;i<this._oStyleData.lines.length;i++){o=this._oStyleData.lines[i];var r=q("<div class='sapMGTLineStyleHelper'><div class='sapMGTLineStyleHelperInner'></div></div>");if(this._oStyleData.rtl){r.css("right",o.offset.x+"px");}else{r.css("left",o.offset.x+"px");}r.css({top:o.offset.y+"px",width:o.width+"px",height:o.height});h+=r.get(0).outerHTML.trim();}s.html(h);};a._renderFocusDiv=function(r,c){r.write("<div");r.writeAttribute("id",c.getId()+"-focus");r.addClass("sapMGTFocusDiv");r.writeClasses();r.write(">");r.write("</div>");};a._getCSSPixelValue=function(o,p){var O=o instanceof q?o:o.$(),m=(O.css(p)||"").match(/([^a-zA-Z\%]*)(.*)/),v=parseFloat(m[1]),u=m[2];return(u==="px")?v:v*16;};return a;},true);
sap.ui.predefine('sap/m/GenericTileRenderer',["sap/m/library","sap/base/security/encodeCSS"],function(l,e){"use strict";var G=l.GenericTileMode;var a=l.GenericTileScope;var L=l.LoadState;var b={};b.render=function(r,c){var t=c._getTooltipText();var A=c._getAriaText();var h=c.getHeaderImage();var H=c.hasListeners("press");var s=c.getState();var S=c.getScope();var d=e("sapMGTState"+s);var f=e("sapMGTScope"+S);r.write("<div");r.writeControlData(c);if(t){r.writeAttributeEscaped("title",t);}r.addClass("sapMGT");r.addClass(d);r.addClass(f);if(S!==a.Actions&&c._bShowActionsView){r.addClass("sapMGTScopeActions");}r.addClass(c.getFrameType());if(H){r.writeAttribute("role","button");}else{r.writeAttribute("role","presentation");}r.writeAttributeEscaped("aria-label",A);if(s!==L.Disabled){r.addClass("sapMPointer");r.writeAttribute("tabindex","0");}if(c.getWidth()){r.write(" style=\"width: "+c.getWidth()+";");}if(c.getBackgroundImage()){r.write(c.getWidth()?" background-image:url('":" style=\"background-image:url('");r.writeEscaped(c.getBackgroundImage());r.write("');\"");r.addClass("sapMGTBackgroundImage");}else{r.write("\"");}if(c.getMode()===G.HeaderMode){r.addClass("sapMGTHeaderMode");}r.writeClasses();r.write(">");r.write("<div");r.addClass("sapMGTHdrContent");r.addClass(c.getFrameType());if(t){r.writeAttributeEscaped("title",t);}r.writeClasses();r.write(">");if(h){r.renderControl(c._oImage);}this._renderHeader(r,c);if(c.getSubheader()){this._renderSubheader(r,c);}r.write("</div>");r.write("<div");r.addClass("sapMGTContent");r.writeClasses();r.writeAttribute("id",c.getId()+"-content");r.write(">");var T=c.getTileContent();var g=T.length;for(var i=0;i<g;i++){c._checkFooter(T[i],c);r.renderControl(T[i]);}r.write("</div>");if(s!==L.Loaded){this._renderStateOverlay(r,c,t);}if(s!==L.Disabled){this._renderHoverOverlay(r,c);this._renderFocusDiv(r,c);}if(S===a.Actions){this._renderActionsScope(r,c);}r.write("</div>");};b._renderFocusDiv=function(r,c){r.write("<div");r.addClass("sapMGTFocusDiv");r.writeClasses();r.writeAttribute("id",c.getId()+"-focus");r.write(">");r.write("</div>");};b._renderStateOverlay=function(r,c,t){var s=c.getState();r.write("<div");r.addClass("sapMGTOverlay");r.writeClasses();r.writeAttribute("id",c.getId()+"-overlay");if(t){r.writeAttributeEscaped("title",t);}r.write(">");switch(s){case L.Loading:c._oBusy.setBusy(s==L.Loading);r.renderControl(c._oBusy);break;case L.Failed:r.write("<div");r.writeAttribute("id",c.getId()+"-failed-ftr");r.addClass("sapMGenericTileFtrFld");r.writeClasses();r.write(">");r.write("<div");r.writeAttribute("id",c.getId()+"-failed-icon");r.addClass("sapMGenericTileFtrFldIcn");r.writeClasses();r.write(">");r.renderControl(c._oWarningIcon);r.write("</div>");if(c.getScope()!==a.Actions&&!c._bShowActionsView){r.write("<div");r.writeAttribute("id",c.getId()+"-failed-text");r.addClass("sapMGenericTileFtrFldTxt");r.writeClasses();r.write(">");r.renderControl(c.getAggregation("_failedMessageText"));r.write("</div>");}r.write("</div>");break;default:}r.write("</div>");};b._renderActionsScope=function(r,c){if(c.getState()!==L.Disabled){r.renderControl(c._oRemoveButton);r.renderControl(c._oMoreIcon);}};b._renderHoverOverlay=function(r,c){r.write("<div");if(c.getBackgroundImage()){r.addClass("sapMGTWithImageHoverOverlay");}else{r.addClass("sapMGTWithoutImageHoverOverlay");}r.writeClasses();r.writeAttribute("id",c.getId()+"-hover-overlay");r.write(">");r.write("</div>");};b._renderHeader=function(r,c){r.write("<div");r.addClass("sapMGTHdrTxt");r.writeClasses();r.writeAttribute("id",c.getId()+"-hdr-text");r.write(">");r.renderControl(c._oTitle);r.write("</div>");};b._renderSubheader=function(r,c){r.write("<div");r.addClass("sapMGTSubHdrTxt");r.writeClasses();r.writeAttribute("id",c.getId()+"-subHdr-text");r.write(">");r.renderControl(c._oSubTitle);r.write("</div>");};return b;},true);
sap.ui.predefine('sap/m/GroupHeaderListItem',["sap/ui/core/library","./library","./ListItemBase","./GroupHeaderListItemRenderer"],function(c,l,L,G){"use strict";var a=l.ListMode;var T=c.TextDirection;var b=L.extend("sap.m.GroupHeaderListItem",{metadata:{library:"sap.m",properties:{title:{type:"string",group:"Data",defaultValue:null},count:{type:"string",group:"Data",defaultValue:null},upperCase:{type:"boolean",group:"Appearance",defaultValue:false},titleTextDirection:{type:"sap.ui.core.TextDirection",group:"Appearance",defaultValue:T.Inherit}}}});b.prototype.getMode=function(){return a.None;};b.prototype.shouldClearLastValue=function(){return true;};b.prototype.getTable=function(){var p=this.getParent();if(p&&p.isA("sap.m.Table")){return p;}};b.prototype.onBeforeRendering=function(){var t=this.getTable();if(t){t.getColumns().forEach(function(C){C.clearLastValue();});this.TagName="tr";}};b.prototype.getAccessibilityType=function(B){var t=this.getTable()?"ROW":"OPTION";return B.getText("LIST_ITEM_GROUP_HEADER")+" "+B.getText("ACC_CTR_TYPE_"+t);};b.prototype.getContentAnnouncement=function(){return this.getTitle();};b.prototype.getGroupAnnouncement=function(){};return b;});
sap.ui.predefine('sap/m/GroupHeaderListItemRenderer',["sap/ui/core/library","sap/ui/core/Renderer","./ListItemBaseRenderer"],function(c,R,L){"use strict";var T=c.TextDirection;var G=R.extend(L);G.renderType=function(r,l){var t=l.getTable();t&&r.write('<td class="sapMListTblNavCol">');L.renderType.apply(this,arguments);t&&r.write('</td>');};G.renderCounter=function(r,l){};G.renderLIAttributes=function(r,l){r.addClass("sapMGHLI");if(l.getUpperCase()){r.addClass("sapMGHLIUpperCase");}};G.renderLIContentWrapper=function(r,l){var t=l.getTable();if(t){r.write('<td class="sapMGHLICell"');r.writeAttribute("colspan",t.getColSpan());r.write(">");}L.renderLIContentWrapper.apply(this,arguments);if(t){r.write("</td>");}};G.renderLIContent=function(r,l){var t=l.getTitleTextDirection();r.write("<span class='sapMGHLITitle'");if(t!=T.Inherit){r.writeAttribute("dir",t.toLowerCase());}r.write(">");r.writeEscaped(l.getTitle());r.write("</span>");var C=l.getCount()||l.getCounter();if(C){r.write("<span class='sapMGHLICounter'>");r.writeEscaped(" ("+C+")");r.write("</span>");}};G.addLegacyOutlineClass=function(r,l){if(!l.getTable()){L.addLegacyOutlineClass.apply(this,arguments);}};G.getAriaRole=function(l){if(l.getTable()){return"row";}return L.getAriaRole.apply(this,arguments);};return G;},true);
sap.ui.predefine('sap/m/GrowingEnablement',['sap/ui/base/Object','sap/ui/core/format/NumberFormat','sap/m/library','sap/ui/model/ChangeReason','sap/ui/base/ManagedObjectMetadata','sap/ui/core/HTML','sap/m/CustomListItem',"sap/base/security/encodeXML"],function(B,N,l,C,M,H,a,e){"use strict";var L=l.ListType;var b=l.ListGrowingDirection;var G=B.extend("sap.m.GrowingEnablement",{constructor:function(c){B.apply(this);this._oControl=c;this._oControl.bUseExtendedChangeDetection=true;this._oControl.addDelegate(this);var r=this._oControl.getItems(true).length;this._iRenderedDataItems=r;this._iLimit=r;this._bLoading=false;this._sGroupingPath="";this._bDataRequested=false;this._oContainerDomRef=null;this._iLastItemsCount=0;this._iTriggerTimer=0;this._aChunk=[];this._oRM=null;},destroy:function(){if(this._oTrigger){this._oTrigger.destroy();this._oTrigger=null;}if(this._oScrollDelegate){this._oScrollDelegate.setGrowingList(null);this._oScrollDelegate=null;}if(this._oRM){this._oRM.destroy();this._oRM=null;}this._oControl.$("triggerList").remove();this._oControl.bUseExtendedChangeDetection=false;this._oControl.removeDelegate(this);this._oContainerDomRef=null;this._oControl=null;},render:function(r){r.openStart("div",this._oControl.getId()+"-triggerList");r.class("sapMListUl").class("sapMGrowingList");r.style("display","none");r.openEnd();r.renderControl(this._getTrigger());r.close("div");},onAfterRendering:function(){var c=this._oControl;if(c.getGrowingScrollToLoad()){var s=l.getScrollDelegate(c);if(s){this._oScrollDelegate=s;s.setGrowingList(this.onScrollToLoad.bind(this),c.getGrowingDirection());}}else if(this._oScrollDelegate){this._oScrollDelegate.setGrowingList(null);this._oScrollDelegate=null;}if(!this._bLoading){this._updateTriggerDelayed(false);}},setTriggerText:function(t){this._oControl.$("triggerText").text(t);},reset:function(){this._iLimit=0;var o=this._oControl.getBindingInfo("items");this._oControl.oExtendedChangeDetectionConfig=(!o||!o.template)?null:{replace:true};},shouldReset:function(c){var m=C;return c==m.Sort||c==m.Filter||c==m.Context;},getInfo:function(){return{total:this._oControl.getMaxItemsCount(),actual:this._iRenderedDataItems};},onScrollToLoad:function(){if(this._bLoading){return;}if(this._oControl.getGrowingDirection()==b.Upwards){var s=this._oScrollDelegate;this._oScrollPosition={left:s.getScrollLeft(),top:s.getScrollHeight()};}this.requestNewPage();},requestNewPage:function(){if(!this._oControl||this._bLoading){return;}var o=this._oControl.getBinding("items");if(o&&!o.isLengthFinal()||this._iLimit<this._oControl.getMaxItemsCount()){this._oControl._bBusy=true;this._iLimit+=this._oControl.getGrowingThreshold();this._updateTriggerDelayed(true);this.updateItems("Growing");}},_onBeforePageLoaded:function(c){this._bLoading=true;this._oControl.onBeforePageLoaded(this.getInfo(),c);},_onAfterPageLoaded:function(c){this._bLoading=false;this._updateTriggerDelayed(false);this._oControl.onAfterPageLoaded(this.getInfo(),c);},_getTrigger:function(){var t=this._oControl.getId()+"-trigger",T=this._oControl.getGrowingTriggerText();T=T||sap.ui.getCore().getLibraryResourceBundle("sap.m").getText("LOAD_MORE_DATA");this._oControl.addNavSection(t);if(this._oTrigger){this.setTriggerText(T);return this._oTrigger;}this._oTrigger=new a({id:t,busyIndicatorDelay:0,type:L.Active,content:new H({content:'<div class="sapMGrowingListTrigger">'+'<div class="sapMSLIDiv sapMGrowingListTriggerText">'+'<span class="sapMSLITitle" id="'+t+'Text">'+e(T)+'</span>'+'</div>'+'<div class="sapMGrowingListDescription sapMSLIDescription" id="'+t+'Info"></div>'+'</div>'})}).setParent(this._oControl,null,true).attachPress(this.requestNewPage,this).addDelegate({onsapenter:function(E){this.requestNewPage();E.preventDefault();},onsapspace:function(E){this.requestNewPage();E.preventDefault();},onAfterRendering:function(E){var $=this._oTrigger.$();$.removeAttr("aria-selected");$.attr({"tabindex":0,"role":"button","aria-labelledby":t+"Text"+" "+t+"Info"});}},this);this._oTrigger.getList=function(){};this._oTrigger.TagName="div";return this._oTrigger;},_getListItemInfo:function(){return("[ "+this._iRenderedDataItems+" / "+N.getFloatInstance().format(this._oControl.getMaxItemsCount())+" ]");},_getGroupingPath:function(o){var s=o.aSorters||[];var S=s[0]||{};return(S.fnGroup)?S.sPath||"":"";},_getDomIndex:function(i){if(typeof i!="number"){return i;}if(this._oControl.hasPopin&&this._oControl.hasPopin()){return(i*2);}return i;},_getHasScrollbars:function(){if(!this._oScrollDelegate){return false;}if(this._iRenderedDataItems>=40){return true;}return this._oScrollDelegate.getMaxScrollTop()>this._oControl.getDomRef("triggerList").clientHeight;},destroyListItems:function(s){this._oControl.destroyItems(s);this._iRenderedDataItems=0;this._aChunk=[];},addListItem:function(c,o,s){var d=this._oControl,f=o.binding,i=this.createListItem(c,o);if(f.isGrouped()){var I=d.getItems(true),g=I[I.length-1],m=o.model,h=f.getGroup(i.getBindingContext(m));if(g&&g.isGroupHeader()){d.removeAggregation("items",g,true);this._fnAppendGroupItem=this.appendGroupItem.bind(this,h,g,s);g=I[I.length-1];}if(!g||h.key!==f.getGroup(g.getBindingContext(m)).key){var j=(o.groupHeaderFactory)?o.groupHeaderFactory(h):null;if(d.getGrowingDirection()==b.Upwards){this.applyPendingGroupItem();this._fnAppendGroupItem=this.appendGroupItem.bind(this,h,j,s);}else{this.appendGroupItem(h,j,s);}}}d.addAggregation("items",i,s);if(s){this._aChunk.push(i);}},applyPendingGroupItem:function(){if(this._fnAppendGroupItem){this._fnAppendGroupItem();this._fnAppendGroupItem=undefined;}},appendGroupItem:function(g,o,s){o=this._oControl.addItemGroup(g,o,s);if(s){this._aChunk.push(o);}},createListItem:function(c,o){this._iRenderedDataItems++;var i=o.factory(M.uid("clone"),c);return i.setBindingContext(c,o.model);},updateItemsBindingContext:function(d,m){if(!d.length){return;}var I=this._oControl.getItems(true);for(var i=0,c=0,o;i<I.length;i++){o=I[i];if(!o.isGroupHeader()){o.setBindingContext(d[c++],m);}}},applyChunk:function(I,d){this.applyPendingGroupItem();var c=this._aChunk.length;if(!c){return;}if(this._oControl.getGrowingDirection()==b.Upwards){this._aChunk.reverse();if(I===true){I=0;}else if(typeof I=="number"){I=this._iRenderedDataItems-c-I;}}d=d||this._oContainerDomRef;this._oRM=this._oRM||sap.ui.getCore().createRenderManager();for(var i=0;i<c;i++){this._oRM.renderControl(this._aChunk[i]);}this._oRM.flush(d,false,this._getDomIndex(I));this._aChunk=[];},addListItems:function(c,o,s){for(var i=0;i<c.length;i++){this.addListItem(c[i],o,s);}},rebuildListItems:function(c,o,s){this.destroyListItems(s);this.addListItems(c,o,s);if(s){var h=this._oContainerDomRef.contains(document.activeElement);this.applyChunk(false);h&&this._oControl.focus();}else{this.applyPendingGroupItem();}},insertListItem:function(c,o,i){var I=this.createListItem(c,o);this._oControl.insertAggregation("items",I,i,true);this._aChunk.push(I);},deleteListItem:function(i){this._oControl.getItems(true)[i].destroy(true);this._iRenderedDataItems--;},refreshItems:function(c){if(!this._bDataRequested){this._bDataRequested=true;this._onBeforePageLoaded(c);}if(!this._iLimit||this.shouldReset(c)||!this._oControl.getItems(true).length){this._iLimit=this._oControl.getGrowingThreshold();}this._oControl.getBinding("items").getContexts(0,this._iLimit);},updateItems:function(c){var o=this._oControl,d=o.getBinding("items"),f=o.getBindingInfo("items"),I=o.getItems(true);if(!this._iLimit||this.shouldReset(c)||!I.length){this._iLimit=o.getGrowingThreshold();}if(this._bDataRequested){this._bDataRequested=false;}else{this._onBeforePageLoaded(c);}var g=d.getContexts(0,this._iLimit)||[];if(g.dataRequested){this._bDataRequested=true;if(g.diff&&!g.diff.length){return;}}this._oContainerDomRef=o.getItemsContainerDomRef();var D=g.diff,F=false,v;if(!g.length){this.destroyListItems();}else if(!this._oContainerDomRef){this.rebuildListItems(g,f);}else if(!D||!I.length&&D.length){this.rebuildListItems(g,f,true);}else if(d.isGrouped()||o.checkGrowingFromScratch()){if(this._sGroupingPath!=this._getGroupingPath(d)){F=true;}else{for(var i=0;i<D.length;i++){var h=D[i],j=g[h.index];if(h.type=="delete"||h.type=="replace"){F=true;break;}else if(h.index!=this._iRenderedDataItems){F=true;break;}else{this.addListItem(j,f,true);v=true;}}}}else{if(this._sGroupingPath){o.removeGroupHeaders(true);}v=-1;var k=-1;for(var i=0;i<D.length;i++){var h=D[i],m=h.index,j=g[m];if(h.type=="delete"){if(v!=-1){this.applyChunk(v);k=-1;v=-1;}this.deleteListItem(m);}else if(h.type=="insert"){if(v==-1){v=m;}else if(k>-1&&m!=k+1){this.applyChunk(v);v=m;}this.insertListItem(j,f,m);k=m;}}}if(F){this.rebuildListItems(g,f,true);}else if(this._oContainerDomRef&&D){this.updateItemsBindingContext(g,f.model);this.applyChunk(v);}this._oContainerDomRef=null;this._sGroupingPath=this._getGroupingPath(d);if(!this._bDataRequested){this._onAfterPageLoaded(c);}},_updateTriggerDelayed:function(c){if(this._oControl.getGrowingScrollToLoad()){this._iTriggerTimer&&window.cancelAnimationFrame(this._iTriggerTimer);this._iTriggerTimer=window.requestAnimationFrame(this._updateTrigger.bind(this,c));}else{this._updateTrigger(c);}},_updateTrigger:function(c){var t=this._oTrigger,o=this._oControl,v=o&&o.getVisibleItems().length>0;if(!t||!o||!v||!o.shouldRenderItems()||!o.getDomRef()){return;}var d=o.getBinding("items");if(!d){return;}t.setBusy(c);t.$().toggleClass("sapMGrowingListBusyIndicatorVisible",c);if(c){t.setActive(false);o.$("triggerList").css("display","");}else{var i=o.getItems(true),I=i.length,f=d.getLength()||0,g=d.isLengthFinal(),h=o.getGrowingScrollToLoad(),T=t.getDomRef();if(T&&T.contains(document.activeElement)){(i[this._iLastItemsCount]||i[I-1]||o).focus();}if(!I||!this._iLimit||(g&&this._iLimit>=f)||(h&&this._getHasScrollbars())){o.$("triggerList").css("display","none");}else{if(g){o.$("triggerInfo").css("display","block").text(this._getListItemInfo());}t.$().removeClass("sapMGrowingListBusyIndicatorVisible");o.$("triggerList").css("display","");}this._iLastItemsCount=this._oControl.getItems(true).length;if(h&&this._oScrollPosition===undefined&&o.getGrowingDirection()==b.Upwards){this._oScrollPosition={left:0,top:0};}if(I>0&&this._oScrollPosition){var s=this._oScrollDelegate,S=this._oScrollPosition;s.scrollTo(S.left,s.getScrollHeight()-S.top);this._oScrollPosition=null;}}}});return G;});
sap.ui.predefine('sap/m/HBox',['./FlexBox','./library','./HBoxRenderer'],function(F,l,H){"use strict";var a=F.extend("sap.m.HBox",{metadata:{library:"sap.m",designtime:"sap/m/designtime/HBox.designtime"}});return a;});
sap.ui.predefine('sap/m/HBoxRenderer',['./FlexBoxRenderer'],function(F){"use strict";var H={apiVersion:2};H.render=function(r,c){F.render.apply(this,[r,c]);};return H;},true);
sap.ui.predefine('sap/m/HyphenationSupport',["sap/ui/core/Core","./library","sap/ui/core/hyphenation/Hyphenation","sap/base/Log"],function(C,l,H,L){"use strict";var W=l.WrappingType;function i(o){if(!o.isA("sap.m.IHyphenation")){L.error("[UI5 Hyphenation] The given control does not implement interface sap.m.IHyphenation and can not use HyphenationSupport mixin.");return false;}return true;}function a(o,k){var t=o.getTextsToBeHyphenated();if(typeof t!=="object"){L.error("[UI5 Hyphenation] The result of getTextsToBeHyphenated method is not a map object.",o.getId());return false;}if(Object.keys(t).indexOf(k)<0){L.error("[UI5 Hyphenation] The key "+k+" is not found in the result of getTextsToBeHyphenated method.",o.getId());return false;}return true;}function s(D,n){n=n||"";var f=D.childNodes;if(f.length===1&&f[0].nodeType===window.Node.TEXT_NODE){f[0].nodeValue=n;}else{D.textContent=n;}}function d(t,T){var D=[];Object.keys(t).forEach(function(k){if(!(k in T&&t[k]===T[k])){D.push(k);}});return D;}function b(){var f=C.getConfiguration().getHyphenation(),o=H.getInstance();if(f==="native"||f==="disable"){return false;}if(f==="thirdparty"){return true;}return o.isLanguageSupported()&&!o.canUseNativeHyphenation()&&o.canUseThirdPartyHyphenation();}function c(o){var f=C.getConfiguration().getHyphenation();if(f==='disable'){return false;}if(o.getWrappingType()===W.Hyphenated&&!o.getWrapping()){L.warning("[UI5 Hyphenation] The property wrappingType=Hyphenated will not take effect unless wrapping=true.",o.getId());}return o.getWrapping()&&o.getWrappingType()===W.Hyphenated;}function h(o){if(!c(o)||!b()){o._mHyphenatedTexts={};o._mUnhyphenatedTexts={};return;}var t=o.getTextsToBeHyphenated(),f=d(t,o._mUnhyphenatedTexts);if(f.length>0){o._mUnhyphenatedTexts=t;f.forEach(function(k){delete o._mHyphenatedTexts[k];});var g=H.getInstance();if(!g.isLanguageInitialized()){g.initialize().then(function(){var D=o.isActive()?o.getDomRefsForHyphenatedTexts():null,n=false;f.forEach(function(k){o._mHyphenatedTexts[k]=g.hyphenate(t[k]);if(D&&k in D){s(D[k],o._mHyphenatedTexts[k]);}else{n=true;}});if(n){o.invalidate();}});}else{f.forEach(function(k){o._mHyphenatedTexts[k]=g.hyphenate(t[k]);});}}}var e={};e.mixInto=function(o){if(!i(o)){return;}var I=o.init;o.init=function(f){var r=I.apply(this,arguments);this._mHyphenatedTexts={};this._mUnhyphenatedTexts={};return r;};var O=o.onBeforeRendering;o.onBeforeRendering=function(){var r=O.apply(this,arguments);h(this);return r;};};e.writeHyphenationClass=function(r,o){if(!i(o)){return;}if(c(o)&&!b()){r.class("sapUiHyphenation");}};e.getTextForRender=function(o,k){if(!i(o)){return null;}if(!a(o,k)){return null;}var t=o.getTextsToBeHyphenated();if(c(o)&&b()){if(t[k]!==o._mUnhyphenatedTexts[k]){h(o);}if(k in o._mHyphenatedTexts){return o._mHyphenatedTexts[k];}}return t[k];};return e;});
sap.ui.predefine('sap/m/Image',['./library','sap/ui/core/Control','sap/ui/base/DataType','./ImageRenderer',"sap/ui/events/KeyCodes","sap/ui/thirdparty/jquery","sap/base/security/encodeCSS"],function(l,C,D,I,K,q,e){"use strict";var a=l.ImageMode;var b=C.extend("sap.m.Image",{metadata:{interfaces:["sap.ui.core.IFormContent"],library:"sap.m",designtime:"sap/m/designtime/Image.designtime",properties:{src:{type:"sap.ui.core.URI",group:"Data",defaultValue:null},width:{type:"sap.ui.core.CSSSize",group:"Appearance",defaultValue:null},height:{type:"sap.ui.core.CSSSize",group:"Appearance",defaultValue:null},decorative:{type:"boolean",group:"Accessibility",defaultValue:true},alt:{type:"string",group:"Accessibility",defaultValue:null},useMap:{type:"string",group:"Misc",defaultValue:null},densityAware:{type:"boolean",group:"Misc",defaultValue:false},activeSrc:{type:"sap.ui.core.URI",group:"Data",defaultValue:""},mode:{type:"sap.m.ImageMode",group:"Misc",defaultValue:"Image"},backgroundSize:{type:"string",group:"Appearance",defaultValue:"cover"},backgroundPosition:{type:"string",group:"Appearance",defaultValue:"initial"},backgroundRepeat:{type:"string",group:"Appearance",defaultValue:"no-repeat"}},aggregations:{detailBox:{type:'sap.m.LightBox',multiple:false,bindable:"bindable"}},associations:{ariaDescribedBy:{type:"sap.ui.core.Control",multiple:true,singularName:"ariaDescribedBy"},ariaLabelledBy:{type:"sap.ui.core.Control",multiple:true,singularName:"ariaLabelledBy"}},events:{tap:{},press:{},load:{},error:{}},dnd:{draggable:true,droppable:false}}});b._currentDevicePixelRatio=(function(){var r=(window.devicePixelRatio===undefined?1:window.devicePixelRatio);if(r<=1){r=1;}else{r*=2;r=Math.round(r);r/=2;}if(r>2){r=2;}return r;}());b.prototype.onload=function(E){var w,h;if(!this._defaultEventTriggered){this._defaultEventTriggered=true;}this._bVersion2Tried=false;var d=this.$(),o=d[0];if(this.getMode()===a.Background){d.css("background-image","url(\""+e(this._oImage.src)+"\")");}if(!this._isWidthOrHeightSet()){if(this._iLoadImageDensity>1){w=Math.round(o.getBoundingClientRect().width);h=Math.round(o.getBoundingClientRect().height);if((w===o.naturalWidth)&&(h===o.naturalHeight)){d.width(w/this._iLoadImageDensity);}}}d.removeClass("sapMNoImg");this.fireLoad();};b.prototype.onerror=function(E){if(!this._defaultEventTriggered){this._defaultEventTriggered=true;}var $=this.$(),m=this.getMode(),s=(m===a.Image)?this._getDomImg().attr("src"):this._oImage.src,d=b._currentDevicePixelRatio,c=this._isActiveState?this.getActiveSrc():this.getSrc();$.addClass("sapMNoImg");if(!s||this._iLoadImageDensity===1){if(this.getAlt()&&!this.getDecorative()){$.removeClass("sapMNoImg");}this.fireError();return;}if(d===2||d<1){this._iLoadImageDensity=1;this._updateDomSrc(this._generateSrcByDensity(c,1));}else if(d===1.5){if(this._bVersion2Tried){setTimeout(q.proxy(function(){this._iLoadImageDensity=1;this._updateDomSrc(this._generateSrcByDensity(c,1));},this),0);}else{setTimeout(q.proxy(function(){this._iLoadImageDensity=2;this._updateDomSrc(this._generateSrcByDensity(c,2));this._bVersion2Tried=true;},this),0);}}};b.prototype.setDetailBox=function(L){var c=this.getDetailBox();if(L){if(L===c){return this;}if(c){this.detachPress(this._fnLightBoxOpen,c);}this._fnLightBoxOpen=L.open;this.attachPress(this._fnLightBoxOpen,L);}else if(this._fnLightBoxOpen){this.detachPress(this._fnLightBoxOpen,c);this._fnLightBoxOpen=null;}return this.setAggregation("detailBox",L);};b.prototype.clone=function(){var c=C.prototype.clone.apply(this,arguments),o=c.getDetailBox();if(o){c.detachPress(this._fnLightBoxOpen,this.getDetailBox());c._fnLightBoxOpen=o.open;c.attachPress(c._fnLightBoxOpen,o);}return c;};b.prototype.onBeforeRendering=function(){this._defaultEventTriggered=false;if(this.getMode()==a.Image){var d=this.getDetailBox()?this.$().find(".sapMImg"):this.$();d.off("load").off("error");}};b.prototype.onAfterRendering=function(){var d=this.getDetailBox()?this.$().find(".sapMImg"):this.$(),m=this.getMode(),o;if(m===a.Image){d.on("load",q.proxy(this.onload,this));d.on("error",q.proxy(this.onerror,this));o=d[0];}if(m===a.Background){o=this._oImage;}if(o&&o.complete&&!this._defaultEventTriggered){if(o.naturalWidth>0){this.onload({});}else{this.onerror({});}}};b.prototype.exit=function(){if(this._oImage){q(this._oImage).off("load",this.onload).off("error",this.onerror);this._oImage=null;}else{this.$().off("load",this.onload).off("error",this.onerror);}if(this._fnLightBoxOpen){this._fnLightBoxOpen=null;}};b.prototype.ontouchstart=function(E){if(E.srcControl.mEventRegistry["press"]||E.srcControl.mEventRegistry["tap"]){E.setMarked();}if(E.targetTouches.length===1&&this.getActiveSrc()){this._updateDomSrc(this._getDensityAwareActiveSrc());this._isActiveState=true;}};b.prototype.ontouchend=function(E){if(E.targetTouches.length===0&&this.getActiveSrc()){this._isActiveState=false;this._updateDomSrc(this._getDensityAwareSrc());this.$().removeClass("sapMNoImg");}};b.prototype.attachPress=function(){Array.prototype.unshift.apply(arguments,["press"]);C.prototype.attachEvent.apply(this,arguments);if(this.hasListeners("press")){this.$().attr("tabindex","0");this.$().attr("role","button");}return this;};b.prototype.detachPress=function(){Array.prototype.unshift.apply(arguments,["press"]);C.prototype.detachEvent.apply(this,arguments);if(!this.hasListeners("press")){this.$().removeAttr("tabindex");if(this.getDecorative()){this.$().attr("role","presentation");}else{this.$().removeAttr("role");}}return this;};b.prototype.ontap=function(E){this.fireTap({});this.firePress({});};b.prototype.onkeyup=function(E){if(E.which===K.SPACE||E.which===K.ENTER){this.firePress({});E.stopPropagation();}};b.prototype.onsapspace=function(E){E.preventDefault();};b.prototype._updateDomSrc=function(s){var d=this.$(),m=this.getMode();if(d.length){if(m===a.Image){this._getDomImg().attr("src",s);}else{d.addClass("sapMNoImg");q(this._oImage).attr("src",s);}}};b.prototype._getDomImg=function(){var d=this.$();return this.getDetailBox()?d.children("img"):d;};b.prototype._preLoadImage=function(s){if(this.getMode()!==a.Background){return;}var $=q(this._oImage);if(!this._oImage){this._oImage=new window.Image();$=q(this._oImage);$.on("load",q.proxy(this.onload,this)).on("error",q.proxy(this.onerror,this));}this._oImage.src=s;};b.prototype._isWidthOrHeightSet=function(){return(this.getWidth()&&this.getWidth()!=='')||(this.getHeight()&&this.getHeight()!=='');};b.prototype._getDensityAwareSrc=function(){var s=this.getSrc(),c=this.getDensityAware(),d=c?b._currentDevicePixelRatio:1;this._iLoadImageDensity=d;return this._generateSrcByDensity(s,d);};b.prototype._getDensityAwareActiveSrc=function(){var A=this.getActiveSrc(),c=this.getDensityAware(),d=c?b._currentDevicePixelRatio:1;this._iLoadImageDensity=d;return this._generateSrcByDensity(A,d);};b.prototype._generateSrcByDensity=function(s,d){if(!s){return"";}if(this._isDataUri(s)){this._iLoadImageDensity=1;return s;}if(d===1){return s;}var L=s.lastIndexOf("."),c=s.lastIndexOf("/"),n=s.substring(0,L),E=s.substring(L);if(L===-1||(c>L)){return s+"@"+d;}n=n+"@"+d;return n+E;};b.prototype._isDataUri=function(s){return s?s.indexOf("data:")===0:false;};b.prototype._isValidBackgroundSizeValue=function(v){var w=/\s+/g;v=q.trim(v).replace(w," ");return i(v.split(" "),["auto","cover","contain","initial"])||D.getType("sap.ui.core.CSSSizeShortHand").isValid(v);};b.prototype._isValidBackgroundPositionValue=function(v){var w=/\s+/g;v=q.trim(v).replace(w," ");return i(v.split(" "),["left","right","top","center","bottom","initial"])||D.getType("sap.ui.core.CSSSizeShortHand").isValid(v);};b.prototype.getAccessibilityInfo=function(){var h=this.hasListeners("press");if(this.getDecorative()&&!this.getUseMap()&&!h){return null;}return{role:h?"button":"img",type:sap.ui.getCore().getLibraryResourceBundle("sap.m").getText(h?"ACC_CTR_TYPE_BUTTON":"ACC_CTR_TYPE_IMAGE"),description:this.getAlt()||this.getTooltip_AsString()||"",focusable:h};};b.prototype.getFocusDomRef=function(){return this.getDomRef("inner")||this.getDomRef();};b.prototype.getFormDoNotAdjustWidth=function(){return true;};function i(t,r){function c(T){return r.indexOf(T)<0;}return t&&r&&!t.some(c);}return b;});
sap.ui.predefine('sap/m/ImageContent',['./library','sap/ui/core/Control','sap/m/Image','sap/ui/core/IconPool','sap/ui/Device','./ImageContentRenderer',"sap/ui/events/KeyCodes"],function(l,C,I,a,D,b,K){"use strict";var c=C.extend("sap.m.ImageContent",{metadata:{library:"sap.m",properties:{src:{type:"sap.ui.core.URI",group:"Appearance",defaultValue:null},description:{type:"string",group:"Accessibility",defaultValue:null}},defaultAggregation:"_content",aggregations:{_content:{type:"sap.ui.core.Control",multiple:false,visibility:"hidden"}},events:{press:{}}}});c.prototype.onBeforeRendering=function(){var i,u,d;i=this.getAggregation("_content");u=this.getSrc();d=this.getDescription();if(!i||u!==i.getSrc()||d!==i.getAlt()){if(i){i.destroy();i=null;}i=a.createControlByURI({id:this.getId()+"-icon-image",src:u,alt:d,decorative:true},I);this.setAggregation("_content",i,true);this._setPointerOnImage();}if(d){this.setTooltip(d.trim());}};c.prototype._setPointerOnImage=function(){var i=this.getAggregation("_content");if(i&&this.hasListeners("press")){i.addStyleClass("sapMPointer");}else if(i&&i.hasStyleClass("sapMPointer")){i.removeStyleClass("sapMPointer");}};c.prototype.ontap=function(e){if(D.browser.msie){this.$().focus();}this.firePress();};c.prototype.onkeydown=function(e){if(e.which===K.ENTER||e.which===K.SPACE){this.firePress();e.preventDefault();}};c.prototype.attachEvent=function(e,d,f,g){C.prototype.attachEvent.call(this,e,d,f,g);if(this.hasListeners("press")){this.$().attr("tabindex",0).addClass("sapMPointer");this._setPointerOnImage();}return this;};c.prototype.detachEvent=function(e,f,d){C.prototype.detachEvent.call(this,e,f,d);if(!this.hasListeners("press")){this.$().removeAttr("tabindex").removeClass("sapMPointer");this._setPointerOnImage();}return this;};c.prototype.getAltText=function(){var o=this.getAggregation("_content");if(o&&o.getAlt()!==""){return o.getAlt();}else if(o&&o.getAccessibilityInfo()){return o.getAccessibilityInfo().description;}else{return"";}};return c;});
sap.ui.predefine('sap/m/ImageContentRenderer',[],function(){"use strict";var I={};I.render=function(r,c){r.write("<div");r.writeControlData(c);r.addClass("sapMImageContent");var t=c.getTooltip_AsString();if(t){r.writeAttributeEscaped("title",t);}if(c.hasListeners("press")){r.addClass("sapMPointer");r.writeAttribute("tabindex","0");}r.writeClasses();r.write(">");var C=c.getAggregation("_content");if(C){C.addStyleClass("sapMImageContentImageIcon");r.renderControl(C);}r.write("</div>");};return I;},true);
sap.ui.predefine('sap/m/ImageRenderer',['sap/m/library',"sap/base/security/encodeCSS"],function(l,e){"use strict";var I=l.ImageMode;var a={apiVersion:2};a.render=function(r,i){var m=i.getMode(),b=i.getAlt(),t=i.getTooltip_AsString(),h=i.hasListeners("press"),L=i.getDetailBox(),u=i.getUseMap(),c=i.getAriaLabelledBy(),d=i.getAriaDescribedBy(),f=m===I.Image;if(L){r.openStart("span",i);r.class("sapMLightBoxImage");r.openEnd();r.openStart("span").class("sapMLightBoxMagnifyingGlass").openEnd().close("span");}if(f){r.voidStart("img",!L?i:i.getId()+"-inner");}else{r.openStart("span",!L?i:i.getId()+"-inner");}if(!i.getDecorative()&&c&&c.length>0){r.attr("aria-labelledby",c.join(" "));}if(!i.getDecorative()&&d&&d.length>0){r.attr("aria-describedby",d.join(" "));}if(f){r.attr("src",i._getDensityAwareSrc());}else{i._preLoadImage(i._getDensityAwareSrc());if(i._isValidBackgroundSizeValue(i.getBackgroundSize())){r.style("background-size",i.getBackgroundSize());}if(i._isValidBackgroundPositionValue(i.getBackgroundPosition())){r.style("background-position",i.getBackgroundPosition());}r.style("background-repeat",e(i.getBackgroundRepeat()));}r.class("sapMImg");if(i.hasListeners("press")||i.hasListeners("tap")){r.class("sapMPointer");}if(u||!i.getDecorative()||h){r.class("sapMImgFocusable");}if(u){if(!(u.startsWith("#"))){u="#"+u;}r.attr("usemap",u);}if(i.getDecorative()&&!u&&!h){r.attr("role","presentation");r.attr("aria-hidden","true");r.attr("alt","");}else if(b||t){r.attr("alt",b||t);}if(b||t){r.attr("aria-label",b||t);}if(t){r.attr("title",t);}if(h){r.attr("role","button");r.attr("tabindex",0);}r.style("width",i.getWidth());r.style("height",i.getHeight());f?r.voidEnd():r.openEnd().close("span");if(L){r.close("span");}};return a;},true);
sap.ui.predefine('sap/m/Input',['./InputBase','./Popover','sap/ui/core/Item','./ColumnListItem','./GroupHeaderListItem','./DisplayListItem','./StandardListItem','sap/ui/core/SeparatorItem','./List','./Table','./library','sap/ui/core/IconPool','sap/ui/Device','sap/ui/core/Control','./SuggestionsPopover','./Toolbar','./ToolbarSpacer','./Button',"sap/ui/dom/containsOrEquals","sap/base/assert","sap/base/util/deepEqual","./InputRenderer","sap/ui/thirdparty/jquery","sap/ui/base/ManagedObject","sap/ui/dom/jquery/selectText"],function(I,P,a,C,G,D,S,b,L,T,l,c,d,e,f,g,h,B,j,k,m,n,q,M){"use strict";var o=l.ListType;var p=l.InputTextFormatMode;var r=l.InputType;var s=I.extend("sap.m.Input",{metadata:{interfaces:["sap.m.IToolbarInteractiveControl"],library:"sap.m",properties:{type:{type:"sap.m.InputType",group:"Data",defaultValue:r.Text},maxLength:{type:"int",group:"Behavior",defaultValue:0},dateFormat:{type:"string",group:"Misc",defaultValue:'YYYY-MM-dd',deprecated:true},showValueHelp:{type:"boolean",group:"Behavior",defaultValue:false},showSuggestion:{type:"boolean",group:"Behavior",defaultValue:false},valueHelpOnly:{type:"boolean",group:"Behavior",defaultValue:false},filterSuggests:{type:"boolean",group:"Behavior",defaultValue:true},maxSuggestionWidth:{type:"sap.ui.core.CSSSize",group:"Appearance",defaultValue:null},startSuggestion:{type:"int",group:"Behavior",defaultValue:1},showTableSuggestionValueHelp:{type:"boolean",group:"Behavior",defaultValue:true},description:{type:"string",group:"Misc",defaultValue:null},fieldWidth:{type:"sap.ui.core.CSSSize",group:"Appearance",defaultValue:'50%'},valueLiveUpdate:{type:"boolean",group:"Behavior",defaultValue:false},selectedKey:{type:"string",group:"Data",defaultValue:""},textFormatMode:{type:"sap.m.InputTextFormatMode",group:"Misc",defaultValue:p.Value},textFormatter:{type:"any",group:"Misc",defaultValue:""},suggestionRowValidator:{type:"any",group:"Misc",defaultValue:""},enableSuggestionsHighlighting:{type:"boolean",group:"Behavior",defaultValue:true},autocomplete:{type:"boolean",group:"Behavior",defaultValue:true}},defaultAggregation:"suggestionItems",aggregations:{suggestionItems:{type:"sap.ui.core.Item",multiple:true,singularName:"suggestionItem"},suggestionColumns:{type:"sap.m.Column",multiple:true,singularName:"suggestionColumn",bindable:"bindable",forwarding:{getter:"_getSuggestionsTable",aggregation:"columns"}},suggestionRows:{type:"sap.m.ColumnListItem",altTypes:["sap.m.GroupHeaderListItem"],multiple:true,singularName:"suggestionRow",bindable:"bindable",forwarding:{getter:"_getSuggestionsTable",aggregation:"items"}},_suggestionPopup:{type:"sap.ui.core.Control",multiple:false,visibility:"hidden"},_valueHelpIcon:{type:"sap.ui.core.Icon",multiple:false,visibility:"hidden"}},associations:{selectedItem:{type:"sap.ui.core.Item",multiple:false},selectedRow:{type:"sap.m.ColumnListItem",multiple:false}},events:{liveChange:{parameters:{value:{type:"string"},escPressed:{type:"boolean"},previousValue:{type:"string"}}},valueHelpRequest:{parameters:{fromSuggestions:{type:"boolean"}}},suggest:{parameters:{suggestValue:{type:"string"},suggestionColumns:{type:"sap.m.ListBase"}}},suggestionItemSelected:{parameters:{selectedItem:{type:"sap.ui.core.Item"},selectedRow:{type:"sap.m.ColumnListItem"}}},submit:{parameters:{value:{type:"string"}}}},designtime:"sap/m/designtime/Input.designtime"}});c.insertFontFaceStyle();s.prototype.init=function(){I.prototype.init.call(this);this._fnFilter=f._DEFAULTFILTER;this._bUseDialog=d.system.phone;this._bFullScreen=d.system.phone;this._iSetCount=0;this._oRb=sap.ui.getCore().getLibraryResourceBundle("sap.m");this._isValueInitial=false;this._previousInputType=this.getType();};s.prototype.exit=function(){I.prototype.exit.call(this);this._deregisterEvents();this.cancelPendingSuggest();if(this._iRefreshListTimeout){clearTimeout(this._iRefreshListTimeout);this._iRefreshListTimeout=null;}if(this._oSuggPopover){this._oSuggPopover.destroy();this._oSuggPopover=null;}if(this._oShowMoreButton){this._oShowMoreButton.destroy();this._oShowMoreButton=null;}if(this._oButtonToolbar){this._oButtonToolbar.destroy();this._oButtonToolbar=null;}};s.prototype.onBeforeRendering=function(){var i=this.getSelectedKey(),t=this.getShowValueHelp()&&this.getEnabled()&&this.getEditable(),E=this.getAggregation("_endIcon")||[],u=E[0],v;I.prototype.onBeforeRendering.call(this);if(!this.getDomRef()&&this.getValue()){this._isValueInitial=true;}this._deregisterEvents();if(i){this.setSelectedKey(i);}if(this.getShowSuggestion()){this._oSuggPopover._bAutocompleteEnabled=this.getAutocomplete();if(this.getShowTableSuggestionValueHelp()){this._addShowMoreButton();}else{this._removeShowMoreButton();}v=this._oSuggPopover._oPopupInput;if(v){v.setType(this.getType());}}if(t){u=this._getValueHelpIcon();u.setProperty("visible",true,true);}else{if(u){u.setProperty("visible",false,true);}}};s.prototype.onAfterRendering=function(){I.prototype.onAfterRendering.call(this);if((this._isValueInitial||this.getType()!==this._previousInputType)&&this.getType()===r.Password){this.getDomRef("inner").value=this.getProperty("value");this._isValueInitial=false;}this._previousInputType=this.getType();if(this._oSuggPopover){this._oSuggPopover._resetTypeAhead();}if(this._bUseDialog&&this.getEditable()&&this.getEnabled()){this.$().on("click",q.proxy(function(E){if(this._onclick){this._onclick(E);}if(this.getShowSuggestion()&&this._oSuggPopover&&E.target.id!=this.getId()+"-vhi"){this._openSuggestionsPopover();}},this));}};s.prototype._getDisplayText=function(i){var t=this.getTextFormatter();if(t){return t(i);}var u=i.getText(),K=i.getKey(),v=this.getTextFormatMode();switch(v){case p.Key:return K;case p.ValueKey:return u+' ('+K+')';case p.KeyValue:return'('+K+') '+u;default:return u;}};s.prototype._onValueUpdated=function(i){if(this._bSelectingItem||i===this._sSelectedValue){return;}var K=this.getSelectedKey(),H;if(K===''){return;}if(this._hasTabularSuggestions()){H=this._oSuggPopover._oSuggestionTable&&!!this._oSuggPopover._oSuggestionTable.getSelectedItem();}else{H=this._oSuggPopover._oList&&!!this._oSuggPopover._oList.getSelectedItem();}if(H){return;}this.setProperty("selectedKey",'',true);this.setAssociation("selectedRow",null,true);this.setAssociation("selectedItem",null,true);this.fireSuggestionItemSelected({selectedItem:null,selectedRow:null});};s.prototype._updateSelectionFromList=function(){if(this._oSuggPopover._iPopupListSelectedIndex<0){return false;}var i=this._oSuggPopover._oList.getSelectedItem();if(i){if(this._hasTabularSuggestions()){this.setSelectionRow(i,true);}else{this.setSelectionItem(i._oItem,true);}}return true;};s.prototype.setSelectionItem=function(i,t){this._bSelectingItem=true;if(!i){this.setAssociation("selectedItem",null,true);this.setValue('');return;}this._oSuggPopover._iPopupListSelectedIndex=-1;var u=this._iSetCount,N;this.setAssociation("selectedItem",i,true);this.setProperty("selectedKey",i.getKey(),true);if(t){this.fireSuggestionItemSelected({selectedItem:i});}if(u!==this._iSetCount){N=this.getValue();}else{N=this._getDisplayText(i);}this._sSelectedValue=N;this.updateInputField(N);if(this.bIsDestroyed){return;}if(!(this._bUseDialog&&this instanceof sap.m.MultiInput)){this._closeSuggestionPopup();}this._bSelectingItem=false;};s.prototype.addSuggestionRowGroup=function(i,H,t){H=H||new G({title:M.escapeSettingsValue(i.text)||M.escapeSettingsValue(i.key)});this.addAggregation("suggestionRows",H,t);return H;};s.prototype.addSuggestionItemGroup=function(i,H,t){H=H||new b({text:M.escapeSettingsValue(i.text)||M.escapeSettingsValue(i.key)});this.addAggregation("suggestionItems",H,t);return H;};s.prototype.setSelectedItem=function(i){if(typeof i==="string"){i=sap.ui.getCore().byId(i);}if(i!==null&&!(i instanceof a)){return this;}this.setSelectionItem(i);return this;};s.prototype.setSelectedKey=function(K){K=this.validateProperty("selectedKey",K);this.setProperty("selectedKey",K,true);if(this._hasTabularSuggestions()){return this;}if(!K){this.setSelectionItem();return this;}var i=this.getSuggestionItemByKey(K);this.setSelectionItem(i);return this;};s.prototype.getSuggestionItemByKey=function(K){var t=this.getSuggestionItems()||[],u,i;for(i=0;i<t.length;i++){u=t[i];if(u.getKey()===K){return u;}}};s.prototype.setSelectionRow=function(i,t){if(!i){this.setAssociation("selectedRow",null,true);return;}this._oSuggPopover._iPopupListSelectedIndex=-1;this._bSelectingItem=true;var u,v=this.getSuggestionRowValidator();if(v){u=v(i);if(!(u instanceof a)){u=null;}}var w=this._iSetCount,K="",N;this.setAssociation("selectedRow",i,true);if(u){K=u.getKey();}this.setProperty("selectedKey",K,true);if(t){this.fireSuggestionItemSelected({selectedRow:i});}if(w!==this._iSetCount){N=this.getValue();}else{if(u){N=this._getDisplayText(u);}else{N=this._fnRowResultFilter?this._fnRowResultFilter(i):f._DEFAULTRESULT_TABULAR(i);}}this._sSelectedValue=N;this.updateInputField(N);if(this.bIsDestroyed){return;}if(!(this._bUseDialog&&this instanceof sap.m.MultiInput&&this._isMultiLineMode)){this._closeSuggestionPopup();}this._bSelectingItem=false;};s.prototype.setSelectedRow=function(i){if(typeof i==="string"){i=sap.ui.getCore().byId(i);}if(i!==null&&!(i instanceof C)){return this;}this.setSelectionRow(i);return this;};s.prototype._getValueHelpIcon=function(){var t=this,E=this.getAggregation("_endIcon")||[],v=E[0];if(!v){v=this.addEndIcon({id:this.getId()+"-vhi",src:c.getIconURI("value-help"),useIconTooltip:false,noTabStop:true,press:function(i){if(!t.getValueHelpOnly()){var u=this.getParent(),$;if(d.support.touch){$=u.$('inner');$.attr('readonly','readonly');u.focus();$.removeAttr('readonly');}else{u.focus();}t.bValueHelpRequested=true;t.fireValueHelpRequest({fromSuggestions:false});}}});}return v;};s.prototype._fireValueHelpRequestForValueHelpOnly=function(){if(this.getEnabled()&&this.getEditable()&&this.getShowValueHelp()&&this.getValueHelpOnly()){if(d.system.phone){this.focus();}this.fireValueHelpRequest({fromSuggestions:false});}};s.prototype.ontap=function(E){I.prototype.ontap.call(this,E);if(this.isValueHelpOnlyOpener(E.target)){this._fireValueHelpRequestForValueHelpOnly();}};s.prototype.setWidth=function(w){return I.prototype.setWidth.call(this,w||"100%");};s.prototype.getWidth=function(){return this.getProperty("width")||"100%";};s.prototype.setFilterFunction=function(F){if(F===null||F===undefined){this._fnFilter=f._DEFAULTFILTER;return this;}k(typeof(F)==="function","Input.setFilterFunction: first argument fnFilter must be a function on "+this);this._fnFilter=F;return this;};s.prototype.setRowResultFunction=function(F){var i;if(F===null||F===undefined){this._fnRowResultFilter=f._DEFAULTRESULT_TABULAR;return this;}k(typeof(F)==="function","Input.setRowResultFunction: first argument fnFilter must be a function on "+this);this._fnRowResultFilter=F;i=this.getSelectedRow();if(i){this.setSelectedRow(i);}return this;};s.prototype.closeSuggestions=function(){this._closeSuggestionPopup();};s.prototype._doSelect=function(i,E){if(d.support.touch){return;}var t=this._$input[0];if(t){var R=this._$input;t.focus();R.selectText(i?i:0,E?E:R.val().length);}return this;};s.prototype._isIncrementalType=function(){var t=this.getType();if(t==="Number"||t==="Date"||t==="Datetime"||t==="Month"||t==="Time"||t==="Week"){return true;}return false;};s.prototype.onsapescape=function(E){var i;if(this._isSuggestionsPopoverOpen()){E.originalEvent._sapui_handledByControl=true;this._sProposedItemText=null;this._oSuggPopover._oProposedItem=null;this._oSuggPopover._iPopupListSelectedIndex=-1;this._closeSuggestionPopup();if(this._sBeforeSuggest!==undefined){if(this._sBeforeSuggest!==this.getValue()){i=this._lastValue;this.setValue(this._sBeforeSuggest);this._lastValue=i;}this._sBeforeSuggest=undefined;}return;}if(this.getValueLiveUpdate()){this.setProperty("value",this._lastValue,true);}if(I.prototype.onsapescape){I.prototype.onsapescape.apply(this,arguments);}};s.prototype.onsapenter=function(E){this.cancelPendingSuggest();if(this._isSuggestionsPopoverOpen()){if(!this._updateSelectionFromList()&&!this.isComposingCharacter()){this._closeSuggestionPopup();}}if(I.prototype.onsapenter){I.prototype.onsapenter.apply(this,arguments);}if(this.getEnabled()&&this.getEditable()&&!(this.getValueHelpOnly()&&this.getShowValueHelp())){this.fireSubmit({value:this.getValue()});}if(!d.system.phone){this._getSuggestionsPopover()._resetTypeAhead();}};s.prototype.onsapfocusleave=function(E){var i=this._oSuggPopover,t=i&&i._oPopover,F=E.relatedControlId&&sap.ui.getCore().byId(E.relatedControlId),u=F&&F.getFocusDomRef(),H=i&&i._sProposedItemText&&this.getAutocomplete(),v=t&&u&&j(t.getDomRef(),u);if(t instanceof P){if(v){this._bPopupHasFocus=true;if(d.system.desktop&&m(t.getFocusDomRef(),u)){this.focus();}}else{if(this.getDOMValue()===this._sSelectedSuggViaKeyboard){this._sSelectedSuggViaKeyboard=null;}}}if(!v&&!H){I.prototype.onsapfocusleave.apply(this,arguments);}this.bValueHelpRequested=false;};s.prototype.onmousedown=function(E){var i=this._oSuggPopover&&this._oSuggPopover._oPopover;if((i instanceof P)&&i.isOpen()){E.stopPropagation();}};s.prototype._deregisterEvents=function(){if(this._oSuggPopover){this._oSuggPopover._deregisterResize();}if(this._bUseDialog&&this._oSuggPopover&&this._oSuggPopover._oPopover){this.$().off("click");}};s.prototype.updateSuggestionItems=function(){this._bSuspendInvalidate=true;this.updateAggregation("suggestionItems");this._synchronizeSuggestions();this._bSuspendInvalidate=false;return this;};s.prototype.invalidate=function(){if(!this._bSuspendInvalidate){e.prototype.invalidate.apply(this,arguments);}};s.prototype.cancelPendingSuggest=function(){if(this._iSuggestDelay){clearTimeout(this._iSuggestDelay);this._iSuggestDelay=null;}};s.prototype._triggerSuggest=function(v){this.cancelPendingSuggest();this._bShouldRefreshListItems=true;if(!v){v="";}if(v.length>=this.getStartSuggestion()){this._iSuggestDelay=setTimeout(function(){if(this._sPrevSuggValue!==v){this._bBindingUpdated=false;this.fireSuggest({suggestValue:v});if(!this._bBindingUpdated){this._refreshItemsDelayed();}this._sPrevSuggValue=v;}}.bind(this),300);}else if(this._bUseDialog){if(this._oSuggPopover._oList instanceof T){this._oSuggPopover._oList.addStyleClass("sapMInputSuggestionTableHidden");}else if(this._oSuggPopover._oList&&this._oSuggPopover._oList.destroyItems){this._oSuggPopover._oList.destroyItems();}}else if(this._isSuggestionsPopoverOpen()){setTimeout(function(){var N=this.getDOMValue()||'';if(N<this.getStartSuggestion()){this._oSuggPopover._iPopupListSelectedIndex=-1;this._closeSuggestionPopup();}}.bind(this),0);}};(function(){s.prototype.setShowSuggestion=function(v){this.setProperty("showSuggestion",v,true);if(v){this._oSuggPopover=this._getSuggestionsPopover();this._oSuggPopover._iPopupListSelectedIndex=-1;if(!this._oSuggPopover._oPopover){this._createSuggestionsPopoverPopup();this._synchronizeSuggestions();this._createSuggestionPopupContent();}}else{if(this._oSuggPopover){this._oSuggPopover._destroySuggestionPopup();this._oSuggPopover._iPopupListSelectedIndex=-1;}}return this;};s.prototype.setShowTableSuggestionValueHelp=function(v){this.setProperty("showTableSuggestionValueHelp",v,true);if(!(this._oSuggPopover&&this._oSuggPopover._oPopover)){return this;}if(v){this._addShowMoreButton();}else{this._removeShowMoreButton();}return this;};s.prototype.oninput=function(E){I.prototype.oninput.call(this,E);if(E.isMarked("invalid")){return;}var v=this.getDOMValue();if(this.getValueLiveUpdate()){this.setProperty("value",v,true);this._onValueUpdated(v);}this.fireLiveChange({value:v,newValue:v});if(this.getShowSuggestion()&&!this._bUseDialog){this._triggerSuggest(v);}};s.prototype.getValue=function(){return this.getDomRef("inner")&&this._$input?this.getDOMValue():this.getProperty("value");};s.prototype._refreshItemsDelayed=function(){clearTimeout(this._iRefreshListTimeout);this._iRefreshListTimeout=setTimeout(function(){if(this._oSuggPopover){this._refreshListItems();}}.bind(this),0);};s.prototype._filterListItems=function(t,u){var i,v,w,x=[],H=[],F=this.getFilterSuggests(),y=false;for(i=0;i<t.length;i++){w=t[i];if(t[i].isA("sap.ui.core.SeparatorItem")){v=new G({id:w.getId()+"-ghli",title:M.escapeSettingsValue(t[i].getText())});x.push({header:v,visible:false});this._configureListItem(w,v);H.push(v);}else if(!F||this._fnFilter(u,w)){if(t[i].isA("sap.ui.core.ListItem")){v=new D(w.getId()+"-dli");v.setLabel(w.getText());v.setValue(w.getAdditionalText());}else{v=new S(w.getId()+"-sli");v.setTitle(w.getText());}if(!y&&(this._oSuggPopover._sProposedItemText===t[i].getText())){v.setSelected(true);y=true;}if(x.length){x[x.length-1].visible=true;}this._configureListItem(w,v);H.push(v);}}x.forEach(function(z){z.header.setVisible(z.visible);});return{hitItems:H,groups:x};};s.prototype._filterTabularItems=function(t,u){var i,v,F=this.getFilterSuggests(),H=[],w=[],x=false;for(i=0;i<t.length;i++){if(t[i].isA("sap.m.GroupHeaderListItem")){w.push({header:t[i],visible:false});}else{v=!F||this._fnFilter(u,t[i]);t[i].setVisible(v);v&&H.push(t[i]);if(!x&&v&&this._oSuggPopover._sProposedItemText===this._fnRowResultFilter(t[i])){t[i].setSelected(true);x=true;}if(w.length&&v){w[w.length-1].visible=true;}}}w.forEach(function(y){y.header.setVisible(y.visible);});this._getSuggestionsTable().invalidate();return{hitItems:H,groups:w};};s.prototype._clearSuggestionPopupItems=function(){if(!this._oSuggPopover._oList){return;}if(this._oSuggPopover._oList instanceof T){this._oSuggPopover._oList.removeSelections(true);}else{this._oSuggPopover._oList.destroyItems();}};s.prototype._hideSuggestionPopup=function(){var i=this._oSuggPopover._oPopover;function t(){if(d.browser.internet_explorer){var F=this.getFocusInfo();this.setDOMValue(this._oSuggPopover._sTypedInValue);this.applyFocusInfo(F);}else{this.setDOMValue(this._oSuggPopover._sTypedInValue);}}if(!this._bUseDialog){if(i.isOpen()){this._sCloseTimer=setTimeout(function(){this._oSuggPopover._iPopupListSelectedIndex=-1;this.cancelPendingSuggest();if(this._oSuggPopover._sTypedInValue){t.call(this);}this._oSuggPopover._oProposedItem=null;i.close();}.bind(this),0);}}else if(this._hasTabularSuggestions()&&this._oSuggPopover._oList){this._oSuggPopover._oList.addStyleClass("sapMInputSuggestionTableHidden");}this.$("SuggDescr").text("");this.$("inner").removeAttr("aria-haspopup");this.$("inner").removeAttr("aria-activedescendant");};s.prototype._openSuggestionPopup=function(O){var i=this._oSuggPopover._oPopover;if(!this._bUseDialog){if(this._sCloseTimer){clearTimeout(this._sCloseTimer);this._sCloseTimer=null;}if(!i.isOpen()&&!this._sOpenTimer&&O!==false){this._sOpenTimer=setTimeout(function(){this._sOpenTimer=null;this._openSuggestionsPopover();}.bind(this),0);}}this.$("inner").attr("aria-haspopup","true");};s.prototype._getFilteredSuggestionItems=function(t){var F,i=this.getSuggestionItems(),u=this.getSuggestionRows();if(this._hasTabularSuggestions()){if(this._bUseDialog&&this._oSuggPopover._oList){this._oSuggPopover._oList.removeStyleClass("sapMInputSuggestionTableHidden");}F=this._filterTabularItems(u,t);}else{F=this._filterListItems(i,t);}return F;};s.prototype._fillSimpleSuggestionPopupItems=function(F){var i,H=F.hitItems,t=F.groups,u=H.length,v=u;if(!this._hasTabularSuggestions()){for(i=0;i<u;i++){this._oSuggPopover._oList.addItem(H[i]);}v-=t.length;}return v;};s.prototype._applySuggestionAcc=function(N){var A="",R=this._oRb;if(N===1){A=R.getText("INPUT_SUGGESTIONS_ONE_HIT");}else if(N>1){A=R.getText("INPUT_SUGGESTIONS_MORE_HITS",N);}else{A=R.getText("INPUT_SUGGESTIONS_NO_HIT");}this.$("SuggDescr").text(A);};s.prototype._refreshListItems=function(){var i=this.getShowSuggestion(),t=this._oSuggPopover._bDoTypeAhead?this._oSuggPopover._sTypedInValue:(this.getDOMValue()||""),F,u;this._oSuggPopover._iPopupListSelectedIndex=-1;if(!i||!this._bShouldRefreshListItems||!this.getDomRef()||(!this._bUseDialog&&!this.$().hasClass("sapMInputFocused"))){return null;}this._clearSuggestionPopupItems();if(t.length<this.getStartSuggestion()){this._hideSuggestionPopup();return false;}F=this._getFilteredSuggestionItems(t);u=this._fillSimpleSuggestionPopupItems(F);if(u>0){this._openSuggestionPopup(this.getValue().length>=this.getStartSuggestion());}else{this._hideSuggestionPopup();}this._applySuggestionAcc(u);};s.prototype._configureListItem=function(i,t){var u=o.Active;if(!i.getEnabled()||t.isA("sap.m.GroupHeaderListItem")){u=o.Inactive;}t.setType(u);t._oItem=i;t.addEventDelegate({ontouchstart:function(E){(E.originalEvent||E)._sapui_cancelAutoClose=true;}});return t;};s.prototype.addSuggestionItem=function(i){this.addAggregation("suggestionItems",i,true);if(!this._oSuggPopover){this._getSuggestionsPopover();}this._synchronizeSuggestions();this._createSuggestionPopupContent();return this;};s.prototype.insertSuggestionItem=function(i,t){this.insertAggregation("suggestionItems",t,i,true);if(!this._oSuggPopover){this._getSuggestionsPopover();}this._synchronizeSuggestions();this._createSuggestionPopupContent();return this;};s.prototype.removeSuggestionItem=function(i){var t=this.removeAggregation("suggestionItems",i,true);this._synchronizeSuggestions();return t;};s.prototype.removeAllSuggestionItems=function(){var i=this.removeAllAggregation("suggestionItems",true);this._synchronizeSuggestions();return i;};s.prototype.destroySuggestionItems=function(){this.destroyAggregation("suggestionItems",true);this._synchronizeSuggestions();return this;};s.prototype.addSuggestionRow=function(i){i.setType(o.Active);this.addAggregation("suggestionRows",i);this._synchronizeSuggestions();this._createSuggestionPopupContent();return this;};s.prototype.insertSuggestionRow=function(i,t){i.setType(o.Active);this.insertAggregation("suggestionRows",i,t);this._synchronizeSuggestions();this._createSuggestionPopupContent();return this;};s.prototype.removeSuggestionRow=function(i){var t=this.removeAggregation("suggestionRows",i);this._synchronizeSuggestions();return t;};s.prototype.removeAllSuggestionRows=function(){var i=this.removeAllAggregation("suggestionRows");this._synchronizeSuggestions();return i;};s.prototype.destroySuggestionRows=function(){this.destroyAggregation("suggestionRows");this._synchronizeSuggestions();return this;};s.prototype.bindAggregation=function(){if(arguments[0]==="suggestionRows"||arguments[0]==="suggestionColumns"||arguments[0]==="suggestionItems"){this._createSuggestionPopupContent(arguments[0]==="suggestionRows"||arguments[0]==="suggestionColumns");this._bBindingUpdated=true;}return I.prototype.bindAggregation.apply(this,arguments);};s.prototype._closeSuggestionPopup=function(){if(this._oSuggPopover){this._bShouldRefreshListItems=false;this.cancelPendingSuggest();this._oSuggPopover._oPopover.close();if(!this._bUseDialog&&this.$().hasClass("sapMInputFocused")){this.openValueStateMessage();}this.$("SuggDescr").text("");this.$("inner").removeAttr("aria-haspopup");this.$("inner").removeAttr("aria-activedescendant");this._sPrevSuggValue=null;}};s.prototype._synchronizeSuggestions=function(){this._bShouldRefreshListItems=true;this._refreshItemsDelayed();if(!this.getDomRef()||this._isSuggestionsPopoverOpen()){return;}this._synchronizeSelection();};s.prototype._synchronizeSelection=function(){var i=this.getSelectedKey();if(!i){return;}if(this.getValue()&&!this.getSelectedItem()&&!this.getSelectedRow()){return;}this.setSelectedKey(i);};})();s.prototype.onfocusin=function(E){I.prototype.onfocusin.apply(this,arguments);this.addStyleClass("sapMInputFocused");if(!this._bUseDialog&&this._isSuggestionsPopoverOpen()){this.closeValueStateMessage();}if(!this._bPopupHasFocus&&!this.getStartSuggestion()&&!this.getValue()&&this.getShowSuggestion()){this._triggerSuggest(this.getValue());}this._bPopupHasFocus=undefined;this._sPrevSuggValue=null;};s.prototype.oncompositionend=function(E){I.prototype.oncompositionend.apply(this,arguments);if(this._oSuggPopover&&!d.browser.edge&&!d.browser.firefox){this._oSuggPopover._handleTypeAhead();}};s.prototype.onsapshow=function(E){if(!this.getEnabled()||!this.getEditable()||!this.getShowValueHelp()){return;}this.bValueHelpRequested=true;this.fireValueHelpRequest({fromSuggestions:false});E.preventDefault();E.stopPropagation();};s.prototype.onsaphide=s.prototype.onsapshow;s.prototype.onsapselect=function(E){this._fireValueHelpRequestForValueHelpOnly();};s.prototype.onfocusout=function(E){I.prototype.onfocusout.apply(this,arguments);this.removeStyleClass("sapMInputFocused");this.closeValueStateMessage(this);this.$("SuggDescr").text("");};s.prototype._hasTabularSuggestions=function(){return!!(this.getAggregation("suggestionColumns")&&this.getAggregation("suggestionColumns").length);};s.prototype._getSuggestionsTable=function(){return this._getSuggestionsPopover()._getSuggestionsTable();};s.prototype.clone=function(){var i=e.prototype.clone.apply(this,arguments);i.setRowResultFunction(this._fnRowResultFilter);i.setValue(this.getValue());return i;};s.prototype.setValue=function(v){this._iSetCount++;I.prototype.setValue.call(this,v);this._onValueUpdated(v);return this;};s.prototype.setDOMValue=function(v){this._$input.val(v);};s.prototype.getDOMValue=function(){return this._$input.val();};s.prototype.updateInputField=function(N){if(this._isSuggestionsPopoverOpen()&&this._bUseDialog){this._oSuggPopover._oPopupInput.setValue(N);this._oSuggPopover._oPopupInput._doSelect();}else{N=this._getInputValue(N);this.setDOMValue(N);this.onChange(null,null,N);}};s.prototype.getAccessibilityInfo=function(){var i=I.prototype.getAccessibilityInfo.apply(this,arguments);i.description=((i.description||"")+" "+this.getDescription()).trim();return i;};s.prototype.preventChangeOnFocusLeave=function(E){return this.bFocusoutDueRendering||this.bValueHelpRequested;};s.prototype._getShowMoreButton=function(){return this._oShowMoreButton||(this._oShowMoreButton=new B({text:this._oRb.getText("INPUT_SUGGESTIONS_SHOW_ALL"),press:function(){if(this.getShowTableSuggestionValueHelp()){if(this._oSuggPopover._sTypedInValue){this.updateDomValue(this._oSuggPopover._sTypedInValue);this._oSuggPopover._resetTypeAhead();}this.fireValueHelpRequest({fromSuggestions:true});this._oSuggPopover._iPopupListSelectedIndex=-1;this._closeSuggestionPopup();}}.bind(this)}));};s.prototype._addShowMoreButton=function(t){var i=this._oSuggPopover&&this._oSuggPopover._oPopover;if(!i||!t&&!this._hasTabularSuggestions()){return;}if(i.isA("sap.m.Dialog")){this._getShowMoreButton().setVisible(true);}else{var u=this._getButtonToolbar();i.setFooter(u);}};s.prototype._removeShowMoreButton=function(){var i=this._oSuggPopover&&this._oSuggPopover._oPopover;if(!i||!this._hasTabularSuggestions()){return;}if(i.isA("sap.m.Dialog")){this._getShowMoreButton().setVisible(false);}else{i.setFooter(null);}};s.prototype._getButtonToolbar=function(){var i=this._getShowMoreButton();return this._oButtonToolbar||(this._oButtonToolbar=new g({content:[new h(),i]}));};s.prototype._hasShowSelectedButton=function(){return false;};s.prototype._createSuggestionPopupContent=function(t){if(this._bIsBeingDestroyed||this._getSuggestionsPopover()._oList){return;}this._oSuggPopover._createSuggestionPopupContent(t,this._hasTabularSuggestions());if(!this._hasTabularSuggestions()&&!t){this._oSuggPopover._oList.attachItemPress(function(E){this._oSuggPopover._resetTypeAhead();if(d.system.desktop){this.focus();}var i=E.getParameter("listItem");if(!i.isA("sap.m.GroupHeaderListItem")){this._oSuggPopover._bSuggestionItemTapped=true;this.setSelectionItem(i._oItem,true);}},this);}else{if(this._fnFilter===f._DEFAULTFILTER){this._fnFilter=f._DEFAULTFILTER_TABULAR;}if(!this._fnRowResultFilter){this._fnRowResultFilter=f._DEFAULTRESULT_TABULAR;}if(this.getShowTableSuggestionValueHelp()&&!this._bUseDialog){this._addShowMoreButton(t);}}};s.prototype._createPopupInput=function(){var i=new s(this.getId()+"-popup-input",{width:"100%",valueLiveUpdate:true,showValueStateMessage:false,valueState:this.getValueState(),showValueHelp:this.getShowValueHelp(),valueHelpRequest:function(E){this.fireValueHelpRequest({fromSuggestions:true});this._oSuggPopover._iPopupListSelectedIndex=-1;this._closeSuggestionPopup();}.bind(this),liveChange:function(E){var v=E.getParameter("newValue");this.setDOMValue(this._getInputValue(this._oSuggPopover._oPopupInput.getValue()));this._triggerSuggest(v);this.fireLiveChange({value:v,newValue:v});}.bind(this)});return i;};s.prototype._modifyPopupInput=function(i){i.addEventDelegate({onsapenter:function(){if(this.getAutocomplete()){this._oSuggPopover._finalizeAutocomplete();this._oSuggPopover._resetTypeAhead();}this._closeSuggestionPopup();}},this);return i;};s.prototype.forwardEventHandlersToSuggPopover=function(i){i.setOkPressHandler(this._closeSuggestionPopup.bind(this));i.setCancelPressHandler(this._closeSuggestionPopup.bind(this));};s.prototype._getSuggestionsPopover=function(){if(!this._oSuggPopover){var i=this._oSuggPopover=new f(this);if(this._bUseDialog){var t=this._createPopupInput();i._oPopupInput=this._modifyPopupInput(t);}this._oSuggPopover.setInputLabels(this.getLabels.bind(this));this._createSuggestionsPopoverPopup();this.forwardEventHandlersToSuggPopover(i);this._updateSuggestionsPopoverValueState();i._bAutocompleteEnabled=this.getAutocomplete();i.attachEvent(f.M_EVENTS.SELECTION_CHANGE,function(E){var N=E.getParameter("newValue");this.setDOMValue(N);this._sSelectedSuggViaKeyboard=N;this._doSelect();},this);if(this.getShowTableSuggestionValueHelp()){this._addShowMoreButton();}}return this._oSuggPopover;};s.prototype._createSuggestionsPopoverPopup=function(){if(!this._oSuggPopover){return;}var i=this._oSuggPopover;i._createSuggestionPopup({showSelectedButton:this._hasShowSelectedButton()});var t=i._oPopover;if(this._bUseDialog){t.attachBeforeClose(function(){this.setDOMValue(this._getInputValue(i._oPopupInput.getValue()));this.onChange();if(this instanceof sap.m.MultiInput&&this._bUseDialog){this._onDialogClose();}},this).attachAfterClose(function(){var u=i._oList;if(!u){return;}if(T&&!(u instanceof T)){u.destroyItems();}else{u.removeSelections(true);}}).attachAfterOpen(function(){this._triggerSuggest(this.getValue());this._refreshListItems();},this).attachBeforeOpen(function(){i._oPopupInput.setPlaceholder(this.getPlaceholder());i._oPopupInput.setMaxLength(this.getMaxLength());i._oPopupInput.setValue(this.getValue());},this);t.setEndButton(this._getShowMoreButton());this._getShowMoreButton().setVisible(false);}else{t.attachAfterClose(function(){this._updateSelectionFromList();var u=i._oList;if(u instanceof T){u.removeSelections(true);}else{u.destroyItems();}i._deregisterResize();},this).attachBeforeOpen(function(){i._sPopoverContentWidth=this.getMaxSuggestionWidth();i._bEnableHighlighting=this.getEnableSuggestionsHighlighting();i._bAutocompleteEnabled=this.getAutocomplete();i._bIsInputIncrementalType=this._isIncrementalType();this._sBeforeSuggest=this.getValue();i._resizePopup();i._registerResize();},this);}this.setAggregation("_suggestionPopup",t);this._oSuggestionPopup=t;};s.prototype.showItems=function(F){var i,t,u=this._fnFilter;if(!this.getEnabled()||!this.getEditable()){return;}this.setFilterFunction(F||function(){return true;});this._clearSuggestionPopupItems();i=this._getFilteredSuggestionItems(this.getDOMValue());t=this._fillSimpleSuggestionPopupItems(i);if(t>0){this._openSuggestionPopup();}else{this._hideSuggestionPopup();}this._applySuggestionAcc(t);this.setFilterFunction(u);};s.prototype.shouldValueStateMessageBeOpened=function(){var i=I.prototype.shouldValueStateMessageBeOpened.apply(this,arguments);if(!i||this._isSuggestionsPopoverOpen()){return false;}return true;};s.prototype._isSuggestionsPopoverOpen=function(){return this._oSuggPopover&&this._oSuggPopover.isOpen();};s.prototype._openSuggestionsPopover=function(){this.closeValueStateMessage();this._updateSuggestionsPopoverValueState();this._oSuggPopover._oPopover.open();};s.prototype._updateSuggestionsPopoverValueState=function(){var i=this._oSuggPopover,v=this.getValueState();if(i){i.updateValueState(v,this.getValueStateText(),this.getShowValueStateMessage());if(this._bUseDialog){i._oPopupInput.setValueState(v);}}};s.prototype.setShowValueHelp=function(i){this.setProperty("showValueHelp",i);if(this._oSuggPopover&&this._oSuggPopover._oPopupInput){this._oSuggPopover._oPopupInput.setShowValueHelp(i);}return this;};s.prototype.setValueState=function(v){I.prototype.setValueState.apply(this,arguments);this._updateSuggestionsPopoverValueState();return this;};s.prototype.setValueStateText=function(v){I.prototype.setValueStateText.apply(this,arguments);this._updateSuggestionsPopoverValueState();return this;};s.prototype.setShowValueStateMessage=function(i){I.prototype.setShowValueStateMessage.apply(this,arguments);this._updateSuggestionsPopoverValueState();return this;};s.prototype.isValueHelpOnlyOpener=function(t){return true;};s.prototype._getToolbarInteractive=function(){return true;};return s;});
sap.ui.predefine('sap/m/InputBase',['./library','sap/ui/core/Control','sap/ui/core/EnabledPropagator','sap/ui/core/IconPool','./delegate/ValueStateMessage','sap/ui/core/message/MessageMixin','sap/ui/core/library','sap/ui/Device','./InputBaseRenderer','sap/base/Log',"sap/ui/events/KeyCodes","sap/ui/thirdparty/jquery","sap/ui/dom/jquery/cursorPos","sap/ui/dom/jquery/getSelectedText","sap/ui/dom/jquery/selectText"],function(l,C,E,I,V,M,c,D,a,b,K,q){"use strict";var T=c.TextDirection;var d=c.TextAlign;var f=c.ValueState;var g=C.extend("sap.m.InputBase",{metadata:{interfaces:["sap.ui.core.IFormContent"],library:"sap.m",properties:{value:{type:"string",group:"Data",defaultValue:null,bindable:"bindable"},width:{type:"sap.ui.core.CSSSize",group:"Dimension",defaultValue:null},enabled:{type:"boolean",group:"Behavior",defaultValue:true},valueState:{type:"sap.ui.core.ValueState",group:"Appearance",defaultValue:f.None},name:{type:"string",group:"Misc",defaultValue:null},placeholder:{type:"string",group:"Misc",defaultValue:null},editable:{type:"boolean",group:"Behavior",defaultValue:true},valueStateText:{type:"string",group:"Misc",defaultValue:null},showValueStateMessage:{type:"boolean",group:"Misc",defaultValue:true},textAlign:{type:"sap.ui.core.TextAlign",group:"Appearance",defaultValue:d.Initial},textDirection:{type:"sap.ui.core.TextDirection",group:"Appearance",defaultValue:T.Inherit},required:{type:"boolean",group:"Misc",defaultValue:false}},associations:{ariaLabelledBy:{type:"sap.ui.core.Control",multiple:true,singularName:"ariaLabelledBy"}},events:{change:{parameters:{value:{type:"string"}}}},aggregations:{_endIcon:{type:"sap.ui.core.Icon",multiple:true,visibility:"hidden"},_beginIcon:{type:"sap.ui.core.Icon",multiple:true,visibility:"hidden"}},designtime:"sap/m/designtime/InputBase.designtime"}});E.call(g.prototype);I.insertFontFaceStyle();M.call(g.prototype);g.ICON_PRESSED_CSS_CLASS="sapMInputBaseIconPressed";g.ICON_CSS_CLASS="sapMInputBaseIcon";g.prototype.bShowLabelAsPlaceholder=!D.support.input.placeholder;g.prototype.handleInput=function(e){if(this._bIgnoreNextInput||this._bIgnoreNextInputNonASCII){this._bIgnoreNextInput=false;this._bIgnoreNextInputNonASCII=false;e.setMarked("invalid");return;}this._bIgnoreNextInput=false;this._bIgnoreNextInputNonASCII=false;if(!this.getEditable()){e.setMarked("invalid");return;}if(document.activeElement!==e.target&&D.browser.msie&&this.getValue()===this._lastValue){e.setMarked("invalid");return;}this._bCheckDomValue=true;};g.prototype._getPlaceholder=function(){return this.getPlaceholder()||"";};g.prototype._getInputValue=function(v){v=(v===undefined)?this.$("inner").val()||"":v.toString();if(this.getMaxLength&&this.getMaxLength()>0){v=v.substring(0,this.getMaxLength());}return v;};g.prototype._getInputElementTagName=function(){if(!this._sInputTagElementName){this._sInputTagElementName=this._$input&&this._$input.get(0)&&this._$input.get(0).tagName;}return this._sInputTagElementName;};g.prototype.init=function(){this._lastValue="";this.bRenderingPhase=false;this.bFocusoutDueRendering=false;this._oValueStateMessage=new V(this);this._bIsComposingCharacter=false;};g.prototype.oncompositionstart=function(){this._bIsComposingCharacter=true;};g.prototype.oncompositionend=function(e){this._bIsComposingCharacter=false;if(!D.browser.edge&&!D.browser.firefox){this.handleInput(e);}};g.prototype.isComposingCharacter=function(){return this._bIsComposingCharacter;};g.prototype.onBeforeRendering=function(){if(D.browser.msie&&D.browser.version>9&&!/^[\x00-\x7F]*$/.test(this.getValue())){this._bIgnoreNextInputNonASCII=true;this._oDomRefBeforeRendering=this.getDomRef();}if(this._bCheckDomValue&&!this.bRenderingPhase){this._sDomValue=this._getInputValue();}this.bRenderingPhase=true;};g.prototype.onAfterRendering=function(){if(this._bCheckDomValue&&this._sDomValue!==this._getInputValue()){this.$("inner").val(this._sDomValue);}this._bIgnoreNextInputNonASCII=this._bIgnoreNextInputNonASCII&&this._oDomRefBeforeRendering!==this.getDomRef();this._bCheckDomValue=false;this.bRenderingPhase=false;};g.prototype.exit=function(){if(this._oValueStateMessage){this._oValueStateMessage.destroy();}this._oValueStateMessage=null;this._oDomRefBeforeRendering=null;};g.prototype.ontouchstart=function(e){e.setMarked();};g.prototype.onfocusin=function(e){this._bIgnoreNextInput=!this.bShowLabelAsPlaceholder&&D.browser.msie&&D.browser.version>9&&!!this.getPlaceholder()&&!this._getInputValue()&&this._getInputElementTagName()==="INPUT";this.addStyleClass("sapMFocus");this.openValueStateMessage();};g.prototype.onfocusout=function(e){this.bFocusoutDueRendering=this.bRenderingPhase;this.removeStyleClass("sapMFocus");if(this.bRenderingPhase){return;}this.closeValueStateMessage();};g.prototype.onsapfocusleave=function(e){if(!this.preventChangeOnFocusLeave(e)){this.onChange(e);}};g.prototype.preventChangeOnFocusLeave=function(e){return this.bFocusoutDueRendering;};g.prototype.getChangeEventParams=function(){return{};};g.prototype.ontap=function(e){return;};g.prototype.onChange=function(e,p,n){p=p||this.getChangeEventParams();if(this.getDomRef()&&(!this.getEditable()||!this.getEnabled())){return;}var v=this._getInputValue(n);if(v!==this._lastValue){this.setValue(v);v=this.getValue();this._lastValue=v;this.fireChangeEvent(v,p);return true;}else{this._bCheckDomValue=false;}};g.prototype.fireChangeEvent=function(v,p){var o=q.extend({value:v,newValue:v},p);this.fireChange(o);};g.prototype.onValueRevertedByEscape=function(v,p){this.fireEvent("liveChange",{value:v,escPressed:true,previousValue:p,newValue:v});};g.prototype.onsapenter=function(e){if((D.browser.safari||D.browser.msie)&&this.isComposingCharacter()){e.setMarked("invalid");return;}this.onChange(e);};g.prototype.onsapescape=function(e){var v=this._getInputValue();if(v!==this._lastValue){e.setMarked();e.preventDefault();this.updateDomValue(this._lastValue);this.onValueRevertedByEscape(this._lastValue,v);}};g.prototype.oninput=function(e){this.handleInput(e);};g.prototype.onkeydown=function(e){if(this.getDomRef("inner").getAttribute("readonly")&&e.keyCode==K.BACKSPACE){e.preventDefault();}};g.prototype.oncut=function(e){};g.prototype.selectText=function(s,S){this.$("inner").selectText(s,S);return this;};g.prototype.getSelectedText=function(){return this.$("inner").getSelectedText();};g.prototype.setProperty=function(p,v,s){if(p=="value"){this._bCheckDomValue=false;}return C.prototype.setProperty.apply(this,arguments);};g.prototype.getFocusInfo=function(){var F=C.prototype.getFocusInfo.call(this),o=this.getFocusDomRef();q.extend(F,{cursorPos:0,selectionStart:0,selectionEnd:0});if(o){F.cursorPos=q(o).cursorPos();try{F.selectionStart=o.selectionStart;F.selectionEnd=o.selectionEnd;}catch(e){}}return F;};g.prototype.applyFocusInfo=function(F){C.prototype.applyFocusInfo.call(this,F);this.$("inner").cursorPos(F.cursorPos);this.selectText(F.selectionStart,F.selectionEnd);return this;};g.prototype.bindToInputEvent=function(e){if(this._oInputEventDelegate){this.removeEventDelegate(this._oInputEventDelegate);}this._oInputEventDelegate={oninput:e};return this.addEventDelegate(this._oInputEventDelegate);};g.prototype.updateDomValue=function(v){if(!this.isActive()){return this;}v=this._getInputValue(v);if(this._getInputValue()!==v){this.$("inner").val(v);this._bCheckDomValue=true;}return this;};g.prototype.closeValueStateMessage=function(){if(this._oValueStateMessage){this._oValueStateMessage.close();}};g.prototype.getDomRefForValueStateMessage=function(){return this.getDomRef("content");};g.prototype.getPopupAnchorDomRef=function(){return this.getDomRef();};g.prototype.iOpenMessagePopupDuration=0;g.prototype.getValueStateMessageId=function(){return this.getId()+"-message";};g.prototype.getLabels=function(){var L=this.getAriaLabelledBy().map(function(s){return sap.ui.getCore().byId(s);});var o=sap.ui.require("sap/ui/core/LabelEnablement");if(o){L=L.concat(o.getReferencingLabels(this).map(function(s){return sap.ui.getCore().byId(s);}));}return L;};g.prototype.openValueStateMessage=function(){if(this._oValueStateMessage&&this.shouldValueStateMessageBeOpened()){if(D.browser.msie){setTimeout(function(){this._oValueStateMessage.open();}.bind(this),0);}else{this._oValueStateMessage.open();}}};g.prototype.updateValueStateClasses=function(v,o){var $=this.$(),e=this.$("content"),m=f;if(o!==m.None){$.removeClass("sapMInputBaseState");e.removeClass("sapMInputBaseContentWrapperState sapMInputBaseContentWrapper"+o);}if(v!==m.None){$.addClass("sapMInputBaseState");e.addClass("sapMInputBaseContentWrapperState sapMInputBaseContentWrapper"+v);}};g.prototype.shouldValueStateMessageBeOpened=function(){return(this.getValueState()!==f.None)&&this.getEditable()&&this.getEnabled()&&this.getShowValueStateMessage();};g.prototype._calculateIconsSpace=function(){var e=this.getAggregation("_endIcon")||[],B=this.getAggregation("_beginIcon")||[],i=e.concat(B),h;return i.reduce(function(A,o){h=o&&o.getDomRef()?o.getDomRef().offsetWidth:0;return A+h;},0);};g.prototype.setValueState=function(v){var o=this.getValueState();this.setProperty("valueState",v,true);v=this.getValueState();if(v===o){return this;}var e=this.getDomRef();if(!e){return this;}var i=this.$("inner"),m=f;if(v===m.Error){i.attr("aria-invalid","true");}else{i.removeAttr("aria-invalid");}this.updateValueStateClasses(v,o);if(i[0]===document.activeElement){if(v===m.None){this.closeValueStateMessage();}else{this.openValueStateMessage();}}return this;};g.prototype.setValueStateText=function(t){this.setProperty("valueStateText",t,true);this.$("message").text(this.getValueStateText());return this;};g.prototype.setValue=function(v){v=this.validateProperty("value",v);v=this._getInputValue(v);this.updateDomValue(v);if(v!==this.getProperty("value")){this._lastValue=v;}this.setProperty("value",v,true);return this;};g.prototype.getFocusDomRef=function(){return this.getDomRef("inner");};g.prototype.getIdForLabel=function(){return this.getId()+"-inner";};g.prototype.getAccessibilityInfo=function(){var r=this.getRequired()?'Required':'',R=this.getRenderer();return{role:R.getAriaRole(this),type:sap.ui.getCore().getLibraryResourceBundle("sap.m").getText("ACC_CTR_TYPE_INPUT"),description:[this.getValue()||"",R.getLabelledByAnnouncement(this),R.getDescribedByAnnouncement(this),r].join(" ").trim(),focusable:this.getEnabled(),enabled:this.getEnabled(),editable:this.getEnabled()&&this.getEditable()};};g.prototype._addIcon=function(i,o){if(["begin","end"].indexOf(i)===-1){b.error('icon position is not "begin", neither "end", please check again the passed setting');return null;}var e=I.createControlByURI(o).addStyleClass(g.ICON_CSS_CLASS);this.addAggregation("_"+i+"Icon",e);return e;};g.prototype.addBeginIcon=function(i){return this._addIcon("begin",i);};g.prototype.addEndIcon=function(i){return this._addIcon("end",i);};Object.defineProperty(g.prototype,"_$input",{get:function(){return this.$("inner");}});return g;});
sap.ui.predefine('sap/m/InputBaseRenderer',['sap/ui/core/Renderer','sap/ui/core/library','sap/ui/Device'],function(R,c,D){"use strict";var T=c.TextDirection;var V=c.ValueState;var I={apiVersion:2};I.render=function(r,C){var v=C.getValueState(),t=C.getTextDirection(),s=R.getTextAlign(C.getTextAlign(),t),a=sap.ui.getCore().getConfiguration().getAccessibility(),b=C.getAggregation("_beginIcon")||[],e=C.getAggregation("_endIcon")||[],d,f;r.openStart("div",C);this.addOuterStyles(r,C);this.addControlWidth(r,C);r.class("sapMInputBase");this.addPaddingClass(r,C);this.addCursorClass(r,C);this.addOuterClasses(r,C);if(!C.getEnabled()){r.class("sapMInputBaseDisabled");}if(!C.getEditable()){r.class("sapMInputBaseReadonly");}if(v!==V.None){r.class("sapMInputBaseState");}if(b.length){d=b.filter(function(i){return i.getVisible();});d.length&&r.class("sapMInputBaseHasBeginIcons");}if(e.length){f=e.filter(function(i){return i.getVisible();});f.length&&r.class("sapMInputBaseHasEndIcons");}this.writeOuterAttributes(r,C);var g=C.getTooltip_AsString();if(g){r.attr("title",g);}r.openEnd();r.openStart("div",C.getId()+"-content");r.class("sapMInputBaseContentWrapper");if(!C.getEnabled()){r.class("sapMInputBaseDisabledWrapper");}else if(!C.getEditable()){r.class("sapMInputBaseReadonlyWrapper");}if(v!==V.None){this.addValueStateClasses(r,C);}this.writeAccAttributes(r,C);this.addWrapperStyles(r,C);r.openEnd();if(b.length){this.writeIcons(r,b);}this.prependInnerContent(r,C);this.openInputTag(r,C);if(C.getName()){r.attr("name",C.getName());}if(!C.bShowLabelAsPlaceholder&&C._getPlaceholder()){r.attr("placeholder",C._getPlaceholder());}if(C.getMaxLength&&C.getMaxLength()>0){r.attr("maxlength",C.getMaxLength());}if(!C.getEnabled()){r.attr("disabled","disabled");}else if(!C.getEditable()){r.attr("readonly","readonly");}if(t!=T.Inherit){r.attr("dir",t.toLowerCase());}this.writeInnerValue(r,C);if(a){this.writeAccessibilityState(r,C);}if(D.browser.mozilla){if(g){r.attr("x-moz-errormessage",g);}else{r.attr("x-moz-errormessage"," ");}}this.writeInnerAttributes(r,C);r.class("sapMInputBaseInner");this.addInnerClasses(r,C);r.style("text-align",s);this.addInnerStyles(r,C);this.endInputTag(r,C);this.writeInnerContent(r,C);this.closeInputTag(r,C);if(e.length){this.writeIcons(r,e);}r.close("div");this.writeDecorations(r,C);if(a){this.renderAriaLabelledBy(r,C);this.renderAriaDescribedBy(r,C);}r.close("div");};I.getAriaRole=function(C){return"textbox";};I.getAriaLabelledBy=function(C){if(this.getLabelledByAnnouncement(C)){return C.getId()+"-labelledby";}};I.getLabelledByAnnouncement=function(C){return"";};I.renderAriaLabelledBy=function(r,C){var a=this.getLabelledByAnnouncement(C);if(a){r.openStart("span",C.getId()+"-labelledby");r.attr("aria-hidden","true");r.class("sapUiInvisibleText");r.openEnd();r.text(a.trim());r.close("span");}};I.getAriaDescribedBy=function(C){if(this.getDescribedByAnnouncement(C)){return C.getId()+"-describedby";}};I.getDescribedByAnnouncement=function(C){return"";};I.renderAriaDescribedBy=function(r,C){var a=this.getDescribedByAnnouncement(C);if(a){r.openStart("span",C.getId()+"-describedby");r.attr("aria-hidden","true");r.class("sapUiInvisibleText");r.openEnd();r.text(a.trim());r.close("span");}};I.getAccessibilityState=function(C){var a=this.getAriaLabelledBy(C),A=this.getAriaDescribedBy(C),r=this.getAriaRole(C),m={};if(r){m.role=r;}if(C.getValueState()===V.Error){m.invalid=true;}if(a){m.labelledby={value:a.trim(),append:true};}if(A){m.describedby={value:A.trim(),append:true};}m.disabled=null;m.readonly=null;return m;};I.writeAccessibilityState=function(r,C){r.accessibilityState(C,this.getAccessibilityState(C));};I.openInputTag=function(r,C){r.voidStart("input",C.getId()+"-"+this.getInnerSuffix());};I.endInputTag=function(r,C){r.voidEnd();};I.writeInnerValue=function(r,C){r.attr("value",C.getValue());};I.addCursorClass=function(r,C){};I.addPaddingClass=function(r,C){r.class("sapMInputBaseHeightMargin");};I.addOuterStyles=function(r,C){};I.addControlWidth=function(r,C){if(!C.getProperty('width')){r.class("sapMInputBaseNoWidth");}r.style("width",C.getWidth());};I.addOuterClasses=function(r,C){};I.writeOuterAttributes=function(r,C){};I.writeAccAttributes=function(r,C){};I.addInnerStyles=function(r,C){};I.addWrapperStyles=function(r,C){r.style("width","100%");};I.addInnerClasses=function(r,C){};I.writeInnerAttributes=function(r,C){};I.prependInnerContent=function(r,C){};I.writeInnerContent=function(r,C){};I.writeIcons=function(r,i){r.openStart("div");r.attr("tabindex","-1");r.class("sapMInputBaseIconContainer");r.openEnd();i.forEach(r.renderControl,r);r.close("div");};I.writeDecorations=function(r,C){};I.closeInputTag=function(r,C){};I.addPlaceholderStyles=function(r,C){};I.addPlaceholderClasses=function(r,C){};I.addValueStateClasses=function(r,C){r.class("sapMInputBaseContentWrapperState");r.class("sapMInputBaseContentWrapper"+C.getValueState());};I.getInnerSuffix=function(){return"inner";};return I;},true);
sap.ui.predefine('sap/m/InputListItem',["sap/ui/core/library","./library","./ListItemBase","./InputListItemRenderer"],function(c,l,L,I){"use strict";var T=c.TextDirection;var a=L.extend("sap.m.InputListItem",{metadata:{library:"sap.m",properties:{label:{type:"string",group:"Misc",defaultValue:null},labelTextDirection:{type:"sap.ui.core.TextDirection",group:"Appearance",defaultValue:T.Inherit}},defaultAggregation:"content",aggregations:{content:{type:"sap.ui.core.Control",multiple:true,singularName:"content",bindable:"bindable"}},designtime:"sap/m/designtime/InputListItem.designtime"}});a.prototype.getContentAnnouncement=function(){var A=this.getLabel();this.getContent().forEach(function(C){A+=L.getAccessibilityText(C)+" ";});return A;};return a;});
sap.ui.predefine('sap/m/InputListItemRenderer',["sap/ui/core/library","sap/ui/core/Renderer","./ListItemBaseRenderer"],function(c,R,L){"use strict";var T=c.TextDirection;var I=R.extend(L);I.apiVersion=2;I.renderLIAttributes=function(r,l){r.class("sapMILI");};I.renderLIContent=function(r,l){var s=l.getLabel();var i=l.getId()+"-label";if(s){r.openStart("span",i);r.class("sapMILILabel");var a=l.getLabelTextDirection();if(a!==T.Inherit){r.attr("dir",a.toLowerCase());}r.openEnd();r.text(s);r.close("span");}r.openStart("div").class("sapMILIDiv").class("sapMILI-CTX").openEnd();l.getContent().forEach(function(C){if(C.addAriaLabelledBy&&C.getAriaLabelledBy().indexOf(i)===-1){C.addAriaLabelledBy(i);}r.renderControl(C);});r.close("div");};return I;},true);
sap.ui.predefine('sap/m/InputRenderer',['sap/ui/core/InvisibleText','sap/ui/core/Renderer','./InputBaseRenderer','sap/m/library'],function(I,R,a,l){"use strict";var b=l.InputType;var c=R.extend(a);c.apiVersion=2;c.addOuterClasses=function(r,C){r.class("sapMInput");if(C.getDescription()){r.class("sapMInputWithDescription");}};c.writeInnerAttributes=function(r,C){r.attr("type",C.getType().toLowerCase());if(C.getType()==b.Number){r.attr("step","any");}if(C.getType()==b.Number&&sap.ui.getCore().getConfiguration().getRTL()){r.attr("dir","ltr");r.style("text-align","right");}if(C.getShowSuggestion()||C.getShowValueStateMessage()){r.attr("autocomplete","off");}if((!C.getEnabled()&&C.getType()=="Password")||(C.getShowSuggestion()&&C._bUseDialog)||(C.getValueHelpOnly()&&C.getEnabled()&&C.getEditable()&&C.getShowValueHelp())){r.attr("readonly","readonly");}};c.addInnerClasses=function(r,C){};c.writeDescription=function(r,C){r.openStart("div");r.class("sapMInputDescriptionWrapper");r.style("width","calc(100% - "+C.getFieldWidth()+")");r.openEnd();r.openStart("span",C.getId()+"-descr");r.class("sapMInputDescriptionText");r.openEnd();r.text(C.getDescription());r.close("span");r.close("div");};c.writeDecorations=function(r,C){if(C.getDescription()){this.writeDescription(r,C);}if(sap.ui.getCore().getConfiguration().getAccessibility()){if(C.getShowSuggestion()&&C.getEnabled()&&C.getEditable()){r.openStart("span",C.getId()+"-SuggDescr").class("sapUiPseudoInvisibleText").attr("role","status").attr("aria-live","polite").openEnd().close("span");}}};c.addWrapperStyles=function(r,C){r.style("width",C.getDescription()?C.getFieldWidth():"100%");};c.getAriaLabelledBy=function(C){var d=a.getAriaLabelledBy.call(this,C)||"";if(C.getDescription()){d=d+" "+C.getId()+"-descr";}return d;};c.getAriaDescribedBy=function(C){var A=a.getAriaDescribedBy.apply(this,arguments);function d(s){A=A?A+" "+s:s;}if(C.getShowValueHelp()&&C.getEnabled()&&C.getEditable()){d(I.getStaticId("sap.m","INPUT_VALUEHELP"));if(C.getValueHelpOnly()){d(I.getStaticId("sap.m","INPUT_DISABLED"));}}if(C.getShowSuggestion()&&C.getEnabled()&&C.getEditable()){d(C.getId()+"-SuggDescr");}return A;};c.getAriaRole=function(C){return"";};c.writeInnerValue=function(r,C){if(C.getType()!==b.Password){r.attr("value",C.getValue());}};c.getAccessibilityState=function(C){var A=a.getAccessibilityState.apply(this,arguments);return A;};return c;},true);
sap.ui.predefine('sap/m/InstanceManager',["sap/base/assert","sap/base/Log","sap/ui/thirdparty/jquery"],function(a,L,q){"use strict";var I={};var r={},e=[];var p="_POPOVER_",d="_DIALOG_",l="_LIGHTBOX_";I.addInstance=function(c,i){a(c,"In sap.m.InstanceManager.addInstance method, the parameter sCategoryId can't be null or empty string");a(i instanceof Object,"In sap.m.InstanceManager.addInstance method, the parameter oInstance should be an object");if(!r[c]){r[c]=[];}if(r[c].indexOf(i)===-1){r[c].push(i);}return this;};I.removeInstance=function(c,o){var C=r[c],i;a(c,"In sap.m.InstanceManager.removeInstance method, the parameter sCategoryId can't be null or empty string");a(o instanceof Object,"In sap.m.InstanceManager.removeInstance method, the parameter oInstance should be an object");if(!C){L.warning("Can't remove control from a non-managed category id: "+c);return null;}i=C.indexOf(o);return(i===-1)?null:C.splice(i,1);};I.getInstancesByCategoryId=function(c){a(c,"In sap.m.InstanceManager.getInstancesByCategoryId method, the parameter sCategoryId can't be null or empty string");return r[c]||e;};I.isInstanceManaged=function(c,i){a(c,"In sap.m.InstanceManager.isInstanceManaged method, the parameter sCategoryId can't be null or empty string");a(i instanceof Object,"In sap.m.InstanceManager.isInstanceManaged method, the parameter oInstance should be an object");var C=r[c];if(!C||!i){return false;}return C.indexOf(i)!==-1;};I.isCategoryEmpty=function(c){a(c,"In sap.m.InstanceManager.isCategoryEmpty method, the parameter sCategoryId can't be null or empty string");var C=r[c];return!C||C.length===0;};I.addPopoverInstance=function(P){if(typeof P.close==="function"){I.addInstance(p,P);}else{L.warning("In method addPopoverInstance: the parameter doesn't have a close method and can't be managed.");}return this;};I.addDialogInstance=function(D){if(typeof D.close==="function"){I.addInstance(d,D);}else{L.warning("In method addDialogInstance: the parameter doesn't have a close method and can't be managed.");}return this;};I.addLightBoxInstance=function(o){if(typeof o.close==="function"){I.addInstance(l,o);}else{L.warning("In method addLightBoxInstance: the parameter doesn't have a close method and can't be managed.");}return this;};I.removePopoverInstance=function(P){return I.removeInstance(p,P);};I.removeDialogInstance=function(D){return I.removeInstance(d,D);};I.removeLightBoxInstance=function(o){return I.removeInstance(l,o);};I.hasOpenPopover=function(){return!I.isCategoryEmpty(p);};I.hasOpenDialog=function(){return!I.isCategoryEmpty(d);};I.hasOpenLightBox=function(){return!I.isCategoryEmpty(l);};I.isDialogOpen=function(D){return I.isInstanceManaged(d,D);};I.isPopoverOpen=function(P){return I.isInstanceManaged(p,P);};I.isLightBoxOpen=function(o){return I.isInstanceManaged(l,o);};I.getOpenPopovers=function(){return I.getInstancesByCategoryId(p);};I.getOpenDialogs=function(){return I.getInstancesByCategoryId(d);};I.getOpenLightBoxes=function(){return I.getInstancesByCategoryId(l);};I.closeAllPopovers=function(){var b=I.getOpenPopovers(),i;for(i=0;i<b.length;i++){b[i].close();}return this;};I.closeAllDialogs=function(c){var D,b=[],f=I.getOpenDialogs(),g,i;for(i=0;i<f.length;i++){g=f[i];if(c){D=new q.Deferred().done();b.push(D);g.attachEvent("afterClose",(function(h){return function(){h.resolve();};}(D)));}g.close();}if(c){q.when.apply(this,b).then(c);}return this;};I.closeAllLightBoxes=function(){var i=I.getOpenLightBoxes(),b=i.length,c;for(c=0;c<b;c+=1){i[c].close();}return this;};return I;},true);
sap.ui.predefine('sap/m/Label',['./library','sap/ui/core/Control','sap/ui/core/LabelEnablement','sap/m/HyphenationSupport','sap/ui/core/library','./LabelRenderer'],function(l,C,L,H,c,a){"use strict";var T=c.TextDirection;var b=c.TextAlign;var d=l.LabelDesign;var V=c.VerticalAlign;var W=l.WrappingType;var e=C.extend("sap.m.Label",{metadata:{interfaces:["sap.ui.core.Label","sap.ui.core.IShrinkable","sap.m.IOverflowToolbarContent","sap.m.IToolbarInteractiveControl","sap.m.IHyphenation"],library:"sap.m",properties:{design:{type:"sap.m.LabelDesign",group:"Appearance",defaultValue:d.Standard},text:{type:"string",group:"Misc",defaultValue:null},textAlign:{type:"sap.ui.core.TextAlign",group:"Appearance",defaultValue:b.Begin},textDirection:{type:"sap.ui.core.TextDirection",group:"Appearance",defaultValue:T.Inherit},width:{type:"sap.ui.core.CSSSize",group:"Dimension",defaultValue:''},required:{type:"boolean",group:"Misc",defaultValue:false},displayOnly:{type:"boolean",group:"Appearance",defaultValue:false},wrapping:{type:"boolean",group:"Appearance",defaultValue:false},wrappingType:{type:"sap.m.WrappingType",group:"Appearance",defaultValue:W.Normal},vAlign:{type:"sap.ui.core.VerticalAlign",group:"Appearance",defaultValue:V.Inherit}},associations:{labelFor:{type:"sap.ui.core.Control",multiple:false}},designtime:"sap/m/designtime/Label.designtime"}});e.prototype.getAccessibilityInfo=function(){return{description:this.getText()};};e.prototype.getOverflowToolbarConfig=function(){var o={canOverflow:true,propsUnrelatedToSize:["design","required","displayOnly"]};function g(f){var h=f&&f.getLayoutData();if(i(h,"sap/m/OverflowToolbarLayoutData")){return h.getGroup();}}o.onBeforeEnterOverflow=function(f){var I=false,t,s,h,j,k;t=f.getParent();if(!i(t,"sap/m/OverflowToolbar")){return;}s=f.getLabelFor();h=s&&sap.ui.getCore().byId(s);if(!h||(t.indexOfContent(h)<0)){return;}j=g(f);k=g(h);I=j&&(j===k);f.toggleStyleClass("sapMLabelMediumMarginTop",I,true);};o.onAfterExitOverflow=function(f){f.toggleStyleClass("sapMLabelMediumMarginTop",false,true);};return o;};e.prototype.getTextsToBeHyphenated=function(){return{"main":this.getText()};};e.prototype.getDomRefsForHyphenatedTexts=function(){return{"main":this.$("bdi")[0]};};e.prototype._getToolbarInteractive=function(){return false;};L.enrich(e.prototype);H.mixInto(e.prototype);function i(o,m){if(o&&m){var f=sap.ui.require(m);return(typeof f==='function')&&(o instanceof f);}}return e;});
sap.ui.predefine('sap/m/LabelRenderer',['sap/ui/core/Renderer','sap/m/library','sap/ui/core/library','sap/m/HyphenationSupport',"sap/ui/core/LabelEnablement"],function(R,l,c,H,L){"use strict";var T=c.TextDirection;var V=c.VerticalAlign;var a=l.LabelDesign;var b={apiVersion:2};b.render=function(d,o){var r=b,t=o.getTextDirection(),s=o.getTextAlign(),w=o.getWidth(),e=o.getText(),f=o.getTooltip_AsString(),g=o.getLabelForRendering(),h=g?"label":"span",D=o.isDisplayOnly(),v=o.getVAlign();d.openStart(h,o);d.class("sapMLabel");d.class("sapUiSelectable");if(o.isWrapping()){d.class("sapMLabelWrapped");}if(o.getDesign()==a.Bold){d.style("font-weight","bold");}if(o.isRequired()){d.class("sapMLabelRequired");}if(g){L.writeLabelForAttribute(d,o);}else if(o.getParent()instanceof sap.m.Toolbar){d.class("sapMLabelTBHeader");}d.accessibilityState({label:o.getText()});if(t!==T.Inherit){d.attr("dir",t.toLowerCase());}if(w){d.style("width",w);}else{d.class("sapMLabelMaxWidth");}if(s){s=r.getTextAlign(s,t);if(s){d.style("text-align",s);}}if(e==""){d.class("sapMLabelNoText");}if(D){d.class("sapMLabelDisplayOnly");}if(v!=V.Inherit){d.style("vertical-align",v.toLowerCase());}H.writeHyphenationClass(d,o);if(f){d.attr("title",f);}d.openEnd();d.openStart("bdi");d.attr("id",o.getId()+"-bdi");d.openEnd();if(e){e=H.getTextForRender(o,"main");d.text(e);}d.close("bdi");d.close(h);};b.getTextAlign=R.getTextAlign;return b;},true);
sap.ui.predefine('sap/m/Link',['./library','sap/ui/core/Control','sap/ui/core/InvisibleText','sap/ui/core/EnabledPropagator','sap/ui/core/LabelEnablement','sap/ui/core/library','sap/ui/Device','./LinkRenderer',"sap/ui/events/KeyCodes","sap/base/Log","sap/base/security/URLWhitelist"],function(l,C,I,E,L,c,D,a,K,b,U){"use strict";var T=c.TextDirection;var d=c.TextAlign;var e=C.extend("sap.m.Link",{metadata:{interfaces:["sap.ui.core.IShrinkable","sap.ui.core.IFormContent","sap.m.IToolbarInteractiveControl"],library:"sap.m",designtime:"sap/m/designtime/Link.designtime",properties:{text:{type:"string",group:"Data",defaultValue:''},enabled:{type:"boolean",group:"Behavior",defaultValue:true},target:{type:"string",group:"Behavior",defaultValue:null},rel:{type:"string",group:"Behavior",defaultValue:null},width:{type:"sap.ui.core.CSSSize",group:"Dimension",defaultValue:null},href:{type:"sap.ui.core.URI",group:"Data",defaultValue:null},validateUrl:{type:"boolean",group:"Data",defaultValue:false},wrapping:{type:"boolean",group:"Appearance",defaultValue:false},textAlign:{type:"sap.ui.core.TextAlign",group:"Appearance",defaultValue:d.Initial},textDirection:{type:"sap.ui.core.TextDirection",group:"Appearance",defaultValue:T.Inherit},subtle:{type:"boolean",group:"Behavior",defaultValue:false},emphasized:{type:"boolean",group:"Behavior",defaultValue:false}},associations:{ariaDescribedBy:{type:"sap.ui.core.Control",multiple:true,singularName:"ariaDescribedBy"},ariaLabelledBy:{type:"sap.ui.core.Control",multiple:true,singularName:"ariaLabelledBy"}},events:{press:{allowPreventDefault:true,parameters:{ctrlKey:{type:"boolean"},metaKey:{type:"boolean"}}}},dnd:{draggable:true,droppable:false}}});E.call(e.prototype);e.prototype.onBeforeRendering=function(){};e.prototype.onAfterRendering=function(){if(D.system.phone||D.system.tablet){var A=this.getDomRef();if(!A){return;}A.removeEventListener("click",this._onClick);if(A.getAttribute("href")=="#"){A.addEventListener("click",this._onClick);}}};e.prototype.exit=function(){if(D.system.phone||D.system.tablet){var A=this.getDomRef();if(!A){return;}A.removeEventListener("click",this._onClick);}};e.prototype._onClick=function(o){o.preventDefault();};e.prototype.onkeydown=function(o){if(o.which===K.SPACE||o.which===K.SHIFT||o.which===K.ESCAPE){if(o.which===K.SPACE){if(this.getEnabled()||this.getHref()){o.setMarked();o.preventDefault();this._bPressedSpace=true;}}if(this._bPressedSpace&&(o.which===K.ESCAPE||o.which===K.SHIFT)){this._bPressedEscapeOrShift=true;}}else{if(this._bPressedSpace){o.preventDefault();}}};e.prototype.onkeyup=function(o){if(o.which===K.SPACE){if(!this._bPressedEscapeOrShift){this._handlePress(o);if(this.getHref()&&!o.isDefaultPrevented()){o.preventDefault();o.setMarked();var f=document.createEvent('MouseEvents');f.initEvent('click',false,true);this.getDomRef().dispatchEvent(f);}}else{this._bPressedEscapeOrShift=false;}this._bPressedSpace=false;}};e.prototype._handlePress=function(o){var t=o.target,f;if(this.getEnabled()){o.setMarked();f=t.classList.contains("sapMLnk")&&t.getAttribute("href")=="#";if(!this.firePress({ctrlKey:!!o.ctrlKey,metaKey:!!o.metaKey})||f){o.preventDefault();}}else{o.preventDefault();}};e.prototype.onsapenter=e.prototype._handlePress;e.prototype.onclick=e.prototype._handlePress;e.prototype.ontouchstart=function(o){if(this.getEnabled()){o.setMarked();}};e.prototype.setSubtle=function(s){this.setProperty("subtle",s);if(s&&!e.prototype._sAriaLinkSubtleId){e.prototype._sAriaLinkSubtleId=I.getStaticId("sap.m","LINK_SUBTLE");}return this;};e.prototype.setEmphasized=function(f){this.setProperty("emphasized",f);if(f&&!e.prototype._sAriaLinkEmphasizedId){e.prototype._sAriaLinkEmphasizedId=I.getStaticId("sap.m","LINK_EMPHASIZED");}return this;};e.prototype._isHrefValid=function(u){return this.getValidateUrl()?U.validate(u):true;};e.prototype.getAccessibilityInfo=function(){return{role:"link",type:this.getText()?sap.ui.getCore().getLibraryResourceBundle("sap.m").getText("ACC_CTR_TYPE_LINK"):undefined,description:this.getText()||this.getHref()||"",focusable:this.getEnabled(),enabled:this.getEnabled()};};e.prototype.getFormDoNotAdjustWidth=function(){return true;};e.prototype._getTabindex=function(){return(this.getText()&&this.getEnabled())?"0":"-1";};e.prototype._determineSelfReferencePresence=function(){var A=this.getAriaLabelledBy(),B=D.browser.msie,f=A.indexOf(this.getId())!==-1,h=L.getReferencingLabels(this).length>0,p=this.getParent(),g=!!(p&&p.enhanceAccessibilityState);return!B&&!f&&(A.length>0||h||g);};e.prototype._getToolbarInteractive=function(){return true;};return e;});
sap.ui.predefine('sap/m/LinkRenderer',['sap/ui/core/Renderer','sap/ui/core/library',"sap/ui/util/defaultLinkTypes"],function(R,c,d){"use strict";var T=c.TextDirection;var L={apiVersion:2};L.render=function(r,C){var t=C.getTextDirection(),s=R.getTextAlign(C.getTextAlign(),t),S=C._determineSelfReferencePresence(),a=d(C.getRel(),C.getTarget()),h=C.getHref(),A={labelledby:S?{value:C.getId(),append:true}:undefined},e=C.getEnabled();h=h&&C._isHrefValid(h)&&C.getEnabled()?h:"#";r.openStart("a",C);r.class("sapMLnk");if(C.getSubtle()){r.class("sapMLnkSubtle");if(A.describedby){A.describedby+=" "+C._sAriaLinkSubtleId;}else{A.describedby=C._sAriaLinkSubtleId;}}if(C.getEmphasized()){r.class("sapMLnkEmphasized");if(A.describedby){A.describedby+=" "+C._sAriaLinkEmphasizedId;}else{A.describedby=C._sAriaLinkEmphasizedId;}}if(!e){r.class("sapMLnkDsbl");r.attr("disabled","true");A.disabled=null;}r.attr("tabindex",C._getTabindex());if(C.getWrapping()){r.class("sapMLnkWrapping");}if(C.getTooltip_AsString()){r.attr("title",C.getTooltip_AsString());}r.attr("href",h);if(C.getTarget()){r.attr("target",C.getTarget());}if(a){r.attr("rel",a);}if(C.getWidth()){r.style("width",C.getWidth());}else{r.class("sapMLnkMaxWidth");}if(s){r.style("text-align",s);}if(t!==T.Inherit){r.attr("dir",t.toLowerCase());}r.accessibilityState(C,A);r.openEnd();if(this.writeText){this.writeText(r,C);}else{this.renderText(r,C);}r.close("a");};L.renderText=function(r,C){r.text(C.getText());};return L;},true);
sap.ui.predefine('sap/m/List',["./library","./ListBase","./ListRenderer"],function(l,L,a){"use strict";var B=l.BackgroundDesign;var b=L.extend("sap.m.List",{metadata:{library:"sap.m",properties:{backgroundDesign:{type:"sap.m.BackgroundDesign",group:"Appearance",defaultValue:B.Solid}}}});return b;});
sap.ui.predefine('sap/m/ListBase',["sap/ui/events/KeyCodes","sap/ui/Device","sap/ui/core/Control","sap/ui/core/InvisibleText","sap/ui/core/LabelEnablement","sap/ui/core/delegate/ItemNavigation","./library","./InstanceManager","./GrowingEnablement","./GroupHeaderListItem","./ListItemBase","./ListBaseRenderer","sap/base/strings/capitalize","sap/ui/thirdparty/jquery","sap/base/Log","sap/ui/dom/jquery/control","sap/ui/dom/jquery/Selectors","sap/ui/dom/jquery/Aria"],function(K,D,C,I,L,a,l,b,G,c,d,f,g,q,h){"use strict";var j=l.ListType;var k=l.ListKeyboardMode;var m=l.ListGrowingDirection;var S=l.SwipeDirection;var n=l.ListSeparators;var o=l.ListMode;var p=l.ListHeaderDesign;var r=l.Sticky;var s=C.extend("sap.m.ListBase",{metadata:{library:"sap.m",dnd:true,properties:{inset:{type:"boolean",group:"Appearance",defaultValue:false},headerText:{type:"string",group:"Misc",defaultValue:null},headerDesign:{type:"sap.m.ListHeaderDesign",group:"Appearance",defaultValue:p.Standard,deprecated:true},footerText:{type:"string",group:"Misc",defaultValue:null},mode:{type:"sap.m.ListMode",group:"Behavior",defaultValue:o.None},width:{type:"sap.ui.core.CSSSize",group:"Dimension",defaultValue:"100%"},includeItemInSelection:{type:"boolean",group:"Behavior",defaultValue:false},showUnread:{type:"boolean",group:"Misc",defaultValue:false},noDataText:{type:"string",group:"Misc",defaultValue:null},showNoData:{type:"boolean",group:"Misc",defaultValue:true},enableBusyIndicator:{type:"boolean",group:"Behavior",defaultValue:true},modeAnimationOn:{type:"boolean",group:"Misc",defaultValue:true},showSeparators:{type:"sap.m.ListSeparators",group:"Appearance",defaultValue:n.All},swipeDirection:{type:"sap.m.SwipeDirection",group:"Misc",defaultValue:S.Both},growing:{type:"boolean",group:"Behavior",defaultValue:false},growingThreshold:{type:"int",group:"Misc",defaultValue:20},growingTriggerText:{type:"string",group:"Appearance",defaultValue:null},growingScrollToLoad:{type:"boolean",group:"Behavior",defaultValue:false},growingDirection:{type:"sap.m.ListGrowingDirection",group:"Behavior",defaultValue:m.Downwards},rememberSelections:{type:"boolean",group:"Behavior",defaultValue:true},keyboardMode:{type:"sap.m.ListKeyboardMode",group:"Behavior",defaultValue:k.Navigation},sticky:{type:"sap.m.Sticky[]",group:"Appearance"}},defaultAggregation:"items",aggregations:{items:{type:"sap.m.ListItemBase",multiple:true,singularName:"item",bindable:"bindable",selector:"#{id} .sapMListItems",dnd:true},swipeContent:{type:"sap.ui.core.Control",multiple:false},headerToolbar:{type:"sap.m.Toolbar",multiple:false},infoToolbar:{type:"sap.m.Toolbar",multiple:false},contextMenu:{type:"sap.ui.core.IContextMenu",multiple:false}},associations:{ariaLabelledBy:{type:"sap.ui.core.Control",multiple:true,singularName:"ariaLabelledBy"}},events:{select:{deprecated:true,parameters:{listItem:{type:"sap.m.ListItemBase"}}},selectionChange:{parameters:{listItem:{type:"sap.m.ListItemBase"},listItems:{type:"sap.m.ListItemBase[]"},selected:{type:"boolean"},selectAll:{type:"boolean"}}},"delete":{parameters:{listItem:{type:"sap.m.ListItemBase"}}},swipe:{allowPreventDefault:true,parameters:{listItem:{type:"sap.m.ListItemBase"},swipeContent:{type:"sap.ui.core.Control"},srcControl:{type:"sap.ui.core.Control"}}},growingStarted:{deprecated:true,parameters:{actual:{type:"int"},total:{type:"int"}}},growingFinished:{deprecated:true,parameters:{actual:{type:"int"},total:{type:"int"}}},updateStarted:{parameters:{reason:{type:"string"},actual:{type:"int"},total:{type:"int"}}},updateFinished:{parameters:{reason:{type:"string"},actual:{type:"int"},total:{type:"int"}}},itemPress:{parameters:{listItem:{type:"sap.m.ListItemBase"},srcControl:{type:"sap.ui.core.Control"}}},beforeOpenContextMenu:{allowPreventDefault:true,parameters:{listItem:{type:"sap.m.ListItemBase"}}}},designtime:"sap/m/designtime/ListBase.designtime"}});s.prototype.bAnnounceDetails=true;s.getInvisibleText=function(){return this.oInvisibleText||(this.oInvisibleText=new I().toStatic());};s.prototype.sNavItemClass="sapMLIB";s.prototype.init=function(){this._aNavSections=[];this._aSelectedPaths=[];this._iItemNeedsHighlight=0;this.data("sap-ui-fastnavgroup","true",true);};s.prototype.onBeforeRendering=function(){this._bRendering=true;this._bActiveItem=false;this._aNavSections=[];this._removeSwipeContent();};s.prototype.onAfterRendering=function(){this._bRendering=false;this._sLastMode=this.getMode();if(D.system.desktop){this._startItemNavigation(true);}};s.prototype.exit=function(){this._oSelectedItem=null;this._aNavSections=[];this._aSelectedPaths=[];this._destroyGrowingDelegate();this._destroyItemNavigation();};s.prototype.refreshItems=function(R){if(this._oGrowingDelegate){this._oGrowingDelegate.refreshItems(R);}else{if(!this._bReceivingData){this._updateStarted(R);this._bReceivingData=true;}this.refreshAggregation("items");}};s.prototype.updateItems=function(R){if(this._oGrowingDelegate){this._oGrowingDelegate.updateItems(R);}else{if(this._bReceivingData){this._bReceivingData=false;}else{this._updateStarted(R);}this.updateAggregation("items");this._updateFinished();}};s.prototype.setBindingContext=function(e,M){var i=(this.getBindingInfo("items")||{}).model;if(i===M){this._resetItemsBinding();}return C.prototype.setBindingContext.apply(this,arguments);};s.prototype._bindAggregation=function(N,B){function e(B,E,H){B.events=B.events||{};if(!B.events[E]){B.events[E]=H;}else{var O=B.events[E];B.events[E]=function(){H.apply(this,arguments);O.apply(this,arguments);};}}if(N==="items"){this._resetItemsBinding();e(B,"dataRequested",this._onBindingDataRequestedListener.bind(this));e(B,"dataReceived",this._onBindingDataReceivedListener.bind(this));}C.prototype._bindAggregation.call(this,N,B);};s.prototype._onBindingDataRequestedListener=function(e){this._showBusyIndicator();if(this._dataReceivedHandlerId!=null){clearTimeout(this._dataReceivedHandlerId);delete this._dataReceivedHandlerId;}};s.prototype._onBindingDataReceivedListener=function(e){if(this._dataReceivedHandlerId!=null){clearTimeout(this._dataReceivedHandlerId);delete this._dataReceivedHandlerId;}this._dataReceivedHandlerId=setTimeout(function(){this._hideBusyIndicator();delete this._dataReceivedHandlerId;}.bind(this),0);};s.prototype.destroyItems=function(e){if(!this.getItems(true).length){return this;}this._oSelectedItem=null;this.destroyAggregation("items","KeepDom");if(!e){this.invalidate();}return this;};s.prototype.removeAllItems=function(A){this._oSelectedItem=null;return this.removeAllAggregation("items");};s.prototype.removeItem=function(i){var e=this.removeAggregation("items",i);if(e&&e===this._oSelectedItem){this._oSelectedItem=null;}return e;};s.prototype.getItems=function(R){if(R){return this.mAggregations["items"]||[];}return this.getAggregation("items",[]);};s.prototype.getId=function(e){var i=this.sId;return e?i+"-"+e:i;};s.prototype.setGrowing=function(e){e=!!e;if(this.getGrowing()!=e){this.setProperty("growing",e,!e);if(e){this._oGrowingDelegate=new G(this);}else if(this._oGrowingDelegate){this._oGrowingDelegate.destroy();this._oGrowingDelegate=null;}}return this;};s.prototype.setGrowingThreshold=function(t){return this.setProperty("growingThreshold",t,true);};s.prototype.setEnableBusyIndicator=function(e){this.setProperty("enableBusyIndicator",e,true);this._hideBusyIndicator();return this;};s.prototype.setNoDataText=function(N){this.setProperty("noDataText",N,true);this.$("nodata-text").text(this.getNoDataText());return this;};s.prototype.getNoDataText=function(e){if(e&&this._bBusy){return"";}var N=this.getProperty("noDataText");N=N||sap.ui.getCore().getLibraryResourceBundle("sap.m").getText("LIST_NO_DATA");return N;};s.prototype.getSelectedItem=function(){var e=this.getItems(true);for(var i=0;i<e.length;i++){if(e[i].getSelected()){return e[i];}}return null;};s.prototype.setSelectedItem=function(e,i,F){if(this.indexOfItem(e)<0){h.warning("setSelectedItem is called without valid ListItem parameter on "+this);return;}if(this._bSelectionMode){e.setSelected((i===undefined)?true:!!i);F&&this._fireSelectionChangeEvent([e]);}};s.prototype.getSelectedItems=function(){return this.getItems(true).filter(function(i){return i.getSelected();});};s.prototype.setSelectedItemById=function(i,e){var t=sap.ui.getCore().byId(i);return this.setSelectedItem(t,e);};s.prototype.getSelectedContexts=function(A){var B=this.getBindingInfo("items"),M=(B||{}).model,e=this.getModel(M);if(!B||!e){return[];}if(A&&this.getRememberSelections()){return this._aSelectedPaths.map(function(P){return e.getContext(P);});}return this.getSelectedItems().map(function(i){return i.getBindingContext(M);});};s.prototype.removeSelections=function(A,F,e){var i=[];this._oSelectedItem=null;A&&(this._aSelectedPaths=[]);this.getItems(true).forEach(function(t){if(!t.getSelected()){return;}if(e&&t.isSelectedBoundTwoWay()){return;}t.setSelected(false,true);i.push(t);!A&&this._updateSelectedPaths(t);},this);if(F&&i.length){this._fireSelectionChangeEvent(i);}return this;};s.prototype.selectAll=function(F){if(this.getMode()!="MultiSelect"){return this;}var e=[];this.getItems(true).forEach(function(i){if(!i.getSelected()){i.setSelected(true,true);e.push(i);this._updateSelectedPaths(i);}},this);if(F&&e.length){this._fireSelectionChangeEvent(e,F);}return this;};s.prototype.getLastMode=function(M){return this._sLastMode;};s.prototype.setMode=function(M){M=this.validateProperty("mode",M);var O=this.getMode();if(O==M){return this;}this._bSelectionMode=M.indexOf("Select")>-1;if(!this._bSelectionMode){this.removeSelections(true);}else{var e=this.getSelectedItems();if(e.length>1){this.removeSelections(true);}else if(O===o.MultiSelect){this._oSelectedItem=e[0];}}return this.setProperty("mode",M);};s.prototype.getGrowingInfo=function(){return this._oGrowingDelegate?this._oGrowingDelegate.getInfo():null;};s.prototype.setRememberSelections=function(R){this.setProperty("rememberSelections",R,true);!this.getRememberSelections()&&(this._aSelectedPaths=[]);return this;};s.prototype.setSelectedContextPaths=function(e){this._aSelectedPaths=e||[];};s.prototype.getSelectedContextPaths=function(A){if(!A||(A&&this.getRememberSelections())){return this._aSelectedPaths.slice(0);}return this.getSelectedItems().map(function(i){return i.getBindingContextPath();});};s.prototype.isAllSelectableSelected=function(){if(this.getMode()!=o.MultiSelect){return false;}var i=this.getItems(true),e=this.getSelectedItems().length,t=i.filter(function(u){return u.isSelectable();}).length;return(i.length>0)&&(e==t);};s.prototype.getVisibleItems=function(){return this.getItems(true).filter(function(i){return i.getVisible();});};s.prototype.getActiveItem=function(){return this._bActiveItem;};s.prototype.onItemDOMUpdate=function(e){if(!this._bRendering&&this.bOutput){this._startItemNavigation(true);}var v=this.getVisibleItems().length>0;if(!v&&!this._bInvalidatedForNoData){this.invalidate();this._bInvalidatedForNoData=true;}else if(v&&this._bInvalidatedForNoData){this.invalidate();this._bInvalidatedForNoData=false;}};s.prototype.onItemActiveChange=function(e,A){this._bActiveItem=A;};s.prototype.onItemHighlightChange=function(i,N){this._iItemNeedsHighlight+=(N?1:-1);if(this._iItemNeedsHighlight==1&&N){this.$("listUl").addClass("sapMListHighlight");}else if(this._iItemNeedsHighlight==0){this.$("listUl").removeClass("sapMListHighlight");}};s.prototype.onItemSelectedChange=function(e,i){if(this.getMode()==o.MultiSelect){this._updateSelectedPaths(e,i);return;}if(i){this._aSelectedPaths=[];this._oSelectedItem&&this._oSelectedItem.setSelected(false,true);this._oSelectedItem=e;}else if(this._oSelectedItem===e){this._oSelectedItem=null;}this._updateSelectedPaths(e,i);};s.prototype.getItemsContainerDomRef=function(){return this.getDomRef("listUl");};s.prototype.checkGrowingFromScratch=function(){};s.prototype.onBeforePageLoaded=function(e,i){this._fireUpdateStarted(i,e);this.fireGrowingStarted(e);};s.prototype.onAfterPageLoaded=function(e,i){this._fireUpdateFinished(e);this.fireGrowingFinished(e);};s.prototype.addNavSection=function(i){this._aNavSections.push(i);return i;};s.prototype.getMaxItemsCount=function(){var B=this.getBinding("items");if(B&&B.getLength){return B.getLength()||0;}return this.getItems(true).length;};s.prototype.shouldRenderItems=function(){return true;};s.prototype._resetItemsBinding=function(){if(this.isBound("items")){this._bUpdating=false;this._bReceivingData=false;this.removeSelections(true,false,true);this._oGrowingDelegate&&this._oGrowingDelegate.reset();this._hideBusyIndicator();if(this._oItemNavigation){this._oItemNavigation.iFocusedIndex=-1;}}};s.prototype._updateStarted=function(R){if(!this._bReceivingData&&!this._bUpdating){this._bUpdating=true;this._fireUpdateStarted(R);}};s.prototype._fireUpdateStarted=function(R,i){this._sUpdateReason=g(R||"Refresh");this.fireUpdateStarted({reason:this._sUpdateReason,actual:i?i.actual:this.getItems(true).length,total:i?i.total:this.getMaxItemsCount()});};s.prototype.onThemeChanged=function(){if(this._oGrowingDelegate){this._oGrowingDelegate._updateTrigger();}};s.prototype._updateFinished=function(){if(!this._bReceivingData&&this._bUpdating){this._fireUpdateFinished();this._bUpdating=false;}};s.prototype._fireUpdateFinished=function(i){this._hideBusyIndicator();setTimeout(function(){this._bItemNavigationInvalidated=true;this.fireUpdateFinished({reason:this._sUpdateReason,actual:i?i.actual:this.getItems(true).length,total:i?i.total:this.getMaxItemsCount()});}.bind(this),0);};s.prototype._showBusyIndicator=function(){if(this.getEnableBusyIndicator()&&!this.getBusy()&&!this._bBusy){this._bBusy=true;this._sBusyTimer=setTimeout(function(){this.$("nodata-text").text("");}.bind(this),this.getBusyIndicatorDelay());this.setBusy(true,"listUl");}};s.prototype._hideBusyIndicator=function(){if(this._bBusy){this._bBusy=false;if(this.getEnableBusyIndicator()){this.setBusy(false,"listUl");clearTimeout(this._sBusyTimer);}if(!this.getItems(true).length){this.$("nodata-text").text(this.getNoDataText());}}};s.prototype.onItemBindingContextSet=function(i){if(!this._bSelectionMode||!this.getRememberSelections()||!this.isBound("items")){return;}if(i.isSelectedBoundTwoWay()){return;}var P=i.getBindingContextPath();if(P){var e=(this._aSelectedPaths.indexOf(P)>-1);i.setSelected(e);}};s.prototype.onItemInserted=function(i,e){if(e){this.onItemSelectedChange(i,true);}if(!this._bSelectionMode||!this._aSelectedPaths.length||!this.getRememberSelections()||!this.isBound("items")||i.isSelectedBoundTwoWay()||i.getSelected()){return;}var P=i.getBindingContextPath();if(P&&this._aSelectedPaths.indexOf(P)>-1){i.setSelected(true);}};s.prototype.onItemSelect=function(e,t){var M=this.getMode();if(this._mRangeSelection){if(!this._mRangeSelection.selected){this._fireSelectionChangeEvent([e]);this._mRangeSelection.index=this.getVisibleItems().indexOf(e);this._mRangeSelection.selected=t;return;}if(!t){e.setSelected(true);return;}var u=this.indexOfItem(e),v=this.getItems(),w,x,y=[],z;if(u<this._mRangeSelection.index){w=this._mRangeSelection.index-u;z=-1;}else{w=u-this._mRangeSelection.index;z=1;}for(var i=1;i<=w;i++){x=v[this._mRangeSelection.index+(i*z)];if(x.isSelectable()&&x.getVisible()&&!x.getSelected()){x.setSelected(true);y.push(x);}else if(x===e){y.push(x);}}this._fireSelectionChangeEvent(y);return;}if(M===o.MultiSelect){this._fireSelectionChangeEvent([e]);}else if(this._bSelectionMode&&t){this._fireSelectionChangeEvent([e]);}};s.prototype._fireSelectionChangeEvent=function(e,i){var t=e&&e[0];if(!t){return;}this.fireSelectionChange({listItem:t,listItems:e,selected:t.getSelected(),selectAll:!!i});this.fireSelect({listItem:t});};s.prototype.onItemDelete=function(e){this.fireDelete({listItem:e});};s.prototype.onItemPress=function(e,i){if(e.getType()==j.Inactive){return;}setTimeout(function(){this.fireItemPress({listItem:e,srcControl:i});}.bind(this),0);};s.prototype.onItemKeyDown=function(i,e){if(!e.shiftKey||this.getMode()!==o.MultiSelect||!i.isSelectable()){return;}var v=this.getVisibleItems(),H=v.some(function(V){return!!V.getSelected();});if(!H){return;}if(!this._mRangeSelection){this._mRangeSelection={index:v.indexOf(i),selected:i.getSelected()};}};s.prototype.onItemKeyUp=function(i,e){if(e.which===K.SHIFT){this._mRangeSelection=null;}};s.prototype._updateSelectedPaths=function(i,e){if(!this.getRememberSelections()||!this.isBound("items")){return;}var P=i.getBindingContextPath();if(!P){return;}e=(e===undefined)?i.getSelected():e;var t=this._aSelectedPaths.indexOf(P);if(e){t<0&&this._aSelectedPaths.push(P);}else{t>-1&&this._aSelectedPaths.splice(t,1);}};s.prototype._destroyGrowingDelegate=function(){if(this._oGrowingDelegate){this._oGrowingDelegate.destroy();this._oGrowingDelegate=null;}};s.prototype._destroyItemNavigation=function(){if(this._oItemNavigation){this.removeEventDelegate(this._oItemNavigation);this._oItemNavigation.destroy();this._oItemNavigation=null;}};s.prototype._getTouchBlocker=function(){return this.$().children();};s.prototype._getSwipeContainer=function(){return this._$swipeContainer||(this._$swipeContainer=q("<div>",{"id":this.getId("swp"),"class":"sapMListSwp"}));};s.prototype._setSwipePosition=function(){if(this._isSwipeActive){return this._getSwipeContainer().css("top",this._swipedItem.$().position().top);}};s.prototype._renderSwipeContent=function(){var $=this._swipedItem.$(),e=this._getSwipeContainer();this.$().prepend(e.css({top:$.position().top,height:$.outerHeight(true)}));if(this._bRerenderSwipeContent){this._bRerenderSwipeContent=false;var i=sap.ui.getCore().createRenderManager();i.render(this.getSwipeContent(),e.empty()[0]);i.destroy();}return this;};s.prototype._swipeIn=function(){var t=this,$=t._getTouchBlocker(),i=t._getSwipeContainer();t._isSwipeActive=true;t._renderSwipeContent();b.addDialogInstance(t);window.document.activeElement.blur();q(window).on("resize.swp",function(){t._setSwipePosition();});$.css("pointer-events","none").on("touchstart.swp mousedown.swp",function(e){if(!i[0].firstChild.contains(e.target)){e.preventDefault();e.stopPropagation();}});i.bind("webkitAnimationEnd animationend",function(){q(this).unbind("webkitAnimationEnd animationend");i.css("opacity",1).focus();$.parent().on("touchend.swp touchcancel.swp mouseup.swp",function(e){if(!i[0].firstChild.contains(e.target)){t.swipeOut();}});}).removeClass("sapMListSwpOutAnim").addClass("sapMListSwpInAnim");};s.prototype._onSwipeOut=function(e){this._getSwipeContainer().css("opacity",0).remove();q(window).off("resize.swp");this._getTouchBlocker().css("pointer-events","auto").off("touchstart.swp mousedown.swp");if(typeof e=="function"){e.call(this,this._swipedItem,this.getSwipeContent());}this._isSwipeActive=false;b.removeDialogInstance(this);};s.prototype.swipeOut=function(e){if(!this._isSwipeActive){return this;}var t=this,$=this._getSwipeContainer();this._getTouchBlocker().parent().off("touchend.swp touchend.swp touchcancel.swp mouseup.swp");$.bind("webkitAnimationEnd animationend",function(){q(this).unbind("webkitAnimationEnd animationend");t._onSwipeOut(e);}).removeClass("sapMListSwpInAnim").addClass("sapMListSwpOutAnim");return this;};s.prototype._removeSwipeContent=function(){if(this._isSwipeActive){this.swipeOut()._onSwipeOut();}};s.prototype.close=s.prototype._removeSwipeContent;s.prototype._onSwipe=function(e){var i=this.getSwipeContent(),t=e.srcControl;if(i&&t&&!this._isSwipeActive&&this!==t&&!this._eventHandledByControl&&D.support.touch){for(var u=t;u&&!(u instanceof d);u=u.oParent);if(u instanceof d){this._swipedItem=u;this.fireSwipe({listItem:this._swipedItem,swipeContent:i,srcControl:t},true)&&this._swipeIn();}}};s.prototype.ontouchstart=function(e){this._eventHandledByControl=e.isMarked();};s.prototype.onswipeleft=function(e){var i=sap.ui.getCore().getConfiguration().getRTL()?"RightToLeft":"LeftToRight";if(this.getSwipeDirection()!=i){this._onSwipe(e);}};s.prototype.onswiperight=function(e){var i=sap.ui.getCore().getConfiguration().getRTL()?"LeftToRight":"RightToLeft";if(this.getSwipeDirection()!=i){this._onSwipe(e);}};s.prototype.setSwipeDirection=function(e){return this.setProperty("swipeDirection",e,true);};s.prototype.getSwipedItem=function(){return(this._isSwipeActive?this._swipedItem:null);};s.prototype.setSwipeContent=function(e){this._bRerenderSwipeContent=true;this.toggleStyleClass("sapMListSwipable",!!e);return this.setAggregation("swipeContent",e,!this._isSwipeActive);};s.prototype.invalidate=function(O){if(O&&O===this.getSwipeContent()){this._bRerenderSwipeContent=true;this._isSwipeActive&&this._renderSwipeContent();return;}return C.prototype.invalidate.apply(this,arguments);};s.prototype.addItemGroup=function(e,H,i){if(!H){H=new c();H.setTitle(e.text||e.key);}H._bGroupHeader=true;this.addAggregation("items",H,i);return H;};s.prototype.removeGroupHeaders=function(e){this.getItems(true).forEach(function(i){if(i.isGroupHeader()){i.destroy(e);}});};s.prototype.getAccessibilityType=function(){return sap.ui.getCore().getLibraryResourceBundle("sap.m").getText("ACC_CTR_TYPE_LIST");};s.prototype.getAccessibilityStates=function(){if(!this.getItems(true).length){return"";}var e="",M=o,i=this.getMode(),B=sap.ui.getCore().getLibraryResourceBundle("sap.m");if(L.isRequired(this)){e+=B.getText("LIST_REQUIRED")+" ";}if(i==M.MultiSelect){e+=B.getText("LIST_MULTISELECTABLE")+" ";}else if(i==M.Delete){e+=B.getText("LIST_DELETABLE")+" ";}else if(i!=M.None){e+=B.getText("LIST_SELECTABLE")+" ";}if(this.isGrouped()){e+=B.getText("LIST_GROUPED")+" ";}return e;};s.prototype.getAccessibilityInfo=function(){return{description:this.getAccessibilityStates().trim(),focusable:true};};s.prototype.getAccessbilityPosition=function(i){var e=0,t=this.getVisibleItems(),P=t.indexOf(i)+1,B=this.getBinding("items");if(this.getGrowing()&&this.getGrowingScrollToLoad()&&B&&B.isLengthFinal()){e=B.getLength();if(B.isGrouped()){e+=t.filter(function(i){return i.isGroupHeader()&&i.getVisible();}).length;}}else{e=t.length;}return{setSize:e,posInset:P};};s.prototype.onItemFocusIn=function(i,F){this._handleStickyItemFocus(i.getDomRef());if(i!==F||!sap.ui.getCore().getConfiguration().getAccessibility()){return;}var e=i.getDomRef(),P=this.getAccessbilityPosition(i);if(D.browser.msie&&this._oItemNavigation&&this._oItemNavigation.getFocusedDomRef()===e){e.classList.remove("sapMLIBFocusable");setTimeout(function(){e.classList.add("sapMLIBFocusable");},0);}if(!i.getContentAnnouncement){this.getNavigationRoot().setAttribute("aria-activedescendant",e.id);e.setAttribute("aria-posinset",P.posInset);e.setAttribute("aria-setsize",P.setSize);}else{var A=i.getAccessibilityInfo(),B=sap.ui.getCore().getLibraryResourceBundle("sap.m"),t=A.type+" ";if(!D.browser.chrome||this.isA("sap.m.Table")){t+=B.getText("LIST_ITEM_POSITION",[P.posInset,P.setSize])+" ";}else{e.setAttribute("aria-posinset",P.posInset);e.setAttribute("aria-setsize",P.setSize);}t+=A.description;this.updateInvisibleText(t,e);return t;}};s.prototype.updateInvisibleText=function(t,i,P){var e=s.getInvisibleText(),F=q(i||document.activeElement);if(this.bAnnounceDetails){this.bAnnounceDetails=false;t=this.getAccessibilityInfo().description+" "+t;}e.setText(t.trim());F.addAriaLabelledBy(e.getId(),P);};s.prototype.getNavigationRoot=function(){return this.getDomRef("listUl");};s.prototype.getFocusDomRef=function(){return this.getNavigationRoot();};s.prototype._startItemNavigation=function(i){if(!D.system.desktop){return;}var e=this.getKeyboardMode(),t=k;if(e==t.Edit&&!this.getItems(true).length){return;}var N=this.getNavigationRoot();var T=(e==t.Edit)?-1:0;if(i&&N&&!N.contains(document.activeElement)){this._bItemNavigationInvalidated=true;if(!N.getAttribute("tabindex")){N.tabIndex=T;}return;}if(!this._oItemNavigation){this._oItemNavigation=new a();this._oItemNavigation.setCycling(false);this.addDelegate(this._oItemNavigation);this._setItemNavigationTabIndex(T);this._oItemNavigation.setTableMode(true,true).setColumns(1);this._oItemNavigation.setDisabledModifiers({sapnext:["alt"],sapprevious:["alt"]});}this._oItemNavigation.setPageSize(this.getGrowingThreshold());this._oItemNavigation.setRootDomRef(N);this.setNavigationItems(this._oItemNavigation,N);this._bItemNavigationInvalidated=false;};s.prototype.setNavigationItems=function(i,N){var e=q(N).children(".sapMLIB").get();i.setItemDomRefs(e);if(i.getFocusedIndex()==-1){if(this.getGrowing()&&this.getGrowingDirection()==m.Upwards){i.setFocusedIndex(e.length-1);}else{i.setFocusedIndex(0);}}};s.prototype.getItemNavigation=function(){return this._oItemNavigation;};s.prototype._setItemNavigationTabIndex=function(t){if(this._oItemNavigation){this._oItemNavigation.iActiveTabIndex=t;this._oItemNavigation.iTabIndex=t;}};s.prototype.setKeyboardMode=function(e){this.setProperty("keyboardMode",e,true);if(this.isActive()){var t=(e==k.Edit)?-1:0;this.$("nodata").prop("tabIndex",~t);this.$("listUl").prop("tabIndex",t);this.$("after").prop("tabIndex",t);this._setItemNavigationTabIndex(t);}return this;};s.prototype.setItemFocusable=function(e){if(!this._oItemNavigation){return;}var i=this._oItemNavigation.getItemDomRefs();var t=i.indexOf(e.getDomRef());if(t>=0){this._oItemNavigation.setFocusedIndex(t);}};s.prototype.forwardTab=function(F){this._bIgnoreFocusIn=true;this.$(F?"after":"before").focus();};s.prototype.onsaptabnext=function(e){if(e.isMarked()||this.getKeyboardMode()==k.Edit){return;}if(e.target.id==this.getId("nodata")){this.forwardTab(true);e.setMarked();}};s.prototype.onsaptabprevious=function(e){if(e.isMarked()||this.getKeyboardMode()==k.Edit){return;}var t=e.target.id;if(t==this.getId("nodata")){this.forwardTab(false);}else if(t==this.getId("trigger")){this.focusPrevious();e.preventDefault();}};s.prototype._navToSection=function(F){var t;var i=0;var e=F?1:-1;var u=this._aNavSections.length;this._aNavSections.some(function(w,x){var y=(w?window.document.getElementById(w):null);if(y&&y.contains(document.activeElement)){i=x;return true;}});var v=this.getItemsContainerDomRef();var $=q(document.getElementById(this._aNavSections[i]));if($[0]===v&&this._oItemNavigation){$.data("redirect",this._oItemNavigation.getFocusedIndex());}this._aNavSections.some(function(){i=(i+e+u)%u;t=q(document.getElementById(this._aNavSections[i]));if(t[0]===v&&this._oItemNavigation){var R=t.data("redirect");var w=this._oItemNavigation.getItemDomRefs();var T=w[R]||v.children[0];t=q(T);}if(t.is(":focusable")){t.focus();return true;}},this);return t;};s.prototype.onsapshow=function(e){if(e.isMarked()||e.which==K.F4||e.target.id!=this.getId("trigger")&&!q(e.target).hasClass(this.sNavItemClass)){return;}if(this._navToSection(true)){e.preventDefault();e.setMarked();}};s.prototype.onsaphide=function(e){if(e.isMarked()||e.target.id!=this.getId("trigger")&&!q(e.target).hasClass(this.sNavItemClass)){return;}if(this._navToSection(false)){e.preventDefault();e.setMarked();}};s.prototype.onkeydown=function(e){var i=(e.which==K.A)&&(e.metaKey||e.ctrlKey);if(e.isMarked()||!i||!q(e.target).hasClass(this.sNavItemClass)){return;}e.preventDefault();if(this.getMode()!==o.MultiSelect){return;}if(this.isAllSelectableSelected()){this.removeSelections(false,true);}else{this.selectAll(true);}e.setMarked();};s.prototype.onmousedown=function(e){if(this._bItemNavigationInvalidated){this._startItemNavigation();}if(e.shiftKey&&this._mRangeSelection&&e.srcControl.getId().includes("-selectMulti")){e.preventDefault();}};s.prototype.focusPrevious=function(){if(!this._oItemNavigation){return;}var N=this._oItemNavigation.getItemDomRefs();var i=this._oItemNavigation.getFocusedIndex();var $=q(N[i]);var R=$.control(0)||{};var t=R.getTabbables?R.getTabbables():$.find(":sapTabbable");var F=t.eq(-1).add($).eq(-1);this.bAnnounceDetails=true;F.focus();};s.prototype.onfocusin=function(e){if(this._bIgnoreFocusIn){this._bIgnoreFocusIn=false;e.stopImmediatePropagation(true);return;}if(this._bItemNavigationInvalidated){this._startItemNavigation();}var t=e.target;if(t.id==this.getId("nodata")){this.updateInvisibleText(this.getNoDataText(),t);}if(e.isMarked()||!this._oItemNavigation||this.getKeyboardMode()==k.Edit||t.id!=this.getId("after")){return;}this.focusPrevious();e.setMarked();};s.prototype.onsapfocusleave=function(e){if(this._oItemNavigation&&!this.bAnnounceDetails&&!this.getNavigationRoot().contains(document.activeElement)){this.bAnnounceDetails=true;}};s.prototype.onItemArrowUpDown=function(e,E){var i=this.getItems(true),t=i.indexOf(e)+(E.type=="sapup"?-1:1),u=i[t];if(u&&u.isGroupHeader()){u=i[t+(E.type=="sapup"?-1:1)];}if(!u){return;}var T=u.getTabbables(),F=e.getTabbables().index(E.target),$=T.eq(T[F]?F:-1);$[0]?$.focus():u.focus();E.preventDefault();E.setMarked();};s.prototype.onItemContextMenu=function(e,E){var i=this.getContextMenu();if(!i){return;}var t=this.fireBeforeOpenContextMenu({listItem:e,column:sap.ui.getCore().byId(q(E.target).closest(".sapMListTblCell",this.getNavigationRoot()).attr("data-sap-ui-column"))});if(t){E.setMarked();E.preventDefault();var B,u=this.getBindingInfo("items");if(u){B=e.getBindingContext(u.model);i.setBindingContext(B,u.model);}i.openAsContextMenu(E,e);}};s.prototype.onItemUpDownModifiers=function(i,e,t){if(!this._mRangeSelection){return;}var v=this.getVisibleItems(),u=v.indexOf(i),w=v[u+t];if(!w){if(this._mRangeSelection){this._mRangeSelection=null;}e.setMarked();return;}var x=w.getSelected();if(this._mRangeSelection.direction===undefined){this._mRangeSelection.direction=t;}else if(this._mRangeSelection.direction!==t){if(this._mRangeSelection.index!==v.indexOf(i)){w=i;x=w.getSelected();if(this._mRangeSelection.selected&&x){this.setSelectedItem(w,false,true);return;}}else{this._mRangeSelection.direction=t;}}if(this._mRangeSelection.selected!==x&&w.isSelectable()){this.setSelectedItem(w,this._mRangeSelection.selected,true);}};s.prototype.isGrouped=function(){var B=this.getBinding("items");return B&&B.isGrouped();};s.prototype.setContextMenu=function(e){this.setAggregation("contextMenu",e,true);return this;};s.prototype.destroyContextMenu=function(){this.destroyAggregation("contextMenu",true);return this;};s.getStickyBrowserSupport=function(){var B=D.browser;return(B.safari||B.chrome||(B.firefox&&B.version>=59)||(B.edge&&B.version>=16));};s.prototype.getStickyStyleValue=function(){var e=this.getSticky();if(!e||!e.length||!s.getStickyBrowserSupport()){return(this._iStickyValue=0);}var i=0,H=this.getHeaderText(),t=this.getHeaderToolbar(),u=H||(t&&t.getVisible()),v=this.getInfoToolbar(),w=v&&v.getVisible(),x=false;if(this.isA("sap.m.Table")){x=this.getColumns().some(function(y){return y.getVisible()&&y.getHeader();});}e.forEach(function(y){if(y===r.HeaderToolbar&&u){i+=1;}else if(y===r.InfoToolbar&&w){i+=2;}else if(y===r.ColumnHeaders&&x){i+=4;}});return(this._iStickyValue=i);};s.prototype._handleStickyItemFocus=function(i){if(!this._iStickyValue||this._sLastFocusedStickyItemId===i.id){return;}var e=l.getScrollDelegate(this,true);if(!e){return;}var t=0,T=0,u=0,v=0,H=0,w=0;if(this._iStickyValue&4){var x=this.getDomRef("tblHeader").firstChild;var y=x.getBoundingClientRect();T=parseInt(y.bottom);t=parseInt(y.height);}if(this._iStickyValue&2){var z=this.getDomRef().querySelector(".sapMListInfoTBarContainer");if(z){var A=z.getBoundingClientRect();v=parseInt(A.bottom);u=parseInt(A.height);}}if(this._iStickyValue&1){var B=this.getDomRef().querySelector(".sapMListHdr");if(B){var E=B.getBoundingClientRect();w=parseInt(E.bottom);H=parseInt(E.height);}}var F=Math.round(i.getBoundingClientRect().top);if(T>F||v>F||w>F){window.requestAnimationFrame(function(){e.scrollToElement(i,0,[0,-t-u-H]);});}this._sLastFocusedStickyItemId=i.id;};s.prototype.setHeaderToolbar=function(H){return this._setToolbar("headerToolbar",H);};s.prototype.setInfoToolbar=function(i){return this._setToolbar("infoToolbar",i);};s.prototype._setToolbar=function(A,t){var O=this.getAggregation(A);if(O){O.detachEvent("_change",this._onToolbarPropertyChanged,this);}this.setAggregation(A,t);if(t){t.attachEvent("_change",this._onToolbarPropertyChanged,this);}return this;};s.prototype._onToolbarPropertyChanged=function(e){if(e.getParameter("name")!=="visible"){return;}var O=this._iStickyValue,N=this.getStickyStyleValue();if(O!==N){var i=this.getDomRef();if(i){var t=i.classList;t.toggle("sapMSticky",!!N);t.remove("sapMSticky"+O);t.toggle("sapMSticky"+N,!!N);}}};return s;});
sap.ui.predefine('sap/m/ListBaseRenderer',["sap/m/library","sap/ui/Device","sap/ui/core/InvisibleText","./ListItemBaseRenderer"],function(l,D,I,L){"use strict";var a=l.ListGrowingDirection;var b=l.ListKeyboardMode;var T=l.ToolbarDesign;var c={apiVersion:2};c.ModeOrder={None:0,Delete:1,MultiSelect:-1,SingleSelect:1,SingleSelectLeft:-1,SingleSelectMaster:0};c.render=function(r,C){r.openStart("div",C);r.class("sapMList");if(C.getInset()){r.class("sapMListInsetBG");}r.style("width",C.getWidth());if(C.getBackgroundDesign){r.class("sapMListBG"+C.getBackgroundDesign());}var t=C.getTooltip_AsString();if(t){r.attr("title",t);}var s=C.getStickyStyleValue();if(s){r.class("sapMSticky");r.class("sapMSticky"+s);}this.renderContainerAttributes(r,C);r.openEnd();var h=C.getHeaderText();var H=C.getHeaderToolbar();if(H){H.setDesign(T.Transparent,true);H.addStyleClass("sapMListHdr");H.addStyleClass("sapMListHdrTBar");H.addStyleClass("sapMTBHeader-CTX");r.renderControl(H);}else if(h){r.openStart("header",C.getId("header"));r.class("sapMListHdr").class("sapMListHdrText").openEnd();r.text(h);r.close("header");}var o=C.getInfoToolbar();if(o){o.setDesign(T.Info,true);o.addStyleClass("sapMListInfoTBar");r.openStart("div").class("sapMListInfoTBarContainer").openEnd();r.renderControl(o);r.close("div");}var d=C.getItems(),S=C.getShowNoData(),R=C.shouldRenderItems()&&d.length,e=C.getKeyboardMode()==b.Edit?-1:0,u=C.getGrowingDirection()==a.Upwards&&C.getGrowing();if(u){this.renderGrowing(r,C);}if(R||S){this.renderDummyArea(r,C,"before",-1);}this.renderListStartAttributes(r,C);r.class("sapMListUl");if(C._iItemNeedsHighlight){r.class("sapMListHighlight");}if(R||S){r.attr("tabindex",e);}r.class("sapMListShowSeparators"+C.getShowSeparators());r.class("sapMListMode"+C.getMode());r.openEnd();this.renderListHeadAttributes(r,C);if(R){if(u){d.reverse();}for(var i=0;i<d.length;i++){r.renderControl(d[i]);}}var v=C.getVisibleItems().length>0;if(S&&(!R||!v)){this.renderNoData(r,C);}this.renderListEndAttributes(r,C);if(R||S){this.renderDummyArea(r,C,"after",e);}if(!u){this.renderGrowing(r,C);}if(C.getFooterText()){r.openStart("footer",C.getId("footer")).class("sapMListFtr").openEnd();r.text(C.getFooterText());r.close("footer");}r.close("div");};c.renderContainerAttributes=function(r,C){};c.renderListHeadAttributes=function(r,C){};c.renderListStartAttributes=function(r,C){r.openStart("ul",C.getId("listUl"));r.class("sapMListItems");C.addNavSection(C.getId("listUl"));r.accessibilityState(C,this.getAccessibilityState(C));};c.getAriaRole=function(C){return"listbox";};c.getNoDataAriaRole=function(){return null;};c.getAriaLabelledBy=function(C){var h=C.getHeaderToolbar();if(h){var t=h.getTitleControl();if(t){return t.getId();}}else if(C.getHeaderText()){return C.getId("header");}};c.getAriaDescribedBy=function(C){if(C.getFooterText()){return C.getId("footer");}};c.getAccessibilityState=function(C){var r=this.getAriaRole(C);return{role:r,multiselectable:(r&&C._bSelectionMode)?C.getMode()=="MultiSelect":undefined,labelledby:{value:this.getAriaLabelledBy(C),append:true},describedby:{value:this.getAriaDescribedBy(C),append:true}};};c.renderListEndAttributes=function(r,C){r.close("ul");};c.renderNoData=function(r,C){r.openStart("li",C.getId("nodata"));r.attr("tabindex",C.getKeyboardMode()==b.Navigation?-1:0);var A=this.getNoDataAriaRole();if(A){r.attr("role",A);}r.class("sapMLIB").class("sapMListNoData").class("sapMLIBTypeInactive");L.addFocusableClasses.call(L,r);r.openEnd();r.openStart("div",C.getId("nodata-text")).class("sapMListNoDataText").openEnd();r.text(C.getNoDataText(true));r.close("div");r.close("li");};c.renderDummyArea=function(r,C,A,t){r.openStart("div",C.getId(A)).attr("tabindex",t);if(D.system.desktop){r.class("sapMListDummyArea");if(A=="after"){r.class("sapMListDummyAreaSticky");}}r.openEnd().close("div");};c.renderGrowing=function(r,C){var g=C._oGrowingDelegate;if(g){g.render(r);}};c.getAriaAnnouncement=function(B){return I.getStaticId("sap.m",B);};return c;},true);
sap.ui.predefine('sap/m/ListItemBase',["sap/ui/base/DataType","sap/ui/events/KeyCodes","sap/ui/model/BindingMode","sap/ui/Device","sap/ui/core/library","sap/ui/core/Control","sap/ui/core/IconPool","sap/ui/core/Icon","sap/ui/core/InvisibleText","sap/ui/core/theming/Parameters","./library","./Button","./CheckBox","./RadioButton","./ListItemBaseRenderer","sap/base/strings/capitalize","sap/ui/thirdparty/jquery","sap/ui/dom/jquery/Selectors"],function(D,K,B,a,c,C,I,b,d,T,l,e,f,R,L,g,q){"use strict";var h=l.ListKeyboardMode;var i=l.ListMode;var j=l.ListType;var k=l.ButtonType;var M=c.MessageType;var m=C.extend("sap.m.ListItemBase",{metadata:{library:"sap.m",properties:{type:{type:"sap.m.ListType",group:"Misc",defaultValue:j.Inactive},visible:{type:"boolean",group:"Appearance",defaultValue:true},unread:{type:"boolean",group:"Misc",defaultValue:false},selected:{type:"boolean",defaultValue:false},counter:{type:"int",group:"Misc",defaultValue:null},highlight:{type:"string",group:"Appearance",defaultValue:"None"},highlightText:{type:"string",group:"Misc",defaultValue:""}},associations:{ariaLabelledBy:{type:"sap.ui.core.Control",multiple:true,singularName:"ariaLabelledBy"}},events:{tap:{deprecated:true},detailTap:{deprecated:true},press:{},detailPress:{}},designtime:"sap/m/designtime/ListItemBase.designtime"}});m.getAccessibilityText=function(o,n){var p=sap.ui.getCore().getLibraryResourceBundle("sap.m");if(!o||!o.getVisible||!o.getVisible()){return n?p.getText("CONTROL_EMPTY"):"";}var A;if(o.getAccessibilityInfo){A=o.getAccessibilityInfo();}if(!A||!o.getAccessibilityInfo){A=this.getDefaultAccessibilityInfo(o.getDomRef());}A=q.extend({type:"",description:"",children:[]},A);var t=A.type+" "+A.description+" ",s=o.getTooltip_AsString();if(A.enabled===false){t+=p.getText("CONTROL_DISABLED")+" ";}if(A.editable===false){t+=p.getText("CONTROL_READONLY")+" ";}if(!A.type&&s&&t.indexOf(s)==-1){t=s+" "+t;}A.children.forEach(function(r){t+=m.getAccessibilityText(r)+" ";});t=t.trim();if(n&&!t){t=p.getText("CONTROL_EMPTY");}return t;};m.getDefaultAccessibilityInfo=function(o){if(!o){return null;}var N=window.Node,n=window.NodeFilter,t=document.createTreeWalker(o,n.SHOW_TEXT+n.SHOW_ELEMENT,function(r){if(r.type===N.ELEMENT_NODE){if(r.classList.contains("sapUiInvisibleText")){return n.FILTER_SKIP;}if(r.getAttribute("aria-hidden")=="true"||r.style.visibility=="hidden"||r.style.display=="none"){return n.FILTER_REJECT;}return n.FILTER_SKIP;}return n.FILTER_ACCEPT;},false);var p=[];while(t.nextNode()){var r=t.currentNode;if(r.nodeType===N.TEXT_NODE){var s=(r.nodeValue||"").trim();if(s){p.push(s);}}}return{description:p.join(" ")};};m.prototype.DetailIconURI=I.getIconURI("edit");m.prototype.NavigationIconURI=I.getIconURI("slim-arrow-right");m.prototype.TagName="li";m.prototype.init=function(){this._active=false;this._bGroupHeader=false;this._bNeedsHighlight=false;};m.prototype.onAfterRendering=function(){this.informList("DOMUpdate",true);this._checkHighlight();};m.prototype.invalidate=function(){if(!this.bOutput){return;}C.prototype.invalidate.apply(this,arguments);};m.prototype.getBindingContextPath=function(s){var o=this.getList();if(o&&!s){s=(o.getBindingInfo("items")||{}).model;}var n=this.getBindingContext(s);if(n){return n.getPath();}};m.prototype.isSelectedBoundTwoWay=function(){var o=this.getBinding("selected");if(o&&o.getBindingMode()==B.TwoWay){return true;}};m.prototype.getList=function(){var p=this.getParent();if(p&&p.isA("sap.m.ListBase")){return p;}};m.prototype.getListProperty=function(p,F){var o=this.getList();if(o){p=g(p);return o["get"+p]();}return F;};m.prototype.informList=function(E,p,P){var o=this.getList();if(o){var s="onItem"+E;if(o[s]){o[s](this,p,P);}}};m.prototype.informSelectedChange=function(s){var o=this.getList();if(o){o.onItemSelectedChange(this,s);this.bSelectedDelayed=undefined;}else{this.bSelectedDelayed=s;}};m.prototype.getAccessibilityType=function(o){return o.getText("ACC_CTR_TYPE_OPTION");};m.prototype.getGroupAnnouncement=function(){return this.$().prevAll(".sapMGHLI:first").text();};m.prototype.getAccessibilityDescription=function(o){var O=[],t=this.getType(),H=this.getHighlight(),s=this.getTooltip_AsString();if(this.getSelected()){O.push(o.getText("LIST_ITEM_SELECTED"));}if(H!==M.None){var n=this.getHighlightText();if(H in M&&!n){n=o.getText("LIST_ITEM_STATE_"+H.toUpperCase());}O.push(n);}if(this.getUnread()&&this.getListProperty("showUnread")){O.push(o.getText("LIST_ITEM_UNREAD"));}if(this.getCounter()){O.push(o.getText("LIST_ITEM_COUNTER",this.getCounter()));}if(t==j.Navigation){O.push(o.getText("LIST_ITEM_NAVIGATION"));}else{if(t==j.Detail||t==j.DetailAndActive){O.push(o.getText("LIST_ITEM_DETAIL"));}if(t==j.Active||t==j.DetailAndActive){O.push(o.getText("LIST_ITEM_ACTIVE"));}}var G=this.getGroupAnnouncement()||"";if(G){O.push(G);}if(this.getContentAnnouncement){O.push((this.getContentAnnouncement(o)||"").trim());}if(s){O.push(s);}if(this._bAnnounceNotSelected&&this.isSelectable()&&!this.getSelected()){O.push(o.getText("LIST_ITEM_NOT_SELECTED"));}return O.join(" ");};m.prototype.getAccessibilityInfo=function(){var o=sap.ui.getCore().getLibraryResourceBundle("sap.m");return{type:this.getAccessibilityType(o),description:this.getAccessibilityDescription(o),focusable:true};};m.prototype.getMode=function(){return this.getListProperty("mode","");};m.prototype.updateAccessibilityState=function(A){var t=this.$();if(!t.length){return;}var $=t.parent().children(".sapMLIB");t.attr(q.extend({"aria-setsize":$.length,"aria-posinset":$.index(t)+1},A));};m.prototype.getDeleteControl=function(n){if(!n||this._oDeleteControl){return this._oDeleteControl;}if(!this.DeleteIconURI){m.prototype.DeleteIconURI=I.getIconURI(T.get("_sap_m_ListItemBase_DeleteIcon"));}this._oDeleteControl=new e({id:this.getId()+"-imgDel",icon:this.DeleteIconURI,type:k.Transparent,tooltip:sap.ui.getCore().getLibraryResourceBundle("sap.m").getText("LIST_ITEM_DELETE")}).addStyleClass("sapMLIBIconDel sapMLIBSelectD").setParent(this,null,true).attachPress(function(E){this.informList("Delete");},this);this._oDeleteControl._bExcludeFromTabChain=true;return this._oDeleteControl;};m.prototype.onThemeChanged=function(){m.prototype.DeleteIconURI=I.getIconURI(T.get("_sap_m_ListItemBase_DeleteIcon"));if(this._oDeleteControl){this._oDeleteControl.setIcon(this.DeleteIconURI);}};m.prototype.getDetailControl=function(n){if(!n||this._oDetailControl){return this._oDetailControl;}this._oDetailControl=new e({id:this.getId()+"-imgDet",icon:this.DetailIconURI,type:k.Transparent,tooltip:sap.ui.getCore().getLibraryResourceBundle("sap.m").getText("LIST_ITEM_EDIT")}).addStyleClass("sapMLIBType sapMLIBIconDet").setParent(this,null,true).attachPress(function(){this.fireDetailTap();this.fireDetailPress();},this);this._oDetailControl._bExcludeFromTabChain=true;return this._oDetailControl;};m.prototype.getNavigationControl=function(n){if(!n||this._oNavigationControl){return this._oNavigationControl;}this._oNavigationControl=new b({id:this.getId()+"-imgNav",src:this.NavigationIconURI,useIconTooltip:false,noTabStop:true}).setParent(this,null,true).addStyleClass("sapMLIBType sapMLIBImgNav");return this._oNavigationControl;};m.prototype.getSingleSelectControl=function(n){if(!n||this._oSingleSelectControl){n&&this._oSingleSelectControl.setSelected(this.getSelected());return this._oSingleSelectControl;}this._oSingleSelectControl=new R({id:this.getId()+"-selectSingle",groupName:this.getListProperty("id")+"_selectGroup",activeHandling:false,selected:this.getSelected(),ariaLabelledBy:d.getStaticId("sap.m","LIST_ITEM_SELECTION")}).addStyleClass("sapMLIBSelectS").setParent(this,null,true).setTabIndex(-1).attachSelect(function(E){var s=E.getParameter("selected");this.setSelected(s);this.informList("Select",s);},this);return this._oSingleSelectControl;};m.prototype.getMultiSelectControl=function(n){if(!n||this._oMultiSelectControl){n&&this._oMultiSelectControl.setSelected(this.getSelected());return this._oMultiSelectControl;}this._oMultiSelectControl=new f({id:this.getId()+"-selectMulti",activeHandling:false,selected:this.getSelected(),ariaLabelledBy:d.getStaticId("sap.m","LIST_ITEM_SELECTION")}).addStyleClass("sapMLIBSelectM").setParent(this,null,true).setTabIndex(-1).addEventDelegate({onkeydown:function(E){this.informList("KeyDown",E);},onkeyup:function(E){this.informList("KeyUp",E);}},this).attachSelect(function(E){var s=E.getParameter("selected");this.setSelected(s);this.informList("Select",s);},this);return this._oMultiSelectControl;};m.prototype.getModeControl=function(n){var s=this.getMode();if(!s||s==i.None){return;}if(s==i.Delete){return this.getDeleteControl(n);}if(s==i.MultiSelect){return this.getMultiSelectControl(n);}return this.getSingleSelectControl(n);};m.prototype.getTypeControl=function(n){var t=this.getType();if(t==j.Detail||t==j.DetailAndActive){return this.getDetailControl(n);}if(t==j.Navigation){return this.getNavigationControl(n);}};m.prototype.destroyControls=function(n){n.forEach(function(s){s="_o"+s+"Control";if(this[s]){this[s].destroy("KeepDom");this[s]=null;}},this);};m.prototype.isActionable=function(){return this.isIncludedIntoSelection()||(this.getType()!=j.Inactive&&this.getType()!=j.Detail);};m.prototype.exit=function(){this._oLastFocused=null;this._checkHighlight(false);this.setActive(false);this.destroyControls(["Delete","SingleSelect","MultiSelect","Detail","Navigation"]);};m.prototype.setHighlight=function(v){if(v==null){v=M.None;}else if(!D.getType("sap.ui.core.MessageType").isValid(v)&&!D.getType("sap.ui.core.IndicationColor").isValid(v)){throw new Error('"'+v+'" is not a value of the enums sap.ui.core.MessageType or sap.ui.core.IndicationColor for property "highlight" of '+this);}return this.setProperty("highlight",v);};m.prototype.isSelectable=function(){var s=this.getMode();return!(s==i.None||s==i.Delete);};m.prototype.getSelected=function(){if(this.isSelectable()){return this.getProperty("selected");}return false;};m.prototype.isSelected=m.prototype.getSelected;m.prototype.setSelected=function(s,n){s=this.validateProperty("selected",s);if(!this.isSelectable()||s==this.getSelected()){return this;}if(!n){this.informSelectedChange(s);}var S=this.getModeControl();if(S){S.setSelected(s);}this.updateSelectedDOM(s,this.$());this.setProperty("selected",s,true);return this;};m.prototype.updateSelectedDOM=function(s,t){t.toggleClass("sapMLIBSelected",s);t.attr("aria-selected",s);};m.prototype.setParent=function(p){C.prototype.setParent.apply(this,arguments);if(!p){this._bGroupHeader=false;return;}this.informList("Inserted",this.bSelectedDelayed);return this;};m.prototype.setBindingContext=function(){C.prototype.setBindingContext.apply(this,arguments);this.informList("BindingContextSet");return this;};m.prototype.isGroupHeader=function(){return this._bGroupHeader;};m.prototype.isIncludedIntoSelection=function(){if(!this.isSelectable()){return false;}var s=this.getMode();return s==i.SingleSelectMaster||(this.getListProperty("includeItemInSelection")&&(s==i.SingleSelectLeft||s==i.SingleSelect||s==i.MultiSelect));};m.prototype._checkHighlight=function(n){if(n==undefined){n=(this.getVisible()&&this.getHighlight()!=M.None);}if(this._bNeedsHighlight!=n){this._bNeedsHighlight=n;this.informList("HighlightChange",n);}};m.prototype.hasActiveType=function(){var t=this.getType();return(t==j.Active||t==j.Navigation||t==j.DetailAndActive);};m.prototype.setActive=function(A){if(A==this._active){return this;}if(A&&this.getListProperty("activeItem")){return this;}var t=this.$();this._active=A;this._activeHandling(t);if(this.getType()==j.Navigation){this._activeHandlingNav(t);}if(A){this._activeHandlingInheritor(t);}else{this._inactiveHandlingInheritor(t);}this.informList("ActiveChange",A);};m.detectTextSelection=function(o){var s=window.getSelection(),t=s.toString().replace("\n","");return t&&q.contains(o,s.focusNode);};m.prototype.ontap=function(E){if(this._eventHandledByControl){return E.setMarked();}if(m.detectTextSelection(this.getDomRef())){return;}if(this.isIncludedIntoSelection()){if(this.getMode()==i.MultiSelect){this.setSelected(!this.getSelected());this.informList("Select",this.getSelected());}else if(!this.getSelected()){this.setSelected(true);this.informList("Select",true);}}else if(this.hasActiveType()){window.clearTimeout(this._timeoutIdStart);window.clearTimeout(this._timeoutIdEnd);this.setActive(true);if(a.os.ios){this.focus();}setTimeout(function(){this.setActive(false);}.bind(this),180);setTimeout(function(){this.fireTap();this.firePress();}.bind(this),0);}this.informList("Press",E.srcControl);};m.prototype.ontouchstart=function(E){this._eventHandledByControl=E.isMarked();var t=E.targetTouches[0];this._touchedY=t.clientY;this._touchedX=t.clientX;if(this._eventHandledByControl||E.touches.length!=1||!this.hasActiveType()){return;}this._timeoutIdStart=setTimeout(function(){this.setActive(true);}.bind(this),100);};m.prototype.ontouchmove=function(E){if((this._active||this._timeoutIdStart)&&(Math.abs(this._touchedY-E.targetTouches[0].clientY)>10||Math.abs(this._touchedX-E.targetTouches[0].clientX)>10)){clearTimeout(this._timeoutIdStart);this._timeoutIdStart=null;this._timeoutIdEnd=null;this.setActive(false);}};m.prototype.ontouchend=function(E){if(E.targetTouches.length==0&&this.hasActiveType()){this._timeoutIdEnd=setTimeout(function(){this.setActive(false);}.bind(this),100);}};m.prototype.ontouchcancel=m.prototype.ontouchend;m.prototype._activeHandlingNav=function(){};m.prototype._activeHandlingInheritor=function(){};m.prototype._inactiveHandlingInheritor=function(){};m.prototype._activeHandling=function(t){t.toggleClass("sapMLIBActive",this._active);if(a.system.desktop&&this.isActionable()){t.toggleClass("sapMLIBHoverable",!this._active);}};m.prototype.onsapspace=function(E){if(E.srcControl!==this){return;}E.preventDefault();if(E.isMarked()||!this.isSelectable()){return;}if(this.getMode()==i.MultiSelect){this.setSelected(!this.getSelected());this.informList("Select",this.getSelected());}else if(!this.getSelected()){this.setSelected(true);this.informList("Select",true);}E.setMarked();};m.prototype.onsapenter=function(E){var o=this.getList();if(E.isMarked()||!o){return;}if(E.srcControl!==this&&o.getKeyboardMode()==h.Edit){o.setKeyboardMode(h.Navigation);this._switchFocus(E);return;}if(E.srcControl!==this){return;}if(this.isIncludedIntoSelection()){this.onsapspace(E);}else if(this.hasActiveType()){E.setMarked();this.setActive(true);setTimeout(function(){this.setActive(false);}.bind(this),180);setTimeout(function(){this.fireTap();this.firePress();}.bind(this),0);}o.onItemPress(this,E.srcControl);};m.prototype.onsapdelete=function(E){if(E.isMarked()||E.srcControl!==this||this.getMode()!=i.Delete){return;}this.informList("Delete");E.preventDefault();E.setMarked();};m.prototype._switchFocus=function(E){var o=this.getList();if(!o){return;}var t=this.getTabbables();if(E.srcControl!==this){o._iLastFocusPosOfItem=t.index(E.target);this.focus();}else if(t.length){var F=o._iLastFocusPosOfItem||0;F=t[F]?F:-1;t.eq(F).focus();}E.preventDefault();E.setMarked();};m.prototype.onkeydown=function(E){if(E.isMarked()){return;}if(E.which==K.F7){this._switchFocus(E);return;}if(E.which==K.F2){if(E.srcControl===this&&this.getType().indexOf("Detail")==0&&this.hasListeners("detailPress")||this.hasListeners("detailTap")){this.fireDetailTap();this.fireDetailPress();E.preventDefault();E.setMarked();}else{var o=this.getList();if(o){this.$().prop("tabIndex",-1);o.setKeyboardMode(o.getKeyboardMode()==h.Edit?h.Navigation:h.Edit);this._switchFocus(E);}}}if(E.srcControl!==this){return;}this.informList("KeyDown",E);};m.prototype.onkeyup=function(E){if(E.isMarked()||E.srcControl!==this){return;}this.informList("KeyUp",E);};m.prototype.onsapupmodifiers=function(E){if(E.isMarked()||E.srcControl!==this){return;}this.informList("UpDownModifiers",E,-1);};m.prototype.onsapdownmodifiers=function(E){if(E.isMarked()||E.srcControl!==this){return;}this.informList("UpDownModifiers",E,1);};m.prototype.getTabbables=function(){return this.$().find(":sapTabbable");};m.prototype.onsaptabnext=function(E){var o=this.getList();if(!o||E.isMarked()||o.getKeyboardMode()==h.Edit){return;}var n=this.getTabbables().get(-1)||this.getDomRef();if(E.target===n){o.forwardTab(true);E.setMarked();}};m.prototype.onsaptabprevious=function(E){var o=this.getList();if(!o||E.isMarked()||o.getKeyboardMode()==h.Edit){return;}if(E.target===this.getDomRef()){o.forwardTab(false);E.setMarked();}};m.prototype.onfocusin=function(E){var o=this.getList();if(!o||E.isMarked()){return;}this.informList("FocusIn",E.srcControl);if(E.srcControl===this){return;}if(o.getKeyboardMode()==h.Edit||!q(E.target).is(":sapFocusable")){return;}setTimeout(o["setItemFocusable"].bind(o,this),0);E.setMarked();};m.prototype.onsapup=function(E){if(E.isMarked()||E.srcControl===this||this.getListProperty("keyboardMode")===h.Navigation){return;}this.informList("ArrowUpDown",E);};m.prototype.oncontextmenu=function(E){if(this._bGroupHeader){return;}if(q(document.activeElement).is(":focusable")&&document.activeElement!==this.getDomRef()&&E.srcControl!==this.getModeControl()){return;}this.informList("ContextMenu",E);};m.prototype.onsapdown=m.prototype.onsapup;return m;});
sap.ui.predefine('sap/m/ListItemBaseRenderer',["./library","sap/ui/core/Core","sap/ui/Device","sap/ui/core/InvisibleText","sap/ui/core/InvisibleRenderer"],function(l,C,D,I,a){"use strict";var L=l.ListType;var b=l.ListMode;var c={apiVersion:2};c.renderInvisible=function(r,o){a.render(r,o,o.TagName);};c.renderHighlight=function(r,o){var h=o.getHighlight();if(h=="None"){return;}r.openStart("div");r.class("sapMLIBHighlight");r.class("sapMLIBHighlight"+h);r.openEnd();r.close("div");};c.isModeMatched=function(m,o){var O=(sap.ui.require("sap/m/ListBaseRenderer")||{}).ModeOrder||{};return O[m]==o;};c.renderMode=function(r,o,O){var m=o.getMode();if(!this.isModeMatched(m,O)){return;}var M=o.getModeControl(true);if(M){this.renderModeContent(r,o,M);}};c.renderModeContent=function(r,o,m){this.decorateMode(m,o);r.renderControl(m);};c.decorateMode=function(m,o){m.removeStyleClass("sapMLIBSelectAnimation sapMLIBUnselectAnimation");if(!C.getConfiguration().getAnimation()||!o.getListProperty("modeAnimationOn")){return;}var M=o.getMode(),s=o.getListProperty("lastMode");if(!s||s==M){return;}if(M==b.None){m.addStyleClass("sapMLIBUnselectAnimation");}else{m.addStyleClass("sapMLIBSelectAnimation");}};c.renderCounter=function(r,o){var i=o.getCounter();if(i){this.renderCounterContent(r,o,i);}};c.renderCounterContent=function(r,o,i){r.openStart("div",o.getId()+"-counter");r.attr("aria-label",C.getLibraryResourceBundle("sap.m").getText("LIST_ITEM_COUNTER",i));r.class("sapMLIBCounter");r.openEnd();r.text(i);r.close("div");};c.renderType=function(r,o){var t=o.getTypeControl(true);if(t){r.renderControl(t);}};c.openItemTag=function(r,o){r.openStart(o.TagName,o);};c.closeItemTag=function(r,o){r.close(o.TagName);};c.renderTabIndex=function(r,o){r.attr("tabindex","-1");};c.renderTooltip=function(r,o){var t=o.getTooltip_AsString();if(t){r.attr("title",t);}};c.addFocusableClasses=function(r,o){if(D.system.desktop){r.class("sapMLIBFocusable");this.addLegacyOutlineClass(r,o);}};c.addLegacyOutlineClass=function(r,o){if(D.browser.msie||D.browser.edge){r.class("sapMLIBLegacyOutline");}};c.getAriaAnnouncement=function(k,B){return I.getStaticId("sap.m",B||"LIST_ITEM_"+k.toUpperCase());};c.getAriaRole=function(o){return"option";};c.getAriaLabelledBy=function(o){if(!o.getContentAnnouncement&&o.getAriaLabelledBy().length){return o.getId();}};c.getAriaDescribedBy=function(o){if(o.getContentAnnouncement){return"";}var d=[],t=o.getType();if(o.getListProperty("showUnread")&&o.getUnread()){d.push(this.getAriaAnnouncement("unread"));}if(o.getMode()==b.Delete){d.push(this.getAriaAnnouncement("delete"));}if(t==L.Navigation){d.push(this.getAriaAnnouncement("navigation"));}else{if(t==L.Detail||t==L.DetailAndActive){d.push(this.getAriaAnnouncement("detail"));}if(t==L.Active||t==L.DetailAndActive){d.push(this.getAriaAnnouncement("active"));}}return d.join(" ");};c.getAccessibilityState=function(o){var A=this.getAriaLabelledBy(o),s=this.getAriaDescribedBy(o),m={role:this.getAriaRole(o)};if(o.isSelectable()){m.selected=o.getProperty("selected");}if(A){m.labelledby={value:A.trim(),append:true};}if(s){m.describedby={value:s.trim(),append:true};}return m;};c.renderLIContent=function(r,o){};c.renderLIAttributes=function(r,o){};c.renderContentFormer=function(r,o){this.renderHighlight(r,o);this.renderMode(r,o,-1);};c.renderContentLatter=function(r,o){this.renderCounter(r,o);this.renderType(r,o);this.renderMode(r,o,1);};c.renderLIContentWrapper=function(r,o){r.openStart("div",o.getId()+"-content").class("sapMLIBContent").openEnd();this.renderLIContent(r,o);r.close("div");};c.render=function(r,o){if(!o.getVisible()){this.renderInvisible(r,o);return false;}this.openItemTag(r,o);r.class("sapMLIB");r.class("sapMLIB-CTX");r.class("sapMLIBShowSeparator");r.class("sapMLIBType"+o.getType());if(D.system.desktop&&o.isActionable()){r.class("sapMLIBActionable");r.class("sapMLIBHoverable");}if(o.getSelected()){r.class("sapMLIBSelected");}if(o.getListProperty("showUnread")&&o.getUnread()){r.class("sapMLIBUnread");}this.addFocusableClasses(r,o);this.renderTooltip(r,o);this.renderTabIndex(r,o);if(C.getConfiguration().getAccessibility()){r.accessibilityState(o,this.getAccessibilityState(o));}this.renderLIAttributes(r,o);r.openEnd();this.renderContentFormer(r,o);this.renderLIContentWrapper(r,o);this.renderContentLatter(r,o);this.closeItemTag(r,o);};return c;},true);
sap.ui.predefine('sap/m/ListRenderer',["sap/ui/core/Renderer","./ListBaseRenderer"],function(R,L){"use strict";var a=R.extend(L);a.apiVersion=2;a.getNoDataAriaRole=function(){return"option";};return a;},true);
sap.ui.predefine('sap/m/MessageBox',['./Button','./Dialog','./Text','./FormattedText','./Link','./VBox','sap/ui/core/IconPool','sap/ui/core/ElementMetadata','sap/ui/core/library','sap/ui/core/Control','sap/m/library',"sap/ui/thirdparty/jquery",'sap/ui/core/theming/Parameters'],function(B,D,T,F,L,V,I,E,c,C,l,q,P){"use strict";var a=l.DialogType;var b=l.DialogRoleType;var d=c.TextDirection;var e=l.ButtonType;var M={};M.Action={OK:"OK",CANCEL:"CANCEL",YES:"YES",NO:"NO",ABORT:"ABORT",RETRY:"RETRY",IGNORE:"IGNORE",CLOSE:"CLOSE",DELETE:"DELETE"};M.Icon={NONE:undefined,INFORMATION:"INFORMATION",WARNING:"WARNING",ERROR:"ERROR",SUCCESS:"SUCCESS",QUESTION:"QUESTION"};(function(){var A=M.Action,f=M.Icon;var _=function(){if(M._rb!==sap.ui.getCore().getLibraryResourceBundle("sap.m")){M._rb=sap.ui.getCore().getLibraryResourceBundle("sap.m");}};var g=function(o){if(o&&o.actions&&o.actions.length>0){return true;}return false;};M.show=function(m,o){var h,j,v,r=null,k=[],i,s,t,n,p,u,w,x={id:E.uid("mbox"),initialFocus:null,textDirection:d.Inherit,verticalScrolling:true,horizontalScrolling:true,details:"",contentWidth:null},y=P.get("_sap_m_Message_Box_Information_Icon")==="true",S=y?"message-information":"hint",z={"INFORMATION":"sapMMessageBoxInfo","WARNING":"sapMMessageBoxWarning","ERROR":"sapMMessageBoxError","SUCCESS":"sapMMessageBoxSuccess","QUESTION":"sapMMessageBoxQuestion","STANDARD":"sapMMessageBoxStandard"},G={"INFORMATION":I.getIconURI(S),"WARNING":I.getIconURI("message-warning"),"ERROR":I.getIconURI("message-error"),"SUCCESS":I.getIconURI("message-success"),"QUESTION":I.getIconURI("question-mark")};_();if(typeof o==="string"||arguments.length>2){s=arguments[1];t=arguments[2];n=arguments[3];p=arguments[4];u=arguments[5];w=arguments[6];o={icon:s,title:t,actions:n,onClose:p,id:u,styleClass:w};}if(o&&o.isCustomAction===undefined){o.isCustomAction=g(o);}if(o&&o.hasOwnProperty("details")){x.icon=f.INFORMATION;x.actions=[A.OK,A.CANCEL];o=q.extend({},x,o);}o=q.extend({},x,o);if(typeof o.actions!=="undefined"&&!Array.isArray(o.actions)){o.actions=[o.actions];}if(!o.actions||o.actions.length===0){o.actions=[A.OK];o.isCustomAction=false;}function H(Q,J){var R;if(M.Action.hasOwnProperty(Q)){R=M._rb.getText("MSGBOX_"+Q);}var U=new B({id:E.uid("mbox-btn-"),text:R||Q,type:J,press:function(){r=Q;h.close();}});return U;}var J;for(i=0;i<o.actions.length;i++){J=!o.isCustomAction&&A.OK===o.actions[i]?e.Emphasized:e.Default;k.push(H(o.actions[i],J));}function K(o,j){var Q,R,U=new V({items:[j]});if(!o.details){return U;}if(typeof o.details=='object'){o.details="<pre>"+JSON.stringify(o.details,null,'\t').replace(/{/gi,"\\{")+"</pre>";}Q=new F().setVisible(false).setHtmlText(o.details);R=new L({text:M._rb.getText("MSGBOX_LINK_TITLE"),press:function(){var W=h.getInitialFocus();h.addAriaLabelledBy(Q);Q.setVisible(true);R.setVisible(false);if(W&&W!==R.getId()){h._setInitialFocus();}else{k[0].focus();}}});R.addStyleClass("sapMMessageBoxLinkText");Q.addStyleClass("sapMMessageBoxDetails");U.addItem(R);U.addItem(Q);return U;}function N(){if(typeof o.onClose==="function"){o.onClose(r);}h.detachAfterClose(N);h.destroy();}function O(){var i=0;var Q=null;if(o.initialFocus){if(o.initialFocus instanceof C){Q=o.initialFocus;}if(typeof o.initialFocus==="string"){for(i=0;i<k.length;i++){if(M.Action.hasOwnProperty(o.initialFocus)){if(M._rb.getText("MSGBOX_"+o.initialFocus).toLowerCase()===k[i].getText().toLowerCase()){Q=k[i];break;}}else{if(o.initialFocus.toLowerCase()===k[i].getText().toLowerCase()){Q=k[i];break;}}}}}return Q;}if(typeof(m)==="string"){v=new T({textDirection:o.textDirection}).setText(m).addStyleClass("sapMMsgBoxText");j=v;}else if(m instanceof C){v=m.addStyleClass("sapMMsgBoxText");}if(o&&o.hasOwnProperty("details")&&o.details!==""){v=K(o,v);}h=new D({id:o.id,type:a.Message,title:o.title,content:v,icon:G[o.icon],initialFocus:O(),verticalScrolling:o.verticalScrolling,horizontalScrolling:o.horizontalScrolling,afterClose:N,buttons:k,ariaLabelledBy:j?j.getId():undefined,contentWidth:o.contentWidth});h.setProperty("role",b.AlertDialog);if(z[o.icon]){h.addStyleClass(z[o.icon]);}else{h.addStyleClass(z.STANDARD);}if(o.styleClass){h.addStyleClass(o.styleClass);}h.open();};M.alert=function(m,o){_();var h={icon:f.NONE,title:M._rb.getText("MSGBOX_TITLE_ALERT"),actions:A.OK,id:E.uid("alert"),initialFocus:null},i,t,s,S;if(typeof o==="function"||arguments.length>2){i=arguments[1];t=arguments[2];s=arguments[3];S=arguments[4];o={onClose:i,title:t,id:s,styleClass:S};}if(o){o.isCustomAction=g(o);}o=q.extend({},h,o);return M.show(m,o);};M.confirm=function(m,o){_();var h={icon:f.QUESTION,title:M._rb.getText("MSGBOX_TITLE_CONFIRM"),actions:[A.OK,A.CANCEL],id:E.uid("confirm"),initialFocus:null},i,t,s,S;if(typeof o==="function"||arguments.length>2){i=arguments[1];t=arguments[2];s=arguments[3];S=arguments[4];o={onClose:i,title:t,id:s,styleClass:S};}if(o){o.isCustomAction=g(o);}o=q.extend({},h,o);return M.show(m,o);};M.error=function(m,o){_();var h={icon:f.ERROR,title:M._rb.getText("MSGBOX_TITLE_ERROR"),actions:[A.CLOSE],id:E.uid("error"),initialFocus:null};if(o){o.isCustomAction=g(o);}o=q.extend({},h,o);return M.show(m,o);};M.information=function(m,o){_();var h={icon:f.INFORMATION,title:M._rb.getText("MSGBOX_TITLE_INFO"),actions:[A.OK],id:E.uid("info"),initialFocus:null};if(o){o.isCustomAction=g(o);}o=q.extend({},h,o);return M.show(m,o);};M.warning=function(m,o){_();var h={icon:f.WARNING,title:M._rb.getText("MSGBOX_TITLE_WARNING"),actions:[A.OK],id:E.uid("warning"),initialFocus:null};if(o){o.isCustomAction=g(o);}o=q.extend({},h,o);return M.show(m,o);};M.success=function(m,o){_();var h={icon:f.SUCCESS,title:M._rb.getText("MSGBOX_TITLE_SUCCESS"),actions:[A.OK],id:E.uid("success"),initialFocus:null};if(o){o.isCustomAction=g(o);}o=q.extend({},h,o);return M.show(m,o);};}());return M;},true);
sap.ui.predefine('sap/m/MessageItem',["./library","sap/ui/core/Item","sap/ui/core/library","sap/base/Log","sap/base/security/sanitizeHTML"],function(l,I,c,L,s){"use strict";var M=c.MessageType;var a=I.extend("sap.m.MessageItem",{metadata:{library:"sap.m",properties:{type:{type:"sap.ui.core.MessageType",group:"Appearance",defaultValue:M.Error},title:{type:"string",group:"Appearance",defaultValue:""},subtitle:{type:"string",group:"Misc",defaultValue:null},description:{type:"string",group:"Appearance",defaultValue:""},markupDescription:{type:"boolean",group:"Appearance",defaultValue:false},longtextUrl:{type:"sap.ui.core.URI",group:"Behavior",defaultValue:null},counter:{type:"int",group:"Misc",defaultValue:null},groupName:{type:"string",group:"Misc",defaultValue:""},activeTitle:{type:"boolean",group:"Misc",defaultValue:false}},defaultAggregation:"link",aggregations:{link:{type:"sap.m.Link",multiple:false,singularName:"link"}}}});a.prototype.setProperty=function(p,v,S){var P=this.getParent(),t=this.getType().toLowerCase(),b=["description","type","groupName"],u=function(n,i){if(i._oMessagePopoverItem.getId()===this.getId()&&i.getMetadata().getProperty(n)){i.setProperty(n,v);}};if(b.indexOf(p)===-1&&P&&("_bItemsChanged"in P)&&!P._bItemsChanged){P._oLists&&P._oLists.all&&P._oLists.all.getItems&&P._oLists.all.getItems().forEach(u.bind(this,p));P._oLists&&P._oLists[t]&&P._oLists[t].getItems&&P._oLists[t].getItems().forEach(u.bind(this,p));}if(typeof this._updatePropertiesFn==="function"){this._updatePropertiesFn();}return I.prototype.setProperty.apply(this,arguments);};a.prototype._updateProperties=function(b){this._updatePropertiesFn=b;};a.prototype.setDescription=function(d){if(typeof d==='undefined'){d='';}if(this.getMarkupDescription()){d=s(d);}this.setProperty("description",d,true);return this;};a.prototype.setType=function(t){if(t===M.None){t=M.Information;L.warning("The provided None type is handled and rendered as Information type");}return this.setProperty("type",t,true);};return a;});
sap.ui.predefine('sap/m/MessageListItem',["sap/ui/core/library","sap/ui/core/InvisibleText","./library",'./StandardListItem','./Link',"./MessageListItemRenderer"],function(c,I,l,S,L,M){"use strict";var a=c.MessageType;var b=l.ListType;var d=S.extend("sap.m.MessageListItem",{metadata:{library:"sap.m",properties:{activeTitle:{type:"boolean",group:"Misc",defaultValue:false},messageType:{type:"sap.ui.core.MessageType",group:"Appearance",defaultValue:a.Error}},aggregations:{link:{type:"sap.m.Link",group:"Misc",multiple:false},linkAriaDescribedBy:{type:"sap.ui.core.Control",group:"Misc",multiple:false}},events:{activeTitlePress:{}}}});d.prototype.setActiveTitle=function(A){this.setProperty("activeTitle",A);var o=this.getLink();if(!o&&A){o=new L({press:[this.fireActiveTitlePress,this]});this.setLink(o);}return this;};d.prototype.onBeforeRendering=function(){S.prototype.onBeforeRendering.apply(this,arguments);var o=this.getLink(),D;if(!o){return;}if(!o.getAriaDescribedBy().length){D=this._getLinkAriaDescribedBy();o.setProperty("text",this.getTitle(),true);o.addAssociation('ariaDescribedBy',D.getId(),true);this.setAggregation("linkAriaDescribedBy",D,true);}};d.prototype._getLinkAriaDescribedBy=function(){var A=sap.ui.getCore().getLibraryResourceBundle("sap.m").getText("MESSAGE_VIEW_LINK_FOCUS_TEXT_"+this.getMessageType().toUpperCase());return new I(this.getId()+"-link",{text:A});};d.prototype.onkeydown=function(e){if(this.getActiveTitle()&&e.altKey&&e.key==='Enter'){this.fireActiveTitlePress(this);}};d.prototype.getContentAnnouncement=function(B){var A=S.prototype.getContentAnnouncement.apply(this,arguments),s,e,m;if(this.getActiveTitle()){m=this.getMessageType().toUpperCase();s=B.getText("MESSAGE_LIST_ITEM_FOCUS_TEXT_LOCATION_"+m);e=this.getType()===b.Navigation?B.getText("MESSAGE_LIST_ITEM_FOCUS_TEXT_DESCRIPTION"):"";A+=". ".concat(s,". ",e);}return A;};return d;});
sap.ui.predefine('sap/m/MessageListItemRenderer',["./StandardListItemRenderer","sap/ui/core/Renderer"],function(S,R){"use strict";var M=R.extend(S);M.renderTitle=function(r,c){if(c.getActiveTitle()){r.renderControl(c.getLink());r.renderControl(c.getLinkAriaDescribedBy());}else{S.renderTitle.apply(this,arguments);}};return M;},true);
sap.ui.predefine('sap/m/MessagePage',['./library','sap/ui/core/library','sap/ui/core/Control','sap/ui/core/IconPool','sap/ui/base/ManagedObject','sap/m/Text','sap/m/Image','sap/m/Button','sap/m/Title','sap/m/Bar','sap/m/FormattedText','./MessagePageRenderer',"sap/ui/thirdparty/jquery"],function(l,c,C,I,M,T,a,B,b,d,F,e,q){"use strict";var f=c.TextAlign;var g=c.TextDirection;var h=l.ButtonType;var i=l.BarDesign;var j=C.extend("sap.m.MessagePage",{metadata:{library:"sap.m",properties:{text:{type:"string",group:"Misc",defaultValue:"No matching items found."},description:{type:"string",group:"Misc",defaultValue:"Check the filter settings."},title:{type:"string",group:"Misc",defaultValue:null},showHeader:{type:"boolean",group:"Appearance",defaultValue:true},showNavButton:{type:"boolean",group:"Appearance",defaultValue:false},icon:{type:"sap.ui.core.URI",group:"Misc",defaultValue:"sap-icon://documents"},iconAlt:{type:"string",group:"Misc",defaultValue:null},textDirection:{type:"sap.ui.core.TextDirection",group:"Appearance",defaultValue:g.Inherit},enableFormattedText:{type:"boolean",group:"Appearance",defaultValue:false}},aggregations:{customText:{type:"sap.m.Link",multiple:false},customDescription:{type:"sap.m.Link",multiple:false},buttons:{type:"sap.m.Button",multiple:true},_internalHeader:{type:"sap.m.Bar",multiple:false,visibility:"hidden"},_formattedText:{type:"sap.m.FormattedText",multiple:false,visibility:"hidden"},_text:{type:"sap.m.Text",multiple:false,visibility:"hidden"},_description:{type:"sap.m.Text",multiple:false,visibility:"hidden"}},associations:{ariaDescribedBy:{type:"sap.ui.core.Control",multiple:true,singularName:"ariaDescribedBy"},ariaLabelledBy:{type:"sap.ui.core.Control",multiple:true,singularName:"ariaLabelledBy"}},events:{navButtonPress:{}},designtime:"sap/m/designtime/MessagePage.designtime"}});j.prototype.init=function(){var o=sap.ui.getCore().getLibraryResourceBundle("sap.m");this._oTitle=null;this._oNavButton=new B(this.getId()+"-navButton",{type:h.Back,press:q.proxy(function(){this.fireNavButtonPress();},this)});this.setAggregation("_internalHeader",new d(this.getId()+"-intHeader",{design:i.Header}));this.setProperty("text",o.getText("MESSAGE_PAGE_TEXT"),true);this.setProperty("description",o.getText("MESSAGE_PAGE_DESCRIPTION"),true);};j.prototype.exit=function(){if(this._oNavButton){this._oNavButton.destroy();this._oNavButton=null;}if(this._oIconControl){this._oIconControl.destroy();this._oIconControl=null;}};j.prototype.setTitle=function(t){this.setProperty("title",t,true);if(!this._oTitle){this._oTitle=new b(this.getId()+"-title");this._getInternalHeader().addContentMiddle(this._oTitle);}this._oTitle.setText(t);return this;};j.prototype.setText=function(t){this.setProperty("text",t,true);var o=this.getAggregation("_text");o&&o.setText(t);return this;};j.prototype.setDescription=function(D){this.setProperty("description",D,true);var o=this.getAggregation("_formattedText"),k=this.getAggregation("_description");o&&o.setHtmlText(D);k&&k.setText(D);return this;};j.prototype.setShowNavButton=function(s){this.setProperty("showNavButton",s,true);var H=this._getInternalHeader();if(s){H.addContentLeft(this._oNavButton);}else{H.removeAllContentLeft();}return this;};j.prototype.setIcon=function(s){var v=this.getIcon()||"";s=s||"";if(v!==s){var S=!!v&&!!s&&I.isIconURI(s)===I.isIconURI(v);this.setProperty("icon",s,S);if(S&&this._oIconControl){this._oIconControl.setSrc(s);}}return this;};j.prototype.setEnableFormattedText=function(E){var o;if(E){o=this._getFormattedText();o.setHtmlText(this.getDescription());}return this.setProperty("enableFormattedText",E);};j.prototype._getIconControl=function(){if(this._oIconControl){this._oIconControl.destroy();this._oIconControl=null;}this._oIconControl=I.createControlByURI({id:this.getId()+"-pageIcon",src:this.getIcon(),height:"8rem",width:"8rem",useIconTooltip:true,decorative:false,alt:this.getIconAlt()},a).addStyleClass("sapMMessagePageIcon");return this._oIconControl;};j.prototype._getText=function(){if(this.getAggregation("customText")){return this.getAggregation("customText");}if(!this.getAggregation("_text")){var t=new T(this.getId()+"-text",{id:this.getId()+"-customText",text:M.escapeSettingsValue(this.getText()),textAlign:f.Center,textDirection:this.getTextDirection()});this.setAggregation("_text",t);}return this.getAggregation("_text");};j.prototype._getDescription=function(){if(this.getAggregation("customDescription")){return this.getAggregation("customDescription");}if(this.getEnableFormattedText()){return this._getFormattedText();}if(!this.getAggregation("_description")){var D=new T(this.getId()+"-description",{id:this.getId()+"-customDescription",text:M.escapeSettingsValue(this.getDescription()),textAlign:f.Center,textDirection:this.getTextDirection()});this.setAggregation("_description",D);}return this.getAggregation("_description");};j.prototype._getAnyHeader=function(){return this._getInternalHeader();};j.prototype._getInternalHeader=function(){return this.getAggregation("_internalHeader");};j.prototype._getFormattedText=function(){var o=this.getAggregation("_formattedText");if(!o){o=new F(this.getId()+"-formattedText");this.setAggregation("_formattedText",o);}return o;};return j;});
sap.ui.predefine('sap/m/MessagePageRenderer',['sap/ui/core/library'],function(c){"use strict";var T=c.TextDirection;var M={apiVersion:2};M.render=function(r,m){this.startOpeningDiv(r,m);this.renderHeader(r,m);this.startInnerDivs(r);this.renderContent(r,m);this.endInnerDivs(r);this.endOpeningDiv(r);};M.startOpeningDiv=function(r,m){r.openStart("div",m);r.class("sapMMessagePage");if(m.getTextDirection()!==T.Inherit){r.attr("dir",m.getTextDirection().toLowerCase());}r.openEnd();};M.renderHeader=function(r,m){if(m.getShowHeader()){r.renderControl(m.getAggregation("_internalHeader"));}};M.startInnerDivs=function(r){r.openStart("div");r.class("sapMMessagePageInner");r.openEnd();r.openStart("div");r.class("sapMMessagePageContentWrapper");r.openEnd();};M.renderContent=function(r,m){if(m.getIcon()){r.renderControl(m._getIconControl());}r.renderControl(m._getText().addStyleClass("sapMMessagePageMainText"));r.renderControl(m._getDescription().addStyleClass("sapMMessagePageDescription"));this.renderButtons(r,m);};M.renderButtons=function(r,m){var b=m.getButtons();if(b.length>0){r.openStart("div");r.class("sapMMessagePageButtonsWrapper");r.openEnd();for(var i=0;i<b.length;i++){r.renderControl(b[i]);}r.close("div");}};M.endInnerDivs=function(r){r.close("div");r.close("div");};M.endOpeningDiv=function(r){r.close("div");};return M;},true);
sap.ui.predefine('sap/m/MessagePopover',["./ResponsivePopover","./Button","./Toolbar","./Bar","sap/ui/core/Control","sap/ui/core/IconPool","./semantic/SemanticPage","./Popover","./MessageView","sap/ui/Device","./MessagePopoverRenderer","sap/base/Log","sap/ui/thirdparty/jquery"],function(R,B,T,a,C,I,S,P,M,D,b,L,q){"use strict";var c=C.extend("sap.m.MessagePopover",{metadata:{library:"sap.m",properties:{asyncDescriptionHandler:{type:"any",group:"Behavior",defaultValue:null},asyncURLHandler:{type:"any",group:"Behavior",defaultValue:null},placement:{type:"sap.m.VerticalPlacementType",group:"Behavior",defaultValue:"Vertical"},initiallyExpanded:{type:"boolean",group:"Behavior",defaultValue:true}},defaultAggregation:"items",aggregations:{items:{type:"sap.m.MessageItem",altTypes:["sap.m.MessagePopoverItem"],multiple:true,singularName:"item"},headerButton:{type:"sap.m.Button",multiple:false,forwarding:{idSuffix:"-messageView",aggregation:"headerButton"}}},events:{afterOpen:{parameters:{openBy:{type:"sap.ui.core.Control"}}},afterClose:{parameters:{openBy:{type:"sap.ui.core.Control"}}},beforeOpen:{parameters:{openBy:{type:"sap.ui.core.Control"}}},beforeClose:{parameters:{openBy:{type:"sap.ui.core.Control"}}},itemSelect:{parameters:{item:{type:"sap.m.MessagePopoverItem"},messageTypeFilter:{type:"sap.ui.core.MessageType"}}},listSelect:{parameters:{messageTypeFilter:{type:"sap.ui.core.MessageType"}}},longtextLoaded:{},urlValidated:{},activeTitlePress:{parameters:{item:{type:"sap.m.MessageItem"}}}}}});function d(n){return n.charAt(0).toUpperCase()+n.slice(1);}var e="sapMMsgPopover",f="320px",g="440px",h={back:I.getIconURI("nav-back"),close:I.getIconURI("decline"),information:I.getIconURI("message-information"),warning:I.getIconURI("message-warning"),error:I.getIconURI("message-error"),success:I.getIconURI("message-success")},A=["asyncDescriptionHandler","asyncURLHandler"],i={asyncDescriptionHandler:function(j){var l=j.item.getLongtextUrl();if(l){q.ajax({type:"GET",url:l,success:function(k){j.item.setDescription(k);j.promise.resolve();},error:function(){var E="A request has failed for long text data. URL: "+l;L.error(E);j.promise.reject(E);}});}}};c.setDefaultHandlers=function(m){A.forEach(function(F){if(m.hasOwnProperty(F)){i[F]=m[F];}});};c.prototype.init=function(){var t=this;var p;this._oOpenByControl=null;this._oResourceBundle=sap.ui.getCore().getLibraryResourceBundle("sap.m");this._oMessageView=this._initMessageView();this._oMessageView.addEventDelegate({onBeforeRendering:function(){var s=t._oMessageView._oSegmentedButton.getVisible(),j=!t.getInitiallyExpanded()||s;t._oMessageView._oSegmentedButton.setVisible(j);t._oMessageView._listPage.setShowHeader(true);}});this._insertCloseBtn(this._oMessageView._oListHeader);this._insertCloseBtn(this._oMessageView._oDetailsHeader);this._oMessageView._oSegmentedButton.attachEvent("select",this._onSegButtonSelect,this);this._oPopover=new R(this.getId()+"-messagePopover",{showHeader:false,contentWidth:g,contentHeight:f,placement:this.getPlacement(),showCloseButton:false,verticalScrolling:false,horizontalScrolling:false,modal:false,afterOpen:function(E){t.fireAfterOpen({openBy:E.getParameter("openBy")});},afterClose:function(E){t._oMessageView._navContainer.backToTop();t.fireAfterClose({openBy:E.getParameter("openBy")});},beforeOpen:function(E){t.fireBeforeOpen({openBy:E.getParameter("openBy")});},beforeClose:function(E){t.fireBeforeClose({openBy:E.getParameter("openBy")});}}).addStyleClass(e);this._oPopover._setAriaModal(false);this._oPopover.addContent(this._oMessageView);this._oPopover.addAssociation("ariaLabelledBy",this.getId()+"-messageView-HeadingDescr",true);p=this._oPopover.getAggregation("_popup");p.oPopup.setAutoClose(false);p.addEventDelegate({onBeforeRendering:this.onBeforeRenderingPopover,onAfterRendering:this.onAfterRenderingPopover},this);if(D.system.phone){this._oPopover.setBeginButton(new B({text:this._oResourceBundle.getText("MESSAGEPOPOVER_CLOSE"),press:this.close.bind(this)}));}A.forEach(function(F){if(i.hasOwnProperty(F)){this['set'+d(F)](i[F]);}},this);};c.prototype.onBeforeRendering=function(){if(this.getDependents().indexOf(this._oPopover)===-1){this.addDependent(this._oPopover);}};c.prototype.onBeforeRenderingPopover=function(){if(this._bItemsChanged){var j=this.getItems();var t=this;this._oMessageView.destroyItems();j.forEach(function(k){k._updateProperties(function(){t._bItemsChanged=true;});this._oMessageView.addItem(k.clone("","",{cloneChildren:true,cloneBinding:true}));},this);this._bItemsChanged=false;}this._setInitialFocus();if(this._oOpenByControl&&!this._oOpenByControl.getVisible()){this._oPopover.close();}};c.prototype.onAfterRenderingPopover=function(){if(this._oPopover._oControl._sFocusControlId){this._oPopover._oControl._sFocusControlId=null;}};c.prototype.exit=function(){this._oResourceBundle=null;this._oOpenByControl=null;if(this._oMessageView){this._oMessageView.destroy();this._oMessageView=null;}if(this._oPopover){this._oPopover.destroy();this._oPopover=null;}};c.prototype.openBy=function(o){var r=this._oPopover.getAggregation("_popup"),p=o.getParent();this._oOpenByControl=o;if(r instanceof P){if((p instanceof T||p instanceof a||p instanceof S)){r._minDimensions={width:400,height:128};r.setShowArrow(false);r.setResizable(true);}else{r.setShowArrow(true);}}if(this._oPopover){this._restoreExpansionDefaults();this._oPopover.openBy(o);}return this;};c.prototype.close=function(){if(this._oPopover){this._oPopover.close();}return this;};c.prototype.isOpen=function(){return this._oPopover.isOpen();};c.prototype.toggle=function(o){if(this.isOpen()){this.close();}else{this.openBy(o);}return this;};c.prototype.setPlacement=function(p){this.setProperty("placement",p,true);this._oPopover.setPlacement(p);return this;};c.prototype.getDomRef=function(s){return this._oPopover&&this._oPopover.getAggregation("_popup").getDomRef(s);};c.prototype._initMessageView=function(){var t=this,m;m=new M(this.getId()+"-messageView",{activeTitlePress:function(E){if(D.system.phone){t.close();}t.fireActiveTitlePress({item:E.getParameter("item")});},listSelect:function(E){t.fireListSelect({messageTypeFilter:E.getParameter('messageTypeFilter')});},itemSelect:function(E){t.fireItemSelect({messageTypeFilter:E.getParameter('messageTypeFilter'),item:E.getParameter('item')});},longtextLoaded:function(){t.fireLongtextLoaded();},urlValidated:function(){t.fireUrlValidated();}});m._makeAutomaticBinding=function(){var j=t.getItems();if(!t.getBindingInfo("items")&&!j.length){this._bindToMessageModel();}};return m;};c.prototype._onSegButtonSelect=function(){if(this.isOpen()&&!this.getInitiallyExpanded()&&this._oPopover.hasStyleClass(e+"-init")){this._expandMsgPopover();}};c.prototype._restoreExpansionDefaults=function(){if(!this.getInitiallyExpanded()&&this.getItems().length!=1){this._collapseMsgPopover();this._oMessageView._oSegmentedButton.setSelectedButton("none");}else{this._expandMsgPopover();}};c.prototype._expandMsgPopover=function(){var s,H=f,s=this._oPopover.$("cont").css("height");if(this.getInitiallyExpanded()&&s!=="0px"){H=parseFloat(s)?s:H;}this._oPopover.setContentHeight(H).removeStyleClass(e+"-init");};c.prototype._collapseMsgPopover=function(){this._oPopover.addStyleClass(e+"-init").setContentHeight("auto");};c.prototype._insertCloseBtn=function(o){var s=this._oResourceBundle.getText("MESSAGEPOPOVER_CLOSE"),j=new B({icon:h["close"],visible:!D.system.phone,tooltip:s,press:this.close.bind(this)}).addStyleClass(e+"CloseBtn");o.insertContent(j,3,true);};c.prototype._setInitialFocus=function(){if(this._oMessageView._isListPage()&&this.getInitiallyExpanded()){this._oPopover.setInitialFocus(this._oMessageView._oLists[this._sCurrentList||'all']);}};c.prototype.setAsyncDescriptionHandler=function(j){this.setProperty('asyncDescriptionHandler',j,true);this._oMessageView.setProperty('asyncDescriptionHandler',j,true);return this;};c.prototype.setAsyncURLHandler=function(j){this.setProperty('asyncURLHandler',j,true);this._oMessageView.setProperty('asyncURLHandler',j,true);return this;};c.prototype.setModel=function(m,n){this._oMessageView.setModel(m,n);return C.prototype.setModel.apply(this,arguments);};["invalidate","addStyleClass","removeStyleClass","toggleStyleClass","hasStyleClass","getBusyIndicatorDelay","setBusyIndicatorDelay","getVisible","setVisible","getBusy","setBusy"].forEach(function(n){c.prototype[n]=function(){if(this._oPopover&&this._oPopover[n]){var p=this._oPopover;var r=p[n].apply(p,arguments);return r===p?this:r;}};});["setModel","bindAggregation","setAggregation","insertAggregation","addAggregation","removeAggregation","removeAllAggregation","destroyAggregation"].forEach(function(F){c.prototype["_"+F+"Old"]=c.prototype[F];c.prototype[F]=function(){var r=c.prototype["_"+F+"Old"].apply(this,arguments);this._bItemsChanged=true;if(this._oPopover){this._oPopover.invalidate();}if(["removeAggregation","removeAllAggregation"].indexOf(F)!==-1){return r;}return this;};});return c;});
sap.ui.predefine('sap/m/MessagePopoverRenderer',[],function(){"use strict";var M={};M.render=function(r,c){};return M;},true);
sap.ui.predefine('sap/m/MessageToast',['./InstanceManager','sap/ui/core/Popup','sap/ui/core/library','sap/ui/core/Control','sap/ui/Device',"sap/base/Log","sap/ui/thirdparty/jquery"],function(I,P,c,C,D,L,q){"use strict";var a=c.Dock;var d=c.CSSSize;var M={};var O="0 -64",e="sapMMessageToast",E="sapUiSelectable",B="sapContrast",f="sapContrastPlus";M._mSettings={duration:3000,width:"15em",my:"center bottom",at:"center bottom",of:document.defaultView,offset:"0 0",collision:"fit fit",onClose:null,animationTimingFunction:"ease",animationDuration:1000,autoClose:true,closeOnBrowserNavigation:true};M._aPopups=[];M._iOpenedPopups=0;M._bBoundedEvents=false;M._validateSettings=function(s){M._isFiniteInteger(s.duration);M._validateWidth(s.width);M._validateDockPosition(s.my);M._validateDockPosition(s.at);M._validateOf(s.of);M._validateOffset(s.offset);M._validateCollision(s.collision);M._validateOnClose(s.onClose);M._validateAutoClose(s.autoClose);M._validateAnimationTimingFunction(s.animationTimingFunction);M._isFiniteInteger(s.animationDuration);};M._isFiniteInteger=function(N){if(typeof N!=="number"||!isFinite(N)||!(Math.floor(N)===N)||N<=0){L.error('"iNumber" needs to be a finite positive nonzero integer on '+M+"._isFiniteInteger");}};M._validateWidth=function(w){if(!d.isValid(w)){L.error(w+' is not of type '+'"sap.ui.core.CSSSize" for property "width" on '+M+"._validateWidth");}};M._validateDockPosition=function(s){if(!a.isValid(s)){L.error('"'+s+'"'+' is not of type '+'"sap.ui.core.Popup.Dock" on '+M+"._validateDockPosition");}};M._validateOf=function(v){if(!(v instanceof q)&&!(v&&v.nodeType===1)&&!(v instanceof C)&&v!==window){L.error('"of" needs to be an instance of sap.ui.core.Control or an Element or a jQuery object or the window on '+M+"._validateOf");}};M._validateOffset=function(o){if(typeof o!=="string"){L.error(o+' is of type '+typeof o+', expected "string" for property "offset" on '+M+"._validateOffset");}};M._validateCollision=function(s){var r=/^(fit|flip|none|flipfit|flipflip|flip flip|flip fit|fitflip|fitfit|fit fit|fit flip)$/i;if(!r.test(s)){L.error('"collision" needs to be a single value “fit”, “flip”, or “none”, or a pair for horizontal and vertical e.g. "fit flip”, "fit none", "flipfit" on '+M+"._validateOffset");}};M._validateOnClose=function(b){if(typeof b!=="function"&&b!==null){L.error('"onClose" should be a function or null on '+M+"._validateOnClose");}};M._validateAutoClose=function(b){if(typeof b!=="boolean"){L.error('"autoClose" should be a boolean on '+M+"._validateAutoClose");}};M._validateAnimationTimingFunction=function(t){var r=/^(ease|linear|ease-in|ease-out|ease-in-out)$/i;if(!r.test(t)){L.error('"animationTimingFunction" should be a string, expected values: '+"ease, linear, ease-in, ease-out, ease-in-out on "+M+"._validateAnimationTimingFunction");}};function h(o){for(var p=["my","at","of","offset"],i=0;i<p.length;i++){if(o[p[i]]!==undefined){return false;}}return true;}function g(s){var m=document.createElement("div");m.className=e+" "+E+" "+B+" "+f;if(sap.ui.getCore().getConfiguration().getAccessibility()){m.setAttribute("role","alert");m.setAttribute("aria-label"," ");}m.style.width=s.width;m.appendChild(document.createTextNode(s.message));return m;}function n(o){if(o){if(h(o)){o.offset=O;}if(o.of&&o.of.nodeType===9){o.of=document.defaultView;}}else{o={offset:O};}return o;}M._handleResizeEvent=function(){if(D.system.phone||D.system.tablet){M._resetPosition(M._aPopups);}setTimeout(M["_applyPositions"].bind(M,M._aPopups),0);};M._handleMouseDownEvent=function(o){var i=o.target.hasAttribute("class")&&o.target.getAttribute("class").indexOf(e)!==-1;if(i||o.isMarked("delayedMouseEvent")){return;}M._aPopups.forEach(function(p){p&&p.__bAutoClose&&p.close();});};M._resetPosition=function(p){for(var i=0,m;i<p.length;i++){m=p[i]&&p[i].getContent();if(m){m.style.visibility="hidden";m.style.left=0;}}};M._applyPositions=function(p){for(var i=0,o,m;i<p.length;i++){o=p[i];if(o){m=o._oPosition;if(D.system.phone||D.system.tablet){setTimeout(M["_applyPosition"].bind(M,o,m),0);}else{o.setPosition(m.my,m.at,m.of,m.offset);}}}};M._applyPosition=function(p,m){m=m||p._oPosition;var o=p.getContent();p.setPosition(m.my,m.at,m.of,m.offset);o.style.visibility="visible";};M._setCloseAnimation=function(m,i,b,s){var j="opacity "+s.animationTimingFunction+" "+s.animationDuration+"ms",t="webkitTransitionEnd."+e+" transitionend."+e;if(sap.ui.getCore().getConfiguration().getAnimation()&&s.animationDuration>0){m[0].style.webkitTransition=j;m[0].style.transition=j;m[0].style.opacity=0;m.on(t,function handleMTTransitionEnd(){m.off(t);b();});}else{b();}};M.show=function(m,o){var t=M,s=q.extend({},M._mSettings,{message:m}),p=new P(),i,b,j="mousedown."+e+" touchstart."+e,k,l;o=n(o);q.extend(s,o);M._validateSettings(s);b=g(s);i=M._aPopups.push(p)-1;p.setContent(b);p.setPosition(s.my,s.at,s.of,s.offset,s.collision);p.setAnimations(function fnMessageToastOpen($,v,w){w();},function fnMessageToastClose($,v,w){t._setCloseAnimation($,v,w,s);});p.setShadow(false);p.__bAutoClose=s.autoClose;if(s.closeOnBrowserNavigation){I.addPopoverInstance(p);}if(!M._bBoundedEvents){q(window).on("resize."+e,M._handleResizeEvent.bind(M));q(document).on(j,M._handleMouseDownEvent.bind(M));M._bBoundedEvents=true;}p.open();M._iOpenedPopups++;function r(){I.removePopoverInstance(t._aPopups[i]);q(t._aPopups[i].getContent()).remove();t._aPopups[i].detachClosed(r);t._aPopups[i].destroy();t._aPopups[i]=null;t._iOpenedPopups--;if(t._iOpenedPopups===0){t._aPopups=[];q(window).off("resize."+e);q(document).off(j);t._bBoundedEvents=false;}if(typeof s.onClose==="function"){s.onClose.call(t);}}p.attachClosed(r);k=setTimeout(p["close"].bind(p),s.duration);function u(){clearTimeout(k);k=null;function v(){l=setTimeout(p["close"].bind(p),s.duration);p.getContent().removeEventListener("mouseleave",v);}p.getContent().addEventListener("mouseleave",v);clearTimeout(l);l=null;}p.getContent().addEventListener("touchstart",u);p.getContent().addEventListener("mouseover",u);if(D.system.desktop){p.getContent().addEventListener("mouseleave",function(){k=setTimeout(p["close"].bind(p),s.duration);});}};M.toString=function(){return"sap.m.MessageToast";};return M;},true);
sap.ui.predefine('sap/m/MessageView',["sap/ui/thirdparty/jquery","sap/ui/core/Control","sap/ui/core/CustomData","sap/ui/core/IconPool","sap/ui/core/HTML","sap/ui/core/Icon","./Button","./Toolbar","./ToolbarSpacer","./List","./MessageListItem","./library","./Text","./SegmentedButton","./Page","./NavContainer","./Link","./MessageItem","./GroupHeaderListItem","sap/ui/core/library","sap/ui/base/ManagedObject","./MessageViewRenderer","sap/ui/events/KeyCodes","sap/base/Log","sap/base/security/URLWhitelist","sap/ui/thirdparty/caja-html-sanitizer"],function(q,C,a,I,H,b,B,T,c,L,M,l,d,S,P,N,e,f,G,g,h,j,K,k,U){"use strict";var V=g.ValueState;var m=g.MessageType;var n=l.ListType;var o=C.extend("sap.m.MessageView",{metadata:{library:"sap.m",properties:{asyncDescriptionHandler:{type:"any",group:"Behavior",defaultValue:null},asyncURLHandler:{type:"any",group:"Behavior",defaultValue:null},groupItems:{type:"boolean",group:"Behavior",defaultValue:false},showDetailsPageHeader:{type:"boolean",group:"Behavior",defaultValue:true}},defaultAggregation:"items",aggregations:{items:{type:"sap.m.MessageItem",multiple:true,singularName:"item"},headerButton:{type:"sap.m.Button",multiple:false},_navContainer:{type:"sap.m.NavContainer",multiple:false,visibility:"hidden"}},events:{afterOpen:{parameters:{openBy:{type:"sap.ui.core.Control"}}},itemSelect:{parameters:{item:{type:"sap.m.MessageItem"},messageTypeFilter:{type:"sap.ui.core.MessageType"}}},listSelect:{parameters:{messageTypeFilter:{type:"sap.ui.core.MessageType"}}},longtextLoaded:{},urlValidated:{},activeTitlePress:{parameters:{item:{type:"sap.m.MessageItem"}}}}}});var p="sapMMsgView";var r={back:I.getIconURI("nav-back"),close:I.getIconURI("decline"),information:I.getIconURI("message-information"),warning:I.getIconURI("message-warning"),error:I.getIconURI("message-error"),success:I.getIconURI("message-success")};var s=["all","error","warning","success","information"];var A=["asyncDescriptionHandler","asyncURLHandler"];var D={asyncDescriptionHandler:function(i){var t=i.item.getLongtextUrl();if(t){q.ajax({type:"GET",url:t,success:function(u){i.item.setDescription(u);i.promise.resolve();},error:function(){var E="A request has failed for long text data. URL: "+t;k.error(E);i.promise.reject(E);}});}}};o.setDefaultHandlers=function(i){A.forEach(function(F){if(i.hasOwnProperty(F)){D[F]=i[F];}});};o.prototype.init=function(){var t=this;this._bHasHeaderButton=false;this._oResourceBundle=sap.ui.getCore().getLibraryResourceBundle("sap.m");this._createNavigationPages();this._createLists();A.forEach(function(F){if(D.hasOwnProperty(F)){t.setProperty(F,D[F]);}});};o.prototype._afterNavigate=function(){setTimeout(this["_restoreFocus"].bind(this),0);setTimeout(this["_restoreItemsType"].bind(this),0);};o.prototype._restoreFocus=function(){if(this._isListPage()&&this.getItems().length){this._oLists[this._sCurrentList||'all'].focus();}else if(this._oBackButton){this._oBackButton.focus();}};o.prototype._restoreItemsType=function(){if(this._isListPage()&&this.getItems().length>1){var t=this;this._oLists[this._sCurrentList||'all'].getItems().forEach(function(i){if(i.isA("sap.m.MessageListItem")){t._setItemType(i);}});}};o.prototype._setItemType=function(i){var t,u=i.getActiveTitle();if(!i.getTitle()||!i.getDescription()){if(u){t=".sapMSLITitleOnly a";}else{t=".sapMSLITitleOnly";}}else if(u){t=".sapMSLITitle a";}else{t=".sapMSLITitle";}var v=i.getDomRef().querySelector(t);if(v.offsetWidth<v.scrollWidth){i.setType(n.Navigation);if(this.getItems().length===1){this._fnHandleForwardNavigation(i,"show");}}};o.prototype.onBeforeRendering=function(){var i,t=this.getItems();this._clearLists();this._detailsPage.setShowHeader(this.getShowDetailsPageHeader());if(this.getGroupItems()){i=this._groupItems(t);this._fillGroupedLists(i);}else{this._fillLists(t);}var u=this.getHeaderButton();if(u){this._bHasHeaderButton=true;this._oListHeader.insertContent(u,2);}this._clearSegmentedButton();this._fillSegmentedButton();this._fnFilterList(this._getCurrentMessageTypeFilter()||"all");if(t.length===1&&this._oLists.all.getItems()[0].getType()===n.Navigation){this._fnHandleForwardNavigation(this._oLists.all.getItems()[0],"show");this._navContainer._pageStack[this._navContainer._pageStack.length-1].transition="slide";}this._makeAutomaticBinding();};o.prototype._fillGroupedLists=function(i){var t=Object.keys(i),u=t.indexOf(""),v,w;if(u!==-1){v=i[""];w=Object.keys(v);w.forEach(function(x){var y=v[x];this._fillLists(y);delete i[""];t.splice(u,1);},this);}t.forEach(function(x){this._fillListsWithGroups(x,i[x]);},this);};o.prototype._fillListsWithGroups=function(i,t){var u=Object.keys(t),v=new G({title:i}),w;this._oLists["all"].addAggregation("items",v,true);u.forEach(function(x){this._oLists[x.toLowerCase()].addAggregation("items",v.clone(),true);w=t[x];this._fillLists(w);},this);};o.prototype.exit=function(){if(this._oLists){this._destroyLists();}if(this._oMessageItemTemplate){this._oMessageItemTemplate.destroy();}this._oResourceBundle=null;this._oListHeader=null;this._oDetailsHeader=null;this._oSegmentedButton=null;this._oBackButton=null;this._navContainer=null;this._listPage=null;this._detailsPage=null;this._sCurrentList=null;};o.prototype._makeAutomaticBinding=function(){var i=this.getItems();if(!this.getBindingInfo("items")&&!i.length){this._bindToMessageModel();}};o.prototype._bindToMessageModel=function(){var t=this;this.setModel(sap.ui.getCore().getMessageManager().getMessageModel(),"message");this._oMessageItemTemplate=new f({type:"{message>type}",title:"{message>message}",description:"{message>description}",longtextUrl:"{message>longtextUrl}"});this.bindAggregation("items",{path:"message>/",template:t._oMessageItemTemplate});};o.prototype._groupItems=function(i){var t={},u,v;i.forEach(function(w){u=w.getGroupName();v=w.getType();t[u]=t[u]||{};var x=t[u];if(x[v]){x[v].push(w);}else{x[v]=[w];}});return t;};o.prototype._onkeypress=function(E){if(E.shiftKey&&E.keyCode==K.ENTER){this.navigateBack();}};o.prototype._getListHeader=function(){return this._oListHeader||this._createListHeader();};o.prototype._getDetailsHeader=function(){return this._oDetailsHeader||this._createDetailsHeader();};o.prototype._createListHeader=function(){var i=this._oResourceBundle.getText("MESSAGEPOPOVER_CLOSE");var t=this.getId()+"-CloseBtnDescr";var u=new H(t,{content:"<span id=\""+t+"\" style=\"display: none;\">"+i+"</span>"});var v=this._oResourceBundle.getText("MESSAGEPOPOVER_ARIA_HEADING");var w=this.getId()+"-HeadingDescr";var x=new H(w,{content:"<span id=\""+w+"\" style=\"display: none;\" role=\"heading\">"+v+"</span>"});this._oSegmentedButton=new S(this.getId()+"-segmented",{}).addStyleClass("sapMSegmentedButtonNoAutoWidth");this._oListHeader=new T({content:[this._oSegmentedButton,new c(),u,x]});return this._oListHeader;};o.prototype._createDetailsHeader=function(){var i=this._oResourceBundle.getText("MESSAGEPOPOVER_CLOSE");var t=this.getId()+"-CloseBtnDetDescr";var u=new H(t,{content:"<span id=\""+t+"\" style=\"display: none;\">"+i+"</span>"});var v=this._oResourceBundle.getText("MESSAGEPOPOVER_ARIA_BACK_BUTTON_TOOLTIP");var w=this._oResourceBundle.getText("MESSAGEPOPOVER_ARIA_BACK_BUTTON");var x=this.getId()+"-BackBtnDetDescr";var y=new H(x,{content:"<span id=\""+x+"\" style=\"display: none;\">"+w+"</span>"});this._oBackButton=new B({icon:r["back"],press:this.navigateBack.bind(this),ariaLabelledBy:y,tooltip:v}).addStyleClass(p+"BackBtn");this._oDetailsHeader=new T({content:[this._oBackButton,new c(),u,y]});return this._oDetailsHeader;};o.prototype._createNavigationPages=function(){this._listPage=new P(this.getId()+"listPage",{customHeader:this._getListHeader()});this._detailsPage=new P(this.getId()+"-detailsPage",{customHeader:this._getDetailsHeader()});this._detailsPage.addEventDelegate({onclick:function(E){var t=E.target;if(t.nodeName.toUpperCase()==="A"&&(t.className.indexOf("sapMMsgPopoverItemDisabledLink")!==-1||t.className.indexOf("sapMMsgPopoverItemPendingLink")!==-1)){E.preventDefault();}}});this._navContainer=new N(this.getId()+"-navContainer",{initialPage:this.getId()+"listPage",pages:[this._listPage,this._detailsPage],afterNavigate:this._afterNavigate.bind(this)});this.setAggregation("_navContainer",this._navContainer);return this;};o.prototype._createLists=function(){this._oLists={};s.forEach(function(i){this._oLists[i]=new L({itemPress:this._fnHandleItemPress.bind(this),visible:false});this._listPage.addAggregation("content",this._oLists[i],true);},this);return this;};o.prototype._clearLists=function(){s.forEach(function(i){if(this._oLists[i]){this._oLists[i].destroyAggregation("items",true);}},this);return this;};o.prototype._destroyLists=function(){s.forEach(function(i){this._oLists[i]=null;},this);this._oLists=null;};o.prototype._fillLists=function(i){i.forEach(function(t){var u=this._mapItemToListItem(t),v=this._mapItemToListItem(t);this._oLists["all"].addAggregation("items",u,true);this._oLists[t.getType().toLowerCase()].addAggregation("items",v,true);},this);};o.prototype._mapItemToListItem=function(i){if(!i){return null;}var t=i.getType(),u=this,v=this._getItemType(i),w=new M({title:h.escapeSettingsValue(i.getTitle()),description:h.escapeSettingsValue(i.getSubtitle()),counter:i.getCounter(),icon:this._mapIcon(t),infoState:this._mapInfoState(t),info:"\r",type:v,messageType:i.getType(),activeTitle:i.getActiveTitle(),activeTitlePress:function(){u.fireActiveTitlePress({item:i});}}).addStyleClass(p+"Item").addStyleClass(p+"Item"+t).toggleStyleClass(p+"ItemActive",i.getActiveTitle());if(v!==n.Navigation){w.addEventDelegate({onAfterRendering:function(){u._setItemType(w);}},this);}w._oMessageItem=i;return w;};o.prototype._mapInfoState=function(t){if(!t){return null;}switch(t){case m.Warning:return V.Warning;case m.Error:return V.Error;case m.Success:return V.Success;case m.Information:case m.None:return V.None;default:k.warning("The provided MessageType is not mapped to a specific ValueState",t);return null;}};o.prototype._mapIcon=function(i){if(!i){return null;}return r[i.toLowerCase()];};o.prototype._getItemType=function(i){return(i.getDescription()||i.getMarkupDescription()||i.getLongtextUrl())?n.Navigation:n.Inactive;};o.prototype._clearSegmentedButton=function(){if(this._oSegmentedButton){this._oSegmentedButton.destroyAggregation("buttons",true);}return this;};o.prototype._fillSegmentedButton=function(){var t=this;var i=function(w){return function(){t._fnFilterList(w);};};s.forEach(function(w){var x=this._oLists[w],y=w=="all"?"MESSAGEPOPOVER_ALL":"MESSAGEVIEW_BUTTON_TOOLTIP_"+w.toUpperCase(),z=x.getItems().filter(function(F){return(F instanceof M);}).length,E;if(z>0){E=new B(this.getId()+"-"+w,{text:w=="all"?this._oResourceBundle.getText(y):z,tooltip:this._oResourceBundle.getText(y),icon:r[w],press:i(w)}).addStyleClass(p+"Btn"+w.charAt(0).toUpperCase()+w.slice(1));this._oSegmentedButton.addButton(E,true);}},this);var u=this._oSegmentedButton.getButtons().length>2;this._oSegmentedButton.setVisible(u);if(!u){this._oSegmentedButton.setSelectedButton(this._oSegmentedButton.getButtons()[0]);this._fnFilterList('all');}var v=u||this._bHasHeaderButton;this._listPage.setShowHeader(v);return this;};o.prototype._setIcon=function(i,t){this._previousIconTypeClass=p+"DescIcon"+i.getType();this._oMessageIcon=new b({src:t.getIcon()}).addStyleClass(p+"DescIcon").addStyleClass(this._previousIconTypeClass);this._detailsPage.addContent(this._oMessageIcon);};o.prototype._setTitle=function(i,t){var u=i.getActiveTitle(),v,w=this,x=h.escapeSettingsValue(i.getTitle()),y=this.getId()+"MessageTitleText";if(u){v=new e(y,{text:x,ariaDescribedBy:t.getId()+"-link",press:function(){w.fireActiveTitlePress({item:i});}});}else{v=new d(y,{text:x});}v.addStyleClass("sapMMsgViewTitleText");this._detailsPage.addAggregation("content",v);};o.prototype._setDescription=function(i){var t=i.getLink();this._oLastSelectedItem=i;if(i.getMarkupDescription()){this._oMessageDescriptionText=new H(this.getId()+"MarkupDescription",{content:"<div class='sapMMsgViewDescriptionText'>"+h.escapeSettingsValue(i.getDescription())+"</div>"});}else{this._oMessageDescriptionText=new d(this.getId()+"MessageDescriptionText",{text:h.escapeSettingsValue(i.getDescription())}).addStyleClass("sapMMsgViewDescriptionText");}this._detailsPage.addContent(this._oMessageDescriptionText);if(t){var u=this._createLinkCopy(t);this._detailsPage.addContent(u);u.addStyleClass("sapMMsgViewDescriptionLink");}};o.prototype._createLinkCopy=function(i){var t,u=i.clone("","",{cloneChildren:false,cloneBindings:false}),v=i.getCustomData()||[];t=Object.keys(i.getMetadata().getProperties());t.forEach(function(w){u.setProperty(w,i.getProperty(w));});u.destroyCustomData();v.forEach(function(w){var x=new a({key:w.getKey(),value:w.getValue()});u.addCustomData(x);});return u;};o.prototype._iNextValidationTaskId=0;o.prototype._validateURL=function(u){if(U.validate(u)){return u;}k.warning("You have entered invalid URL");return"";};o.prototype._queueValidation=function(i){var t=this.getAsyncURLHandler();var v=++this._iNextValidationTaskId;var u={};var w=new window.Promise(function(x,y){u.resolve=x;u.reject=y;var z={url:i,id:v,promise:u};t(z);});w.id=v;return w;};o.prototype._getTagPolicy=function(){var t=this,i;var u=html.makeTagPolicy(this._validateURL());return function customTagPolicy(v,w){var x,y=false;if(v.toUpperCase()==="A"){for(i=0;i<w.length;){if(w[i]==="href"){y=true;x=w[i+1];w.splice(0,2);continue;}i+=2;}}w=u(v,w);if(y&&typeof t.getAsyncURLHandler()==="function"){w=w||[];var z="sapMMsgViewItemDisabledLink sapMMsgViewItemPendingLink";var E=w.indexOf("class");if(E>-1){w[E+1]+=z;}else{w.unshift(z);w.unshift("class");}var F=w.indexOf("id");if(F>-1){w.splice(F+1,1);w.splice(F,1);}var J=t._queueValidation(x);w.push("href");w.push(x);w.push("target");w.push("_blank");w.push("id");w.push("sap-ui-"+t.getId()+"-link-under-validation-"+J.id);J.then(function(O){var $=q(document.getElementById("sap-ui-"+t.getId()+"-link-under-validation-"+O.id));if(O.allowed){k.info("Allow link "+x);}else{k.info("Disallow link "+x);}$.removeClass("sapMMsgViewItemPendingLink");$.toggleClass("sapMMsgViewItemDisabledLink",!O.allowed);t.fireUrlValidated();}).catch(function(){k.warning("Async URL validation could not be performed.");});}return w;};};o.prototype._sanitizeDescription=function(i){var t=i.getDescription();if(i.getMarkupDescription()){var u=this._getTagPolicy();t=html.sanitizeWithPolicy(t,u);}i.setDescription(t);this._setDescription(i);};o.prototype._fnHandleForwardNavigation=function(i,t){var u=i._oMessageItem,v=this._detailsPage.getContent()||[],w=this.getAsyncDescriptionHandler();this._previousIconTypeClass=this._previousIconTypeClass||"";this.fireItemSelect({item:u,messageTypeFilter:this._getCurrentMessageTypeFilter()});this._clearDetailsPage.call(this,v);if(typeof w==="function"&&!!u.getLongtextUrl()){u.setMarkupDescription(true);var x={};var y=new window.Promise(function(E,F){x.resolve=E;x.reject=F;});var z=function(){this._detailsPage.setBusy(false);this._navigateToDetails.call(this,u,i,t,true);}.bind(this);y.then(z).catch(function(){k.warning("Async description loading could not be performed.");z();});this._navContainer.to(this._detailsPage);this._detailsPage.setBusy(true);w({promise:x,item:u});}else{this._navigateToDetails.call(this,u,i,t,false);}this._listPage.$().attr("aria-hidden","true");};o.prototype._fnHandleItemPress=function(E){this._fnHandleForwardNavigation(E.getParameter("listItem"),"slide");};o.prototype._navigateToDetails=function(i,t,u,v){this._setTitle(i,t);this._sanitizeDescription(i);this._setIcon(i,t);this._detailsPage.rerender();this.fireLongtextLoaded();if(!v){this._navContainer.to(this._detailsPage,u);}};o.prototype._clearDetailsPage=function(i){i.forEach(function(t){t.destroy();},this);};o.prototype.navigateBack=function(){this._listPage.$().removeAttr("aria-hidden");this._navContainer.back();};o.prototype._fnFilterList=function(i){s.forEach(function(t){if(t!=i&&this._oLists[t].getVisible()){this._oLists[t].setVisible(false);}},this);this._sCurrentList=i;this._oLists[i].setVisible(true);this.fireListSelect({messageTypeFilter:this._getCurrentMessageTypeFilter()});};o.prototype._getCurrentMessageTypeFilter=function(){return this._sCurrentList=="all"?"":this._sCurrentList;};o.prototype._isListPage=function(){return this._navContainer.getCurrentPage()==this._listPage;};return o;});
sap.ui.predefine('sap/m/MessageViewRenderer',function(){"use strict";var M={};var C="sapMMsgView";M.render=function(r,c){r.write("<div");r.writeControlData(c);r.writeStyles();r.addClass(C);r.writeClasses();r.write(">");r.renderControl(c._navContainer);r.write("</div>");};return M;},true);
sap.ui.predefine('sap/m/NavContainer',['./library','sap/ui/core/Control','sap/ui/core/RenderManager','sap/ui/Device','./NavContainerRenderer',"sap/ui/thirdparty/jquery","sap/base/Log","sap/ui/dom/jquery/Focusable"],function(a,C,R,D,N,q,L){"use strict";var b=C.extend("sap.m.NavContainer",{metadata:{library:"sap.m",properties:{autoFocus:{type:"boolean",group:"Behavior",defaultValue:true},height:{type:"sap.ui.core.CSSSize",group:"Dimension",defaultValue:'100%'},width:{type:"sap.ui.core.CSSSize",group:"Dimension",defaultValue:'100%'},visible:{type:"boolean",group:"Appearance",defaultValue:true},defaultTransitionName:{type:"string",group:"Appearance",defaultValue:"slide"}},defaultAggregation:"pages",aggregations:{pages:{type:"sap.ui.core.Control",multiple:true,singularName:"page"}},associations:{initialPage:{type:"sap.ui.core.Control",multiple:false}},events:{navigate:{allowPreventDefault:true,parameters:{from:{type:"sap.ui.core.Control"},fromId:{type:"string"},to:{type:"sap.ui.core.Control"},toId:{type:"string"},firstTime:{type:"boolean"},isTo:{type:"boolean"},isBack:{type:"boolean"},isBackToTop:{type:"boolean"},isBackToPage:{type:"boolean"},direction:{type:"string"}}},afterNavigate:{parameters:{from:{type:"sap.ui.core.Control"},fromId:{type:"string"},to:{type:"sap.ui.core.Control"},toId:{type:"string"},firstTime:{type:"boolean"},isTo:{type:"boolean"},isBack:{type:"boolean"},isBackToTop:{type:"boolean"},isBackToPage:{type:"boolean"},direction:{type:"string"}}}}}});var u=sap.ui.getCore().getConfiguration().getAnimation(),g=function(d){return u?d:0;},h=function(c){return!!(c&&c.getParent());};b.TransitionDirection={BACK:"back",TO:"to"};b.prototype.init=function(){this._pageStack=[];this._aQueue=[];this._mVisitedPages={};this._mFocusObject={};this._iTransitionsCompleted=0;this._bNeverRendered=true;this._bNavigating=false;this._bRenderingInProgress=false;};b.prototype.exit=function(){this._mFocusObject=null;};b.prototype.onBeforeRendering=function(){var p=this.getCurrentPage();if(this._bNeverRendered&&p){var c=p.getId();if(!this._mVisitedPages[c]){this._mVisitedPages[c]=true;var n={from:null,fromId:null,to:p,toId:c,firstTime:true,isTo:false,isBack:false,isBackToPage:false,isBackToTop:false,direction:"initial"};var e=q.Event("BeforeFirstShow",n);e.srcControl=this;e.data=this._oToDataBeforeRendering||{};e.backData={};p._handleEvent(e);e=q.Event("BeforeShow",n);e.srcControl=this;e.data=this._oToDataBeforeRendering||{};e.backData={};p._handleEvent(e);}}};b.prototype.onAfterRendering=function(){var p=this.getCurrentPage(),f,n,c,e;if(this._bNeverRendered&&p){this._bNeverRendered=false;delete this._bNeverRendered;c=p.getId();if(!this._isInsideAPopup()&&this.getAutoFocus()){f=b._applyAutoFocusTo(c);if(f){this._mFocusObject[c]=f;}}n={from:null,fromId:null,to:p,toId:c,firstTime:true,isTo:false,isBack:false,isBackToTop:false,isBackToPage:false,direction:"initial"};e=q.Event("AfterShow",n);e.srcControl=this;e.data=this._oToDataBeforeRendering||{};e.backData={};p._handleEvent(e);}};b.prototype._getActualInitialPage=function(){var p=this.getInitialPage();if(p){var c=sap.ui.getCore().byId(p);if(c){return c;}else{L.error("NavContainer: control with ID '"+p+"' was set as 'initialPage' but was not found as a DIRECT child of this NavContainer (number of current children: "+this.getPages().length+").");}}var d=this.getPages();return(d.length>0?d[0]:null);};b.prototype.getPage=function(p){var P=this.getPages();for(var i=0;i<P.length;i++){if(P[i]&&(P[i].getId()==p)){return P[i];}}return null;};b.prototype._ensurePageStackInitialized=function(d){if(this._pageStack.length===0){var p=this._getActualInitialPage();if(p){this._pageStack.push({id:p.getId(),isInitial:true,data:d||{}});}}return this._pageStack;};b.prototype.getCurrentPage=function(){var s=this._ensurePageStackInitialized();if(s.length>=1){return this.getPage(s[s.length-1].id);}else{L.warning(this+": page stack is empty but should have been initialized - application failed to provide a page to display");return undefined;}};b.prototype.getPreviousPage=function(){var s=this._ensurePageStackInitialized();if(s.length>1){return this.getPage(s[s.length-2].id);}else if(s.length==1){return undefined;}else{L.warning(this+": page stack is empty but should have been initialized - application failed to provide a page to display");}};b.prototype.currentPageIsTopPage=function(){var s=this._ensurePageStackInitialized();return(s.length===1);};b.prototype.insertPreviousPage=function(p,t,d){var s=this._ensurePageStackInitialized();if(this._pageStack.length>0){var i=s.length-1;var c={id:p,transition:t,data:d};if(i===0){c.isInitial=true;delete s[s.length-1].isInitial;}s.splice(i,0,c);}else{L.warning(this+": insertPreviousPage called with empty page stack; ignoring");}return this;};b._applyAutoFocusTo=function(i){var f=q(document.getElementById(i)).firstFocusableDomRef();if(f){f.focus();}return f;};b.prototype._applyAutoFocus=function(n){var p=n.toId,d,c=n.isBack||n.isBackToPage||n.isBackToTop;if(!n.bFocusInsideFromPage){return;}if(c){d=this._mFocusObject!=null?this._mFocusObject[p]:null;if(d){d.focus();}else{b._applyAutoFocusTo(p);}}else if(n.isTo){b._applyAutoFocusTo(p);}};b.prototype._afterTransitionCallback=function(n,d,B){var e=q.Event("AfterShow",n);e.data=d||{};e.backData=B||{};e.srcControl=this;n.to._handleEvent(e);e=q.Event("AfterHide",n);e.srcControl=this;n.from._handleEvent(e);this._iTransitionsCompleted++;this._bNavigating=false;if(this.getAutoFocus()){this._applyAutoFocus(n);}this.fireAfterNavigate(n);L.info(this+": _afterTransitionCallback called, to: "+n.toId);if(n.to.hasStyleClass("sapMNavItemHidden")){L.warning(this.toString()+": target page '"+n.toId+"' still has CSS class 'sapMNavItemHidden' after transition. This should not be the case, please check the preceding log statements.");n.to.removeStyleClass("sapMNavItemHidden");}this._dequeueNavigation();};b.prototype._dequeueNavigation=function(){var n=this._aQueue.shift();if(typeof n==="function"){n();}};b.prototype._isInPageStack=function(p){return this._pageStack.some(function(P){return P.id===p;});};b.prototype._safeBackToPage=function(p,t,d,T){var c;if(!this.getPage(p)){return this;}c=this.getCurrentPage();if(c&&c.getId()===p){return this;}if(this._isInPageStack(p)){return this.backToPage(p,d,T);}else{d=d||{};d.safeBackToPage=true;return this.to(p,t,d,T);}};b.prototype._isFocusInControl=function(c){return q(document.activeElement).closest(c.$()).length>0;};b.prototype.to=function(p,t,d,T,f){if(p instanceof C){p=p.getId();}if(typeof(t)!=="string"){T=d;d=t;}t=t||this.getDefaultTransitionName();T=T||{};d=d||{};var F={id:p,transition:t,data:d};this._ensurePageStackInitialized(d);if(this._bNavigating){L.info(this.toString()+": Cannot navigate to page "+p+" because another navigation is already in progress. - navigation will be executed after the previous one");this._aQueue.push(q.proxy(function(){this.to(p,t,d,T,true);},this));return this;}if(this._bNeverRendered){this._oToDataBeforeRendering=d;}var o=this.getCurrentPage();if(o&&(o.getId()===p)){L.warning(this.toString()+": Cannot navigate to page "+p+" because this is the current page.");if(f){this._dequeueNavigation();}if(this._pageStack.length===1){this._pageStack[0].transition=F.transition;}return this;}var c=this.getPage(p);if(c){if(!o){L.warning("Navigation triggered to page with ID '"+p+"', but the current page is not known/aggregated by "+this);return this;}var n={from:o,fromId:o.getId(),to:c,toId:p,firstTime:!this._mVisitedPages[p],isTo:true,isBack:false,isBackToTop:false,isBackToPage:false,direction:"to",bFocusInsideFromPage:this._isFocusInControl(o)};if(n.bFocusInsideFromPage){this._mFocusObject[o.getId()]=document.activeElement;}var e=this.fireNavigate(n);if(e){a.closeKeyboard();var E=q.Event("BeforeHide",n);E.srcControl=this;o._handleEvent(E);if(!this._mVisitedPages[p]){E=q.Event("BeforeFirstShow",n);E.srcControl=this;E.data=d||{};E.backData={};c._handleEvent(E);}E=q.Event("BeforeShow",n);E.srcControl=this;E.data=d||{};E.backData={};c._handleEvent(E);this._pageStack.push(F);L.info(this.toString()+": navigating to page '"+p+"': "+c.toString());this._mVisitedPages[p]=true;if(!this.getDomRef()){L.info("'Hidden' 'to' navigation in not-rendered NavContainer "+this.toString());if(this._bRenderingInProgress){setTimeout(this.invalidate.bind(this),0);}return this;}var i;if(!(i=c.getDomRef())||i.parentNode!=this.getDomRef()||R.isPreservedContent(i)){c.addStyleClass("sapMNavItemRendering");L.debug("Rendering 'to' page '"+c.toString()+"' for 'to' navigation");var r=sap.ui.getCore().createRenderManager();r.render(c,this.getDomRef());r.destroy();c.addStyleClass("sapMNavItemHidden").removeStyleClass("sapMNavItemRendering");}var j=b.transitions[t]||b.transitions["slide"];var k=this._iTransitionsCompleted;var l=this;window.setTimeout(function(){if(l&&(l._iTransitionsCompleted<k+1)){L.warning("Transition '"+t+"' 'to' was triggered five seconds ago, but has not yet invoked the end-of-transition callback.");}},g(5000));this._bNavigating=true;var s=(d.safeBackToPage||T.safeBackToPage)?"back":"to";this._cacheTransitionInfo(t,s);j[s].call(this,o,c,q.proxy(function(){this._afterTransitionCallback(n,d);},this),T);}else{L.info("Navigation to page with ID '"+p+"' has been aborted by the application");}}else{L.warning("Navigation triggered to page with ID '"+p+"', but this page is not known/aggregated by "+this);}return this;};b.prototype.back=function(c,t){this._backTo("back",c,t);return this;};b.prototype.backToPage=function(p,c,t){this._backTo("backToPage",c,t,p);return this;};b.prototype.backToTop=function(c,t){this._backTo("backToTop",c,t);return this;};b.prototype._backTo=function(t,c,T,r){if(this._bNavigating){L.warning(this.toString()+": Cannot navigate back because another navigation is already in progress. - navigation will be executed after the previous one");this._aQueue.push(q.proxy(function(){this._backTo(t,c,T,r);},this));return this;}if(this._pageStack.length<=1){if(this._pageStack.length===1&&!this._pageStack[0].isInitial){throw new Error("Initial page not found on the stack. How did this happen?");}this._aQueue=[];return this;}else{if(r instanceof C){r=r.getId();}var f=this._pageStack[this._pageStack.length-1];var d=f.transition;var F=this.getPage(f.id);var o;var e;if(t==="backToTop"){o=this._getActualInitialPage();e=null;}else if(t==="backToPage"){var i=this._findClosestPreviousPageInfo(r);if(!i){L.error(this.toString()+": Cannot navigate backToPage('"+r+"') because target page was not found among the previous pages.");return this;}o=sap.ui.getCore().byId(i.id);if(!o){L.error(this.toString()+": Cannot navigate backToPage('"+r+"') because target page does not exist anymore.");return this;}e=i.data;}else{o=this.getPreviousPage();e=this._pageStack[this._pageStack.length-2].data;}if(!o){L.error("NavContainer back navigation: target page is not defined or not aggregated by this NavContainer. Aborting navigation.");return;}var j=o.getId();c=c||{};T=T||{};var n={from:F,fromId:F.getId(),to:o,toId:j,firstTime:!this._mVisitedPages[j],isTo:false,isBack:(t==="back"),isBackToPage:(t==="backToPage"),isBackToTop:(t==="backToTop"),direction:t,bFocusInsideFromPage:this._isFocusInControl(F)};var k=this.fireNavigate(n);if(k){a.closeKeyboard();var E=q.Event("BeforeHide",n);E.srcControl=this;F._handleEvent(E);if(!this._mVisitedPages[j]){E=q.Event("BeforeFirstShow",n);E.srcControl=this;E.backData=c||{};E.data={};o._handleEvent(E);}E=q.Event("BeforeShow",n);E.srcControl=this;E.backData=c||{};E.data=e||{};o._handleEvent(E);this._pageStack.pop();L.info(this.toString()+": navigating back to page "+o.toString());this._mVisitedPages[j]=true;if(t==="backToTop"){this._pageStack=[];L.info(this.toString()+": navigating back to top");this.getCurrentPage();}else if(t==="backToPage"){var p=[],l;while(this._pageStack[this._pageStack.length-1].id!==r){l=this._pageStack.pop();p.push(l.id);}L.info(this.toString()+": navigating back to specific page "+o.toString()+" across the pages: "+p.join(", "));}if(!this.getDomRef()){L.info("'Hidden' back navigation in not-rendered NavContainer "+this.toString());return this;}var m=b.transitions[d]||b.transitions["slide"];var s=this._iTransitionsCompleted;var v=this;window.setTimeout(function(){if(v&&(v._iTransitionsCompleted<s+1)){L.warning("Transition '"+d+"' 'back' was triggered five seconds ago, but has not yet invoked the end-of-transition callback.");}},g(5000));this._bNavigating=true;var w;if(!(w=o.getDomRef())||w.parentNode!=this.getDomRef()||R.isPreservedContent(w)){o.addStyleClass("sapMNavItemRendering");L.debug("Rendering 'to' page '"+o.toString()+"' for back navigation");var x=sap.ui.getCore().createRenderManager();var y=this.$().children().index(F.getDomRef());x.renderControl(o);x.flush(this.getDomRef(),false,y);x.destroy();o.addStyleClass("sapMNavItemHidden").removeStyleClass("sapMNavItemRendering");}if(F.getId()===o.getId()){L.info("Transition is skipped when navigating back to the same page instance"+o.toString());this._afterTransitionCallback(n,e,c);return this;}this._cacheTransitionInfo(d,b.TransitionDirection.BACK);m.back.call(this,F,o,q.proxy(function(){this._afterTransitionCallback(n,e,c);},this),T);}}return this;};b.prototype._findClosestPreviousPageInfo=function(r){for(var i=this._pageStack.length-2;i>=0;i--){var c=this._pageStack[i];if(c.id===r){return c;}}return null;};b.prototype._cacheTransitionInfo=function(t,T){this._sTransitionName=t;this._sTransitionDirection=T;};b.prototype._fadeTransition=function(f,t,c){this.oFromPage=f;this.oToPage=t;this.fCallback=c;this._fadeOutAnimation();};b.prototype._fadeOutAnimation=function(){var t=this,f=this.oFromPage,T=this.oToPage;T.addStyleClass("sapMNavItemTransparent");if(this._sTransitionName==="slide"){if(this._sTransitionDirection===b.TransitionDirection.TO){T.addStyleClass("sapMNavItemSlideLeft");f.addStyleClass("sapMNavItemSlideRight");}else{T.addStyleClass("sapMNavItemSlideRight");f.addStyleClass("sapMNavItemSlideLeft");}}T.removeStyleClass("sapMNavItemHidden");f.addStyleClass("sapMNavItemOpaque");window.setTimeout(function(){f.$().bind("webkitTransitionEnd transitionend",t._fadeOutAnimationEnd.bind(t));t.bTransition1EndPending=true;f.addStyleClass("sapMNavItemFading").removeStyleClass("sapMNavItemOpaque").addStyleClass("sapMNavItemTransparent");window.setTimeout(function(){if(t.bTransition1EndPending){t._fadeOutAnimationEnd();}},g(150));},g(10));};b.prototype._fadeOutAnimationEnd=function(e){var f=this.oFromPage;if(e&&e.originalEvent&&e.originalEvent.propertyName!=="opacity"){return;}this.bTransition1EndPending=false;q(f.$()).unbind("webkitTransitionEnd transitionend");f.removeStyleClass("sapMNavItemSlideLeft").removeStyleClass("sapMNavItemSlideRight");this._fadeInAnimation();};b.prototype._fadeInAnimation=function(){var t=this,T=this.oToPage;window.setTimeout(function(){T.$().bind("webkitTransitionEnd transitionend",t._fadeInAnimationEnd.bind(t));t.bTransition2EndPending=true;T.addStyleClass("sapMNavItemFading").removeStyleClass("sapMNavItemTransparent").addStyleClass("sapMNavItemOpaque");window.setTimeout(function(){if(t.bTransition2EndPending){t._fadeInAnimationEnd();}},g(150));},g(10));};b.prototype._fadeInAnimationEnd=function(e){var t=this.oToPage,f=this.oFromPage;if(e&&e.originalEvent&&e.originalEvent.propertyName!=="opacity"){return;}this.bTransition2EndPending=false;if(h(f)){f.addStyleClass("sapMNavItemHidden");f.removeStyleClass("sapMNavItemFading").removeStyleClass("sapMNavItemTransparent");}q(t.$()).unbind("webkitTransitionEnd transitionend");if(h(t)){t.removeStyleClass("sapMNavItemFading").removeStyleClass("sapMNavItemOpaque").removeStyleClass("sapMNavItemSlideLeft").removeStyleClass("sapMNavItemSlideRight");}this.fCallback();};b.transitions=b.transitions||{};b.transitions["show"]={to:function(f,t,c){t.removeStyleClass("sapMNavItemHidden");f&&f.addStyleClass("sapMNavItemHidden");c();},back:function(f,t,c){t.removeStyleClass("sapMNavItemHidden");f&&f.addStyleClass("sapMNavItemHidden");c();}};b.transitions["slide"]={to:b.prototype._fadeTransition,back:b.prototype._fadeTransition};b.transitions["fade"]={to:b.prototype._fadeTransition,back:b.prototype._fadeTransition};b.transitions["flip"]={to:function(f,t,c){var d=this;window.setTimeout(function(){d.$().addClass("sapMNavFlip");t.addStyleClass("sapMNavItemFlipNext");t.removeStyleClass("sapMNavItemHidden");window.setTimeout(function(){var o=false;var T=true;var A=null;A=function(){q(this).unbind("webkitTransitionEnd transitionend");if(!o){o=true;}else{T=false;if(h(t)){t.removeStyleClass("sapMNavItemFlipping");}if(h(f)){f.removeStyleClass("sapMNavItemFlipping").addStyleClass("sapMNavItemHidden").removeStyleClass("sapMNavItemFlipPrevious");}d.$().removeClass("sapMNavFlip");c();}};f.$().bind("webkitTransitionEnd transitionend",A);t.$().bind("webkitTransitionEnd transitionend",A);t.addStyleClass("sapMNavItemFlipping").removeStyleClass("sapMNavItemFlipNext");f.addStyleClass("sapMNavItemFlipping").addStyleClass("sapMNavItemFlipPrevious");window.setTimeout(function(){if(T){o=true;A.apply(f.$().add(t.$()));}},g(600));},g(60));},0);},back:function(f,t,c){var d=this;d.$().addClass("sapMNavFlip");t.addStyleClass("sapMNavItemFlipPrevious");t.removeStyleClass("sapMNavItemHidden");window.setTimeout(function(){var o=false;var T=true;var A=null;A=function(){q(this).unbind("webkitTransitionEnd transitionend");if(!o){o=true;}else{T=false;if(h(t)){t.removeStyleClass("sapMNavItemFlipping");}if(h(f)){f.removeStyleClass("sapMNavItemFlipping").addStyleClass("sapMNavItemHidden").removeStyleClass("sapMNavItemFlipNext");}d.$().removeClass("sapMNavFlip");c();}};f.$().bind("webkitTransitionEnd transitionend",A);t.$().bind("webkitTransitionEnd transitionend",A);t.addStyleClass("sapMNavItemFlipping").removeStyleClass("sapMNavItemFlipPrevious");f.addStyleClass("sapMNavItemFlipping").addStyleClass("sapMNavItemFlipNext");window.setTimeout(function(){if(T){o=true;A.apply(f.$().add(t.$()));}},g(600));},g(60));}};b.transitions["door"]={to:function(f,t,c){var d=this;window.setTimeout(function(){d.$().addClass("sapMNavDoor");t.addStyleClass("sapMNavItemDoorInNext");t.removeStyleClass("sapMNavItemHidden");window.setTimeout(function(){var o=false;var T=true;var A=null;A=function(){q(this).unbind("webkitAnimationEnd animationend");if(!o){o=true;}else{T=false;if(h(t)){t.removeStyleClass("sapMNavItemDooring").removeStyleClass("sapMNavItemDoorInNext");}if(h(f)){f.removeStyleClass("sapMNavItemDooring").addStyleClass("sapMNavItemHidden").removeStyleClass("sapMNavItemDoorInPrevious");}d.$().removeClass("sapMNavDoor");c();}};f.$().bind("webkitAnimationEnd animationend",A);t.$().bind("webkitAnimationEnd animationend",A);t.addStyleClass("sapMNavItemDooring");f.addStyleClass("sapMNavItemDooring").addStyleClass("sapMNavItemDoorInPrevious");window.setTimeout(function(){if(T){o=true;A.apply(f.$().add(t.$()));}},g(1000));},g(60));},0);},back:function(f,t,c){var d=this;d.$().addClass("sapMNavDoor");t.addStyleClass("sapMNavItemDoorOutNext");t.removeStyleClass("sapMNavItemHidden");window.setTimeout(function(){var o=false;var T=true;var A=null;A=function(){q(this).unbind("webkitAnimationEnd animationend");if(!o){o=true;}else{T=false;if(h(t)){t.removeStyleClass("sapMNavItemDooring").removeStyleClass("sapMNavItemDoorOutNext");}if(h(f)){f.removeStyleClass("sapMNavItemDooring").addStyleClass("sapMNavItemHidden").removeStyleClass("sapMNavItemDoorOutPrevious");}d.$().removeClass("sapMNavDoor");c();}};f.$().bind("webkitAnimationEnd animationend",A);t.$().bind("webkitAnimationEnd animationend",A);t.addStyleClass("sapMNavItemDooring");f.addStyleClass("sapMNavItemDooring").addStyleClass("sapMNavItemDoorOutPrevious");window.setTimeout(function(){if(T){o=true;A.apply(f.$().add(t.$()));}},g(1000));},g(60));}};b.prototype.addCustomTransition=function(n,t,B){if(b.transitions[n]){L.warning("Transition with name "+n+" already exists in "+this+". It is now being replaced by custom transition.");}b.transitions[n]={to:t,back:B};return this;};b.addCustomTransition=b.prototype.addCustomTransition;b.prototype.forceInvalidation=b.prototype.invalidate;b.prototype.invalidate=function(s){if(s==this){}else if(!s){this.forceInvalidation();}else if(s instanceof C){var I=false,p=this.getPages(),l=p.length;for(var i=0;i<l;i++){if(p[i]===s){I=true;break;}}if((!I||s===this.getCurrentPage())&&!this._isInsideAPopup()){this.forceInvalidation();}}else{this.forceInvalidation();}};b.prototype._isInsideAPopup=function(){var s;s=function(c){if(!c){return false;}if(c.getMetadata().isInstanceOf("sap.ui.core.PopupInterface")){return true;}return s(c.getParent());};return s(this);};b.prototype.removePage=function(p){var P;if(typeof(p)=="number"){P=this.getPages()[p];}else if(typeof(p)=="string"){P=sap.ui.getCore().byId(p);}else{P=p;}P=this.removeAggregation("pages",P,P!==this.getCurrentPage());this._onPageRemoved(P);return P;};b.prototype._onPageRemoved=function(p){if(!p){return;}p.$().remove();p.removeStyleClass("sapMNavItemHidden");p.removeStyleClass("sapMNavItem");var s=this._ensurePageStackInitialized();this._pageStack=s.filter(function(P){return p.getId()!==P.id;});};b.prototype.removeAllPages=function(){var p=this.getPages();if(!p){return[];}for(var i=0;i<p.length;i++){this._onPageRemoved(p[i]);}return this.removeAllAggregation("pages");};b.prototype.addPage=function(p){var P=this.getPages();if(P.indexOf(p)>-1){return this;}this.addAggregation("pages",p,true);p.addStyleClass("sapMNavItem");var i=P.length;if(i===0&&this.getPages().length===1){this._fireAdaptableContentChange(p);if(this.getDomRef()){this._ensurePageStackInitialized();this.rerender();}}return this;};b.prototype.insertPage=function(p,i){var P=this.getPages().length;this.insertAggregation("pages",p,i,true);p.addStyleClass("sapMNavItem");if(P===0&&this.getPages().length===1){this._fireAdaptableContentChange(p);if(this.getDomRef()){this._ensurePageStackInitialized();this.rerender();}}return this;};b.prototype._getAdaptableContent=function(){return this.getCurrentPage();};b.prototype._fireAdaptableContentChange=function(p){if(p&&this.mEventRegistry["_adaptableContentChange"]){this.fireEvent("_adaptableContentChange",{"parent":this,"adaptableContent":p});}};return b;});
sap.ui.predefine('sap/m/NavContainerRenderer',[],function(){"use strict";var N={apiVersion:2};N.render=function(r,c){c._bRenderingInProgress=true;if(!c.getVisible()){return;}var h=c.getHeight(),t=c.getTooltip_AsString(),C=c.getCurrentPage();r.openStart("div",c);r.class("sapMNav");r.style("width",c.getWidth());if(h&&h!="100%"){r.style("height",h);}if(this.renderAttributes){this.renderAttributes(r,c);}if(t){r.attr("title",t);}r.openEnd();if(this.renderBeforeContent){this.renderBeforeContent(r,c);}if(C){C.removeStyleClass("sapMNavItemHidden");r.renderControl(C);}r.close("div");c._bRenderingInProgress=false;};return N;},true);
sap.ui.predefine('sap/m/NotificationListBase',['./library','sap/ui/core/Control','./ListItemBase','./Text','./Image','./OverflowToolbar','sap/ui/core/Icon','sap/ui/core/library','sap/ui/core/Element'],function(l,C,L,T,I,O,a,c,E){'use strict';var P=c.Priority;var N=L.extend('sap.m.NotificationListBase',{metadata:{library:'sap.m',properties:{priority:{type:'sap.ui.core.Priority',group:'Appearance',defaultValue:P.None},title:{type:'string',group:'Appearance',defaultValue:''},datetime:{type:'string',group:'Appearance',defaultValue:''},showButtons:{type:'boolean',group:'Behavior',defaultValue:true},showCloseButton:{type:'boolean',group:'Behavior',defaultValue:true},authorName:{type:'string',group:'Appearance',defaultValue:''},authorPicture:{type:'sap.ui.core.URI',multiple:false}},aggregations:{buttons:{type:'sap.m.Button',multiple:true},_headerTitle:{type:'sap.m.Text',multiple:false,visibility:"hidden"},_dateTime:{type:'sap.m.Text',multiple:false,visibility:'hidden'},_authorName:{type:'sap.m.Text',multiple:false,visibility:"hidden"},_authorImage:{type:'sap.ui.core.Control',multiple:false,visibility:"hidden"},_overflowToolbar:{type:'sap.m.OverflowToolbar',multiple:false,visibility:"hidden"},_closeButton:{type:'sap.m.Button',multiple:false,visibility:"hidden"},_collapseButton:{type:'sap.m.Button',multiple:false,visibility:"hidden"}},events:{close:{}}}});N.prototype.init=function(){this.setAggregation('_overflowToolbar',new O());};N.prototype.setTitle=function(t){var r=this.setProperty('title',t);this._getHeaderTitle().setText(t);return r;};N.prototype.setDatetime=function(d){var r=this.setProperty('datetime',d);this._getDateTimeText().setText(d);return r;};N.prototype.setAuthorName=function(b){var r=this.setProperty('authorName',b);this._getAuthorName().setText(b);return r;};N.prototype.close=function(){var p=this.getParent();this.fireClose();var h=!!this.getParent();if(!h&&p&&p instanceof E){var d={onAfterRendering:function(){p.focus();p.removeEventDelegate(d);}};p.addEventDelegate(d);}};N.prototype.clone=function(){var b=C.prototype.clone.apply(this,arguments);b.destroyAggregation('_overflowToolbar');var o=this.getAggregation('_overflowToolbar');b.setAggregation("_overflowToolbar",o.clone(),true);return b;};N.getMetadata().forwardAggregation("buttons",{getter:function(){return this.getAggregation('_overflowToolbar');},aggregation:"content",forwardBinding:true});N.prototype._getHeaderTitle=function(){var t=this.getAggregation("_headerTitle");if(!t){t=new T({id:this.getId()+'-title',text:this.getTitle(),maxLines:2});this.setAggregation("_headerTitle",t,true);}return t;};N.prototype._getDateTimeText=function(){var d=this.getAggregation('_dateTime');if(!d){d=new T({id:this.getId()+'-datetime',text:this.getDatetime()}).addStyleClass('sapMNLI-Datetime');this.setAggregation('_dateTime',d,true);}return d;};N.prototype._getAuthorName=function(){var b=this.getAggregation('_authorName');if(!b){b=new T({text:this.getAuthorName()}).addStyleClass('sapMNLI-Text');this.setAggregation('_authorName',b,true);}return b;};N.prototype._getAuthorImage=function(){var b=this.getAggregation('_authorImage');if(!b){var d=this.getAuthorPicture();var e=this.getAuthorName();if(i(d)){b=new a({src:d,alt:e});}else{b=new I({src:d,alt:e});}this.setAggregation('_authorImage',b,true);}return b;};N.prototype._getToolbar=function(){var t=this.getAggregation("_overflowToolbar");if(!t){t=new O();this.setAggregation("_overflowToolbar",t,true);}return t;};function i(s){if(!s){return false;}var r=window.URI.parse(s);return(r.protocol&&r.protocol=='sap-icon');}return N;});
sap.ui.predefine('sap/m/NotificationListItem',['./library','sap/ui/Device','./NotificationListBase','sap/ui/core/InvisibleText','sap/ui/core/IconPool','sap/ui/core/ResizeHandler','sap/m/Button','sap/m/Text','./NotificationListItemRenderer'],function(l,D,N,I,a,R,B,T,b){'use strict';var c=l.ButtonType;var d=N.extend('sap.m.NotificationListItem',{metadata:{library:'sap.m',properties:{description:{type:'string',group:'Appearance',defaultValue:''},truncate:{type:'boolean',group:'Appearance',defaultValue:true},hideShowMoreButton:{type:'boolean',group:'Appearance',defaultValue:false}},aggregations:{processingMessage:{type:'sap.m.MessageStrip',multiple:false},_bodyText:{type:'sap.m.Text',multiple:false,visibility:"hidden"}}}});d.prototype.init=function(){N.prototype.init.call(this);var r=sap.ui.getCore().getLibraryResourceBundle('sap.m');this._expandText=r.getText('NOTIFICATION_LIST_ITEM_SHOW_MORE');this._collapseText=r.getText('NOTIFICATION_LIST_ITEM_SHOW_LESS');this._closeText=r.getText('NOTIFICATION_LIST_BASE_CLOSE');this.setType('Active');var _=new B(this.getId()+'-closeButton',{type:c.Transparent,icon:a.getIconURI('decline'),tooltip:this._closeText,press:function(){this.close();}.bind(this)});this.setAggregation("_closeButton",_,true);var e=new B({type:c.Transparent,text:this.getTruncate()?this._expandText:this._collapseText,id:this.getId()+'-expandCollapseButton',press:function(){this._deregisterResize();this.setProperty("truncate",!this.getTruncate(),true);e.setText(this.getTruncate()?this._expandText:this._collapseText);this.$().find('.sapMNLI-Header').toggleClass('sapMNLI-TitleWrapper--is-expanded');this.$().find('.sapMNLI-TextWrapper').toggleClass('sapMNLI-TextWrapper--is-expanded',!!this.getDescription());this._registerResize();}.bind(this)});e.addEventDelegate({onfocusin:function(){this.getDomRef().setAttribute("aria-hidden",true);},onfocusout:function(){this.getDomRef().setAttribute("aria-hidden",false);}},this);this.setAggregation("_collapseButton",e,true);this._ariaDetailsText=new I({id:this.getId()+'-info'}).toStatic();};d.prototype.setDescription=function(e){var r=this.setProperty('description',e);this._getDescriptionText().setText(e);return r;};d.prototype.setDatetime=function(e){var r=N.prototype.setDatetime.call(this,e);this._updateAriaAdditionalInfo();return r;};d.prototype.setUnread=function(u){var r=this.setProperty('unread',u,true);var t=this.getAggregation('_headerTitle');if(t){t.toggleStyleClass('sapMNLI-Unread',this.getUnread());}return r;};d.prototype.setPriority=function(p,s){var r=this.setProperty('priority',p,s);this._updateAriaAdditionalInfo();return r;};d.prototype.setAuthorPicture=function(e,s){var r=this.setProperty('authorPicture',e,s);this._getAuthorImage().setSrc(e);return r;};d.prototype.onBeforeRendering=function(){this._updateAriaAdditionalInfo();this._deregisterResize();};d.prototype.onAfterRendering=function(){this._registerResize();};d.prototype.onfocusin=function(e){N.prototype.onfocusin.apply(this,arguments);if(!D.browser.msie){return;}var t=e.target;if(t!==this.getDomRef()&&!t.classList.contains('sapMBtn')){e.preventDefault();e.stopImmediatePropagation();this.focus();}};d.prototype.exit=function(){this._deregisterResize();if(this._ariaDetailsText){this._ariaDetailsText.destroy();this._ariaDetailsText=null;}};d.prototype._getDescriptionText=function(){var e=this.getAggregation('_bodyText');if(!e){e=new T({id:this.getId()+'-body',text:this.getDescription(),maxLines:2}).addStyleClass('sapMNLI-Text');this.setAggregation("_bodyText",e,true);}return e;};d.prototype._activeHandling=function(){this.$().toggleClass("sapMNLIActive",this._active);};d.prototype._updateAriaAdditionalInfo=function(){var r=sap.ui.getCore().getLibraryResourceBundle('sap.m');var e=this.getUnread()?r.getText('NOTIFICATION_LIST_ITEM_UNREAD'):r.getText('NOTIFICATION_LIST_ITEM_READ');var f=r.getText('NOTIFICATION_LIST_ITEM_DATETIME_PRIORITY',[this.getDatetime(),this.getPriority()]);var g=this.getAuthorName();var h=e+' ';if(g){h+=r.getText('NOTIFICATION_LIST_ITEM_CREATED_BY')+' '+this.getAuthorName()+' ';}h+=f;this._ariaDetailsText.setText(h);};d.prototype._canTruncate=function(){var t=this.getDomRef('title-inner').scrollHeight,i=this.$('title').parent().height();if(t>i){return true;}if(this.getDomRef('body-inner')){var e=this.getDomRef('body-inner').scrollHeight,f=this.$('body').parent().height();if(e>f){return true;}}return false;};d.prototype._showHideTruncateButton=function(){var n=this.getDomRef(),C=sap.ui.getCore(),h,t,o;if(!n){return;}h=n.querySelector('.sapMNLI-Header');t=n.querySelector('.sapMNLI-TextWrapper');o=this.getDomRef('expandCollapseButton');if(this._canTruncate()&&(!this.getHideShowMoreButton())){if(o){o.classList.remove('sapMNLI-CollapseButtonHide');}if(this.getTruncate()){this.getAggregation('_collapseButton').setText(this._expandText);if(h){h.classList.remove('sapMNLI-TitleWrapper--is-expanded');}if(this.getDescription()&&t){t.classList.remove('sapMNLI-TextWrapper--is-expanded');}}else{this.getAggregation('_collapseButton').setText(this._collapseText);this.$().find('.sapMNLI-TextWrapper').toggleClass('sapMNLI-TextWrapper--is-expanded',!!this.getDescription());if(h){h.classList.add('sapMNLI-TitleWrapper--is-expanded');}}}else if(o){o.classList.add('sapMNLI-CollapseButtonHide');}if(this.getDescription()&&t){t.classList.remove('sapMNLI-TextWrapper--initial-overwrite');}if(this.getTitle()&&h){h.classList.remove('sapMNLI-TitleWrapper--initial-overwrite');}C.detachThemeChanged(this._showHideTruncateButton,this);};d.prototype._deregisterResize=function(){if(this._sNotificationResizeHandler){R.deregister(this._sNotificationResizeHandler);this._sNotificationResizeHandler=null;}};d.prototype._registerResize=function(){var t=this;var n=this.getDomRef();if(!n){return;}t._resizeNotification();this._sNotificationResizeHandler=R.register(n,function(){t._resizeNotification();});};d.prototype._resizeNotification=function(){var n=this.getDomRef(),o=n.querySelector('.sapMNLI-TextWrapper'),h=n.querySelector('.sapMNLI-Header'),e=sap.ui.getCore();if(n.offsetWidth>=640){n.classList.add('sapMNLI-LSize');}else{n.classList.remove('sapMNLI-LSize');}if(o){o.classList.remove('sapMNLI-TextWrapper--is-expanded');o.classList.add('sapMNLI-TextWrapper--initial-overwrite');}h.classList.remove('sapMNLI-TitleWrapper--is-expanded');h.classList.add('sapMNLI-TitleWrapper--initial-overwrite');if(e.isThemeApplied()){this._showHideTruncateButton();}else{e.attachThemeChanged(this._showHideTruncateButton,this);}};return d;});
sap.ui.predefine('sap/m/NotificationListItemRenderer',["sap/ui/core/library","sap/ui/core/InvisibleRenderer"],function(c,I){'use strict';var P=c.Priority;var N={};var a='sapMNLI';var b='sapMNLB';var d='sapMNLI-TextWrapper';var e='sapMLIB';var f='sapMNLB-AuthorPicture';var g='sapMNLB-Priority';var h='sapMNLB-Header';var i='sapMNLI-Header';var j='sapMNLI-Body';var k='sapMNLI-Description';var l='sapMNLI-Details';var m='sapMNLB-Bullet';var n='sapMNLB-Footer';var o='sapMNLI-Footer';var p='sapMNLI-No-Footer';var q='sapMNLB-CloseButton';var r='sapMNLI-CollapseButton';var s='sapMNLI-TitleWrapper--initial-overwrite';var t='sapMNLI-TextWrapper--initial-overwrite';N.render=function(R,C){if(C.getVisible()){var v=C.getId();var w=(v+'-title')+' '+(v+'-body')+' '+(v+'-info');R.write('<li');R.addClass(a);R.addClass(b);R.addClass(e);R.writeControlData(C);R.writeAttribute('tabindex','0');R.writeAccessibilityState(C,{role:"option",labelledby:w});R.writeClasses();R.write('>');this.renderCloseButton(R,C);this.renderPriorityArea(R,C);this.renderMessageStrip(R,C);this.renderHeader(R,C);this.renderBody(R,C);this.renderFooter(R,C);R.write('</li>');}else{this.renderInvisibleItem(R,C);}};N.renderPriorityArea=function(R,C){R.write('<div');var v='';switch(C.getPriority()){case(P.Low):v='sapMNLB-Low';break;case(P.Medium):v='sapMNLB-Medium';break;case(P.High):v='sapMNLB-High';break;default:v='sapMNLB-None';break;}R.addClass(g);R.addClass(v);R.writeClasses();R.write('>');R.write('</div>');};N.renderMessageStrip=function(R,C){R.renderControl(C.getProcessingMessage());};N.renderAuthorPicture=function(R,C){if(!C.getAuthorPicture()){return;}R.write('<div');R.addClass(f);R.writeClasses();R.write('>');R.renderControl(C._getAuthorImage());R.write('</div>');};N.renderCloseButton=function(R,C){if(C.getShowCloseButton()){R.renderControl(C.getAggregation('_closeButton').addStyleClass(q));}};N.renderCollapseButton=function(R,C){R.renderControl(C.getAggregation('_collapseButton').addStyleClass(r));};N.renderHeader=function(R,C){R.write('<div');R.addClass(h);R.addClass(i);R.addClass(s);if(u(C)){R.addClass(p);}R.writeClasses();R.write('>');this.renderTitle(R,C);R.write('</div>');};N.renderTitle=function(R,C){R.renderControl(C._getHeaderTitle());};N.renderBody=function(R,C){if(!C._getDescriptionText().getText()&&!C.getAuthorName()&&!C.getDatetime()&&!C.getAuthorPicture()){return;}R.write('<div');R.addClass(j);if(u(C)){R.addClass(p);}R.writeClasses();R.write('>');this.renderAuthorPicture(R,C);R.write('<div class='+k+'>');this.renderDescription(R,C);this.renderDetails(R,C);R.write('</div>');this.renderAriaText(R,C);R.write('</div>');};N.renderDescription=function(R,C){if(!C._getDescriptionText().getText()){return;}R.write('<div');R.addClass(d);R.addClass(t);R.writeClasses();R.write('>');R.renderControl(C._getDescriptionText());R.write('</div>');};N.renderDetails=function(R,C){if(!C.getAuthorName()&&!C.getDatetime()){return;}R.write('<div class="'+l+'">');this.renderAuthorName(R,C);if(C.getAuthorName()){R.write('<span class="'+m+'">&#x00B7</span>');}this.renderDatetime(R,C);R.write('</div>');};N.renderDatetime=function(R,C){R.renderControl(C._getDateTimeText());};N.renderAuthorName=function(R,C){R.renderControl(C._getAuthorName());};N.renderAriaText=function(R,C){R.renderControl(C._ariaDetailsText);};N.renderFooter=function(R,C){var B=C.getButtons();R.write('<div');R.addClass(o);R.addClass(n);R.writeClasses();R.write('>');this.renderCollapseButton(R,C);if(B&&B.length&&C.getShowButtons()){R.renderControl(C.getAggregation('_overflowToolbar'));}R.write('</div>');};N.renderInvisibleItem=function(R,C){I.render(R,C,"li");};function u(C){return C.getHideShowMoreButton()&&(!C.getShowButtons()||!C.getButtons());}return N;},true);
sap.ui.predefine('sap/m/NumericContent',["./library","sap/ui/core/Control","sap/ui/core/IconPool","sap/ui/core/ResizeHandler","sap/m/Image","./NumericContentRenderer","sap/ui/events/KeyCodes","sap/base/util/deepEqual"],function(l,C,I,R,a,N,K,d){"use strict";var L={"ar":4,"ar_eg":4,"ar_sa":4,"bg":4,"ca":6,"cs":4,"da":4,"de":8,"de_at":8,"de_ch":8,"el":4,"el_cy":4,"en":4,"en_au":4,"en_gb":4,"en_hk":4,"en_ie":4,"en_in":4,"en_nz":4,"en_pg":4,"en_sg":4,"en_us":4,"en_za":4,"es":6,"es_ar":4,"es_bo":4,"es_cl":4,"es_co":4,"es_mx":6,"es_pe":4,"es_uy":4,"es_ve":4,"et":4,"fa":4,"fi":4,"fr":4,"fr_be":4,"fr_ca":4,"fr_ch":4,"fr_lu":4,"he":4,"hi":4,"hr":4,"hu":4,"id":4,"it":8,"it_ch":8,"ja":6,"kk":4,"ko":6,"lt":4,"lv":4,"ms":4,"nb":4,"nl":4,"nl_be":4,"pl":4,"pt":4,"pt_pt":4,"ro":4,"ru":4,"ru_ua":4,"sk":4,"sl":4,"sr":4,"sv":4,"th":4,"tr":4,"uk":4,"vi":4,"zh_cn":6,"zh_hk":6,"zh_sg":6,"zh_tw":6};var b=C.extend("sap.m.NumericContent",{metadata:{library:"sap.m",properties:{"animateTextChange":{type:"boolean",group:"Behavior",defaultValue:true},"formatterValue":{type:"boolean",group:"Data",defaultValue:false},"icon":{type:"sap.ui.core.URI",group:"Appearance",defaultValue:null},"iconDescription":{type:"string",group:"Accessibility",defaultValue:null},"indicator":{type:"sap.m.DeviationIndicator",group:"Appearance",defaultValue:"None"},"nullifyValue":{type:"boolean",group:"Behavior",defaultValue:true},"scale":{type:"string",group:"Appearance",defaultValue:null},"size":{type:"sap.m.Size",group:"Appearance",defaultValue:"Auto"},"truncateValueTo":{type:"int",group:"Appearance"},"value":{type:"string",group:"Data",defaultValue:null},"valueColor":{type:"sap.m.ValueColor",group:"Appearance",defaultValue:"Neutral"},"width":{type:"sap.ui.core.CSSSize",group:"Appearance",defaultValue:null},"withMargin":{type:"boolean",group:"Appearance",defaultValue:true},"state":{type:"sap.m.LoadState",group:"Behavior",defaultValue:"Loaded"}},events:{"press":{}}}});b.prototype.init=function(){this._rb=sap.ui.getCore().getLibraryResourceBundle("sap.m");this.setTooltip("{AltText}");sap.ui.getCore().attachInit(this._registerResizeHandler.bind(this));};b.prototype._getParentTile=function(){var p=this.getParent();while(p){if(p.isA("sap.m.GenericTile")){return p;}p=p.getParent();}return null;};b.prototype._getMaxDigitsData=function(){var m=null,f=null,s=sap.ui.getCore().getConfiguration().getLanguage().toLowerCase();m=L[s]||4;switch(m){case 6:f="sapMNCMediumFontSize";break;case 8:f="sapMNCSmallFontSize";break;default:f="sapMNCLargeFontSize";break;}return{fontClass:f,maxLength:m};};b.prototype._registerResizeHandler=function(){R.register(this,this.invalidate.bind(this));};b.prototype.onBeforeRendering=function(){this.$().unbind("mouseenter");this.$().unbind("mouseleave");this._iMaxLength=null;};b.prototype.onAfterRendering=function(){this.$().bind("mouseenter",this._addTooltip.bind(this));this.$().bind("mouseleave",this._removeTooltip.bind(this));if(!sap.ui.getCore().isThemeApplied()){sap.ui.getCore().attachThemeChanged(this._checkIfIconFits,this);}else{this._checkIfIconFits();}};b.prototype._addTooltip=function(){this.$().attr("title",this.getTooltip_AsString());};b.prototype._checkIfIconFits=function(){var p=this._getParentTile();if(p&&(p.isA("sap.m.GenericTile")||p.isA("sap.m.SlideTile"))){p._setupResizeClassHandler();}var $=this.$("icon-image"),c=this.$("value-inner"),e=this.$("value-scr");var s=$.outerWidth()+c.width(),w=e.width();s>w?$.hide():$.show();};b.prototype._removeTooltip=function(){this.$().attr("title",null);};b.prototype.exit=function(){if(this._oIcon){this._oIcon.destroy();}};b.prototype.getAltText=function(){var v=this.getValue();var s=this.getScale();var e;var m=this._rb.getText(("SEMANTIC_COLOR_"+this.getValueColor()).toUpperCase());var A="";if(this.getNullifyValue()){e="0";}else{e="";}if(this.getIconDescription()){A=A.concat(this.getIconDescription());A=A.concat("\n");}if(v){A=A.concat(v+s);}else{A=A.concat(e);}A=A.concat("\n");if(this.getIndicator()&&this.getIndicator()!==l.DeviationIndicator.None){A=A.concat(this._rb.getText(("NUMERICCONTENT_DEVIATION_"+this.getIndicator()).toUpperCase()));A=A.concat("\n");}A=A.concat(m);return A;};b.prototype.getTooltip_AsString=function(){var t=this.getTooltip();var T=this.getAltText();if(typeof t==="string"||t instanceof String){T=t.split("{AltText}").join(T).split("((AltText))").join(T);return T;}if(t){return t;}else{return"";}};b.prototype.setIcon=function(u){var v=!d(this.getIcon(),u);if(v){if(this._oIcon){this._oIcon.destroy();this._oIcon=undefined;}if(u){this._oIcon=I.createControlByURI({id:this.getId()+"-icon-image",src:u},a);}}this._setPointerOnIcon();return this.setProperty("icon",u);};b.prototype._setPointerOnIcon=function(){if(this._oIcon&&this.hasListeners("press")){this._oIcon.addStyleClass("sapMPointer");}else if(this._oIcon&&this._oIcon.hasStyleClass("sapMPointer")){this._oIcon.removeStyleClass("sapMPointer");}};b.prototype.ontap=function(e){this.$().focus();this.firePress();e.preventDefault();};b.prototype.onkeyup=function(e){if(e.which===K.ENTER||e.which===K.SPACE){this.firePress();e.preventDefault();}};b.prototype.onkeydown=function(e){if(e.which===K.SPACE){e.preventDefault();}};b.prototype.attachEvent=function(e,c,f,g){C.prototype.attachEvent.call(this,e,c,f,g);if(this.hasListeners("press")){this.$().attr("tabindex",0).addClass("sapMPointer");this._setPointerOnIcon();}return this;};b.prototype.detachEvent=function(e,f,c){C.prototype.detachEvent.call(this,e,f,c);if(!this.hasListeners("press")){this.$().removeAttr("tabindex").removeClass("sapMPointer");this._setPointerOnIcon();}return this;};b.prototype._parseFormattedValue=function(v){var t=v.replace(String.fromCharCode(8206),"").replace(String.fromCharCode(8207),"");var V=t.match(/([+-.−, \d]*)/g)||[];var s=t.match(/[^+-.−, \d]/g)||[];return{value:V.reduce(function(c,e){return c+e;},'').trim(),scale:s.reduce(function(c,e){return c+e;},'').trim()};};return b;});
sap.ui.predefine('sap/m/OverflowToolbar',["./library","sap/m/ToggleButton","sap/ui/core/InvisibleText","sap/m/Toolbar","sap/m/ToolbarSpacer","sap/m/OverflowToolbarLayoutData","sap/m/OverflowToolbarAssociativePopover","sap/m/OverflowToolbarAssociativePopoverControls",'sap/ui/core/ResizeHandler',"sap/ui/core/IconPool",'sap/ui/core/theming/Parameters','sap/ui/dom/units/Rem',"sap/ui/Device","./OverflowToolbarRenderer","sap/base/Log","sap/ui/dom/jquery/Focusable"],function(l,T,I,a,b,O,c,d,R,e,P,D,f,g,L){"use strict";var h=l.PlacementType;var B=l.ButtonType;var j=l.OverflowToolbarPriority;var k=a.extend("sap.m.OverflowToolbar",{metadata:{properties:{asyncMode:{type:"boolean",group:"Behavior",defaultValue:false}},aggregations:{_overflowButton:{type:"sap.m.ToggleButton",multiple:false,visibility:"hidden"},_popover:{type:"sap.m.Popover",multiple:false,visibility:"hidden"}},designtime:"sap/m/designtime/OverflowToolbar.designtime"}});k.prototype._callToolbarMethod=function(F,A){return a.prototype[F].apply(this,A);};k.prototype.init=function(){this._callToolbarMethod("init",arguments);this._iPreviousToolbarWidth=null;this._bOverflowButtonNeeded=false;this._bNestedInAPopover=null;this._bListenForControlPropertyChanges=false;this._bListenForInvalidationEvents=false;this._bControlsInfoCached=false;this._bSkipOptimization=false;this._bHasFlexibleContent=false;this._aControlSizes={};this._iFrameRequest=null;this._aMovableControls=[];this._aToolbarOnlyControls=[];this._aPopoverOnlyControls=[];this._aAllCollections=[this._aMovableControls,this._aToolbarOnlyControls,this._aPopoverOnlyControls];};k.prototype.exit=function(){var p=this.getAggregation("_popover");if(p){p.destroy();}if(this._iFrameRequest){window.cancelAnimationFrame(this._iFrameRequest);this._iFrameRequest=null;}};k.prototype.setAsyncMode=function(v){return this.setProperty("asyncMode",v,true);};k.prototype.onAfterRendering=function(){this._getOverflowButton().$().attr("aria-haspopup","true");if(this._bContentVisibilityChanged){this._bControlsInfoCached=false;this._bContentVisibilityChanged=false;}if(this.getAsyncMode()){this._doLayoutAsync().then(this._applyFocus.bind(this));}else{this._doLayout();this._applyFocus();}};k.prototype.onsapfocusleave=function(){this._resetChildControlFocusInfo();};k.prototype._doLayout=function(){var C=sap.ui.getCore(),w;if(!C.isThemeApplied()){L.debug("OverflowToolbar: theme not applied yet, skipping calculations",this);return;}w=this.$().width();this._bListenForControlPropertyChanges=false;this._bListenForInvalidationEvents=false;this._deregisterToolbarResize();if(w>0){if(!this._isControlsInfoCached()){this._cacheControlsInfo();}if(this._iPreviousToolbarWidth!==w){this._iPreviousToolbarWidth=w;this._setControlsOverflowAndShrinking(w);this.fireEvent("_controlWidthChanged");}}this._registerToolbarResize();this._bListenForControlPropertyChanges=true;this._bListenForInvalidationEvents=true;};k.prototype._doLayoutAsync=function(){return new Promise(function(r,i){this._iFrameRequest=window.requestAnimationFrame(function(){this._doLayout();r();}.bind(this));}.bind(this));};k.prototype._applyFocus=function(){var F,$,i=this.$().lastFocusableDomRef();if(this.sFocusedChildControlId){F=sap.ui.getCore().byId(this.sFocusedChildControlId);$=F&&F.$();}if($&&$.length){$.focus();}else if(this._bControlWasFocused){this._getOverflowButton().focus();this._bControlWasFocused=false;this._bOverflowButtonWasFocused=true;}else if(this._bOverflowButtonWasFocused&&!this._getOverflowButtonNeeded()){i&&i.focus();this._bOverflowButtonWasFocused=false;}};k.prototype._preserveChildControlFocusInfo=function(){var A=sap.ui.getCore().getCurrentFocusedControlId();if(this._getControlsIds().indexOf(A)!==-1){this._bControlWasFocused=true;this.sFocusedChildControlId=A;}else if(A===this._getOverflowButton().getId()){this._bOverflowButtonWasFocused=true;this.sFocusedChildControlId="";}};k.prototype._resetChildControlFocusInfo=function(){this._bControlWasFocused=false;this._bOverflowButtonWasFocused=false;this.sFocusedChildControlId="";};k.prototype._registerToolbarResize=function(){if(a.isRelativeWidth(this.getWidth())){var r=this._handleResize.bind(this);this._sResizeListenerId=R.register(this,r);}};k.prototype._deregisterToolbarResize=function(){if(this._sResizeListenerId){R.deregister(this._sResizeListenerId);this._sResizeListenerId="";}};k.prototype._handleResize=function(){if(this.getAsyncMode()){this._doLayoutAsync();}else{this._doLayout();}};k.prototype._cacheControlsInfo=function(){var v,H;this._iOldContentSize=this._iContentSize;this._iContentSize=0;this._bHasFlexibleContent=false;this.getContent().forEach(this._updateControlsCachedSizes,this);if(f.system.phone){this._iContentSize-=1;}if(this._aPopoverOnlyControls.length){v=this._aPopoverOnlyControls.filter(function(C){return C.getVisible();});H=(v.length>0);if(H){this._iContentSize+=this._getOverflowButtonSize();}}this._bControlsInfoCached=true;if(this._iOldContentSize!==this._iContentSize){this.fireEvent("_contentSizeChange",{contentSize:this._iContentSize,invalidate:this._bHasFlexibleContent});}};k.prototype._updateControlsCachedSizes=function(C){var p,i;p=k._getControlPriority(C);i=this._calculateControlSize(C);this._aControlSizes[C.getId()]=i;if(p!==j.AlwaysOverflow){this._iContentSize+=i;}this._bHasFlexibleContent=this._bHasFlexibleContent||C.isA("sap.m.IOverflowToolbarFlexibleContent");};k.prototype._calculateControlSize=function(C){return this._getOptimalControlWidth(C,this._aControlSizes[C.getId()]);};k.prototype._isControlsInfoCached=function(){return this._bControlsInfoCached;};k.prototype._flushButtonsToPopover=function(){this._aButtonsToMoveToPopover.forEach(this._moveButtonToPopover,this);};k.prototype._invalidateIfHashChanged=function(H){if(typeof H==="undefined"||this._getPopover()._getContentIdsHash()!==H){this._preserveChildControlFocusInfo();this.invalidate();}};k.prototype._addOverflowButton=function(){if(!this._getOverflowButtonNeeded()){this._iCurrentContentSize+=this._getOverflowButtonSize();this._setOverflowButtonNeeded(true);}};k.prototype._aggregateMovableControls=function(){var G={},A=[],C,p,s,i,m;this._aMovableControls.forEach(function(o){C=k._getControlGroup(o);p=k._oPriorityOrder;if(C){s=k._getControlPriority(o);i=this._getControlIndex(o);G[C]=G[C]||[];m=G[C];m.unshift(o);if(!m._priority||p[m._priority]<p[s]){m._priority=s;}if(!m._index||m._index<i){m._index=i;}}else{A.push(o);}},this);Object.keys(G).forEach(function(n){A.push(G[n]);});return A;};k.prototype._extractControlsToMoveToOverflow=function(A,t){var i,m;for(i=0;i<A.length;i++){m=A[i];if(m.length){m.forEach(this._addToPopoverArrAndUpdateContentSize,this);}else{this._addToPopoverArrAndUpdateContentSize(m);}if(k._getControlPriority(m)!==j.Disappear){this._addOverflowButton();}if(this._iCurrentContentSize<=t){break;}}};k.prototype._addToPopoverArrAndUpdateContentSize=function(C){this._aButtonsToMoveToPopover.unshift(C);this._iCurrentContentSize-=this._aControlSizes[C.getId()];};k.prototype._sortByPriorityAndIndex=function(C,v){var p=k._oPriorityOrder,s=k._getControlPriority(C),i=k._getControlPriority(v),m=p[s]-p[i];if(m!==0){return m;}else{return this._getControlIndex(v)-this._getControlIndex(C);}};k.prototype._setControlsOverflowAndShrinking=function(t){var i;this._iCurrentContentSize=this._iContentSize;this._aButtonsToMoveToPopover=[];if(this._bSkipOptimization){this._bSkipOptimization=false;}else{i=this._getPopover()._getContentIdsHash();}this._resetToolbar();this._collectPopoverOnlyControls();this._markControlsWithShrinkableLayoutData();if(this._iCurrentContentSize<=t){this._flushButtonsToPopover();this._invalidateIfHashChanged(i);return;}this._moveControlsToPopover(t);this._flushButtonsToPopover();if(this._iCurrentContentSize>t){this._checkContents();}this._invalidateIfHashChanged(i);};k.prototype._markControlsWithShrinkableLayoutData=function(){this.getContent().forEach(this._markControlWithShrinkableLayoutData,this);};k.prototype._collectPopoverOnlyControls=function(){var p=this._aPopoverOnlyControls.length,i,C;if(p){for(i=p-1;i>=0;i--){C=this._aPopoverOnlyControls[i];if(C.getVisible()){this._aButtonsToMoveToPopover.unshift(C);}}if(this._aButtonsToMoveToPopover.length>0){this._setOverflowButtonNeeded(true);}}};k.prototype._moveControlsToPopover=function(t){var A=[];if(this._aMovableControls.length){A=this._aggregateMovableControls();A.sort(this._sortByPriorityAndIndex.bind(this));this._extractControlsToMoveToOverflow(A,t);}};k.prototype._markControlWithShrinkableLayoutData=function(C){var w,o;C.removeStyleClass(a.shrinkClass);w=a.getOrigWidth(C.getId());if(!a.isRelativeWidth(w)){return;}o=C.getLayoutData();if(o&&o.isA("sap.m.ToolbarLayoutData")&&o.getShrinkable()){C.addStyleClass(a.shrinkClass);}};k.prototype._resetToolbar=function(){this._getPopover().close();this._getPopover()._getAllContent().forEach(this._restoreButtonInToolbar,this);this._setOverflowButtonNeeded(false);this.getContent().forEach(this._removeShrinkingClass);};k.prototype._removeShrinkingClass=function(C){C.removeStyleClass(a.shrinkClass);};k.prototype._moveButtonToPopover=function(o){this._getPopover().addAssociatedContent(o);};k.prototype._restoreButtonInToolbar=function(v){if(typeof v==="object"){v=v.getId();}this._getPopover().removeAssociatedContent(v);};k.prototype._resetAndInvalidateToolbar=function(H){if(this._bIsBeingDestroyed){return;}this._resetToolbar();this._bControlsInfoCached=false;this._bNestedInAPopover=null;this._iPreviousToolbarWidth=null;if(H){this._bSkipOptimization=true;}if(this.$().length){this._preserveChildControlFocusInfo();this.invalidate();}};k.prototype._getVisibleContent=function(){var t=this.getContent(),p=this._getPopover()._getAllContent();return t.filter(function(C){return p.indexOf(C)===-1;});};k.prototype._getVisibleAndNonOverflowContent=function(){return this._getVisibleContent().filter(function(C){return C.getVisible();});};k.prototype._getOverflowButton=function(){var o;if(!this.getAggregation("_overflowButton")){o=new T({id:this.getId()+"-overflowButton",icon:e.getIconURI("overflow"),press:this._overflowButtonPressed.bind(this),ariaLabelledBy:I.getStaticId("sap.ui.core","Icon.overflow"),type:B.Transparent});this.setAggregation("_overflowButton",o,true);}return this.getAggregation("_overflowButton");};k.prototype._overflowButtonPressed=function(E){var p=this._getPopover(),s=this._getBestPopoverPlacement();if(p.getPlacement()!==s){p.setPlacement(s);}if(p.isOpen()){p.close();}else{p.openBy(E.getSource());}};k.prototype._getPopover=function(){var p;if(!this.getAggregation("_popover")){p=new c(this.getId()+"-popover",{showHeader:false,showArrow:false,modal:false,horizontalScrolling:f.system.phone?false:true,contentWidth:f.system.phone?"100%":"auto",offsetY:this._detireminePopoverVerticalOffset(),ariaLabelledBy:I.getStaticId("sap.m","INPUT_AVALIABLE_VALUES")});p._adaptPositionParams=function(){c.prototype._adaptPositionParams.call(this);this._myPositions=["end top","begin center","end bottom","end center"];this._atPositions=["end bottom","end center","end top","begin center"];};if(f.system.phone){p.attachBeforeOpen(this._shiftPopupShadow,this);}p.attachAfterClose(this._popOverClosedHandler,this);this.setAggregation("_popover",p,true);}return this.getAggregation("_popover");};k.prototype._shiftPopupShadow=function(){var p=this._getPopover(),s=p.getCurrentPosition();if(s===h.Bottom){p.addStyleClass("sapMOTAPopoverNoShadowTop");p.removeStyleClass("sapMOTAPopoverNoShadowBottom");}else if(s===h.Top){p.addStyleClass("sapMOTAPopoverNoShadowBottom");p.removeStyleClass("sapMOTAPopoverNoShadowTop");}};k.prototype._popOverClosedHandler=function(){var w=f.os.windows_phone||f.browser.edge&&f.browser.mobile;this._getOverflowButton().setPressed(false);this._getOverflowButton().$().focus();if(this._isNestedInsideAPopup()||w){return;}this._getOverflowButton().setEnabled(false);setTimeout(function(){this._getOverflowButton().setEnabled(true);setTimeout(function(){this._getOverflowButton().$().focus();}.bind(this),0);}.bind(this),0);};k.prototype._isNestedInsideAPopup=function(){var s;if(this._bNestedInAPopover!==null){return this._bNestedInAPopover;}s=function(C){if(!C){return false;}if(C.getMetadata().isInstanceOf("sap.ui.core.PopupInterface")){return true;}return s(C.getParent());};this._bNestedInAPopover=s(this);return this._bNestedInAPopover;};k.prototype._getOverflowButtonNeeded=function(){return this._bOverflowButtonNeeded;};k.prototype._setOverflowButtonNeeded=function(v){if(this._bOverflowButtonNeeded!==v){this._bOverflowButtonNeeded=v;}return this;};k.prototype._getToolbarInteractiveControlsCount=function(){var i=this._getVisibleAndNonOverflowContent().filter(function(C){return k._getControlPriority(C)!==j.AlwaysOverflow&&C.isA("sap.m.IToolbarInteractiveControl")&&typeof(C._getToolbarInteractive)==="function"&&C._getToolbarInteractive();},this);return this._getOverflowButtonNeeded()?i.length+1:i.length;};k.prototype._updateContentInfoInControlsCollections=function(){this.getContent().forEach(function(C){if(C){this._removeContentFromControlsCollections(C);this._moveControlInSuitableCollection(C,k._getControlPriority(C));}}.bind(this));};k.prototype._moveControlInSuitableCollection=function(C,p){var i=p!==j.NeverOverflow,A=p===j.AlwaysOverflow;if(d.supportsControl(C)&&A){this._aPopoverOnlyControls.push(C);}else{if(d.supportsControl(C)&&i&&C.getVisible()){this._aMovableControls.push(C);}else{this._aToolbarOnlyControls.push(C);}}};k.prototype._removeContentFromControlsCollections=function(C){var i,m,n;for(i=0;i<this._aAllCollections.length;i++){m=this._aAllCollections[i];n=m.indexOf(C);if(n!==-1){m.splice(n,1);}}};k.prototype._clearAllControlsCollections=function(){this._aMovableControls=[];this._aToolbarOnlyControls=[];this._aPopoverOnlyControls=[];this._aAllCollections=[this._aMovableControls,this._aToolbarOnlyControls,this._aPopoverOnlyControls];};k.prototype.onLayoutDataChange=function(E){this._resetAndInvalidateToolbar(true);E&&this._updateContentInfoInControlsCollections();};k.prototype.addContent=function(C){this._registerControlListener(C);this._resetAndInvalidateToolbar(false);if(C){this._moveControlInSuitableCollection(C,k._getControlPriority(C));}return this._callToolbarMethod("addContent",arguments);};k.prototype.insertContent=function(C,i){this._registerControlListener(C);this._resetAndInvalidateToolbar(false);if(C){this._moveControlInSuitableCollection(C,k._getControlPriority(C));}return this._callToolbarMethod("insertContent",arguments);};k.prototype.removeContent=function(){var C=this._callToolbarMethod("removeContent",arguments);if(C){this._getPopover().removeAssociatedContent(C.getId());}this._resetAndInvalidateToolbar(false);this._deregisterControlListener(C);this._removeContentFromControlsCollections(C);return C;};k.prototype.removeAllContent=function(){var C=this._callToolbarMethod("removeAllContent",arguments);C.forEach(this._deregisterControlListener,this);C.forEach(this._removeContentFromControlsCollections,this);this._resetAndInvalidateToolbar(false);this._clearAllControlsCollections();return C;};k.prototype.destroyContent=function(){this._resetAndInvalidateToolbar(false);setTimeout(function(){this._resetAndInvalidateToolbar(false);}.bind(this),0);this._clearAllControlsCollections();return this._callToolbarMethod("destroyContent",arguments);};k.prototype._registerControlListener=function(C){var i;if(C){C.attachEvent("_change",this._onContentPropertyChangedOverflowToolbar,this);if(C.getMetadata().getInterfaces().indexOf("sap.m.IOverflowToolbarContent")>-1){i=C.getOverflowToolbarConfig().invalidationEvents;if(i&&Array.isArray(i)){i.forEach(function(E){C.attachEvent(E,this._onInvalidationEventFired,this);},this);}}}};k.prototype._deregisterControlListener=function(C){var i;if(C){C.detachEvent("_change",this._onContentPropertyChangedOverflowToolbar,this);if(C.getMetadata().getInterfaces().indexOf("sap.m.IOverflowToolbarContent")>-1){i=C.getOverflowToolbarConfig().invalidationEvents;if(i&&Array.isArray(i)){i.forEach(function(E){C.detachEvent(E,this._onInvalidationEventFired,this);},this);}}}};k.prototype._onContentPropertyChangedOverflowToolbar=function(E){var s=E.getSource(),C,p;this._updateContentInfoInControlsCollections();if(!this._bListenForControlPropertyChanges){return;}C=d.getControlConfig(s);p=E.getParameter("name");if(typeof C!=="undefined"&&C.noInvalidationProps.indexOf(p)!==-1){return;}if(p==="visible"){this._bContentVisibilityChanged=true;}this._resetAndInvalidateToolbar(true);};k.prototype._onInvalidationEventFired=function(){if(!this._bListenForInvalidationEvents){return;}this._resetAndInvalidateToolbar(true);};k.prototype._getOverflowButtonSize=function(){var i=parseInt(l.BaseFontSize),C=this.$().parents().hasClass('sapUiSizeCompact')?2.5:3,m=D.toPx(P.get("_sap_m_Toolbar_MarginRight")),n=m===0?0.25*i:0;return parseInt(i*C)-n;};k.prototype._getBestPopoverPlacement=function(){var H=this.getHTMLTag();if(H==="Footer"){return h.Top;}else if(H==="Header"){return h.Bottom;}return h.Vertical;};k.prototype._getControlsIds=function(){return this.getContent().map(function(i){return i.getId();});};k.prototype._getControlIndex=function(C){return C.length?C._index:this.indexOfContent(C);};k.prototype._getOptimalControlWidth=function(C,o){var i,m=C.getLayoutData(),s=m&&m.isA("sap.m.ToolbarLayoutData")?m.getShrinkable():false,M=s?this._getMinWidthOfShrinkableControl(C):0,v=C.getVisible(),S;if(C.isA("sap.m.ToolbarSpacer")){S=parseInt(C.$().css('width'));M=(C.getWidth()&&S)?S:0;i=M+(C.$().outerWidth(true)-C.$().outerWidth());}else if(s&&M>0&&v){i=M+C.$().outerWidth(true)-C.$().outerWidth();}else{i=v?C.$().outerWidth(true):0;}if(i===null){i=typeof o!=="undefined"?o:0;}return i;};k.prototype._getMinWidthOfShrinkableControl=function(C){var m=C.$().css("min-width"),M=parseInt(m),r=a.isRelativeWidth(m);if(r){return(M*this.$().width())/100;}else{return M;}};k._getControlPriority=function(C){var i,o,p,G;if(C.length){return C._priority;}i=C.getMetadata().getInterfaces().indexOf("sap.m.IOverflowToolbarContent")>-1;G=i&&C.getOverflowToolbarConfig().getCustomImportance;if(i&&typeof G==="function"){return G();}o=C.getLayoutData&&C.getLayoutData();if(o&&o instanceof O){if(o.getMoveToOverflow()===false){return j.NeverOverflow;}if(o.getStayInOverflow()===true){return j.AlwaysOverflow;}p=o.getPriority();if(p===j.Never){return j.NeverOverflow;}if(p===j.Always){return j.AlwaysOverflow;}return p;}return j.High;};k._getControlGroup=function(C){var o=C.getLayoutData();if(o instanceof O){return o.getGroup();}};k._oPriorityOrder=(function(){var p={};p[j.Disappear]=1;p[j.Low]=2;p["Medium"]=3;p[j.High]=4;return p;})();k.prototype._detireminePopoverVerticalOffset=function(){return this.$().parents().hasClass('sapUiSizeCompact')?2:3;};k.prototype.onThemeChanged=function(){this._resetAndInvalidateToolbar();for(var C in this._aControlSizes){if(this._aControlSizes.hasOwnProperty(C)){this._aControlSizes[C]=0;}}};k.prototype.closeOverflow=function(){this._getPopover().close();};return k;});
sap.ui.predefine('sap/m/OverflowToolbarAssociativePopover',['./Popover','./PopoverRenderer','./OverflowToolbarAssociativePopoverControls','./OverflowToolbarLayoutData','sap/m/library'],function(P,a,O,b,l){"use strict";var c=l.PlacementType;var d=l.OverflowToolbarPriority;var e=P.extend("sap.m._overflowToolbarHelpers.OverflowToolbarAssociativePopover",{metadata:{associations:{associatedContent:{type:"sap.ui.core.Control",multiple:true}}},renderer:a.render});e.prototype.init=function(){P.prototype.init.apply(this,arguments);this.oControlsManager=new O();};e.prototype.onBeforeRendering=function(){P.prototype.onBeforeRendering.apply(this,arguments);this.addStyleClass("sapMOTAPopover");this.addStyleClass("sapMOverflowToolbarMenu-CTX");var h=this._getAllContent().some(function(o){return o.hasStyleClass("sapMOTAPButtonWithIcon");});if(h){this.addStyleClass("sapMOTAPButtonsWithIcons");}else{this.removeStyleClass("sapMOTAPButtonsWithIcons");}};e.prototype.addAssociatedContent=function(o){this.addAssociation("associatedContent",o,true);this._preProcessControl(o);return this;};e.prototype.removeAssociatedContent=function(o){var r=this.removeAssociation("associatedContent",o,true),f;if(r){f=sap.ui.getCore().byId(r);if(f){this._postProcessControl(f);}}return r;};e.prototype._preProcessControl=function(o){var f=O.getControlConfig(o),A;f.listenForEvents.forEach(function(E){A="attach"+C(E);if(o[A]){o[A](this._closeOnInteraction.bind(this,o));}else{o.attachEvent(E,this._closeOnInteraction.bind(this,o));}},this);if(typeof f.preProcess==="function"){f.preProcess.call(this.oControlsManager,o);}var L=o.getLayoutData();if(L instanceof b&&L.getPriority()===d.Disappear){o.addStyleClass("sapMOTAPHidden");}return this;};e.prototype._postProcessControl=function(o){var f=O.getControlConfig(o),D;f.listenForEvents.forEach(function(E){D="detach"+C(E);if(o[D]){o[D](this._closeOnInteraction,this);}else{o.detachEvent(E,this._closeOnInteraction,this);}},this);if(typeof f.postProcess==="function"){f.postProcess.call(this.oControlsManager,o);}o.removeStyleClass("sapMOTAPHidden");o.$().remove();return this;};e.prototype._closeOnInteraction=function(o){var L=o.getLayoutData();if(!L||!(L instanceof b)||L.getCloseOverflowOnInteraction()){this.close();}};e.prototype._getContentIdsHash=function(){return this._getAllContent().join(".");};e.prototype._recalculateMargins=function(s,p){if(s!==c.Top){return P.prototype._recalculateMargins.apply(this,arguments);}p._fPopoverMarginBottom=p._fWindowHeight-p._$parent.offset().top+this._arrowOffset+p._fPopoverOffsetY;return p;};e.prototype._getAllContent=function(){var A=this.getAssociatedContent().map(function(i){return sap.ui.getCore().byId(i);});if(this.getPlacement()===c.Top){A.reverse();}return this.getContent().concat(A);};e.prototype.getCurrentPosition=function(){if(!this._oCalcedPos){this._calcPlacement();}return this._oCalcedPos;};function C(n){return n.substring(0,1).toUpperCase()+n.substring(1);}return e;});
sap.ui.predefine('sap/m/OverflowToolbarAssociativePopoverControls',['sap/ui/base/Metadata','./OverflowToolbarButton','./OverflowToolbarToggleButton','./ToggleButton','./Button','sap/m/library',"sap/base/Log"],function(M,O,a,T,B,l,L){"use strict";var b=l.ButtonType;var c=M.createClass("sap.m._overflowToolbarHelpers.OverflowToolbarAssociativePopoverControls",{constructor:function(){this._mControlsCache={};}});c.prototype._preProcessSapMButton=function(o){var d=o.getType();this._mControlsCache[o.getId()]={buttonType:d};if(d===b.Default){o.setProperty("type",b.Transparent,true);}if(o.getIcon()){o.addStyleClass("sapMOTAPButtonWithIcon");}else{o.addStyleClass("sapMOTAPButtonNoIcon");}o.attachEvent("_change",this._onSapMButtonUpdated,this);};c.prototype._postProcessSapMButton=function(o){var p=this._mControlsCache[o.getId()];if(o.getType()!==p.buttonType){o.setProperty("type",p.buttonType,true);}o.removeStyleClass("sapMOTAPButtonNoIcon");o.removeStyleClass("sapMOTAPButtonWithIcon");o.detachEvent("_change",this._onSapMButtonUpdated,this);};c.prototype._onSapMButtonUpdated=function(e){var p=e.getParameter("name"),o=e.getSource(),s=o.getId();if(typeof this._mControlsCache[s]==="undefined"){return;}if(p==="type"){this._mControlsCache[s]["buttonType"]=o.getType();}};c.prototype._preProcessSapMOverflowToolbarButton=function(o){this._preProcessSapMButton(o);o._bInOverflow=true;};c.prototype._postProcessSapMOverflowToolbarButton=function(o){delete o._bInOverflow;this._postProcessSapMButton(o);};c.prototype._preProcessSapMToggleButton=function(o){this._preProcessSapMButton(o);};c.prototype._postProcessSapMToggleButton=function(o){this._postProcessSapMButton(o);};c.prototype._preProcessSapMOverflowToolbarToggleButton=function(o){this._preProcessSapMToggleButton(o);o._bInOverflow=true;};c.prototype._postProcessSapMOverflowToolbarToggleButton=function(o){delete o._bInOverflow;this._postProcessSapMToggleButton(o);};c._mSupportedControls={"sap.m.Button":{canOverflow:true,listenForEvents:["press"],noInvalidationProps:["enabled","type"]},"sap.m.MenuButton":{canOverflow:true,listenForEvents:["defaultAction","_menuItemSelected"],noInvalidationProps:["enabled","text","icon"]},"sap.m.OverflowToolbarButton":{canOverflow:true,listenForEvents:["press"],noInvalidationProps:["enabled","type"]},"sap.m.OverflowToolbarToggleButton":{canOverflow:true,listenForEvents:["press"],noInvalidationProps:["enabled","type","pressed"]},"sap.m.CheckBox":{canOverflow:true,listenForEvents:["select"],noInvalidationProps:["enabled","selected"]},"sap.m.ToggleButton":{canOverflow:true,listenForEvents:["press"],noInvalidationProps:["enabled","pressed"]},"sap.m.ComboBox":{canOverflow:true,listenForEvents:[],noInvalidationProps:["enabled","value","selectedItemId","selectedKey"]},"sap.m.SearchField":{canOverflow:true,listenForEvents:["search"],noInvalidationProps:["enabled","value","selectOnFocus"]},"sap.m.Input":{canOverflow:true,listenForEvents:[],noInvalidationProps:["enabled","value"]},"sap.m.DateTimeInput":{canOverflow:true,listenForEvents:["change"],noInvalidationProps:["enabled","value","dateValue"]},"sap.m.DatePicker":{canOverflow:true,listenForEvents:["change"],noInvalidationProps:["enabled","value","dateValue","displayFormat","valueFormat","displayFormatType","secondaryCalendarType","minDate","maxDate"]},"sap.m.DateTimePicker":{canOverflow:true,listenForEvents:["change"],noInvalidationProps:["enabled","value","dateValue","displayFormat","valueFormat","displayFormatType","secondaryCalendarType","minDate","maxDate"]},"sap.m.TimePicker":{canOverflow:true,listenForEvents:["change"],noInvalidationProps:["enabled","value","dateValue","displayFormat","valueFormat"]},"sap.m.RadioButton":{canOverflow:false,listenForEvents:[],noInvalidationProps:["enabled","selected"]},"sap.m.Slider":{canOverflow:false,listenForEvents:[],noInvalidationProps:["enabled","value"]},"sap.m.IconTabHeader":{canOverflow:false,listenForEvents:[],noInvalidationProps:["selectedKey"]},"sap.ui.comp.smartfield.SmartField":{canOverflow:true,listenForEvents:["change"],noInvalidationProps:["enabled","value","valueState","showValueHelp","contextEditable","clientSideMandatoryCheck","mandatory","name","placeholder","showSuggestion","tooltipLabel"]},"sap.ui.comp.smartfield.SmartLabel":{canOverflow:true,listenForEvents:[],noInvalidationProps:["enabled"]}};c.getControlConfig=function(o){var d;if(o.getMetadata().getInterfaces().indexOf("sap.m.IOverflowToolbarContent")!==-1){if(typeof o.getOverflowToolbarConfig!=="function"){L.error("Required method getOverflowToolbarConfig not implemented by: "+o.getMetadata().getName());return;}d=o.getOverflowToolbarConfig();if(typeof d!=="object"){L.error("Method getOverflowToolbarConfig implemented, but does not return an object in: "+o.getMetadata().getName());return;}return{canOverflow:!!d.canOverflow,listenForEvents:Array.isArray(d.autoCloseEvents)?d.autoCloseEvents:[],noInvalidationProps:Array.isArray(d.propsUnrelatedToSize)?d.propsUnrelatedToSize:[],preProcess:d.onBeforeEnterOverflow,postProcess:d.onAfterExitOverflow};}var s=c.getControlClass(o);d=c._mSupportedControls[s];if(d===undefined){return;}var p="_preProcess"+s.split(".").map(C).join("");if(typeof c.prototype[p]==="function"){d.preProcess=c.prototype[p];}var P="_postProcess"+s.split(".").map(C).join("");if(typeof c.prototype[P]==="function"){d.postProcess=c.prototype[P];}return d;};c.supportsControl=function(o){var d=c.getControlConfig(o);return typeof d!=="undefined"&&d.canOverflow;};c.getControlClass=function(o){if(o instanceof O){return"sap.m.OverflowToolbarButton";}else if(o instanceof a){return"sap.m.OverflowToolbarToggleButton";}else if(o instanceof T){return"sap.m.ToggleButton";}else if(o instanceof B){return"sap.m.Button";}return o.getMetadata().getName();};function C(n){return n.substring(0,1).toUpperCase()+n.substr(1);}return c;},false);
sap.ui.predefine('sap/m/OverflowToolbarButton',['sap/m/Button','sap/m/ButtonRenderer'],function(B,a){"use strict";var O=B.extend("sap.m.OverflowToolbarButton",{metadata:{interfaces:["sap.f.IShellBar","sap.m.IToolbarInteractiveControl"]},renderer:a.render});O.prototype._getText=function(){if(this._bInOverflow){return B.prototype._getText.call(this);}return"";};O.prototype._getToolbarInteractive=function(){return true;};return O;});
sap.ui.predefine('sap/m/OverflowToolbarLayoutData',['sap/m/ToolbarLayoutData','sap/m/library',"sap/base/Log"],function(T,l,L){"use strict";var O=l.OverflowToolbarPriority;var a=T.extend("sap.m.OverflowToolbarLayoutData",{metadata:{properties:{moveToOverflow:{type:"boolean",defaultValue:true,deprecated:true},stayInOverflow:{type:"boolean",defaultValue:false,deprecated:true},priority:{type:"sap.m.OverflowToolbarPriority",group:"Behavior",defaultValue:O.High},group:{type:"int",group:"Behavior",defaultValue:0},closeOverflowOnInteraction:{type:"boolean",group:"Behavior",defaultValue:true}}}});a.prototype.invalidate=function(){var c=this.getPriority(),i=c===O.AlwaysOverflow||c===O.NeverOverflow;if(this.getGroup()&&i){L.error("It is not allowed to set AlwaysOverflow or NeverOverflow to a group items.");}return T.prototype.invalidate.call(this);};a.prototype.setPriority=function(p){var r;if(this.getPriority()===p){return this;}if(this.isInvalidateSuppressed()){r=this.setProperty("priority",p,true);this.invalidate();}else{r=this.setProperty("priority",p);}return r;};return a;});
sap.ui.predefine('sap/m/OverflowToolbarRenderer',['sap/ui/core/Renderer','./ToolbarRenderer',"sap/m/BarInPageEnabler"],function(R,T,B){"use strict";var O=R.extend(T);O.renderBarContent=function(r,t){t._getVisibleContent().forEach(function(c){B.addChildClassTo(c,t);r.renderControl(c);});if(t._getOverflowButtonNeeded()){O.renderOverflowButton(r,t);}};O.renderOverflowButton=function(r,t){var o=t._getOverflowButton();B.addChildClassTo(o,t);r.renderControl(o);};return O;},true);
sap.ui.predefine('sap/m/OverflowToolbarToggleButton',['sap/m/ToggleButton','sap/m/ToggleButtonRenderer'],function(T,a){"use strict";var O=T.extend("sap.m.OverflowToolbarToggleButton",{renderer:a.render});O.prototype._getText=function(){return this._bInOverflow?T.prototype._getText.call(this):"";};return O;});
sap.ui.predefine('sap/m/PDFViewer',["./library","sap/ui/core/Control","sap/ui/Device","sap/m/PDFViewerRenderManager","sap/m/MessageBox","sap/m/PDFViewerRenderer","sap/base/Log","sap/base/assert","sap/base/security/URLWhitelist","sap/ui/thirdparty/jquery"],function(l,C,D,P,M,a,L,b,U,q){"use strict";var c=l.PDFViewerDisplayType;var d=C.extend("sap.m.PDFViewer",{metadata:{library:"sap.m",properties:{height:{type:"sap.ui.core.CSSSize",group:"Dimension",defaultValue:"100%"},width:{type:"sap.ui.core.CSSSize",group:"Dimension",defaultValue:"100%"},source:{type:"sap.ui.core.URI",group:"Misc",defaultValue:null},errorMessage:{type:"string",group:"Misc",defaultValue:null,deprecated:true},errorPlaceholderMessage:{type:"string",group:"Misc",defaultValue:null},popupHeaderTitle:{type:"string",group:"Misc",defaultValue:null,deprecated:true},title:{type:"string",group:"Misc",defaultValue:null},showDownloadButton:{type:"boolean",group:"Misc",defaultValue:true},displayType:{type:"sap.m.PDFViewerDisplayType",group:"Misc",defaultValue:c.Auto},isTrustedSource:{type:"boolean",group:"Misc",defaultValue:false}},aggregations:{errorPlaceholder:{type:"sap.ui.core.Control",multiple:false},popupButtons:{type:"sap.m.Button",multiple:true,singularName:"popupButton"},_nonTrustedMessagePage:{type:"sap.m.MessagePage",multiple:false,visibility:"hidden"}},events:{loaded:{},error:{parameters:{target:{type:"any",defaultValue:null}}},sourceValidationFailed:{}}}});d.prototype.init=function(){this._objectsRegister={};this._bIsPopupOpen=false;this._initPopupControl();this._initPopupDownloadButtonControl();this._initErrorPlaceholderMessagePageControl();this._initToolbarDownloadButtonControl();this._initOverflowToolbarControl();this._initControlState();};d.prototype._initControlState=function(){this._bRenderPdfContent=true;this._bOnBeforeUnloadFired=false;};d.prototype.setWidth=function(w){this.setProperty("width",w,true);var o=this.$();if(o===null){return this;}o.css("width",this._getRenderWidth());return this;};d.prototype.setHeight=function(h){this.setProperty("height",h,true);var o=this.$();if(o===null){return this;}o.css("height",this._getRenderHeight());return this;};d.prototype.onBeforeRendering=function(){this._bOnBeforeUnloadFired=false;};d.prototype.onAfterRendering=function(){var i=function(){var I=this._getIframeDOMElement();var o=q(I.get(0).contentWindow);if(D.browser.internet_explorer){o.on("beforeunload",this._onBeforeUnloadListener.bind(this));o.on("readystatechange",this._onReadyStateChangeListener.bind(this));I.on("load",this._onLoadIEListener.bind(this));}else{I.on("load",this._onLoadListener.bind(this));}I.on("error",this._onErrorListener.bind(this));var p=this.getSource();var f=this.getSource().indexOf("#");if(f>-1){p=p.substr(0,f);}if(!(D.browser.safari&&p.startsWith("blob:"))){p+="#view=FitH";}if(!U.validate(p)){p=encodeURI(p);}if(U.validate(p)){I.attr("src",p);}else{this._fireErrorEvent();}}.bind(this);try{this.setBusy(true);i();}catch(e){L.error(e);this.setBusy(false);}};d.prototype._fireErrorEvent=function(e){this._renderErrorState();this.fireError({target:e||null});};d.prototype._renderErrorState=function(){var o=this._objectsRegister.getToolbarDownloadButtonControl();o.setEnabled(false);var o=this._objectsRegister.getPopupDownloadButtonControl();o.setEnabled(false);this.setBusy(false);this._bRenderPdfContent=false;C.prototype.invalidate.call(this);};d.prototype._fireLoadedEvent=function(){this._bRenderPdfContent=true;this.setBusy(false);try{this._getIframeDOMElement().removeClass("sapMPDFViewerLoading");}catch(e){L.fatal("Iframe not founded in loaded event");L.fatal(e);}this.fireEvent("loaded");};d.prototype._onLoadListener=function(e){try{var t=q(e.target),f=true;var s="application/pdf";try{var E=t[0].contentWindow.document.embeds;f=!!E&&E.length===1;if(f){s=E[0].attributes.getNamedItem("type").value;}}catch(g){if(!D.browser.firefox&&this.fireEvent("sourceValidationFailed",{},true)){this._fireLoadedEvent();return;}}if(f&&a._isSupportedMimeType(s)&&a._isPdfPluginEnabled()){this._fireLoadedEvent();}else{this._fireErrorEvent(e.target);}}catch(g){L.fatal(false,"Fatal error during the handling of load event happened.");L.fatal(false,g.message);}};d.prototype._onErrorListener=function(){this._fireErrorEvent();};d.prototype._onReadyStateChangeListener=function(e){var I="interactive";var f="complete";switch(e.target.readyState){case I:case f:this._fireLoadedEvent();break;}};d.prototype._onBeforeUnloadListener=function(){if(this._bOnBeforeUnloadFired){this._fireErrorEvent();return;}this._bOnBeforeUnloadFired=true;};d.prototype._onLoadIEListener=function(e){try{var s=e.currentTarget.contentWindow.document.mimeType;}catch(f){return;}if(!a._isSupportedMimeType(s)){this._fireErrorEvent();}};d.prototype.downloadPDF=function(){var w=window.open(this.getSource());w.opener=null;w.focus();};d.prototype._onSourceValidationErrorMessageBoxCloseListener=function(o){if(o===M.Action.CANCEL){this._renderErrorState();}else{this._fireLoadedEvent();}};d.prototype._onAfterPopupClose=function(e){var p=this._objectsRegister.getPopup();p.removeAllContent();this._bIsPopupOpen=false;};d.prototype._shouldRenderPdfContent=function(){return a._isPdfPluginEnabled()&&this._bRenderPdfContent&&this._isSourceValidToDisplay();};d.prototype._isSourceValidToDisplay=function(){var s=this.getSource();return s!==null&&s!==""&&typeof s!=="undefined";};d.prototype.invalidate=function(o){this._initControlState();C.prototype.invalidate.call(this,o);};d.prototype.open=function(){if(!this._isSourceValidToDisplay()){b(false,"The PDF file cannot be opened with the given source. Given source: "+this.getSource());return;}else if(!a._isPdfPluginEnabled()){L.warning("The PDF plug-in is not available on this device.");}if(this._isEmbeddedModeAllowed()&&this.getIsTrustedSource()){this._openOnDesktop();}else{this._openOnMobile();}};d.prototype._openOnDesktop=function(){var p=this._objectsRegister.getPopup();if(this._bIsPopupOpen){return;}this._initControlState();this._preparePopup(p);p.addContent(this);this._bIsPopupOpen=true;p.open();};d.prototype._openOnMobile=function(){var w=window.open(this.getSource());w.opener=null;w.focus();};d.prototype._getIframeDOMElement=function(){var i=this.$().find("iframe");if(i.length===0){throw Error("Underlying iframe was not found in DOM.");}if(i.length>1){L.fatal("Initialization of iframe fails. Reason: the control somehow renders multiple iframes");}return i;};d.prototype._isEmbeddedModeAllowed=function(){return this._isDisplayTypeAuto()?D.system.desktop:this._isDisplayTypeEmbedded();};d.prototype._isDisplayTypeAuto=function(){return this.getDisplayType()===c.Auto;};d.prototype._isDisplayTypeEmbedded=function(){return this.getDisplayType()===c.Embedded;};d.prototype._isDisplayTypeLink=function(){return this.getDisplayType()===c.Link;};d.prototype._isDisplayDownloadButton=function(){return this.getShowDownloadButton()||this._isDisplayTypeLink()||(this._isDisplayTypeAuto()&&!this._isEmbeddedModeAllowed());};d.prototype._getLibraryResourceBundle=function(){return sap.ui.getCore().getLibraryResourceBundle("sap.m");};d.prototype._getMessagePageErrorMessage=function(){return this.getErrorPlaceholderMessage()?this.getErrorPlaceholderMessage():this._getLibraryResourceBundle().getText("PDF_VIEWER_PLACEHOLDER_ERROR_TEXT");};d.prototype._getRenderWidth=function(){return this._bIsPopupOpen?'100%':this.getWidth();};d.prototype._getRenderHeight=function(){if(this._bIsPopupOpen){return'100%';}if(!this._isEmbeddedModeAllowed()){return'auto';}return this.getHeight();};d.prototype._showMessageBox=function(){M.show(this._getLibraryResourceBundle().getText("PDF_VIEWER_SOURCE_VALIDATION_MESSAGE_TEXT"),{icon:M.Icon.WARNING,title:this._getLibraryResourceBundle().getText("PDF_VIEWER_SOURCE_VALIDATION_MESSAGE_HEADER"),actions:[M.Action.OK,M.Action.CANCEL],defaultAction:M.Action.CANCEL,id:this.getId()+"-validationErrorSourceMessageBox",styleClass:"sapUiSizeCompact",contentWidth:'100px',onClose:this._onSourceValidationErrorMessageBoxCloseListener.bind(this)});};d.prototype.exit=function(){q.each(this._objectsRegister,function(i,g){var o=g(true);if(o){o.destroy();}});};P.extendPdfViewer(d);return d;});
sap.ui.predefine('sap/m/PDFViewerRenderManager',["sap/m/library","sap/m/Dialog","sap/m/Button","sap/m/MessagePage","sap/m/OverflowToolbar","sap/m/OverflowToolbarButton","sap/m/Title","sap/m/ToolbarSpacer","sap/m/OverflowToolbarLayoutData"],function(l,D,B,M,O,a,T,b,c){"use strict";var d=l.OverflowToolbarPriority;var e=l.ButtonType;var p={extendPdfViewer:function(P){P.prototype._initPopupControl=function(){var t=this;var o={contentHeight:"100%",contentWidth:"100%",horizontalScrolling:false,verticalScrolling:false,showHeader:true,buttons:[],afterClose:t._onAfterPopupClose.bind(t)},s=t.getId()+"-popup",f=s+"-popupCloseButton",C="getPopupCloseButton",g="getPopup";this._objectsRegister[C]=function(){var h=new B(f,{text:'',press:function(){t._objectsRegister.getPopup().close();}});t._objectsRegister[C]=function(){return h;};return h;};this._objectsRegister[g]=function(i){if(i===true){return null;}var h=new D(s,o);h.addStyleClass("sapUiPopupWithPadding");t._objectsRegister[g]=function(){return h;};return h;};};P.prototype._preparePopup=function(o){var f=this.getPopupButtons().slice(),C=this._objectsRegister.getPopupCloseButton(),g=this._objectsRegister.getPopupDownloadButtonControl();C.setText(this._getLibraryResourceBundle().getText("PDF_VIEWER_POPUP_CLOSE_BUTTON"));if(this.getShowDownloadButton()){f.push(g);}f.push(C);o.removeAllButtons();f.forEach(function(h){o.addButton(h);});o.setShowHeader(true);if(!!this.getPopupHeaderTitle()){o.setTitle(this.getPopupHeaderTitle());}if(!!this.getTitle()){o.setTitle(this.getTitle());}};P.prototype._initErrorPlaceholderMessagePageControl=function(){var t=this,s="getErrorPlaceholderMessagePageControl";this._objectsRegister[s]=function(){var m=new M({showHeader:false,text:t._getMessagePageErrorMessage(),description:""});t._objectsRegister[s]=function(){m.setText(t._getMessagePageErrorMessage());return m;};return m;};};P.prototype._initOverflowToolbarControl=function(){var t=this,o=this.getId()+"-overflowToolbar",s=o+"-title",f="getOverflowToolbarControl";this._objectsRegister[f]=function(i){if(i===true){return null;}var g=new O(o,{}),h=new T(s,{text:t.getTitle()}),j=t._objectsRegister.getToolbarDownloadButtonControl();function k(){if(t._isDisplayDownloadButton()){g.addContent(j);}else{g.removeContent(j);}j.setEnabled(t._bRenderPdfContent);h.setText(t.getTitle());}g.addStyleClass("sapUiTinyMarginBottom");g.addContent(h);g.addContent(new b());k();j.setLayoutData(new c({priority:d.NeverOverflow}));t._objectsRegister[f]=function(i){if(!i){k();}return g;};return g;};};P.prototype._initToolbarDownloadButtonControl=function(){var t=this,s=this.getId()+"-toolbarDownloadButton",f="getToolbarDownloadButtonControl";this._objectsRegister[f]=function(i){if(i){return null;}var o=new a(s,{type:e.Transparent,icon:"sap-icon://download"});o.attachPress(t.downloadPDF.bind(t));o.setEnabled(t._bRenderPdfContent);t._objectsRegister[f]=function(){o.setEnabled(t._bRenderPdfContent);return o;};return o;};};P.prototype._initPopupDownloadButtonControl=function(){var t=this,s=this.getId()+"-popupDownloadButton",f="getPopupDownloadButtonControl";this._objectsRegister[f]=function(){var o=new B(s,{text:t._getLibraryResourceBundle().getText("PDF_VIEWER_DOWNLOAD_TEXT"),type:e.Emphasized});o.attachPress(t.downloadPDF.bind(t));o.setEnabled(t._bRenderPdfContent);t._objectsRegister[f]=function(){o.setEnabled(t._bRenderPdfContent);return o;};return o;};};P.prototype._getNonTrustedSourceMessage=function(){var o=this._objectsRegister.getPopupDownloadButtonControl(),m=this.getAggregation("_nonTrustedMessagePage");if(!m){m=new M({showHeader:false,text:this._getLibraryResourceBundle().getText("PDF_VIEWER_NONTRUSTEDSOURCEMESSAGE_TITLE"),icon:"sap-icon://download",buttons:[o],description:""});this.setAggregation("_nonTrustedMessagePage",m);}return m;};}};return p;},true);
sap.ui.predefine('sap/m/PDFViewerRenderer',['sap/ui/Device',"sap/base/Log"],function(D,L){"use strict";function s(c){return(!!c.getTitle()||c._isDisplayDownloadButton())&&!c._bIsPopupOpen;}var a=Object.freeze(["application/pdf","application/x-google-chrome-pdf"]);var P={};P._isSupportedMimeType=function(m){var f=a.indexOf(m);return f>-1;};P._isPdfPluginEnabled=function(){var i=true;if(D.browser.firefox){return i;}if(D.browser.internet_explorer){try{new ActiveXObject("AcroPDF.PDF");}catch(e){i=false;}return i;}if(typeof navigator.pdfViewerEnabled!=="undefined"){if(navigator.pdfViewerEnabled||/HeadlessChrome/.test(window.navigator.userAgent)){return i;}else{i=false;}}else{var m=navigator.mimeTypes;i=a.some(function(A){var M=m.namedItem(A);return M!==null;});}return i;};P.render=function(r,c){r.write("<div");r.writeControlData(c);r.addStyle("width",c._getRenderWidth());r.addStyle("height",c._getRenderHeight());r.writeStyles();r.writeClasses();this._writeAccessibilityTags(r,c);r.write(">");if(s(c)){r.renderControl(c._objectsRegister.getOverflowToolbarControl());}var R=(c._isDisplayTypeEmbedded()||c._isDisplayTypeAuto())&&D.system.desktop;if(R){if(!this._isPdfPluginEnabled()){this.renderErrorContent(r,c);}else if(!c.getIsTrustedSource()){this.renderNonTrustedSourceContent(r,c);}else{this.renderPdfContent(r,c);}}r.write("</div>");};P._writeAccessibilityTags=function(r,c){r.writeAttribute("role","document");r.writeAttribute("aria-label",c._getLibraryResourceBundle().getText("PDF_VIEWER_ACCESSIBILITY_LABEL"));};P.renderPdfContent=function(r,c){if(c._shouldRenderPdfContent()&&!(/HeadlessChrome/.test(window.navigator.userAgent))){r.write("<iframe");r.addClass("sapMPDFViewerContent");r.addClass("sapMPDFViewerLoading");if(s(c)){r.addClass("sapMPDFViewerReducedContent");}r.writeClasses();r.write(">");r.write("</iframe>");}else{this.renderErrorContent(r,c);}};P.renderErrorContent=function(r,c){var e=c.getErrorPlaceholder()?c.getErrorPlaceholder():c._objectsRegister.getErrorPlaceholderMessagePageControl();r.write("<div");r.addClass("sapMPDFViewerError");if(!c._bIsPopupOpen){r.addClass("sapMPDFViewerEmbeddedContent");}r.writeClasses();r.write(">");r.renderControl(e);r.write("</div>");if(!P._isPdfPluginEnabled()){L.warning("Either Inline viewing of pdf is disabled or pdf plug-in is unavailable on this device.");c.fireEvent("error",{},true);}};P.renderNonTrustedSourceContent=function(r,c){r.openStart("div");r.class("sapMPDFViewerNonTrustedMessage");r.openEnd();r.renderControl(c._getNonTrustedSourceMessage());r.close("div");};return P;},true);
sap.ui.predefine('sap/m/Page',["./library","sap/ui/core/Control","sap/ui/core/delegate/ScrollEnablement","sap/m/Title","sap/m/Button","sap/m/Bar","sap/ui/core/ContextMenuSupport","sap/ui/core/library","sap/ui/Device","sap/ui/core/Element","./TitlePropagationSupport","./PageRenderer","sap/ui/thirdparty/jquery"],function(l,C,S,T,B,a,b,c,D,E,d,P,q){"use strict";var A=c.AccessibleLandmarkRole;var e=l.ButtonType;var f=l.PageBackgroundDesign;var g=c.TitleLevel;var h="div";var H="header";var F="footer";var i=C.extend("sap.m.Page",{metadata:{library:"sap.m",properties:{title:{type:"string",group:"Data",defaultValue:null},titleLevel:{type:"sap.ui.core.TitleLevel",group:"Appearance",defaultValue:g.Auto},showNavButton:{type:"boolean",group:"Appearance",defaultValue:false},showHeader:{type:"boolean",group:"Appearance",defaultValue:true},showSubHeader:{type:"boolean",group:"Appearance",defaultValue:true},navButtonText:{type:"string",group:"Misc",defaultValue:null,deprecated:true},navButtonTooltip:{type:"string",group:"Misc",defaultValue:null},enableScrolling:{type:"boolean",group:"Behavior",defaultValue:true},icon:{type:"sap.ui.core.URI",group:"Appearance",defaultValue:null,deprecated:true},backgroundDesign:{type:"sap.m.PageBackgroundDesign",group:"Appearance",defaultValue:f.Standard},navButtonType:{type:"sap.m.ButtonType",group:"Appearance",defaultValue:e.Back,deprecated:true},showFooter:{type:"boolean",group:"Appearance",defaultValue:true},contentOnlyBusy:{type:"boolean",group:"Appearance",defaultValue:false},floatingFooter:{type:"boolean",group:"Appearance",defaultValue:false}},defaultAggregation:"content",aggregations:{content:{type:"sap.ui.core.Control",multiple:true,singularName:"content"},customHeader:{type:"sap.m.IBar",multiple:false},footer:{type:"sap.m.IBar",multiple:false},subHeader:{type:"sap.m.IBar",multiple:false},headerContent:{type:"sap.ui.core.Control",multiple:true,singularName:"headerContent",forwarding:{getter:"_getInternalHeader",aggregation:"contentRight"}},landmarkInfo:{type:"sap.m.PageAccessibleLandmarkInfo",multiple:false},_internalHeader:{type:"sap.m.IBar",multiple:false,visibility:"hidden"}},events:{navButtonTap:{deprecated:true},navButtonPress:{}},dnd:{draggable:false,droppable:true},designtime:"sap/m/designtime/Page.designtime"}});b.apply(i.prototype);d.call(i.prototype,"content",function(){return this._headerTitle?this._headerTitle.getId():false;});i.FOOTER_ANIMATION_DURATION=350;i.prototype.init=function(){this._initTitlePropagationSupport();};i.prototype._hasScrolling=function(){return this.getEnableScrolling();};i.prototype.onBeforeRendering=function(){if(this._oScroller&&!this._hasScrolling()){this._oScroller.destroy();this._oScroller=null;}else if(this._hasScrolling()&&!this._oScroller){this._oScroller=new S(this,null,{scrollContainerId:this.getId()+"-cont",horizontal:false,vertical:true});}if(this._headerTitle){this._headerTitle.setLevel(this.getTitleLevel());}};i.prototype.onAfterRendering=function(){setTimeout(this._adjustFooterWidth.bind(this),10);};i.prototype.exit=function(){if(this._oScroller){this._oScroller.destroy();this._oScroller=null;}if(this._headerTitle){this._headerTitle.destroy();this._headerTitle=null;}if(this._navBtn){this._navBtn.destroy();this._navBtn=null;}if(this._appIcon){this._appIcon.destroy();this._appIcon=null;}};i.prototype.setBackgroundDesign=function(s){var j=this.getBackgroundDesign();this.setProperty("backgroundDesign",s,true);this.$().removeClass("sapMPageBg"+j).addClass("sapMPageBg"+this.getBackgroundDesign());return this;};i.prototype.setTitle=function(t){var w=!this._headerTitle;this._headerTitle=this._headerTitle||new T(this.getId()+"-title",{level:this.getTitleLevel()});this._headerTitle.setText(t);if(w){this._updateHeaderContent(this._headerTitle,"middle",0);}this.setProperty("title",t,true);return this;};i.prototype._ensureNavButton=function(){var s=this.getNavButtonTooltip()||sap.ui.getCore().getLibraryResourceBundle("sap.m").getText("PAGE_NAVBUTTON_TEXT");if(!this._navBtn){var n=this.getNavButtonType();this._navBtn=new B(this.getId()+"-navButton",{press:q.proxy(function(){this.fireNavButtonPress();this.fireNavButtonTap();},this)});if(D.os.android&&n==e.Back){this._navBtn.setType(e.Up);}else{this._navBtn.setType(n);}}this._navBtn.setTooltip(s);};i.prototype.setShowNavButton=function(s){var o=!!this.getShowNavButton();if(s===o){return this;}this.setProperty("showNavButton",s,true);if(s){this._ensureNavButton();if(this._appIcon){this._updateHeaderContent(this._appIcon,"left",-1);}this._updateHeaderContent(this._navBtn,"left",0);}else if(this._navBtn){this._updateHeaderContent(this._navBtn,"left",-1);}return this;};i.prototype.setShowFooter=function(s){if(this.getDomRef()){(s)?this.$().addClass("sapMPageWithFooter"):this.$().removeClass("sapMPageWithFooter");}var $=q(this.getDomRef()).find(".sapMPageFooter").last(),u=sap.ui.getCore().getConfiguration().getAnimation();if(!this.getFloatingFooter()){this.setProperty("showFooter",s);return this;}this.setProperty("showFooter",s,true);$.removeClass("sapUiHidden");$.toggleClass("sapMPageFooterControlShow",s);$.toggleClass("sapMPageFooterControlHide",!s);if(s){return this;}if(u){setTimeout(function(){$.toggleClass("sapUiHidden",!s);},i.FOOTER_ANIMATION_DURATION);}else{$.toggleClass("sapUiHidden",!s);}return this;};i.prototype.setNavButtonType=function(n){this._ensureNavButton();if(!D.os.ios&&n==e.Back){this._navBtn.setType(e.Up);}else{this._navBtn.setType(n);}this.setProperty("navButtonType",n,true);return this;};i.prototype.setNavButtonText=function(t){this._ensureNavButton();this.setProperty("navButtonText",t,true);return this;};i.prototype.setNavButtonTooltip=function(t){this.setProperty("navButtonTooltip",t,true);this._ensureNavButton();return this;};i.prototype.setIcon=function(I){var o=this.getIcon();if(o===I){return this;}this.setProperty("icon",I,true);return this;};i.prototype._adjustFooterWidth=function(){var j=sap.ui.getCore().getConfiguration().getRTL()?"left":"right";if(!this.getShowFooter()||!this.getFloatingFooter()||!this.getFooter()){return;}var $=q(this.getDomRef()).find(".sapMPageFooter").last();if(this._contentHasScroll()){$.css(j,q.position.scrollbarWidth()+"px");$.css("width","initial");}else{$.css(j,0);$.css("width","");}};i.prototype._contentHasScroll=function(){var $=q(document.getElementById(this.getId()+"-cont"));return $[0].scrollHeight>$.innerHeight();};i.prototype._updateHeaderContent=function(o,s,j){var I=this._getInternalHeader();if(I){switch(s){case"left":if(j==-1){if(I.getContentLeft()){I.removeContentLeft(o);}}else{if(I.indexOfContentLeft(o)!=j){I.insertContentLeft(o,j);I.invalidate();}}break;case"middle":if(j==-1){if(I.getContentMiddle()){I.removeContentMiddle(o);}}else{if(I.indexOfContentMiddle(o)!=j){I.insertContentMiddle(o,j);I.invalidate();}}break;case"right":if(j==-1){if(I.getContentRight()){I.removeContentRight(o);}}else{if(I.indexOfContentRight(o)!=j){I.insertContentRight(o,j);I.invalidate();}}break;default:break;}}};i.prototype._getInternalHeader=function(){var I=this.getAggregation("_internalHeader");if(!I){this.setAggregation("_internalHeader",new a(this.getId()+"-intHeader"),true);I=this.getAggregation("_internalHeader");if(this.getShowNavButton()&&this._navBtn){this._updateHeaderContent(this._navBtn,"left",0);}if(this.getTitle()&&this._headerTitle){this._updateHeaderContent(this._headerTitle,"middle",0);}}return I;};i.prototype._getAnyHeader=function(){var o=this.getCustomHeader();if(o){return o.addStyleClass("sapMPageHeader");}return this._getInternalHeader().addStyleClass("sapMPageHeader");};i.prototype.getScrollDelegate=function(){return this._oScroller;};i.prototype._formatLandmarkInfo=function(L,p){if(L){var r=L["get"+p+"Role"]()||"",s=L["get"+p+"Label"]()||"";if(r===A.None){r='';}return{role:r.toLowerCase(),label:s};}return{};};i.prototype._getHeaderTag=function(L){if(L&&L.getHeaderRole()!==A.None){return h;}return H;};i.prototype._getSubHeaderTag=function(L){if(L&&L.getSubHeaderRole()!==A.None){return h;}return H;};i.prototype._getFooterTag=function(L){if(L&&L.getFooterRole()!==A.None){return h;}return F;};i.prototype.scrollTo=function(y,t){if(this._oScroller){this._oScroller.scrollTo(0,y,t);}return this;};i.prototype.scrollToElement=function(o,t,O){if(o instanceof E){o=o.getDomRef();}if(this._oScroller){this._oScroller.scrollToElement(o,t,O);}return this;};i.prototype.setContentOnlyBusy=function(j){this.setProperty("contentOnlyBusy",j,true);this.$().toggleClass("sapMPageBusyCoversAll",!j);return this;};i.prototype.setBusy=function(){this._sBusySection=this.getContentOnlyBusy()?'cont':null;return C.prototype.setBusy.apply(this,arguments);};i.prototype.setCustomHeader=function(o){this.setAggregation("customHeader",o);this.toggleStyleClass("sapFShellBar-CTX",o&&o.isA("sap.f.ShellBar"));if(o&&this.mEventRegistry["_adaptableContentChange"]){this.fireEvent("_adaptableContentChange",{"parent":this,"adaptableContent":o});}return this;};i.prototype._getAdaptableContent=function(){return this._getAnyHeader();};return i;});
sap.ui.predefine('sap/m/PageAccessibleLandmarkInfo',['sap/ui/core/Element','./library'],function(E,l){"use strict";var P=E.extend("sap.m.PageAccessibleLandmarkInfo",{metadata:{library:"sap.m",properties:{rootRole:{type:"sap.ui.core.AccessibleLandmarkRole",defaultValue:"Region"},rootLabel:{type:"string",defaultValue:null},contentRole:{type:"sap.ui.core.AccessibleLandmarkRole",defaultValue:"Main"},contentLabel:{type:"string",defaultValue:null},headerRole:{type:"sap.ui.core.AccessibleLandmarkRole",defaultValue:"Region"},headerLabel:{type:"string",defaultValue:null},subHeaderRole:{type:"sap.ui.core.AccessibleLandmarkRole",defaultValue:"None"},subHeaderLabel:{type:"string",defaultValue:null},footerRole:{type:"sap.ui.core.AccessibleLandmarkRole",defaultValue:"Region"},footerLabel:{type:"string",defaultValue:null}}}});return P;});
sap.ui.predefine('sap/m/PageRenderer',["sap/m/library"],function(a){"use strict";var P={};P.render=function(r,p){var h=null,f=null,s=p.getShowFooter(),S=null,L=this._isLightHeader(p),o=p.getLandmarkInfo();if(p.getShowHeader()){h=p._getAnyHeader();}if(p.getShowSubHeader()){S=p.getSubHeader();}f=p.getFooter();r.write("<div");r.writeControlData(p);r.addClass("sapMPage");r.addClass("sapMPageBg"+p.getBackgroundDesign());if(h){r.addClass("sapMPageWithHeader");}if(S){r.addClass("sapMPageWithSubHeader");}if(f&&s){r.addClass("sapMPageWithFooter");}if(!p.getContentOnlyBusy()){r.addClass("sapMPageBusyCoversAll");}if(p.getFloatingFooter()){r.addClass("sapMPageFloatingFooter");}r.writeClasses();var t=p.getTooltip_AsString();if(t){r.writeAttributeEscaped("title",t);}r.writeAccessibilityState(p,p._formatLandmarkInfo(o,"Root"));r.write(">");if(h){var H=p._getHeaderTag(o);r.write("<"+H);r.addClass("sapMPageHeader");r.writeAccessibilityState(p,p._formatLandmarkInfo(o,"Header"));r.writeClasses();r.write(">");this.renderBarControl(r,p,h,{context:"header",styleClass:L?"":"sapContrastPlus"});r.write("</"+H+">");}if(S){var b=p._getSubHeaderTag(o);r.write("<"+b);r.addClass("sapMPageSubHeader");r.writeAccessibilityState(p,p._formatLandmarkInfo(o,"SubHeader"));if(S.getDesign()==a.ToolbarDesign.Info){r.addClass("sapMPageSubHeaderInfoBar");}r.writeClasses();r.write(">");this.renderBarControl(r,p,S,{context:"subHeader",styleClass:L?"":"sapContrastPlus"});r.write("</"+b+">");}r.write('<section id="'+p.getId()+'-cont"');r.writeAccessibilityState(p,p._formatLandmarkInfo(o,"Content"));if(p.getEnableScrolling()){r.addClass("sapMPageEnableScrolling");r.writeClasses();}r.write('>');var c=p.getContent();var l=c.length;for(var i=0;i<l;i++){r.renderControl(c[i]);}r.write("</section>");if(f){var F=p._getFooterTag(o);r.write("<"+F);r.addClass("sapMPageFooter");if(!p.getShowFooter()){r.addClass("sapUiHidden");}r.writeAccessibilityState(p,p._formatLandmarkInfo(o,"Footer"));r.writeClasses();r.write(">");this.renderBarControl(r,p,f,{context:"footer"});r.write("</"+F+">");}r.write("</div>");};P.renderBarControl=function(r,p,b,o){if(!b){return;}b._applyContextClassFor(o.context.toLowerCase());b.addStyleClass(o.styleClass||"");r.renderControl(b);};P._isLightHeader=function(p){var c=p,o=p.getParent(),s,C;while(o){s=(o&&o.getMetadata().getName())||"";C=c.getMetadata().getName();if(((s==="sap.m.Popover"||s==="sap.m.Dialog")&&C==="sap.m.NavContainer")||((s==="sap.ui.comp.smartvariants.SmartVariantManagement"||s==="sap.ui.comp.smartvariants.SmartVariantManagementUi2"||s==="sap.ui.comp.variants.VariantManagement"||s==="sap.ui.fl.variants.VariantManagement")&&C==="sap.m.ResponsivePopover")){return true;}if(o&&["sap.m.SplitApp","sap.m.SplitContainer"].indexOf(s)>-1&&C==="sap.m.NavContainer"&&/\-Master$/.test(c.getId())){return true;}c=o;o=c.getParent();}return false;};return P;},true);
sap.ui.predefine('sap/m/Popover',['./Bar','./Button','./InstanceManager','./library','./Title','sap/ui/core/Control','sap/ui/core/Popup','sap/ui/core/delegate/ScrollEnablement','sap/ui/core/theming/Parameters','sap/ui/Device','sap/ui/base/ManagedObject','sap/ui/core/library','sap/ui/core/Element','sap/ui/core/ResizeHandler','./PopoverRenderer',"sap/ui/dom/containsOrEquals","sap/ui/thirdparty/jquery","sap/ui/dom/getScrollbarSize","sap/ui/events/KeyCodes","sap/base/Log","sap/ui/dom/jquery/Focusable","sap/ui/dom/jquery/rect","sap/ui/dom/jquery/control"],function(B,a,I,l,T,C,P,S,b,D,M,c,E,R,d,f,q,g,K,L){"use strict";var h=l.PopupHelper;var O=c.OpenState;var i=l.PlacementType;var s=20;var j=C.extend("sap.m.Popover",{metadata:{interfaces:["sap.ui.core.PopupInterface"],library:"sap.m",properties:{placement:{type:"sap.m.PlacementType",group:"Behavior",defaultValue:i.Right},showHeader:{type:"boolean",group:"Appearance",defaultValue:true},title:{type:"string",group:"Appearance",defaultValue:null},modal:{type:"boolean",group:"Behavior",defaultValue:false},offsetX:{type:"int",group:"Appearance",defaultValue:0},offsetY:{type:"int",group:"Appearance",defaultValue:0},showArrow:{type:"boolean",group:"Appearance",defaultValue:true},contentWidth:{type:"sap.ui.core.CSSSize",group:"Dimension",defaultValue:null},contentMinWidth:{type:"sap.ui.core.CSSSize",group:"Dimension",defaultValue:""},contentHeight:{type:"sap.ui.core.CSSSize",group:"Dimension",defaultValue:null},enableScrolling:{type:"boolean",group:"Misc",defaultValue:true,deprecated:true},verticalScrolling:{type:"boolean",group:"Misc",defaultValue:true},horizontalScrolling:{type:"boolean",group:"Misc",defaultValue:true},bounce:{type:"boolean",group:"Behavior",defaultValue:null},resizable:{type:"boolean",group:"Dimension",defaultValue:false},ariaModal:{type:"boolean",group:"Misc",defaultValue:true,visibility:"hidden"}},defaultAggregation:"content",aggregations:{content:{type:"sap.ui.core.Control",multiple:true,singularName:"content"},customHeader:{type:"sap.ui.core.Control",multiple:false},subHeader:{type:"sap.ui.core.Control",multiple:false},footer:{type:"sap.ui.core.Control",multiple:false},_internalHeader:{type:"sap.m.Bar",multiple:false,visibility:"hidden"},beginButton:{type:"sap.ui.core.Control",multiple:false},endButton:{type:"sap.ui.core.Control",multiple:false}},associations:{leftButton:{type:"sap.m.Button",multiple:false,deprecated:true},rightButton:{type:"sap.m.Button",multiple:false,deprecated:true},initialFocus:{type:"sap.ui.core.Control",multiple:false},ariaLabelledBy:{type:"sap.ui.core.Control",multiple:true,singularName:"ariaLabelledBy"},ariaDescribedBy:{type:"sap.ui.core.Control",multiple:true,singularName:"ariaDescribedBy"}},events:{afterOpen:{parameters:{openBy:{type:"sap.ui.core.Control"}}},afterClose:{parameters:{openBy:{type:"sap.ui.core.Control"}}},beforeOpen:{parameters:{openBy:{type:"sap.ui.core.Control"}}},beforeClose:{parameters:{openBy:{type:"sap.ui.core.Control"}}}},designtime:"sap/m/designtime/Popover.designtime"}});j._bIOS7=D.os.ios&&D.os.version>=7&&D.os.version<8&&D.browser.name==="sf";j.prototype.init=function(){this._arrowOffsetThreshold=4;this._marginTopInit=false;this._marginTop=48;this._marginLeft=10;this._marginRight=10;this._marginBottom=10;this._minDimensions={width:100,height:32};this._initialWindowDimensions={};this.oPopup=new P();this.oPopup.setShadow(true);this.oPopup.setAutoClose(true);this.oPopup.setAnimations(q.proxy(this._openAnimation,this),q.proxy(this._closeAnimation,this));this._placements=[i.Top,i.Right,i.Bottom,i.Left,i.Vertical,i.Horizontal,i.Auto,i.VerticalPreferedTop,i.VerticalPreferedBottom,i.HorizontalPreferedLeft,i.HorizontalPreferedRight,i.VerticalPreferredTop,i.VerticalPreferredBottom,i.HorizontalPreferredLeft,i.HorizontalPreferredRight,i.PreferredRightOrFlip,i.PreferredLeftOrFlip,i.PreferredTopOrFlip,i.PreferredBottomOrFlip];this._myPositions=["center bottom","begin center","center top","end center"];this._atPositions=["center top","end center","center bottom","begin center"];this._offsets=["0 -18","18 0","0 18","-18 0"];this._arrowOffset=18;this._followOfTolerance=32;this._scrollContentList=["sap.m.NavContainer","sap.m.Page","sap.m.ScrollContainer","sap.m.SimpleFixFlex"];this._fnAdjustPositionAndArrow=q.proxy(this._adjustPositionAndArrow,this);this._fnOrientationChange=q.proxy(this._onOrientationChange,this);this._fnFollowOf=q.proxy(function(m){var o=m.lastOfRect,r=m.currentOfRect;if(!D.system.desktop||(Math.abs(o.top-r.top)<=this._followOfTolerance&&Math.abs(o.left-r.left)<=this._followOfTolerance)||(Math.abs(o.top+o.height-r.top-r.height)<=this._followOfTolerance&&Math.abs(o.left+o.width-r.left-r.width)<=this._followOfTolerance)){this.oPopup._applyPosition(this.oPopup._oLastPosition,true);}else{this.close();}},this);this.setFollowOf(true);this._oRestoreFocusDelegate={onBeforeRendering:function(){var A=q(document.activeElement),o=A.control(0);this._sFocusControlId=o&&o.getId();},onAfterRendering:function(){if(this._sFocusControlId&&!f(this.getDomRef(),document.activeElement)){sap.ui.getCore().byId(this._sFocusControlId).focus();}}};var t=this;this.oPopup._applyPosition=function(p,F){var e=this.getOpenState(),o;if(e===O.CLOSING||e===O.CLOSED){return;}if(F){t._storeScrollPosition();}t._clearCSSStyles();var k=t._placements.indexOf(t.getPlacement());if(k>3&&!t._bPosCalced){t._calcPlacement();return;}t._bPosCalced=false;if(t._oOpenBy instanceof E){p.of=t._getOpenByDomRef();}if(!p.of){L.warning("sap.m.Popover: in function applyPosition, the openBy element doesn't have any DOM output. "+t);return;}if(!f(document.documentElement,p.of)&&p.of.id){o=q(document.getElementById(p.of.id));if(o){p.of=o;}else{L.warning("sap.m.Popover: in function applyPosition, the openBy element's DOM is already detached from DOM tree and can't be found again by the same id. "+t);return;}}var r=q(p.of).rect();var $=q(t.getWithinAreaDomRef());if(F&&$.height()==t._initialWindowDimensions.height&&(r.top+r.height<=0||r.top>=$.height()||r.left+r.width<=0||r.left>=$.width())){t.close();return;}var m=t.getDomRef("scroll");if(!D.system.desktop){q(window).scrollLeft(0);}t._deregisterContentResizeHandler();P.prototype._applyPosition.call(this,p);t._fnAdjustPositionAndArrow();t._restoreScrollPosition();t._registerContentResizeHandler(m);};this.oPopup.close=function(e){var k=typeof e==="boolean";var m=t.oPopup.getOpenState();if(e!==true&&(this.touchEnabled||!this._isFocusInsidePopup())&&this.isOpen()&&!(m===O.CLOSED||m===O.CLOSING)){t.fireBeforeClose({openBy:t._oOpenBy});}t._deregisterContentResizeHandler();P.prototype.close.apply(this,k?[]:arguments);t.removeDelegate(t._oRestoreFocusDelegate);};};j.prototype.getWithinAreaDomRef=function(){return P.getWithinAreaDomRef();};j.prototype.onBeforeRendering=function(){var n,p,$;if(this.hasStyleClass("sapUiPopupWithPadding")){L.warning("Usage of CSS class 'sapUiPopupWithPadding' is deprecated. Use 'sapUiContentPadding' instead",null,"sap.m.Popover");}if(!this._initialWindowDimensions.width||!this._initialWindowDimensions.height){$=q(this.getWithinAreaDomRef());this._initialWindowDimensions={width:$.width(),height:$.height()};}if(!this.getHorizontalScrolling()&&!this.getVerticalScrolling()){this._forceDisableScrolling=true;}else if(!this._bVScrollingEnabled&&!this._bHScrollingEnabled&&this._hasSingleScrollableContent()){this._forceDisableScrolling=true;L.info("VerticalScrolling and horizontalScrolling in sap.m.Popover with ID "+this.getId()+" has been disabled because there's scrollable content inside");}else{this._forceDisableScrolling=false;}if(!this._forceDisableScrolling){if(!this._oScroller){this._oScroller=new S(this,this.getId()+"-scroll",{horizontal:this.getHorizontalScrolling(),vertical:this.getVerticalScrolling()});}}if(this._bContentChanged){this._bContentChanged=false;n=this._getSingleNavContent();p=this._getSinglePageContent();if(n&&!this.getModal()&&!D.system.phone&&!q.sap.simulateMobileOnDesktop){n.attachEvent("afterNavigate",function(e){var o=this.getDomRef();if(o){var F=this.$().firstFocusableDomRef()||o;F.focus();}},this);}if(n||p){p=p||n.getCurrentPage();if(p&&p._getAnyHeader){this.addStyleClass("sapMPopoverWithHeaderCont");}if(n){n.attachEvent("navigate",function(e){var o=e.getParameter("to");if(o instanceof C&&o.isA("sap.m.Page")){this.$().toggleClass("sapMPopoverWithHeaderCont",!!o._getAnyHeader());}},this);}}}};j.prototype.onAfterRendering=function(){var $,e,k;if(!this._marginTopInit&&this.getShowArrow()){this._marginTop=2;if(this._oOpenBy){$=q(this._getOpenByDomRef());if(!($.closest("header.sapMIBar").length>0)){e=$.closest(".sapMPage");if(e.length>0){k=e.children("header.sapMIBar");if(k.length>0){this._marginTop+=k.outerHeight();}}}this._marginTopInit=true;}}};j.prototype.exit=function(){this._deregisterContentResizeHandler();D.resize.detachHandler(this._fnOrientationChange);I.removePopoverInstance(this);this.removeDelegate(this._oRestoreFocusDelegate);this._oRestoreFocusDelegate=null;if(this.oPopup){this.oPopup.detachClosed(this._handleClosed,this);this.oPopup.destroy();this.oPopup=null;}if(this._oScroller){this._oScroller.destroy();this._oScroller=null;}if(this._internalHeader){this._internalHeader.destroy();this._internalHeader=null;}if(this._headerTitle){this._headerTitle.destroy();this._headerTitle=null;}};j.prototype.openBy=function(o,e){var p=this.oPopup,k=this.oPopup.getOpenState(),F=this._getInitialFocusId(),m,n,r,t;m=(o.getDomRef&&o.getDomRef())||o;t=q(m).closest(".sapUiSizeCompact");r=b.get("_sap_m_Popover_ForceCompactArrowOffset")==="true";this._bSizeCompact=l._bSizeCompact||!!t.length||this.hasStyleClass("sapUiSizeCompact");this._bUseCompactArrow=this._bSizeCompact||r;this._adaptPositionParams();if(k===O.OPEN||k===O.OPENING){if(this._oOpenBy===o){return this;}else{var u=function(){p.detachClosed(u,this);this.openBy(o);};p.attachClosed(u,this);this.close();return this;}}if(!o){return this;}if(D.support.touch){D.resize.attachHandler(this._fnOrientationChange);}if(!this._oOpenBy||o!==this._oOpenBy){this._oOpenBy=o;}this.fireBeforeOpen({openBy:this._oOpenBy});p.attachOpened(this._handleOpened,this);p.attachClosed(this._handleClosed,this);p.setInitialFocusId(F);n=this._placements.indexOf(this.getPlacement());if(n>-1){m=this._getOpenByDomRef();if(!m){L.error("sap.m.Popover id = "+this.getId()+": is opened by a control which isn't rendered yet.");return this;}p.setAutoCloseAreas([o]);p.setContent(this);if(n<=3){p.setPosition(this._myPositions[n],this._atPositions[n],m,this._calcOffset(this._offsets[n]),"fit");}else{p._oPosition.of=m;}var v=this;var w=function(){if(p.bIsDestroyed){return;}if(p.getOpenState()===O.CLOSING){if(v._sOpenTimeout){clearTimeout(v._sOpenTimeout);v._sOpenTimeout=null;}v._sOpenTimeout=setTimeout(w,150);}else{v._oPreviousFocus=P.getCurrentFocusInfo();p.open();v.addDelegate(v._oRestoreFocusDelegate,v);if(!e){I.addPopoverInstance(v);}}};w();}else{L.error(this.getPlacement()+"is not a valid value! It can only be top, right, bottom or left");}return this;};j.prototype.close=function(){var e=this.oPopup.getOpenState(),k,A;if(e===O.CLOSED||e===O.CLOSING){return this;}this.fireBeforeClose({openBy:this._oOpenBy});this.oPopup.close(true);if(this._oPreviousFocus){A=document.activeElement||{};k=(this._oPreviousFocus.sFocusId===sap.ui.getCore().getCurrentFocusedControlId())||(this._oPreviousFocus.sFocusId===A.id);if(!k){P.applyFocusInfo(this._oPreviousFocus);this._oPreviousFocus=null;}}return this;};j.prototype.isOpen=function(){return this.oPopup&&this.oPopup.isOpen();};j.prototype.setFollowOf=function(v){if(v){this.oPopup.setFollowOf(this._fnFollowOf);}else{this.oPopup.setFollowOf(false);}return this;};j.prototype._clearCSSStyles=function(){var o=this.getDomRef().style,$=this.$("cont"),e=$.children(".sapMPopoverScroll"),k=$[0].style,m=e[0].style,n=this.getContentWidth(),p=this.getContentHeight(),r=this.$("arrow"),w,W,t=q(this.getWithinAreaDomRef());if(n.indexOf("%")>0){w=t.width();n=h.calcPercentageSize(n,w);}if(p.indexOf("%")>0){W=t.height();p=h.calcPercentageSize(p,W);}k.width=n||"";k.height=p||"";k.maxWidth="";k.maxHeight="";o.left="";o.right="";o.top="";o.bottom="";o.width="";o.height="";o.overflow="";m.width="";m.display="";r.removeClass("sapMPopoverArrRight sapMPopoverArrLeft sapMPopoverArrDown sapMPopoverArrUp sapMPopoverCrossArr sapMPopoverFooterAlignArr sapMPopoverHeaderAlignArr sapContrast sapContrastPlus");r.css({left:"",top:""});};j.prototype._onOrientationChange=function(){var e=(this.oPopup&&this.oPopup.getOpenState())||{};if(e!==O.OPEN&&e!==O.OPENING){return;}this.oPopup._applyPosition(this.oPopup._oLastPosition,true);this._includeScrollWidth();};j.prototype._includeScrollWidth=function(){var e=this.getContentWidth(),$=this.$(),m=Math.floor(window.innerWidth*0.9),k=this.$('cont');if(!k[0]){return;}if(D.system.desktop&&!D.browser.chrome){var H=k[0].clientHeight<k[0].scrollHeight;if(H&&(!e||e==='auto')&&k.width()<m){$.addClass("sapMPopoverVerticalScrollIncluded");k.css({"padding-right":s});}else{$.removeClass("sapMPopoverVerticalScrollIncluded");k.css({"padding-right":""});}}};j.prototype._handleOpened=function(){var t=this;this.oPopup.detachOpened(this._handleOpened,this);if(!D.support.touch){setTimeout(function(){!t.bIsDestroyed&&D.resize.attachHandler(t._fnOrientationChange);},0);}var F=this._getInitialFocusId(),o=sap.ui.getCore().byId(F),e=(F?window.document.getElementById(F):null);if(o&&o.getFocusDomRef()){o.getFocusDomRef().focus();}else if(!o&&e){e.focus();}this.fireAfterOpen({openBy:this._oOpenBy});};j.prototype._handleClosed=function(){this.oPopup.detachClosed(this._handleClosed,this);D.resize.detachHandler(this._fnOrientationChange);I.removePopoverInstance(this);if(!this.oPopup._bModal&&!D.system.desktop&&document.activeElement&&!q(document.activeElement).is(":visible")){document.activeElement.blur();}this.fireAfterClose({openBy:this._oOpenBy});};j.prototype.onfocusin=function(e){var o=e.target,$=this.$();if(o.id===this.getId()+"-firstfe"){var k=$.lastFocusableDomRef();if(k){k.focus();}}else if(o.id===this.getId()+"-lastfe"){var F=$.firstFocusableDomRef();if(F){F.focus();}}};j.prototype.onkeydown=function(e){var k=K,m=e.which||e.keyCode,A=e.altKey;if(m===k.ESCAPE||(A&&m===k.F4)){if(e.originalEvent&&e.originalEvent._sapui_handledByControl){return;}this.close();e.stopPropagation();e.preventDefault();}};j.prototype.onmousedown=function(o){var r=sap.ui.getCore().getConfiguration().getRTL();if(!o.target.classList.contains("sapMPopoverResizeHandle")){return;}var $=q(document);var k=this.$();var t=this;k.addClass('sapMPopoverResizing');o.preventDefault();o.stopPropagation();var m={x:o.pageX,y:o.pageY,width:k.width(),height:k.height()};$.on("mousemove.sapMPopover",function(e){var w,n;if(r){w=m.width+m.x-e.pageX;n=m.height+(m.y-e.pageY);}else{w=m.width+e.pageX-m.x;n=m.height+(m.y-e.pageY);}t.setContentWidth(Math.max(w,t._minDimensions.width)+'px');t.setContentHeight(Math.max(n,t._minDimensions.height)+'px');});$.on("mouseup.sapMPopover",function(){k.removeClass("sapMPopoverResizing");$.off("mouseup.sapMPopover, mousemove.sapMPopover");});};j.prototype._hasSingleNavContent=function(){return!!this._getSingleNavContent();};j.prototype._getSingleNavContent=function(){var e=this._getAllContent();while(e.length===1&&e[0]instanceof C&&e[0].isA("sap.ui.core.mvc.View")){e=e[0].getContent();}if(e.length===1&&e[0]instanceof C&&e[0].isA("sap.m.NavContainer")){return e[0];}else{return null;}};j.prototype._getSinglePageContent=function(){var e=this._getAllContent();while(e.length===1&&e[0]instanceof C&&e[0].isA("sap.ui.core.mvc.View")){e=e[0].getContent();}if(e.length===1&&e[0]instanceof C&&e[0].isA("sap.m.Page")){return e[0];}else{return null;}};j.prototype._hasSinglePageContent=function(){var e=this._getAllContent();while(e.length===1&&e[0]instanceof C&&e[0].isA("sap.ui.core.mvc.View")){e=e[0].getContent();}if(e.length===1&&e[0]instanceof C&&e[0].isA("sap.m.Page")){return true;}else{return false;}};j.prototype._hasSingleScrollableContent=function(){var e=this._getAllContent();while(e.length===1&&e[0]instanceof C&&e[0].isA("sap.ui.core.mvc.View")){e=e[0].getContent();}if(e.length===1&&e[0]instanceof C&&e[0].isA(this._scrollContentList)){return true;}return false;};j.prototype._getOffsetX=function(){var F=this.getPlacement(),e=0;if(this._bHorizontalFlip){var p=this._getOpenByDomRef();var H=p!==undefined;var k=H?p.getBoundingClientRect().width:0;e=F===i.PreferredRightOrFlip?Math.abs(k):-Math.abs(k);}var r=sap.ui.getCore().getConfiguration().getRTL();var o=e*(r?-1:1)+this.getOffsetX()*(r?-1:1);return o;};j.prototype._getOffsetY=function(){var F=this.getPlacement(),e=0;if(this._bVerticalFlip){var p=this._getOpenByDomRef();var H=p!==undefined;var k=H?p.getBoundingClientRect().height:0;e=F==="PreferredTopOrFlip"?-Math.abs(k):Math.abs(k);}return e+this.getOffsetY();};j.prototype._calcOffset=function(o){var e=this._getOffsetX(),k=this._getOffsetY();var p=o.split(" ");var o=(parseInt(p[0])+e)+" "+(parseInt(p[1])+k);return o;};j.prototype._calcPlacement=function(){var p=this.getPlacement();var o=this._getOpenByDomRef();switch(p){case i.Auto:this._calcAuto();break;case i.Vertical:case i.VerticalPreferedTop:case i.VerticalPreferredTop:case i.VerticalPreferedBottom:case i.VerticalPreferredBottom:case i.PreferredTopOrFlip:case i.PreferredBottomOrFlip:this._calcVertical();break;case i.Horizontal:case i.HorizontalPreferedLeft:case i.HorizontalPreferredLeft:case i.HorizontalPreferedRight:case i.HorizontalPreferredRight:case i.PreferredRightOrFlip:case i.PreferredLeftOrFlip:this._calcHorizontal();break;}this._bPosCalced=true;var e=this._placements.indexOf(this._oCalcedPos);this.oPopup.setPosition(this._myPositions[e],this._atPositions[e],o,this._calcOffset(this._offsets[e]),"fit");};j.prototype._getDocHeight=function(){var e=document.body,k=document.documentElement,o=q(this.getWithinAreaDomRef()).offset()||{top:0};return o.top+Math.max(e.scrollHeight,e.offsetHeight,k.clientHeight,k.offsetHeight);};j.prototype._calcVertical=function(){var $=q(this._getOpenByDomRef());var H=$[0]!==undefined;var p=this.getPlacement()===i.VerticalPreferedTop||this.getPlacement()===i.VerticalPreferredTop;var e=this.getPlacement()===i.VerticalPreferedBottom||this.getPlacement()===i.VerticalPreferredBottom;var k=this.getPlacement()===i.PreferredTopOrFlip;var m=this.getPlacement()===i.PreferredBottomOrFlip;var n=H?$[0].getBoundingClientRect().top:0;var o=H?$[0].getBoundingClientRect().height:0;var r=this._getOffsetY();var t=n-this._marginTop+r;var u=this.$().outerHeight();var v=this._getDocHeight()-($.offset().top+o+this._marginBottom+r);if(p&&t>u+this._arrowOffset){this._bVerticalFlip=false;this._oCalcedPos=i.Top;}else if(k){if(t>u+this._arrowOffset){this._bVerticalFlip=false;this._oCalcedPos=i.Top;}else{this._bVerticalFlip=true;this._oCalcedPos=i.Bottom;}}else if(e&&v>u+this._arrowOffset){this._oCalcedPos=i.Bottom;this._bVerticalFlip=false;}else if(m){if(v>u+this._arrowOffset){this._bVerticalFlip=false;this._oCalcedPos=i.Bottom;}else{this._bVerticalFlip=true;this._oCalcedPos=i.Top;}}else if(t>v){this._oCalcedPos=i.Top;}else{this._oCalcedPos=i.Bottom;}};j.prototype._calcHorizontal=function(){var $=q(this._getOpenByDomRef());var H=$[0]!==undefined;var p=this.getPlacement()===i.HorizontalPreferedLeft||this.getPlacement()===i.HorizontalPreferredLeft;var e=this.getPlacement()===i.HorizontalPreferedRight||this.getPlacement()===i.HorizontalPreferredRight;var k=H?$[0].getBoundingClientRect().left:0;var m=H?$[0].getBoundingClientRect().width:0;var o=this._getOffsetX();var n=k-this._marginLeft+o;var r=k+m;var t=q(this.getWithinAreaDomRef());var u=t.width()-r-this._marginRight-o;var v=this.$().outerWidth();var w=this.getPlacement()===i.PreferredLeftOrFlip;var x=this.getPlacement()===i.PreferredRightOrFlip;var y=sap.ui.getCore().getConfiguration().getRTL();if(p&&n>v+this._arrowOffset){this._bHorizontalFlip=false;this._oCalcedPos=y?i.Right:i.Left;}else if(w){if(n>v+this._arrowOffset){this._bHorizontalFlip=false;this._oCalcedPos=y?i.Right:i.Left;}else{this._bHorizontalFlip=true;this._oCalcedPos=y?i.Left:i.Right;}}else if(e&&u>v+this._arrowOffset){this._bHorizontalFlip=false;this._oCalcedPos=y?i.Left:i.Right;}else if(x){if(u>v+this._arrowOffset){this._bHorizontalFlip=false;this._oCalcedPos=y?i.Left:i.Right;}else{this._bHorizontalFlip=true;this._oCalcedPos=y?i.Right:i.Left;}}else if(n>u){this._oCalcedPos=y?i.Right:i.Left;}else{this._oCalcedPos=y?i.Left:i.Right;}};j.prototype._calcAuto=function(){var $=q(this.getWithinAreaDomRef());if($.width()>$.height()){if(this._checkHorizontal()){this._calcHorizontal();}else if(this._checkVertical()){this._calcVertical();}else{this._calcBestPos();}}else{if(this._checkVertical()){this._calcVertical();}else if(this._checkHorizontal()){this._calcHorizontal();}else{this._calcBestPos();}}};j.prototype._checkHorizontal=function(){var $=q(this._getOpenByDomRef());var H=$[0]!==undefined;var p=H?$[0].getBoundingClientRect().left:0;var e=H?$[0].getBoundingClientRect().width:0;var o=this._getOffsetX();var k=p-this._marginLeft+o;var m=p+e;var n=q(this.getWithinAreaDomRef());var r=n.width()-m-this._marginRight-o;var t=this.$();var w=t.outerWidth()+this._arrowOffset;if((w<=k)||(w<=r)){return true;}};j.prototype._checkVertical=function(){var $=q(this._getOpenByDomRef());var H=$[0]!==undefined;var p=H?$[0].getBoundingClientRect().top:0;var e=H?$[0].getBoundingClientRect().height:0;var o=this._getOffsetY();var t=p-this._marginTop+o;var k=this._getDocHeight()-$.offset().top-e-this._marginBottom-o;var m=this.$();var n=m.outerHeight()+this._arrowOffset;if((n<=t)||(n<=k)){return true;}};j.prototype._calcBestPos=function(){var $=this.$();var H=$.outerHeight();var w=$.outerWidth();var r=sap.ui.getCore().getConfiguration().getRTL();var e=q(this._getOpenByDomRef());var k=e[0]!==undefined;var p=k?e[0].getBoundingClientRect().left:0;var m=k?e[0].getBoundingClientRect().top:0;var n=k?e[0].getBoundingClientRect().width:0;var o=k?e[0].getBoundingClientRect().height:0;var t=this._getOffsetX();var u=this._getOffsetY();var v=m-this._marginTop+u;var x=this._getDocHeight()-e.offset().top-o-this._marginBottom-u;var y=p-this._marginLeft+t;var z=p+n;var A=q(this.getWithinAreaDomRef());var F=A.width()-z-this._marginRight-t;var G=H*w;var J;var N;if((A.height()-this._marginTop-this._marginBottom)>=H){J=H;}else{J=A.height()-this._marginTop-this._marginBottom;}if((A.width()-this._marginLeft-this._marginRight)>=w){N=w;}else{N=A.width()-this._marginLeft-this._marginRight;}var Q=(J*(y))/G;var U=(J*(F))/G;var V=(N*(v))/G;var W=(N*(x))/G;var X=Math.max(Q,U);var Y=Math.max(V,W);if(X>Y){if(X===Q){this._oCalcedPos=r?i.Right:i.Left;}else if(X===U){this._oCalcedPos=r?i.Left:i.Right;}}else if(Y>X){if(Y===V){this._oCalcedPos=i.Top;}else if(Y===W){this._oCalcedPos=i.Bottom;}}else if(Y===X){if(A.height()>A.width()){if(Y===V){this._oCalcedPos=i.Top;}else if(Y===W){this._oCalcedPos=i.Bottom;}}else{if(X===Q){this._oCalcedPos=r?i.Right:i.Left;}else if(X===U){this._oCalcedPos=r?i.Left:i.Right;}}}};j.outerWidth=function(e,k){if(typeof window.SVGElement!=="undefined"&&e instanceof window.SVGElement){return e.getBoundingClientRect().width;}return q(e).outerWidth(!!k);};j.outerHeight=function(e,k){if(typeof window.SVGElement!=="undefined"&&e instanceof window.SVGElement){return e.getBoundingClientRect().height;}return q(e).outerHeight(!!k);};j.prototype._getPositionParams=function($,e,k,m){var o=window.getComputedStyle($[0]),n=window.getComputedStyle(k[0]),p=q(window),r=this.getDomRef().clientHeight!==this.getDomRef().scrollHeight?g().width:0,t=q(this.getWithinAreaDomRef()),w=t.offset()||{top:0,left:0},u={};u._$popover=$;u._$parent=q(this._getOpenByDomRef());u._$arrow=e;u._$content=k;u._$scrollArea=m;u._$header=$.children(".sapMPopoverHeader");u._$subHeader=$.children(".sapMPopoverSubHeader");u._$footer=$.children(".sapMPopoverFooter");u._fWindowTop=p.scrollTop();u._fWindowRight=p.width();u._fWindowBottom=(j._bIOS7&&D.orientation.landscape&&window.innerHeight)?window.innerHeight:p.height();u._fWindowLeft=p.scrollLeft();u._fWindowWidth=window.innerWidth;u._fWindowHeight=window.innerHeight;u._fWithinAreaWidth=Math.min(t.outerWidth(),u._fWindowWidth);u._fWithinAreaHeight=Math.min(t.outerHeight(),u._fWindowHeight);u._fDocumentWidth=u._fWindowLeft+u._fWindowRight;u._fDocumentHeight=u._fWindowTop+u._fWindowBottom;u._fArrowHeight=e.outerHeight(true);u._fPopoverWidth=j.outerWidth($[0]);u._fPopoverInnerWidth=u._$scrollArea?(u._$scrollArea.width()+r):0;u._fPopoverHeight=j.outerHeight($[0]);u._fHeaderHeight=u._$header.length>0?u._$header.outerHeight(true):0;u._fSubHeaderHeight=u._$subHeader.length>0?u._$subHeader.outerHeight(true):0;u._fFooterHeight=u._$footer.length>0?u._$footer.outerHeight(true):0;u._fPopoverOffset=$.offset();u._fPopoverOffsetX=this._getOffsetX();u._fPopoverOffsetY=this._getOffsetY();u._fPopoverMarginTop=u._fWindowTop+this._marginTop+w.top;u._fPopoverMarginLeft=u._fWindowLeft+this._marginLeft+w.left;u._fPopoverMarginRight=u._fWindowWidth-w.left-u._fWithinAreaWidth+this._marginRight;u._fPopoverMarginBottom=u._fWindowHeight-w.top-u._fWithinAreaHeight+this._marginBottom;u._fPopoverBorderTop=parseFloat(o.borderTopWidth);u._fPopoverBorderRight=parseFloat(o.borderRightWidth);u._fPopoverBorderBottom=parseFloat(o.borderBottomWidth);u._fPopoverBorderLeft=parseFloat(o.borderLeftWidth);u._fContentMarginTop=parseFloat(n.marginTop);u._fContentMarginBottom=parseFloat(n.marginBottom);return u;};j.prototype._recalculateMargins=function(e,p){var n;var r=sap.ui.getCore().getConfiguration().getRTL();switch(e){case i.Left:if(r){p._fPopoverMarginLeft=p._$parent.offset().left+j.outerWidth(p._$parent[0],false)+this._arrowOffset-p._fPopoverOffsetX;}else{p._fPopoverMarginRight=p._fWindowWidth-p._$parent.offset().left+this._arrowOffset-p._fPopoverOffsetX;}break;case i.Right:if(r){p._fPopoverMarginRight=p._fWindowWidth-j.outerWidth(p._$parent[0],false)-p._$parent.offset().left+this._arrowOffset;}else{p._fPopoverMarginLeft=p._$parent.offset().left+j.outerWidth(p._$parent[0],false)+this._arrowOffset+p._fPopoverOffsetX;}break;case i.Top:n=p._fWindowHeight-p._$parent.offset().top+this._arrowOffset-p._fPopoverOffsetY;p._fPopoverMarginBottom=n>p._fPopoverMarginBottom?n:p._fPopoverMarginBottom;break;case i.Bottom:p._fPopoverMarginTop=p._$parent.offset().top+j.outerHeight(p._$parent[0],false)+this._arrowOffset+p._fPopoverOffsetY;break;}return p;};j.prototype._getPopoverPositionCss=function(p){var e,r,t,k,m=p._fDocumentWidth-p._fPopoverOffset.left-p._fPopoverWidth,n=p._fDocumentHeight-p._fPopoverOffset.top-p._fPopoverHeight,o=(p._fDocumentWidth-p._fPopoverMarginRight-p._fPopoverMarginLeft)<p._fPopoverWidth,u=(p._fDocumentHeight-p._fPopoverMarginTop-p._fPopoverMarginBottom)<p._fPopoverHeight,v=p._fPopoverOffset.left<p._fPopoverMarginLeft,w=this.getVerticalScrolling()&&(p._fPopoverWidth!==p._fPopoverInnerWidth)?g().width:0,x=m<(p._fPopoverMarginRight+w),y=p._fPopoverOffset.top<p._fPopoverMarginTop,z=n<p._fPopoverMarginBottom,A=sap.ui.getCore().getConfiguration().getRTL();if(o){e=p._fPopoverMarginLeft;r=p._fPopoverMarginRight;}else{if(v){e=p._fPopoverMarginLeft;if(A){r="";}}else if(x){r=p._fPopoverMarginRight;e="";}}if(u){t=p._fPopoverMarginTop;k=p._fPopoverMarginBottom;}else{if(y){t=p._fPopoverMarginTop;}else if(z){k=p._fPopoverMarginBottom;t="";}}var F={top:t,bottom:k-p._fWindowTop,left:e,right:typeof r==="number"?r-p._fWindowLeft:r};return F;};j.prototype._getContentDimensionsCss=function(p){var o={},A=p._$content.height(),m=this._getMaxContentWidth(p),e=this._getMaxContentHeight(p);e=Math.max(e,0);o["max-width"]=m+"px";if(this.getContentHeight()||(A>e)){o["height"]=Math.min(e,A)+"px";}else{o["height"]="";o["max-height"]=e+"px";}return o;};j.prototype._getMaxContentWidth=function(p){var e=p._fPopoverBorderLeft+p._fPopoverBorderRight;return p._fDocumentWidth-p._fPopoverMarginLeft-p._fPopoverMarginRight-e;};j.prototype._getMaxContentHeight=function(p){var e=p._fHeaderHeight+p._fSubHeaderHeight+p._fFooterHeight+p._fContentMarginTop+p._fContentMarginBottom+p._fPopoverBorderTop+p._fPopoverBorderBottom;return p._fDocumentHeight-p._fPopoverMarginTop-p._fPopoverMarginBottom-e;};j.prototype._isHorizontalScrollbarNeeded=function(p){return this.getHorizontalScrolling()&&(p._$scrollArea.outerWidth(true)<=p._$content.width());};j.prototype._getArrowOffsetCss=function(e,p){var k,r=sap.ui.getCore().getConfiguration().getRTL();p._fPopoverWidth=p._$popover.outerWidth();p._fPopoverHeight=p._$popover.outerHeight();if(e===i.Left||e===i.Right){k=p._$parent.offset().top-p._$popover.offset().top-p._fPopoverBorderTop+p._fPopoverOffsetY+0.5*(j.outerHeight(p._$parent[0],false)-p._$arrow.outerHeight(false));k=Math.max(k,this._arrowOffsetThreshold);k=Math.min(k,p._fPopoverHeight-this._arrowOffsetThreshold-p._$arrow.outerHeight());return{"top":k};}else if(e===i.Top||e===i.Bottom){if(r){k=p._$popover.offset().left+j.outerWidth(p._$popover[0],false)-(p._$parent.offset().left+j.outerWidth(p._$parent[0],false))+p._fPopoverBorderRight+p._fPopoverOffsetX+0.5*(j.outerWidth(p._$parent[0],false)-p._$arrow.outerWidth(false));k=Math.max(k,this._arrowOffsetThreshold);k=Math.min(k,p._fPopoverWidth-this._arrowOffsetThreshold-p._$arrow.outerWidth(false));return{"right":k};}else{k=p._$parent.offset().left-p._$popover.offset().left-p._fPopoverBorderLeft+p._fPopoverOffsetX+0.5*(j.outerWidth(p._$parent[0],false)-p._$arrow.outerWidth(false));k=Math.max(k,this._arrowOffsetThreshold);k=Math.min(k,p._fPopoverWidth-this._arrowOffsetThreshold-p._$arrow.outerWidth(false));return{"left":k};}}};j.prototype._getArrowPositionCssClass=function(e){switch(e){case i.Left:return"sapMPopoverArrRight";case i.Right:return"sapMPopoverArrLeft";case i.Top:return"sapMPopoverArrDown";case i.Bottom:return"sapMPopoverArrUp";}};j.prototype._getArrowStyleCssClass=function(p){var A=p._$arrow.position(),F=p._$footer.position(),n=this._getSingleNavContent(),o=this._getSinglePageContent(),e=0;if(n||o){o=o||n.getCurrentPage();if(o){e=o._getAnyHeader().$().outerHeight();}}if((A.top+p._fArrowHeight)<(p._fHeaderHeight+p._fSubHeaderHeight)||((A.top+p._fArrowHeight)<e)){return"sapMPopoverHeaderAlignArr";}else if((A.top<(p._fHeaderHeight+p._fSubHeaderHeight))||(A.top<e)||(p._$footer.length&&((A.top+p._fArrowHeight)>F.top)&&(A.top<F.top))){return"sapMPopoverCrossArr";}else if(p._$footer.length&&(A.top>F.top)){return"sapMPopoverFooterAlignArr";}};j.prototype._getCalculatedPlacement=function(){return this._oCalcedPos||this.getPlacement();};j.prototype._adjustPositionAndArrow=function(){var e=this.oPopup.getOpenState();if(!(e===O.OPEN||e===O.OPENING)){return;}var $=this.$(),k=this.$("arrow"),m=this.$("cont"),n=this.$("scroll"),o=this._getCalculatedPlacement(),p=this._getPositionParams($,k,m,n);p=this._recalculateMargins(o,p);var r=this._getPopoverPositionCss(p),t=this._getContentDimensionsCss(p),H=this._isHorizontalScrollbarNeeded(p);$.css(r);m.css(t);if(H){n.css("display","block");}if(this.getShowArrow()){var A=this._getArrowOffsetCss(o,p),u=this._getArrowPositionCssClass(o),v,U;k.removeAttr("style");k.css(A);k.addClass(u);if(o===i.Top&&p._$footer&&p._$footer.size()){U=true;}if(o===i.Left||o===i.Right){v=this._getArrowStyleCssClass(p);if(v){k.addClass(v);if(v==="sapMPopoverFooterAlignArr"){U=true;}}}if(U){k.addClass("sapContrast sapContrastPlus");}$.css("overflow","visible");}this._afterAdjustPositionAndArrowHook();};j.prototype._adaptPositionParams=function(){if(this.getShowArrow()){this._marginLeft=10;this._marginRight=10;this._marginBottom=10;this._arrowOffset=18;this._offsets=["0 -18","18 0","0 18","-18 0"];if(this._bUseCompactArrow){this._arrowOffset=9;this._offsets=["0 -9","9 0","0 9","-9 0"];}this._myPositions=["center bottom","begin center","center top","end center"];this._atPositions=["center top","end center","center bottom","begin center"];}else{this._marginTop=0;this._marginLeft=0;this._marginRight=0;this._marginBottom=0;this._arrowOffset=0;this._offsets=["0 0","0 0","0 0","0 0"];this._myPositions=["begin bottom","begin center","begin top","end center"];this._atPositions=["begin top","end center","begin bottom","begin center"];}};j.prototype._afterAdjustPositionAndArrowHook=function(){};j.prototype._isPopupElement=function(o){var p=this._getOpenByDomRef();return!!(q(o).closest(sap.ui.getCore().getStaticAreaRef()).length)||!!(q(o).closest(p).length);};j.prototype._getAnyHeader=function(){if(this.getCustomHeader()){return this.getCustomHeader();}else{if(this.getShowHeader()){this._createInternalHeader();return this._internalHeader;}}};j.prototype._createInternalHeader=function(){if(!this._internalHeader){var t=this;this._internalHeader=new B(this.getId()+"-intHeader");this.setAggregation("_internalHeader",this._internalHeader);this._internalHeader.addEventDelegate({onAfterRendering:function(){t._restoreFocus();}});return true;}else{return false;}};j.prototype._animation=function(A,r){var t=null;var e=function(){r.off("webkitTransitionEnd transitionend");clearTimeout(t);setTimeout(function(){A();});};r.on("webkitTransitionEnd transitionend",e);t=setTimeout(e,this._getAnimationDuration());};j.prototype._getAnimationDuration=function(){return 300;};j.prototype._openAnimation=function(r,e,o){var t=this;setTimeout(function(){r.css("display","block");t._includeScrollWidth();t._animation(function(){if(!t.oPopup||t.oPopup.getOpenState()!==O.OPENING){return;}o();},r);},D.browser.firefox?50:0);};j.prototype._closeAnimation=function(r,e,k){r.addClass("sapMPopoverTransparent");this._animation(function(){k();r.removeClass("sapMPopoverTransparent");},r);};j.prototype._getInitialFocusId=function(){return this.getInitialFocus()||this._getFirstVisibleButtonId()||this._getFirstFocusableContentElementId()||this.getId();};j.prototype._getFirstVisibleButtonId=function(){var o=this.getBeginButton(),e=this.getEndButton(),k="";if(o&&o.getVisible()){k=o.getId();}else if(e&&e.getVisible()){k=e.getId();}return k;};j.prototype._getFirstFocusableContentElementId=function(){var r="";var $=this.$("cont");var F=$.firstFocusableDomRef();if(F){r=F.id;}return r;};j.prototype._restoreFocus=function(){if(this.isOpen()){var F=this._getInitialFocusId(),o=sap.ui.getCore().byId(F),e=(F?window.document.getElementById(F):null);if(o&&o.getFocusDomRef()){o.getFocusDomRef().focus();}else if(!o&&e){e.focus();}}};j.prototype._registerContentResizeHandler=function(o){if(!this._sResizeListenerId){this._sResizeListenerId=R.register(o||this.getDomRef("scroll"),this._fnOrientationChange);}};j.prototype._deregisterContentResizeHandler=function(){if(this._sResizeListenerId){R.deregister(this._sResizeListenerId);this._sResizeListenerId=null;}};j.prototype._storeScrollPosition=function(){var $=this.$("cont");if($.length>0){this._oScrollPosDesktop={x:$.scrollLeft(),y:$.scrollTop()};}};j.prototype._restoreScrollPosition=function(){if(!this._oScrollPosDesktop){return;}var $=this.$("cont");if($.length>0){$.scrollLeft(this._oScrollPosDesktop.x).scrollTop(this._oScrollPosDesktop.y);this._oScrollPosDesktop=null;}};j.prototype._repositionOffset=function(){var e=this.oPopup.getOpenState(),o,p;if(!(e===O.OPEN)){return this;}o=this.oPopup._oLastPosition;p=this._placements.indexOf(this.getPlacement());if(p===-1){return this;}if(p<4){o.offset=this._calcOffset(this._offsets[p]);this.oPopup._applyPosition(o);}else{this._calcPlacement();}return this;};j.prototype._getOpenByDomRef=function(){if(!this._oOpenBy){return null;}if(this._oOpenBy instanceof E){return(this._oOpenBy.getPopupAnchorDomRef&&this._oOpenBy.getPopupAnchorDomRef())||this._oOpenBy.getFocusDomRef();}else{return this._oOpenBy;}};j.prototype._getAccessibilityOptions=function(){var A,m={},H=this._getAnyHeader();m.role="dialog";m.modal=this.getProperty("ariaModal");if(this.getShowHeader()&&H&&H.getVisible()){A=Array.prototype.concat(H.getId(),this.getAssociation("ariaLabelledBy",[]));m.labelledby=A.join(' ');}return m;};j.prototype.setPlacement=function(p){this.setProperty("placement",p,true);this._bVerticalFlip=false;this._bHorizontalFlip=false;var e=this._placements.indexOf(p);if(e<=3){this._oCalcedPos=p;}return this;};j.prototype.setTitle=function(t){this.setProperty("title",t,true);if(this._headerTitle){this._headerTitle.setText(t);}else{this._headerTitle=new T(this.getId()+"-title",{text:this.getTitle(),level:"H2"});this._createInternalHeader();this._internalHeader.addContentMiddle(this._headerTitle);}return this;};j.prototype.setBeginButton=function(o){var e=this.getBeginButton();if(e===o){return this;}this._createInternalHeader();this._beginButton=o;if(o){if(e){this._internalHeader.removeAggregation("contentLeft",e,true);}this._internalHeader.addAggregation("contentLeft",o);}else{this._internalHeader.removeContentLeft(e);}return this;};j.prototype.setEndButton=function(o){var e=this.getEndButton();if(e===o){return this;}this._createInternalHeader();this._endButton=o;if(o){if(e){this._internalHeader.removeAggregation("contentRight",e,true);}this._internalHeader.insertAggregation("contentRight",o,1,true);this._internalHeader.invalidate();}else{this._internalHeader.removeContentRight(e);}return this;};j.prototype.setLeftButton=function(v){if(!(v instanceof a)){v=sap.ui.getCore().byId(v);}this.setBeginButton(v);return this.setAssociation("leftButton",v);};j.prototype.setRightButton=function(v){if(!(v instanceof a)){v=sap.ui.getCore().byId(v);}this.setEndButton(v);return this.setAssociation("rightButton",v);};j.prototype.setShowHeader=function(v){if(v===this.getShowHeader()||this.getCustomHeader()){return this;}if(v){if(this._internalHeader){this._internalHeader.$().show();}}else{if(this._internalHeader){this._internalHeader.$().hide();}}this.setProperty("showHeader",v,true);return this;};j.prototype.setModal=function(m,e){if(m===this.getModal()){return this;}this.oPopup.setModal(m,("sapMPopoverBLayer "+(e||"")).trim());this.setProperty("modal",m,true);return this;};j.prototype.setOffsetX=function(v){this.setProperty("offsetX",v,true);return this._repositionOffset();};j.prototype.setOffsetY=function(v){this.setProperty("offsetY",v,true);return this._repositionOffset();};j.prototype.setEnableScrolling=function(v){this.setHorizontalScrolling(v);this.setVerticalScrolling(v);var o=this.getEnableScrolling();if(o===v){return this;}this.setProperty("enableScrolling",v,true);return this;};j.prototype.setVerticalScrolling=function(v){this._bVScrollingEnabled=v;var o=this.getVerticalScrolling();if(o===v){return this;}this.$().toggleClass("sapMPopoverVerScrollDisabled",!v);this.setProperty("verticalScrolling",v,true);if(this._oScroller){this._oScroller.setVertical(v);}return this;};j.prototype.setHorizontalScrolling=function(v){this._bHScrollingEnabled=v;var o=this.getHorizontalScrolling();if(o===v){return this;}this.$().toggleClass("sapMPopoverHorScrollDisabled",!v);this.setProperty("horizontalScrolling",v,true);if(this._oScroller){this._oScroller.setHorizontal(v);}return this;};j.prototype.setResizable=function(v){if(!D.system.desktop){v=false;}return this.setProperty("resizable",v,true);};j.prototype._setAriaModal=function(v){return this.setProperty("ariaModal",v);};j.prototype.getScrollDelegate=function(){return this._oScroller;};j.prototype.setAggregation=function(A,o,e){if(A==="beginButton"||A==="endButton"){var F="set"+A.charAt(0).toUpperCase()+A.slice(1);return this[F](o);}else{return C.prototype.setAggregation.apply(this,arguments);}};j.prototype.getAggregation=function(A,o){if(A==="beginButton"||A==="endButton"){var e=this["_"+A];return e||o||null;}else{return C.prototype.getAggregation.apply(this,arguments);}};j.prototype.destroyAggregation=function(A,e){var o=q(document.activeElement).control(0);if(A==="beginButton"||A==="endButton"){var k=this["_"+A];if(k){k.destroy();this["_"+A]=null;}}else{C.prototype.destroyAggregation.apply(this,arguments);}o&&o.getDomRef()?o.focus():this.focus();return this;};j.prototype.invalidate=function(o){if(this.isOpen()){C.prototype.invalidate.apply(this,arguments);}return this;};j.prototype.addAggregation=function(A,o,e){if(A==="content"){this._bContentChanged=true;}C.prototype.addAggregation.apply(this,arguments);};j.prototype._getAllContent=function(){return this.getContent();};j.prototype._applyContextualSettings=function(){M.prototype._applyContextualSettings.call(this,M._defaultContextualSettings);};return j;});
sap.ui.predefine('sap/m/PopoverRenderer',['sap/ui/Device','sap/m/library',"sap/ui/dom/getScrollbarSize"],function(D,l,g){"use strict";var P=l.PlacementType;var a={};a.render=function(r,c){var C;r.write("<div");r.writeControlData(c);C=this.generateRootClasses(c);C.forEach(function(s,i){r.addClass(s);});r.writeClasses();var t=c.getTooltip_AsString();if(t){r.writeAttributeEscaped("title",t);}r.writeAttribute("tabindex","-1");r.writeAccessibilityState(c,c._getAccessibilityOptions());r.write(">");if(c.getResizable()){r.writeIcon("sap-icon://resize-corner",["sapMPopoverResizeHandle"],{"title":""});}this.renderContent(r,c);r.write("</div>");};a.isButtonFooter=function(f){if(f instanceof sap.m.Bar){var c=f.getContentLeft(),C=f.getContentRight(),b=f.getContentMiddle(),L=(!c||c.length===0),r=(!C||C.length===0),m=false;if(b&&b.length===2){if((b[0]instanceof sap.m.Button)&&(b[1]instanceof sap.m.Button)){m=true;}}return L&&r&&m;}else{return false;}};a.renderContent=function(r,c){var h,I=c.getId(),i=0,b=c._getAllContent(),f=c.getFooter(),s=c.getSubHeader(),C=c.getContentWidth(),d=c.getContentMinWidth(),e=c.getContentHeight(),F="sapMPopoverFooter ";if(c.getShowHeader()){h=c._getAnyHeader();}if(D.system.desktop){r.write("<span class='sapMPopoverHiddenFocusable' id='"+c.getId()+"-firstfe' tabindex='0'></span>");}if(h){r.write("<header");r.addClass("sapMPopoverHeader");r.writeClasses();r.write(">");if(h._applyContextClassFor){h._applyContextClassFor("header");}r.renderControl(h);r.write("</header>");}if(s){r.write("<header");r.addClass("sapMPopoverSubHeader");r.writeClasses();r.write(">");if(s._applyContextClassFor){s._applyContextClassFor("subheader");}r.renderControl(s);r.write("</header>");}r.write("<div");r.writeAttribute("id",I+"-cont");if(C){r.addStyle("width",C);}if(d){r.addStyle("min-width",d);}if(e){r.addStyle("height",e);}r.writeStyles();r.addClass("sapMPopoverCont");r.writeClasses();if(sap.ui.getCore().getConfiguration().getAccessibility()&&!sap.ui.getCore().getConfiguration().getAvoidAriaApplicationRole()){r.writeAttribute("role","application");}r.write(">");r.write('<div class="sapMPopoverScroll"');r.writeAttribute("id",c.getId()+"-scroll");if(!c.getHorizontalScrolling()){r.addStyle(sap.ui.getCore().getConfiguration().getRTL()?"margin-left":"margin-right",g().width+"px");}r.writeStyles();r.write(">");for(i=0;i<b.length;i++){r.renderControl(b[i]);}r.write("</div>");r.write("</div>");if(f){if(this.isButtonFooter(f)){F+="sapMPopoverSpecialFooter";}r.write("<footer");r.addClass(F);r.writeClasses();r.write(">");if(f._applyContextClassFor){f._applyContextClassFor("footer");f.addStyleClass("sapMTBNoBorders");}r.renderControl(f);r.write("</footer>");}if(c.getShowArrow()){r.write("<span");r.writeAttribute("id",I+"-arrow");r.addClass("sapMPopoverArr");r.writeClasses();r.write("></span>");}if(D.system.desktop){r.write("<span class='sapMPopoverHiddenFocusable' id='"+c.getId()+"-lastfe' tabindex='0'></span>");}};a.generateRootClasses=function(c){var C=["sapMPopover"],s=c.getSubHeader(),f=c.getFooter(),v=c.getVerticalScrolling()&&!c._forceDisableScrolling,h=c.getHorizontalScrolling()&&!c._forceDisableScrolling,H;if(c.getShowHeader()){H=c._getAnyHeader();}if(H){C.push("sapMPopoverWithBar");}else{C.push("sapMPopoverWithoutBar");}if(s){C.push("sapMPopoverWithSubHeader");}else{C.push("sapMPopoverWithoutSubHeader");}if(c._hasSingleNavContent()){C.push("sapMPopoverNav");}if(c._hasSinglePageContent()){C.push("sapMPopoverPage");}if(f){C.push("sapMPopoverWithFooter");}else{C.push("sapMPopoverWithoutFooter");}if(c.getPlacement()===P.Top){C.push("sapMPopoverPlacedTop");}if(!v){C.push("sapMPopoverVerScrollDisabled");}if(!h){C.push("sapMPopoverHorScrollDisabled");}C.push("sapMPopup-CTX");if(c._bSizeCompact){C.push("sapUiSizeCompact");}return C.concat(c.aCustomStyleClasses);};a.rerenderContentOnly=function(c){var p=c.$(),o=c.getDomRef(),C,r;if(!o){return;}p.removeClass();C=this.generateRootClasses(c);p.addClass(C.join(" "));r=sap.ui.getCore().createRenderManager();this.renderContent(r,c);r.flush(o,true);r.destroy();c._onOrientationChange();};return a;},true);
sap.ui.predefine('sap/m/RadioButton',['./library','sap/ui/core/Control','sap/ui/core/Core','sap/ui/core/EnabledPropagator','sap/ui/core/message/MessageMixin','sap/m/Label','sap/ui/core/library','sap/base/strings/capitalize','./RadioButtonRenderer'],function(l,C,a,E,M,L,c,b,R){"use strict";var T=c.TextAlign;var V=c.ValueState;var d=c.TextDirection;var g=(function(){var i=0;return function(){return i++;};}());var e=C.extend("sap.m.RadioButton",{metadata:{interfaces:["sap.ui.core.IFormContent","sap.m.IToolbarInteractiveControl"],library:"sap.m",properties:{enabled:{type:"boolean",group:"Behavior",defaultValue:true},selected:{type:"boolean",group:"Data",defaultValue:false},groupName:{type:"string",group:"Behavior",defaultValue:'sapMRbDefaultGroup'},text:{type:"string",group:"Appearance",defaultValue:null},textDirection:{type:"sap.ui.core.TextDirection",group:"Appearance",defaultValue:d.Inherit},width:{type:"sap.ui.core.CSSSize",group:"Dimension",defaultValue:''},useEntireWidth:{type:"boolean",group:"Appearance",defaultValue:false},activeHandling:{type:"boolean",group:"Appearance",defaultValue:true},editable:{type:"boolean",group:"Behavior",defaultValue:true},valueState:{type:"sap.ui.core.ValueState",group:"Data",defaultValue:V.None},textAlign:{type:"sap.ui.core.TextAlign",group:"Appearance",defaultValue:T.Begin},editableParent:{type:"boolean",group:"Behavior",defaultValue:true,visibility:"hidden"},valueStateText:{type:"string",group:"Misc",defaultValue:null,visibility:"hidden"}},events:{select:{parameters:{selected:{type:"boolean"}}}},associations:{ariaDescribedBy:{type:"sap.ui.core.Control",multiple:true,singularName:"ariaDescribedBy"},ariaLabelledBy:{type:"sap.ui.core.Control",multiple:true,singularName:"ariaLabelledBy"}},dnd:{draggable:true,droppable:false},designtime:"sap/m/designtime/RadioButton.designtime"}});E.call(e.prototype);M.call(e.prototype);e.getNextSelectionNumber=g;e.prototype._groupNames={};var K={HOME:"first",END:"last",NEXT:"next",PREV:"prev"};e.prototype.init=function(){this._iSelectionNumber=-1;};e.prototype.onBeforeRendering=function(){var G=this.getGroupName();this._updateGroupName(G);this._updateLabelProperties();if(this.getSelected()&&G!==""&&this._isLastSelectedInGroup(G)){this._deselectOthersInGroup(G);}};e.prototype.exit=function(){var G=this.getGroupName(),f=this._groupNames[G],i=f&&f.indexOf(this);this._iTabIndex=null;if(this._oLabel){this._oLabel.destroy();this._oLabel=null;}if(i>=-1){f.splice(i,1);}};e.prototype.ontap=function(o){if(!this.getEnabled()||!this.getEditable()){return;}var p=this.getParent();if(p&&p.isA("sap.m.RadioButtonGroup")&&(!p.getEnabled()||!p.getEditable())){return;}o&&o.setMarked();this.applyFocusInfo();if(!this.getSelected()){this.setSelected(true);var t=this;setTimeout(function(){t.fireSelect({selected:true});},0);}};e.prototype.setGroupName=function(G){this._updateGroupName(G,this.getGroupName());this.setProperty("groupName",G);return this;};e.prototype.setSelected=function(s){this.setProperty("selected",s);if(this.getSelected()){this._iSelectionNumber=g();}return this;};e.prototype.ontouchstart=function(o){o.setMarked();if(this.getEnabled()&&this.getActiveHandling()){this.addStyleClass("sapMRbBTouched");}};e.prototype.ontouchend=function(){this.removeStyleClass("sapMRbBTouched");};e.prototype.onsapnext=function(o){this._keyboardHandler(K.NEXT,true);o.setMarked();return this;};e.prototype.onsapnextmodifiers=function(o){this._keyboardHandler(K.NEXT,!o.ctrlKey);o.setMarked();return this;};e.prototype.onsapprevious=function(o){this._keyboardHandler(K.PREV,true);o.setMarked();return this;};e.prototype.onsappreviousmodifiers=function(o){this._keyboardHandler(K.PREV,!o.ctrlKey);o.setMarked();return this;};e.prototype.onsaphome=function(o){this._keyboardHandler(K.HOME,true);o.setMarked();return this;};e.prototype.onsaphomemodifiers=function(o){this._keyboardHandler(K.HOME,!o.ctrlKey);o.setMarked();return this;};e.prototype.onsapend=function(o){this._keyboardHandler(K.END,true);o.setMarked();return this;};e.prototype.onsapendmodifiers=function(o){this._keyboardHandler(K.END,!o.ctrlKey);o.setMarked();return this;};e.prototype._keyboardHandler=function(p,s){if(this.getParent()&&this.getParent().isA("sap.m.RadioButtonGroup")){return;}var n=this._getNextFocusItem(p);n.focus();if(s&&!n.getSelected()&&n.getEditable()&&n.getEnabled()){n.setSelected(true);setTimeout(function(){n.fireSelect({selected:true});},0);}};e.prototype.getAccessibilityInfo=function(){var B=a.getLibraryResourceBundle("sap.m");return{role:"radio",type:B.getText("ACC_CTR_TYPE_RADIO"),description:(this.getText()||"")+(this.getSelected()?(" "+B.getText("ACC_CTR_STATE_CHECKED")):(" "+B.getText("ACC_CTR_STATE_NOT_CHECKED"))),enabled:this.getEnabled(),editable:this.getEditable()};};e.prototype.getFormDoNotAdjustWidth=function(){return this.getText()?false:true;};e.prototype._getNextFocusItem=function(n){var v=this._groupNames[this.getGroupName()].filter(function(r){return(r.getDomRef()&&r.getEnabled());});var B=v.indexOf(this),i=B,f=v.length;switch(n){case K.NEXT:i=B===f-1?B:B+1;break;case K.PREV:i=B===0?0:i-1;break;case K.HOME:i=0;break;case K.END:i=f-1;break;}return v[i]||this;};e.prototype.onsapselect=function(o){o.preventDefault();this.ontap(o);};e.prototype.setTabIndex=function(t){var f=this.getFocusDomRef();this._iTabIndex=t;if(f){f.setAttribute("tabindex",t);}return this;};e.prototype.setValueStateText=function(t){return this.setProperty("valueStateText",t);};e.prototype._updateLabelProperties=function(){var o=this._getLabel();var t=this.getText();var u=this.getUseEntireWidth();this.toggleStyleClass("sapMRbHasLabel",!!t);o.setText(t).setWidth(!u?this.getWidth():"auto").setTextDirection(this.getTextDirection()).setTextAlign(this.getTextAlign());};e.prototype._getLabel=function(){if(!this._oLabel){this._oLabel=new L(this.getId()+"-label");this._oLabel.addStyleClass("sapMRbBLabel").setParent(this,null,true);}return this._oLabel;};e.prototype._updateGroupName=function(n,o){var N=this._groupNames[n],O=this._groupNames[o];if(O&&O.indexOf(this)!==-1){O.splice(O.indexOf(this),1);}if(!N){N=this._groupNames[n]=[];}if(N.indexOf(this)===-1){N.push(this);}};e.prototype._isLastSelectedInGroup=function(G){var f=this._groupNames[G];return f.every(function(B){return B._iSelectionNumber<=this._iSelectionNumber;}.bind(this));};e.prototype._deselectOthersInGroup=function(G){var f=this._groupNames[G],h=f&&f.length;for(var i=0;i<h;i++){var o=f[i];if(o instanceof e&&o!==this&&o.getSelected()){o.fireSelect({selected:false});o.setSelected(false);}}};e.prototype._getToolbarInteractive=function(){return true;};["editableParent"].forEach(function(p){e.prototype["_set"+b(p)]=function(v){return this.setProperty(p,v,true);};});return e;});
sap.ui.predefine('sap/m/RadioButtonRenderer',["sap/ui/core/Core","sap/ui/core/ValueStateSupport","sap/ui/core/library","sap/ui/Device"],function(C,V,c,D){"use strict";var a=c.ValueState;var R={apiVersion:2};R.render=function(r,o){this.addWOuterDivStyles(r,o);this.addInnerDivStyles(r,o);this.renderSvg(r,o);this.renderInput(r,o);this.closeDiv(r);r.renderControl(o._oLabel);this.renderTooltip(r,o);this.closeDiv(r);};R.addWOuterDivStyles=function(r,o){var i=o.getId(),e=o.getEnabled(),n=!o.getProperty("editableParent"),N=!o.getEditable()||n,v=o.getValueState();r.openStart("div",o).class("sapMRb");if(o.getUseEntireWidth()){r.style("width",o.getWidth());}var t=this.getTooltipText(o);if(t){r.attr("title",t);}r.accessibilityState(o,{role:"radio",readonly:null,selected:null,checked:o.getSelected(),disabled:N?true:undefined,labelledby:{value:i+"-label",append:true},describedby:{value:(t?i+"-Descr":undefined),append:true}});if(o.getSelected()){r.class("sapMRbSel");}if(!e){r.class("sapMRbDis");}if(N){r.class("sapMRbRo");}if(v===a.Error){r.class("sapMRbErr");}if(v===a.Warning){r.class("sapMRbWarn");}if(v===a.Success){r.class("sapMRbSucc");}if(v===a.Information){r.class("sapMRbInfo");}if(e){r.attr("tabindex",o.hasOwnProperty("_iTabIndex")?o._iTabIndex:0);}r.openEnd();};R.addInnerDivStyles=function(r,o){r.openStart("div").class("sapMRbB");if(!this.isButtonReadOnly(o)&&D.system.desktop){r.class("sapMRbHoverable");}r.openEnd();};R.renderSvg=function(r,o){r.openStart("svg").attr("xmlns","http://www.w3.org/2000/svg").attr("version","1.0").accessibilityState({role:"presentation"}).class("sapMRbSvg").openEnd();r.openStart("circle",o.getId()+"-Button").attr("stroke","black").attr("r","50%").attr("stroke-width","2").attr("fill","none").class("sapMRbBOut").openEnd().close("circle");r.openStart("circle").attr("r","22%").attr("stroke-width","10").class("sapMRbBInn").openEnd().close("circle");r.close("svg");};R.renderInput=function(r,o){r.voidStart("input",o.getId()+"-RB").attr("type","radio").attr("tabindex","-1").attr("name",o.getGroupName());if(o.getSelected()){r.attr("checked","checked");}if(this.isButtonReadOnly(o)){r.attr("readonly","readonly");r.attr("disabled","disabled");}r.voidEnd();};R.renderTooltip=function(r,o){var t=this.getTooltipText(o);if(t&&C.getConfiguration().getAccessibility()){r.openStart("span",o.getId()+"-Descr").style("display","none").openEnd().text(t).close("span");}};R.isButtonReadOnly=function(r){var e=r.getEnabled(),n=!r.getProperty("editableParent"),N=!r.getEditable()||n;return!e||N;};R.closeDiv=function(r){r.close("div");};R.getTooltipText=function(r){var v=r.getProperty("valueStateText"),t=r.getTooltip_AsString();if(v){return(t?t+" - ":"")+v;}else{return V.enrichTooltip(r,t);}};return R;},true);
sap.ui.predefine('sap/m/ResponsivePopover',['./Dialog','./Popover','./library','sap/ui/core/Control','sap/ui/core/IconPool','sap/ui/base/ManagedObject','sap/ui/Device','./ResponsivePopoverRenderer','./Toolbar','./ToolbarSpacer','./Button',"sap/ui/thirdparty/jquery"],function(D,P,l,C,I,M,a,R,T,b,B,q){"use strict";var c=l.DialogType;var d=l.PlacementType;var e=C.extend("sap.m.ResponsivePopover",{metadata:{library:"sap.m",properties:{placement:{type:"sap.m.PlacementType",group:"Misc",defaultValue:d.Right},showHeader:{type:"boolean",group:"Misc",defaultValue:true},title:{type:"string",group:"Misc",defaultValue:null},icon:{type:"sap.ui.core.URI",group:"Misc",defaultValue:null},modal:{type:"boolean",group:"Misc",defaultValue:null},offsetX:{type:"int",group:"Misc",defaultValue:null},offsetY:{type:"int",group:"Misc",defaultValue:null},showArrow:{type:"boolean",group:"Appearance",defaultValue:true},contentWidth:{type:"sap.ui.core.CSSSize",group:"Misc",defaultValue:null},contentHeight:{type:"sap.ui.core.CSSSize",group:"Misc",defaultValue:null},horizontalScrolling:{type:"boolean",group:"Misc",defaultValue:true},verticalScrolling:{type:"boolean",group:"Misc",defaultValue:true},showCloseButton:{type:"boolean",group:"Misc",defaultValue:true},resizable:{type:"boolean",group:"Dimension",defaultValue:false}},defaultAggregation:"content",aggregations:{content:{type:"sap.ui.core.Control",multiple:true,singularName:"content"},customHeader:{type:"sap.m.IBar",multiple:false},subHeader:{type:"sap.m.IBar",multiple:false},beginButton:{type:"sap.m.Button",multiple:false},endButton:{type:"sap.m.Button",multiple:false},_popup:{type:"sap.ui.core.Control",multiple:false,visibility:"hidden"}},associations:{initialFocus:{type:"sap.ui.core.Control",multiple:false},ariaLabelledBy:{type:"sap.ui.core.Control",multiple:true,singularName:"ariaLabelledBy"},ariaDescribedBy:{type:"sap.ui.core.Control",multiple:true,singularName:"ariaDescribedBy"}},events:{beforeOpen:{parameters:{openBy:{type:"sap.ui.core.Control"}}},afterOpen:{parameters:{openBy:{type:"sap.ui.core.Control"}}},beforeClose:{parameters:{openBy:{type:"sap.ui.core.Control"},origin:{type:"sap.m.Button"}}},afterClose:{parameters:{openBy:{type:"sap.ui.core.Control"},origin:{type:"sap.m.Button"}}}}}});e.prototype.init=function(){var t=this;this._bAppendedToUIArea=false;var s={resizable:t.getResizable(),beforeOpen:function(E){t.fireBeforeOpen({openBy:E.getParameter('openBy')});},afterOpen:function(E){t.fireAfterOpen({openBy:E.getParameter('openBy')});},beforeClose:function(E){t.fireBeforeClose({openBy:E.getParameter('openBy'),origin:E.getParameter('origin')});},afterClose:function(E){t.fireAfterClose({openBy:E.getParameter('openBy'),origin:E.getParameter('origin')});}};if(a.system.phone){this._aNotSupportedProperties=["placement","modal","offsetX","offsetY","showCloseButton"];s.stretch=true;s.type=c.Standard;this._oControl=new D(this.getId()+"-dialog",s);}else{this._aNotSupportedProperties=["icon","showCloseButton"];this._oControl=new P(this.getId()+"-popover",s);}this.setAggregation("_popup",this._oControl);this._oControl.addStyleClass("sapMResponsivePopover");this._oDelegate={onBeforeRendering:function(){var S=this.getShowCloseButton(),h=this._oControl._getAnyHeader(),n,p,r;if(!S||!a.system.phone){this._removeCloseButton(h);return;}if(!this._bContentChanged){return;}this._bContentChanged=false;if(h){this._insertCloseButton(h);}else{n=this._getSingleNavContent();if(!n){return;}p=n.getCurrentPage();r=this._getRealPage(p);if(r&&(h=r._getAnyHeader())){this._insertCloseButton(h);}n.attachEvent("navigate",this._fnOnNavigate,this);}}};this._oPageDelegate={onAfterShow:function(){var r=t._getRealPage(this),h;if(r&&(h=r._getAnyHeader())){t._insertCloseButton(h);}}};this._fnOnNavigate=function(E){var p=E.getParameter("to");if(p){p.addEventDelegate(this._oPageDelegate,p);}};this._oControl.addEventDelegate(this._oDelegate,this);this._oControl._removeChild=function(o,A,S){var p,i;if((A==="content")&&(o instanceof sap.m.NavContainer)){p=o.getPages();for(i=0;i<p.length;i++){p[i].removeEventDelegate(t._oPageDelegate);}o.detachEvent("navigate",t._fnOnNavigate,t);}C.prototype._removeChild.apply(this,arguments);};};e.prototype.openBy=function(p){if(!this._bAppendedToUIArea&&!this.getParent()){var s=sap.ui.getCore().getStaticAreaRef();s=sap.ui.getCore().getUIArea(s);s.addContent(this,true);this._bAppendedToUIArea=true;}if(a.system.phone){return this._oControl.open();}else{return this._oControl.openBy(p);}};e.prototype.exit=function(){if(this._oCloseButton){this._oCloseButton.destroy();this._oCloseButton=null;}if(this._oControl){this._oControl.removeEventDelegate(this._oDelegate);this._oControl.destroy();this._oControl=null;}};e.prototype._getCloseButton=function(){if(!this._oCloseButton){var t=this;this._oCloseButton=new B(this.getId()+"-closeButton",{icon:I.getIconURI("decline"),press:function(){t._oControl._oCloseTrigger=this;t.close();}});}return this._oCloseButton;};e.prototype.addContent=function(o){this._bContentChanged=true;this.addAggregation("content",o);return this;};e.prototype.clone=function(){var o=C.prototype.clone.apply(this,arguments),f=this.getAggregation('_popup').getContent();for(var i=0;i<f.length;i++){o.addContent(f[i].clone());}return o;};e.prototype._getSingleNavContent=function(){var f=this.getContent();while(f.length===1&&f[0]instanceof sap.ui.core.mvc.View){f=f[0].getContent();}if(f.length===1&&f[0]instanceof sap.m.NavContainer){return f[0];}else{return null;}};e.prototype._getRealPage=function(p){var r=p,f;while(r){if(r instanceof sap.m.Page){return r;}if(r instanceof sap.ui.core.mvc.View){f=r.getContent();if(f.length===1){r=f[0];continue;}}r=null;}return r;};e.prototype._insertCloseButton=function(h){var o=this._getCloseButton(),i;if(h&&h.addContentRight){i=h.getAggregation("contentRight",[]).length;h.insertAggregation("contentRight",o,i);}};e.prototype._removeCloseButton=function(h){var o=this._getCloseButton();if(h){h.removeAggregation("contentRight",o);}};e.prototype._firstLetterUpperCase=function(v){return v.charAt(0).toUpperCase()+v.slice(1);};e.prototype._lastIndexOfUpperCaseLetter=function(v){var i,s;for(i=v.length-1;i>=0;i--){s=v.charAt(i);if(s===s.toUpperCase()){return i;}}return-1;};e.prototype._oldSetProperty=e.prototype.setProperty;e.prototype.setProperty=function(p,v,s){this._oldSetProperty(p,v,true);var S="set"+this._firstLetterUpperCase(p);if(this._aNotSupportedProperties.indexOf(p)===-1&&S in this._oControl){this._oControl[S](v);}return this;};e.prototype._oldSetModel=e.prototype.setModel;e.prototype.setModel=function(m,n){this._oControl.setModel(m,n);return this._oldSetModel(m,n);};e.prototype._createButtonFooter=function(){if(this._oFooter){return this._oFooter;}this._oFooter=new T(this.getId()+"-footer",{content:[new b()]});return this._oFooter;};e.prototype._getButtonFooter=function(){return a.system.phone?this._oControl._getToolbar():this._oControl.getFooter();};e.prototype._getPopup=function(){return this._oControl.oPopup;};e.prototype._setButton=function(p,o){if(this._oControl instanceof P){var g="get"+this._firstLetterUpperCase(p)+"Button",O=this[g](),f=this._createButtonFooter(),s="_o"+this._firstLetterUpperCase(p)+"Button",i=(p.toLowerCase()==="begin"?0:1),h=(p.toLowerCase()==="begin"?"getEndButton":"getBeginButton");if(O){f.removeContent(O);}if(o){if(!f.getParent()){this._oControl.setFooter(f);}f.insertContent(o,i+1);}else{var j=this[h]();if(!j){f.destroy();this._oFooter=null;}}this[s]=o;return this;}else{var A=p.toLowerCase()+"Button";return this.setAggregation(A,o);}};e.prototype._getButton=function(p){if(this._oControl instanceof P){var s="_o"+this._firstLetterUpperCase(p)+"Button";return this[s];}else{var g="get"+this._firstLetterUpperCase(p)+"Button";return this._oControl[g]();}};e.prototype.setBeginButton=function(o){this._oControl.setBeginButton(o);return this._setButton("begin",o);};e.prototype.setEndButton=function(o){this._oControl.setEndButton(o);return this._setButton("end",o);};e.prototype.setShowCloseButton=function(s){var h=this._oControl._getAnyHeader();if(s){this._insertCloseButton(h);}else{this._removeCloseButton(h);}this.setProperty("showCloseButton",s,true);return this;};e.prototype.getBeginButton=function(){return this._getButton("begin");};e.prototype.getEndButton=function(){return this._getButton("end");};["bindAggregation","validateAggregation","setAggregation","getAggregation","indexOfAggregation","insertAggregation","addAggregation","removeAggregation","removeAllAggregation","destroyAggregation","setAssociation","getAssociation","addAssociation","removeAssociation","removeAllAssociation"].forEach(function(n){e.prototype[n]=function(){var L=this._lastIndexOfUpperCaseLetter(n),m,r;if(q.type(arguments[0])==="string"){if(L!==-1){m=n.substring(0,L)+this._firstLetterUpperCase(arguments[0]);if(this._oControl&&this._oControl[m]){r=this._oControl[m].apply(this._oControl,Array.prototype.slice.call(arguments,1));return r===this._oControl?this:r;}else{return C.prototype[n].apply(this,arguments);}}}r=this._oControl[n].apply(this._oControl,arguments);return r===this._oControl?this:r;};});["invalidate","close","isOpen","addStyleClass","removeStyleClass","toggleStyleClass","hasStyleClass","getDomRef","setBusy","getBusy","setBusyIndicatorDelay","getBusyIndicatorDelay","addEventDelegate","_setAriaModal"].forEach(function(n){e.prototype[n]=function(){if(this._oControl&&this._oControl[n]){if(n==="invalidate"&&arguments[0]===this._oControl){return C.prototype.invalidate.apply(this,arguments);}var r=this._oControl[n].apply(this._oControl,arguments);return r===this._oControl?this:r;}};});e.prototype._applyContextualSettings=function(){M.prototype._applyContextualSettings.call(this,M._defaultContextualSettings);};return e;});
sap.ui.predefine('sap/m/ResponsivePopoverRenderer',[],function(){"use strict";var R={};R.render=function(r,c){};return R;},true);
sap.ui.predefine('sap/m/ScrollContainer',["./library","sap/ui/core/Control","sap/ui/core/delegate/ScrollEnablement","sap/ui/core/Element","./ScrollContainerRenderer","sap/ui/dom/denormalizeScrollBeginRTL"],function(l,C,S,E,a,d){"use strict";var b=C.extend("sap.m.ScrollContainer",{metadata:{library:"sap.m",properties:{width:{type:"sap.ui.core.CSSSize",group:"Dimension",defaultValue:'auto'},height:{type:"sap.ui.core.CSSSize",group:"Dimension",defaultValue:'auto'},horizontal:{type:"boolean",group:"Behavior",defaultValue:true},vertical:{type:"boolean",group:"Behavior",defaultValue:false},focusable:{type:"boolean",group:"Behavior",defaultValue:false}},defaultAggregation:"content",aggregations:{content:{type:"sap.ui.core.Control",multiple:true,singularName:"content"}},dnd:{draggable:false,droppable:true},designtime:"sap/m/designtime/ScrollContainer.designtime"}});b.prototype.init=function(){this._oScroller=new S(this,this.getId()+"-scroll",{horizontal:true,vertical:false});};b.prototype.onBeforeRendering=function(){this._oScroller.setHorizontal(this.getHorizontal());this._oScroller.setVertical(this.getVertical());};b.prototype.exit=function(){if(this._oScroller){this._oScroller.destroy();this._oScroller=null;}};b.prototype.getScrollDelegate=function(){return this._oScroller;};b.prototype.scrollTo=function(x,y,t){if(this._oScroller){var D=this.getDomRef();if(D){if(sap.ui.getCore().getConfiguration().getRTL()){x=d(x,D);}this._oScroller.scrollTo(x,y,t);}else{this._oScroller._scrollX=x;this._oScroller._scrollY=y;}}return this;};b.prototype.scrollToElement=function(e,t){if(e instanceof E){e=e.getDomRef();}if(this._oScroller){this._oScroller.scrollToElement(e,t);}return this;};b.prototype.setHorizontal=function(h){this._oScroller.setHorizontal(h);return this.setProperty("horizontal",h,true);};b.prototype.setVertical=function(v){this._oScroller.setVertical(v);return this.setProperty("vertical",v,true);};return b;});
sap.ui.require.preload({
/*
 * Copyright (c) Microsoft.  All rights reserved.
 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation
 * files (the "Software"), to deal  in the Software without restriction, including without limitation the rights  to use, copy,
 * modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR  IMPLIED, INCLUDING BUT NOT LIMITED TO THE
 * WARRANTIES OF MERCHANTABILITY,  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
 * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

 * datajs.js
 */
	"sap/ui/thirdparty/datajs.js":function(){(function(w,u){var d=w.datajs||{};var o=w.OData||{};if(typeof define==='function'&&define.amd){define('datajs',d);define('OData',o);}else{w.datajs=d;w.OData=o;}var c=function(p){if(w.ActiveXObject){return new w.ActiveXObject(p);}return null;};var f=function(a){return a!==null&&a!==u;};var g=function(a,b){var i,e;for(i=0,e=a.length;i<e;i++){if(a[i]===b){return true;}}return false;};var h=function(a,b){return(a!==u)?a:b;};var j=function(a){if(arguments.length===1){w.setTimeout(a,0);return;}var b=Array.prototype.slice.call(arguments,1);w.setTimeout(function(){a.apply(this,b);},0);};var k=function(a,b){for(var e in b){a[e]=b[e];}return a;};var l=function(a,b){if(a){var i,e;for(i=0,e=a.length;i<e;i++){if(b(a[i])){return a[i];}}}return null;};var m=function(a){return Object.prototype.toString.call(a)==="[object Array]";};var n=function(a){return Object.prototype.toString.call(a)==="[object Date]";};var q=function(a){return typeof a==="object";};var r=function(a){return parseInt(a,10);};var s=function(a,b,e){if(a.hasOwnProperty(b)){a[e]=a[b];delete a[b];}};var t=function(e){throw e;};var v=function(a){if(a.trim){return a.trim();}return a.replace(/^\s+|\s+$/g,'');};var z=function(a,b){return(a!==u)?a:b;};var A=/^([^:\/?#]+:)?(\/\/[^\/?#]*)?([^?#:]+)?(\?[^#]*)?(#.*)?/;var B=["scheme","authority","path","query","fragment"];var C=function(a){var b={isAbsolute:false};if(a){var e=A.exec(a);if(e){var i,p;for(i=0,p=B.length;i<p;i++){if(e[i+1]){b[B[i]]=e[i+1];}}}if(b.scheme){b.isAbsolute=true;}}return b;};var D=function(a){return"".concat(a.scheme||"",a.authority||"",a.path||"",a.query||"",a.fragment||"");};var E=/^\/{0,2}(?:([^@]*)@)?([^:]+)(?::{1}(\d+))?/;var F=/%[0-9A-F]{2}/ig;var G=function(a){var b=C(a);var e=b.scheme;var i=b.authority;if(e){b.scheme=e.toLowerCase();if(i){var p=E.exec(i);if(p){b.authority="//"+(p[1]?p[1]+"@":"")+(p[2].toLowerCase())+(p[3]?":"+p[3]:"");}}}a=D(b);return a.replace(F,function(x){return x.toLowerCase();});};var H=function(a,b){if(!b){return a;}var e=C(a);if(e.isAbsolute){return a;}var i=C(b);var p={};var x;if(e.authority){p.authority=e.authority;x=e.path;p.query=e.query;}else{if(!e.path){x=i.path;p.query=e.query||i.query;}else{if(e.path.charAt(0)==='/'){x=e.path;}else{x=I(e.path,i.path);}p.query=e.query;}p.authority=i.authority;}p.path=J(x);p.scheme=i.scheme;p.fragment=e.fragment;return D(p);};var I=function(a,b){var p="/";var e;if(b){e=b.lastIndexOf("/");p=b.substring(0,e);if(p.charAt(p.length-1)!=="/"){p=p+"/";}}return p+a;};var J=function(p){var a="";var b="";var e;while(p){if(p.indexOf("..")===0||p.indexOf(".")===0){p=p.replace(/^\.\.?\/?/g,"");}else if(p.indexOf("/..")===0){p=p.replace(/^\/\..\/?/g,"/");e=a.lastIndexOf("/");if(e===-1){a="";}else{a=a.substring(0,e);}}else if(p.indexOf("/.")===0){p=p.replace(/^\/\.\/?/g,"/");}else{b=p;e=p.indexOf("/",1);if(e!==-1){b=p.substring(0,e);}a=a+b;p=p.replace(b,"");}}return a;};var K="http://";var L=K+"www.w3.org/";var M=L+"1999/xhtml";var N=L+"2000/xmlns/";var O=L+"XML/1998/namespace";var P=K+"www.mozilla.org/newlayout/xml/parsererror.xml";var Q=function(a){var b=/(^\s)|(\s$)/;return b.test(a);};var R=function(a){var b=/^\s*$/;return a===null||b.test(a);};var S=function(a){while(a!==null&&a.nodeType===1){var b=c1(a,"space",O);if(b==="preserve"){return true;}else if(b==="default"){break;}else{a=a.parentNode;}}return false;};var T=function(a){var b=a.nodeName;return b=="xmlns"||b.indexOf("xmlns:")==0;};var U=function(a,b,e){try{a.setProperty(b,e);}catch(_){}};var V=function(){var a=c("Msxml2.DOMDocument.3.0");if(a){U(a,"ProhibitDTD",true);U(a,"MaxElementDepth",256);U(a,"AllowDocumentFunction",false);U(a,"AllowXsltScript",false);}return a;};var W=function(){try{var a=c("Msxml2.DOMDocument.6.0");if(a){a.async=true;}return a;}catch(_){return V();}};var X=function(a){var b=W();if(!b){return null;}b.loadXML(a);var p=b.parseError;if(p.errorCode!==0){Y(p.reason,p.srcText,a);}return b;};var Y=function(e,a,b){if(typeof e==="string"){e={message:e};};throw k(e,{srcText:a||"",errorXmlText:b||""});};var Z=function(a){var b=w.DOMParser&&new w.DOMParser();var i;if(!b){i=X(a);if(!i){Y("XML DOM parser not supported");}return i;}try{i=b.parseFromString(a,"text/xml");}catch(e){Y(e,"",a);}var p=i.documentElement;var x=p.namespaceURI;var y=m1(p);if(y==="parsererror"&&x===P){var _=i1(p,P,"sourcetext");var k9=_?o1(_):"";Y(l1(p)||"",k9,a);}if(y==="h3"&&x===M||j1(p,M,"h3")){var l9="";var m9=[];var n9=p.firstChild;while(n9){if(n9.nodeType===1){l9+=l1(n9)||"";}m9.push(n9.nextSibling);n9=n9.firstChild||m9.shift();}l9+=l1(p)||"";Y(l9,"",a);}return i;};var $=function(p,a){return p?p+":"+a:a;};var a1=function(a,b){if(Q(b.data)){var e=d1(a,O,"space");if(!e){e=v1(a.ownerDocument,O,$("xml","space"));t1(a,e);}e.value="preserve";}a.appendChild(b);return a;};var b1=function(e,a){var b=e.attributes;var i,p;for(i=0,p=b.length;i<p;i++){a(b.item(i));}};var c1=function(a,b,e){var i=d1(a,b,e);return i?o1(i):null;};var d1=function(a,b,e){var i=a.attributes;if(i.getNamedItemNS){return i.getNamedItemNS(e||null,b);}return i.getQualifiedItem(b,e)||null;};var e1=function(a,b){var e=d1(a,"base",O);return(e?H(e.value,b):b)||null;};var f1=function(a,b){p1(a,false,function(e){if(e.nodeType===1){b(e);}return true;});};var g1=function(a,b,p){var e=p.split("/");var i,x;for(i=0,x=e.length;i<x;i++){a=a&&i1(a,b,e[i]);}return a||null;};var h1=function(a,b,p){var e=p.lastIndexOf("/");var i=p.substring(e+1);var x=p.substring(0,e);var y=x?g1(a,b,x):a;if(y){if(i.charAt(0)==="@"){return d1(y,i.substring(1),b);}return i1(y,b,i);}return null;};var i1=function(a,b,e){return k1(a,b,e,false);};var j1=function(a,b,e){if(a.getElementsByTagNameNS){var i=a.getElementsByTagNameNS(b,e);return i.length>0?i[0]:null;}return k1(a,b,e,true);};var k1=function(a,b,e,i){var p=null;p1(a,i,function(x){if(x.nodeType===1){var y=!b||n1(x)===b;var _=!e||m1(x)===e;if(y&&_){p=x;}}return p===null;});return p;};var l1=function(x){var a=null;var b=(x.nodeType===9&&x.documentElement)?x.documentElement:x;var e=b.ownerDocument.preserveWhiteSpace===false;var i;p1(b,false,function(p){if(p.nodeType===3||p.nodeType===4){var y=o1(p);var _=e||!R(y);if(!_){if(i===u){i=S(b);}_=i;}if(_){if(!a){a=y;}else{a+=y;}}}return true;});return a;};var m1=function(a){return a.localName||a.baseName;};var n1=function(a){return a.namespaceURI||null;};var o1=function(a){if(a.nodeType===1){return l1(a);}return a.nodeValue;};var p1=function(a,b,e){var i=[];var p=a.firstChild;var x=true;while(p&&x){x=e(p);if(x){if(b&&p.firstChild){i.push(p.firstChild);}p=p.nextSibling||i.shift();}}};var q1=function(a,b,e){var i=a.nextSibling;while(i){if(i.nodeType===1){var p=!b||n1(i)===b;var x=!e||m1(i)===e;if(p&&x){return i;}}i=i.nextSibling;}return null;};var r1=function(){var i=w.document.implementation;return(i&&i.createDocument)?i.createDocument(null,null,null):W();};var s1=function(p,a){if(!m(a)){return t1(p,a);}var i,b;for(i=0,b=a.length;i<b;i++){a[i]&&t1(p,a[i]);}return p;};var t1=function(p,a){if(a){if(typeof a==="string"){return a1(p,z1(p.ownerDocument,a));}if(a.nodeType===2){p.setAttributeNodeNS?p.setAttributeNodeNS(a):p.setAttributeNode(a);}else{p.appendChild(a);}}return p;};var u1=function(a,b){var e=document.createElement('dummy');e.setAttributeNS(a,b,'');var i=e.attributes[0];e.removeAttributeNode(i);return i;};var v1=function(a,b,e,i){var p=a.createAttributeNS&&a.createAttributeNS(b,e)||"createNode"in a&&a.createNode(2,e,b||u)||u1(b,e);p.value=i||"";return p;};var w1=function(a,b,e,i){var p=a.createElementNS&&a.createElementNS(b,e)||a.createNode(1,e,b||u);return s1(p,i||[]);};var x1=function(a,b,p){return v1(a,N,$("xmlns",p),b);};var y1=function(a,b){var e="<c>"+b+"</c>";var i=Z(e);var p=i.documentElement;var x=("importNode"in a)?a.importNode(p,true):p;var y=a.createDocumentFragment();var _=x.firstChild;while(_){y.appendChild(_);_=_.nextSibling;}return y;};var z1=function(a,b){return a.createTextNode(b);};var A1=function(a,b,e,p,x){var y="";var _=x.split("/");var k9=i1;var l9=w1;var m9=b;var i,n9;for(i=0,n9=_.length;i<n9;i++){y=_[i];if(y.charAt(0)==="@"){y=y.substring(1);k9=d1;l9=v1;}var o9=k9(m9,e,y);if(!o9){o9=l9(a,e,$(p,y));t1(m9,o9);}m9=o9;}return m9;};var B1=function(a){var x5=w.XMLSerializer;if(x5){var b=new x5();return b.serializeToString(a);}if(a.xml){return a.xml;}throw{message:"XML serialization unsupported"};};var C1=function(a){var b=a.childNodes;var i,e=b.length;if(e===0){return"";}var p=a.ownerDocument;var x=p.createDocumentFragment();var y=p.createElement("c");x.appendChild(y);for(i=0;i<e;i++){y.appendChild(b[i]);}var _=B1(x);_=_.substr(3,_.length-7);for(i=0;i<e;i++){a.appendChild(y.childNodes[i]);}return _;};var D1=function(a){var x=a.xml;if(x!==u){return x;}if(w.XMLSerializer){var b=new w.XMLSerializer();return b.serializeToString(a);}throw{message:"XML serialization unsupported"};};var E1=function(a,b,e){return function(){a[b].apply(a,arguments);return e;};};var F1=function(){this._arguments=u;this._done=u;this._fail=u;this._resolved=false;this._rejected=false;};F1.prototype={then:function(a,e){if(a){if(!this._done){this._done=[a];}else{this._done.push(a);}}if(e){if(!this._fail){this._fail=[e];}else{this._fail.push(e);}}if(this._resolved){this.resolve.apply(this,this._arguments);}else if(this._rejected){this.reject.apply(this,this._arguments);}return this;},resolve:function(){if(this._done){var i,a;for(i=0,a=this._done.length;i<a;i++){this._done[i].apply(null,arguments);}this._done=u;this._resolved=false;this._arguments=u;}else{this._resolved=true;this._arguments=arguments;}},reject:function(){if(this._fail){var i,a;for(i=0,a=this._fail.length;i<a;i++){this._fail[i].apply(null,arguments);}this._fail=u;this._rejected=false;this._arguments=u;}else{this._rejected=true;this._arguments=arguments;}},promise:function(){var a={};a.then=E1(this,"then",a);return a;}};var G1=function(){if(w.jQuery&&w.jQuery.Deferred){return new w.jQuery.Deferred();}else{return new F1();}};var H1=function(a,b){var e=((a&&a.__metadata)||{}).type;return e||(b?b.type:null);};var I1="Edm.";var J1=I1+"Binary";var K1=I1+"Boolean";var L1=I1+"Byte";var M1=I1+"DateTime";var N1=I1+"DateTimeOffset";var O1=I1+"Decimal";var P1=I1+"Double";var Q1=I1+"Guid";var R1=I1+"Int16";var S1=I1+"Int32";var T1=I1+"Int64";var U1=I1+"SByte";var V1=I1+"Single";var W1=I1+"String";var X1=I1+"Time";var Y1=I1+"Geography";var Z1=Y1+"Point";var $1=Y1+"LineString";var _1=Y1+"Polygon";var a2=Y1+"Collection";var b2=Y1+"MultiPolygon";var c2=Y1+"MultiLineString";var d2=Y1+"MultiPoint";var e2=I1+"Geometry";var f2=e2+"Point";var g2=e2+"LineString";var h2=e2+"Polygon";var i2=e2+"Collection";var j2=e2+"MultiPolygon";var k2=e2+"MultiLineString";var l2=e2+"MultiPoint";var m2="Point";var n2="LineString";var o2="Polygon";var p2="MultiPoint";var q2="MultiLineString";var r2="MultiPolygon";var s2="GeometryCollection";var t2=[W1,S1,T1,K1,P1,V1,M1,N1,X1,O1,Q1,L1,R1,U1,J1];var u2=[e2,f2,g2,h2,i2,j2,k2,l2];var v2=[Y1,Z1,$1,_1,a2,b2,c2,d2];var w2=function(a,b){if(!a){return null;}if(m(a)){var i,e,p;for(i=0,e=a.length;i<e;i++){p=w2(a[i],b);if(p){return p;}}return null;}else{if(a.dataServices){return w2(a.dataServices.schema,b);}return b(a);}};var x2=function(a,b){if(a===0){a="";}else{a="."+B2(a.toString(),3);}if(b>0){if(a===""){a=".000";}a+=B2(b.toString(),4);}return a;};var y2=function(a){return"\/Date("+a.getTime()+")\/";};var z2=function(a){if(typeof a==="string"){return a;}var b=K2(a);var e=C2(a.__offset);if(b&&e!=="Z"){a=new Date(a.valueOf());var i=o3(e);var p=a.getUTCHours()+(i.d*i.h);var x=a.getMinutes()+(i.d*i.m);a.setUTCHours(p,x);}else if(!b){e="";}var y=a.getUTCFullYear();var _=a.getUTCMonth()+1;var k9="";if(y<=0){y=-(y-1);k9="-";}var ms=x2(a.getUTCMilliseconds(),a.__ns);return k9+B2(y,4)+"-"+B2(_,2)+"-"+B2(a.getUTCDate(),2)+"T"+B2(a.getUTCHours(),2)+":"+B2(a.getUTCMinutes(),2)+":"+B2(a.getUTCSeconds(),2)+ms+e;};var A2=function(a){var b=a.ms;var e="";if(b<0){e="-";b=-b;}var i=Math.floor(b/86400000);b-=86400000*i;var p=Math.floor(b/3600000);b-=3600000*p;var x=Math.floor(b/60000);b-=60000*x;var y=Math.floor(b/1000);b-=y*1000;return e+"P"+B2(i,2)+"DT"+B2(p,2)+"H"+B2(x,2)+"M"+B2(y,2)+x2(b,a.ns)+"S";};var B2=function(a,b,e){var i=a.toString(10);while(i.length<b){if(e){i+="0";}else{i="0"+i;}}return i;};var C2=function(a){return(!a||a==="Z"||a==="+00:00"||a==="-00:00")?"Z":a;};var D2=function(a){if(typeof a==="string"){var e=a.indexOf(")",10);if(a.indexOf("Collection(")===0&&e>0){return a.substring(11,e);}}return null;};var E2=function(a,b,e,P3,i,p){return i.request(a,function(x){try{if(x.headers){f3(x.headers);}if(x.data===u&&x.statusCode!==204){P3.read(x,p);}}catch(y){if(y.request===u){y.request=a;}if(y.response===u){y.response=x;}e(y);return;}try{b(x.data,x);}catch(y){y.bIsSuccessHandlerError=true;throw y;}},e);};var F2=function(a){return J2(a)&&m(a.__batchRequests);};var G2=/Collection\((.*)\)/;var H2=function(a,b){var e=a&&a.results||a;return!!e&&(I2(b))||(!b&&m(e)&&!J2(e[0]));};var I2=function(a){return G2.test(a);};var J2=function(a){return!!a&&q(a)&&!m(a)&&!n(a);};var K2=function(a){return(a.__edmType==="Edm.DateTimeOffset"||(!a.__edmType&&a.__offset));};var L2=function(a){if(!a&&!J2(a)){return false;}var b=a.__metadata||{};var e=a.__deferred||{};return!b.type&&!!e.uri;};var M2=function(a){return J2(a)&&a.__metadata&&"uri"in a.__metadata;};var N2=function(a,b){var e=a&&a.results||a;return m(e)&&((!I2(b))&&(J2(e[0])));};var O2=function(a){return g(v2,a);};var P2=function(a){return g(u2,a);};var Q2=function(a){if(!a&&!J2(a)){return false;}var b=a.__metadata;var e=a.__mediaresource;return!b&&!!e&&!!e.media_src;};var R2=function(a){return n(a)||typeof a==="string"||typeof a==="number"||typeof a==="boolean";};var S2=function(a){return g(t2,a);};var T2=function(a,p){if(L2(a)){return"deferred";}if(M2(a)){return"entry";}if(N2(a)){return"feed";}if(p&&p.relationship){if(a===null||a===u||!N2(a)){return"entry";}return"feed";}return null;};var U2=function(p,a){return l(p,function(b){return b.name===a;});};var V2=function(a,b,e){return(a)?w2(b,function(y6){return c3(a,y6,e);}):null;};var W2=function(e,a){return l(e,function(b){return b.name===a;});};var X2=function(a,b){return V2(a,b,"complexType");};var Y2=function(a,b){return V2(a,b,"entityType");};var Z2=function(a){return w2(a,function(y6){return l(y6.entityContainer,function(b){return g3(b.isDefaultEntityContainer);});});};var $2=function(a,b){return V2(a,b,"entityContainer");};var _2=function(a,b){return l(a,function(e){return e.name===b;});};var a3=function(a,b){var e=null;if(a){var p=a.relationship;var x=w2(b,function(y6){var _=b3(y6["namespace"],p);var k9=y6.association;if(_&&k9){var i,l9;for(i=0,l9=k9.length;i<l9;i++){if(k9[i].name===_){return k9[i];}}}});if(x){var y=x.end[0];if(y.role!==a.toRole){y=x.end[1];}e=y.type;}}return e;};var b3=function(a,b){if(b.indexOf(a)===0&&b.charAt(a.length)==="."){return b.substr(a.length+1);}return null;};var c3=function(a,y6,b){if(a&&y6){var e=b3(y6["namespace"],a);if(e){return l(y6[b],function(i){return i.name===e;});}}return null;};var d3=function(a,b){if(a===b){return a;}var e=a.split(".");var p=b.split(".");var x=(e.length>=p.length)?e.length:p.length;for(var i=0;i<x;i++){var y=e[i]&&r(e[i]);var _=p[i]&&r(p[i]);if(y>_){return a;}if(y<_){return b;}}};var e3={"accept":"Accept","content-type":"Content-Type","dataserviceversion":"DataServiceVersion","maxdataserviceversion":"MaxDataServiceVersion","last-modified":"Last-Modified"};var f3=function(a){for(var b in a){var e=b.toLowerCase();var i=e3[e];if(i&&b!==i){var p=a[b];delete a[b];a[i]=p;}}};var g3=function(p){if(typeof p==="boolean"){return p;}return typeof p==="string"&&p.toLowerCase()==="true";};var h3=/^(-?\d{4,})-(\d{2})-(\d{2})T(\d{2}):(\d{2})(?::(\d{2}))?(?:\.(\d+))?(.*)$/;var i3=function(a,b,e){var p=h3.exec(a);var i=(p)?C2(p[8]):null;if(!p||(!b&&i!=="Z")){if(e){return null;}throw{message:"Invalid date/time value"};}var y=r(p[1]);if(y<=0){y++;}var x=p[7];var _=0;if(!x){x=0;}else{if(x.length>7){if(e){return null;}throw{message:"Cannot parse date/time value to given precision."};}_=B2(x.substring(3),4,true);x=B2(x.substring(0,3),3,true);x=r(x);_=r(_);}var k9=r(p[4]);var l9=r(p[5]);var m9=r(p[6])||0;if(i!=="Z"){var n9=o3(i);var o9=-(n9.d);k9+=n9.h*o9;l9+=n9.m*o9;}var p9=new Date();p9.setUTCFullYear(y,r(p[2])-1,r(p[3]));p9.setUTCHours(k9,l9,m9,x);if(isNaN(p9.valueOf())){if(e){return null;}throw{message:"Invalid date/time value"};}if(b){p9.__edmType="Edm.DateTimeOffset";p9.__offset=i;}if(_){p9.__ns=_;}return p9;};var j3=function(p,a){return i3(p,false,a);};var k3=function(p,a){return i3(p,true,a);};var l3=/^([+-])?P(?:(\d+)Y)?(?:(\d+)M)?(?:(\d+)D)?(?:T(?:(\d+)H)?(?:(\d+)M)?(?:(\d+)(?:\.(\d+))?S)?)?/;var m3=function(a){l3.test(a);};var n3=function(a){var p=l3.exec(a);if(p===null){throw{message:"Invalid duration value."};}var y=p[2]||"0";var b=p[3]||"0";var e=r(p[4]||0);var i=r(p[5]||0);var x=r(p[6]||0);var _=parseFloat(p[7]||0);if(y!=="0"||b!=="0"){throw{message:"Unsupported duration value."};}var ms=p[8];var ns=0;if(!ms){ms=0;}else{if(ms.length>7){throw{message:"Cannot parse duration value to given precision."};}ns=B2(ms.substring(3),4,true);ms=B2(ms.substring(0,3),3,true);ms=r(ms);ns=r(ns);}ms+=_*1000+x*60000+i*3600000+e*86400000;if(p[1]==="-"){ms=-ms;}var k9={ms:ms,__edmType:"Edm.Time"};if(ns){k9.ns=ns;}return k9;};var o3=function(a){var b=a.substring(0,1);b=(b==="+")?1:-1;var e=r(a.substring(1));var i=r(a.substring(a.indexOf(":")+1));return{d:b,h:e,m:i};};var p3=function(a,P3,b){if(!a.method){a.method="GET";}if(!a.headers){a.headers={};}else{f3(a.headers);}if(a.headers.Accept===u){a.headers.Accept=P3.accept;}if(f(a.data)&&a.body===u){P3.write(a,b);}if(!f(a.headers.MaxDataServiceVersion)){a.headers.MaxDataServiceVersion=P3.maxDataServiceVersion||"1.0";}if(a.async===u){a.async=true;}};var q3=function(i,a,b){if(i&&typeof i==="object"){for(var e in i){var p=i[e];var x=q3(p,e,b);x=b(e,x,a);if(x!==p){if(p===u){delete i[e];}else{i[e]=x;}}}}return i;};var r3=function(i,a){return a("",q3(i,"",a));};var s3=0;var t3=function(a){if(a.method&&a.method!=="GET"){return false;}return true;};var u3=function(a){var i=w.document.createElement("IFRAME");i.style.display="none";var b=a.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/\</g,"&lt;");var e="<html><head><script type=\"text/javascript\" src=\""+b+"\"><\/script><\/head><body><\/body><\/html>";var p=w.document.getElementsByTagName("BODY")[0];p.appendChild(i);B3(i,e);return i;};var v3=function(){if(w.XMLHttpRequest){return new w.XMLHttpRequest();}var a;if(w.ActiveXObject){try{return new w.ActiveXObject("Msxml2.XMLHTTP.6.0");}catch(_){try{return new w.ActiveXObject("Msxml2.XMLHTTP.3.0");}catch(e){a=e;}}}else{a={message:"XMLHttpRequest not supported"};}throw a;};var w3=function(a){return a.indexOf("http://")===0||a.indexOf("https://")===0||a.indexOf("file://")===0;};var x3=function(a){if(!w3(a)){return true;}var b=w.location;var e=b.protocol+"//"+b.host+"/";return(a.indexOf(e)===0);};var y3=function(a,b){try{delete w[a];}catch(e){w[a]=u;if(b===s3-1){s3-=1;}}};var z3=function(i){if(i){B3(i,"");i.parentNode.removeChild(i);}return null;};var A3=function(x,a){var b=x.getAllResponseHeaders();if(!b){var D3=x.getResponseHeader("Content-Type");var e=x.getResponseHeader("Content-Length");if(D3){a["Content-Type"]=D3;}if(e){a["Content-Length"]=e;}}else{b=b.split(/\r?\n/);var i,p;for(i=0,p=b.length;i<p;i++){if(b[i]){var y=b[i].match(/([^:]*):\s*((?:\s*\S+)+)?\s*/);a[y[1]]=y[2];}}}};var B3=function(i,a){var b=(i.contentWindow)?i.contentWindow.document:i.contentDocument.document;b.open();b.write(a);b.close();};o.defaultHttpClient={callbackParameterName:"$callback",formatQueryString:"$format=json",enableJsonpCallback:false,request:function(a,b,e){var i={};var x=null;var p=false;var y;i.abort=function(){y=z3(y);if(p){return;}p=true;if(x){x.abort();x=null;}e({message:"Request aborted"});};var _=function(){y=z3(y);if(!p){p=true;x=null;e({message:"Request timed out"});}};var k9;var l9=a.requestUri;var m9=h(a.enableJsonpCallback,this.enableJsonpCallback);var n9=h(a.callbackParameterName,this.callbackParameterName);var o9=h(a.formatQueryString,this.formatQueryString);if(!m9||x3(l9)){x=v3();var p9=function(){if(p||x===null||x.readyState!==4){return;}var x9=x.statusText;var y9=x.status;if(y9===1223){y9=204;x9="No Content";}var z9=[];A3(x,z9);var A9=null;if(d._sap&&x.responseXML){A9=x.responseXML;}var B9={requestUri:l9,statusCode:y9,statusText:x9,headers:z9,body:x.responseText};p=true;x=null;if(y9>=200&&y9<=299){b(B9);}else{f3(B9.headers);e({message:"HTTP request failed",request:a,response:B9});}if(d._sap&&B9.requestUri.indexOf("$metadata")>-1){var C9={supportXML:A9,response:B9};d._sap._supportInfo({context:A9,env:{caller:'datajs',settings:C9,type:"metadata"}});}};if(a.user&&a.password){x.open(a.method||"GET",l9,a.async,a.user,a.password);}else{x.open(a.method||"GET",l9,a.async);}if(a.withCredentials){x.withCredentials=true;}if(a.headers){for(k9 in a.headers){x.setRequestHeader(k9,a.headers[k9]);}}if(a.timeoutMS){x.timeout=a.timeoutMS;x.ontimeout=_;}if(a.async||(!a.async&&a.async!==false)){x.onreadystatechange=p9;}x.send(typeof a.body!=='undefined'?a.body:null);if(!a.async){p9();}}else{if(!t3(a)){throw{message:"Request is not local and cannot be done through JSONP."};}var q9=s3;s3+=1;var r9=q9.toString();var s9=false;var t9;k9="handleJSONP_"+r9;w[k9]=function(x9){y=z3(y);if(!p){s9=true;w.clearTimeout(t9);y3(k9,q9);if(w.ActiveXObject&&!w.DOMParser){x9=w.JSON.parse(w.JSON.stringify(x9));}j(b,{body:x9,statusCode:200,headers:{"Content-Type":"application/json"}});}};var u9=(a.timeoutMS)?a.timeoutMS:120000;t9=w.setTimeout(_,u9);var v9=n9+"=parent."+k9;if(this.formatQueryString){v9+="&"+o9;}var w9=l9.indexOf("?");if(w9===-1){l9=l9+"?"+v9;}else if(w9===l9.length-1){l9=l9+v9;}else{l9=l9+"&"+v9;}y=u3(l9);}return i;}};var C3="3.0";var D3=function(a){if(!a){return null;}var b=a.split(";");var p={};var i,e;for(i=1,e=b.length;i<e;i++){var x=b[i].split("=");p[v(x[0])]=x[1];}return{mediaType:v(b[0]),properties:p};};var E3=function(D3){if(!D3){return u;}var a=D3.mediaType;var p;for(p in D3.properties){a+=";"+p+"="+D3.properties[p];}return a;};var F3=function(D3,a,b,P3){var e={};k(e,b);k(e,{contentType:D3,dataServiceVersion:a,handler:P3});return e;};var G3=function(a,b,e){if(!a){return;}var i=a.headers;if(!i[b]){i[b]=e;}};var H3=function(a,b){if(a){var e=a.headers;var i=e["DataServiceVersion"];e["DataServiceVersion"]=i?d3(i,b):b;}};var I3=function(a,b){var e=a.headers;return(e&&e[b])||u;};var J3=function(a){return D3(I3(a,"Content-Type"));};var K3=/^\s?(\d+\.\d+);?.*$/;var L3=function(a){var b=I3(a,"DataServiceVersion");if(b){var e=K3.exec(b);if(e&&e.length){return e[1];}}};var M3=function(P3,a){return P3.accept.indexOf(a.mediaType)>=0;};var N3=function(P3,p,a,b){if(!a||!a.headers){return false;}var e=J3(a);var i=L3(a)||"";var x=a.body;if(!f(x)||!x){return false;}if(M3(P3,e)){var y=F3(e,i,b,P3);y.response=a;a.data=p(P3,x,y);return a.data!==u;}return false;};var O3=function(P3,a,b,e){if(!b||!b.headers){return false;}var i=J3(b);var p=L3(b);if(!i||M3(P3,i)){var x=F3(i,p,e,P3);x.request=b;b.body=a(P3,b.data,x);if(b.body!==u){H3(b,x.dataServiceVersion||"1.0");G3(b,"Content-Type",E3(x.contentType));G3(b,"MaxDataServiceVersion",P3.maxDataServiceVersion);return true;}}return false;};var P3=function(p,a,b,e){return{accept:b,maxDataServiceVersion:e,read:function(i,x){return N3(this,p,i,x);},write:function(i,x){return O3(this,a,i,x);}};};var Q3=function(P3,b){return b;};var R3=function(P3,a){if(f(a)){return a.toString();}else{return u;}};o.textHandler=P3(Q3,R3,"text/plain",C3);var S3=K+"www.opengis.net";var T3=S3+"/gml";var U3=S3+"/def/crs/EPSG/0/";var V3="gml";var W3=function(a,b,e){var i={type:a};i[b]=e;return i;};var X3=function(a){if(m(a)&&a.length>=2){var b=a[0];a[0]=a[1];a[1]=b;}return a;};var Y3=function(a,b,e,i,p,x){var y=Z3(a,e,i,p,x);return W3(b,"coordinates",y);};var Z3=function(a,b,e,i,p){var x=[];f1(a,function(y){if(n1(y)!==T3){return;}var _=m1(y);if(_===b){var k9=i1(y,T3);if(k9){var l9=i(k9,p);if(l9){x.push(l9);}}return;}if(_===e){f1(y,function(k9){if(n1(k9)!==T3){return;}var l9=i(k9,p);if(l9){x.push(l9);}});}});return x;};var $3=function(a,i){var b=Z3(a,"geometryMember","geometryMembers",m4,i);return W3(s2,"geometries",b);};var _3=function(a,i){return W3(n2,"coordinates",f4(a,i));};var a4=function(a,i){return Y3(a,q2,"curveMember","curveMembers",f4,i);};var b4=function(a,i){return Y3(a,p2,"pointMember","pointMembers",g4,i);};var c4=function(a,i){return Y3(a,r2,"surfaceMember","surfaceMembers",i4,i);};var d4=function(a,i){return W3(m2,"coordinates",g4(a,i));};var e4=function(a,i){return W3(o2,"coordinates",i4(a,i));};var f4=function(a,i){var b=[];f1(a,function(e){var p=n1(e);if(p!==T3){return;}var x=m1(e);if(x==="posList"){b=k4(e,i);return;}if(x==="pointProperty"){b.push(h4(e,i));return;}if(x==="pos"){b.push(l4(e,i));return;}});return b;};var g4=function(a,i){var p=i1(a,T3,"pos");return p?l4(p,i):[];};var h4=function(a,i){var p=i1(a,T3,"Point");return p?g4(p,i):[];};var i4=function(a,i){var b=[];var e=false;f1(a,function(p){if(n1(p)!==T3){return;}var x=m1(p);if(x==="exterior"){e=true;b.unshift(j4(p,i));return;}if(x==="interior"){b.push(j4(p,i));return;}});if(!e&&b.length>0){b.unshift([[]]);}return b;};var j4=function(a,i){var b=[];f1(a,function(e){if(n1(e)!==T3||m1(e)!=="LinearRing"){return;}b=f4(e,i);});return b;};var k4=function(a,b){var e=l4(a,false);var p=e.length;if(p%2!==0){throw{message:"GML posList element has an uneven number of numeric values"};}var x=[];for(var i=0;i<p;i+=2){var y=e.slice(i,i+2);x.push(b?X3(y):y);}return x;};var l4=function(a,i){var b=[];var e=" \t\r\n";var p=l1(a);if(p){var x=p.length;var y=0;var _=0;while(_<=x){if(e.indexOf(p.charAt(_))!==-1){var k9=p.substring(y,_);if(k9){b.push(parseFloat(k9));}y=_+1;}_++;}}return i?X3(b):b;};var m4=function(a,i){var b=m1(a);var e;switch(b){case"Point":e=d4;break;case"Polygon":e=e4;break;case"LineString":e=_3;break;case"MultiPoint":e=b4;break;case"MultiCurve":e=a4;break;case"MultiSurface":e=c4;break;case"MultiGeometry":e=$3;break;default:throw{message:"Unsupported element: "+b,element:a};}var p=e(a,i);var x=c1(a,"srsName",T3)||c1(a,"srsName");if(x){if(x.indexOf(U3)!==0){throw{message:"Unsupported srs name: "+x,element:a};}var y=x.substring(U3.length);if(y){p.crs={type:"name",properties:{name:"EPSG:"+y}};}}return p;};var n4=function(a,b,e,i){var p;switch(e){case m2:p=v4;break;case n2:p=w4;break;case o2:p=x4;break;case p2:p=z4;break;case q2:p=A4;break;case r2:p=B4;break;case s2:p=D4;break;default:return null;}var x=p(a,b,i);var y=b.crs;if(y){if(y.type==="name"){var _=y.properties;var k9=_&&_.name;if(k9&&k9.indexOf("ESPG:")===0&&k9.length>5){var l9=k9.substring(5);var m9=v1(a,null,"srsName",V3+l9);t1(x,m9);}}}return x;};var o4=function(a,b,e){return w1(a,T3,$(V3,b),e);};var p4=function(a,b,i){var p=m(b)?b:[];p=i?X3(p):p;return o4(a,"pos",p.join(" "));};var q4=function(a,b,e,p){var x=o4(a,b);if(m(e)){var i,y;for(i=0,y=e.length;i<y;i++){t1(x,p4(a,e[i],p));}if(y===0){t1(x,o4(a,"posList"));}}return x;};var r4=function(a,b,i){return o4(a,"Point",p4(a,b,i));};var s4=function(a,b,i){return q4(a,"LineString",b,i);};var t4=function(a,b,e,i){var p=o4(a,b);if(m(e)&&e.length>0){var x=q4(a,"LinearRing",e,i);t1(p,x);}return p;};var u4=function(a,b,e){var p=b&&b.length;var x=o4(a,"Polygon");if(m(b)&&p>0){t1(x,t4(a,"exterior",b[0],e));var i;for(i=1;i<p;i++){t1(x,t4(a,"interior",b[i],e));}}return x;};var v4=function(a,b,i){return r4(a,b.coordinates,i);};var w4=function(a,b,i){return s4(a,b.coordinates,i);};var x4=function(a,b,i){return u4(a,b.coordinates,i);};var y4=function(a,b,e,p,x,y){var _=p&&p.length;var k9=o4(a,b);if(m(p)&&_>0){var l9=o4(a,e);var i;for(i=0;i<_;i++){t1(l9,x(a,p[i],y));}t1(k9,l9);}return k9;};var z4=function(a,b,i){return y4(a,"MultiPoint","pointMembers",b.coordinates,r4,i);};var A4=function(a,b,i){return y4(a,"MultiCurve","curveMembers",b.coordinates,s4,i);};var B4=function(a,b,i){return y4(a,"MultiSurface","surfaceMembers",b.coordinates,u4,i);};var C4=function(a,b,i){return n4(a,b,b.type,i);};var D4=function(a,b,i){return y4(a,"MultiGeometry","geometryMembers",b.geometries,C4,i);};var E4="application/xml";var F4=K+"schemas.microsoft.com/ado/";var G4=F4+"2007/08/dataservices";var H4=F4+"2007/06/edmx";var I4=F4+"2006/04/edm";var J4=F4+"2007/05/edm";var K4=F4+"2008/01/edm";var L4=F4+"2008/09/edm";var M4=F4+"2009/08/edm";var N4=F4+"2009/11/edm";var O4=K+"docs.oasis-open.org/odata/ns/edm";var P4=G4;var Q4=G4+"/metadata";var R4=G4+"/related/";var S4=G4+"/scheme";var T4="d";var U4="m";var V4=function(a,b){var e={name:m1(a),value:a.value};e[b?"namespaceURI":"namespace"]=n1(a);return e;};var W4=function(a,b){var e=[];var p=[];var i,x;var y=a.attributes;for(i=0,x=y.length;i<x;i++){var _=y[i];if(n1(_)!==N){e.push(V4(_,b));}}var k9=a.firstChild;while(k9!=null){if(k9.nodeType===1){p.push(W4(k9,b));}k9=k9.nextSibling;};var l9={name:m1(a),value:l1(a),attributes:e,children:p};l9[b?"namespaceURI":"namespace"]=n1(a);return l9;};var X4=function(a){return n1(a)===P4&&m1(a)==="element";};var Y4=function(a,e){return{type:a,extensions:e};};var Z4=function(a){if(i1(a,T3)){return e2;}var b=i1(a,P4);if(!b){return W1;}if(X4(b)){var e=q1(b,P4);if(e&&X4(e)){return"Collection()";}}return null;};var $4=function(a){var b=null;var i=false;var e=[];b1(a,function(p){var x=n1(p);var y=m1(p);var _=o1(p);if(x===Q4){if(y==="null"){i=(_.toLowerCase()==="true");return;}if(y==="type"){b=_;return;}}if(x!==O&&x!==N){e.push(V4(p,true));return;}});return{type:(!b&&i?W1:b),isNull:i,extensions:e};};var _4=function(a){if(n1(a)!==P4){return null;};var p=m1(a);var b=$4(a);var e=b.isNull;var i=b.type;var x=Y4(i,b.extensions);var y=e?null:a5(a,i,x);return{name:p,value:y,metadata:x};};var a5=function(a,p,b){if(!p){p=Z4(a);b.type=p;}var i=O2(p);if(i||P2(p)){return b5(a,p,i);}if(S2(p)){return c5(a,p);}if(I2(p)){return e5(a,p,b);}return d5(a,p,b);};var b5=function(a,p,i){var b=i1(a,T3);var e=m4(b,i);e.__metadata={type:p};return e;};var c5=function(a,p){var b=o1(a)||"";switch(p){case K1:return g3(b);case J1:case O1:case Q1:case T1:case W1:return b;case L1:case R1:case S1:case U1:return r(b);case P1:case V1:return parseFloat(b);case X1:return n3(b);case M1:return j3(b);case N1:return k3(b);};return b;};var d5=function(a,p,b){var e={__metadata:{type:p}};f1(a,function(i){var x=_4(i);var y=x.name;b.properties=b.properties||{};b.properties[y]=x.metadata;e[y]=x.value;});return e;};var e5=function(a,p,b){var i=[];var e=b.elements=[];var x=D2(p);f1(a,function(y){if(X4(y)){var _=$4(y);var k9=_.extensions;var l9=_.type||x;var m9=Y4(l9,k9);var n9=a5(y,l9,m9);i.push(n9);e.push(m9);}});return{__metadata:{type:p==="Collection()"?null:p},results:i};};var f5=function(x,b){if(n1(x)===P4){b=e1(x,b);var a=m1(x);if(a==="links"){return g5(x,b);}if(a==="uri"){return h5(x,b);}}return u;};var g5=function(a,b){var e=[];f1(a,function(i){if(m1(i)==="uri"&&n1(i)===P4){e.push(h5(i,b));}});return{results:e};};var h5=function(a,b){var e=l1(a)||"";return{uri:H(e,b)};};var i5=function(a,e){if(e===e2||e===Y1){return a&&a.type;}if(e===f2||e===Z1){return m2;}if(e===g2||e===$1){return n2;}if(e===h2||e===_1){return o2;}if(e===i2||e===a2){return s2;}if(e===j2||e===b2){return r2;}if(e===k2||e===c2){return q2;}if(e===l2||e===d2){return p2;}return null;};var j5=function(a,b,e){return w1(a,Q4,$(U4,b),e);};var k5=function(a,b,e){return v1(a,Q4,$(U4,b),e);};var l5=function(a,b,e){return w1(a,P4,$(T4,b),e);};var m5=function(a,b){if(b===M1||b===N1||n(a)){return z2(a);}if(b===X1){return A2(a);}return a.toString();};var n5=function(a,b){return{element:a,dsv:b};};var o5=function(a,b,e,i){var p=e?k5(a,"type",e):null;var x=l5(a,b,p);return s1(x,i);};var p5=function(a,b,e,i){var p=m5(e,i);var x=o5(a,b,i,p);return n5(x,"1.0");};var q5=function(a,b,e,i){var p=k5(a,"null","true");var x=o5(a,b,e,p);var y=X2(e,i)?"2.0":"1.0";return n5(x,y);};var r5=function(a,b,e,p,x,y,_){var k9=D2(p);var l9=m(e)?e:e.results;var m9=p?{type:k9}:{};m9.properties=x.properties;var n9=o5(a,b,k9?p:null);var i,o9;for(i=0,o9=l9.length;i<o9;i++){var p9=l9[i];var q9=u5(a,"element",p9,m9,y,_);t1(n9,q9.element);}return n5(n9,"3.0");};var s5=function(a,b,e,i,p,x,y){var _=o5(a,b,i);var k9=p.properties||{};var l9=X2(i,y)||{};var m9="1.0";for(var n9 in e){if(n9!=="__metadata"){var o9=e[n9];var p9=U2(l9.property,n9);var q9=k9[n9]||{};var r9=u5(a,n9,o9,q9,p9,y);m9=d3(m9,r9.dsv);t1(_,r9.element);}};return n5(_,m9);};var t5=function(a,b,e,i,p){var x=i5(e,i);var y=n4(a,e,x,p);var _=o5(a,b,i,y);return n5(_,"3.0");};var u5=function(a,b,e,i,p,x){var y=H1(e,i,p);if(!y){y=H1(e,p);}if(R2(e)){return p5(a,b,e,y);}var _=O2(y);if(_||P2(y)){return t5(a,b,e,y,_);}if(H2(e,y)){return r5(a,b,e,y,i,p,x);}if(Q2(e)){return null;}var k9=T2(e,p);if(k9!==null){return null;}if(e===null){return q5(a,b,y);}return s5(a,b,e,y,i,p,x);};var v5=function(a){if(a&&q(a)){var b=r1();return t1(b,l5(b,"uri",a.uri));}};var w5=function(P3,a){if(a){var b=Z(a);var e=i1(b);if(e){return f5(e);}}};var x5=function(P3,a,b){var e=b.contentType=b.contentType||D3(E4);if(e&&e.mediaType===E4){return B1(v5(a));}return u;};o.xmlHandler=P3(w5,x5,E4,C3);var y5="a";var z5=L+"2005/Atom";var A5=L+"2007/app";var B5=G4+"/edit-media/";var C5=G4+"/mediaresource/";var D5=G4+"/relatedlinks/";var E5=["application/atom+xml","application/atomsvc+xml","application/xml"];var F5=E5[0];var G5=[z5,A5,O,N];var H5={SyndicationAuthorEmail:"author/email",SyndicationAuthorName:"author/name",SyndicationAuthorUri:"author/uri",SyndicationContributorEmail:"contributor/email",SyndicationContributorName:"contributor/name",SyndicationContributorUri:"contributor/uri",SyndicationPublished:"published",SyndicationRights:"rights",SyndicationSummary:"summary",SyndicationTitle:"title",SyndicationUpdated:"updated"};var I5=function(p){return H5[p]||p;};var J5=function(a){return!(g(G5,a));};var K5=function(a,e,b,p,i){i=i||"";var x=a["FC_TargetPath"+i];if(!x){return null;}var y=a["FC_SourcePath"+i];var _=I5(x);var k9=p?p+(y?"/"+y:""):y;var l9=k9&&Y5(b,e,k9);var m9=a["FC_NsUri"+i]||null;var n9=a["FC_NsPrefix"+i]||null;var o9=a["FC_KeepInContent"+i]||"";if(x!==_){m9=z5;n9=y5;}return{contentKind:a["FC_ContentKind"+i],keepInContent:o9.toLowerCase()==="true",nsPrefix:n9,nsURI:m9,propertyPath:k9,propertyType:l9,entryPath:_};};var L5=function(e,a,b){var p=[];while(e){var x=e.FC_SourcePath;var y=K5(e,e,a);if(y){b(y);}var _=e.property||[];var i,k9;for(i=0,k9=_.length;i<k9;i++){var l9=_[i];var m9=0;var n9="";while(y=K5(l9,e,a,l9.name,n9)){b(y);m9++;n9="_"+m9;};}e=Y2(e.baseType,a);}return p;};var M5=function(a){var e=[];b1(a,function(b){var i=n1(b);if(J5(i)){e.push(V4(b,true));}});return e;};var N5=function(a){return W4(a,true);};var O5=function(a,b,e){var i=n1(a);var p=m1(a);if(i===A5&&p==="service"){return j6(a,b);}if(i===z5){if(p==="feed"){return S5(a,b,e);}if(p==="entry"){return Z5(a,b,e);}}};var P5=function(a,b){var e=[];var i={extensions:e};b1(a,function(p){var x=m1(p);var y=n1(p);var _=o1(p);if(y===null){if(x==="title"||x==="metadata"){i[x]=_;return;}if(x==="target"){i.target=H(_,e1(a,b));return;}}if(J5(y)){e.push(V4(p,true));}});return i;};var Q5=function(a,b,p){var e=p.actions=p.actions||[];e.push(P5(a,b));};var R5=function(a,b,p){var e=p.functions=p.functions||[];e.push(P5(a,b));};var S5=function(a,b,e){var i=M5(a);var p={feed_extensions:i};var x=[];var y={__metadata:p,results:x};b=e1(a,b);f1(a,function(_){var k9=n1(_);var l9=m1(_);if(k9===Q4){if(l9==="count"){y.__count=parseInt(l1(_));return;}if(l9==="action"){Q5(_,b,p);return;}if(l9==="function"){R5(_,b,p);return;}}if(J5(k9)){i.push(W4(_));return;};if(l9==="entry"){x.push(Z5(_,b,e));return;}if(l9==="link"){T5(_,y,b);return;}if(l9==="id"){p.uri=H(l1(_),b);p.uri_extensions=M5(_);return;}if(l9==="title"){p.title=l1(_)||"";p.title_extensions=M5(_);return;}});return y;};var T5=function(a,b,e){var i=U5(a,e);var p=i.href;var x=i.rel;var y=i.extensions;var _=b.__metadata;if(x==="next"){b.__next=p;_.next_extensions=y;return;}if(x==="self"){_.self=p;_.self_extensions=y;return;}};var U5=function(a,b){b=e1(a,b);var e=[];var i={extensions:e,baseURI:b};b1(a,function(p){var x=n1(p);var y=m1(p);var _=p.value;if(y==="href"){i.href=H(_,b);return;}if(y==="type"||y==="rel"){i[y]=_;return;}if(J5(x)){e.push(V4(p,true));}});if(!i.href){throw{error:"href attribute missing on link element",element:a};}return i;};var V5=function(p,a){if(p.indexOf('/')===-1){return a[p];}else{var b=p.split('/');var i,e;for(i=0,e=b.length;i<e;i++){if(a===null){return u;}a=a[b[i]];if(a===u){return a;}}return a;}};var W5=function(p,a,b,e){var x;if(p.indexOf('/')===-1){a[p]=b;x=p;}else{var y=p.split('/');var i,_;for(i=0,_=(y.length-1);i<_;i++){var k9=a[y[i]];if(k9===u){k9={};a[y[i]]=k9;}else if(k9===null){return;}a=k9;}x=y[i];a[x]=b;}if(e){var l9=a.__metadata=a.__metadata||{};var m9=l9.properties=l9.properties||{};var n9=m9[x]=m9[x]||{};n9.type=e;}};var X5=function(a,b,e){var p=a.propertyPath;if(a.keepInContent||V5(p,e)===null){return;}var x=h1(b,a.nsURI,a.entryPath);if(!x){return;}var i=a.propertyType;var y;if(a.contentKind==="xhtml"){y=C1(x);}else{y=c5(x,i||"Edm.String");}W5(p,e,y,i);};var Y5=function(a,b,p){var e=p.split("/");var i,x;while(b){var y=b;for(i=0,x=e.length;i<x;i++){var _=y.property;if(!_){break;}var k9=U2(_,e[i]);if(!k9){break;}var l9=k9.type;if(!l9||S2(l9)){return l9||null;}y=X2(l9,a);if(!y){return null;}}b=Y2(b.baseType,a);}return null;};var Z5=function(a,b,e){var i={};var p={__metadata:i};var x=c1(a,"etag",Q4);if(x){i.etag=x;}b=e1(a,b);f1(a,function(_){var k9=n1(_);var l9=m1(_);if(k9===z5){if(l9==="id"){$5(_,i,b);return;}if(l9==="category"){_5(_,i);return;}if(l9==="content"){a6(_,p,i,b);return;}if(l9==="link"){b6(_,p,i,b,e);return;}return;}if(k9===Q4){if(l9==="properties"){i6(_,p,i);return;}if(l9==="action"){Q5(_,b,i);return;}if(l9==="function"){R5(_,b,i);return;}}});var y=Y2(i.type,e);L5(y,e,function(_){X5(_,a,p);});return p;};var $5=function(a,e,b){e.uri=H(l1(a),e1(a,b));e.uri_extensions=M5(a);};var _5=function(a,e){if(c1(a,"scheme")===S4){if(e.type){throw{message:"Invalid AtomPub document: multiple category elements defining the entry type were encounterd withing an entry",element:a};}var b=[];b1(a,function(i){var p=n1(i);var x=m1(i);if(!p){if(x!=="scheme"&&x!=="term"){b.push(V4(i,true));}return;}if(J5(p)){b.push(V4(i,true));}});e.type=c1(a,"term");e.type_extensions=b;}};var a6=function(a,e,b,i){var p=c1(a,"src");var x=c1(a,"type");if(p){if(!x){throw{message:"Invalid AtomPub document: content element must specify the type attribute if the src attribute is also specified",element:a};}b.media_src=H(p,e1(a,i));b.content_type=x;}f1(a,function(y){if(p){throw{message:"Invalid AtomPub document: content element must not have child elements if the src attribute is specified",element:a};}if(n1(y)===Q4&&m1(y)==="properties"){i6(y,e,b);}});};var b6=function(a,e,b,i,p){var x=U5(a,i);var y=x.rel;var _=x.href;var k9=x.extensions;if(y==="self"){b.self=_;b.self_link_extensions=k9;return;}if(y==="edit"){b.edit=_;b.edit_link_extensions=k9;return;}if(y==="edit-media"){b.edit_media=x.href;b.edit_media_extensions=k9;h6(x,b);return;}if(y.indexOf(B5)===0){e6(x,e,b);return;}if(y.indexOf(C5)===0){f6(x,e,b);return;}if(y.indexOf(R4)===0){d6(a,x,e,b,p);return;}if(y.indexOf(D5)===0){c6(x,b);return;}};var c6=function(a,e){var p=a.rel.substring(D5.length);e.properties=e.properties||{};var b=e.properties[p]=e.properties[p]||{};b.associationuri=a.href;b.associationuri_extensions=a.extensions;};var d6=function(a,b,e,i,p){var x;var y=i1(a,Q4,"inline");if(y){var _=i1(y);var k9=e1(y,b.baseURI);x=_?O5(_,k9,p):null;}else{x={__deferred:{uri:b.href}};}var l9=b.rel.substring(R4.length);e[l9]=x;i.properties=i.properties||{};var m9=i.properties[l9]=i.properties[l9]||{};m9.extensions=b.extensions;};var e6=function(a,e,b){var p=a.rel.substring(B5.length);var i=g6(p,e,b);var x=i.value;var y=i.metadata;var _=a.href;x.edit_media=_;x.content_type=a.type;y.edit_media_extensions=a.extensions;x.media_src=x.media_src||_;y.media_src_extensions=y.media_src_extensions||[];h6(a,x);};var f6=function(a,e,b){var p=a.rel.substring(C5.length);var i=g6(p,e,b);var x=i.value;var y=i.metadata;x.media_src=a.href;y.media_src_extensions=a.extensions;x.content_type=a.type;};var g6=function(a,e,b){b.properties=b.properties||{};var i=b.properties[a];var p=e[a]&&e[a].__mediaresource;if(!p){p={};e[a]={__mediaresource:p};b.properties[a]=i={};}return{value:p,metadata:i};};var h6=function(a,b){var e=a.extensions;var i,p;for(i=0,p=e.length;i<p;i++){if(e[i].namespaceURI===Q4&&e[i].name==="etag"){b.media_etag=e[i].value;e.splice(i,1);return;}}};var i6=function(a,p,b){f1(a,function(e){var i=_4(e);if(i){var x=i.name;var y=b.properties=b.properties||{};y[x]=i.metadata;p[x]=i.value;}});};var j6=function(a,b){var e=[];var i=[];b=e1(a,b);f1(a,function(p){if(n1(p)===A5&&m1(p)==="workspace"){e.push(k6(p,b));return;}i.push(W4(p));});if(e.length===0){throw{message:"Invalid AtomPub service document: No workspace element found.",element:a};}return{workspaces:e,extensions:i};};var k6=function(a,b){var e=[];var i=[];var p=u;b=e1(a,b);f1(a,function(x){var y=n1(x);var _=m1(x);if(y===z5){if(_==="title"){if(p!==u){throw{message:"Invalid AtomPub service document: workspace has more than one child title element",element:x};}p=l1(x);return;}}if(y===A5){if(_==="collection"){e.push(l6(x,b));}return;}i.push(N5(x));});return{title:p||"",collections:e,extensions:i};};var l6=function(a,b){var e=c1(a,"href");if(!e){throw{message:"Invalid AtomPub service document: collection has no href attribute",element:a};}b=e1(a,b);e=H(e,e1(a,b));var i=[];var p=u;f1(a,function(x){var y=n1(x);var _=m1(x);if(y===z5){if(_==="title"){if(p!==u){throw{message:"Invalid AtomPub service document: collection has more than one child title element",element:x};}p=l1(x);}return;}if(y!==A5){i.push(N5(a));}});if(!p){throw{message:"Invalid AtomPub service document: collection has no title element",element:a};}return{title:p,href:e,extensions:i};};var m6=function(a,b,e){return w1(a,z5,$(y5,b),e);};var n6=function(a,b,e){return v1(a,null,b,e);};var o6=function(p){if(p.childNodes.length>0){return false;}var a=true;var b=p.attributes;var i,e;for(i=0,e=b.length;i<e&&a;i++){var x=b[i];a=a&&T(x)||(n1(x)==Q4&&m1(x)==="type");}return a;};var p6=function(a,b,e,i,p){var x=null;var y=null;var _=null;var k9="";if(e!=="deferred"){x=n6(a,"type","application/atom+xml;type="+e);y=j5(a,"inline");if(i){k9=i.__metadata&&i.__metadata.uri||"";_=t6(a,i,p)||s6(a,i,p);t1(y,_.element);}}else{k9=i.__deferred.uri;};var l9=m6(a,"link",[n6(a,"href",k9),n6(a,"rel",H(b,R4)),x,y]);return n5(l9,_?_.dsv:"1.0");};var q6=function(a,b,e,i,p,x){if(Q2(e)){return null;}var y=u5(a,b,e,i,p,x);if(!y){var _=T2(e,p);y=p6(a,b,_,e,x);}return y;};var r6=function(a,e,b,i){var p=g1(b,P4,i.propertyPath);var x=p&&d1(p,"null",Q4);var y;var _="1.0";if(x&&x.value==="true"){return _;}if(p){y=l1(p)||"";if(!i.keepInContent){_="2.0";var k9=p.parentNode;var l9=k9;k9.removeChild(p);while(l9!==b&&o6(l9)){k9=l9.parentNode;k9.removeChild(l9);l9=k9;}}}var m9=A1(a,e,i.nsURI,i.nsPrefix,i.entryPath);if(m9.nodeType===2){m9.value=y;return _;}var n9=i.contentKind;s1(m9,[n9&&v1(a,null,"type",n9),n9==="xhtml"?y1(a,y):y]);return _;};var s6=function(a,b,e){var p=b.__metadata||{};var i=p.properties||{};var x=p.etag;var y=p.uri;var _=p.type;var k9=Y2(_,e);var l9=j5(a,"properties");var m9=m6(a,"entry",[m6(a,"author",m6(a,"name")),x&&k5(a,"etag",x),y&&m6(a,"id",y),_&&m6(a,"category",[n6(a,"term",_),n6(a,"scheme",S4)]),m6(a,"content",[n6(a,"type","application/xml"),l9])]);var n9="1.0";for(var o9 in b){if(o9!=="__metadata"){var p9=i[o9]||{};var q9=k9&&(U2(k9.property,o9)||U2(k9.navigationProperty,o9));var r9=q6(a,o9,b[o9],p9,q9,e);if(r9){var s9=r9.element;var t9=(n1(s9)===z5)?m9:l9;t1(t9,s9);n9=d3(n9,r9.dsv);}}};L5(k9,e,function(u9){var v9=r6(a,m9,l9,u9);n9=d3(n9,v9);});return n5(m9,n9);};var t6=function(a,b,e){var p=m(b)?b:b.results;if(!p){return null;}var x="1.0";var y=m6(a,"feed");var i,_;for(i=0,_=p.length;i<_;i++){var k9=s6(a,p[i],e);t1(y,k9.element);x=d3(x,k9.dsv);}return n5(y,x);};var u6=function(a,b){if(a){var e=N2(a)&&t6||q(a)&&s6;if(e){var i=r1();var p=e(i,a,b);if(p){var x=p.element;s1(x,[x1(i,Q4,U4),x1(i,P4,T4)]);return n5(t1(i,x),p.dsv);}}}return null;};var v6=function(P3,a,b){if(a){var e=Z(a);var i=i1(e);if(i){return O5(i,null,b.metadata);}}};var w6=function(P3,a,b){var e=b.contentType=b.contentType||D3(F5);if(e&&e.mediaType===F5){var i=u6(a,b.metadata);if(i){b.dataServiceVersion=d3(b.dataServiceVersion||"1.0",i.dsv);return B1(i.element);}}};o.atomHandler=P3(v6,w6,E5.join(","),C3);var x6=function(a,e,b,i){return{attributes:a,elements:e,text:b||false,ns:i};};var y6={elements:{Annotations:x6(["Target","Qualifier"],["Annotation*","TypeAnnotation*","ValueAnnotation*"]),Annotation:x6(["Term"],["Record","Collection"]),Association:x6(["Name"],["End*","ReferentialConstraint","TypeAnnotation*","ValueAnnotation*"]),AssociationSet:x6(["Name","Association"],["End*","TypeAnnotation*","ValueAnnotation*"]),Binary:x6(null,null,true),Bool:x6(null,null,true),Collection:x6(null,["String*","Int*","Float*","Decimal*","Bool*","DateTime*","DateTimeOffset*","Guid*","Binary*","Time*","Collection*","Record*"]),CollectionType:x6(["ElementType","Nullable","DefaultValue","MaxLength","FixedLength","Precision","Scale","Unicode","Collation","SRID"]["CollectionType","ReferenceType","RowType","TypeRef"]),ComplexType:x6(["Name","BaseType","Abstract"],["Property*","TypeAnnotation*","ValueAnnotation*"]),DateTime:x6(null,null,true),DateTimeOffset:x6(null,null,true),Decimal:x6(null,null,true),DefiningExpression:x6(null,null,true),Dependent:x6(["Role"],["PropertyRef*"]),Documentation:x6(null,null,true),End:x6(["Type","Role","Multiplicity","EntitySet"],["OnDelete"]),EntityContainer:x6(["Name","Extends"],["EntitySet*","AssociationSet*","FunctionImport*","TypeAnnotation*","ValueAnnotation*"]),EntitySet:x6(["Name","EntityType"],["TypeAnnotation*","ValueAnnotation*"]),EntityType:x6(["Name","BaseType","Abstract","OpenType"],["Key","Property*","NavigationProperty*","TypeAnnotation*","ValueAnnotation*"]),EnumType:x6(["Name","UnderlyingType","IsFlags"],["Member*"]),Float:x6(null,null,true),Function:x6(["Name","ReturnType"],["Parameter*","DefiningExpression","ReturnType","TypeAnnotation*","ValueAnnotation*"]),FunctionImport:x6(["Name","ReturnType","EntitySet","IsSideEffecting","IsComposable","IsBindable","EntitySetPath"],["Parameter*","ReturnType","TypeAnnotation*","ValueAnnotation*"]),Guid:x6(null,null,true),Int:x6(null,null,true),Key:x6(null,["PropertyRef*"]),LabeledElement:x6(["Name"],["Path","String","Int","Float","Decimal","Bool","DateTime","DateTimeOffset","Guid","Binary","Time","Collection","Record","LabeledElement","Null"]),Member:x6(["Name","Value"]),NavigationProperty:x6(["Name","Relationship","ToRole","FromRole","ContainsTarget"],["TypeAnnotation*","ValueAnnotation*"]),Null:x6(null,null),OnDelete:x6(["Action"]),Path:x6(null,null,true),Parameter:x6(["Name","Type","Mode","Nullable","DefaultValue","MaxLength","FixedLength","Precision","Scale","Unicode","Collation","ConcurrencyMode","SRID"],["CollectionType","ReferenceType","RowType","TypeRef","TypeAnnotation*","ValueAnnotation*"]),Principal:x6(["Role"],["PropertyRef*"]),Property:x6(["Name","Type","Nullable","DefaultValue","MaxLength","FixedLength","Precision","Scale","Unicode","Collation","ConcurrencyMode","CollectionKind","SRID"],["CollectionType","ReferenceType","RowType","TypeAnnotation*","ValueAnnotation*"]),PropertyRef:x6(["Name"]),PropertyValue:x6(["PropertyPath","Property","Path","String","Int","Float","Decimal","Bool","DateTime","DateTimeOffset","Guid","Binary","Time"],["Path","String","Int","Float","Decimal","Bool","DateTime","DateTimeOffset","Guid","Binary","Time","Collection","Record","LabeledElement","Null"]),Record:x6(["Type"],["PropertyValue*"]),ReferenceType:x6(["Type"]),ReferentialConstraint:x6(null,["Principal","Dependent"]),ReturnType:x6(["ReturnType","Type","EntitySet"],["CollectionType","ReferenceType","RowType"]),RowType:x6(["Property*"]),String:x6(null,null,true),Schema:x6(["Namespace","Alias"],["Using*","EntityContainer*","EntityType*","Association*","ComplexType*","Function*","ValueTerm*","Annotations*"]),Time:x6(null,null,true),TypeAnnotation:x6(["Term","Qualifier"],["PropertyValue*"]),TypeRef:x6(["Type","Nullable","DefaultValue","MaxLength","FixedLength","Precision","Scale","Unicode","Collation","SRID"]),Using:x6(["Namespace","Alias"]),ValueAnnotation:x6(["Term","Qualifier","Path","String","Int","Float","Decimal","Bool","DateTime","DateTimeOffset","Guid","Binary","Time"],["Path","String","Int","Float","Decimal","Bool","DateTime","DateTimeOffset","Guid","Binary","Time","Collection","Record","LabeledElement","Null"]),ValueTerm:x6(["Name","Type"],["TypeAnnotation*","ValueAnnotation*"]),Edmx:x6(["Version"],["DataServices","Reference*","AnnotationsReference*"],false,H4),DataServices:x6(null,["Schema*"],false,H4)}};var z6=["m:FC_ContentKind","m:FC_KeepInContent","m:FC_NsPrefix","m:FC_NsUri","m:FC_SourcePath","m:FC_TargetPath"];y6.elements.Property.attributes=y6.elements.Property.attributes.concat(z6);y6.elements.EntityType.attributes=y6.elements.EntityType.attributes.concat(z6);y6.elements.Edmx={attributes:["Version"],elements:["DataServices"],ns:H4};y6.elements.DataServices={elements:["Schema*"],ns:H4};y6.elements.EntityContainer.attributes.push("m:IsDefaultEntityContainer");y6.elements.Property.attributes.push("m:MimeType");y6.elements.FunctionImport.attributes.push("m:HttpMethod");y6.elements.FunctionImport.attributes.push("m:IsAlwaysBindable");y6.elements.EntityType.attributes.push("m:HasStream");y6.elements.DataServices.attributes=["m:DataServiceVersion","m:MaxDataServiceVersion"];var A6=function(a){if(!a){return a;}if(a.length>1){var b=a.substr(0,2);if(b===b.toUpperCase()){return a;}return a.charAt(0).toLowerCase()+a.substr(1);}return a.charAt(0).toLowerCase();};var B6=function(p,a){if(a==="Documentation"){return{isArray:true,propertyName:"documentation"};}var e=p.elements;if(!e){return null;}var i,b;for(i=0,b=e.length;i<b;i++){var x=e[i];var y=false;if(x.charAt(x.length-1)==="*"){y=true;x=x.substr(0,x.length-1);}if(a===x){var _=A6(x);return{isArray:y,propertyName:_};}}return null;};var C6=/^(m:FC_.*)_[0-9]+$/;var D6=function(a){return a===I4||a===J4||a===K4||a===L4||a===M4||a===N4||a===O4};var E6=function(e){var a=m1(e);var b=n1(e);var i=y6.elements[a];if(!i){return null;}if(i.ns){if(b!==i.ns){return null;}}else if(!D6(b)){return null;}var p={};var x=[];var y=i.attributes||[];b1(e,function(_){var a=m1(_);var b=n1(_);var k9=_.value;if(b===N){return;}var l9=null;var m9=false;if(D6(b)||b===null){l9="";}else if(b===Q4){l9="m:";}if(l9!==null){l9+=a;var n9=C6.exec(l9);if(n9){l9=n9[1];}if(g(y,l9)){m9=true;p[A6(a)]=k9;}}if(!m9){x.push(V4(_));}});f1(e,function(_){var a=m1(_);var k9=B6(i,a);if(k9){if(k9.isArray){var l9=p[k9.propertyName];if(!l9){l9=[];p[k9.propertyName]=l9;}l9.push(E6(_));}else{p[k9.propertyName]=E6(_);}}else{x.push(W4(_));}});if(i.text){p.text=l1(e);}if(x.length){p.extensions=x;}return p;};var F6=function(P3,a){var b=Z(a);var e=i1(b);return E6(e)||u;};o.metadataHandler=P3(F6,null,E4,C3);var G6="o";var H6="f";var I6="p";var J6="c";var K6="s";var L6="l";var M6="odata";var N6=M6+".";var O6="@"+N6+"bind";var P6=N6+"metadata";var Q6=N6+"navigationLinkUrl";var R6=N6+"type";var S6={readLink:"self",editLink:"edit",nextLink:"__next",mediaReadLink:"media_src",mediaEditLink:"edit_media",mediaContentType:"content_type",mediaETag:"media_etag",count:"__count",media_src:"mediaReadLink",edit_media:"mediaEditLink",content_type:"mediaContentType",media_etag:"mediaETag",url:"uri"};var T6=function(a){if(a.indexOf(".")>0){var b=a.indexOf("@");var e=b>-1?a.substring(0,b):null;var i=a.substring(b+1);return{target:e,name:i,isOData:i.indexOf(N6)===0};}return null;};var U6=function(a,b,e,i,p){return(J2(b)&&b[R6])||(e&&e[a+"@"+R6])||(i&&i.type)||(a3(i,p))||null;};var V6=function(a,b){if(b){return U2(b.property,a)||U2(b.navigationProperty,a);}return null;};var W6=function(a){return J2(a)&&a.hasOwnProperty(N6+"id");};var X6=function(a,b,e){if(!!b[a+"@"+Q6]||(e&&e.relationship)){return true;}var i=m(b[a])?b[a][0]:b[a];return W6(i);};var Y6=function(a){return S2(a)||O2(a)||P2(a);};var Z6=function(a,b,e,i,p){for(var x in a){if(x.indexOf(".")>0&&x.charAt(0)!=="#"){var y=T6(x);if(y){var _=y.name;var k9=y.target;var l9=null;var m9=null;if(k9){l9=V6(k9,i);m9=U6(k9,a[k9],a,l9,p);}if(y.isOData){$6(_,k9,m9,a[x],a,b,e);}else{b[x]=a[x];}}}}return b;};5;var $6=function(a,b,e,i,p,x,y){var _=a.substring(N6.length);switch(_){case"navigationLinkUrl":c7(_,b,e,i,p,x,y);return;case"nextLink":case"count":a7(_,b,i,x,y);return;case"mediaReadLink":case"mediaEditLink":case"mediaContentType":case"mediaETag":b7(_,b,e,i,x,y);return;default:_6(_,b,i,x,y);return;}};var _6=function(a,b,e,i,p){var x=i.__metadata=i.__metadata||{};var y=S6[a]||a;if(a==="editLink"){x.uri=H(e,p);x[y]=x.uri;return;}if(a==="readLink"||a==="associationLinkUrl"){e=H(e,p);}if(b){var _=x.properties=x.properties||{};var k9=_[b]=_[b]||{};if(a==="type"){k9[y]=k9[y]||e;return;}k9[y]=e;return;}x[y]=e;};var a7=function(a,b,e,i,p){var x=S6[a];var y=b?i[b]:i;y[x]=(a==="nextLink")?H(e,p):e;};var b7=function(a,b,e,i,p,x){var y=p.__metadata=p.__metadata||{};var _=S6[a];if(a==="mediaReadLink"||a==="mediaEditLink"){i=H(i,x);}if(b){var k9=y.properties=y.properties||{};var l9=k9[b]=k9[b]||{};l9.type=l9.type||e;p.__metadata=y;p[b]=p[b]||{__mediaresource:{}};p[b].__mediaresource[_]=i;return;}y[_]=i;};var c7=function(a,b,e,i,p,x,y){var _=x.__metadata=x.__metadata||{};var k9=_.properties=_.properties||{};var l9=k9[b]=k9[b]||{};var m9=H(i,y);if(p.hasOwnProperty(b)){l9.navigationLinkUrl=m9;return;}x[b]={__deferred:{uri:m9}};l9.type=l9.type||e;};var d7=function(a,b,e,i,p,x,y){if(typeof a==="string"){return e7(a,b,y);}if(!Y6(b)){if(m(a)){return f7(a,b,e,i,x,y);}if(J2(a)){return g7(a,b,e,i,x,y);}}return a;};var e7=function(a,p,b){switch(p){case X1:return n3(a);case M1:return j3(a,false);case N1:return k3(a,false);}if(b){return j3(a,true)||k3(a,true)||a;}return a;};var f7=function(a,p,b,e,x,y){var _=D2(p);var k9=[];var l9=[];var i,m9;for(i=0,m9=a.length;i<m9;i++){var n9=U6(null,a[i])||_;var o9={type:n9};var p9=d7(a[i],n9,o9,e,null,x,y);if(!Y6(n9)&&!R2(a[i])){k9.push(o9);}l9.push(p9);}if(k9.length>0){b.elements=k9;}return{__metadata:{type:p},results:l9};};var g7=function(a,p,b,e,i,x){var y=i7(a,p,e,i,x);var _=y.__metadata;var k9=_.properties;if(k9){b.properties=k9;delete _.properties;}return y;};var h7=function(a,p,b,e,i){if(m(a)){return k7(a,p,b,e,i);}if(J2(a)){return i7(a,p,b,e,i);}return null;};var i7=function(a,b,e,i,p){var x=a[R6]||b;var y=Y2(x,i)||X2(x,i);var _={type:x};var k9={__metadata:_};var l9={};for(var m9 in a){if(m9.indexOf("#")===0){j7(m9.substring(1),a[m9],k9,e,i);}else{if(m9.indexOf(".")===-1){if(!_.properties){_.properties=l9;}var n9=a[m9];var o9=V6(m9,y);var p9=X6(m9,a,o9);var q9=U6(m9,n9,a,o9,i);var r9=l9[m9]=l9[m9]||{type:q9};k9[m9]=p9?h7(n9,q9,e,i,p):d7(n9,q9,r9,e,o9,i,p);}}}return Z6(a,k9,e,y,i);};var j7=function(a,b,e,p,x){if(!a||!m(b)&&!J2(b)){return;}var y=false;var _=a.lastIndexOf(".");var k9=a.substring(_+1);var l9=(_>-1)?a.substring(0,_):"";var m9=(k9===a||l9.indexOf(".")===-1)?Z2(x):$2(l9,x);if(m9){var n9=_2(m9.functionImport,k9);if(n9&&!!n9.isSideEffecting){y=!g3(n9.isSideEffecting);}};var o9=e.__metadata;var p9=y?"functions":"actions";var q9=H(a,p);var r9=(m(b))?b:[b];var i,s9;for(i=0,s9=r9.length;i<s9;i++){var t9=r9[i];if(t9){var u9=o9[p9]=o9[p9]||[];var v9={metadata:q9,title:t9.title,target:H(t9.target,p)};u9.push(v9);}}};var k7=function(a,b,e,p,x){var y=m(a)?a:a.value;var _=[];var i,k9;for(i=0,k9=y.length;i<k9;i++){_.push(i7(y[i],b,e,p,x));}var l9={results:_};if(J2(a)){for(var m9 in a){if(m9.indexOf("#")===0){l9.__metadata=l9.__metadata||{};j7(m9.substring(1),a[m9],l9,e,p);}}l9=Z6(a,l9,e);}return l9;};var l7=function(a,b,e,i){var p={type:b};var x=d7(a.value,b,p,e,null,null,i);return Z6(a,{__metadata:p,value:x},e);};var m7=function(a,b,e,i,p){var x={};var y=f7(a.value,b,x,e,i,p);k(y.__metadata,x);return Z6(a,y,e);};var n7=function(a,b){var e=a.value;if(!m(e)){return o7(a,b);}var p=[];var i,x;for(i=0,x=e.length;i<x;i++){p.push(o7(e[i],b));}var y={results:p};return Z6(a,y,b);};var o7=function(a,b){var e={uri:H(a.url,b)};e=Z6(a,e,b);var i=e.__metadata||{};var p=i.properties||{};p7(p.url);s(p,"url","uri");return e;};var p7=function(p){if(p){delete p.type;}};var q7=function(a,b){var e=a.value;var p=[];var x=Z6(a,{collections:p},b);var y=x.__metadata||{};var _=y.properties||{};p7(_.value);s(_,"value","collections");var i,k9;for(i=0,k9=e.length;i<k9;i++){var l9=e[i];var m9={title:l9.name,href:H(l9.url,b)};m9=Z6(l9,m9,b);y=m9.__metadata||{};_=y.properties||{};p7(_.name);p7(_.url);s(_,"name","title");s(_,"url","href");p.push(m9);}return{workspaces:[x]};};var r7=function(a,b){return{kind:a,type:b||null};};var s7=function(a,b,i){var e=a[P6];if(!e||typeof e!=="string"){return null;}var p=e.lastIndexOf("#");if(p===-1){return r7(K6);}var x=e.indexOf("@Element",p);var y=x-1;if(y<0){y=e.indexOf("?",p);if(y===-1){y=e.length;}}var _=e.substring(p+1,y);if(_.indexOf("/$links/")>0){return r7(L6);}var k9=_.split("/");if(k9.length>=0){var l9=k9[0];var m9=k9[1];if(Y6(l9)){return r7(I6,l9);}if(I2(l9)){return r7(J6,l9);}var n9=m9;if(!m9){var o9=l9.lastIndexOf(".");var p9=l9.substring(o9+1);var q9=(p9===l9)?Z2(b):$2(l9.substring(0,o9),b);if(q9){var r9=W2(q9.entitySet,p9);n9=!!r9?r9.entityType:null}}if(x>0){return r7(G6,n9);}if(n9){return r7(H6,n9);}if(m(a.value)&&!X2(l9,b)){var s9=a.value[0];if(!R2(s9)){if(W6(s9)||!i){return r7(H6,null);}}}return r7(G6,l9);}return null;};var t7=function(a,b,e,i){if(!J2(a)){return a;}var p=a[P6];var x=s7(a,b,i);var y=null;if(x){delete a[P6];y=x.type;switch(x.kind){case H6:return k7(a,y,p,b,e);case J6:return m7(a,y,p,b,e);case I6:return l7(a,y,p,e);case K6:return q7(a,p);case L6:return n7(a,p);}}return i7(a,y,p,b,e);};var u7=["type","etag","media_src","edit_media","content_type","media_etag"];var v7=function(a,b){var e=/\/\$links\//;var i={};var p=a.__metadata;var x=b&&e.test(b.request.requestUri);x7(a,(p&&p.properties),i,x);return i;};var w7=function(a,b){if(a){var i,e;for(i=0,e=u7.length;i<e;i++){var p=u7[i];var x=N6+(S6[p]||p);F7(x,null,a[p],b);}}};var x7=function(a,p,b,i){for(var e in a){var x=a[e];if(e==="__metadata"){w7(x,b);}else if(e.indexOf(".")===-1){if(i&&e==="uri"){z7(x,b);}else{y7(e,x,p,b,i);}}else{b[e]=x;}}};var y7=function(a,b,p,e){var i=p&&p[a]||{properties:u,type:u};var x=H1(b,i);if(R2(b)||!b){F7(R6,a,x,e);e[a]=b;return;}if(N2(b,x)||M2(b)){C7(a,b,e);return;}if(!x&&L2(b)){A7(a,b,e);return;}if(H2(b,x)){if(D2(x)){F7(R6,a,x,e);}B7(a,b,e);return;}e[a]={};F7(R6,null,x,e[a]);x7(b,i.properties,e[a]);};var z7=function(a,b){b.url=a;};var A7=function(a,b,e){F7(Q6,a,b.__deferred.uri,e);};var B7=function(a,b,e){e[a]=[];var i=m(b)?b:b.results;x7(i,null,e[a]);};var C7=function(a,b,e){if(N2(b)){e[a]=[];var p=m(b)?b:b.results;var i,x;for(i=0,x=p.length;i<x;i++){D7(a,p[i],true,e);}return;}D7(a,b,false,e);};var D7=function(a,b,i,e){var p=b.__metadata&&b.__metadata.uri;if(p){E7(a,p,i,e);return;}var x=v7(b);if(i){e[a].push(x);return;}e[a]=x;};var E7=function(a,b,i,e){var p=a+O6;if(i){e[p]=e[p]||[];e[p].push(b);return;}e[p]=b;};var F7=function(a,b,e,i){if(e!==u){b?i[b+"@"+a]=e:i[a]=e;}};var G7="application/json";var H7=D3(G7);var I7=function(a){var b=[];for(name in a){var i,e;for(i=0,e=a[name].length;i<e;i++){b.push(k({metadata:name},a[name][i]));}}return b;};var J7=function(a,b,e,p){if(a&&typeof a==="object"){var x;var y=a.__metadata;if(y){if(y.actions){y.actions=I7(y.actions);}if(y.functions){y.functions=I7(y.functions);}x=y&&y.type;}var _=Y2(x,b)||X2(x,b);if(_){var k9=_.property;if(k9){var i,l9;for(i=0,l9=k9.length;i<l9;i++){var m9=k9[i];var n9=m9.name;var o9=a[n9];if(m9.type==="Edm.DateTime"||m9.type==="Edm.DateTimeOffset"){if(o9){o9=e(o9);if(!o9){throw{message:"Invalid date/time value"};}a[n9]=o9;}}else if(m9.type==="Edm.Time"){if(o9){a[n9]=n3(o9);}}}}}else if(p){for(var p9 in a){o9=a[p9];if(typeof o9==="string"){a[p9]=e(o9)||o9;}}}}return a;};var K7=function(D3){if(D3){var o=D3.properties.odata;return o==="nometadata"||o==="minimalmetadata"||o==="fullmetadata";}return false;};var L7=function(a,b){var e={collections:[]};var i,p;for(i=0,p=a.EntitySets.length;i<p;i++){var x=a.EntitySets[i];var y={title:x,href:H(x,b)};e.collections.push(y);}return{workspaces:[e]};};var M7=/^\/Date\((-?\d+)(\+|-)?(\d+)?\)\/$/;var N7=function(a){var b;if(a<0){b="-";a=-a;}else{b="+";}var e=Math.floor(a/60);a=a-(60*e);return b+B2(e,2)+":"+B2(a,2);};var O7=function(a){var b=a&&M7.exec(a);if(b){var e=new Date(r(b[1]));if(b[2]){var i=r(b[3]);if(b[2]==="-"){i=-i;}var p=e.getUTCMinutes();e.setUTCMinutes(p-i);e.__edmType="Edm.DateTimeOffset";e.__offset=N7(i);}if(!isNaN(e.valueOf())){return e;}}};var P7=function(P3,a,b){var e=h(b.recognizeDates,P3.recognizeDates);var i=h(b.inferJsonLightFeedAsObject,P3.inferJsonLightFeedAsObject);var p=b.metadata;var x=b.dataServiceVersion;var y=O7;var _=(typeof a==="string")?w.JSON.parse(a):a;if((d3("3.0",x)===x)){if(K7(b.contentType)){return t7(_,p,e,i);}y=j3;}_=r3(_.d,function(k9,l9){return J7(l9,p,y,e);});_=U7(_,b.dataServiceVersion);return T7(_,b.response.requestUri);};var Q7=function(a){var b=u;var e=Date.prototype.toJSON;try{Date.prototype.toJSON=function(){return y2(this);};b=w.JSON.stringify(a,S7);b=b.replace(/\/Date\(([0-9.+-]+)\)\//g,"\\/Date($1)\\/");}finally{Date.prototype.toJSON=e;}return b;};var R7=function(P3,a,b){var e=b.dataServiceVersion||"1.0";var i=h(b.useJsonLight,P3.useJsonLight);var p=b.contentType=b.contentType||H7;if(p&&p.mediaType===H7.mediaType){var x=a;if(i||K7(p)){b.dataServiceVersion=d3(e,"3.0");x=v7(a,b);return Q7(x);}if(d3("3.0",e)===e){p.properties.odata="verbose";b.contentType=p;}return Q7(x);}return u;};var S7=function(_,a){if(a&&a.__edmType==="Edm.Time"){return A2(a);}else{return a;}};var T7=function(a,b){var i=J2(a)&&!a.__metadata&&m(a.EntitySets);return i?L7(a,b):a;};var U7=function(a,b){if(b&&b.lastIndexOf(";")===b.length-1){b=b.substr(0,b.length-1);}if(!b||b==="1.0"){if(m(a)){a={results:a};}}return a;};var V7=P3(P7,R7,G7,C3);V7.recognizeDates=false;V7.useJsonLight=false;V7.inferJsonLightFeedAsObject=false;o.jsonHandler=V7;var W7="multipart/mixed";var X7=/^HTTP\/1\.\d (\d{3}) (.*)$/i;var Y7=/^([^()<>@,;:\\"\/[\]?={} \t]+)\s?:\s?(.*)/;var Z7=function(){return Math.floor((1+Math.random())*0x10000).toString(16).substr(1);};var $7=function(p){return p+Z7()+"-"+Z7()+"-"+Z7();};var _7=function(a){return a.handler.partHandler;};var a8=function(a){var b=a.boundaries;return b[b.length-1];};var b8=function(P3,a,b){var e=b.contentType.properties["boundary"];return{__batchResponses:d8(a,{boundaries:[e],handlerContext:b})};};var c8=function(P3,a,b){var e=b.contentType=b.contentType||D3(W7);if(e.mediaType===W7){return i8(a,b);}};var d8=function(a,b){var i="--"+a8(b);h8(a,b,i);g8(a,b);var p=[];var x;while(x!=="--"&&b.position<a.length){var y=e8(a,b);var _=D3(y["Content-Type"]);if(_&&_.mediaType===W7){b.boundaries.push(_.properties["boundary"]);try{var k9=d8(a,b);}catch(e){e.response=f8(a,b,i);k9=[e];}p.push({__changeResponses:k9});b.boundaries.pop();h8(a,b,"--"+a8(b));}else{if(!_||_.mediaType!=="application/http"){throw{message:"invalid MIME part type "};}g8(a,b);var l9=f8(a,b,i);try{if(l9.statusCode>=200&&l9.statusCode<=299){_7(b.handlerContext).read(l9,b.handlerContext);}else{l9={message:"HTTP request failed",response:l9};}}catch(e){l9=e;}p.push(l9);}x=a.substr(b.position,2);g8(a,b);}return p;};var e8=function(a,b){var e={};var p;var i;var x;do{x=b.position;i=g8(a,b);p=Y7.exec(i);if(p!==null){e[p[1]]=p[2];}else{b.position=x;}}while(i&&p);f3(e);return e;};var f8=function(a,b,e){var p=b.position;var i=X7.exec(g8(a,b));var x;var y;var _;if(i){x=i[1];y=i[2];_=e8(a,b);g8(a,b);}else{b.position=p;}return{statusCode:x,statusText:y,headers:_,body:h8(a,b,"\r\n"+e)};};var g8=function(a,b){return h8(a,b,"\r\n");};var h8=function(a,b,e){var i=b.position||0;var p=a.length;if(e){p=a.indexOf(e,i);if(p===-1){return null;}b.position=p+e.length;}else{b.position=p;}return a.substring(i,p);};var i8=function(a,b){if(!F2(a)){throw{message:"Data is not a batch object."};}var e=$7("batch_");var p=a.__batchRequests;var x="";var i,y;for(i=0,y=p.length;i<y;i++){x+=j8(e,false)+k8(p[i],b);}x+=j8(e,true);var _=b.contentType.properties;_.boundary=e;return x;};var j8=function(b,a){var e="\r\n--"+b;if(a){e+="--";}return e+"\r\n";};var k8=function(p,a,b){var e=p.__changeRequests;var x;if(m(e)){if(b){throw{message:"Not Supported: change set nested in other change set"};}var y=$7("changeset_");x="Content-Type: "+W7+"; boundary="+y+"\r\n";var i,_;for(i=0,_=e.length;i<_;i++){x+=j8(y,false)+k8(e[i],a,true);}x+=j8(y,true);}else{x="Content-Type: application/http\r\nContent-Transfer-Encoding: binary\r\n\r\n";var k9=k({},a);k9.handler=P3;k9.request=p;k9.contentType=null;p3(p,_7(a),k9);x+=l8(p);}return x;};var l8=function(a){var b=(a.method?a.method:"GET")+" "+a.requestUri+" HTTP/1.1\r\n";for(var e in a.headers){if(a.headers[e]){b=b+e+": "+a.headers[e]+"\r\n";}}if(a.body){function p(i){if(i<=0x7F)return 1;if(i<=0x7FF)return 2;if(i<=0xFFFF)return 3;if(i<=0x1FFFFF)return 4;if(i<=0x3FFFFFF)return 5;if(i<=0x7FFFFFFF)return 6;throw new Error("Illegal argument: "+i);};function x(y){var _=0;for(var i=0;i<y.length;i++){var ch=y.charCodeAt(i);_+=p(ch);}return _;};b+="Content-Length: "+x(a.body)+"\r\n";}b+="\r\n";if(a.body){b+=a.body;}return b;};o.batchHandler=P3(b8,c8,W7,C3);var m8=[o.jsonHandler,o.atomHandler,o.xmlHandler,o.textHandler];var n8=function(a,b,e){var i,p;for(i=0,p=m8.length;i<p&&!m8[i][a](b,e);i++){}if(i===p){throw{message:"no handler for data"};}};o.defaultSuccess=function(a){w.alert(w.JSON.stringify(a));};o.defaultError=t;o.defaultHandler={read:function(a,b){if(a&&a.body&&a.headers["Content-Type"]){n8("read",a,b);}},write:function(a,b){n8("write",a,b);},maxDataServiceVersion:C3,accept:"application/atomsvc+xml;q=0.8, application/json;odata=fullmetadata;q=0.7, application/json;q=0.5, */*;q=0.1"};o.defaultMetadata=[];o.read=function(a,b,e,P3,i,p){var x;if(a instanceof String||typeof a==="string"){x={requestUri:a};}else{x=a;}return o.request(x,b,e,P3,i,p);};o.request=function(a,b,e,P3,i,p){b=b||o.defaultSuccess;e=e||o.defaultError;P3=P3||o.defaultHandler;i=i||o.defaultHttpClient;p=p||o.defaultMetadata;a.recognizeDates=h(a.recognizeDates,o.jsonHandler.recognizeDates);a.callbackParameterName=h(a.callbackParameterName,o.defaultHttpClient.callbackParameterName);a.formatQueryString=h(a.formatQueryString,o.defaultHttpClient.formatQueryString);a.enableJsonpCallback=h(a.enableJsonpCallback,o.defaultHttpClient.enableJsonpCallback);a.useJsonLight=h(a.useJsonLight,o.jsonHandler.enableJsonpCallback);a.inferJsonLightFeedAsObject=h(a.inferJsonLightFeedAsObject,o.jsonHandler.inferJsonLightFeedAsObject);var x={metadata:p,recognizeDates:a.recognizeDates,callbackParameterName:a.callbackParameterName,formatQueryString:a.formatQueryString,enableJsonpCallback:a.enableJsonpCallback,useJsonLight:a.useJsonLight,inferJsonLightFeedAsObject:a.inferJsonLightFeedAsObject};try{p3(a,P3,x);return E2(a,b,e,P3,i,x);}catch(y){if(y.bIsSuccessHandlerError){throw y;}else{e(y);}}};o.batchHandler.partHandler=o.defaultHandler;var o8=null;var p8=function(){var a={v:this.valueOf(),t:"[object Date]"};for(var b in this){a[b]=this[b];}return a;};var q8=function(_,a){if(a&&a.t==="[object Date]"){var b=new Date(a.v);for(var e in a){if(e!=="t"&&e!=="v"){b[e]=a[e];}}a=b;}return a;};var r8=function(a,b){return a.name+"#!#"+b;};var s8=function(a,b){return b.replace(a.name+"#!#","");};var t8=function(a){this.name=a;};t8.create=function(a){if(t8.isSupported()){o8=o8||w.localStorage;return new t8(a);}throw{message:"Web Storage not supported by the browser"};};t8.isSupported=function(){return!!w.localStorage;};t8.prototype.add=function(a,b,e,i){i=i||this.defaultError;var p=this;this.contains(a,function(x){if(!x){p.addOrUpdate(a,b,e,i);}else{j(i,{message:"key already exists",key:a});}},i);};t8.prototype.addOrUpdate=function(a,b,i,p){p=p||this.defaultError;if(a instanceof Array){p({message:"Array of keys not supported"});}else{var x=r8(this,a);var y=Date.prototype.toJSON;try{var _=b;if(_!==u){Date.prototype.toJSON=p8;_=w.JSON.stringify(b);}o8.setItem(x,_);j(i,a,b);}catch(e){if(e.code===22||e.number===0x8007000E){j(p,{name:"QUOTA_EXCEEDED_ERR",error:e});}else{j(p,e);}}finally{Date.prototype.toJSON=y;}}};t8.prototype.clear=function(a,b){b=b||this.defaultError;try{var i=0,p=o8.length;while(p>0&&i<p){var x=o8.key(i);var y=s8(this,x);if(x!==y){o8.removeItem(x);p=o8.length;}else{i++;}};j(a);}catch(e){j(b,e);}};t8.prototype.close=function(){};t8.prototype.contains=function(a,b,i){i=i||this.defaultError;try{var p=r8(this,a);var x=o8.getItem(p);j(b,x!==null);}catch(e){j(i,e);}};t8.prototype.defaultError=t;t8.prototype.getAllKeys=function(a,b){b=b||this.defaultError;var p=[];var i,x;try{for(i=0,x=o8.length;i<x;i++){var y=o8.key(i);var _=s8(this,y);if(y!==_){p.push(_);}}j(a,p);}catch(e){j(b,e);}};t8.prototype.mechanism="dom";t8.prototype.read=function(a,b,i){i=i||this.defaultError;if(a instanceof Array){i({message:"Array of keys not supported"});}else{try{var p=r8(this,a);var x=o8.getItem(p);if(x!==null&&x!=="undefined"){x=w.JSON.parse(x,q8);}else{x=u;}j(b,a,x);}catch(e){j(i,e);}}};t8.prototype.remove=function(a,b,i){i=i||this.defaultError;if(a instanceof Array){i({message:"Batches not supported"});}else{try{var p=r8(this,a);o8.removeItem(p);j(b);}catch(e){j(i,e);}}};t8.prototype.update=function(a,b,e,i){i=i||this.defaultError;var p=this;this.contains(a,function(x){if(x){p.addOrUpdate(a,b,e,i);}else{j(i,{message:"key not found",key:a});}},i);};var u8=w.mozIndexedDB||w.webkitIndexedDB||w.msIndexedDB||w.indexedDB;var v8=w.IDBKeyRange||w.webkitIDBKeyRange;var w8=w.IDBTransaction||w.webkitIDBTransaction||{};var x8=w8.READ_ONLY||"readonly";var y8=w8.READ_WRITE||"readwrite";var z8=function(a,b){return function(e){var i=a||b;if(!i){return;}if(Object.prototype.toString.call(e)==="[object IDBDatabaseException]"){if(e.code===11){i({name:"QuotaExceededError",error:e});return;}i(e);return;}var p;try{var x=e.target.error||e;p=x.name;}catch(y){p=(e.type==="blocked")?"IndexedDBBlocked":"UnknownError";}i({name:p,error:e});};};var A8=function(a,b,e){var i=a.name;var p="_datajs_"+i;var x=u8.open(p);x.onblocked=e;x.onerror=e;x.onupgradeneeded=function(){var y=x.result;if(!y.objectStoreNames.contains(i)){y.createObjectStore(i);}};x.onsuccess=function(y){var _=x.result;if(!_.objectStoreNames.contains(i)){if("setVersion"in _){var k9=_.setVersion("1.0");k9.onsuccess=function(){var l9=k9.transaction;l9.oncomplete=function(){b(_);};_.createObjectStore(i,null,false);};k9.onerror=e;k9.onblocked=e;return;}y.target.error={name:"DBSchemaMismatch"};e(y);return;}_.onversionchange=function(y){y.target.close();};b(_);};};var B8=function(a,b,e,i){var p=a.name;var x=a.db;var y=z8(i,a.defaultError);if(x){e(x.transaction(p,b));return;}A8(a,function(_){a.db=_;e(_.transaction(p,b));},y);};var C8=function(a){this.name=a;};C8.create=function(a){if(C8.isSupported()){return new C8(a);}throw{message:"IndexedDB is not supported on this browser"};};C8.isSupported=function(){return!!u8;};C8.prototype.add=function(a,b,e,p){var x=this.name;var y=this.defaultError;var _=[];var k9=[];if(a instanceof Array){_=a;k9=b;}else{_=[a];k9=[b];}B8(this,y8,function(l9){l9.onabort=z8(p,y,a,"add");l9.oncomplete=function(){if(a instanceof Array){e(_,k9);}else{e(a,b);}};for(var i=0;i<_.length&&i<k9.length;i++){l9.objectStore(x).add({v:k9[i]},_[i]);}},p);};C8.prototype.addOrUpdate=function(a,b,e,p){var x=this.name;var y=this.defaultError;var _=[];var k9=[];if(a instanceof Array){_=a;k9=b;}else{_=[a];k9=[b];}B8(this,y8,function(l9){l9.onabort=z8(p,y);l9.oncomplete=function(){if(a instanceof Array){e(_,k9);}else{e(a,b);}};for(var i=0;i<_.length&&i<k9.length;i++){var m9={v:k9[i]};l9.objectStore(x).put(m9,_[i]);}},p);};C8.prototype.clear=function(a,e){var b=this.name;var i=this.defaultError;B8(this,y8,function(p){p.onerror=z8(e,i);p.oncomplete=function(){a();};p.objectStore(b).clear();},e);};C8.prototype.close=function(){if(this.db){this.db.close();this.db=null;}};C8.prototype.contains=function(a,b,e){var i=this.name;var p=this.defaultError;B8(this,x8,function(x){var y=x.objectStore(i);var _=y["get"](a);x.oncomplete=function(){b(!!_.result);};x.onerror=z8(e,p);},e);};C8.prototype.defaultError=t;C8.prototype.getAllKeys=function(a,e){var b=this.name;var i=this.defaultError;B8(this,y8,function(p){var x=[];p.oncomplete=function(){a(x);};var y=p.objectStore(b).openCursor();y.onerror=z8(e,i);y.onsuccess=function(_){var k9=_.target.result;if(k9){x.push(k9.key);k9["continue"].call(k9);}};},e);};C8.prototype.mechanism="indexeddb";C8.prototype.read=function(a,b,e){var p=this.name;var x=this.defaultError;var y=(a instanceof Array)?a:[a];B8(this,x8,function(_){var k9=[];_.onerror=z8(e,x,a,"read");_.oncomplete=function(){if(a instanceof Array){b(y,k9);}else{b(y[0],k9[0]);}};for(var i=0;i<y.length;i++){var l9=_.objectStore(p);var m9=l9["get"].call(l9,y[i]);m9.onsuccess=function(n9){var o9=n9.target.result;k9.push(o9?o9.v:u);};}},e);};C8.prototype.remove=function(a,b,e){var p=this.name;var x=this.defaultError;var y=(a instanceof Array)?a:[a];B8(this,y8,function(_){_.onerror=z8(e,x);_.oncomplete=function(){b();};for(var i=0;i<y.length;i++){var k9=_.objectStore(p);k9["delete"].call(k9,y[i]);}},e);};C8.prototype.update=function(a,b,e,p){var x=this.name;var y=this.defaultError;var _=[];var k9=[];if(a instanceof Array){_=a;k9=b;}else{_=[a];k9=[b];}B8(this,y8,function(l9){l9.onabort=z8(p,y);l9.oncomplete=function(){if(a instanceof Array){e(_,k9);}else{e(a,b);}};for(var i=0;i<_.length&&i<k9.length;i++){var m9=l9.objectStore(x).openCursor(v8.only(_[i]));var n9={v:k9[i]};m9.pair={key:_[i],value:n9};m9.onsuccess=function(o9){var p9=o9.target.result;if(p9){p9.update(o9.target.pair.value);}else{l9.abort();}};}},p);};var D8=function(a){var b=[];var i=[];var e={};this.name=a;var p=function(y){return y||this.defaultError;};var x=function(y,_){var k9;if(y instanceof Array){k9="Array of keys not supported";}if(y===u||y===null){k9="Invalid key";}if(k9){j(_,{message:k9});return false;}return true;};this.add=function(y,_,k9,l9){l9=p(l9);if(x(y,l9)){if(!e.hasOwnProperty(y)){this.addOrUpdate(y,_,k9,l9);}else{l9({message:"key already exists",key:y});}}};this.addOrUpdate=function(y,_,k9,l9){l9=p(l9);if(x(y,l9)){var m9=e[y];if(m9===u){if(b.length>0){m9=b.splice(0,1);}else{m9=i.length;}}i[m9]=_;e[y]=m9;j(k9,y,_);}};this.clear=function(y){i=[];e={};b=[];j(y);};this.contains=function(y,_){var k9=e.hasOwnProperty(y);j(_,k9);};this.getAllKeys=function(y){var _=[];for(var a in e){_.push(a);}j(y,_);};this.read=function(y,_,k9){k9=p(k9);if(x(y,k9)){var l9=e[y];j(_,y,i[l9]);}};this.remove=function(y,_,k9){k9=p(k9);if(x(y,k9)){var l9=e[y];if(l9!==u){if(l9===i.length-1){i.pop();}else{i[l9]=u;b.push(l9);}delete e[y];if(i.length===0){b=[];}}j(_);}};this.update=function(y,_,k9,l9){l9=p(l9);if(x(y,l9)){if(e.hasOwnProperty(y)){this.addOrUpdate(y,_,k9,l9);}else{l9({message:"key not found",key:y});}}};};D8.create=function(a){return new D8(a);};D8.isSupported=function(){return true;};D8.prototype.close=function(){};D8.prototype.defaultError=t;D8.prototype.mechanism="memory";var E8={indexeddb:C8,dom:t8,memory:D8};d.defaultStoreMechanism="best";d.createStore=function(a,b){if(!b){b=d.defaultStoreMechanism;}if(b==="best"){b=(t8.isSupported())?"dom":"memory";}var e=E8[b];if(e){return e.create(a);}throw{message:"Failed to create store",name:a,mechanism:b};};var F8=function(a,b){var e=(a.indexOf("?")>=0)?"&":"?";return a+e+b;};var G8=function(a,b){var i=a.indexOf("?");var e="";if(i>=0){e=a.substr(i);a=a.substr(0,i);}if(a[a.length-1]!=="/"){a+="/";}return a+b+e;};var H8=function(a,b){return{method:"GET",requestUri:a,user:b.user,password:b.password,withCredentials:b.withCredentials,enableJsonpCallback:b.enableJsonpCallback,callbackParameterName:b.callbackParameterName,formatQueryString:b.formatQueryString};};var I8=function(a,b){var e=-1;var i=a.indexOf("?");if(i!==-1){var p=a.indexOf("?"+b+"=",i);if(p===-1){p=a.indexOf("&"+b+"=",i);}if(p!==-1){e=p+b.length+2;}}return e;};var J8=function(a,b,e,i){var p=K8(a,b,[],e,i);return p;};var K8=function(a,b,e,i,p){var x=H8(a,b);var y=o.request(x,function(_){var k9=_.__next;var l9=_.results;e=e.concat(l9);if(k9){y=K8(k9,b,e,i,p);}else{i(e);}},p,u,b.httpClient,b.metadata);return{abort:function(){y.abort();}};};var L8=function(a){var b=this;var e=a.source;b.identifier=G(encodeURI(decodeURI(e)));b.options=a;b.count=function(i,p){var a=b.options;return o.request(H8(G8(e,"$count"),a),function(x){var y=r(x.toString());if(isNaN(y)){p({message:"Count is NaN",count:y});}else{i(y);}},p,u,a.httpClient,a.metadata);};b.read=function(i,p,x,y){var _="$skip="+i+"&$top="+p;return J8(F8(e,_),b.options,x,y);};return b;};var M8=function(a,p){var i=N8(a,p);if(i){var b=i.i-p.i;var e=b+(a.c-a.d.length);a.d=a.d.concat(p.d.slice(b,e));}};var N8=function(x,y){var a=x.i+x.c;var b=y.i+y.c;var e=(x.i>y.i)?x.i:y.i;var i=(a<b)?a:b;var p;if(i>=e){p={i:e,c:i-e};}return p;};var O8=function(a,b){if(a===u||typeof a!=="number"){throw{message:"'"+b+"' must be a number."};}if(isNaN(a)||a<0||!isFinite(a)){throw{message:"'"+b+"' must be greater than or equal to zero."};}};var P8=function(a,b){if(a!==u){if(typeof a!=="number"){throw{message:"'"+b+"' must be a number."};}if(isNaN(a)||a<=0||!isFinite(a)){throw{message:"'"+b+"' must be greater than zero."};}}};var Q8=function(a,b){if(a!==u&&(typeof a!=="number"||isNaN(a)||!isFinite(a))){throw{message:"'"+b+"' must be a number."};}};var R8=function(a,b){var i,e;for(i=0,e=a.length;i<e;i++){if(a[i]===b){a.splice(i,1);return true;}}return false;};var S8=function(a){var b=0;var e=typeof a;if(e==="object"&&a){for(var i in a){b+=i.length*2+S8(a[i]);}}else if(e==="string"){b=a.length*2;}else{b=8;}return b;};var T8=function(a,b,p){a=Math.floor(a/p)*p;b=Math.ceil((b+1)/p)*p;return{i:a,c:b-a};};var U8="destroy";var V8="idle";var W8="init";var X8="read";var Y8="prefetch";var Z8="write";var $8="cancel";var _8="end";var a9="error";var b9="start";var c9="wait";var d9="clear";var e9="done";var f9="local";var g9="save";var h9="source";var i9=function(a,p,i,b,e,x,y){var _;var k9;var l9=this;l9.p=p;l9.i=b;l9.c=e;l9.d=x;l9.s=b9;l9.canceled=false;l9.pending=y;l9.oncomplete=null;l9.cancel=function(){if(!i){return;}var o9=l9.s;if(o9!==a9&&o9!==_8&&o9!==$8){l9.canceled=true;n9($8,_);}};l9.complete=function(){n9(_8,_);};l9.error=function(o9){if(!l9.canceled){n9(a9,o9);}};l9.run=function(o9){k9=o9;l9.transition(l9.s,_);};l9.wait=function(x){n9(c9,x);};var m9=function(o9,k9,x){switch(o9){case b9:if(k9!==W8){a(l9,o9,k9,x);}break;case c9:a(l9,o9,k9,x);break;case $8:a(l9,o9,k9,x);l9.fireCanceled();n9(_8);break;case a9:a(l9,o9,k9,x);l9.canceled=true;l9.fireRejected(x);n9(_8);break;case _8:if(l9.oncomplete){l9.oncomplete(l9);}if(!l9.canceled){l9.fireResolved();}a(l9,o9,k9,x);break;default:a(l9,o9,k9,x);break;}};var n9=function(o9,x){l9.s=o9;_=x;m9(o9,k9,x);};l9.transition=n9;return l9;};i9.prototype.fireResolved=function(){var p=this.p;if(p){this.p=null;p.resolve(this.d);}};i9.prototype.fireRejected=function(a){var p=this.p;if(p){this.p=null;p.reject(a);}};i9.prototype.fireCanceled=function(){this.fireRejected({canceled:true,message:"Operation canceled"});};var j9=function(a){var b=W8;var e={counts:0,netReads:0,prefetches:0,cacheReads:0};var p=[];var x=[];var y=[];var k9=0;var l9=false;var m9=z(a.cacheSize,1048576);var n9=0;var o9=0;var p9=0;var q9=m9===0;var r9=z(a.pageSize,50);var s9=z(a.prefetchSize,r9);var t9="1.0";var u9;var v9=0;var w9=a.source;if(typeof w9==="string"){w9=new L8(a);}w9.options=a;var x9=d.createStore(a.name,a.mechanism);var y9=this;y9.onidle=a.idle;y9.stats=e;y9.count=function(){if(u9){throw u9;}var i=G1();var _=false;if(l9){j(function(){i.resolve(n9);});return i.promise();}var S9=w9.count(function(T9){S9=null;e.counts++;i.resolve(T9);},function(T9){S9=null;i.reject(k(T9,{canceled:_}));});return k(i.promise(),{cancel:function(){if(S9){_=true;S9.abort();S9=null;}}});};y9.clear=function(){if(u9){throw u9;}if(p.length===0){var i=G1();var _=new i9(O9,i,false);H9(_,p);return i.promise();}return p[0].p;};y9.filterForward=function(i,_,S9){return E9(i,_,S9,false);};y9.filterBack=function(i,_,S9){return E9(i,_,S9,true);};y9.readRange=function(i,_){O8(i,"index");O8(_,"count");if(u9){throw u9;}var S9=G1();var op=new i9(Q9,S9,true,i,_,[],0);H9(op,x);return k(S9.promise(),{cancel:function(){op.cancel();}});};y9.ToObservable=y9.toObservable=function(){if(!w.Rx||!w.Rx.Observable){throw{message:"Rx library not available - include rx.js"};}if(u9){throw u9;}return w.Rx.Observable.CreateWithDisposable(function(_){var S9=false;var T9=0;var U9=function(i){if(!S9){_.OnError(i);}};var V9=function(W9){if(!S9){var i,X9;for(i=0,X9=W9.length;i<X9;i++){_.OnNext(W9[i]);}if(W9.length<r9){_.OnCompleted();}else{T9+=r9;y9.readRange(T9,r9).then(V9,U9);}}};y9.readRange(T9,r9).then(V9,U9);return{Dispose:function(){S9=true;}};});};var z9=function(_){return function(S9){u9={message:_,error:S9};var i,T9;for(i=0,T9=x.length;i<T9;i++){x[i].fireRejected(u9);}for(i=0,T9=p.length;i<T9;i++){p[i].fireRejected(u9);}x=p=null;};};var A9=function(_){if(_!==b){b=_;var S9=p.concat(x,y);var i,T9;for(i=0,T9=S9.length;i<T9;i++){S9[i].run(b);}}};var B9=function(){var i=new F1();x9.clear(function(){k9=0;l9=false;n9=0;o9=0;p9=0;q9=m9===0;e={counts:0,netReads:0,prefetches:0,cacheReads:0};y9.stats=e;x9.close();i.resolve();},function(_){i.reject(_);});return i;};var C9=function(i){var _=R8(p,i);if(!_){_=R8(x,i);if(!_){R8(y,i);}}v9--;A9(V8);};var D9=function(i){var _=new F1();var S9=false;var T9=w9.read(i,r9,function(U9){var V9={i:i,c:U9.length,d:U9};_.resolve(V9);},function(U9){_.reject(U9);});return k(_,{cancel:function(){if(T9){T9.abort();S9=true;T9=null;}}});};var E9=function(_,S9,T9,U9){_=r(_);S9=r(S9);if(isNaN(_)){throw{message:"'index' must be a valid number.",index:_};}if(isNaN(S9)){throw{message:"'count' must be a valid number.",count:S9};}if(u9){throw u9;}_=Math.max(_,0);var V9=G1();var W9=[];var X9=false;var Y9=null;var Z9=function(ba,ca){if(!X9){if(S9>=0&&W9.length>=S9){V9.resolve(W9);}else{Y9=y9.readRange(ba,ca).then(function(da){for(var i=0,ea=da.length;i<ea&&(S9<0||W9.length<S9);i++){var fa=U9?ea-i-1:i;var ga=da[fa];if(T9(ga)){var ha={index:ba+fa,item:ga};U9?W9.unshift(ha):W9.push(ha);}}if((!U9&&da.length<ca)||(U9&&ba<=0)){V9.resolve(W9);}else{var ia=U9?Math.max(ba-r9,0):ba+ca;Z9(ia,r9);}},function(i){V9.reject(i);});}}};var $9=T8(_,_,r9);var _9=U9?$9.i:_;var aa=U9?_-$9.i+1:$9.i+$9.c-_;Z9(_9,aa);return k(V9.promise(),{cancel:function(){if(Y9){Y9.cancel();}X9=true;}});};var F9=function(){if(y9.onidle&&v9===0){y9.onidle();}};var G9=function(i){if(l9||s9===0||q9){return;}if(y.length===0||(y[0]&&y[0].c!==-1)){var _=new i9(P9,null,true,i,s9,null,s9);H9(_,y);}};var H9=function(i,_){i.oncomplete=C9;_.push(i);v9++;i.run(b);};var I9=function(i){var S9=false;var T9=k(new F1(),{cancel:function(){S9=true;}});var U9=L9(T9,"Read page from store failure");x9.contains(i,function(V9){if(S9){return;}if(V9){x9.read(i,function(_,W9){if(!S9){T9.resolve(W9!==u,W9);}},U9);return;}T9.resolve(false);},U9);return T9;};var J9=function(i,_){var S9=false;var T9=k(new F1(),{cancel:function(){S9=true;}});var U9=L9(T9,"Save page to store failure");var V9=function(){T9.resolve(true);};if(_.c>0){var W9=S8(_);q9=m9>=0&&m9<k9+W9;if(!q9){x9.addOrUpdate(i,_,function(){M9(_,W9);K9(V9,U9);},U9);}else{V9();}}else{M9(_,0);K9(V9,U9);}return T9;};var K9=function(i,_){var S9={actualCacheSize:k9,allDataLocal:l9,cacheSize:m9,collectionCount:n9,highestSavedPage:o9,highestSavedPageSize:p9,pageSize:r9,sourceId:w9.identifier,version:t9};x9.addOrUpdate("__settings",S9,i,_);};var L9=function(i){return function(){i.resolve(false);};};var M9=function(i,_){var S9=i.c;var T9=i.i;if(S9===0){if(o9===T9-r9){n9=o9+p9;}}else{o9=Math.max(o9,T9);if(o9===T9){p9=S9;}k9+=_;if(S9<r9&&!n9){n9=T9+S9;}}if(!l9&&n9===o9+p9){l9=true;}};var N9=function(i,_,S9,T9){var U9=i.canceled&&_!==_8;if(U9){if(_===$8){if(T9&&T9.cancel){T9.cancel();}}}return U9;};var O9=function(i,_,S9){var T9=i.transition;if(S9!==U8){A9(U8);return true;}switch(_){case b9:T9(d9);break;case _8:F9();break;case d9:B9().then(function(){i.complete();});i.wait();break;default:return false;}return true;};var P9=function(i,_,S9,T9){if(!N9(i,_,S9,T9)){var U9=i.transition;if(S9!==Y8){if(S9===U8){if(_!==$8){i.cancel();}}else if(S9===V8){A9(Y8);}return true;}switch(_){case b9:if(y[0]===i){U9(f9,i.i);}break;case e9:var V9=i.pending;if(V9>0){V9-=Math.min(V9,T9.c);}if(l9||V9===0||T9.c<r9||q9){i.complete();}else{i.pending=V9;U9(f9,T9.i+r9);}break;default:return R9(i,_,S9,T9,true);}}return true;};var Q9=function(i,_,S9,T9){if(!N9(i,_,S9,T9)){var U9=i.transition;if(S9!==X8&&_!==b9){if(S9===U8){if(_!==b9){i.cancel();}}else if(S9!==Z8){A9(X8);}return true;}switch(_){case b9:if(S9===V8||S9===Y8){A9(X8);if(i.c>0){var V9=T8(i.i,i.c,r9);U9(f9,V9.i);}else{U9(e9,i);}}break;case e9:M8(i,T9);var W9=i.d.length;if(i.c===W9||T9.c<r9){e.cacheReads++;G9(T9.i+T9.c);i.complete();}else{U9(f9,T9.i+r9);}break;default:return R9(i,_,S9,T9,false);}}return true;};var R9=function(i,_,S9,T9,U9){var V9=i.error;var W9=i.transition;var X9=i.wait;var Y9;switch(_){case _8:F9();break;case f9:Y9=I9(T9).then(function(Z9,$9){if(!i.canceled){if(Z9){W9(e9,$9);}else{W9(h9,T9);}}});break;case h9:Y9=D9(T9).then(function(Z9){if(!i.canceled){if(U9){e.prefetches++;}else{e.netReads++;}W9(g9,Z9);}},V9);break;case g9:if(S9!==Z8){A9(Z8);Y9=J9(T9.i,T9).then(function(Z9){if(!i.canceled){if(!Z9&&U9){i.pending=0;}W9(e9,T9);}A9(V8);});}break;default:return false;}if(Y9){if(i.canceled){Y9.cancel();}else if(i.s===_){X9(Y9);}}return true;};x9.read("__settings",function(_,i){if(f(i)){var S9=i.version;if(!S9||S9.indexOf("1.")!==0){z9("Unsupported cache store version "+S9)();return;}if(r9!==i.pageSize||w9.identifier!==i.sourceId){B9().then(function(){A9(V8);},z9("Unable to clear store during initialization"));}else{k9=i.actualCacheSize;l9=i.allDataLocal;m9=i.cacheSize;n9=i.collectionCount;o9=i.highestSavedPage;p9=i.highestSavedPageSize;t9=S9;A9(V8);}}else{K9(function(){A9(V8);},z9("Unable to write settings during initialization."));}},z9("Unable to read settings from store."));return y9;};d.createDataCache=function(a){P8(a.pageSize,"pageSize");Q8(a.cacheSize,"cacheSize");Q8(a.prefetchSize,"prefetchSize");if(!f(a.name)){throw{message:"Undefined or null name",options:a};}if(!f(a.source)){throw{message:"Undefined source",options:a};}return new j9(a);};})(window);
}
});
//# sourceMappingURL=core-min-1.js.map