This repository has been archived by the owner on Feb 2, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathlayer.js
17 lines (17 loc) · 128 KB
/
layer.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
require.config({"config":{"requirejs-dplugins/i18n":{"bundlesMap":{"deliteful/nls/layer":["deliteful/list/List/nls/Pageable","deliteful/StarRating/nls/StarRating","deliteful/Combobox/nls/Combobox"]},"localesMap":{"deliteful/nls/layer":["root"]}}}});require.config({"config":{"delite/theme":{"layersMap":{"delite/themes/{{theme}}/common.css":"deliteful/themes/layer_{{theme}}.css","deliteful/list/List/themes/{{theme}}/List.css":"deliteful/themes/layer_{{theme}}.css","deliteful/ViewStack/themes/{{theme}}/ViewStack.css":"deliteful/themes/layer_{{theme}}.css","deliteful/ViewIndicator/themes/{{theme}}/ViewIndicator.css":"deliteful/themes/layer_{{theme}}.css","deliteful/ToggleButton/themes/{{theme}}/ToggleButton.css":"deliteful/themes/layer_{{theme}}.css","deliteful/Toaster/themes/{{theme}}/Toaster.css":"deliteful/themes/layer_{{theme}}.css","deliteful/Switch/themes/{{theme}}/Switch.css":"deliteful/themes/layer_{{theme}}.css","deliteful/SwapView/themes/{{theme}}/SwapView.css":"deliteful/themes/layer_{{theme}}.css","deliteful/StarRating/themes/{{theme}}/StarRating.css":"deliteful/themes/layer_{{theme}}.css","deliteful/Slider/themes/{{theme}}/Slider.css":"deliteful/themes/layer_{{theme}}.css","deliteful/SidePane/themes/{{theme}}/SidePane.css":"deliteful/themes/layer_{{theme}}.css","deliteful/Select/themes/{{theme}}/Select.css":"deliteful/themes/layer_{{theme}}.css","deliteful/ResponsiveColumns/themes/{{theme}}/ResponsiveColumns.css":"deliteful/themes/layer_{{theme}}.css","deliteful/RadioButton/themes/{{theme}}/RadioButton.css":"deliteful/themes/layer_{{theme}}.css","deliteful/ProgressIndicator/themes/{{theme}}/ProgressIndicator.css":"deliteful/themes/layer_{{theme}}.css","deliteful/ProgressBar/themes/{{theme}}/ProgressBar.css":"deliteful/themes/layer_{{theme}}.css","deliteful/Panel/themes/{{theme}}/Panel.css":"deliteful/themes/layer_{{theme}}.css","deliteful/LinearLayout/themes/{{theme}}/LinearLayout.css":"deliteful/themes/layer_{{theme}}.css","deliteful/Combobox/themes/{{theme}}/Combobox.css":"deliteful/themes/layer_{{theme}}.css","deliteful/Checkbox/themes/{{theme}}/Checkbox.css":"deliteful/themes/layer_{{theme}}.css","deliteful/Button/themes/{{theme}}/Button.css":"deliteful/themes/layer_{{theme}}.css","deliteful/Accordion/themes/{{theme}}/Accordion.css":"deliteful/themes/layer_{{theme}}.css"}}}});require.config({"config":{"requirejs-dplugins/css":{"layersMap":{"deliteful/ViewStack/transitions/slide.css":"deliteful/layer.css","deliteful/ViewStack/transitions/reveal.css":"deliteful/layer.css"}}}});
define("delite/handlebars!deliteful/list/List/_LoadingPanel.html",["deliteful/ProgressIndicator"],function(){return function(a,b){this.setClassComponent("template","d-list-loading-panel",this);var c=b.createElement("div");this.setClassComponent("template","d-list-loading-panel-info",c);var d=b.createElement("d-progress-indicator");d.setAttribute("active","true"),d.deliver(),c.appendChild(d);var e=a.createTextNode("\n ");c.appendChild(e);var f=b.createElement("span"),g=a.createTextNode(null==this.message?"":this.message);return f.appendChild(g),c.appendChild(f),this.appendChild(c),{attach:function(){d.attachedCallback()},detach:function(){d.detachedCallback()},refresh:function(a){d.deliver(),"message"in a&&(g.nodeValue=null==this.message?"":this.message)}.bind(this),destroy:function(){for(;this.firstChild;)this.removeChild(this.firstChild)}.bind(this)}}}),define("deliteful/list/_LoadingPanel",["delite/register","delite/Widget","delite/handlebars!./List/_LoadingPanel.html"],function(a,b,c){return a("d-list-loading-panel",[HTMLElement,b],{message:"",template:c})}),define("deliteful/list/Renderer",["dcl/dcl","requirejs-dplugins/jquery!attributes/classes","delite/register","delite/Widget"],function(a,b,c,d){return a([d],{item:{},_focusableChildren:null,render:a.after(function(){if(!this.renderNode)throw new Error("render must define a renderNode property on the Renderer. Example using attach-point in a template: <template><div attach-point='renderNode'></div></template>");this.renderNode.tabIndex=-1,b(this.renderNode).addClass("d-list-cell"),this.updateFocusableChildren()}),getFirst:function(){return this._focusableChildren&&this._focusableChildren.length?this._focusableChildren[0]:null},getLast:function(){return this._focusableChildren&&this._focusableChildren.length?this._focusableChildren[this._focusableChildren.length-1]:null},getNext:function(a){return this.getNextFocusableChild(a,1)},getPrev:function(a){return this.getNextFocusableChild(a,-1)},updateFocusableChildren:function(){if(this._focusableChildren)for(var a=0;a<this._focusableChildren.length;a++)delete this._focusableChildren[a].tabIndex;var b=Array.prototype.slice.call(this.renderNode.querySelectorAll("[navindex]"),0);for(this._focusableChildren=b.slice(0).sort(function(a,c){var d=parseInt(a.getAttribute("navindex"),10),e=parseInt(c.getAttribute("navindex"),10);return d===e?b.indexOf(a)-b.indexOf(c):d-e}),a=0;a<this._focusableChildren.length;a++){var c=this._focusableChildren[a];c.tabIndex=-1,c.id||(c.id=this.id+"-cell-"+a)}},getNextFocusableChild:function(a,b){if(this._focusableChildren&&a!==this){var c=a?this._focusableChildren.indexOf(a):-1,d=c+b;return d>=0&&d<this._focusableChildren.length?this._focusableChildren[d]:null}}})}),define("delite/handlebars!deliteful/list/List/_PageLoaderRenderer.html",["deliteful/ProgressIndicator"],function(){return function(a,b){this.setClassComponent("template",this.loading?"d-loading":"",this);var c=this.renderNode=b.createElement("div"),d=this._button=b.createElement("div");d.setAttribute("role","button"),d.setAttribute("navindex","0"),d.setAttribute("aria-disabled",this.loading);var e=b.createElement("div");this.setClassComponent("template","d-spacer",e),d.appendChild(e);var f=a.createTextNode("\n ");d.appendChild(f);var g=this._progressIndicator=b.createElement("d-progress-indicator");g.setAttribute("active",this.loading),g.setAttribute("d-hidden",!this.loading),g.deliver(),d.appendChild(g);var h=a.createTextNode("\n ");d.appendChild(h);var i=this._label=b.createElement("div"),j=a.createTextNode(this.loading?this.item.loadingMessage:this.item.loadMessage);i.appendChild(j),d.appendChild(i);var k=a.createTextNode("\n ");d.appendChild(k);var l=b.createElement("div");return this.setClassComponent("template","d-spacer",l),d.appendChild(l),c.appendChild(d),this.appendChild(c),{attach:function(){g.attachedCallback()},detach:function(){g.detachedCallback()},refresh:function(a){"loading"in a&&this.setClassComponent("template",this.loading?"d-loading":"",this),"loading"in a&&this.setOrRemoveAttribute(d,"aria-disabled",this.loading),"loading"in a&&this.setOrRemoveAttribute(g,"active",this.loading),"loading"in a&&this.setOrRemoveAttribute(g,"d-hidden",!this.loading),g.deliver(),("loading"in a||"item"in a)&&(j.nodeValue=this.loading?this.item.loadingMessage:this.item.loadMessage)}.bind(this),destroy:function(){for(delete this.renderNode,delete this._button,delete this._progressIndicator,delete this._label;this.firstChild;)this.removeChild(this.firstChild)}.bind(this)}}}),define("deliteful/list/PageableList",["dcl/dcl","delite/register","dojo/string","requirejs-dplugins/Promise!","requirejs-dplugins/jquery!attributes/classes","decor/sniff","./List","./Renderer","delite/handlebars!./List/_PageLoaderRenderer.html","requirejs-dplugins/i18n!./List/nls/Pageable"],function(a,b,c,d,e,f,g,h,i,j){var k=b("d-list-loader",[HTMLElement,h],{baseClass:"d-list-loader",loading:!1,postRender:function(){this.on("click",this._load.bind(this))},template:i,_load:function(){if(!this._list.hasAttribute("aria-busy")){this.beforeLoading(),this.loading=!0;var a=this;return new d(function(b,c){a.defer(function(){a.performLoading().then(function(){a.loading=!1,this.afterLoading(),b()}.bind(this),function(b){a.loading=!1,this.afterLoading(),c(b),a._queryError(b)})})})}}});return b("d-pageable-list",[HTMLElement,g],{pageLength:0,maxPages:0,loadPreviousMessage:j["default-load-message"],loadNextMessage:j["default-load-message"],autoPaging:!1,_setAutoPagingAttr:function(a){this._set("autoPaging",a),this._autoPagingHandle&&(this._autoPagingHandle.remove(),this._autoPagingHandle=null),a&&(this._autoPagingHandle=this.on("scroll",this._scrollHandler.bind(this),this))},hideOnPageLoad:!1,_collection:null,_firstLoaded:-1,_lastLoaded:-1,refreshRendering:function(a){this.pageLength>0&&("_collection"in a&&this._collection&&(this._dataLoaded&&(this._setBusy(!0,!0),this._empty(),a.pageLength=!0),this._idPages=[],this._loadNextPage().then(function(){this._setBusy(!1),this._dataLoaded=!0}.bind(this),function(a){this._setBusy(!1),this._queryError(a)}.bind(this))),this._previousPageLoader&&(this._previousPageLoader.item={loadMessage:c.substitute(this.loadPreviousMessage,this),loadingMessage:this.loadingMessage},this._previousPageLoader.deliver()),this._nextPageLoader&&(this._nextPageLoader.item={loadMessage:c.substitute(this.loadNextMessage,this),loadingMessage:this.loadingMessage},this._nextPageLoader.deliver()))},processCollection:a.superCall(function(a){return function(b){0===this.pageLength&&a.apply(this,arguments),this._collection=b,0!==this.pageLength&&this.emit("query-success",{renderItems:this.renderItems,cancelable:!1,bubbles:!0})}}),_updateIdPages:function(a,b,c){for(var d=this._firstLoaded,e=0;e<this._idPages.length;e++){var f=d+this._idPages[e].length-1;if(b>=d&&f>=b){a?this._idPages[e].splice(b-d,0,c):this._idPages[e].splice(b-d,1);break}d+=this._idPages[e].length}},_loadNextPage:function(){this._rangeSpec||(this._rangeSpec={start:0,count:this.pageLength}),this._nextPageLoader&&(this._rangeSpec.start=this._lastLoaded+1,this._rangeSpec.count=this.pageLength);var a=this._collection.fetchRange({start:this._rangeSpec.start,end:this._rangeSpec.start+this._rangeSpec.count});return a.then(function(a){var b=a.map(function(a){return this.itemToRenderItem(a)},this);if(b.length){var c=b.map(function(a){return this.getIdentity(a)},this);this._firstLoaded<0&&(this._firstLoaded=this._rangeSpec.start),this._lastLoaded=this._rangeSpec.start+c.length-1,this._idPages.push(c)}this._nextPageReadyHandler(b)}.bind(this))},_loadPreviousPage:function(){this._rangeSpec.count=this.pageLength,this._rangeSpec.start=this._firstLoaded-this.pageLength,this._rangeSpec.start<0&&(this._rangeSpec.count+=this._rangeSpec.start,this._rangeSpec.start=0);var a=this._collection.fetchRange({start:this._rangeSpec.start,end:this._rangeSpec.start+this._rangeSpec.count});return a.then(function(a){var b=a.map(function(a){return this.itemToRenderItem(a)},this);if(b.length){var c,d=b.map(function(a){return this.getIdentity(a)},this),e=this._idPages[0];for(c=0;c<d.length;c++)e.indexOf(d[c])>=0&&(b.splice(c,1),d.splice(c,1),c--);this._firstLoaded=this._rangeSpec.start,this._idPages.unshift(d)}this._previousPageReadyHandler(b)}.bind(this))},_unloadPage:function(a){var b,c;if(a){for(b=this._idPages.shift(),c=0;c<b.length;c++)this._removeRenderer(this.getItemRendererByIndex(0),!0),this._firstLoaded++;b.length&&!this._previousPageLoader&&this._createPreviousPageLoader(),this._idPages.length&&!this._idPages[0].length&&this._unloadPage(a)}else{for(b=this._idPages.pop(),c=0;c<b.length;c++)this._removeRenderer(this.getRendererByItemId(b[c]),!0),this._lastLoaded--;b.length&&!this._nextPageLoader&&this._createNextPageLoader(),this._idPages.length&&!this._idPages[this._idPages.length-1].length&&this._unloadPage(a)}},_previousPageReadyHandler:function(a){var b=this._getFirstVisibleRenderer(),c=b.nextElementSibling;if(this.navigatedDescendant&&b&&this._previousPageLoader&&this._previousPageLoader.loading&&this.navigateTo(b.renderNode),this._renderNewItems(a,!0),this.maxPages&&this._idPages.length>this.maxPages&&this._unloadPage(!1),0===this._firstLoaded?(this._previousPageLoader.destroy(),this._previousPageLoader=null):this._previousPageLoader.placeAt(this,"first"),b._destroyed&&(b=c),b){var d=b.previousElementSibling;if(d&&d.renderNode){var e=this.navigatedDescendant?null:this.ownerDocument.activeElement;this.navigateTo(d.renderNode),this.scrollBy({y:this.getTopDistance(d)}),e&&e.focus()}}},_nextPageReadyHandler:function(a){var b=this._getLastVisibleRenderer();if(this.navigatedDescendant&&b&&this.navigateTo(b.renderNode),this._renderNewItems(a,!1),this.maxPages&&this._idPages.length>this.maxPages&&this._unloadPage(!0),this._nextPageLoader?a.length!==this._rangeSpec.count?(this._nextPageLoader.destroy(),this._nextPageLoader=null):this._nextPageLoader.placeAt(this):a.length===this._rangeSpec.count&&this._createNextPageLoader(),b){var c=b.nextElementSibling;if(c&&c.renderNode){var d=this.navigatedDescendant?null:this.ownerDocument.activeElement;this.navigateTo(c.renderNode),this.scrollBy({y:this.getBottomDistance(c)}),d&&d.focus()}}},_getLastVisibleRenderer:function(){for(var a=this._getLastRenderer();a&&!(this.getBottomDistance(a)<=0);)a=a.previousElementSibling;return a},_getFirstVisibleRenderer:function(){for(var a=this._getFirstRenderer();a&&!(this.getTopDistance(a)>=0);)a=a.nextElementSibling;return a},_scrollHandler:function(){this.isTopScroll()?(!this._atExtremity&&this._previousPageLoader&&this._previousPageLoader._load(),this._atExtremity=!0):this.isBottomScroll()?(!this._atExtremity&&this._nextPageLoader&&this._nextPageLoader._load(),this._atExtremity=!0):this._atExtremity=!1},_createNextPageLoader:function(){this._nextPageLoader=new k({item:{loadMessage:c.substitute(this.loadNextMessage,this),loadingMessage:this.loadingMessage},beforeLoading:function(){var a=this.hideOnPageLoad&&!this.autoPaging;this._setBusy(!0,a)}.bind(this),afterLoading:function(){this._setBusy(!1)}.bind(this),performLoading:function(){return this._loadNextPage()}.bind(this),_list:this}),this._nextPageLoader.placeAt(this)},_createPreviousPageLoader:function(){this._previousPageLoader=new k({item:{loadMessage:c.substitute(this.loadPreviousMessage,this),loadingMessage:this.loadingMessage},beforeLoading:function(){var a=this.hideOnPageLoad&&!this.autoPaging;this._setBusy(!0,a)}.bind(this),afterLoading:function(){this._setBusy(!1)}.bind(this),performLoading:function(){return this._loadPreviousPage()}.bind(this),_list:this}),this._previousPageLoader.placeAt(this,"first")},itemRemoved:a.superCall(function(a){return function(b){this.pageLength>0?(this._firstLoaded<=b&&b<=this._lastLoaded&&(this._updateIdPages(!1,b),a.call(this,b-this._firstLoaded)),b<this._firstLoaded&&this._firstLoaded--,b<=this._lastLoaded&&this._lastLoaded--,0===this._firstLoaded&&this._previousPageLoader&&(this._previousPageLoader.destroy(),this._previousPageLoader=null)):a.apply(this,arguments)}}),itemAdded:a.superCall(function(a){return function(b,c){this.pageLength>0?this._firstLoaded<b&&b<=this._lastLoaded?(this._updateIdPages(!0,b,this.getIdentity(c)),this._lastLoaded++,a.call(this,b-this._firstLoaded,c)):b<=this._firstLoaded?(this._firstLoaded++,this._lastLoaded++,this._previousPageLoader||this._createPreviousPageLoader()):b>this._lastLoaded&&(this._nextPageLoader||this._createNextPageLoader()):a.apply(this,arguments)}}),itemUpdated:a.superCall(function(a){return function(b,c){this.pageLength>0?this._firstLoaded<b&&b<=this._lastLoaded&&a.call(this,b-this._firstLoaded,c):a.apply(this,arguments)}}),_empty:a.superCall(function(a){return function(){a.call(this,arguments),this.pageLength>0&&(this._nextPageLoader=null,this._previousPageLoader=null,this._rangeSpec=null,this._untrack(),this._firstLoaded=this._lastLoaded=-1)}}),_getNextRenderer:a.superCall(function(a){return function(b,c){var d=a.apply(this,arguments);return(this._nextPageLoader&&d===this._nextPageLoader||this._previousPageLoader&&d===this._previousPageLoader)&&(d=null),d}}),_spaceKeydownHandler:a.superCall(function(a){return function(b){this._nextPageLoader&&this._nextPageLoader.contains(b.target)?(b.preventDefault(),this._nextPageLoader._load()):this._previousPageLoader&&this._previousPageLoader.contains(b.target)?(b.preventDefault(),this._previousPageLoader._load()):a.apply(this,arguments)}}),handleSelection:a.superCall(function(a){return function(b){var c=this.getEnclosingRenderer(b.target);c!==this._nextPageLoader&&c!==this._previousPageLoader&&a.apply(this,arguments)}})})}),define("dojo/string",["./_base/kernel","./_base/lang"],function(a,b){var c=/[&<>'"\/]/g,d={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},e={};return b.setObject("dojo.string",e),e.escape=function(a){return a?a.replace(c,function(a){return d[a]}):""},e.rep=function(a,b){if(0>=b||!a)return"";for(var c=[];1&b&&c.push(a),b>>=1;)a+=a;return c.join("")},e.pad=function(a,b,c,d){c||(c="0");var f=String(a),g=e.rep(c,Math.ceil((b-f.length)/c.length));return d?f+g:g+f},e.substitute=function(c,d,e,f){return f=f||a.global,e=e?b.hitch(f,e):function(a){return a},c.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(a,c,g){var h=b.getObject(c,!1,d);return g&&(h=b.getObject(g,!1,f).call(f,h,c)),e(h,c).toString()})},e.trim=String.prototype.trim?b.trim:function(a){a=a.replace(/^\s+/,"");for(var b=a.length-1;b>=0;b--)if(/\S/.test(a.charAt(b))){a=a.substring(0,b+1);break}return a},e}),define("dojo/_base/kernel",["../has","./config","require","module"],function(a,b,c,d){var e,f,g,h=function(){return this}(),i={},j={},k={config:b,global:h,dijit:i,dojox:j},l={dojo:["dojo",k],dijit:["dijit",i],dojox:["dojox",j]},m=c.map&&c.map[d.id.match(/[^\/]+/)[0]];for(f in m)l[f]?l[f][0]=m[f]:l[f]=[m[f],{}];for(f in l)g=l[f],g[1]._scopeName=g[0],b.noGlobals||(h[g[0]]=g[1]);k.scopeMap=l,k.baseUrl=k.config.baseUrl=c.baseUrl,k.isAsync=!a("dojo-loader")||c.async,k.locale=b.locale;var n="$Rev: f4fef70 $".match(/[0-9a-f]{7,}/);if(k.version={major:1,minor:10,patch:4,flag:"",revision:n?n[0]:NaN,toString:function(){var a=k.version;return a.major+"."+a.minor+"."+a.patch+a.flag+" ("+a.revision+")"}},a.add("extend-dojo",1),Function("d","d.eval = function(){return d.global.eval ? d.global.eval(arguments[0]) : eval(arguments[0]);}")(k),a("host-rhino")?k.exit=function(a){quit(a)}:k.exit=function(){},a.add("dojo-guarantee-console",1),a("dojo-guarantee-console")){"undefined"!=typeof console||(console={});var o,p=["assert","count","debug","dir","dirxml","error","group","groupEnd","info","profile","profileEnd","time","timeEnd","trace","warn","log"];for(e=0;o=p[e++];)console[o]||!function(){var a=o+"";console[a]="log"in console?function(){var b=Array.prototype.slice.call(arguments);b.unshift(a+":"),console.log(b.join(" "))}:function(){},console[a]._fake=!0}()}if(a.add("dojo-debug-messages",!!b.isDebug),k.deprecated=k.experimental=function(){},a("dojo-debug-messages")&&(k.deprecated=function(a,b,c){var d="DEPRECATED: "+a;b&&(d+=" "+b),c&&(d+=" -- will be removed in version: "+c),console.warn(d)},k.experimental=function(a,b){var c="EXPERIMENTAL: "+a+" -- APIs subject to change without notice.";b&&(c+=" "+b),console.warn(c)}),a.add("dojo-modulePaths",1),a("dojo-modulePaths")&&b.modulePaths){k.deprecated("dojo.modulePaths","use paths configuration");var q={};for(f in b.modulePaths)q[f.replace(/\./g,"/")]=b.modulePaths[f];c({paths:q})}return a.add("dojo-moduleUrl",1),a("dojo-moduleUrl")&&(k.moduleUrl=function(a,b){k.deprecated("dojo.moduleUrl()","use require.toUrl","2.0");var d=null;return a&&(d=c.toUrl(a.replace(/\./g,"/")+(b?"/"+b:"")+"/*.*").replace(/\/\*\.\*/,"")+(b?"":"/")),d}),k._hasResource={},k}),define("dojo/_base/config",["../has","require"],function(a,b){var c={};if(a("dojo-config-api")){var d,e=b.rawConfig;for(d in e)c[d]=e[d]}else{var f=function(b,c,e){for(d in b)"has"!=d&&a.add(c+d,b[d],0,e)},g=function(){return this}();c=a("dojo-loader")?b.rawConfig:g.dojoConfig||g.djConfig||{},f(c,"config",1),f(c.has,"",1)}if(!c.locale&&"undefined"!=typeof navigator){var h=navigator.language||navigator.userLanguage;h&&(c.locale=h.toLowerCase())}return c}),define("dojo/has",["require","module"],function(a,b){var c=a.has||function(){};if(!c("dojo-has-api")){var d="undefined"!=typeof window&&"undefined"!=typeof location&&"undefined"!=typeof document&&window.location==location&&window.document==document,e=function(){return this}(),f=d&&document,g=f&&f.createElement("DiV"),h=b.config&&b.config()||{};c=function(a){return"function"==typeof h[a]?h[a]=h[a](e,f,g):h[a]},c.cache=h,c.add=function(a,b,d,e){return("undefined"==typeof h[a]||e)&&(h[a]=b),d&&c(a)},c.add("host-browser",d),c.add("host-node","object"==typeof process&&process.versions&&process.versions.node&&process.versions.v8),c.add("host-rhino","function"==typeof load&&("function"==typeof Packages||"object"==typeof Packages)),c.add("dom",d),c.add("dojo-dom-ready-api",1),c.add("dojo-sniff",1)}if(c("host-browser")){c.add("dom-addeventlistener",!!document.addEventListener),c.add("touch","ontouchstart"in document||"onpointerdown"in document&&navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints),c.add("touch-events","ontouchstart"in document),c.add("pointer-events","onpointerdown"in document),c.add("MSPointer","msMaxTouchPoints"in navigator),c.add("device-width",screen.availWidth||innerWidth);var i=document.createElement("form");c.add("dom-attributes-explicit",0==i.attributes.length),c.add("dom-attributes-specified-flag",i.attributes.length>0&&i.attributes.length<40)}return c.clearElement=function(a){return a.innerHTML="",a},c.normalize=function(a,b){var d=a.match(/[\?:]|[^:\?]*/g),e=0,f=function(a){var b=d[e++];return":"==b?0:"?"==d[e++]?!a&&c(b)?f():(f(!0),f(a)):b||0};return a=f(),a&&b(a)},c.load=function(a,b,c){a?b([a],c):c()},c}),define("deliteful/list/List/nls/Pageable",{root:{"default-load-message":"Click to load ${pageLength} more items"}}),define("deliteful/list/List",["dcl/dcl","delite/register","requirejs-dplugins/jquery!attributes/classes","delite/CustomElement","delite/Selection","delite/KeyNav","delite/StoreMap","delite/Scrollable","./ItemRenderer","./CategoryRenderer","./_LoadingPanel","delite/theme!./List/themes/{{theme}}/List.css"],function(a,b,c,d,e,f,g,h,i,j,k){return b("d-list",[HTMLElement,e,f,g,h],{itemRenderer:i,categoryRenderer:j,labelAttr:"label",iconclassAttr:"iconclass",righttextAttr:"righttext",righticonclassAttr:"righticonclass",categoryAttr:"",categoryFunc:null,baseClass:"d-list",multiCharSearchDuration:0,setAttribute:a.superCall(function(a){return function(b,c){a.apply(this,arguments),"role"===b&&this._applyRole(c)}}),_setScrollDirectionAttr:function(a){if("vertical"!==a&&"none"!==a)throw new TypeError("'"+a+"' not supported for scrollDirection, keeping the previous value of '"+this.scrollDirection+"'");this._set("scrollDirection",a)},_setSelectionModeAttr:a.superCall(function(a){return function(b){if("listbox"===this.getAttribute("role")&&"none"===b)throw new TypeError("selectionMode 'none' is invalid for an aria listbox, keeping the previous value of '"+this.selectionMode+"'");a.apply(this,arguments)}}),selectionMode:"none",loadingMessage:"",_cssClasses:{cell:"d-list-cell",selected:"d-selected",selectable:"d-selectable",multiselectable:"d-multiselectable"},render:function(){var a=this.getAttribute("role");a?this._applyRole(a):this.setAttribute("role","grid"),this.setAttribute("aria-readonly","true")},attachedCallback:a.superCall(function(a){return function(){this._setBusy(!0,!0),this.on("query-error",function(){this._setBusy(!1,!0)}.bind(this)),a.call(this)}}),refreshRendering:function(a){if("selectionMode"in a)if(c(this).removeClass(this._cssClasses.selectable),c(this).removeClass(this._cssClasses.multiselectable),this.removeAttribute("aria-multiselectable"),"none"===this.selectionMode)for(var b=0;b<this.children.length;b++){var d=this.children[b];d.renderNode&&d.renderNode.hasAttribute("aria-selected")&&(d.renderNode.removeAttribute("aria-selected"),c(d).removeClass(this._cssClasses.selected))}else for("single"===this.selectionMode||"radio"===this.selectionMode?c(this).addClass(this._cssClasses.selectable):(c(this).addClass(this._cssClasses.multiselectable),this.setAttribute("aria-multiselectable","true")),b=0;b<this.children.length;b++)d=this.children[b],d.tagName.toLowerCase()===this.itemRenderer.tag&&d.renderNode&&!d.renderNode.hasAttribute("aria-selected")&&(d.renderNode.setAttribute("aria-selected","false"),c(d).removeClass(this._cssClasses.selected))},computeProperties:function(a){"selectionMode"in a&&("none"===this.selectionMode?this._selectionClickHandle&&(this._selectionClickHandle.remove(),this._selectionClickHandle=null):this._selectionClickHandle||(this._selectionClickHandle=this.on("click",this.handleSelection.bind(this)))),("itemRenderer"in a||this._isCategorized()&&("categoryAttr"in a||"categoryFunc"in a||"categoryRenderer"in a))&&this._dataLoaded&&(this._setBusy(!0,!0),this.notifyCurrentValue("source"))},destroy:function(){this.source&&this.source.list&&(this.source.list=null),this._hideLoadingPanel()},deliver:a.superCall(function(a){return function(){a.apply(this,arguments);for(var b=this.querySelectorAll(this.itemRenderer.tag+", "+this.categoryRenderer.tag),c=0;c<b.length;c++)b.item(c).deliver()}}),getItemRenderers:function(){return this.querySelectorAll(this.itemRenderer.tag)},getRendererByItemId:function(a){for(var b=this.getItemRenderers(),c=0;c<b.length;c++){var d=b.item(c);if(this.getIdentity(d.item)===a)return d}return null},getItemRendererByIndex:function(a){return a>=0?this.getItemRenderers().item(a):null},getItemRendererIndex:function(a){var b=-1;if(a.item)for(var c=this.getIdentity(a.item),d=this.getItemRenderers(),e=0;e<d.length;e++){var f=d.item(e);if(this.getIdentity(f.item)===c){b=e;break}}return b},getEnclosingRenderer:function(a){for(var b=a;b&&(!b.parentNode||b.parentNode!==this);)b=b.parentNode;return b},updateRenderers:function(a){if("none"!==this.selectionMode)for(var b=0;b<a.length;b++){var d=a[b],e=this.getRendererByItemId(this.getIdentity(d));if(e){var f=!!this.isSelected(d);e.renderNode.setAttribute("aria-selected",f?"true":"false"),c(e).toggleClass(this._cssClasses.selected,f)}}},hasSelectionModifier:function(a){return!0},handleSelection:function(a){var b=this.getEnclosingRenderer(a.target);return b?(this.isCategoryRenderer(b)||this.selectFromEvent(a,b.item,b,!0),!0):!1},_applyRole:function(a){if("listbox"===a){for(var b=this.querySelectorAll(".d-list-cell[role='gridcell']"),c=0;c<b.length;c++)b[c].setAttribute("role","option");for(b=this.querySelectorAll(".d-list-item[role='row']"),c=0;c<b.length;c++)b[c].removeAttribute("role");if(this._isCategorized())for(b=this.querySelectorAll(".d-list-category[role='row']"),c=0;c<b.length;c++)b[c].removeAttribute("role")}else{for(b=this.querySelectorAll(".d-list-cell[role='option']"),c=0;c<b.length;c++)b[c].setAttribute("role","gridcell");for(b=this.getItemRenderers(),c=0;c<b.length;c++)b[c].setAttribute("role","row");if(this._isCategorized())for(b=this.querySelectorAll(".d-list-category"),c=0;c<b.length;c++)b[c].setAttribute("role","row")}},_setBusy:function(a,b){a?(this.setAttribute("aria-busy","true"),b&&this._showLoadingPanel()):(this.removeAttribute("aria-busy"),this._hideLoadingPanel())},_showLoadingPanel:function(){this._loadingPanel||(this._loadingPanel=new k({message:this.loadingMessage}),void 0!==this.children[0]?this.insertBefore(this._loadingPanel,this.children[0]):this.appendChild(this._loadingPanel),this._loadingPanel.attachedCallback())},_hideLoadingPanel:function(){this._loadingPanel&&(this._loadingPanel.destroy(),this._loadingPanel=null)},_isCategorized:function(){return this.categoryAttr||this.categoryFunc},_empty:function(){this.findCustomElements(this).forEach(function(a){a.destroy&&a.destroy()}),this.innerHTML="",this._previousFocusedChild=null},_renderNewItems:function(a,b){if(this.firstElementChild&&this.firstElementChild!==this._loadingPanel)if(b){if(this._isCategorized()){var c=this._getFirstRenderer();this.isCategoryRenderer(c)&&a[a.length-1].category===c.item.category&&this._removeRenderer(c)}this.insertBefore(this._createRenderers(a,0,a.length,null),this.firstElementChild)}else this.appendChild(this._createRenderers(a,0,a.length,this._getLastRenderer().item));else this.appendChild(this._createRenderers(a,0,a.length,null));this.findCustomElements(this).forEach(function(a){a.attachedCallback()})},_createRenderers:function(a,b,c,d){for(var e,f=b,g=b+c-1,h=this.ownerDocument.createDocumentFragment();g>=f;f++)e=a[f],!this._isCategorized()||d&&e.category===d.category||h.appendChild(this._createCategoryRenderer(e)),h.appendChild(this._createItemRenderer(e)),d=e;return h},_addItemRenderer:function(a,b){var c=this._getInsertSpec(a,b);if(c.nodeRef){if(this.insertBefore(a,c.nodeRef),c.addCategoryAfter){var d=this._createCategoryRenderer(c.nodeRef.item);this.insertBefore(d,c.nodeRef),d.attachedCallback()}}else this.appendChild(a);c.addCategoryBefore&&(d=this._createCategoryRenderer(a.item),this.insertBefore(d,a),d.attachedCallback()),a.attachedCallback()},_getInsertSpec:function(a,b){var c={nodeRef:b>=0?this.getItemRendererByIndex(b):null,addCategoryBefore:!1,addCategoryAfter:!1};if(this._isCategorized()){var d=c.nodeRef?this._getNextRenderer(c.nodeRef,-1):this._getLastRenderer();d?this._sameCategory(a,d)||(this.isCategoryRenderer(d)?(c.nodeRef=d,d=this._getNextRenderer(d,-1),(!d||d&&!this._sameCategory(a,d))&&(c.addCategoryBefore=!0)):c.addCategoryBefore=!0):c.addCategoryBefore=!0,!c.nodeRef||this.isCategoryRenderer(c.nodeRef)||this._sameCategory(c.nodeRef,a)||(c.addCategoryAfter=!0)}return c},_removeRenderer:function(a,b){if(this._isCategorized()&&!this.isCategoryRenderer(a)){var c=this._getNextRenderer(a,-1);if(c&&this.isCategoryRenderer(c)){var d=this._getNextRenderer(a,1);d&&this._sameCategory(a,d)||this._removeRenderer(c)}}if(this._getFocusedRenderer()===a){var e=this._getNextRenderer(a,1)||this._getNextRenderer(a,-1);e&&this.navigateTo(e.renderNode)}b||this.isCategoryRenderer(a)||!this.isSelected(a.item)||this.selectFromEvent(null,a.item,a,!0),this._previousFocusedChild&&this.getEnclosingRenderer(this._previousFocusedChild)===a&&(this._previousFocusedChild=null),this.removeChild(a),a.destroy()},_createItemRenderer:function(a){var b=new this.itemRenderer({item:a,tabindex:"-1"});if("none"!==this.selectionMode){var d=!!this.isSelected(a);b.renderNode.setAttribute("aria-selected",d?"true":"false"),c(b).toggleClass(this._cssClasses.selected,d)}return b},_createCategoryRenderer:function(a){return new this.categoryRenderer({item:a,tabindex:"-1"})},isCategoryRenderer:function(a){return a.tagName.toLowerCase()===this.categoryRenderer.tag},_sameCategory:function(a,b){return a.item.category===b.item.category},_getNextRenderer:function(a,b){return b>=0?a.nextElementSibling:a.previousElementSibling},_getFirstRenderer:function(){return this.querySelector(this.itemRenderer.tag+", "+this.categoryRenderer.tag)},_getLastRenderer:function(){var a=this.querySelectorAll(this.itemRenderer.tag+", "+this.categoryRenderer.tag);return a.length?a.item(a.length-1):null},initItems:function(a){this._empty(),this._renderNewItems(a,!1),this._setBusy(!1,!0),this._dataLoaded=!0,this.emit("query-success",{renderItems:a,cancelable:!1,bubbles:!0})},itemRemoved:function(a,b,c){var d=this.getItemRendererByIndex(a);d&&this._removeRenderer(d,c)},itemAdded:function(a,b,c){var d=this._createItemRenderer(b);this._addItemRenderer(d,a)},itemUpdated:function(a,b,c){var d=this.getItemRendererByIndex(a);d&&(d.item=b)},itemMoved:function(a,b,c,d){this.itemRemoved(a,d,!0),this.itemAdded(b,c,d)},getTopDistance:function(a){return Math.round(a.offsetTop-this.getCurrentScroll().y)},getBottomDistance:function(a){var b=this.getBoundingClientRect();return Math.round(a.offsetTop+a.offsetHeight-this.getCurrentScroll().y-(b.bottom-b.top))},descendantSelector:function(a){var b=this.getEnclosingRenderer(a);return!b||"listbox"===this.getAttribute("role")&&this.isCategoryRenderer(b)?!1:c(a).hasClass(this._cssClasses.cell)||a.hasAttribute("navindex")},_keynavKeyDownHandler:a.before(function(a){a.defaultPrevented||("Spacebar"!==a.key||this._searchTimer?"listbox"!==this.getAttribute("role")&&this._gridKeydownHandler(a):this._spaceKeydownHandler(a))}),focus:function(){if(this._previousFocusedChild)this.navigateTo(this._previousFocusedChild);else{var a=this._getFirst();if(a){for(;a&&!(this.getTopDistance(a)>=0);){var b=a.parentNode.nextElementSibling;a=b?b.renderNode:null}this.navigateTo(a)}}},_keynavDeactivatedHandler:a.superCall(function(a){return function(){this._previousFocusedChild=this.navigatedDescendant,a.call(this)}}),_getFirst:function(){var a=this.querySelector("."+this._cssClasses.cell);return a&&"listbox"===this.getAttribute("role")&&this.isCategoryRenderer(this.getEnclosingRenderer(a))&&(a=this.getNext(a,1)),a},_getLast:function(){var a=this.querySelectorAll("."+this._cssClasses.cell),b=a.length?a.item(a.length-1):null;return b&&"listbox"===this.getAttribute("role")&&this.isCategoryRenderer(this.getEnclosingRenderer(b))&&(b=this.getNext(b,-1)),b},downKeyHandler:function(a){if(!this.navigatedDescendant||!this.navigatedDescendant.hasAttribute("navindex")){var b=this._getFocusedRenderer(),c=null;b&&(c=b.nextElementSibling,c&&"listbox"===this.getAttribute("role")&&this.isCategoryRenderer(c)&&(c=c.nextElementSibling)),this.navigateTo(c?c.renderNode:this._getFirst(),!1,a)}},upKeyHandler:function(a){if(!this.navigatedDescendant||!this.navigatedDescendant.hasAttribute("navindex")){var b=this._getFocusedRenderer(),c=null;b&&(c=b.previousElementSibling,c&&"listbox"===this.getAttribute("role")&&this.isCategoryRenderer(c)&&(c=c.previousElementSibling)),this.navigateTo(c?c.renderNode:this._getLast(),!1,a)}},pageUpKeyHandler:function(a){this.navigateToFirst(a)},pageDownKeyHandler:function(a){this.navigateToLast(a)},getNext:function(a,b){if(a===this)return b>0?this._getFirst():this._getLast();var c=this.getEnclosingRenderer(a);return b>0?c.nextElementSibling?c.nextElementSibling.renderNode:this._getFirst():c.previousElementSibling?c.previousElementSibling.renderNode:this._getLast()},_spaceKeydownHandler:function(a){"none"!==this.selectionMode&&this.handleSelection(a)&&a.preventDefault()},_gridKeydownHandler:function(a){if("Enter"===a.key||"F2"===a.key)this.navigatedDescendant&&!this.navigatedDescendant.hasAttribute("navindex")&&(a.preventDefault(),this._enterActionableMode());else if("Tab"===a.key){if(this.navigatedDescendant&&this.navigatedDescendant.hasAttribute("navindex")){a.preventDefault();for(var b=this._getFocusedRenderer(),c=b[a.shiftKey?"getPrev":"getNext"](this.navigatedDescendant);!c;)b=b[a.shiftKey?"previousElementSibling":"nextElementSibling"]||this[a.shiftKey?"_getLast":"_getFirst"]().parentNode,c=b[a.shiftKey?"getLast":"getFirst"]();this.navigateTo(c)}}else"Esc"===a.key&&this._leaveActionableMode();
},_enterActionableMode:function(){var a=this._getFocusedRenderer();if(a){var b=a.getFirst();b&&this.navigateTo(b)}},_leaveActionableMode:function(){this.navigateTo(this._getFocusedRenderer().renderNode)},_getFocusedRenderer:function(){return this.navigatedDescendant?this.getEnclosingRenderer(this.navigatedDescendant):null}})}),define("delite/handlebars!deliteful/list/List/ItemRenderer.html",[],function(){return function(a,b){var c=this.renderNode=b.createElement("div"),d=b.createElement("div");this.setClassComponent("template","d-list-item-icon "+(null==this.item.iconclass?"":this.item.iconclass),d),d.setAttribute("aria-hidden","true"),d.setAttribute("role","presentation"),c.appendChild(d);var e=a.createTextNode("\n ");c.appendChild(e);var f=b.createElement("div");this.setClassComponent("template","d-list-item-label",f);var g=a.createTextNode(null==this.item.label?"":this.item.label);f.appendChild(g),c.appendChild(f);var h=a.createTextNode("\n ");c.appendChild(h);var i=b.createElement("div");this.setClassComponent("template","d-spacer",i),c.appendChild(i);var j=a.createTextNode("\n ");c.appendChild(j);var k=b.createElement("div");this.setClassComponent("template","d-list-item-right-text",k);var l=a.createTextNode(null==this.item.righttext?"":this.item.righttext);k.appendChild(l),c.appendChild(k);var m=a.createTextNode("\n ");c.appendChild(m);var n=b.createElement("div");return this.setClassComponent("template","d-list-item-right-icon "+(null==this.item.righticonclass?"":this.item.righticonclass),n),n.setAttribute("aria-hidden","true"),n.setAttribute("role","presentation"),c.appendChild(n),this.appendChild(c),{attach:function(){},detach:function(){},refresh:function(a){"item"in a&&this.setClassComponent("template","d-list-item-icon "+(null==this.item.iconclass?"":this.item.iconclass),d),"item"in a&&(g.nodeValue=null==this.item.label?"":this.item.label),"item"in a&&(l.nodeValue=null==this.item.righttext?"":this.item.righttext),"item"in a&&this.setClassComponent("template","d-list-item-right-icon "+(null==this.item.righticonclass?"":this.item.righticonclass),n)}.bind(this),destroy:function(){for(delete this.renderNode;this.firstChild;)this.removeChild(this.firstChild)}.bind(this)}}}),define("deliteful/list/ItemRenderer",["dcl/dcl","requirejs-dplugins/jquery!attributes/classes","delite/register","delite/handlebars!./List/ItemRenderer.html","./Renderer"],function(a,b,c,d,e){return c("d-list-item-renderer",[HTMLElement,e],{baseClass:"d-list-item",template:d,attachedCallback:function(){"grid"===this.getParent().getAttribute("role")?(this.setAttribute("role","row"),this.renderNode.setAttribute("role","gridcell")):this.renderNode.setAttribute("role","option")}})}),define("delite/handlebars!deliteful/list/List/CategoryRenderer.html",[],function(){return function(a,b){var c=this.renderNode=b.createElement("div"),d=a.createTextNode(null==this.item.category?"":this.item.category);return c.appendChild(d),this.appendChild(c),{attach:function(){},detach:function(){},refresh:function(a){"item"in a&&(d.nodeValue=null==this.item.category?"":this.item.category)}.bind(this),destroy:function(){for(delete this.renderNode;this.firstChild;)this.removeChild(this.firstChild)}.bind(this)}}}),define("deliteful/list/CategoryRenderer",["delite/register","delite/handlebars!./List/CategoryRenderer.html","./Renderer"],function(a,b,c){return a("d-list-category-renderer",[HTMLElement,c],{baseClass:"d-list-category",template:b,attachedCallback:function(){"grid"===this.getParent().getAttribute("role")?(this.setAttribute("role","row"),this.renderNode.setAttribute("role","columnheader")):(this.renderNode.removeAttribute("tabindex"),this.renderNode.setAttribute("role","heading"))}})}),define("deliteful/features",["requirejs-dplugins/has","deliteful/channelBreakpoints"],function(a,b){if("undefined"!=typeof window){var c=window.matchMedia("(min-device-width: "+b.smallScreen+")"),d=window.matchMedia("(min-device-width: "+b.mediumScreen+")");a.add("phone-like-channel",function(){return!c.matches&&!d.matches}),a.add("tablet-like-channel",function(){return c.matches&&!d.matches}),a.add("desktop-like-channel",function(){return c.matches&&d.matches})}return a.add("animationEndEvent",function(){var a={animation:"animationend","-webkit-animation":"webkitAnimationEnd","-ms-animation":"MSAnimationEnd"},b=document.createElement("fakeElement");for(var c in a)if(void 0!==b.style[c])return a[c];return null}),a}),define("deliteful/channelBreakpoints",["module"],function(a){var b=a.config();return{smallScreen:b.smallScreen||"480px",mediumScreen:b.mediumScreen||"1024px"}}),define("deliteful/ViewStack",["dcl/dcl","decor/sniff","requirejs-dplugins/Promise!","requirejs-dplugins/jquery!attributes/classes","delite/register","delite/DisplayContainer","delite/theme!./ViewStack/themes/{{theme}}/ViewStack.css","requirejs-dplugins/css!./ViewStack/transitions/slide.css","requirejs-dplugins/css!./ViewStack/transitions/reveal.css"],function(a,b,c,d,e,f){function g(a,b){a&&(b?(a.style.visibility="visible",a.style.display=""):(a.style.visibility="hidden",a.style.display="none"))}function h(a){a&&d(a).addClass("-d-view-stack-reverse")}function i(a){a&&(a.className=a.className.split(/ +/).filter(function(a){return!/^-d-view-stack/.test(a)}).join(" "))}function j(a){return"-d-view-stack-"+a}return e("d-view-stack",[HTMLElement,f],{baseClass:"d-view-stack",transition:"slide",reverse:!1,selectedChildId:"",_pendingChild:null,_setSelectedChildIdAttr:function(a){this.ownerDocument.getElementById(a)&&(this.attached?this.show(a):this._pendingChild=a)},_getSelectedChildIdAttr:function(){return this._visibleChild?this._visibleChild.id:""},createdCallback:function(){this._transitionTiming={"default":0,chrome:20,ios:20,android:100,ff:100,ie:20};for(var a in this._transitionTiming)b(a)&&this._timing<this._transitionTiming[a]&&(this._timing=this._transitionTiming[a])},attachedCallback:function(){var a={transition:"none"};this._pendingChild?(this.show(this._pendingChild,a),this._pendingChild=null):this.children.length>0&&this.show(this.children[0],a)},_timing:0,_setChildrenVisibility:function(){var a=this.children;!this._visibleChild&&a.length>0&&(this._visibleChild=a[0]);for(var b=0;b<a.length;b++)g(a[b],a[b]===this._visibleChild)},onAddChild:a.superCall(function(a){return function(b){var c=a.call(this,b);return this._setChildrenVisibility(),c}}),postRender:function(){this._setChildrenVisibility()},showNext:function(a){return this._showPreviousNext("nextElementSibling",a)},showPrevious:function(b){var c={reverse:!0};return a.mix(c,b||{}),this._showPreviousNext("previousElementSibling",c)},_showPreviousNext:function(a,b){var c=null;if(!this._visibleChild&&this.children.length>0&&(this._visibleChild=this.children[0]),this._visibleChild){var d=this._visibleChild[a];d&&(c=this.show(d,b))}return c},_doTransition:function(a,b,e,f,i){var k=[];return"none"!==f?(a&&(k.push(this._setAfterTransitionHandlers(a)),d(a).addClass(j(f))),b&&(k.push(this._setAfterTransitionHandlers(b)),d(b).addClass(j(f)+" -d-view-stack-in")),i&&(h(a),h(b)),this.defer(function(){b&&d(b).addClass("-d-view-stack-transition"),a&&d(a).addClass("-d-view-stack-transition -d-view-stack-out"),i&&(h(a),h(b)),b&&d(b).addClass("-d-view-stack-in")},this._timing)):a!==b&&g(a,!1),c.all(k)},changeDisplay:function(a,b){if(!a||a.parentNode!==this)return c.resolve();var d=this._visibleChild;i(d),i(a),g(a,!0),this._visibleChild=a;var e=d===a?"none":b.transition||this.transition,f="ltr"===this.effectiveDir?b.reverse:!b.reverse;return this._doTransition(d,a,b,e,f)},show:a.superCall(function(a){return function(c,d){for(var e=this;e&&"none"!==e.style.display&&e!==this.ownerDocument.body;)e=e.parentNode;return(9===b("ie")||e!==this.ownerDocument.body)&&(d||(d={}),d.transition="none"),this._visibleChild&&this._visibleChild.parentNode!==this&&(this._visibleChild=null),!this._visibleChild&&this.children.length>0&&(this._visibleChild=this.children[0]),a.apply(this,[c,d])}}),_setAfterTransitionHandlers:function(a){var b=this,e={node:a};return e.promise=new c(function(a){e.handle=function(){b._afterTransitionHandle(e,a)}}),d(this).addClass("-d-view-stack-transition"),a.addEventListener("webkitTransitionEnd",e.handle),a.addEventListener("transitionend",e.handle),e.promise},_afterTransitionHandle:function(a,b){var c=this._visibleChild===a.node;g(a.node,c),i(a.node),c&&d(this).removeClass("-d-view-stack-transition"),a.node.removeEventListener("webkitTransitionEnd",a.handle),a.node.removeEventListener("transitionend",a.handle),b()}})}),define("deliteful/ViewIndicator",["dcl/dcl","delite/register","dpointer/events","delite/Widget","delite/theme!./ViewIndicator/themes/{{theme}}/ViewIndicator.css"],function(a,b,c,d){return b("d-view-indicator",[HTMLElement,d],{baseClass:"d-view-indicator",viewStack:null,createdCallback:function(){c.setTouchAction(this,"none"),this.on("pointerdown",function(a){if("number"==typeof a.target._vsChildIndex)this.viewStack.show(this.viewStack.children[a.target._vsChildIndex]);else{var b=a.clientX-this.offsetLeft>this.offsetWidth/2;"rtl"===this.effectiveDir&&(b=!b),b?this.viewStack.showNext():this.viewStack.showPrevious({reverse:!0})}}.bind(this))},refreshRendering:function(a){"viewStack"in a&&(this._attachViewStack(),this._refreshDots())},_attachViewStack:function(){this._afterShowHandle&&(this._afterShowHandle.remove(),this._afterShowHandle=null),this.viewStack&&(this._afterShowHandle=this.on("delite-after-show",this._refreshDots.bind(this),this.viewStack))},_refreshDots:function(){this.innerHTML="";for(var a=0;a<this.viewStack.children.length;a++){var b=this.viewStack.children[a],c=this.ownerDocument.createElement("div");c.className="-d-view-indicator-dot"+("visible"===b.style.visibility?" -d-view-indicator-dot-selected":""),c._vsChildIndex=a,this.appendChild(c)}}})}),define("deliteful/ToggleButton/bidi/ToggleButton",["dcl/dcl","dpointer/events"],function(a){return a(null,{refreshRendering:function(a){this.checked&&this.checkedLabel?("checked"in a||"textDir"in a||"checkedLabel"in a)&&(this.labelNode.textContent=this.applyTextDirection(this.checkedLabel)):("checked"in a||"textDir"in a||"label"in a)&&(this.labelNode.textContent=this.applyTextDirection(this.label)),this.title&&"textDir"in a&&(this.title=this.applyTextDirection(this.title))},postRender:function(){this.on("pointerover",this._pointerOverHandler.bind(this))},_pointerOverHandler:function(){this.title&&(this.title=this.applyTextDirection(this.title))}})}),define("delite/handlebars!deliteful/ToggleButton/ToggleButton.html",[],function(){return function(a,b){this.focusNode=this,this.setAttribute("aria-pressed",this.checked);var c=this.on("click",this.toggle.bind(this)),d=this.iconNode=b.createElement("span");this.setClassComponent("template","d-icon "+(this.checked&&this.checkedIconClass?this.checkedIconClass:this.iconClass?this.iconClass:"d-hidden"),d),this.appendChild(d);var e=this.labelNode=b.createElement("span");e.setAttribute("d-hidden",!this.checkedLabel&&!this.label);var f=a.createTextNode(this.checked&&this.checkedLabel?this.checkedLabel:this.label);return e.appendChild(f),this.appendChild(e),{attach:function(){},detach:function(){},refresh:function(a){"checked"in a&&this.setOrRemoveAttribute(this,"aria-pressed",this.checked),("checked"in a||"checkedIconClass"in a||"iconClass"in a)&&this.setClassComponent("template","d-icon "+(this.checked&&this.checkedIconClass?this.checkedIconClass:this.iconClass?this.iconClass:"d-hidden"),d),("checkedLabel"in a||"label"in a)&&this.setOrRemoveAttribute(e,"d-hidden",!this.checkedLabel&&!this.label),("checked"in a||"checkedLabel"in a||"label"in a)&&(f.nodeValue=this.checked&&this.checkedLabel?this.checkedLabel:this.label)}.bind(this),destroy:function(){for(delete this.focusNode,c.remove(),delete this.iconNode,delete this.labelNode;this.firstChild;)this.removeChild(this.firstChild)}.bind(this)}}}),define("deliteful/ToggleButton",["dcl/dcl","delite/register","requirejs-dplugins/has","./Button","./Toggle","requirejs-dplugins/has!bidi?./ToggleButton/bidi/ToggleButton","delite/handlebars!./ToggleButton/ToggleButton.html","delite/theme!./ToggleButton/themes/{{theme}}/ToggleButton.css"],function(a,b,c,d,e,f,g){var h=a([d.Impl,e],{baseClass:"d-toggle-button",checkedLabel:"",checkedIconClass:"",template:g});return b("d-toggle-button",c("bidi")?[HTMLButtonElement,h,f]:[HTMLButtonElement,h])}),define("deliteful/Toggle",["dcl/dcl","requirejs-dplugins/jquery!attributes/classes","delite/CssState"],function(a,b,c){return a(c,{checked:!1,value:"on",attachedCallback:function(){this._initState=this.checked},afterFormResetCallback:function(){this.checked=this._initState},postRender:function(){this.on("focus",function(){b(this).addClass("d-focused")}.bind(this),this.focusNode),this.on("blur",function(){b(this).removeClass("d-focused")}.bind(this),this.focusNode)},toggle:function(){this.disabled||(this.checked=!this.checked)}})}),define("delite/handlebars!deliteful/Toaster/ToasterMessage.html",[],function(){return function(a,b){this.setClassComponent("template",null==this.messageTypeClass?"":this.messageTypeClass,this),this.setAttribute("touch-action","none");var c=this._dismissButton=b.createElement("button");c.type="button",this.setClassComponent("template","d-toaster-dismiss",c),this.appendChild(c);var d=a.createTextNode("\n ");this.appendChild(d);var e=b.createElement("span");this.setClassComponent("template","d-toaster-message-content",e);var f=a.createTextNode("\n "+(null==this.message?"":this.message)+"\n ");return e.appendChild(f),this.appendChild(e),{attach:function(){},detach:function(){},refresh:function(a){"messageTypeClass"in a&&this.setClassComponent("template",null==this.messageTypeClass?"":this.messageTypeClass,this),"message"in a&&(f.nodeValue="\n "+(null==this.message?"":this.message)+"\n ")}.bind(this),destroy:function(){for(delete this._dismissButton;this.firstChild;)this.removeChild(this.firstChild)}.bind(this)}}}),define("deliteful/ToasterMessage",["delite/Widget","delite/register","requirejs-dplugins/Promise!","requirejs-dplugins/jquery!attributes/classes","dpointer/events","./features","delite/handlebars!./Toaster/ToasterMessage.html"],function(a,b,c,d,e,f,g){function h(a){return s[a]||t}function i(a){return"d-toaster-type-"+a}function j(a){return"number"!=typeof a||isNaN(a)?u:a}function k(a){var b=document.createElement("fakeelement");for(var c in a)if(void 0!==b.style[c])return a[c];return null}function l(a,b){var c=[w,x];c.forEach(function(c){if(c){var d={},e=function(a,c,d){return function(){b(a,c),d.handler.remove()}}(a,c,d);d.handler=a.on(c,e)}else b(a,c)})}var m=function(a,b){function c(b){h.startCapture(b),e.setPointerCapture(a,b.pointerId)}function d(a){h.hasStarted&&!h.hasEnded&&h.keepCapturing(a)}function f(a){h.hasStarted&&h.endCapture(a)}var g=function(a){function c(a){return{x:a.clientX,y:a.clientY}}function d(a,b){return b>a?1-1*a/b:0}function e(a,b){var c=b.distance();c>=0&&(a.style.left=c+"px",a.style.opacity=d(c,a.clientWidth))}function f(a){a.style.left="",a.style.opacity=""}function g(a){a.isExpirable()&&a._timer.pause()}function h(a){a.isExpirable()&&a._timer.resume()}var i=100,j=.85;this.gesture={trajectory:null,startTime:null,endTime:null,first:function(){return this.trajectory[0]},last:function(){var a=this.trajectory.length-1;return this.trajectory[a]},secondLast:function(){var a=this.trajectory.length-2;return this.trajectory[a]},distance:function(){return this.last().x-this.first().x},direction:function(){return this.last().x-this.secondLast().x>0?"right":"left"},duration:function(){return this.startTime&&this.endTime?this.endTime-this.startTime:void 0},speed:function(){return this.distance()/this.duration()},isLongEnough:function(){return this.distance()>i},isFastEnough:function(){return this.speed()>j},isDirectedToRight:function(){return"right"===this.direction()}},this.hasStarted=!1,this.hasEnded=!1,this.startCapture=function(b){this.hasStarted=!0,this.hasEnded=!1;var d=c(b);this.gesture.trajectory=[d],this.gesture.startTime=(new Date).getTime(),this.gesture.endTime=null,g(a)},this.keepCapturing=function(b){var d=c(b);this.gesture.trajectory.push(d),e(a,this.gesture)},this.endCapture=function(){this.hasStarted=!1,this.hasEnded=!0,this.gesture.endTime=(new Date).getTime(),this.gesture.isFastEnough()||this.gesture.isLongEnough()&&this.gesture.isDirectedToRight()?b():(f(a),h(a))}},h=new g(a);this.isEnabled=!1;var i,j,k;this.enable=function(){this.isEnabled=!0,i=a.on("pointerdown",c),j=a.on("pointermove",d),k=a.on("pointerup",f)},this.disable=function(){this.isEnabled&&(this.isEnabled=!1,i.remove(),j.remove(),k.remove())}},n=function(a){var b=new c(function(c,d){function e(a){h=Date.now(),g=setTimeout(function(){j=!0,c()},a)}function f(){var b=a-Date.now()+h;return b>=0?b:0}var g=null,h=null,i=null,j=!1;this.start=function(){return e(a),b},this.pause=function(){null!==g?(clearTimeout(g),g=null,i=f()):i=0},this.resume=function(){return e(i),b},this.destroy=function(){j||d()}}.bind(this))},o=function(a){function b(){e||(e=!0,a._timer.pause())}function c(){e&&(e=!1,a._timer.resume())}function d(a){"touch"===a.pointerType&&c()}var e=!1;this.isEnabled=!1;var f;this.enable=function(){this.isEnabled=!0,f=[a.on("pointerover",b),a.on("pointerleave",c),a.on("pointercancel",c),a.on("pointerup",d)]},this.disable=function(){this.isEnabled&&(this.isEnabled=!1,f.forEach(function(a){a.remove()}),f=null)}},p="d-invisible",q="d-hidden",r="d-toaster-swipeout",s={info:"info",success:"success",warning:"warning",error:"error"},t=s.info,u=2e3,v={transition:"transitionend","-webkit-transition":"webkitTransitionEnd"},w=f("animationEndEvent"),x=k(v);return b("d-toaster-message",[HTMLElement,a],{baseClass:"d-toaster-message",message:null,type:t,_setTypeAttr:function(a){var b=h(a);this.messageTypeClass=i(b),this._set("type",b)},duration:u,_setDurationAttr:function(a){var b=j(a);this._set("duration",b)},_dismissButton:null,dismissible:"auto",messageTypeClass:i(t),dismiss:function(a){var b=this.getParent();this._hideInDom(b,!!a,a)},_isInserted:!1,_hasExpired:!1,_toBeRemoved:!1,_isRemoved:!1,isExpirable:function(){return this.duration>=0},isDismissible:function(){return"auto"===this.dismissible?!this.isExpirable():"on"===this.dismissible},_timer:null,_insertInDom:function(a,b){var c=a._wrapper;if(this._isInserted=!0,b&&d(this).addClass(a.animationInitialClass),a.invertOrder&&c.hasChildNodes()){var e=c.childNodes[0];c.insertBefore(this,e)}else c.appendChild(this);this.attachedCallback(),this.isExpirable()&&(this._timer=new n(this.duration),this.own(this._timer),this._timer.start().then(function(){this._hasExpired=!0,a.notifyCurrentValue("messages")}.bind(this))),d(this._dismissButton).toggleClass(q,!this.isDismissible())},_showInDom:function(a,b){b?this.defer(function(){d(this).removeClass(a.animationInitialClass),d(this).addClass(a.animationEnterClass),l(this,function(b){d(b).removeClass(a.animationEnterClass),b.isDismissible()&&b.swipeToDismiss.enable()})},1):this.isDismissible()&&this.swipeToDismiss.enable(),this.isExpirable()&&this.pauseTimerOnHover.enable()},_hideInDom:function(a,b,c){var e=c||a.animationQuitClass;null!==a&&(this.swipeToDismiss.disable(),b?(d(this).addClass(e),l(this,function(b){b._toBeRemoved=!0,a.notifyCurrentValue("messages")})):(d(this).addClass(p),this._toBeRemoved=!0,a.notifyCurrentValue("messages"))),this.isExpirable()&&this.pauseTimerOnHover.disable()},_removeFromDom:function(a,b){d(this).removeClass(a.animationQuitClass),d(this).addClass(b?a.animationEndClass:q),a._wrapper.removeChild(this),this._isRemoved=!0},template:g,postRender:function(){this.swipeToDismiss=new m(this,function(){this.dismiss(r)}.bind(this)),null!==this._dismissButton&&this.on("pointerdown",function(){this.dismiss()}.bind(this),this._dismissButton),this.pauseTimerOnHover=new o(this)}})}),define("delite/handlebars!deliteful/Toaster/Toaster.html",[],function(){return function(a,b){this.setClassComponent("template",null==this.placementClass?"":this.placementClass,this),this.setAttribute("aria-live","assertive"),this.setAttribute("aria-relevant","additions text");var c=this._wrapper=b.createElement("div");return this.setClassComponent("template","d-toaster-inner",c),this.appendChild(c),{attach:function(){},detach:function(){},refresh:function(a){"placementClass"in a&&this.setClassComponent("template",null==this.placementClass?"":this.placementClass,this)}.bind(this),destroy:function(){for(delete this._wrapper;this.firstChild;)this.removeChild(this.firstChild)}.bind(this)}}}),define("deliteful/Toaster",["dcl/dcl","delite/Widget","delite/register","decor/sniff","delite/handlebars!./Toaster/Toaster.html","./ToasterMessage","delite/theme!./Toaster/themes/{{theme}}/Toaster.css"],function(a,b,c,d,e,f){function g(a){return a._toBeRemoved&&!a._isRemoved}return c("d-toaster",[HTMLElement,b],{_wrapper:null,baseClass:"d-toaster",placementClass:"d-toaster-placement-default",messages:null,invertOrder:!1,animationInitialClass:"d-toaster-initial",animationEnterClass:"d-toaster-fadein",animationQuitClass:"d-toaster-fadeout",animationEndClass:"d-toaster-fadefinish",_emitExpiration:function(a){this.emit("messageExpired",{message:a})},_emitInsertion:function(a){this.emit("messageInserted",{message:a})},_emitRemoval:function(a){this.emit("messageRemoved",{message:a})},_getRemovableMsg:function(){return this.messages.filter(g)},_allExpAreRemovable:function(){for(var a=0,b=this.messages.length;b>a;a++){var c=this.messages[a];if(c.isExpirable()&&!g(c))return!1}return!0},template:e,createdCallback:function(){this.messages=[],d("ios")||(this.setAttribute("aria-atomic","true"),this.setAttribute("role","alert"))},refreshRendering:function(a){"messages"in a&&(this.messages.forEach(function(a){a._isInserted?a.isExpirable()&&a._hasExpired&&!a._toBeRemoved&&(a._hideInDom(this,!0),this._emitExpiration(a)):(a._insertInDom(this,!0),a._showInDom(this,!0),this._emitInsertion(a))},this),this._allExpAreRemovable()&&this._getRemovableMsg().forEach(function(a){a._removeFromDom(this,!0),a.destroy(),this.messages.splice(this.messages.indexOf(a),1),this._emitRemoval(a)},this))},postMessage:function(b,c){var d;if("string"==typeof b){var e={message:b};a.mix(e,c),d=new f(e)}else d=b;return this._addMessage(d)},_addMessage:function(a){return this.messages.push(a),this.notifyCurrentValue("messages"),a}})}),define("deliteful/Switch/bidi/Switch",["dcl/dcl","dpointer/events"],function(a){return a(null,{refreshRendering:function(a){("dir"in a||"textDir"in a||"checkedLabel"in a)&&(this._innerNode.firstChild.textContent=this.applyTextDirection(this.checkedLabel)),("dir"in a||"textDir"in a||"uncheckedLabel"in a)&&(this._innerNode.lastChild.textContent=this.applyTextDirection(this.uncheckedLabel)),this.title&&"textDir"in a&&(this.title=this.applyTextDirection(this.title))},postRender:function(){this.on("pointerover",this._pointerOverHandler.bind(this))},_pointerOverHandler:function(){this.title&&(this.title=this.applyTextDirection(this.title))}})}),define("delite/handlebars!deliteful/Switch/Switch.html",[],function(){return function(a,b){this.setClassComponent("template","d-switch d-switch-width d-switch-rounded",this),this.setAttribute("role","presentation");var c=this.focusNode=this.valueNode=b.createElement("input");c.type="checkbox",this.setClassComponent("template","-d-switch-input d-switch-width",c),c.checked=this.checked,c.value=this.value,c.name=this.name,this.appendChild(c);var d=a.createTextNode("\n ");this.appendChild(d);var e=this._pushNode=b.createElement("div");this.setClassComponent("template","-d-switch-push -d-switch-transition "+(this.checked?"d-switch-width":""),e),this.appendChild(e);var f=this._knobGlassNode=b.createElement("div");this.setClassComponent("template","-d-switch-knobglass",f),f.setAttribute("touch-action","none"),this.appendChild(f);var g=this._innerWrapperNode=b.createElement("div");this.setClassComponent("template","-d-switch-inner-wrapper -d-switch-transition",g);var h=a.createTextNode(" \n ");g.appendChild(h);var i=this._innerNode=b.createElement("div");this.setClassComponent("template","-d-switch-inner -d-switch-pull -d-switch-transition",i);var j=b.createElement("div");this.setClassComponent("template","-d-switch-block d-switch-leading d-switch-width",j);var k=a.createTextNode(this.checkedLabel+" ");j.appendChild(k),i.appendChild(j);var l=this._knobNode=b.createElement("div");this.setClassComponent("template","-d-switch-block -d-switch-knob d-switch-rounded",l);var m=a.createTextNode(" ");l.appendChild(m),i.appendChild(l);var n=b.createElement("div");this.setClassComponent("template","-d-switch-block d-switch-trailing d-switch-width",n);var o=a.createTextNode(this.uncheckedLabel+" ");return n.appendChild(o),i.appendChild(n),g.appendChild(i),this.appendChild(g),{attach:function(){},detach:function(){},refresh:function(a){"checked"in a&&(c.checked=this.checked),"value"in a&&(c.value=this.value),"name"in a&&(c.name=this.name),"checked"in a&&this.setClassComponent("template","-d-switch-push -d-switch-transition "+(this.checked?"d-switch-width":""),e),"checkedLabel"in a&&(k.nodeValue=this.checkedLabel+" "),"uncheckedLabel"in a&&(o.nodeValue=this.uncheckedLabel+" ")}.bind(this),destroy:function(){for(delete this.focusNode,delete this.valueNode,delete this._pushNode,delete this._knobGlassNode,delete this._innerWrapperNode,delete this._innerNode,delete this._knobNode;this.firstChild;)this.removeChild(this.firstChild)}.bind(this)}}}),define("deliteful/Switch",["requirejs-dplugins/has","requirejs-dplugins/jquery!attributes/classes","dpointer/events","delite/register","deliteful/Checkbox","delite/handlebars!./Switch/Switch.html","requirejs-dplugins/has!bidi?./Switch/bidi/Switch","delite/theme!./Switch/themes/{{theme}}/Switch.css"],function(a,b,c,d,e,f,g){return d("d-switch",a("bidi")?[HTMLElement,e,g]:[HTMLElement,e],{checkedLabel:"",uncheckedLabel:"",baseClass:"d-switch",template:f,postRender:function(){this.on("pointerdown",this._pointerDownHandler.bind(this),this._knobGlassNode),this.on("click",this._clickPreventer.bind(this),this._knobGlassNode)},destroy:function(){this._cleanHandlers()},_clickPreventer:function(a){a.preventDefault(),a.stopPropagation()},_pointerDownHandler:function(a){this.disabled||(this._startX=this._curX=a.clientX,c.setPointerCapture(this._knobGlassNode,a.pointerId),this._pHandlers||(this._pHandlers=[{e:"pointermove",l:this._pointerMoveHandler.bind(this)},{e:"pointerup",l:this._pointerUpHandler.bind(this)},{e:"lostpointercapture",l:this._lostPointerCaptureHandler.bind(this)}]),this._pHandlers.forEach(function(a){this._knobGlassNode.addEventListener(a.e,a.l)}.bind(this)),a.preventDefault(),a.stopPropagation())},_pointerMoveHandler:function(a){var c=a.clientX-this._curX,d=window.getComputedStyle(this._pushNode),e=parseInt(d.width,10);if(!this._drag&&Math.abs(a.clientX-this._startX)>4&&(this._drag=!0,b(this._innerNode).removeClass("-d-switch-transition"),b(this._pushNode).removeClass("-d-switch-transition"),b(this._innerWrapperNode).removeClass("-d-switch-transition")),this._curX=a.clientX,this._drag){this._knobWidth=parseInt(window.getComputedStyle(this._knobNode).width,10),this._switchWidth=parseInt(window.getComputedStyle(this).width,10);var f="ltr"===this.effectiveDir?e+c:e-c,g=this.checked?this._switchWidth:this._switchWidth-this._knobWidth,h=this.checked?this._knobWidth:0;f=Math.max(h,Math.min(g,f)),this._pushNode.style.width=f+"px"}a.preventDefault(),a.stopPropagation()},_pointerUpHandler:function(a){var b=this.checked;if(this._drag){this._drag=!1;var c=parseInt(window.getComputedStyle(this._pushNode).width,10),d=parseInt(window.getComputedStyle(this._pushNode).marginLeft,10);this.checked=c+d+this._knobWidth/2>=this._switchWidth/2}else this.checked=!this.checked;this.checked!==b&&this.emit("change"),a.preventDefault(),a.stopPropagation()},_lostPointerCaptureHandler:function(){this._cleanHandlers(),this._drag=!1,this._pushNode.style.width="",this._innerNode.style.transform="none",b(this._innerNode).addClass("-d-switch-transition"),b(this._pushNode).addClass("-d-switch-transition"),b(this._innerWrapperNode).addClass("-d-switch-transition")},_cleanHandlers:function(){this._pHandlers.forEach(function(a){this._knobGlassNode.removeEventListener(a.e,a.l)}.bind(this))}})}),define("deliteful/SwapView",["dcl/dcl","delite/register","requirejs-dplugins/jquery!attributes/classes","dpointer/events","./ViewStack","delite/theme!./SwapView/themes/{{theme}}/SwapView.css"],function(a,b,c,d,e){return b("d-swap-view",[HTMLElement,e],{baseClass:"d-swap-view",_dragThreshold:10,swapThreshold:.25,createdCallback:function(){this.on("pointerdown",this._pointerDownHandler.bind(this)),this.on("pointermove",this._pointerMoveHandler.bind(this)),this.on("pointerup",this._pointerUpHandler.bind(this)),this.on("lostpointercapture",this._pointerUpHandler.bind(this)),this.on("pointercancel",this._pointerUpHandler.bind(this)),this.on("keydown",this._keyDownHandler.bind(this))},render:function(){c(this).addClass("d-view-stack"),d.setTouchAction(this,"pan-y")},attachedCallback:function(){this.hasAttribute("tabindex")||(this.tabIndex="0")},_pointerDownHandler:function(a){this._drag||(this._drag={start:a.clientX},d.setPointerCapture(a.target,a.pointerId))},_pointerMoveHandler:function(a){if(this._drag){var b=a.clientX-this._drag.start;if(!this._drag.started&&Math.abs(b)>this._dragThreshold){var d=this._visibleChild,e=("ltr"===this.effectiveDir?0>b:b>0)?d.nextElementSibling:d.previousElementSibling;e&&(this._drag.childOut=d,this._drag.childIn=e,this._drag.started=!0,this._drag.ended=!1,this._drag.reverse=b>0,c(this).addClass("-d-swap-view-drag"),e.style.visibility="visible",e.style.display="")}if(this._drag.started&&!this._drag.ended){var f=this._drag.rx=b/this.offsetWidth,g=this._drag.reverse?f:-f,h=Math.floor(100*(this._drag.reverse?1-g:g)),i=Math.floor(100*(this._drag.reverse?g:1-g)),j=this._drag.reverse?this._drag.childIn:this._drag.childOut,k=this._drag.reverse?this._drag.childOut:this._drag.childIn;this._setTranslation(j,-h),this._setTranslation(k,i)}}},_pointerUpHandler:function(){this._drag&&(this._drag.started?this._drag.ended||(this._drag.ended=!0,this._setupTransitionEndHandlers(),this._setTransitionProperties(this._drag.childIn),this._setTransitionProperties(this._drag.childOut),this._drag.reverse&&this._drag.rx>this.swapThreshold||!this._drag.reverse&&this._drag.rx<-this.swapThreshold?(this._setTranslation(this._drag.childIn,0),this._setTranslation(this._drag.childOut,this._drag.reverse?100:-100)):(this._drag.slideBack=!0,this._setTranslation(this._drag.childIn,this._drag.reverse?-100:100),this._setTranslation(this._drag.childOut,0))):this._drag=null)},_keyDownHandler:function(a){switch(a.key){case"PageUp":this.showNext();break;case"PageDown":this.showPrevious({reverse:!0})}},_setupTransitionEndHandlers:function(){this._endTransitionHandler||(this._endTransitionHandler=function(){this._endTransitionHandler&&(this._addTransitionEndHandlers(this._drag.childIn,!1),this._addTransitionEndHandlers(this._drag.childOut,!1),this._endTransitionHandler=null),this._endTransition()}.bind(this),this._addTransitionEndHandlers(this._drag.childIn,!0),this._addTransitionEndHandlers(this._drag.childOut,!0))},_endTransition:function(){this._drag&&(c(this).removeClass("-d-swap-view-drag"),this._drag.slideBack?(this._drag.childIn.style.visibility="hidden",this._drag.childIn.style.display="none"):(this._drag.childOut.style.visibility="hidden",this._drag.childOut.style.display="none",this.show(this._drag.childIn,{transition:"none"})),this._clearTransitionProperties(this._drag.childIn),this._clearTransitionProperties(this._drag.childOut),this._clearTranslation(this._drag.childIn),this._clearTranslation(this._drag.childOut),this._drag=null)},_addTransitionEndHandlers:function(a,b){var c=(b?"add":"remove")+"EventListener";a[c]("webkitTransitionEnd",this._endTransitionHandler),a[c]("transitionend",this._endTransitionHandler)},_setTransitionProperties:function(a){a.style.webkitTransitionProperty="-webkit-transform",
a.style.transitionProperty="transform",a.style.webkitTransitionDuration="0.3s",a.style.mozTransitionDuration="0.3s",a.style.transitionDuration="0.3s"},_clearTransitionProperties:function(a){a.style.webkitTransitionProperty="",a.style.transitionProperty="",a.style.webkitTransitionDuration="",a.style.mozTransitionDuration="",a.style.transitionDuration=""},_setTranslation:function(a,b){var c="translate3d("+b+"%, 0, 0)";a.style.webkitTransform=c,a.style.transform=c},_clearTranslation:function(a){a.style.webkitTransform="",a.style.transform=""}})}),define("deliteful/StarRating/nls/StarRating",{root:{"aria-valuetext":"${value} stars"}}),define("deliteful/StarRating",["dcl/dcl","dpointer/events","requirejs-dplugins/jquery!attributes/classes","delite/register","delite/FormValueWidget","requirejs-dplugins/i18n!./StarRating/nls/StarRating","delite/theme!./StarRating/themes/{{theme}}/StarRating.css"],function(a,b,c,d,e,f){return d("d-star-rating",[HTMLElement,e],{baseClass:"d-star-rating",max:5,value:0,editHalfValues:!1,allowZero:!0,_hovering:!1,_otherEventsHandles:[],render:function(){this.focusNode=this.ownerDocument.createElement("div"),this.appendChild(this.focusNode),b.setTouchAction(this,"none"),this.focusNode.setAttribute("role","slider"),this.focusNode.setAttribute("aria-valuemin",0),this.valueNode.style.display="none",this.valueNode.parentNode||this.appendChild(this.valueNode)},refreshRendering:function(a){"disabled"in a&&c(this).toggleClass(this.baseClass+"-disabled",this.disabled),"max"in a&&this.focusNode.setAttribute("aria-valuemax",this.max),("max"in a||"value"in a)&&this._refreshStarsRendering(),"value"in a&&(this.focusNode.setAttribute("aria-valuenow",this.value),this.focusNode.setAttribute("aria-valuetext",f["aria-valuetext"].replace("${value}",this.value)),this.valueNode.value=this.value),("readOnly"in a||"disabled"in a)&&this._refreshEditionEventHandlers(),("readOnly"in a||"disabled"in a||"allowZero"in a)&&this._updateZeroArea()},_refreshStarsRendering:function(){var a=this.focusNode.children.length-1!==2*this.max;a&&(this.focusNode.innerHTML=""),this._updateStars(this.value,a)},_refreshEditionEventHandlers:function(){var a=this.disabled||this.readOnly;if(a||this._keyDownHandle?a&&this._keyDownHandle&&(this._keyDownHandle.remove(),this._keyDownHandle=null):this._keyDownHandle=this.on("keydown",this._keyDownHandler.bind(this)),a||this._startHandles){if(a&&this._startHandles){for(;this._startHandles.length;)this._startHandles.pop().remove();this._startHandles=null}}else this._startHandles=[this.on("pointerover",this._pointerOverHandler.bind(this)),this.on("pointerdown",this._wireHandlers.bind(this))]},_removeEventsHandlers:function(){for(;this._otherEventsHandles.length;)this._otherEventsHandles.pop().remove()},_wireHandlers:function(){this._otherEventsHandles.length||(this._otherEventsHandles.push(this.on("pointerup",this._pointerUpHandler.bind(this))),this._otherEventsHandles.push(this.on("pointerleave",this._pointerLeaveHandler.bind(this))),this._otherEventsHandles.push(this.on("pointercancel",this._pointerLeaveHandler.bind(this))))},_pointerOverHandler:function(a){this._wireHandlers(),this._hovering||"mouse"!==a.pointerType||(this._hovering=!0,c(this).addClass(this.baseClass+"-hovered"));var b=a.target.value;void 0!==b&&(this._hovering?b!==this._hoveredValue&&(c(this).addClass(this.baseClass+"-hovered"),this._updateStars(b,!1),this._hoveredValue=b):(this._previousOnChangeValue=this.value,this.handleOnChange(b)))},_pointerUpHandler:function(a){var b=a.target.value;void 0!==b&&this.handleOnChange(b),this._hovering?c(this).removeClass(this.baseClass+"-hovered"):this._removeEventsHandlers()},_pointerLeaveHandler:function(){this._hovering&&(this._hovering=!1,this._hoveredValue=null,c(this).removeClass(this.baseClass+"-hovered"),this._updateStars(this.value,!1)),this._removeEventsHandlers()},_keyDownHandler:function(a){var b="ltr"===this.effectiveDir?"ArrowRight":"ArrowLeft",c="ltr"===this.effectiveDir?"ArrowLeft":"ArrowRight";switch(a.key){case b:case"ArrowUp":case"Add":a.preventDefault(),this._incrementValue();break;case c:case"ArrowDown":case"Subtract":a.preventDefault(),this._decrementValue()}},_incrementValue:function(){this.value<this.max&&(this.value=this.value+(this.editHalfValues?.5:1))},_decrementValue:function(){this.value>(this.allowZero?0:this.editHalfValues?.5:1)&&(this.value=this.value-(this.editHalfValues?.5:1))},_updateStars:function(a,b){var c=this.focusNode.querySelectorAll("div");b&&(this._zeroSettingArea=this.ownerDocument.createElement("div"),this._zeroSettingArea.className=this.baseClass+"-zero",this._zeroSettingArea.value=0,this.focusNode.appendChild(this._zeroSettingArea),this._updateZeroArea());for(var d=0;d<2*this.max;d++){var e=this.baseClass+(d%2?"-end ":"-start ");if(e+=a>=.5*(d+1)?this.baseClass+"-full":this.baseClass+"-empty",b){var f=this.ownerDocument.createElement("div");f.value=this.editHalfValues?(d+1)/2:Math.ceil((d+1)/2),this.focusNode.appendChild(f)}else f=c[d+1];f.className=this.baseClass+"-star-icon "+e}},_updateZeroArea:function(){this.readOnly||!this.allowZero?(c(this._zeroSettingArea).addClass("d-hidden"),delete this.focusNode.value):(c(this._zeroSettingArea).removeClass("d-hidden"),this.focusNode.value=0)}})}),define("delite/handlebars!deliteful/Slider/Slider.html",[],function(){return function(a,b){this.setAttribute("touch-action","none");var c=this.wrapperNode=b.createElement("div"),d=this.progressBar=b.createElement("div"),e=this.handleMin=b.createElement("div");e.setAttribute("role","slider"),d.appendChild(e);var f=a.createTextNode("\n ");d.appendChild(f);var g=this.focusNode=b.createElement("div");return g.setAttribute("role","slider"),d.appendChild(g),c.appendChild(d),this.appendChild(c),{attach:function(){},detach:function(){},refresh:function(a){}.bind(this),destroy:function(){for(delete this.wrapperNode,delete this.progressBar,delete this.handleMin,delete this.focusNode;this.firstChild;)this.removeChild(this.firstChild)}.bind(this)}}}),define("deliteful/Slider",["requirejs-dplugins/jquery!attributes/classes","dpointer/events","delite/register","delite/FormValueWidget","delite/CssState","delite/handlebars!./Slider/Slider.html","delite/theme!./Slider/themes/{{theme}}/Slider.css"],function(a,b,c,d,e,f){function g(a){var b=a.getBoundingClientRect();return{x:b.left,y:b.top,w:b.right-b.left,h:b.bottom-b.top}}return c("d-slider",[HTMLElement,d,e],{min:0,max:100,step:1,slideRange:!0,vertical:!1,flip:!1,baseClass:"d-slider",_orientationNames:{"false":{start:"x",size:"w",clientStart:"clientX",progressBarStart:"left",progressBarSize:"width"},"true":{start:"y",size:"h",clientStart:"clientY",progressBarStart:"top",progressBarSize:"height"}},_propNames:null,_reversed:!1,template:f,render:c.superCall(function(a){return function(){a.call(this),this.valueNode.parentNode||this.appendChild(this.valueNode),this.handleMin.setAttribute("aria-valuemin",this.min),this.focusNode.setAttribute("aria-valuemax",this.max),this.tabStops="handleMin,focusNode",this.handleMin._isActive=!0,b.setTouchAction(this,"none")}}),_refreshOrientation:function(){this.focusNode.setAttribute("aria-orientation",this.vertical?"vertical":"horizontal"),this.handleMin._isActive&&this.handleMin.setAttribute("aria-orientation",this.vertical?"vertical":"horizontal"),this._propNames=this._orientationNames[this.vertical]},_refreshCSS:function(){function b(a,b){return a.split(/ /).map(function(a){return a+b}).join(" ")}var c=b(this.baseClass,this.vertical?"-v":"-h"),d=this.baseClass+" "+c;a(this).removeClass(b(this.baseClass+"-v "+this.baseClass+"-h","-htl")+" "+b(this.baseClass+"-v "+this.baseClass+"-h","-lth")+" "+this.baseClass+"-v "+this.baseClass+"-h"),a(this).addClass(c+" "+b(d,this._reversed?"-htl":"-lth")),this.wrapperNode.className=b(d,"-bar")+" "+b(d,"-container"),this.progressBar.setAttribute("style",""),this.progressBar.className=b(d,"-bar")+" "+b(d,"-progress-bar"),this.focusNode.className=b(d,"-handle")+" "+b(d,"-handle-max"),this.handleMin._isActive&&(this.handleMin.className=b(d,"-handle")+" "+b(d,"-handle-min"))},computeProperties:function(a){if("value"in a||"min"in a||"max"in a||"step"in a){var b=this._getValueAsArray(),c=b.length>1,d=this._convert2Float(b[0],this._calculateDefaultValue(c?.25:.5)),e=this._convert2Float(b[b.length-1],this._calculateDefaultValue(c?.75:.5)),f=Math.max(d,e);d=Math.min(d,e),e=f,d=this._adjustValue(d,this.min),e=this._adjustValue(e,d),this.value=c?d+","+e:String(e)}if("vertical"in a||"flip"in a||"effectiveDir"in a){var g="ltr"===this.effectiveDir;this._reversed=!(!this.vertical&&g!==this.flip||this.vertical&&this.flip)}},refreshRendering:function(a){if("value"in a&&this._refreshValueRendering(),"vertical"in a&&this._refreshOrientation(),"name"in a){var b=this.name;this.removeAttribute("name"),this.valueNode.setAttribute("name",b)}"max"in a&&this.focusNode.setAttribute("aria-valuemax",this.max),"min"in a&&(this.handleMin._isActive?this.handleMin:this.focusNode).setAttribute("aria-valuemin",this.min),("baseClass"in a||"vertical"in a||"_reversed"in a)&&this._refreshCSS(),this._positionHandles()},_positionHandles:function(){var a=this._getValueAsArray();1===a.length&&(a=[this.min,a[0]]);var b=100*(a[1]-this.min)/(this.max<this.min?this.min:this.max-this.min),c=100*(a[0]-this.min)/(this.max<this.min?this.min:this.max-this.min);this.progressBar.style[this._propNames.progressBarSize]=b-c+"%",this.progressBar.style[this._propNames.progressBarStart]=(this._reversed?100-b:c)+"%"},_refreshValueRendering:function(){var a=this._getValueAsArray();this.handleMin._isActive||2!==a.length||(this.handleMin.setAttribute("aria-valuemin",this.min),this.focusNode.setAttribute("aria-valuemax",this.max),this.tabStops="handleMin,focusNode",this.handleMin._isActive=!0),this.handleMin._isActive&&1===a.length&&(this.handleMin.className="d-hidden",this.handleMin.removeAttribute("aria-valuemin"),this.focusNode.setAttribute("aria-valuemin",this.min),this.focusNode.setAttribute("aria-valuemax",this.max),this.handleMin._isActive=!1),this.handleMin._isActive?(this.handleMin.setAttribute("aria-valuenow",a[0]),this.handleMin.setAttribute("aria-valuemax",a[1]),this.focusNode.setAttribute("aria-valuemin",a[0]),this.focusNode.setAttribute("aria-valuenow",a[1])):this.focusNode.setAttribute("aria-valuenow",a[0]),this.valueNode.value=String(this.value)},createdCallback:function(){this._pointerCtx={target:null,offsetVal:0,containerBox:null},this.on("pointerdown",this.pointerDownHandler.bind(this)),this.on("pointermove",this.pointerMoveHandler.bind(this)),this.on("lostpointercapture",this.lostCaptureHandler.bind(this)),this.on("keydown",this.keyDownHandler.bind(this)),this.on("keyup",this.keyUpHandler.bind(this))},postRender:function(){this.valueNode.value&&(this.value=this.valueNode.value)},attachedCallback:function(){this.onmousedown=function(a){a.preventDefault()}},_setMinAttr:function(a){this._set("min",this._convert2Float(a,0))},_setMaxAttr:function(a){this._set("max",this._convert2Float(a,100))},_setStepAttr:function(a){a=this._convert2Float(a,1),this._set("step",0>=a?1:a)},_convert2Float:function(a,b){var c=parseFloat(a);return isNaN(c)||c===1/0?b:c},_calculateDefaultValue:function(a){return this.max<this.min?this.min:this.min+(this.max-this.min)*a},_adjustValue:function(a,b){if(a%this.step){var c=Math.max(b,Math.round(a/this.step)*this.step);a=this.max>b?Math.min(this.max,c):c}return a=Math.max(b,a),a=Math.min(this.max>this.min?this.max:this.min,a)},_getValueAsArray:function(){return String(this.value).split(/,/g)},pointerDownHandler:function(a){if(!this._ignoreUserInput(a)){this._pointerCtx.target=null,this._pointerCtx.offsetVal=0,this._pointerCtx.containerBox=g(this.wrapperNode);var c=this._getValueAsArray(),d=this._selectedValue(a,this._pointerCtx.containerBox);if(this._startSlideRange(a))this._pointerCtx.target=this.progressBar,this._pointerCtx.offsetVal=d-c[0];else{var e=Math.abs(d-c[1])-Math.abs(d-c[0]);0!==e||a.target!==this.focusNode&&a.target!==this.handleMin?(0===e&&(e=c[0]-Math.min(this.max-this.step,Math.max(this.min+this.step,d))),this._pointerCtx.target=e>0?this.handleMin:this.focusNode):this._pointerCtx.target=document.elementFromPoint(a.clientX,a.clientY),this._pointerCtx.target.focus(),a.target!==this.focusNode&&a.target!==this.handleMin&&this.handleOnInput(this._formatSelection(d,this._pointerCtx.target))}(a.target===this.focusNode||a.target===this.handleMin)&&(this._pointerCtx.offsetVal=d-c[this.handleMin._isActive&&this._pointerCtx.target===this.focusNode?1:0]),b.setPointerCapture(this._pointerCtx.target,a.pointerId),a.stopPropagation()}},pointerMoveHandler:function(a){a.target===this._pointerCtx.target&&(this.handleOnInput(this._formatSelection(this._selectedValue(a,this._pointerCtx.containerBox)-this._pointerCtx.offsetVal,a.target)),a.stopPropagation())},lostCaptureHandler:function(){this._pointerCtx.target=null,this.handleOnChange(this.value)},keyDownHandler:function(a){if(!this._ignoreUserInput(a)){var b,c=this._getValueAsArray(),d=a.target===this.focusNode?c.length-1:0,e=1;switch(a.key){case"Home":b=[this.min,c[0]][d];break;case"End":b=a.target===this.handleMin?c[1]:this.max;break;case"ArrowRight":e=-1;case"ArrowLeft":b=parseFloat(c[d])+e*(this.flip&&!this.vertical?this.step:-this.step);break;case"ArrowDown":e=-1;case"ArrowUp":b=parseFloat(c[d])+e*(this.flip&&this.vertical?-this.step:this.step);break;default:return}this.handleOnInput(this._formatSelection(b,a.target)),a.preventDefault()}},keyUpHandler:function(a){this._ignoreUserInput(a)||(a.target===this.focusNode||a.target===this.handleMin)&&this.handleOnChange(this.value)},_ignoreUserInput:function(a){return this.disabled||this.readOnly||a.altKey||a.ctrlKey||a.metaKey},_startSlideRange:function(a){if(!this.slideRange||!this.handleMin._isActive||a.target===this.focusNode||a.target===this.handleMin)return!1;var b=g(this.progressBar),c=a[this._propNames.clientStart]-b[this._propNames.start],d=b[this._propNames.size];return c>=0&&d>=c},_selectedValue:function(a,b){function c(a,b,c,d,e){return(a-b)*(e-d)/(c-b)+d}var d=b[this._propNames.size],e=a[this._propNames.clientStart]-b[this._propNames.start];return Math.round(c(e,this._reversed?d:0,this._reversed?0:d,this.min,this.max)/this.step)*this.step},_formatSelection:function(a,b){var c=this._getValueAsArray(),d=a;switch(b){case this.focusNode:d=1===c.length?String(a):Math.min(c[0],a)+","+a;break;case this.handleMin:d=a+","+Math.max(c[1],a);break;case this.progressBar:var e=c[1]-c[0];a=Math.max(this.min,Math.min(a+e,this.max)-e),d=a+","+(a+e)}return d}})}),define("deliteful/SidePane",["dcl/dcl","dpointer/events","requirejs-dplugins/jquery!attributes/classes","decor/sniff","delite/register","delite/DisplayContainer","requirejs-dplugins/Promise!","delite/theme!./SidePane/themes/{{theme}}/SidePane.css"],function(a,b,c,d,e,f,g){function h(a){return"-d-side-pane-"+a}function i(a,b){b?(a.style.visibility="visible",a.style.display="block"):(a.style.visibility="hidden",a.style.display="none")}function j(a){do a=a.nextElementSibling;while(a&&1!==a.nodeType);return a}return e("d-side-pane",[HTMLElement,f],{baseClass:"d-side-pane",mode:"push",position:"start",animate:!0,swipeClosing:!0,_transitionTiming:{"default":0,chrome:50,ios:20,android:100,ff:100},_timing:0,_visible:!1,_opening:!1,_originX:NaN,_originY:NaN,attachedCallback:function(){this.parentNode.style.overflow="hidden"},show:a.superCall(function(a){return function(){return arguments.length>0?a.apply(this,arguments).then(function(a){return this._open().then(function(){return a})}.bind(this)):this._open()}}),hide:a.superCall(function(a){return function(){return arguments.length>0?a.apply(this,arguments).then(function(a){return this._close().then(function(){return a})}.bind(this)):this._close()}}),toggle:function(){return this._visible?this.hide():this.show()},_open:function(){var a,b=j(this),e=this.animate&&9!==d("ie");return this._visible||(e&&(c(this).addClass(h("animate")),b&&c(b).addClass(h("animate"))),"reveal"===this.mode?b&&(a=this._setAfterTransitionHandlers(b)):a=this._setAfterTransitionHandlers(this),i(this,!0),e?this.defer(this._openImpl,this._timing):(this._openImpl(),a=new g(function(a){this.defer(a,this._timing)}.bind(this)))),a||g.resolve(!0)},_close:function(){var a;if(this._visible){if("reveal"===this.mode){var b=j(this);b&&(a=this._setAfterTransitionHandlers(b))}else a=this._setAfterTransitionHandlers(this);this.animate&&9!==d("ie")?this.defer(function(){this._hideImpl()},this._timing):(this._hideImpl(),i(this,!1))}return a||g.resolve(!0)},_setAfterTransitionHandlers:function(a){var b=this,c={node:a},d=new g(function(a){c.handle=function(){b._afterTransitionHandle(c,a)}});return a.addEventListener("webkitTransitionEnd",c.handle),a.addEventListener("transitionend",c.handle),d},_afterTransitionHandle:function(a,b){c(this).removeClass(h("under")),this._visible||i(this,!1),a.node.removeEventListener("webkitTransitionEnd",a.handle),a.node.removeEventListener("transitionend",a.handle),b()},postRender:function(){i(this,!1)},preRender:function(){this._transitionTiming={"default":0,chrome:20,ios:20,android:100,ff:100};for(var a in this._transitionTiming)d(a)&&this._timing<this._transitionTiming[a]&&(this._timing=this._transitionTiming[a])},render:function(){b.setTouchAction(this,"pan-y"),this._resetInteractions()},_refreshMode:function(a){c(this).removeClass([h("push"),h("overlay"),h("reveal")].join(" ")).addClass(h(this.mode)),a&&this._visible&&c(a).toggleClass(h("translated"),"overlay"!==this.mode),"reveal"!==this.mode||this._visible?"overlay"===this.mode?c(this).removeClass(h("under")).addClass(h("ontop")):c(this).removeClass([h("under"),h("ontop")].join(" ")):c(this).removeClass(h("ontop")).addClass(h("under"))},_refreshPosition:function(a){c(this).removeClass([h("start"),h("end")].join(" ")).addClass(h(this.position)),a&&this._visible&&c(a).removeClass([h("start"),h("end")].join(" ")).addClass(h(this.position))},refreshRendering:function(a){if("mode"in a||"position"in a||"animate"in a){var b=j(this);c(this).removeClass(h("animate")),b&&(c(b).removeClass(h("animate")),c(b).toggleClass("d-rtl","rtl"===this.effectiveDir)),"mode"in a&&this._refreshMode(b),"position"in a&&this._refreshPosition(b),c(this).toggleClass(h("hidden"),!this._visible).toggleClass(h("visible"),this._visible),this.animate&&this.defer(function(){c(this).addClass(h("animate")),b&&c(b).addClass(h("animate"))},this._timing)}},_openImpl:function(){if(!this._visible&&(this._visible=!0,c(this).removeClass(h("hidden")).addClass(h("visible")),"push"===this.mode||"reveal"===this.mode)){var a=j(this);a&&c(a).removeClass([h("nottranslated"),h("start"),h("end")].join(" ")).addClass([h(this.position),h("translated")].join(" "))}},_hideImpl:function(){if(this._visible&&(this._visible=!1,this._opening=!1,c(this.ownerDocument.body).removeClass(h("no-select")),c(this).removeClass(h("visible")).addClass(h("hidden")),"push"===this.mode||"reveal"===this.mode)){var a=j(this);a&&c(a).removeClass([h("translated"),h("start"),h("end")].join(" ")).addClass([h(this.position),h("nottranslated")].join(" "))}},_isLeft:function(){return"start"===this.position&&"ltr"===this.effectiveDir||"end"===this.position&&"rtl"===this.effectiveDir},_pointerDownHandler:function(a){this._originX=a.pageX,this._originY=a.pageY,(this._visible||this._isLeft()&&!this._visible&&this._originX<=10||!this._isLeft()&&!this._visible&&this._originX>=this.ownerDocument.width-10)&&(this._opening=!this._visible,this._pressHandle.remove(),this._moveHandle=this.on("pointermove",this._pointerMoveHandler.bind(this)),this._releaseHandle=this.on("pointerup",this._pointerUpHandler.bind(this)),c(this.ownerDocument.body).addClass(h("no-select")))},_pointerMoveHandler:function(a){if(!this._opening&&Math.abs(a.pageY-this._originY)>10)this._resetInteractions();else{var b=a.pageX;this._isLeft()?this._visible&&(this._originX<b&&(this._originX=b),(this.swipeClosing&&this._originX-b)>10&&(this._close(),this._originX=b)):this._visible&&(this._originX>b&&(this._originX=b),(this.swipeClosing&&b-this._originX)>10&&(this._close(),this._originX=b))}},_pointerUpHandler:function(){this._opening=!1,c(this.ownerDocument.body).removeClass(h("no-select")),this._resetInteractions()},_resetInteractions:function(){this._releaseHandle&&this._releaseHandle.remove(),this._moveHandle&&this._moveHandle.remove(),this._pressHandle&&this._pressHandle.remove(),this.swipeClosing&&(this._pressHandle=this.on("pointerdown",this._pointerDownHandler.bind(this))),this._originX=NaN,this._originY=NaN}})}),define("delite/handlebars!deliteful/Select/Select.html",[],function(){return function(a,b){this.setClassComponent("template","d-select",this),this.setAttribute("role","presentation");var c=this.valueNode=this.focusNode=b.createElement("select");return this.setClassComponent("template","d-select-inner",c),c.value=this.value,c.name=this.name,c.size=this.size,c.multiple="multiple"===this.selectionMode,c.disabled=this.disabled,this.appendChild(c),{attach:function(){},detach:function(){},refresh:function(a){"value"in a&&(c.value=this.value),"name"in a&&(c.name=this.name),"size"in a&&(c.size=this.size),"selectionMode"in a&&(c.multiple="multiple"===this.selectionMode),"disabled"in a&&(c.disabled=this.disabled)}.bind(this),destroy:function(){for(delete this.valueNode,delete this.focusNode;this.firstChild;)this.removeChild(this.firstChild)}.bind(this)}}}),define("deliteful/Select",["dcl/dcl","requirejs-dplugins/jquery!attributes/classes","decor/sniff","delite/register","delite/FormWidget","delite/StoreMap","delite/Selection","delite/handlebars!./Select/Select.html","delite/theme!./Select/themes/{{theme}}/Select.css"],function(a,b,c,d,e,f,g,h){return d("d-select",[HTMLElement,e,g,f],{size:0,textAttr:"text",valueAttr:"value",disabledAttr:"disabled",baseClass:"d-select",template:h,afterFormResetCallback:function(){this.valueNode.selectedIndex="single"===this.selectionMode?0:-1,this.value=this.valueNode.value},postRender:function(){this.on("focus",function(a){b(this).toggleClass("d-select-focus","focus"===a.type)}.bind(this),this.valueNode),this.on("blur",function(a){b(this).toggleClass("d-select-focus","focus"===a.type)}.bind(this),this.valueNode),this.on("change",function(a){this._duringInteractiveSelection=!0;var b=this.selectedItems,c=this.valueNode.selectedOptions;if(void 0===c){var d=Array.prototype.slice.call(this.valueNode.options);c=d.filter(function(a){return a.selected})}else c=Array.prototype.slice.call(c);var e,f,g,h=b?b.length:0,i=c?c.length:0;for(e=0;h>e;e++)g=b[e],-1===c.indexOf(g.__visualItem)&&this.selectFromEvent(a,g,g.__visualItem,!0);for(e=0;i>e;e++)f=c[e],-1===b.indexOf(f.__dataItem)&&this.selectFromEvent(a,f.__dataItem,f,!0);this._set("value",this.valueNode.value),this._duringInteractiveSelection=!1}.bind(this),this.valueNode)},hasSelectionModifier:function(){return"multiple"===this.selectionMode},refreshRendering:function(a){if("renderItems"in a){var b=this.renderItems,d=b?b.length:0;if(this.valueNode.innerHTML="",d>0){for(var e,f,g=this.ownerDocument.createDocumentFragment(),h=0;d>h;h++)e=b[h],f=this.ownerDocument.createElement("option"),f.__dataItem=e.__item,f.__dataItem.__visualItem=f,this.discardChanges(),void 0!==e.text&&(f.text=e.text),void 0!==e.value?f.setAttribute("value",e.value):c("ie")&&void 0!==e.text&&f.setAttribute("value",e.text),this.isSelected(e.__item)&&f.setAttribute("selected","true"),void 0!==e.disabled&&e.disabled&&"false"!==e.disabled&&f.setAttribute("disabled","true"),g.appendChild(f);this.valueNode.appendChild(g),"single"===this.selectionMode&&(this.selectedItem=this.valueNode.options[this.valueNode.selectedIndex].__dataItem),this._set("value",this.valueNode.value)}}},getIdentity:a.superCall(function(a){return function(b){return a.call(this,b)}}),updateRenderers:function(){this._duringInteractiveSelection||this.notifyCurrentValue("renderItems")},_setValueAttr:function(a){this.valueNode&&(this.valueNode.value=a),this._set("value",a)},_setSelectionModeAttr:a.superCall(function(a){return function(b){if("single"!==b&&"multiple"!==b)throw new TypeError("'"+b+"' not supported for selectionMode; keeping the previous value of '"+this.selectionMode+"'");this._set("selectionMode",b),a.call(this,b)}})})}),define("deliteful/ScrollableContainer",["delite/register","delite/Container","delite/Scrollable"],function(a,b,c){return a("d-scrollable-container",[HTMLElement,b,c],{baseClass:"d-scrollable-container"})}),define("deliteful/ResponsiveColumns",["requirejs-dplugins/jquery!attributes/classes","delite/register","delite/DisplayContainer","./channelBreakpoints","delite/theme!./ResponsiveColumns/themes/{{theme}}/ResponsiveColumns.css"],function(a,b,c,d){return b("d-responsive-columns",[HTMLElement,c],{baseClass:"d-responsive-columns",breakpoints:"{'small': '"+d.smallScreen+"', 'medium': '"+d.mediumScreen+"', 'large': ''}",screenClass:"",preRender:function(){this._breakpoints={},this._layouts=[],this._mqls=[],a(this).addClass("-d-responsive-columns-"+this.widgetId)},_removeListeners:function(){for(var a=0;a<this._mqls.length;a++)this._mqls[a].mql.removeListener(this._mqls[a].listener);this._mqls=[]},_checkConfiguration:function(){var a=!0;for(var b in this._breakpoints)for(var c=0;c<this._layouts.length;c++)this._layouts[c][b]||(a=!1,console.error("SyntaxError - Warning: ResponsiveColumns, the 'layout' attribute of the child at index "+c+" must define a value for the key '"+b+"'."));return a},_parseJSONAttrs:function(){var a=!0;this._breakpoints={},this._layouts=[],this._breakpoints=JSON.parse(this.breakpoints.replace(/\'/g,'"'));for(var b,c=this.getChildren(),d=0;d<c.length;d++)b=c[d].getAttribute("layout"),b?b=JSON.parse(b.replace(/\'/g,'"')):(a=!1,console.error("SyntaxError - Warning: ResponsiveColumns child at index "+d+", 'layout' is not defined.")),b?this._layouts.push(b):(a=!1,console.error("SyntaxError - Warning: ResponsiveColumns child at index "+d+", 'layout' parsing failed."));return a},_genCSS:function(){this._removeListeners();var a,b,c=[0],d=[];for(var e in this._breakpoints)d.push(e),a=parseInt(this._breakpoints[e].replace(/px/g,""),10),a&&c.push(a);var f,g,h,i=this.getChildren(),j="",k="",l="@media screen and ",m="(min-width: A)",n=" and (max-width: B)";for(b=0;b<c.length;b++){k=m.replace("A",c[b]+1+"px"),c[b+1]?k+=n.replace("B",c[b+1]+"px"):k=k.replace(" and (max-width: B)",""),j+=l+k+"{";for(var o=0;o<i.length;o++)j+=".-d-responsive-columns-"+this.widgetId+" > *:nth-child("+(o+1)+"){",f=this._layouts[o][d[b]],"hidden"===f?j+="display: none;":"fill"===f?(j+="-webkit-box-flex: 1;",j+="-moz-box-flex: 1;",j+="-webkit-flex: 1;",j+="-ms-flex: 1;",j+="flex: 1;"):j+="width: "+f+";",j+="}";j+="}",g=window.matchMedia(k),h=function(a){a.matches&&(this.target.screenClass=this["class"],this.target.emit("change",{screenClass:this["class"],mediaQueryList:g}))}.bind({"class":d[b],mql:g,target:this}),g.addListener(h),this._mqls.push({mql:g,listener:h}),g.matches&&(this.screenClass=d[b])}var p="d-responsive-columns-generated-style-"+this.widgetId,q=this.ownerDocument.getElementById(p);q||(q=this.ownerDocument.createElement("style"),q.id=p,this.ownerDocument.head.appendChild(q)),q.innerHTML=j},onAddChild:function(a){this.notifyCurrentValue("breakpoints")},refreshRendering:function(a){"breakpoints"in a&&this._parseJSONAttrs()&&this._checkConfiguration()&&this._genCSS()}})}),define("delite/handlebars!deliteful/RadioButton/RadioButton.html",[],function(){return function(a,b){this.setAttribute("role","presentation");var c=this.focusNode=this.valueNode=b.createElement("input");return c.type="radio",c.checked=this.checked,c.value=this.value,c.name=this.name,this.appendChild(c),{attach:function(){},detach:function(){},refresh:function(a){"checked"in a&&(c.checked=this.checked),"value"in a&&(c.value=this.value),"name"in a&&(c.name=this.name)}.bind(this),destroy:function(){for(delete this.focusNode,delete this.valueNode;this.firstChild;)this.removeChild(this.firstChild)}.bind(this)}}}),define("deliteful/RadioButton",["delite/register","./Checkbox","delite/handlebars!./RadioButton/RadioButton.html","delite/theme!./RadioButton/themes/{{theme}}/RadioButton.css"],function(a,b,c){return a("d-radio-button",[HTMLElement,b],{baseClass:"d-radio-button",template:c,_inputClickHandler:a.superCall(function(a){return function(b){a.call(this,b),this.deliver()}}),toggle:a.superCall(function(a){return function(){this.checked||a.call(this)}}),refreshRendering:function(a){if("checked"in a&&this.checked){if(!this._related){var b=(this.valueNode.form||this.ownerDocument).querySelectorAll("input[type='radio'][name='"+this.name+"']");this._related=Array.prototype.filter.call(b,function(a){return a!==this.valueNode&&a.form===this.valueNode.form}.bind(this)).map(this.getEnclosingWidget.bind(this))}this._related.forEach(function(a){a.checked=!this.checked}.bind(this))}"name"in a&&delete this._related}})}),define("delite/handlebars!deliteful/ProgressIndicator/ProgressIndicator.html",[],function(){return function(a,b){var c=this.svgNode=a.createElementNS("http://www.w3.org/2000/svg","svg"),d=a.createElementNS("http://www.w3.org/2000/svg","defs"),e=this.symbolNode=a.createElementNS("http://www.w3.org/2000/svg","symbol");e.setAttribute("viewbox","0 0 30 30"),e.setAttribute("preserveaspectratio","none");var f=this.msgNode=a.createElementNS("http://www.w3.org/2000/svg","text");f.setAttribute("x","48%"),f.setAttribute("y","67%"),e.appendChild(f),d.appendChild(e),c.appendChild(d);var g=a.createTextNode("\n ");c.appendChild(g);var h=this.linesNode=a.createElementNS("http://www.w3.org/2000/svg","g");h.setAttribute("class","d-progress-indicator-lines");var i=a.createElementNS("http://www.w3.org/2000/svg","line");i.setAttribute("x1","50.0%"),i.setAttribute("y1","24.0%"),i.setAttribute("x2","50.0%"),i.setAttribute("y2","07.0%"),h.appendChild(i);var j=a.createTextNode("\n ");h.appendChild(j);var k=a.createElementNS("http://www.w3.org/2000/svg","line");k.setAttribute("x1","63.0%"),k.setAttribute("y1","28.0%"),k.setAttribute("x2","72.0%"),k.setAttribute("y2","13.0%"),h.appendChild(k);var l=a.createTextNode("\n ");h.appendChild(l);var m=a.createElementNS("http://www.w3.org/2000/svg","line");m.setAttribute("x1","73.0%"),m.setAttribute("y1","37.0%"),m.setAttribute("x2","88.0%"),m.setAttribute("y2","28.0%"),h.appendChild(m);var n=a.createTextNode("\n ");h.appendChild(n);var o=a.createElementNS("http://www.w3.org/2000/svg","line");o.setAttribute("x1","93.0%"),o.setAttribute("y1","50.0%"),o.setAttribute("x2","76.0%"),o.setAttribute("y2","50.0%"),h.appendChild(o);var p=a.createTextNode("\n ");h.appendChild(p);var q=a.createElementNS("http://www.w3.org/2000/svg","line");q.setAttribute("x1","73.0%"),q.setAttribute("y1","63.0%"),q.setAttribute("x2","88.0%"),q.setAttribute("y2","71.0%"),h.appendChild(q);var r=a.createTextNode("\n ");h.appendChild(r);var s=a.createElementNS("http://www.w3.org/2000/svg","line");s.setAttribute("x1","63.0%"),s.setAttribute("y1","72.0%"),s.setAttribute("x2","71.0%"),s.setAttribute("y2","87.0%"),h.appendChild(s);var t=a.createTextNode("\n ");h.appendChild(t);var u=a.createElementNS("http://www.w3.org/2000/svg","line");u.setAttribute("x1","50.0%"),u.setAttribute("y1","76.0%"),u.setAttribute("x2","50.0%"),u.setAttribute("y2","93.0%"),h.appendChild(u);var v=a.createTextNode("\n ");h.appendChild(v);var w=a.createElementNS("http://www.w3.org/2000/svg","line");w.setAttribute("x1","37.0%"),w.setAttribute("y1","72.0%"),w.setAttribute("x2","28.0%"),w.setAttribute("y2","87.0%"),h.appendChild(w);var x=a.createTextNode("\n ");h.appendChild(x);var y=a.createElementNS("http://www.w3.org/2000/svg","line");y.setAttribute("x1","27.0%"),y.setAttribute("y1","63.0%"),y.setAttribute("x2","13.0%"),y.setAttribute("y2","71.0%"),h.appendChild(y);var z=a.createTextNode("\n ");h.appendChild(z);var A=a.createElementNS("http://www.w3.org/2000/svg","line");A.setAttribute("x1","24.0%"),A.setAttribute("y1","50.0%"),A.setAttribute("x2","07.0%"),A.setAttribute("y2","50.0%"),
h.appendChild(A);var B=a.createTextNode("\n ");h.appendChild(B);var C=a.createElementNS("http://www.w3.org/2000/svg","line");C.setAttribute("x1","27.0%"),C.setAttribute("y1","37.0%"),C.setAttribute("x2","13.0%"),C.setAttribute("y2","29.0%"),h.appendChild(C);var D=a.createTextNode("\n ");h.appendChild(D);var E=a.createElementNS("http://www.w3.org/2000/svg","line");E.setAttribute("x1","37.0%"),E.setAttribute("y1","27.0%"),E.setAttribute("x2","29.0%"),E.setAttribute("y2","13.0%"),h.appendChild(E),c.appendChild(h);var F=a.createTextNode("\n ");c.appendChild(F);var G=this.useNode=a.createElementNS("http://www.w3.org/2000/svg","use");return G.setAttribute("x","28.5%"),G.setAttribute("y","28.5%"),G.setAttribute("width","43%"),G.setAttribute("height","43%"),c.appendChild(G),this.appendChild(c),{attach:function(){},detach:function(){},refresh:function(a){}.bind(this),destroy:function(){for(delete this.svgNode,delete this.symbolNode,delete this.msgNode,delete this.linesNode,delete this.useNode;this.firstChild;)this.removeChild(this.firstChild)}.bind(this)}}}),define("deliteful/ProgressIndicator",["dcl/dcl","delite/hc","delite/register","delite/Widget","delite/handlebars!./ProgressIndicator/ProgressIndicator.html","delite/theme!./ProgressIndicator/themes/{{theme}}/ProgressIndicator.css"],function(a,b,c,d,e){return c("d-progress-indicator",[HTMLElement,d],{active:!1,value:NaN,speed:"normal",baseClass:"d-progress-indicator",_requestId:0,_lapsTime:1e3,_requestAnimationFunction:window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame&&window.webkitRequestAnimationFrame.bind(window)||function(a){return this.defer(a,1e3/60)},_cancelAnimationFunction:(window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||function(a){a.remove()}).bind(window),_requestRendering:function(a){return this._requestAnimationFunction.call(this,a)},_cancelRequestRendering:function(a){return this._cancelAnimationFunction(a)},_reset:function(){this._requestRendering(function(){this.msgNode.textContent="";for(var a=0;12>a;a++)this.lineNodeList[a].style.opacity=(a+1)*(1/12)}.bind(this))},_stopAnimation:function(){this._requestId&&(this._cancelRequestRendering(this._requestId),this._requestId=0)},_startAnimation:function(){if(!this._requestId){this._reset();var a=16.7/this._lapsTime,b=function(){for(var c,d=0;12>d;d++)c=(parseFloat(this.lineNodeList[d].style.opacity)-a)%1,this.lineNodeList[d].style.opacity=0>c?1:c;this._requestId=this._requestRendering(b)}.bind(this);this._requestId=this._requestRendering(b)}},template:e,postRender:function(){this.lineNodeList=this.linesNode.querySelectorAll("line");var a=this.baseClass+"-"+this.widgetId+"-symbol";this.symbolNode.id=a,this.useNode.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","#"+a),this.svgNode.style.width="100%",this.svgNode.style.height="100%",this.svgNode.style.textAnchor="middle";var c=b("highcontrast");c&&(this.linesNode.style.stroke=c,this.msgNode.style.fill=c,this.msgNode.textContent=this.msgNode.textContent),this._reset()},computeProperties:function(a){var b=null;"speed"in a&&(b="fast"===this.speed?500:"slow"===this.speed?2e3:1e3,this._lapsTime!==b&&(this._lapsTime=b)),"value"in a&&!isNaN(this.value)&&(b=Math.max(Math.min(this.value,100),0),this.value!==b&&(this.value=b))},refreshRendering:function(a){"value"in a&&(isNaN(this.value)?this.active&&this._startAnimation():(this._stopAnimation(),this._requestRendering(function(){this.msgNode.textContent=Math.floor(this.value);for(var a,b=.2,c=0;12>c;c++)a=Math.min(Math.max(.12*this.value-c,0),1)*(1-b),this.lineNodeList[c].style.opacity=b+a}.bind(this)))),"speed"in a&&this._requestId&&(this._stopAnimation(),this._startAnimation()),"active"in a&&(this.active?isNaN(this.value)&&this._startAnimation():this._stopAnimation(),this._requestRendering(function(){this.style.visibility=this.active?"visible":"hidden"}.bind(this)))},destroy:function(){this._stopAnimation()}})}),define("delite/handlebars!deliteful/ProgressBar/ProgressBar.html",[],function(){return function(a,b){this.setAttribute("role","progressbar");var c=b.createElement("div");this.setClassComponent("template","d-progress-bar-background",c);var d=this.msgNode=b.createElement("div");this.setClassComponent("template","d-progress-bar-msg",d),c.appendChild(d);var e=a.createTextNode("\n ");c.appendChild(e);var f=this.indicatorNode=b.createElement("div");this.setClassComponent("template","d-progress-bar-indicator",f);var g=this.msgInvertNode=b.createElement("div");this.setClassComponent("template","d-progress-bar-msg-invert",g),f.appendChild(g);var h=a.createTextNode("\n ");f.appendChild(h);var i=b.createElement("div");return this.setClassComponent("template","d-progress-bar-a11y",i),f.appendChild(i),c.appendChild(f),this.appendChild(c),{attach:function(){},detach:function(){},refresh:function(a){}.bind(this),destroy:function(){for(delete this.msgNode,delete this.indicatorNode,delete this.msgInvertNode;this.firstChild;)this.removeChild(this.firstChild)}.bind(this)}}}),define("deliteful/ProgressBar",["dcl/dcl","requirejs-dplugins/jquery!attributes/classes","ecma402/IntlShim","delite/register","delite/Widget","delite/handlebars!./ProgressBar/ProgressBar.html","delite/theme!./ProgressBar/themes/{{theme}}/ProgressBar.css"],function(a,b,c,d,e,f){return d("d-progress-bar",[HTMLElement,e],{value:NaN,max:1,position:-1,message:"",displayExtMsg:!1,fractionDigits:0,baseClass:"d-progress-bar",template:f,postRender:function(){this.setAttribute("aria-valuemin",0)},computeProperties:function(a){if("max"in a){var b=this._convert2Float(this.max,1);0>=b&&(b=1),b!==this.max&&(this.max=b)}if("value"in a&&!isNaN(this.value)){var c=this._convert2Float(this.value,0);c=Math.max(0,Math.min(this.max,c)),c!==this.value&&(this.value=c)}this.position=isNaN(this.value)?-1:this.value/this.max},refreshRendering:function(a){"max"in a&&this.setAttribute("aria-valuemax",this.max),("value"in a||"max"in a)&&(-1===this.position?(this.indicatorNode.style.removeProperty("width"),this.removeAttribute("aria-valuenow")):(this.indicatorNode.style.width=100*this.position+"%",this.msgInvertNode.style.width=window.getComputedStyle(this.msgNode).getPropertyValue("width"),this.setAttribute("aria-valuenow",this.value))),this.msgNode.innerHTML=this.msgInvertNode.innerHTML=this.formatMessage(this.position,this.value,this.max);var c=this.displayExtMsg&&-1!==this.position;b(this.msgNode).toggleClass(this.baseClass+"-msg-ext",c),c?this.msgNode.setAttribute("msg-ext",this.formatExtMsg(this.position,this.value,this.max)):this.msgNode.removeAttribute("msg-ext"),this.message&&-1===this.position?this.setAttribute("aria-valuetext",this.message):this.removeAttribute("aria-valuetext"),b(this).toggleClass(this.baseClass+"-indeterminate",-1===this.position)},formatMessage:function(a,b,d){if(!this._numberFormat||this._prevLang!==this.lang||this._numberFormat.resolvedOptions().minimumFractionDigits!==this.fractionDigits){var e={style:"percent",minimumFractionDigits:this.fractionDigits,maximumFractionDigits:this.fractionDigits};this._numberFormat=new c.NumberFormat(this.lang||void 0,e),this._prevLang=this.lang}return this.message?this.message:isNaN(b)?"":this._numberFormat.format(a)},formatExtMsg:function(a,b,c){return b+"/"+c},_convert2Float:function(a,b){var c=parseFloat(a);return(isNaN(c)||c===1/0)&&(c=b),c}})}),define("delite/handlebars!deliteful/Panel/Panel.html",[],function(){return function(a,b){this.setAttribute("role","presentation");var c=this.headerNode=b.createElement("div");this.setClassComponent("template","d-panel-header",c),c.setAttribute("role","heading");var d=this.iconNode=b.createElement("span");d.setAttribute("role","presentation"),this.setClassComponent("template","d-icon "+(this.iconClass?this.iconClass:"d-hidden"),d),c.appendChild(d);var e=a.createTextNode("\n ");c.appendChild(e);var f=this.labelNode=b.createElement("span"),g=a.createTextNode(null==this.label?"":this.label);f.appendChild(g),c.appendChild(f),this.appendChild(c);var h=a.createTextNode("\n ");this.appendChild(h);var i=this.containerNode=b.createElement("div");return this.setClassComponent("template","d-panel-content",i),i.setAttribute("role","region"),this.appendChild(i),{attach:function(){},detach:function(){},refresh:function(a){"iconClass"in a&&this.setClassComponent("template","d-icon "+(this.iconClass?this.iconClass:"d-hidden"),d),"label"in a&&(g.nodeValue=null==this.label?"":this.label)}.bind(this),destroy:function(){for(delete this.headerNode,delete this.iconNode,delete this.labelNode,delete this.containerNode;this.firstChild;)this.removeChild(this.firstChild)}.bind(this)}}}),define("deliteful/Panel",["dcl/dcl","delite/register","delite/Container","delite/handlebars!./Panel/Panel.html","delite/theme!./Panel/themes/{{theme}}/Panel.css"],function(a,b,c,d){return b("d-panel",[HTMLElement,c],{baseClass:"d-panel",label:"",iconClass:"",closedIconClass:"",template:d,postRender:function(){this.headerNode.id=(this.id?this.id:"panel_"+this.widgetId)+"_panelHeader",this.containerNode.setAttribute("aria-labelledby",this.headerNode.id)}})}),define("deliteful/LinearLayout",["requirejs-dplugins/jquery!attributes/classes","delite/register","delite/DisplayContainer","delite/theme!./LinearLayout/themes/{{theme}}/LinearLayout.css"],function(a,b,c){return b("d-linear-layout",[HTMLElement,c],{baseClass:"d-linear-layout",vertical:!0,refreshRendering:function(b){"vertical"in b&&(a(this).toggleClass("-d-linear-layout-v",this.vertical),a(this).toggleClass("-d-linear-layout-h",!this.vertical))}})}),define("deliteful/Combobox/nls/Combobox",{root:{"multiple-choice":"multiple choice","multiple-choice-no-selection":"Select option(s)","search-placeholder":"Search","ok-button-label":"OK","cancel-button-label":"Cancel"}}),define("delite/handlebars!deliteful/Combobox/ComboPopup.html",["deliteful/LinearLayout","deliteful/Button"],function(){return function(a,b){this.setAttribute("role","presentation");var c=b.createElement("d-linear-layout");c.style.cssText="height: 100%",c.deliver();var d=this.inputNode=b.createElement("input");d.setAttribute("d-hidden",!(this.combobox.autoFilter&&"multiple"!==this.combobox.selectionMode)),this.setClassComponent("template","d-combobox-input",d),d.setAttribute("role","combobox"),d.setAttribute("autocomplete","off"),d.setAttribute("autocapitalize","none"),d.setAttribute("autocorrect","off"),d.setAttribute("aria-autocomplete","list"),d.type="text",d.setAttribute("placeholder",this.combobox.searchPlaceHolder),c.appendChild(d);var e=a.createTextNode("\n ");c.appendChild(e);var f=this.listNode=b.createElement("div");c.appendChild(f);var g=a.createTextNode("\n ");c.appendChild(g);var h=b.createElement("d-linear-layout");h.setAttribute("d-hidden","multiple"!==this.combobox.selectionMode),h.setAttribute("vertical","false"),h.deliver();var i=b.createElement("d-button");this.setClassComponent("template","fill d-combo-cancel-button",i),i.setAttribute("label",this.combobox.cancelMsg),i.deliver(),this.on("click",this.cancelHandler.bind(this),i),h.appendChild(i);var j=a.createTextNode("\n ");h.appendChild(j);var k=b.createElement("d-button");return this.setClassComponent("template","fill d-combo-ok-button",k),k.setAttribute("label",this.combobox.okMsg),k.deliver(),this.on("click",this.okHandler.bind(this),k),h.appendChild(k),c.appendChild(h),this.appendChild(c),{attach:function(){c.attachedCallback(),h.attachedCallback(),i.attachedCallback(),k.attachedCallback()},detach:function(){c.detachedCallback(),h.detachedCallback(),i.detachedCallback(),k.detachedCallback()},refresh:function(a){c.deliver(),"combobox"in a&&this.setOrRemoveAttribute(d,"d-hidden",!(this.combobox.autoFilter&&"multiple"!==this.combobox.selectionMode)),"combobox"in a&&this.setOrRemoveAttribute(d,"placeholder",this.combobox.searchPlaceHolder),"combobox"in a&&this.setOrRemoveAttribute(h,"d-hidden","multiple"!==this.combobox.selectionMode),h.deliver(),"combobox"in a&&this.setOrRemoveAttribute(i,"label",this.combobox.cancelMsg),i.deliver(),"combobox"in a&&this.setOrRemoveAttribute(k,"label",this.combobox.okMsg),k.deliver()}.bind(this),destroy:function(){for(delete this.inputNode,delete this.listNode;this.firstChild;)this.removeChild(this.firstChild)}.bind(this)}}}),define("deliteful/Combobox/ComboPopup",["delite/register","requirejs-dplugins/jquery!attributes/classes","delite/Widget","delite/handlebars!./ComboPopup.html"],function(a,b,c,d){return a("d-combo-popup",[HTMLElement,c],{baseClass:"d-combo-popup",template:d,combobox:null,refreshRendering:function(a){if("combobox"in a&&this.combobox){var c=this.combobox.list;c&&(c.placeAt(this.listNode,"replace"),b(c).addClass("fill")),this.combobox._prepareInput(this.inputNode)}},okHandler:function(){this.combobox._validateMultiple(this.combobox.inputNode),this.combobox.closeDropDown()},cancelHandler:function(){this.combobox.list.selectedItems=this.combobox._selectedItems,this.combobox.closeDropDown()}})}),define("delite/handlebars!deliteful/Combobox/Combobox.html",[],function(){return function(a,b){this.buttonNode=this,this.setClassComponent("template","d-combobox",this),this.setAttribute("role","presentation");var c=this.inputNode=this.focusNode=b.createElement("input");this.setClassComponent("template","d-combobox-input",c),c.setAttribute("role","combobox"),c.setAttribute("autocomplete","off"),c.setAttribute("autocorrect","off"),c.setAttribute("autocapitalize","none"),c.setAttribute("aria-autocomplete","list"),c.type="text",c.readonly=this._inputReadOnly?"readonly":"",this.appendChild(c);var d=a.createTextNode("\n ");this.appendChild(d);var e=this.valueNode=b.createElement("input");return this.setClassComponent("template","d-hidden",e),e.readonly=!0,e.name=this.name,e.value=this.value,this.appendChild(e),{attach:function(){},detach:function(){},refresh:function(a){"_inputReadOnly"in a&&(c.readonly=this._inputReadOnly?"readonly":""),"name"in a&&(e.name=this.name),"value"in a&&(e.value=this.value)}.bind(this),destroy:function(){for(delete this.buttonNode,delete this.inputNode,delete this.focusNode,delete this.valueNode;this.firstChild;)this.removeChild(this.firstChild)}.bind(this)}}}),define("deliteful/Combobox",["dcl/dcl","requirejs-dplugins/jquery!attributes/classes,event","dstore/Filter","decor/sniff","delite/register","delite/FormValueWidget","delite/HasDropDown","./list/List","./features!desktop-like-channel?:./Combobox/ComboPopup","delite/handlebars!./Combobox/Combobox.html","requirejs-dplugins/i18n!./Combobox/nls/Combobox","delite/theme!./Combobox/themes/{{theme}}/Combobox.css"],function(a,b,c,d,e,f,g,h,i,j,k){return e("d-combobox",[HTMLElement,g,f],{baseClass:"d-combobox",template:j,autoFilter:!1,filterMode:"startsWith",ignoreCase:!0,selectionMode:"single",list:null,_inputReadOnly:!0,searchPlaceHolder:k["search-placeholder"],multipleChoiceMsg:k["multiple-choice"],multipleChoiceNoSelectionMsg:k["multiple-choice-no-selection"],okMsg:k["ok-button-label"],cancelMsg:k["cancel-button-label"],createdCallback:function(){var a=this.querySelector("d-list");a&&(a.attached?this.list=a:a.addEventListener("customelement-attached",this._attachedlistener=function(){a.removeEventListener("customelement-attached",this._attachedlistener),this.list=a,this.deliver()}.bind(this))),this.list||(this.list=new h)},refreshRendering:function(a){var b=!1;"list"in a&&this._initList(),"selectionMode"in a&&(b=!0,this.list&&(this.list.selectionMode="single"===this.selectionMode?"radio":"multiple")),("autoFilter"in a||"readOnly"in a)&&(b=!0),b&&(this._updateInputReadOnly(),this._setSelectable(this.inputNode,!this.inputNode.readOnly))},_updateInputReadOnly:function(){var a=this._inputReadOnly;this._inputReadOnly=this.readOnly||!this.autoFilter||this._useCenteredDropDown()||"multiple"===this.selectionMode,this._inputReadOnly===a&&this.notifyCurrentValue("_inputReadOnly")},_setSelectable:function(a,c){c?(a.removeAttribute("unselectable"),b(a).css("user-select","").off("selectstart",!1)):(a.setAttribute("unselectable","on"),b(a).css("user-select","none").on("selectstart",!1))},afterFormResetCallback:function(){(this.value!==this.valueNode.value||"multiple"===this.selectionMode)&&this._initValue()},_initList:function(){this.list.attached||this.list.attachedCallback(),b(this.list).addClass("d-combobox-list"),b(this.list).addClass("d-combobox-list-hidden"),this.list.setAttribute("role","listbox"),this.list.focusDescendants=!1,this.list.selectionMode="single"===this.selectionMode?"radio":"multiple";var a=this._createDropDown(),c=this.getAttribute("dir");c&&a.setAttribute("dir",c),this.dropDown=a,this.dropDown.focusOnOpen=!1,this.dropDown.focus=null,this._initHandlers(),this._initValue()},_initHandlers:function(){this.list.on("keynav-child-navigated",function(a){var b=this._popupInput||this.inputNode,c=a.newValue,d=this.list.getEnclosingRenderer(c),e=d.item;b.setAttribute("aria-activedescendant",c.id),"single"!==this.selectionMode||this.list.isSelected(e)||this.list.selectFromEvent(a,e,d,!0),!a.triggerEvent||"keydown"!==a.triggerEvent.type&&"keypress"!==a.triggerEvent.type||this._updateScroll(e,!0)}.bind(this)),this.list.on("click",function(a){if("single"===this.selectionMode){var b=this.list.getEnclosingRenderer(a.target);b&&!this.list.isCategoryRenderer(b)&&this.defer(function(){this.closeDropDown(!0)}.bind(this),100)}}.bind(this)),this.list.on("selection-change",function(){"single"===this.selectionMode&&this._validateSingle(),this.handleOnInput(this.value)}.bind(this)),this.list.observe(function(a){"selectedItems"in a&&("single"===this.selectionMode?this._validateSingle():"multiple"===this.selectionMode&&this._validateMultiple(this._popupInput||this.inputNode))}.bind(this)),this._prepareInput(this.inputNode)},_initValue:function(){if("single"===this.selectionMode){var a=function(){var a,b,c=this.list.selectedItem,d=!1;if(c)b=this._getItemLabel(c),a=this._getItemValue(c),d=!0;else{var e=this.list.getItemRendererByIndex(0);e&&(b=this._getItemRendererLabel(e),a=this._getItemRendererValue(e),this.list.selectedItem=e.item,d=!0)}return d&&(this.inputNode.value=b,this._set("value",a),this.valueNode.value=a),d}.bind(this);if(!a())var b=this.list.on("query-success",function(){a(),b.remove(b)})}else this.inputNode.value=this.multipleChoiceNoSelectionMsg,this.value=[],this.valueNode.value=""},_getItemRendererLabel:function(a){return this._getItemLabel(a.item)},_getItemRendererValue:function(a){return this._getItemValue(a.item)},_getItemLabel:function(a){return a.label},_getItemValue:function(a){return"value"in a?a.value:a.label},_useCenteredDropDown:function(){return!!i},_createDropDown:function(){this._updateInputReadOnly();var a=this._useCenteredDropDown(),b=a?this.createCenteredDropDown():this.createAboveBelowDropDown();return this.dropDownPosition=a?["center"]:["below","above"],b},createAboveBelowDropDown:function(){return this.list},createCenteredDropDown:function(){return new i({combobox:this})},_prepareInput:function(a){this.on("input",function(b){this.filter(a.value),this.openDropDown(),b.stopPropagation(),b.preventDefault()}.bind(this),a),this.on("change",function(a){a.stopPropagation(),a.preventDefault()}.bind(this),a),this.on("keydown",function(b){if(a.readOnly&&"Backspace"===b.key)b.stopPropagation(),b.preventDefault();else if("Enter"===b.key)b.stopPropagation(),b.preventDefault(),this.opened&&this.closeDropDown(!0);else if("Spacebar"===b.key){if("multiple"===this.selectionMode){var c=this.list.getEnclosingRenderer(this.list.navigatedDescendant);this.list.selectFromEvent(b,c.item,c,!0)}"multiple"!==this.selectionMode&&this.autoFilter||(b.stopPropagation(),b.preventDefault())}else("ArrowDown"===b.key||"ArrowUp"===b.key||"PageDown"===b.key||"PageUp"===b.key||"Home"===b.key||"End"===b.key)&&(this._useCenteredDropDown()&&this.list.emit("keydown",b),b.stopPropagation(),b.preventDefault())}.bind(this),a)},_validateSingle:function(){var a=this.list.selectedItem;this.inputNode.value=a?this._getItemLabel(a):"",this.value=a?this._getItemValue(a):""},_validateMultiple:function(a){var b=this.list.selectedItems,c=b?b.length:0,d=[];if(c>1){a.value=this.multipleChoiceMsg;for(var e=0;c>e;e++)d.push(b[e]?this._getItemValue(b[e]):"")}else if(1===c){var f=this.list.selectedItem;a.value=this._getItemLabel(f),d.push(this._getItemValue(f))}else a.value=this.multipleChoiceNoSelectionMsg;this._set("value",d),this.valueNode.value=d,this.handleOnInput(this.value)},filter:function(a){"startsWith"===this.filterMode?a="^"+a:"is"===this.filterMode&&(a="^"+a+"$");var b=new RegExp(a,this.ignoreCase?"i":"");this.list.query=(new c).match(this.list.labelAttr,b)},openDropDown:a.superCall(function(a){return function(){this._selectedItems=this.list.selectedItems,this.opened||this.defer(function(){this.list._hideLoadingPanel(),this.focusNode.focus()}.bind(this),300);var b=a.apply(this,arguments);return b.then(function(){this._updateScroll(void 0,!0)}.bind(this))}}),closeDropDown:a.superCall(function(a){return function(){if(this._selectedItems=null,this.opened&&(this.handleOnChange(this.value),this.list.query={},"single"===this.selectionMode&&this.autoFilter)){var b=this.list.selectedItem;b&&((this._popupInput||this.inputNode).value=this._getItemLabel(this.list.selectedItem))}a.apply(this,arguments)}}),_updateScroll:function(a,b){if(!a){var c=this.list.selectedItems;a=c&&c.length>0?c[0]:null}if(a){var d=this.list.getIdentity(a),e=this.list.getRendererByItemId(d);e&&(this.list.scrollBy({y:this.list.getBottomDistance(e)}),b&&(this.list.navigatedDescendant=e.childNodes[0]))}}})}),define("delite/handlebars!deliteful/Checkbox/Checkbox.html",[],function(){return function(a,b){this.setClassComponent("template","d-reset d-inline",this),this.setAttribute("role","presentation");var c=this.focusNode=this.valueNode=b.createElement("input");return c.type="checkbox",c.setAttribute("role","checkbox"),c.checked=this.checked,c.value=this.value,c.name=this.name,this.appendChild(c),{attach:function(){},detach:function(){},refresh:function(a){"checked"in a&&(c.checked=this.checked),"value"in a&&(c.value=this.value),"name"in a&&(c.name=this.name)}.bind(this),destroy:function(){for(delete this.focusNode,delete this.valueNode;this.firstChild;)this.removeChild(this.firstChild)}.bind(this)}}}),define("deliteful/Checkbox",["dcl/dcl","delite/register","delite/FormWidget","./Toggle","delite/handlebars!./Checkbox/Checkbox.html","delite/theme!./Checkbox/themes/{{theme}}/Checkbox.css"],function(a,b,c,d,e){var f;return b("d-checkbox",[HTMLElement,c,d],{baseClass:"d-checkbox",template:e,postRender:function(){this._lbl4=null,this.on("click",this._inputClickHandler.bind(this),this.focusNode),this.on("change",this._inputClickHandler.bind(this),this.focusNode)},_inputClickHandler:function(){this.checked=this.focusNode.checked},attachedCallback:function(){f||(f=function(a){var b;if(/label/i.test(a.target.tagName)&&(b=a.target.getAttribute("for"))){var c=document.getElementById(b);c&&c.render&&void 0!==c._lbl4&&c.focusNode.click()}},this.ownerDocument.addEventListener("click",f))}})}),define("deliteful/Button/bidi/Button",["dcl/dcl","dpointer/events"],function(a){return a(null,{refreshRendering:function(a){("textDir"in a||"label"in a)&&(this.labelNode.textContent=this.applyTextDirection(this.label)),this.title&&"textDir"in a&&(this.title=this.applyTextDirection(this.title))},postRender:function(){this.on("pointerover",this._pointerOverHandler.bind(this))},_pointerOverHandler:function(){this.title&&(this.title=this.applyTextDirection(this.title))}})}),define("delite/handlebars!deliteful/Button/Button.html",[],function(){return function(a,b){this.focusNode=this;var c=this.iconNode=b.createElement("span");this.setClassComponent("template","d-icon "+(this.iconClass?this.iconClass:"d-hidden"),c),this.appendChild(c);var d=this.labelNode=b.createElement("span");d.setAttribute("d-hidden",!this.label);var e=a.createTextNode(null==this.label?"":this.label);return d.appendChild(e),this.appendChild(d),{attach:function(){},detach:function(){},refresh:function(a){"iconClass"in a&&this.setClassComponent("template","d-icon "+(this.iconClass?this.iconClass:"d-hidden"),c),"label"in a&&this.setOrRemoveAttribute(d,"d-hidden",!this.label),"label"in a&&(e.nodeValue=null==this.label?"":this.label)}.bind(this),destroy:function(){for(delete this.focusNode,delete this.iconNode,delete this.labelNode;this.firstChild;)this.removeChild(this.firstChild)}.bind(this)}}}),define("deliteful/Button",["dcl/dcl","requirejs-dplugins/has","delite/register","delite/Widget","requirejs-dplugins/has!bidi?./Button/bidi/Button","delite/handlebars!./Button/Button.html","delite/theme!./Button/themes/{{theme}}/Button.css"],function(a,b,c,d,e,f){var g=a(d,{label:"",iconClass:"",baseClass:"d-button",template:f,createdCallback:function(){this.label||(this.label=this.textContent.trim(),this.innerHTML="")},computeProperties:function(a){("title"in a||"label"in a)&&(this.title=this.title||this.label||"")}}),h=c("d-button",b("bidi")?[HTMLButtonElement,g,e]:[HTMLButtonElement,g]);return h.Impl=g,h}),define("deliteful/Accordion",["dcl/dcl","decor/sniff","requirejs-dplugins/Promise!","delite/register","delite/KeyNav","requirejs-dplugins/jquery!attributes/classes","delite/DisplayContainer","./ToggleButton","./features","delite/theme!./Accordion/themes/{{theme}}/Accordion.css"],function(a,b,c,d,e,f,g,h){function i(a,b){a.style.display=b?"":"none"}function j(a){return new c(function(c){var d=a.on(b("animationEndEvent"),function(){d.remove(),c()})})}var k={singleOpen:"singleOpen",multipleOpen:"multipleOpen"},l=k.singleOpen;return d("d-accordion",[HTMLElement,g,e],{baseClass:"d-accordion",selectedChildId:"",mode:l,animate:!0,openIconClass:"",closedIconClass:"",_panelList:null,_numOpenPanels:0,_changeHandler:function(a){var b=a.target.parentNode;switch("d-panel"!==b.nodeName.toLowerCase()&&(b=b.parentNode),this.mode){case k.singleOpen:this.show(b);break;case k.multipleOpen:b.open?this.hide(b):this.show(b)}},_setupUpgradedChild:function(a){var b=new h({label:a.label,iconClass:a.closedIconClass||this.closedIconClass,checkedIconClass:a.iconClass||this.openIconClass,id:a.id+"_button"});return b.placeAt(a.headerNode,"replace"),a.observe(function(a){"label"in a&&(this.headerNode.label=this.label),"iconClass"in a&&(this.headerNode.checkedIconClass=this.iconClass),"closedIconClass"in a&&(this.headerNode.iconClass=this.closedIconClass)}.bind(a)),b.on("click",this._changeHandler.bind(this)),a.headerNode=b,i(a.containerNode,!1),a.open=!1,a.headerNode.setAttribute("tabindex","-1"),a.headerNode.setAttribute("role","tab"),a.headerNode.setAttribute("aria-expanded","false"),a.headerNode.setAttribute("aria-selected","false"),a.containerNode.setAttribute("role","tabpanel"),a.containerNode.setAttribute("aria-labelledby",a.headerNode.id),a.containerNode.setAttribute("aria-hidden","true"),a},_setupNonUpgradedChild:function(a){a.accordion=this,a.addEventListener("customelement-attached",this._attachedlistener=function(){this.removeEventListener("customelement-attached",this.accordion._attachedlistener),this.accordion._panelList.push(this.accordion._setupUpgradedChild(this))}.bind(a))},createdCallback:function(){this._panelList=[];for(var a=this.querySelectorAll("d-panel"),b=0,c=a.length;c>b;b++)a[b].attached?this._panelList.push(this._setupUpgradedChild(a[b])):this._setupNonUpgradedChild(a[b])},_showOpenPanel:function(){!this._selectedChild&&this._panelList.length>0&&(this._selectedChild=this._panelList[0],this.show(this._selectedChild))},computeProperties:function(a){"mode"in a&&(this.mode in k||(this.mode=a.mode))},refreshRendering:function(a){if("selectedChildId"in a){var b=this.ownerDocument.getElementById(this.selectedChildId);b&&(b.attached?b!==this._selectedChild&&(this._selectedChild||(this._selectedChild=b),this.show(b)):this._selectedChild=b)}("attached"in a||"_panelList"in a)&&this._panelList.length>0&&this._showOpenPanel(),"openIconClass"in a&&this.getChildren().forEach(function(a){a.attached&&!a.iconClass&&(a.headerNode.checkedIconClass=this.openIconClass)}.bind(this)),"closedIconClass"in a&&this.getChildren().forEach(function(a){a.attached&&!a.closedIconClass&&(a.headerNode.iconClass=this.closedIconClass)}.bind(this)),"mode"in a&&(this.setAttribute("aria-multiselectable",this.mode===k.multipleOpen),this.mode===k.singleOpen&&(this._showOpenPanel(),this._panelList.forEach(function(a){a.open&&a!==this._selectedChild&&this.hide(a)}.bind(this))))},_useAnimation:function(){return this.animate&&function(){for(var a=this;a&&"none"!==a.style.display&&a!==this.ownerDocument.documentElement;)a=a.parentNode;var c=a===this.ownerDocument.documentElement;return!!b("animationEndEvent")&&c&&!b("ie")}.bind(this)()},_doTransition:function(a,b){var d;return b.hide?this._useAnimation()?(a.style.minHeight=window.getComputedStyle(a.headerNode).getPropertyValue("height"),f(a).addClass("d-accordion-closeAnimation").removeClass("d-accordion-open-panel"),f(a.containerNode).removeClass("d-panel-content-open"),a.containerNode.style.overflow="hidden",d=j(a).then(function(){i(a.containerNode,a.open),f(a).removeClass("d-accordion-closeAnimation"),a.containerNode.style.overflow="",a.style.minHeight=""})):(f(a).removeClass("d-accordion-open-panel"),f(a.containerNode).removeClass("d-panel-content-open"),i(a.containerNode,!1)):this._useAnimation()?(a.style.minHeight=window.getComputedStyle(a.headerNode).getPropertyValue("height"),f(a).addClass("d-accordion-openAnimation"),f(a.containerNode).addClass("d-panel-content-open"),i(a.containerNode,!0),a.containerNode.style.overflow="hidden",d=j(a).then(function(){f(a).addClass(function(){return a.open?"d-accordion-open-panel":""}).removeClass("d-accordion-openAnimation"),a.containerNode.style.overflow="",a.style.minHeight=""})):(f(a).addClass("d-accordion-open-panel"),f(a.containerNode).addClass("d-panel-content-open"),i(a.containerNode,!0)),c.resolve(d)},changeDisplay:function(a,b){var d=!0,e=[];if(b.hide)a.open?this._numOpenPanels>1?(this._numOpenPanels--,a.open=!1,a.headerNode.checked=!1):(a.headerNode.checked=!0,d=!1):(a.headerNode.checked=!1,d=!1);else if(a.open)a.headerNode.checked=!0,d=!1;else{if(this._numOpenPanels++,this.mode===k.singleOpen){var f=this._selectedChild;this._selectedChild=a,this.selectedChildId=a.id,f!==a&&e.push(this.hide(f))}a.open=!0,a.headerNode.checked=!0}return d&&(e.push(this._doTransition(a,b)),a.headerNode.setAttribute("aria-selected",a.open),a.headerNode.setAttribute("aria-expanded",a.open),a.containerNode.setAttribute("aria-hidden",!a.open)),c.all(e)},loadChild:a.superCall(function(b){return function(c,d){var e={setContent:function(a,b){a.replaceChild(b,a.containerNode),a.containerNode=b,f(a.containerNode).addClass("d-panel-content")}};return a.mix(e,d),b.apply(this,[c,e])}}),onAddChild:a.superCall(function(a){return function(b){var c=a.call(this,b);return this._panelList.push(this._setupUpgradedChild(b)),this.notifyCurrentValue("_panelList"),c}}),_onRemoveChild:function(a){this._panelList.splice(this._panelList.indexOf(a.child),1),this.notifyCurrentValue("_panelList")},descendantSelector:"d-panel>.d-toggle-button",previousKeyHandler:function(){var a=this.navigatedDescendant.parentNode;this.navigateTo(a.previousElementSibling?a.previousElementSibling.headerNode:this.lastElementChild.headerNode)},nextKeyHandler:function(){var a=this.navigatedDescendant.parentNode;this.navigateTo(a.nextElementSibling?a.nextElementSibling.headerNode:this.firstElementChild.headerNode)},upKeyHandler:function(){this.previousKeyHandler()},downKeyHandler:function(){this.nextKeyHandler()},_lastFocusedDescendant:null,focus:function(){this._lastFocusedDescendant?this.navigateTo(this._lastFocusedDescendant):this.navigateToFirst()},_keynavDeactivatedHandler:a.superCall(function(a){return function(){this._lastFocusedDescendant=this.navigatedDescendant,a.call(this)}}),postRender:function(){this.setAttribute("role","tablist"),this.setAttribute("aria-multiselectable","false"),this.on("delite-remove-child",this._onRemoveChild.bind(this));
}})});
//# sourceMappingURL=layer.map
var paths = {};
!require.s.contexts._.config.paths["deliteful"] && (paths["deliteful"] = "deliteful-build");
!require.s.contexts._.config.paths["decor"] && (paths["decor"] = "decor-build");
!require.s.contexts._.config.paths["delite"] && (paths["delite"] = "delite-build");
!require.s.contexts._.config.paths["dpointer"] && (paths["dpointer"] = "dpointer-build");
!require.s.contexts._.config.paths["ecma402"] && (paths["ecma402"] = "ecma402-build");
require.config({
paths: paths
});
define("deliteful-build/layer", ["decor-build/layer","delite-build/layer","dpointer-build/layer","ecma402-build/layer"], function(){});