From 4e47337affda3fb637c3bf1d019beffd7928e237 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Mathieu?= Date: Fri, 25 Jul 2014 15:55:51 +0200 Subject: [PATCH] initial commit --- .bowerrc | 3 ++ LICENSE | 28 ++++++++++ README.md | 12 +++++ boot.js | 17 +++++++ bower.json | 22 ++++++++ layer.js | 6 +++ layer.map | 1 + samples/ExampleWidget.html | 51 +++++++++++++++++++ samples/ExampleWidget.js | 17 +++++++ samples/ExampleWidget/ExampleWidget.html | 1 + .../themes/ExampleWidget_template.less | 7 +++ .../themes/ExampleWidget_template_rtl.less | 12 +++++ .../themes/bootstrap/ExampleWidget.css | 7 +++ .../themes/bootstrap/ExampleWidget.less | 10 ++++ .../themes/bootstrap/ExampleWidget_rtl.css | 6 +++ .../themes/bootstrap/ExampleWidget_rtl.less | 1 + .../themes/holodark/ExampleWidget.css | 7 +++ .../themes/holodark/ExampleWidget.less | 10 ++++ .../themes/holodark/ExampleWidget_rtl.css | 6 +++ .../themes/holodark/ExampleWidget_rtl.less | 1 + .../themes/ios/ExampleWidget.css | 7 +++ .../themes/ios/ExampleWidget.less | 8 +++ .../themes/ios/ExampleWidget_rtl.css | 6 +++ .../themes/ios/ExampleWidget_rtl.less | 1 + themes/layer_bootstrap.css | 1 + 25 files changed, 248 insertions(+) create mode 100644 .bowerrc create mode 100644 LICENSE create mode 100644 README.md create mode 100644 boot.js create mode 100644 bower.json create mode 100644 layer.js create mode 100644 layer.map create mode 100644 samples/ExampleWidget.html create mode 100644 samples/ExampleWidget.js create mode 100644 samples/ExampleWidget/ExampleWidget.html create mode 100644 samples/ExampleWidget/themes/ExampleWidget_template.less create mode 100644 samples/ExampleWidget/themes/ExampleWidget_template_rtl.less create mode 100644 samples/ExampleWidget/themes/bootstrap/ExampleWidget.css create mode 100644 samples/ExampleWidget/themes/bootstrap/ExampleWidget.less create mode 100644 samples/ExampleWidget/themes/bootstrap/ExampleWidget_rtl.css create mode 100644 samples/ExampleWidget/themes/bootstrap/ExampleWidget_rtl.less create mode 100644 samples/ExampleWidget/themes/holodark/ExampleWidget.css create mode 100644 samples/ExampleWidget/themes/holodark/ExampleWidget.less create mode 100644 samples/ExampleWidget/themes/holodark/ExampleWidget_rtl.css create mode 100644 samples/ExampleWidget/themes/holodark/ExampleWidget_rtl.less create mode 100644 samples/ExampleWidget/themes/ios/ExampleWidget.css create mode 100644 samples/ExampleWidget/themes/ios/ExampleWidget.less create mode 100644 samples/ExampleWidget/themes/ios/ExampleWidget_rtl.css create mode 100644 samples/ExampleWidget/themes/ios/ExampleWidget_rtl.less create mode 100644 themes/layer_bootstrap.css diff --git a/.bowerrc b/.bowerrc new file mode 100644 index 0000000..902c193 --- /dev/null +++ b/.bowerrc @@ -0,0 +1,3 @@ +{ + "directory": ".." +} diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..7d24a07 --- /dev/null +++ b/LICENSE @@ -0,0 +1,28 @@ +The "New" BSD License: +********************** + +Copyright (c) 2005-2014, The Dojo Foundation +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of the Dojo Foundation nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..b1c6f7f --- /dev/null +++ b/README.md @@ -0,0 +1,12 @@ +# delite-build + +Build version of [ibm-js/delite](https://github.com/ibm-js/delite). + +## Status + +No official release yet. + +## Licensing + +This project is distributed by the Dojo Foundation and licensed under the ["New" BSD License](./LICENSE). +All contributions require a [Dojo Foundation CLA](http://dojofoundation.org/about/claForm). diff --git a/boot.js b/boot.js new file mode 100644 index 0000000..8417b65 --- /dev/null +++ b/boot.js @@ -0,0 +1,17 @@ +require.config({ + "packages": [ + { + "name": "delite", + "location": "delite-build" + }, + { + "name": "decor", + "location": "decor-build" + }, + { + "name": "dpointer", + "location": "dpointer-build" + } + ] +}); +define(["delite/layer","decor/boot","dpointer/boot"], function(){}); \ No newline at end of file diff --git a/bower.json b/bower.json new file mode 100644 index 0000000..cc8272f --- /dev/null +++ b/bower.json @@ -0,0 +1,22 @@ +{ + "name": "delite-build", + "version": "0.1.10-dev", + "dependencies": { + "dojo": ">=1.9.1", + "requirejs": "2.1.x", + "requirejs-domready": ">=2.0.1", + "requirejs-text": ">=2.0.11", + "decor-build": "0.1.0-dev", + "dpointer-build": ">=0.1.0-dev" + }, + "devDependencies": { + "delite": "0.1.10-dev" + }, + "ignore": [ + ".jshintrc", + ".gitattributes", + ".travis.yml", + "tests", + "CONTRIBUTING.md" + ] +} \ No newline at end of file diff --git a/layer.js b/layer.js new file mode 100644 index 0000000..4e513e1 --- /dev/null +++ b/layer.js @@ -0,0 +1,6 @@ +require.config({"config":{"delite/theme":{"layersMap":{"delite/themes/{{theme}}/common.css":"delite/themes/layer_{{theme}}.css","delite/themes/{{theme}}/global.css":"delite/themes/layer_{{theme}}.css","delite/Scrollable/themes/{{theme}}/Scrollable.css":"delite/themes/layer_{{theme}}.css","delite/DialogUnderlay/themes/{{theme}}/DialogUnderlay.css":"delite/themes/layer_{{theme}}.css"}}}}); +define("requirejs-text/text",["module"],function(a){"use strict";var b,c,d,e,f,g=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],h=/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,i=/]*>\s*([\s\S]+)\s*<\/body>/im,j="undefined"!=typeof location&&location.href,k=j&&location.protocol&&location.protocol.replace(/\:/,""),l=j&&location.hostname,m=j&&(location.port||void 0),n={},o=a.config&&a.config()||{};return b={version:"2.0.12",strip:function(a){if(a){a=a.replace(h,"");var b=a.match(i);b&&(a=b[1])}else a="";return a},jsEscape:function(a){return a.replace(/(['\\])/g,"\\$1").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r").replace(/[\u2028]/g,"\\u2028").replace(/[\u2029]/g,"\\u2029")},createXhr:o.createXhr||function(){var a,b,c;if("undefined"!=typeof XMLHttpRequest)return new XMLHttpRequest;if("undefined"!=typeof ActiveXObject)for(b=0;3>b;b+=1){c=g[b];try{a=new ActiveXObject(c)}catch(d){}if(a){g=[c];break}}return a},parseName:function(a){var b,c,d,e=!1,f=a.indexOf("."),g=0===a.indexOf("./")||0===a.indexOf("../");return-1!==f&&(!g||f>1)?(b=a.substring(0,f),c=a.substring(f+1,a.length)):b=a,d=c||b,f=d.indexOf("!"),-1!==f&&(e="strip"===d.substring(f+1),d=d.substring(0,f),c?c=d:b=d),{moduleName:b,ext:c,strip:e}},xdRegExp:/^((\w+)\:)?\/\/([^\/\\]+)/,useXhr:function(a,c,d,e){var f,g,h,i=b.xdRegExp.exec(a);return i?(f=i[2],g=i[3],g=g.split(":"),h=g[1],g=g[0],!(f&&f!==c||g&&g.toLowerCase()!==d.toLowerCase()||(h||g)&&h!==e)):!0},finishLoad:function(a,c,d,e){d=c?b.strip(d):d,o.isBuild&&(n[a]=d),e(d)},load:function(a,c,d,e){if(e&&e.isBuild&&!e.inlineText)return void d();o.isBuild=e&&e.isBuild;var f=b.parseName(a),g=f.moduleName+(f.ext?"."+f.ext:""),h=c.toUrl(g),i=o.useXhr||b.useXhr;return 0===h.indexOf("empty:")?void d():void(!j||i(h,k,l,m)?b.get(h,function(c){b.finishLoad(a,f.strip,c,d)},function(a){d.error&&d.error(a)}):c([g],function(a){b.finishLoad(f.moduleName+"."+f.ext,f.strip,a,d)}))},write:function(a,c,d){if(n.hasOwnProperty(c)){var e=b.jsEscape(n[c]);d.asModule(a+"!"+c,"define(function () { return '"+e+"';});\n")}},writeFile:function(a,c,d,e,f){var g=b.parseName(c),h=g.ext?"."+g.ext:"",i=g.moduleName+h,j=d.toUrl(g.moduleName+h)+".js";b.load(i,d,function(){var c=function(a){return e(j,a)};c.asModule=function(a,b){return e.asModule(a,j,b)},b.write(a,i,c,f)},f)}},"node"===o.env||!o.env&&"undefined"!=typeof process&&process.versions&&process.versions.node&&!process.versions["node-webkit"]?(c=require.nodeRequire("fs"),b.get=function(a,b,d){try{var e=c.readFileSync(a,"utf8");0===e.indexOf("")&&(e=e.substring(1)),b(e)}catch(f){d&&d(f)}}):"xhr"===o.env||!o.env&&b.createXhr()?b.get=function(a,c,d,e){var f,g=b.createXhr();if(g.open("GET",a,!0),e)for(f in e)e.hasOwnProperty(f)&&g.setRequestHeader(f.toLowerCase(),e[f]);o.onXhr&&o.onXhr(g,a),g.onreadystatechange=function(){var b,e;4===g.readyState&&(b=g.status||0,b>399&&600>b?(e=new Error(a+" HTTP status: "+b),e.xhr=g,d&&d(e)):c(g.responseText),o.onXhrComplete&&o.onXhrComplete(g,a))},g.send(null)}:"rhino"===o.env||!o.env&&"undefined"!=typeof Packages&&"undefined"!=typeof java?b.get=function(a,b){var c,d,e="utf-8",f=new java.io.File(a),g=java.lang.System.getProperty("line.separator"),h=new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(f),e)),i="";try{for(c=new java.lang.StringBuffer,d=h.readLine(),d&&d.length()&&65279===d.charAt(0)&&(d=d.substring(1)),null!==d&&c.append(d);null!==(d=h.readLine());)c.append(g),c.append(d);i=String(c.toString())}finally{h.close()}b(i)}:("xpconnect"===o.env||!o.env&&"undefined"!=typeof Components&&Components.classes&&Components.interfaces)&&(d=Components.classes,e=Components.interfaces,Components.utils["import"]("resource://gre/modules/FileUtils.jsm"),f="@mozilla.org/windows-registry-key;1"in d,b.get=function(a,b){var c,g,h,i={};f&&(a=a.replace(/\//g,"\\")),h=new FileUtils.File(a);try{c=d["@mozilla.org/network/file-input-stream;1"].createInstance(e.nsIFileInputStream),c.init(h,1,0,!1),g=d["@mozilla.org/intl/converter-input-stream;1"].createInstance(e.nsIConverterInputStream),g.init(c,"utf-8",c.available(),e.nsIConverterInputStream.DEFAULT_REPLACEMENT_CHARACTER),g.readString(c.available(),i),g.close(),c.close(),b(i.value)}catch(j){throw new Error((h&&h.path||"")+": "+j)}}),b}),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/lang",["./kernel","../has","../sniff"],function(a,b){b.add("bug-for-in-skips-shadowed",function(){for(var a in{toString:1})return 0;return 1});var c=b("bug-for-in-skips-shadowed")?"hasOwnProperty.valueOf.isPrototypeOf.propertyIsEnumerable.toLocaleString.toString.constructor".split("."):[],d=c.length,e=function(b,c,d){d||(d=b[0]&&a.scopeMap[b[0]]?a.scopeMap[b.shift()][1]:a.global);try{for(var e=0;ei;++i)g=c[i],h=e[g],g in a&&(a[g]===h||g in j&&j[g]===h)||(a[g]=f?f(h):h);return a},mixin:function(a){a||(a={});for(var b=1,c=arguments.length;c>b;b++)i._mixin(a,arguments[b]);return a},setObject:function(a,b,c){var d=a.split("."),f=d.pop(),g=e(d,!0,c);return g&&f?g[f]=b:void 0},getObject:function(a,b,c){return e(a?a.split("."):[],b,c)},exists:function(a,b){return void 0!==i.getObject(a,!1,b)},isString:function(a){return"string"==typeof a||a instanceof String},isArray:function(a){return a&&(a instanceof Array||"array"==typeof a)},isFunction:function(a){return"[object Function]"===f.call(a)},isObject:function(a){return void 0!==a&&(null===a||"object"==typeof a||i.isArray(a)||i.isFunction(a))},isArrayLike:function(a){return!(!a||void 0===a||i.isString(a)||i.isFunction(a)||a.tagName&&"form"==a.tagName.toLowerCase()||!i.isArray(a)&&!isFinite(a.length))},isAlien:function(a){return a&&!i.isFunction(a)&&/\{\s*\[native code\]\s*\}/.test(String(a))},extend:function(a){for(var b=1,c=arguments.length;c>b;b++)i._mixin(a.prototype,arguments[b]);return a},_hitchArgs:function(b,c){var d=i._toArray(arguments,2),e=i.isString(c);return function(){var f=i._toArray(arguments),g=e?(b||a.global)[c]:c;return g&&g.apply(b||this,d.concat(f))}},hitch:function(b,c){if(arguments.length>2)return i._hitchArgs.apply(a,arguments);if(c||(c=b,b=null),i.isString(c)){if(b=b||a.global,!b[c])throw['lang.hitch: scope["',c,'"] is null (scope="',b,'")'].join("");return function(){return b[c].apply(b,arguments||[])}}return b?function(){return c.apply(b,arguments||[])}:c},delegate:function(){function a(){}return function(b,c){a.prototype=b;var d=new a;return a.prototype=null,c&&i._mixin(d,c),d}}(),_toArray:b("ie")?function(){function a(a,b,c){for(var d=c||[],e=b||0;ec;++c)c in a&&b.push(i.clone(a[c]));else b=a.constructor?new a.constructor:{};return i._mixin(b,a,i.clone)},trim:String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^\s\s*/,"").replace(/\s\s*$/,"")},replace:function(a,b,c){return a.replace(c||h,i.isFunction(b)?b:function(a,c){return i.getObject(c,!1,b)})}};return b("extend-dojo")&&i.mixin(a,i),i}),define("dojo/sniff",["./has"],function(a){if(a("host-browser")){var b=navigator,c=b.userAgent,d=b.appVersion,e=parseFloat(d);if(a.add("air",c.indexOf("AdobeAIR")>=0),a.add("msapp",parseFloat(c.split("MSAppHost/")[1])||void 0),a.add("khtml",d.indexOf("Konqueror")>=0?e:void 0),a.add("webkit",parseFloat(c.split("WebKit/")[1])||void 0),a.add("chrome",parseFloat(c.split("Chrome/")[1])||void 0),a.add("safari",d.indexOf("Safari")>=0&&!a("chrome")?parseFloat(d.split("Version/")[1]):void 0),a.add("mac",d.indexOf("Macintosh")>=0),a.add("quirks","BackCompat"==document.compatMode),c.match(/(iPhone|iPod|iPad)/)){var f=RegExp.$1.replace(/P/,"p"),g=c.match(/OS ([\d_]+)/)?RegExp.$1:"1",h=parseFloat(g.replace(/_/,".").replace(/_/g,""));a.add(f,h),a.add("ios",h)}if(a.add("android",parseFloat(c.split("Android ")[1])||void 0),a.add("bb",(c.indexOf("BlackBerry")>=0||c.indexOf("BB10")>=0)&&parseFloat(c.split("Version/")[1])||void 0),a.add("trident",parseFloat(d.split("Trident/")[1])||void 0),a.add("svg","undefined"!=typeof SVGAngle),!a("webkit")){if(c.indexOf("Opera")>=0&&a.add("opera",e>=9.8?parseFloat(c.split("Version/")[1])||e:e),c.indexOf("Gecko")>=0&&!a("khtml")&&!a("webkit")&&!a("trident")&&a.add("mozilla",e),a("mozilla")&&a.add("ff",parseFloat(c.split("Firefox/")[1]||c.split("Minefield/")[1])||void 0),document.all&&!a("opera")){var i=parseFloat(d.split("MSIE ")[1])||void 0,j=document.documentMode;j&&5!=j&&Math.floor(i)!=j&&(i=j),a.add("ie",i)}a.add("wii","undefined"!=typeof opera&&opera.wiiremote)}}return a}),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=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("dojo/_base/kernel",["../has","./config","require","module"],function(a,b,c,d){var e,f,g,h={},i={},j={config:b,global:this,dijit:h,dojox:i},k={dojo:["dojo",j],dijit:["dijit",h],dojox:["dojox",i]},l=c.map&&c.map[d.id.match(/[^\/]+/)[0]];for(f in l)k[f]?k[f][0]=l[f]:k[f]=[l[f],{}];for(f in k)g=k[f],g[1]._scopeName=g[0],b.noGlobals||(this[g[0]]=g[1]);j.scopeMap=k,j.baseUrl=j.config.baseUrl=c.baseUrl,j.isAsync=!a("dojo-loader")||c.async,j.locale=b.locale;var m="$Rev: e124479 $".match(/[0-9a-f]{7,}/);if(j.version={major:1,minor:10,patch:0,flag:"",revision:m?m[0]:0/0,toString:function(){var a=j.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]);}")(j),j.exit=a("host-rhino")?function(a){quit(a)}:function(){},a.add("dojo-guarantee-console",1),a("dojo-guarantee-console")){"undefined"!=typeof console||(console={});var n,o=["assert","count","debug","dir","dirxml","error","group","groupEnd","info","profile","profileEnd","time","timeEnd","trace","warn","log"];for(e=0;n=o[e++];)console[n]||!function(){var a=n+"";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),j.deprecated=j.experimental=function(){},a("dojo-debug-messages")&&(j.deprecated=function(a,b,c){var d="DEPRECATED: "+a;b&&(d+=" "+b),c&&(d+=" -- will be removed in version: "+c),console.warn(d)},j.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){j.deprecated("dojo.modulePaths","use paths configuration");var p={};for(f in b.modulePaths)p[f.replace(/\./g,"/")]=b.modulePaths[f];c({paths:p})}return a.add("dojo-moduleUrl",1),a("dojo-moduleUrl")&&(j.moduleUrl=function(a,b){j.deprecated("dojo.moduleUrl()","use require.toUrl","2.0");var d=null;return a&&(d=c.toUrl(a.replace(/\./g,"/")+(b?"/"+b:"")+"/*.*").replace(/\/\*\.\*/,"")+(b?"":"/")),d}),j._hasResource={},j}),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)};c=a("dojo-loader")?b.rawConfig:this.dojoConfig||this.djConfig||{},f(c,"config",1),f(c.has,"",1)}if(!c.locale&&"undefined"!=typeof navigator){var g=navigator.language||navigator.userLanguage;g&&(c.locale=g.toLowerCase())}return c}),define("dojo/hccss",["require","./_base/config","./dom-class","./dom-style","./has","./domReady","./_base/window"],function(a,b,c,d,e,f,g){return e.add("highcontrast",function(){var c=g.doc.createElement("div");c.style.cssText='border: 1px solid; border-color:red green; position: absolute; height: 5px; top: -999px;background-image: url("'+(b.blankGif||a.toUrl("./resources/blank.gif"))+'");',g.body().appendChild(c);var f=d.getComputedStyle(c),h=f.backgroundImage,i=f.borderTopColor==f.borderRightColor||h&&("none"==h||"url(invalid-url:)"==h);return e("ie")<=8?c.outerHTML="":g.body().removeChild(c),i}),f(function(){e("highcontrast")&&c.add(g.body(),"dj_a11y")}),e}),define("dojo/_base/window",["./kernel","./lang","../sniff"],function(a,b,c){var d={global:a.global,doc:this.document||null,body:function(b){return b=b||a.doc,b.body||b.getElementsByTagName("body")[0]},setContext:function(b,c){a.global=d.global=b,a.doc=d.doc=c},withGlobal:function(b,c,e,f){var g=a.global;try{return a.global=d.global=b,d.withDoc.call(null,b.document,c,e,f)}finally{a.global=d.global=g}},withDoc:function(b,e,f,g){var h,i,j,k=d.doc,l=c("quirks"),m=c("ie");try{return a.doc=d.doc=b,a.isQuirks=c.add("quirks","BackCompat"==a.doc.compatMode,!0,!0),c("ie")&&(j=b.parentWindow)&&j.navigator&&(h=parseFloat(j.navigator.appVersion.split("MSIE ")[1])||void 0,i=b.documentMode,i&&5!=i&&Math.floor(h)!=i&&(h=i),a.isIE=c.add("ie",h,!0,!0)),f&&"string"==typeof e&&(e=f[e]),e.apply(f,g||[])}finally{a.doc=d.doc=k,a.isQuirks=c.add("quirks",l,!0,!0),a.isIE=c.add("ie",m,!0,!0)}}};return c("extend-dojo")&&b.mixin(a,d),d}),define("dojo/domReady",["./has"],function(a){function b(a){j.push(a),i&&c()}function c(){if(!d){for(d=!0;j.length;)try{j.shift()(f)}catch(a){console.log("Error on domReady callback: "+a)}d=!1,b._onQEmpty()}}var d,e=this,f=document,g={loaded:1,complete:1},h="string"!=typeof f.readyState,i=!!g[f.readyState],j=[];if(b.load=function(a,c,d){b(d)},b._Q=j,b._onQEmpty=function(){},h&&(f.readyState="loading"),!i){var k=[],l=function(a){a=a||e.event,i||"readystatechange"==a.type&&!g[f.readyState]||(h&&(f.readyState="complete"),i=1,c())},m=function(a,b){a.addEventListener(b,l,!1),j.push(function(){a.removeEventListener(b,l,!1)})};if(!a("dom-addeventlistener")){m=function(a,b){b="on"+b,a.attachEvent(b,l),j.push(function(){a.detachEvent(b,l)})};var n=f.createElement("div");try{n.doScroll&&null===e.frameElement&&k.push(function(){try{return n.doScroll("left"),1}catch(a){}})}catch(o){}}if(m(f,"DOMContentLoaded"),m(e,"load"),"onreadystatechange"in f?m(f,"readystatechange"):h||k.push(function(){return g[f.readyState]}),k.length){var p=function(){if(!i){for(var a=k.length;a--;)if(k[a]())return void l("poller");setTimeout(p,30)}};p()}}return b}),define("dojo/dom-style",["./sniff","./dom"],function(a,b){function c(b,c,d){if(c=c.toLowerCase(),a("ie")||a("trident")){if("auto"==d){if("height"==c)return b.offsetHeight;if("width"==c)return b.offsetWidth}if("fontweight"==c)switch(d){case 700:return"bold";case 400:default:return"normal"}}return c in k||(k[c]=l.test(c)),k[c]?f(b,d):d}var d,e={};d=a("webkit")?function(a){var b;if(1==a.nodeType){var c=a.ownerDocument.defaultView;b=c.getComputedStyle(a,null),!b&&a.style&&(a.style.display="",b=c.getComputedStyle(a,null))}return b||{}}:a("ie")&&(a("ie")<9||a("quirks"))?function(a){return 1==a.nodeType&&a.currentStyle?a.currentStyle:{}}:function(a){return 1==a.nodeType?a.ownerDocument.defaultView.getComputedStyle(a,null):{}},e.getComputedStyle=d;var f;f=a("ie")?function(a,b){if(!b)return 0;if("medium"==b)return 4;if(b.slice&&"px"==b.slice(-2))return parseFloat(b);var c=a.style,d=a.runtimeStyle,e=a.currentStyle,f=c.left,g=d.left;d.left=e.left;try{c.left=b,b=c.pixelLeft}catch(h){b=0}return c.left=f,d.left=g,b}:function(a,b){return parseFloat(b)||0},e.toPixelValue=f;var g="DXImageTransform.Microsoft.Alpha",h=function(a,b){try{return a.filters.item(g)}catch(c){return b?{}:null}},i=a("ie")<9||a("ie")<10&&a("quirks")?function(a){try{return h(a).Opacity/100}catch(b){return 1}}:function(a){return d(a).opacity},j=a("ie")<9||a("ie")<10&&a("quirks")?function(a,b){""===b&&(b=1);var c=100*b,d=1===b;if(d?(a.style.zoom="",h(a)&&(a.style.filter=a.style.filter.replace(new RegExp("\\s*progid:"+g+"\\([^\\)]+?\\)","i"),""))):(a.style.zoom=1,h(a)?h(a,1).Opacity=c:a.style.filter+=" progid:"+g+"(Opacity="+c+")",h(a,1).Enabled=!0),"tr"==a.tagName.toLowerCase())for(var e=a.firstChild;e;e=e.nextSibling)"td"==e.tagName.toLowerCase()&&j(e,b);return b}:function(a,b){return a.style.opacity=b},k={left:!0,top:!0},l=/margin|padding|width|height|max|min|offset/,m={cssFloat:1,styleFloat:1,"float":1};return e.get=function(a,d){var f=b.byId(a),g=arguments.length,h="opacity"==d;if(2==g&&h)return i(f);d=m[d]?"cssFloat"in f.style?"cssFloat":"styleFloat":d;var j=e.getComputedStyle(f);return 1==g?j:c(f,d,j[d]||f.style[d])},e.set=function(a,c,d){var f=b.byId(a),g=arguments.length,h="opacity"==c;if(c=m[c]?"cssFloat"in f.style?"cssFloat":"styleFloat":c,3==g)return h?j(f,d):f.style[c]=d;for(var i in c)e.set(a,i,c[i]);return e.getComputedStyle(f)},e}),define("dojo/dom",["./sniff","./_base/window"],function(a,b){if(a("ie")<=7)try{document.execCommand("BackgroundImageCache",!1,!0)}catch(c){}var d={};d.byId=a("ie")?function(a,c){if("string"!=typeof a)return a;var d=c||b.doc,e=a&&d.getElementById(a);if(e&&(e.attributes.id.value==a||e.id==a))return e;var f=d.all[a];(!f||f.nodeName)&&(f=[f]);for(var g=0;e=f[g++];)if(e.attributes&&e.attributes.id&&e.attributes.id.value==a||e.id==a)return e}:function(a,c){return("string"==typeof a?(c||b.doc).getElementById(a):a)||null},d.isDescendant=function(a,b){try{for(a=d.byId(a),b=d.byId(b);a;){if(a==b)return!0;a=a.parentNode}}catch(c){}return!1},a.add("css-user-select",function(a,b,c){if(!c)return!1;var d=c.style,e=["Khtml","O","Moz","Webkit"],f=e.length,g="userSelect";do if("undefined"!=typeof d[g])return g;while(f--&&(g=e[f]+"UserSelect"));return!1});var e=a("css-user-select");return d.setSelectable=e?function(a,b){d.byId(a).style[e]=b?"":"none"}:function(a,b){a=d.byId(a);var c=a.getElementsByTagName("*"),e=c.length;if(b)for(a.removeAttribute("unselectable");e--;)c[e].removeAttribute("unselectable");else for(a.setAttribute("unselectable","on");e--;)c[e].setAttribute("unselectable","on")},d}),define("dojo/dom-class",["./_base/lang","./_base/array","./dom"],function(a,b,c){function d(a){if("string"==typeof a||a instanceof String){if(a&&!g.test(a))return h[0]=a,h;var c=a.split(g);return c.length&&!c[0]&&c.shift(),c.length&&!c[c.length-1]&&c.pop(),c}return a?b.filter(a,function(a){return a}):[]}var e,f="className",g=/\s+/,h=[""],i={};return e={contains:function(a,b){return(" "+c.byId(a)[f]+" ").indexOf(" "+b+" ")>=0},add:function(a,b){a=c.byId(a),b=d(b);var e,g=a[f];g=g?" "+g+" ":" ",e=g.length;for(var h,i=0,j=b.length;j>i;++i)h=b[i],h&&g.indexOf(" "+h+" ")<0&&(g+=h+" ");eh;++h)g=g.replace(" "+e[h]+" "," ");g=a.trim(g)}else g="";b[f]!=g&&(b[f]=g)},replace:function(a,b,d){a=c.byId(a),i[f]=a[f],e.remove(i,d),e.add(i,b),a[f]!==i[f]&&(a[f]=i[f])},toggle:function(a,b,f){if(a=c.byId(a),void 0===f){b=d(b);for(var g,h=0,i=b.length;i>h;++h)g=b[h],e[e.contains(a,g)?"remove":"add"](a,g)}else e[f?"add":"remove"](a,b);return f}}}),define("dojo/_base/array",["./kernel","../has","./lang"],function(a,b,c){function d(a){return h[a]=new Function("item","index","array",a)}function e(a){var b=!a;return function(c,e,f){var g,i=0,j=c&&c.length||0;if(j&&"string"==typeof c&&(c=c.split("")),"string"==typeof e&&(e=h[e]||d(e)),f){for(;j>i;++i)if(g=!e.call(f,c[i],i,c),a^g)return!g}else for(;j>i;++i)if(g=!e(c[i],i,c),a^g)return!g;return b}}function f(a){var b=1,c=0,d=0;return a||(b=c=d=-1),function(e,f,h,j){if(j&&b>0)return i.lastIndexOf(e,f,h);var k,l=e&&e.length||0,m=a?l+d:c;for(h===g?k=a?c:l+d:0>h?(k=l+h,0>k&&(k=c)):k=h>=l?l+d:h,l&&"string"==typeof e&&(e=e.split(""));k!=m;k+=b)if(e[k]==f)return k;return-1}}var g,h={},i={every:e(!1),some:e(!0),indexOf:f(!0),lastIndexOf:f(!1),forEach:function(a,b,c){var e=0,f=a&&a.length||0;if(f&&"string"==typeof a&&(a=a.split("")),"string"==typeof b&&(b=h[b]||d(b)),c)for(;f>e;++e)b.call(c,a[e],e,a);else for(;f>e;++e)b(a[e],e,a)},map:function(a,b,c,e){var f=0,g=a&&a.length||0,i=new(e||Array)(g);if(g&&"string"==typeof a&&(a=a.split("")),"string"==typeof b&&(b=h[b]||d(b)),c)for(;g>f;++f)i[f]=b.call(c,a[f],f,a);else for(;g>f;++f)i[f]=b(a[f],f,a);return i},filter:function(a,b,c){var e,f=0,g=a&&a.length||0,i=[];if(g&&"string"==typeof a&&(a=a.split("")),"string"==typeof b&&(b=h[b]||d(b)),c)for(;g>f;++f)e=a[f],b.call(c,e,f,a)&&i.push(e);else for(;g>f;++f)e=a[f],b(e,f,a)&&i.push(e);return i},clearCache:function(){h={}}};return b("extend-dojo")&&c.mixin(a,i),i}),define("delite/uacss",["decor/sniff"],function(a){var b=a("ie"),c=Math.floor,d=a("ff"),e={"d-webkit":a("webkit"),"d-safari":a("safari"),"d-chrome":a("chrome"),"d-gecko":a("mozilla"),"d-ios":a("ios"),"d-android":a("android")};b&&(e["d-ie"]=!0,e["d-ie-"+c(b)]=!0),d&&(e["d-ff-"+c(d)]=!0);var f="";for(var g in e)e[g]&&(f+=g+" ");return document.body.className=(document.body.className+" "+f).trim(),a}),define("delite/typematic",[],function(){var a={_fireEventAndReload:function(){this._timer=null,this._callback(++this._count,this._node,this._evt),this._currentTimeout=Math.max(this._currentTimeout<0?this._initialDelay:this._subsequentDelay>1?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay),this._minDelay),this._timer=setTimeout(this._fireEventAndReload.bind(this),this._currentTimeout)},trigger:function(a,b,c,d,e,f,g,h){if(e!==this._obj){this.stop(),this._initialDelay=g||500,this._subsequentDelay=f||.9,this._minDelay=h||10,this._obj=e,this._node=c,this._currentTimeout=-1,this._count=-1,this._callback=d.bind(b),this._evt={faux:!0};for(var i in a)if("layerX"!==i&&"layerY"!==i){var j=a[i];"function"!=typeof j&&"undefined"!=typeof j&&(this._evt[i]=j)}this._fireEventAndReload()}},stop:function(){this._timer&&(clearTimeout(this._timer),this._timer=null),this._obj&&(this._callback(-1,this._node,this._evt),this._obj=null)},addKeyListener:function(b,c,d,e,f,g,h){var i="keyCode"in c?"keydown":"keypress",j="keyCode"in c?"keyCode":"charCode",k=[d.on(i,function(i){i[j]!==c[j]||void 0!==c.ctrlKey&&c.ctrlKey!==i.ctrlKey||void 0!==c.altKey&&c.altKey!==i.altKey||void 0!==c.metaKey&&c.metaKey!==i.metaKey||void 0!==c.shiftKey&&c.shiftKey!==i.shiftKey?a._obj===c&&a.stop():(i.stopPropagation(),i.preventDefault(),a.trigger(i,d,b,e,c,f,g,h))},b),d.on("keyup",function(){a._obj===c&&a.stop()},b)];return{remove:function(){k.forEach(function(a){a.remove()})}}},addMouseListener:function(b,c,d,e,f,g){var h=[c.on("mousedown",function(h){h.preventDefault(),a.trigger(h,c,b,d,b,e,f,g)},b),c.on("mouseup",function(b){this._obj&&b.preventDefault(),a.stop()}.bind(this),b),c.on("mouseout",function(b){this._obj&&b.preventDefault(),a.stop()}.bind(this),b),c.on("dblclick",function(a){a.preventDefault()},b)];return{remove:function(){h.forEach(function(a){a.remove()})}}},addListener:function(a,b,c,d,e,f,g,h){var i=[this.addKeyListener(b,c,d,e,f,g,h),this.addMouseListener(a,d,e,f,g,h)];return{remove:function(){i.forEach(function(a){a.remove()})}}}};return a}),define("delite/theme",["require","requirejs-dplugins/has","module","./css"],function(a,b,c,d){"use strict";var e=c.config(),f={themeMap:e.themeMap||[[/.*/,"bootstrap"]],getTheme:function(){var a=f.theme||e.theme;if(!a){var b=location.search.match(/theme=(\w+)/);a=b&&b.length>1?b[1]:null}if(!a)for(var c=e.userAgent||(location.search.match(/ua=(\w+)/)?RegExp.$1:navigator.userAgent),d=this.themeMap,g=0;g0&&a[b].parent===a[b-1].widget;b--);return a[b]},open:function(a){function i(b){if(b.keyCode===d.ESCAPE&&a.onCancel)b.stopPropagation(),b.preventDefault(),a.onCancel();else if(b.keyCode===d.TAB){b.stopPropagation(),b.preventDefault();var c=this.getTopPopup();c&&c.onCancel&&c.onCancel()}}for(var j=this._stack,k=a.popup,l=a.orient||["below","below-alt","above","above-alt"],m=a.parent?a.parent.isLeftToRight():h(k.ownerDocument),n=a.around,o=a.around&&a.around.id?a.around.id+"_dropdown":"popup_"+this._idGen++;j.length&&(!a.parent||!a.parent.contains(j[j.length-1].widget));)this.close(j[j.length-1].widget);var p=this.moveOffScreen(k);k.startup&&!k._started&&k.startup();var q;if("maxHeight"in a&&-1!==a.maxHeight)q=a.maxHeight||1/0;else{var r=g.getEffectiveBox(k.ownerDocument),s=n?n.getBoundingClientRect():{top:a.y-(a.padding||0),height:2*(a.padding||0)};q=Math.floor(Math.max(s.top,r.h-(s.top+s.height)))}if(k.offsetHeight>q){var t=getComputedStyle(k),u=t.borderLeftWidth+" "+t.borderLeftStyle+" "+t.borderLeftColor;b.mix(p.style,{overflowY:"scroll",height:q+"px",border:u}),k._originalStyle=k.style.cssText,k.style.border="none"}b.mix(p,{id:o,className:"d-popup "+(k.baseClass||k["class"]||"").split(" ")[0]+"Popup"}),p.style.zIndex=this._beginZIndex+j.length,p.setAttribute("d-popup-parent",a.parent?a.parent.id:""),0===j.length&&n&&(this._firstAroundNode=n,this._firstAroundPosition=e.position(n),this._aroundMoveListener=setTimeout(this._repositionAll.bind(this),50)),c("config-bgIframe")&&!k.bgIframe&&(k.bgIframe=new f(p));var v=k.orient?k.orient.bind(k):null,w=n?e.around(p,n,l,m,v):e.at(p,a,"R"===l?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],a.padding,v);p.style.visibility="visible",k.style.visibility="visible";var x=[];return p.addEventListener("keydown",i),x.push({remove:function(){p.removeEventListener("keydown",i)}}),k.onCancel&&a.onCancel&&x.push(k.on("cancel",a.onCancel)),x.push(k.on(k.onExecute?"execute":"change",function(){var a=this.getTopPopup();a&&a.onExecute&&a.onExecute()})),j.push({widget:k,wrapper:p,parent:a.parent,onExecute:a.onExecute,onCancel:a.onCancel,onClose:a.onClose,handlers:x}),k.onOpen&&k.onOpen(w),w},close:function(a){for(var b=this._stack;a&&b.some(function(b){return b.widget===a})||!a&&b.length;){var c=b.pop(),d=c.widget,e=c.onClose;d.bgIframe&&(d.bgIframe.destroy(),delete d.bgIframe),d.onClose&&d.onClose();for(var f;f=c.handlers.pop();)f.remove();this.hide(d),e&&e()}0===b.length&&this._aroundMoveListener&&(clearTimeout(this._aroundMoveListener),this._firstAroundNode=this._firstAroundPosition=this._aroundMoveListener=null)}});return new j}),define("delite/place",["./Viewport"],function(a){function b(b,c,d,e){var f=a.getEffectiveBox(b.ownerDocument);b.parentNode&&"body"===String(b.parentNode.tagName).toLowerCase()||b.ownerDocument.body.appendChild(b);var g=null;c.some(function(a){var c=a.corner,h=a.pos,i=0,j={w:{L:f.l+f.w-h.x,R:h.x-f.l,M:f.w}[c.charAt(1)],h:{T:f.t+f.h-h.y,B:h.y-f.t,M:f.h}[c.charAt(0)]},k=b.style;if(k.left=k.right="auto",d){var l=d(b,a.aroundCorner,c,j,e);i="undefined"==typeof l?0:l}var m=b.style,n=m.display,o=m.visibility;"none"===m.display&&(m.visibility="hidden",m.display="");var p=b.getBoundingClientRect();m.display=n,m.visibility=o;var q={L:h.x,R:h.x-p.width,M:Math.max(f.l,Math.min(f.l+f.w,h.x+(p.width>>1))-p.width)}[c.charAt(1)],r={T:h.y,B:h.y-p.height,M:Math.max(f.t,Math.min(f.t+f.h,h.y+(p.height>>1))-p.height)}[c.charAt(0)],s=Math.max(f.l,q),t=Math.max(f.t,r),u=Math.min(f.l+f.w,q+p.width),v=Math.min(f.t+f.h,r+p.height),w=u-s,x=v-t;return i+=p.width-w+(p.height-x),(null==g||i>1)}[a.charAt(1)],y:{T:v,B:v+x,M:v+(x>>1)}[a.charAt(0)]}})}var i;if("string"==typeof c||"offsetWidth"in c||"ownerSVGElement"in c){if(i=d.position(c),/^(above|below)/.test(e[0])){var j=function(a){var b=getComputedStyle(a);return{t:parseFloat(b.borderTopWidth),b:parseFloat(b.borderBottomWidth)}},k=j(c),l=c.firstElementChild?j(c.firstElementChild):{t:0,b:0},m=j(a),n=a.firstElementChild?j(a.firstElementChild):{t:0,b:0};i.y+=Math.min(k.t+l.t,m.t+n.t),i.h-=Math.min(k.t+l.t,m.t+n.t)+Math.min(k.b+l.b,m.b+n.b)}}else i=c;if(c.parentNode)for(var o="absolute"===getComputedStyle(c).position,p=c.parentNode;p&&1===p.nodeType&&"BODY"!==p.nodeName;){var q=d.position(p),r=getComputedStyle(p);if(/^(relative|absolute)$/.test(r.position)&&(o=!1),!o&&/^(hidden|auto|scroll)$/.test(r.overflow)){var s=Math.min(i.y+i.h,q.y+q.h),t=Math.min(i.x+i.w,q.x+q.w);i.x=Math.max(i.x,q.x),i.y=Math.max(i.y,q.y),i.h=s-i.y,i.w=t-i.x}"absolute"===r.position&&(o=!0),p=p.parentNode}var u=i.x,v=i.y,w=i.w,x=i.h,y=[];e.forEach(function(a){var b=f;switch(a){case"above-centered":h("TM","BM");break;case"below-centered":h("BM","TM");break;case"after-centered":b=!b;case"before-centered":h(b?"ML":"MR",b?"MR":"ML");break;case"after":b=!b;case"before":h(b?"TL":"TR",b?"TR":"TL"),h(b?"BL":"BR",b?"BR":"BL");break;case"below-alt":b=!b;case"below":h(b?"BL":"BR",b?"TL":"TR"),h(b?"BR":"BL",b?"TR":"TL");break;case"above-alt":b=!b;case"above":h(b?"TL":"TR",b?"BL":"BR"),h(b?"TR":"TL",b?"BR":"BL")}});var z=b(a,y,g,{w:w,h:x});return z.aroundNodePos=i,z},position:function(a){var b=a.getBoundingClientRect(),c=a.ownerDocument,d=c.defaultView;return{x:b.left+(d.pageXOffset||c.documentElement.scrollLeft),y:b.top+(d.pageYOffset||c.documentElement.scrollTop),h:b.height,w:b.width}}};return d}),define("delite/keys",["decor/sniff"],function(a){return{BACKSPACE:8,TAB:9,CLEAR:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,META:a("webkit")?91:224,PAUSE:19,CAPS_LOCK:20,ESCAPE:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT_ARROW:37,UP_ARROW:38,RIGHT_ARROW:39,DOWN_ARROW:40,INSERT:45,DELETE:46,HELP:47,LEFT_WINDOW:91,RIGHT_WINDOW:92,SELECT:93,NUMPAD_0:96,NUMPAD_1:97,NUMPAD_2:98,NUMPAD_3:99,NUMPAD_4:100,NUMPAD_5:101,NUMPAD_6:102,NUMPAD_7:103,NUMPAD_8:104,NUMPAD_9:105,NUMPAD_MULTIPLY:106,NUMPAD_PLUS:107,NUMPAD_ENTER:108,NUMPAD_MINUS:109,NUMPAD_PERIOD:110,NUMPAD_DIVIDE:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,NUM_LOCK:144,SCROLL_LOCK:145,UP_DPAD:175,DOWN_DPAD:176,LEFT_DPAD:177,RIGHT_DPAD:178,copyKey:a("mac")?a("safari")?91:224:17}}),define("delite/handlebars",["./template"],function(a){function b(a,b){var c,d=[],e={};return(a||"").split(/({{|}})/).forEach(function(a){if("{{"===a)c=!0;else if("}}"===a)c=!1;else if(c){var f=a.trim();/this\./.test(f)?(d.push("("+a+")"),e[a.match(/this\.(\w+)/g).map(function(a){return a.substring(5)})]=!0):(e[f.replace(/[^\w].*/,"")]=!0,d.push(b?"(this."+f+" || '')":"this."+f))}else a&&d.push("'"+a.replace(/(['\\])/g,"\\$1").replace(/\n/g,"\\n").replace(/\t/g,"\\t")+"'")}),{expr:d.join(" + "),dependsOn:Object.keys(e)}}var c="requirejs-text/text",d={parse:function(a,c){var e,f,g=a.tagName.replace(/^template-/i,"").toLowerCase(),h={},i={},j=0,k=a.attributes;for(j=0;f=k[j];j++)if(f.value)switch(f.name){case"xmlns":c=f.value;break;case"is":g=f.value;break;case"attach-point":case"data-attach-point":e=f.value.split(/, */);break;default:/^on-/.test(f.name)?i[f.name.substring(3)]=f.value.replace(/\s*({{|}})\s*/g,""):h[f.name]=b(f.value,"class"===f.name)}return{tag:g,xmlns:c,attributes:h,connects:i,children:d.parseChildren(a,c),attachPoints:e}},parseChildren:function(a,c){for(var e,f=[],g=a.firstChild;g;g=g.nextSibling){var h=g.nodeType;if(1===h)e=f.length,f.push(d.parse(g,c));else if(3===h){if(/^[ \t\n]*$/.test(g.nodeValue)){if(void 0===e)continue}else e=f.length;f.push(b(g.nodeValue,!0))}}return f.slice(0,e+1)},toDom:function(a){a=a.replace(/(<\/? *)([a-zA-Z0-9]+-[-a-zA-Z0-9]+|template|select|[a-zA-Z]+[^>]+is=)/g,"$1template-$2");var b;if(/a||(this._clearActiveWidgetsTimer&&clearTimeout(this._clearActiveWidgetsTimer),f+100>a||(this._clearActiveWidgetsTimer=setTimeout(function(){delete this._clearActiveWidgetsTimer,this._setStack([])}.bind(this),0)))},_onTouchNode:function(a,b){f=(new Date).getTime(),this._clearActiveWidgetsTimer&&(clearTimeout(this._clearActiveWidgetsTimer),delete this._clearActiveWidgetsTimer),c.contains(a,"d-popup")&&(a=a.firstChild);var d=[];try{for(;a;){var e=a.getAttribute("d-popup-parent");if(e)a=a.ownerDocument.getElementById(e);else if(a.tagName&&"body"===a.tagName.toLowerCase()){if(a===document.body)break;a=a.ownerDocument.defaultView.frameElement}else!a.buildRendering||"mouse"===b&&a.disabled||d.unshift(a),a=a.parentNode}}catch(g){}this._setStack(d,b)},_onFocusNode:function(a){a&&9!==a.nodeType&&(e=(new Date).getTime(),this._clearFocusTimer&&(clearTimeout(this._clearFocusTimer),delete this._clearFocusTimer),this._onTouchNode(a))},_setStack:function(a,b){var c=this.activeStack,d=c.length-1,e=a.length-1;if(a[e]!==c[d]){this.activeStack=a,this.emit("active-widget-stack",a);var f,g;for(g=d;g>=0&&c[g]!==a[g];g--)f=c[g],f&&(f._hasBeenBlurred=!0,f.focused=!1,f._onBlur&&f._onBlur(b),this.emit("widget-blur",f,b));for(g++;e>=g;g++)f=a[g],f&&(f.focused=!0,f._onFocus&&f._onFocus(b),this.emit("widget-focus",f,b))}},focus:function(a){if(a)try{a.focus()}catch(b){}}}),h=new g;return h.registerWin(window),h}),define("requirejs-domready/domReady",[],function(){"use strict";function a(a){var b;for(b=0;b535});var d,e={},f=function(c){var d=new b,e=a("event-link-onload-api")?function(){c.onreadystatechange=c.onload=function(){c.readyState&&"complete"!==c.readyState||(c.onreadystatechange=c.onload=null,d.resolve())}}:function(){var a=c.sheet||c.styleSheet,b=document.styleSheets;a&&-1!==Array.prototype.lastIndexOf.call(b,a)?d.resolve():setTimeout(e,25)};return e(),d.promise},g={id:c.id,load:function(b,g,h){if(a("builder"))return j.addOnce(i,b),void h();var k=c.config();k.layersMap&&(b=k.layersMap[b]||b);var l,m=document.head||document.getElementsByTagName("head")[0],n=g.toUrl(b);e[n]||(l=document.createElement("link"),l.rel="stylesheet",l.type="text/css",l.href=n,m.insertBefore(l,d?d.nextSibling:m.firstChild),d=l,e[n]=f(l)),e[n].then(function(){h(b)})}};if(a("builder")){var h,i=[],j={writeConfig:function(a,b,c,d){var e={config:{}};e.config[b]={layersMap:{}},d.forEach(function(a){e.config[b].layersMap[a]=c}),a("require.config("+JSON.stringify(e)+");")},writeLayer:function(a,b,d){var e=require.toUrl(c.id).replace(/[^\/]*$/,"node_modules/clean-css"),f=require.nodeRequire(require.getNodePath(e)),g="";d.forEach(function(a){g+=new f({relativeTo:"./",target:b}).minify("@import url("+a+");")}),a(b,g)},addOnce:function(a,b){-1===a.indexOf(b)&&a.push(b)}};g.writeFile=function(a,b,c,d){h=d},g.onLayerEnd=function(a,b){function d(){return b.path.replace(/^(?:\.\/)?(([^\/]*\/)*)[^\/]*$/,"$1css/layer.css")}if(b.name&&b.path){var e=d();j.writeLayer(h,e,i),j.writeConfig(a,c.id,e,i),i=[]}},g.buildFunctions=j}return g}),define("dojo/Deferred",["./has","./_base/lang","./errors/CancelError","./promise/Promise","./has!config-deferredInstrumentation?./promise/instrumentation"],function(a,b,c,d,e){"use strict";var f=0,g=1,h=2,i="This deferred has already been fulfilled.",j=Object.freeze||function(){},k=function(b,c,d,e,f){a("config-deferredInstrumentation")&&c===h&&o.instrumentRejected&&0===b.length&&o.instrumentRejected(d,!1,e,f);for(var g=0;g=0},isFocusable:function(b){return a.effectiveTabIndex(b)>=-1},_getTabNavigable:function(b){function c(a){return a&&"input"===a.tagName.toLowerCase()&&a.type&&"radio"===a.type.toLowerCase()&&a.name&&a.name.toLowerCase()}function d(a){for(var b=a.firstChild;b;b=b.nextSibling)if(1===b.nodeType&&m(b)){var e=n(b);if(e>=0){0===e?(f||(f=b),g=b):e>0&&((!h||i>e)&&(i=e,h=b),(!j||e>=k)&&(k=e,j=b));var o=c(b);b.checked&&o&&(l[o]=b)}"SELECT"!==b.nodeName.toUpperCase()&&d(b)}}function e(a){return l[c(a)]||a}var f,g,h,i,j,k,l={},m=a._isElementShown,n=a.effectiveTabIndex;return m(b)&&d(b),{first:e(f),last:e(g),lowest:e(h),highest:e(j)}},getFirstInTabbingOrder:function(b,c){"string"==typeof b&&(b=(c||document).getElementById(b));var d=a._getTabNavigable(b);return d.lowest?d.lowest:d.first},getLastInTabbingOrder:function(b,c){"string"==typeof b&&(b=(c||document).getElementById(b));var d=a._getTabNavigable(b);return d.last?d.last:d.highest}};return a}),define("delite/Widget",["dcl/dcl","dojo/dom","dojo/dom-class","./features","decor/Invalidating","./CustomElement","./register","./features!bidi?./Bidi"],function(a,b,c,d,e,f,g,h){var i=0,j=a([f,e],{baseClass:"",_setBaseClassAttr:function(a){c.replace(this,a,this.baseClass),this._set("baseClass",a)},focused:!1,containerNode:void 0,_started:!1,widgetId:0,createdCallback:function(){this.preCreate(),this.buildRendering(),this.postCreate()},refreshRendering:function(a){this._refreshRenderingCallback&&this._refreshRenderingCallback(a)},attachedCallback:function(){this._attached=!0,this.baseClass&&c.add(this,this.baseClass),this.isLeftToRight()||c.add(this,"d-rtl");for(var a=this.tabIndex,b=this;b;b=Object.getPrototypeOf(b)){var d=Object.getOwnPropertyDescriptor(b,"tabIndex");if(d&&d.set){this.hasAttribute("tabindex")&&(this.removeAttribute("tabindex"),d.set.call(this,a));var e=this;if("WebKitMutationObserver"in window){var f=window.MutationObserver||WebKitMutationObserver,g=new f(function(){var a=e.getAttribute("tabindex");null!==a&&(e.removeAttribute("tabindex"),d.set.call(e,a))});g.observe(this,{subtree:!1,attributeFilter:["tabindex"],attributes:!0})}break}}},preCreate:function(){this.widgetId=++i},template:null,buildRendering:function(){this.template&&(this._refreshRenderingCallback=this.template(this.ownerDocument,g))},setOrRemoveAttribute:function(a,b,c){void 0===c?a.removeAttribute(b):a.setAttribute(b,""+c)},postCreate:function(){},startup:function(){this._started||(this._attached||this.attachedCallback(),this._started=!0,this.findCustomElements(this).forEach(function(a){a._started||a._destroyed||"function"!=typeof a.startup||(a.startup(),a._started=!0)}))},destroy:function(){this.bgIframe&&(this.bgIframe.destroy(),delete this.bgIframe)},getChildren:function(){return this.containerNode?Array.prototype.slice.call(this.containerNode.children):[]},getParent:function(){return this.getEnclosingWidget(this.parentNode)},isLeftToRight:function(){var a=this.ownerDocument;return!/^rtl$/i.test(this.dir||a.body.dir||a.documentElement.dir)},placeAt:function(a,b){if("string"==typeof a&&(a=this.ownerDocument.getElementById(a)),"replace"===b)a.parentNode.replaceChild(this,a);else if("only"===b){for(var c;c=a.lastChild;)a.removeChild(c);a.appendChild(this)}else if(/^(before|after)$/.test(b))a.parentNode.insertBefore(this,"before"===b?a:a.nextSibling);else{var d=a.containerNode||a,e=d.children||Array.prototype.filter.call(d.childNodes,function(a){return 1===a.nodeType});d.insertBefore(this,e["first"===b?0:b]||null)}return!this._started&&(this.getParent()||{})._started&&this.startup(),this},getEnclosingWidget:function(a){do if(1===a.nodeType&&a.buildRendering)return a;while(a=a.parentNode);return null},onFocus:function(){},onBlur:function(){},_onFocus:function(){this.onFocus()},_onBlur:function(){this.onBlur()}});return d("bidi")&&(j=a(j,h)),a.chainAfter(j,"preCreate"),a.chainAfter(j,"postCreate"),a.chainAfter(j,"startup"),j}),define("delite/Viewport",["decor/Evented","decor/sniff","requirejs-domready/domReady!"],function(a,b){var c=new a,d=document.documentElement,e=d.clientWidth,f=d.clientHeight;return window.addEventListener("resize",function(){var a=d.clientWidth,b=d.clientHeight;(b!==f||a!==e)&&(e=a,f=b,c.emit("resize"))}),c.getEffectiveBox=function(a){var c=a.documentElement,d={w:c.clientWidth,h:c.clientHeight,t:a.body.scrollTop,l:a.body.scrollLeft},e=a.activeElement,f=e&&e.tagName&&e.tagName.toLowerCase();if(b("ios")&&e&&!e.readOnly&&("textarea"===f||"input"===f&&/^(color|email|number|password|search|tel|text|url)$/.test(e.type))){d.h*=0===window.orientation||180===window.orientation?.66:.4;var g=e.getBoundingClientRect();d.h=Math.max(d.h,g.top+g.height)}return d},c}),define("delite/StoreMap",["dcl/dcl","./Store"],function(a,b){var c=function(a,b,c,d){return a[c+"Func"]?a[c+"Func"](b,d):a[c+"Attr"]?b[a[c+"Attr"]]:b[c]},d=function(a,b,c,d,e){a[c+"Func"]?a[c+"Func"](b,d,e):a[c+"Attr"]?b[a[c+"Attr"]]=e:b[c]=e},e=/^(?!_)(\w)+(?=Attr$|Func$)/,f=/f(?=unc$)|a(?=ttr$)/;return a(b,{allowRemap:!1,_mappedKeys:null,copyAllItemProps:!1,_parseAttr:a.superCall(function(a){return function(b,c){return/Attr$|Func$/i.test(b)?(b=b.toLowerCase(),b=this._propCaseMap[b]||b.replace(f,f.exec(b)[0].toUpperCase()),{prop:b,value:/Attr$/.test(b)?c:this._parseFunctionAttr(c,["item","store","value"])}):a.apply(this,arguments)}}),startup:function(){var a=[];for(var b in this){var c=e.exec(b);c&&-1===a.indexOf(c[0])&&a.push(c[0])}if(this.copyAllItemProps){this._itemKeys=[];for(var d=0;d1?d?d(c):c:(new a).resolve(c);if(!h){var i=new a(c.cancel);c.then(i.resolve,i.reject,i.progress),c=i.promise}return d||e||f?c.then(d,e,f):c}}),define("delite/Selection",["dcl/dcl","decor/sniff","./Widget"],function(a,b,c){return a(c,{preCreate:function(){this._set("selectedItems",[])},selectionMode:"single",_setSelectionModeAttr:function(a){if("none"!==a&&"single"!==a&&"multiple"!==a&&"radio"!==a)throw new TypeError("selectionMode invalid value");a!==this.selectionMode&&(this._set("selectionMode",a),"none"===a?this.selectedItems=null:"single"!==a&&"radio"!==a||!this.selectedItem||(this.selectedItems=[this.selectedItem]))},selectedItem:null,_setSelectedItemAttr:function(a){this.selectedItem!==a&&(this.selectedItems=null==a?null:[a])},selectedItems:null,_setSelectedItemsAttr:function(a){var b=this.selectedItems;this._set("selectedItems",a),null!=b&&b.length>0&&this.updateRenderers(b),this.selectedItems&&this.selectedItems.length>0?(this._set("selectedItem",this.selectedItems[0]),this.updateRenderers(this.selectedItems)):this._set("selectedItem",null)},_getSelectedItemsAttr:function(){return null==this._get("selectedItems")?[]:this._get("selectedItems").concat()},hasSelectionModifier:function(a){return b("mac")?a.metaKey:a.ctrlKey},isSelected:function(a){if(null==this.selectedItems||0===this.selectedItems.length)return!1;var b=this.getIdentity(a);return this.selectedItems.some(function(a){return this.getIdentity(a)===b},this)},getIdentity:function(){},updateRenderers:function(){},setSelected:function(a,b){"none"!==this.selectionMode&&null!=a&&this._setSelected(a,b)},_setSelected:function(a,b){var c,d,e=this.selectedItems;if("single"===this.selectionMode||"radio"===this.selectionMode)b?this.selectedItem=a:"single"===this.selectionMode&&this.isSelected(a)&&(this.selectedItems=null);else if(b){if(this.isSelected(a))return;null==e?e=[a]:e.unshift(a),this.selectedItems=e}else{if(d=this.getIdentity(a),c=e?e.filter(function(a){return this.getIdentity(a)!==d},this):[],null==c||c.length===e.length)return;this.selectedItems=c}},selectFromEvent:function(a,b,c,d){return"none"===this.selectionMode?!1:this._selectFromEvent(a,b,c,d)},_selectFromEvent:function(a,b,c,d){var e,f=this.selectedItem,g=null==b?!1:this.isSelected(b);return null==b?"multiple"!==this.selectionMode||this.hasSelectionModifier(a)||null==this.selectedItem||(this.selectedItem=null,e=!0):"multiple"===this.selectionMode?this.hasSelectionModifier(a)?(this.setSelected(b,!g),e=!0):(this.selectedItem=b,e=!0):"single"===this.selectionMode&&this.hasSelectionModifier(a)?(this.selectedItem=g?null:b,e=!0):g||(this.selectedItem=b,e=!0),d&&e&&this.dispatchSelectionChange(f,this.selectedItem,c,a),e +},dispatchSelectionChange:function(a,b,c,d){this.emit("selection-change",{oldValue:a,newValue:b,renderer:c,triggerEvent:d})}})}),define("delite/Scrollable",["dcl/dcl","dojo/dom","dojo/dom-class","dojo/_base/fx","dojo/fx/easing","delite/Widget","delite/theme!./Scrollable/themes/{{theme}}/Scrollable.css"],function(a,b,c,d,e,f){return a(f,{scrollDirection:"vertical",scrollableNode:null,postCreate:function(){this.notifyCurrentValue("scrollDirection")},buildRendering:a.after(function(){this.scrollableNode||(this.scrollableNode=this),b.setSelectable(this.scrollableNode,!1)}),refreshRendering:function(a){a.scrollDirection&&(c.toggle(this.scrollableNode,"d-scrollable","none"!==this.scrollDirection),c.toggle(this.scrollableNode,"d-scrollable-h",/^(both|horizontal)$/.test(this.scrollDirection)),c.toggle(this.scrollableNode,"d-scrollable-v",/^(both|vertical)$/.test(this.scrollDirection)))},destroy:function(){this._stopAnimation()},isTopScroll:function(){return 0===this.scrollableNode.scrollTop},isBottomScroll:function(){var a=this.scrollableNode;return a.offsetHeight+a.scrollTop>=a.scrollHeight},isLeftScroll:function(){return 0===this.scrollableNode.scrollLeft},isRightScroll:function(){var a=this.scrollableNode;return a.offsetWidth+a.scrollLeft>=a.scrollWidth},getCurrentScroll:function(){return{x:this.scrollableNode.scrollLeft,y:this.scrollableNode.scrollTop}},scrollBy:function(a,b){var c={};void 0!==a.x&&(c.x=this.scrollableNode.scrollLeft+a.x),void 0!==a.y&&(c.y=this.scrollableNode.scrollTop+a.y),this.scrollTo(c,b)},scrollTo:function(a,b){var c=this.scrollableNode;if(this._stopAnimation(),!b||0>=b)void 0!==a.x&&(c.scrollLeft=a.x),void 0!==a.y&&(c.scrollTop=a.y);else{var f={x:void 0!==a.x?c.scrollLeft:void 0,y:void 0!==a.y?c.scrollTop:void 0},g=this,h=function(){var h=function(a,b){this.start=a,this.end=b};h.prototype.getValue=function(b){return{x:(a.x-f.x)*b+f.x,y:(a.y-f.y)*b+f.y}};var i=new d.Animation({beforeBegin:function(){this.curve&&delete this.curve,i.curve=new h(f,a)},onAnimate:function(a){void 0!==a.x&&(c.scrollLeft=a.x),void 0!==a.y&&(c.scrollTop=a.y)},easing:e.expoInOut,duration:b,rate:20});return g._animation=i,i};h().play()}},_stopAnimation:function(){this._animation&&"playing"===this._animation.status()&&this._animation.stop()}})}),define("dojo/fx/easing",["../_base/lang"],function(a){var b={linear:function(a){return a},quadIn:function(a){return Math.pow(a,2)},quadOut:function(a){return a*(a-2)*-1},quadInOut:function(a){return a=2*a,1>a?Math.pow(a,2)/2:-1*(--a*(a-2)-1)/2},cubicIn:function(a){return Math.pow(a,3)},cubicOut:function(a){return Math.pow(a-1,3)+1},cubicInOut:function(a){return a=2*a,1>a?Math.pow(a,3)/2:(a-=2,(Math.pow(a,3)+2)/2)},quartIn:function(a){return Math.pow(a,4)},quartOut:function(a){return-1*(Math.pow(a-1,4)-1)},quartInOut:function(a){return a=2*a,1>a?Math.pow(a,4)/2:(a-=2,-0.5*(Math.pow(a,4)-2))},quintIn:function(a){return Math.pow(a,5)},quintOut:function(a){return Math.pow(a-1,5)+1},quintInOut:function(a){return a=2*a,1>a?Math.pow(a,5)/2:(a-=2,(Math.pow(a,5)+2)/2)},sineIn:function(a){return-1*Math.cos(a*(Math.PI/2))+1},sineOut:function(a){return Math.sin(a*(Math.PI/2))},sineInOut:function(a){return-1*(Math.cos(Math.PI*a)-1)/2},expoIn:function(a){return 0==a?0:Math.pow(2,10*(a-1))},expoOut:function(a){return 1==a?1:-1*Math.pow(2,-10*a)+1},expoInOut:function(a){return 0==a?0:1==a?1:(a=2*a,1>a?Math.pow(2,10*(a-1))/2:(--a,(-1*Math.pow(2,-10*a)+2)/2))},circIn:function(a){return-1*(Math.sqrt(1-Math.pow(a,2))-1)},circOut:function(a){return a-=1,Math.sqrt(1-Math.pow(a,2))},circInOut:function(a){return a=2*a,1>a?-0.5*(Math.sqrt(1-Math.pow(a,2))-1):(a-=2,.5*(Math.sqrt(1-Math.pow(a,2))+1))},backIn:function(a){var b=1.70158;return Math.pow(a,2)*((b+1)*a-b)},backOut:function(a){a-=1;var b=1.70158;return Math.pow(a,2)*((b+1)*a+b)+1},backInOut:function(a){var b=2.5949095;return a=2*a,1>a?Math.pow(a,2)*((b+1)*a-b)/2:(a-=2,(Math.pow(a,2)*((b+1)*a+b)+2)/2)},elasticIn:function(a){if(0==a||1==a)return a;var b=.3,c=b/4;return a-=1,-1*Math.pow(2,10*a)*Math.sin(2*(a-c)*Math.PI/b)},elasticOut:function(a){if(0==a||1==a)return a;var b=.3,c=b/4;return Math.pow(2,-10*a)*Math.sin(2*(a-c)*Math.PI/b)+1},elasticInOut:function(a){if(0==a)return 0;if(a=2*a,2==a)return 1;var b=.3*1.5,c=b/4;return 1>a?(a-=1,-.5*Math.pow(2,10*a)*Math.sin(2*(a-c)*Math.PI/b)):(a-=1,.5*Math.pow(2,-10*a)*Math.sin(2*(a-c)*Math.PI/b)+1)},bounceIn:function(a){return 1-b.bounceOut(1-a)},bounceOut:function(a){var b,c=7.5625,d=2.75;return 1/d>a?b=c*Math.pow(a,2):2/d>a?(a-=1.5/d,b=c*Math.pow(a,2)+.75):2.5/d>a?(a-=2.25/d,b=c*Math.pow(a,2)+.9375):(a-=2.625/d,b=c*Math.pow(a,2)+.984375),b},bounceInOut:function(a){return.5>a?b.bounceIn(2*a)/2:b.bounceOut(2*a-1)/2+.5}};return a.setObject("dojo.fx.easing",b),b}),define("dojo/_base/fx",["./kernel","./config","./lang","../Evented","./Color","../aspect","../sniff","../dom","../dom-style"],function(a,b,c,d,e,f,g,h,i){var j=c.mixin,k={},l=k._Line=function(a,b){this.start=a,this.end=b};l.prototype.getValue=function(a){return(this.end-this.start)*a+this.start};var m=k.Animation=function(a){j(this,a),c.isArray(this.curve)&&(this.curve=new l(this.curve[0],this.curve[1]))};m.prototype=new d,c.extend(m,{duration:350,repeat:0,rate:20,_percent:0,_startRepeatCount:0,_getStep:function(){var a=this._percent,b=this.easing;return b?b(a):a},_fire:function(a,c){var d=c||[];if(this[a])if(b.debugAtAllCosts)this[a].apply(this,d);else try{this[a].apply(this,d)}catch(e){console.error("exception in animation handler for:",a),console.error(e)}return this},play:function(a,b){var d=this;if(d._delayTimer&&d._clearTimer(),b)d._stopTimer(),d._active=d._paused=!1,d._percent=0;else if(d._active&&!d._paused)return d;d._fire("beforeBegin",[d.node]);var e=a||d.delay,f=c.hitch(d,"_play",b);return e>0?(d._delayTimer=setTimeout(f,e),d):(f(),d)},_play:function(){var a=this;a._delayTimer&&a._clearTimer(),a._startTime=(new Date).valueOf(),a._paused&&(a._startTime-=a.duration*a._percent),a._active=!0,a._paused=!1;var b=a.curve.getValue(a._getStep());return a._percent||(a._startRepeatCount||(a._startRepeatCount=a.repeat),a._fire("onBegin",[b])),a._fire("onPlay",[b]),a._cycle(),a},pause:function(){var a=this;return a._delayTimer&&a._clearTimer(),a._stopTimer(),a._active?(a._paused=!0,a._fire("onPause",[a.curve.getValue(a._getStep())]),a):a},gotoPercent:function(a,b){var c=this;return c._stopTimer(),c._active=c._paused=!0,c._percent=a,b&&c.play(),c},stop:function(a){var b=this;return b._delayTimer&&b._clearTimer(),b._timer?(b._stopTimer(),a&&(b._percent=1),b._fire("onStop",[b.curve.getValue(b._getStep())]),b._active=b._paused=!1,b):b},destroy:function(){this.stop()},status:function(){return this._active?this._paused?"paused":"playing":"stopped"},_cycle:function(){var a=this;if(a._active){var b=(new Date).valueOf(),c=0===a.duration?1:(b-a._startTime)/a.duration;c>=1&&(c=1),a._percent=c,a.easing&&(c=a.easing(c)),a._fire("onAnimate",[a.curve.getValue(c)]),a._percent<1?a._startTimer():(a._active=!1,a.repeat>0?(a.repeat--,a.play(null,!0)):-1==a.repeat?a.play(null,!0):a._startRepeatCount&&(a.repeat=a._startRepeatCount,a._startRepeatCount=0),a._percent=0,a._fire("onEnd",[a.node]),!a.repeat&&a._stopTimer())}return a},_clearTimer:function(){clearTimeout(this._delayTimer),delete this._delayTimer}});var n=0,o=null,p={run:function(){}};c.extend(m,{_startTimer:function(){this._timer||(this._timer=f.after(p,"run",c.hitch(this,"_cycle"),!0),n++),o||(o=setInterval(c.hitch(p,"run"),this.rate))},_stopTimer:function(){this._timer&&(this._timer.remove(),this._timer=null,n--),0>=n&&(clearInterval(o),o=null,n=0)}});var q=g("ie")?function(a){var b=a.style;b.width.length||"auto"!=i.get(a,"width")||(b.width="auto")}:function(){};k._fade=function(a){a.node=h.byId(a.node);var b=j({properties:{}},a),d=b.properties.opacity={};d.start="start"in b?b.start:function(){return+i.get(b.node,"opacity")||0},d.end=b.end;var e=k.animateProperty(b);return f.after(e,"beforeBegin",c.partial(q,b.node),!0),e},k.fadeIn=function(a){return k._fade(j({end:1},a))},k.fadeOut=function(a){return k._fade(j({end:0},a))},k._defaultEasing=function(a){return.5+Math.sin((a+1.5)*Math.PI)/2};var r=function(a){this._properties=a;for(var b in a){var c=a[b];c.start instanceof e&&(c.tempColor=new e)}};return r.prototype.getValue=function(a){var b={};for(var d in this._properties){var f=this._properties[d],g=f.start;g instanceof e?b[d]=e.blendColors(g,f.end,a,f.tempColor).toCss():c.isArray(g)||(b[d]=(f.end-g)*a+g+("opacity"!=d?f.units||"px":0))}return b},k.animateProperty=function(b){var d=b.node=h.byId(b.node);b.easing||(b.easing=a._defaultEasing);var g=new m(b);return f.after(g,"beforeBegin",c.hitch(g,function(){function a(a,b){var c={height:a.offsetHeight,width:a.offsetWidth}[b];return void 0!==c?c:(c=i.get(a,b),"opacity"==b?+c:h?c:parseFloat(c))}var b={};for(var f in this.properties){("width"==f||"height"==f)&&(this.node.display="block");var g=this.properties[f];c.isFunction(g)&&(g=g(d)),g=b[f]=j({},c.isObject(g)?g:{end:g}),c.isFunction(g.start)&&(g.start=g.start(d)),c.isFunction(g.end)&&(g.end=g.end(d));var h=f.toLowerCase().indexOf("color")>=0;"end"in g?"start"in g||(g.start=a(d,f)):g.end=a(d,f),h?(g.start=new e(g.start),g.end=new e(g.end)):g.start="opacity"==f?+g.start:parseFloat(g.start)}this.curve=new r(b)}),!0),f.after(g,"onAnimate",c.hitch(i,"set",g.node),!0),g},k.anim=function(a,b,c,d,e,f){return k.animateProperty({node:a,duration:c||m.prototype.duration,properties:b,easing:d,onEnd:e}).play(f||0)},g("extend-dojo")&&(j(a,k),a._Animation=m),k}),define("dojo/aspect",[],function(){"use strict";function a(a,b,c,e){var f,g=a[b],h="around"==b;if(h){var i=c(function(){return g.advice(this,arguments)});f={remove:function(){i&&(i=a=c=null)},advice:function(a,b){return i?i.apply(a,b):g.advice(a,b)}}}else f={remove:function(){if(f.advice){var d=f.previous,e=f.next;e||d?(d?d.next=e:a[b]=e,e&&(e.previous=d)):delete a[b],a=c=f.advice=null}},id:d++,advice:c,receiveArguments:e};if(g&&!h)if("after"==b){for(;g.next&&(g=g.next););g.next=f,f.previous=g}else"before"==b&&(a[b]=f,f.next=g,g.previous=f);else a[b]=f;return f}function b(b){return function(e,f,g,h){var i,j=e[f];j&&j.target==e||(e[f]=i=function(){for(var a=d,b=arguments,e=i.before;e;)b=e.advice.apply(this,b)||b,e=e.next;if(i.around)var f=i.around.advice(this,b);for(var g=i.after;g&&g.id>=f,d[b]=4==f?17*c:c}),d.a=1,d)},e.fromArray=a.colorFromArray=function(a,b){var c=b||new e;return c._set(Number(a[0]),Number(a[1]),Number(a[2]),Number(a[3])),isNaN(c.a)&&(c.a=1),c.sanitize()},e.fromString=a.colorFromString=function(a,b){var c=e.named[a];return c&&e.fromArray(c,b)||e.fromRgb(a,b)||e.fromHex(a,b)},e}),define("dojo/Evented",["./aspect","./on"],function(a,b){"use strict";function c(){}var d=a.after;return c.prototype={on:function(a,c){return b.parse(this,a,c,function(a,b){return d(a,"on"+b,c,!0)})},emit:function(){var a=[this];return a.push.apply(a,arguments),b.emit.apply(b,a)}},c}),define("dojo/on",["./has!dom-addeventlistener?:./aspect","./_base/kernel","./sniff"],function(a,b,c){"use strict";function d(a,b,d,e,f){var g=b.match(/(.*):(.*)/);if(g)return b=g[2],g=g[1],h.selector(g,b).call(f,a,d);if(c("touch")&&(i.test(b)&&(d=x(d)),c("event-orientationchange")||"orientationchange"!=b||(b="resize",a=window,d=x(d))),n&&(d=n(d)),a.addEventListener){var j=b in l,k=j?l[b]:b;return a.addEventListener(k,d,j),{remove:function(){a.removeEventListener(k,d,j)}}}if(b="on"+b,r&&a.attachEvent)return r(a,b,d);throw new Error("Target must be an event emitter")}function e(){this.cancelable=!1,this.defaultPrevented=!0}function f(){this.bubbles=!1}if(c("dom")){var g=window.ScriptEngineMajorVersion;c.add("jscript",g&&g()+ScriptEngineMinorVersion()/10),c.add("event-orientationchange",c("touch")&&!c("android")),c.add("event-stopimmediatepropagation",window.Event&&!!window.Event.prototype&&!!window.Event.prototype.stopImmediatePropagation),c.add("event-focusin",function(a,b,c){return"onfocusin"in c})}var h=function(a,b,c,e){return"function"!=typeof a.on||"function"==typeof b||a.nodeType?h.parse(a,b,c,d,e,this):a.on(b,c)};h.pausable=function(a,b,c,d){var e,f=h(a,b,function(){return e?void 0:c.apply(this,arguments)},d);return f.pause=function(){e=!0},f.resume=function(){e=!1},f},h.once=function(a,b,c){var d=h(a,b,function(){return d.remove(),c.apply(this,arguments)});return d},h.parse=function(a,b,c,d,e,f){if(b.call)return b.call(f,a,c);if(b instanceof Array)g=b;else if(b.indexOf(",")>-1)var g=b.split(/\s*,\s*/);if(g){for(var i,j=[],k=0;i=g[k++];)j.push(h.parse(a,i,c,d,e,f));return j.remove=function(){for(var a=0;a0?c(a):e(a),a===g)return null;if(this._selectorFunc(a))return a}}})}),define("delite/HasDropDown",["dcl/dcl","dojo/Deferred","dojo/dom-class","requirejs-dplugins/has","delite/keys","./focus","./place","./popup","./Widget","dpointer/events"],function(a,b,c,d,e,f,g,h,i){return a(i,{_buttonNode:null,_arrowWrapperNode:null,_popupStateNode:null,_aroundNode:null,dropDown:null,autoWidth:!0,forceWidth:!1,maxHeight:-1,dropDownPosition:["below","above"],_stopClickEvents:!0,opened:!1,_onDropDownMouseDown:function(a){this.disabled||this.readOnly||("MSPointerDown"!==a.type&&"pointerdown"!==a.type&&a.preventDefault(),this._docHandler=this.on("pointerup",this._onDropDownMouseUp.bind(this),this.ownerDocument.body),this.toggleDropDown())},_onDropDownMouseUp:function(a){a&&this._docHandler&&(this._docHandler.remove(),this._docHandler=null);var b=this.dropDown,d=!1;if(a&&this.opened){var e=g.position(this._buttonNode);if(!(a.pageX>=e.x&&a.pageX<=e.x+e.w&&a.pageY>=e.y&&a.pageY<=e.y+e.h)){for(var f=a.target;f&&!d;)c.contains(f,"d-popup")?d=!0:f=f.parentNode;if(d){if(b.onItemClick){var h=this.getEnclosingWidget(a.target);h&&h.onClick&&h.getParent&&h.getParent().onItemClick(h,a)}return}}}this.opened?b.focus&&(b.focusOnOpen!==!1||"mouseup"===a.type&&!this.hovering)&&(this._focusDropDownTimer=this.defer(function(){b.focus(),delete this._focusDropDownTimer})):this.focus&&this.defer("focus")},_onDropDownClick:function(a){this._stopClickEvents&&(a.stopPropagation(),a.preventDefault())},buildRendering:a.after(function(){this._buttonNode=this._buttonNode||this.focusNode||this,this._popupStateNode=this._popupStateNode||this.focusNode||this._buttonNode;var a={after:this.isLeftToRight()?"right":"left",before:this.isLeftToRight()?"left":"right"}[this.dropDownPosition[0]]||this.dropDownPosition[0]||"down";c.add(this._arrowWrapperNode||this._buttonNode,"d-"+a+"-arrow")}),postCreate:function(){this.on("pointerdown",this._onDropDownMouseDown.bind(this),this._buttonNode),this.on("click",this._onDropDownClick.bind(this),this._buttonNode),this.on("keydown",this._onKey.bind(this),this.focusNode||this),this.on("keyup",this._onKeyUp.bind(this),this.focusNode||this)},destroy:function(){this.opened&&this.closeDropDown(!0),this.dropDown&&(this.dropDown._destroyed||this.dropDown.destroy(),delete this.dropDown)},_onKey:function(a){if(!this.disabled&&!this.readOnly){var b=this.dropDown,c=a.target;return b&&this.opened&&b.handleKey&&b.handleKey(a)===!1?(a.stopPropagation(),void a.preventDefault()):void(b&&this.opened&&a.keyCode===e.ESCAPE?(this.closeDropDown(),a.stopPropagation(),a.preventDefault()):!this.opened&&(a.keyCode===e.DOWN_ARROW||(a.keyCode===e.ENTER||a.keyCode===e.SPACE&&(!this._searchTimer||a.ctrlKey||a.altKey||a.metaKey))&&("input"!==(c.tagName||"").toLowerCase()||c.type&&"text"!==c.type.toLowerCase()))&&(this._toggleOnKeyUp=!0,a.stopPropagation(),a.preventDefault()))}},_onKeyUp:function(){if(this._toggleOnKeyUp){delete this._toggleOnKeyUp,this.toggleDropDown();var a=this.dropDown;a&&a.focus&&this.defer(a.focus.bind(a),1)}},_onBlur:a.before(function(){this.closeDropDown(!1)}),isLoaded:function(){return!0},loadDropDown:function(a){a()},loadAndOpenDropDown:function(){function a(){this.openDropDown(),c.resolve(this.dropDown)}var c=new b;return this.isLoaded()?a.call(this):this.loadDropDown(a.bind(this)),c},toggleDropDown:function(){this.disabled||this.readOnly||(this.opened?this.closeDropDown(!0):this.loadAndOpenDropDown())},openDropDown:function(){var a=this.dropDown,b=this._aroundNode||this,d=this,e=h.open({parent:this,popup:a,around:b,orient:this.dropDownPosition,maxHeight:this.maxHeight,onExecute:function(){d.closeDropDown(!0)},onCancel:function(){d.closeDropDown(!0)},onClose:function(){c.remove(d._popupStateNode,"d-drop-down-open"),d._set("opened",!1)}});if(this.forceWidth||this.autoWidth&&b.offsetWidth>a._popupWrapper.offsetWidth){var f=b.offsetWidth-a._popupWrapper.offsetWidth;a._popupWrapper.style.width=b.offsetWidth+"px","R"===e.corner[1]&&(a._popupWrapper.style.left=a._popupWrapper.style.left.replace("px","")-f+"px")}return c.add(this._popupStateNode,"d-drop-down-open"),this._set("opened",!0),this._popupStateNode.setAttribute("aria-expanded","true"),this._popupStateNode.setAttribute("aria-owns",a.id),"presentation"===a.getAttribute("role")||a.getAttribute("aria-labelledby")||a.setAttribute("aria-labelledby",this.id),e},closeDropDown:function(a){this._focusDropDownTimer&&(this._focusDropDownTimer.remove(),delete this._focusDropDownTimer),this.opened&&(this._popupStateNode.setAttribute("aria-expanded","false"),a&&this.focus&&this.focus(),h.close(this.dropDown),this.opened=!1)}})}),define("delite/FormWidget",["dcl/dcl","./Widget"],function(a,b){return a(b,{name:"",alt:"",value:"",tabIndex:0,tabStops:"focusNode",disabled:!1,refreshRendering:function(a){var b=this,c=this.tabStops.split(/[ ,]/);if("tabStops"in a||"disabled"in a){var d=this.disabled;this.valueNode&&this.valueNode!==this&&(this.valueNode.disabled=d),c.forEach(function(a){var c=b[a];c!==b&&(c.disabled=d),c.setAttribute("aria-disabled",""+d)},this),d||this.removeAttribute("disabled")}return("tabStops"in a||"tabIndex"in a||"disabled"in a)&&c.forEach(function(a){var c=b[a];c!==b&&(b.disabled?c.removeAttribute("tabindex"):c.tabIndex=b._get("tabIndex"))},this),a},focus:function(){if(!this.disabled&&this.focusNode.focus)try{this.focusNode.focus()}catch(a){}}})}),define("delite/FormValueWidget",["dcl/dcl","./FormWidget"],function(a,b){function c(a,b,c){return function(d){(typeof d!=typeof this[b]||0!==this.compare(d,this[b]))&&(this[b]=this.value=d,this[c]&&this[c].remove(),this[c]=this.defer(function(){this[c]=null,this.deliver(),this.emit(a)}))}}return a(b,{readOnly:!1,refreshRendering:function(a){if("readOnly"in a){var b=this.readOnly;this.valueNode&&this.valueNode!==this&&(this.valueNode.readOnly=b),b||this.removeAttribute("readonly")}},compare:function(a,b){return"number"==typeof a&&"number"==typeof b?isNaN(a)&&isNaN(b)?0:a-b:a>b?1:b>a?-1:0},handleOnChange:c("change","_previousOnChangeValue","_onChangeHandle"),handleOnInput:c("input","_previousOnInputValue","_onInputHandle"),startup:a.after(function(){this._previousOnChangeValue=this.value,this._previousOnInputValue=this.value})})}),define("delite/DisplayContainer",["dcl/dcl","dojo/Deferred","dojo/when","delite/Container"],function(a,b,c,d){return a(d,{show:function(d,e){var f={dest:d,loadDeferred:new b},g=this,h=new b;a.mix(f,e);var i=this.emit("delite-display-load",f)?this.load(d):f.loadDeferred;return c(i,function(b){-1===g.getIndexOfChild(b.child)&&g.addChild(b.child,b.index),f={dest:d,cancelable:!1},a.mix(f,e),a.mix(f,b),g.emit("delite-before-show",f),c(g.changeDisplay(b.child,f),function(){g.emit("delite-after-show",f),h.resolve(b)})}),h.promise},hide:function(d,e){var f={dest:d,loadDeferred:new b,bubbles:!0,cancelable:!0,hide:!0},g=this,h=new b;a.mix(f,e);var i=this.emit("delite-display-load",f)?this.load(d):f.loadDeferred;return c(i,function(b){f={dest:d,bubbles:!0,cancelable:!1,hide:!0},a.mix(f,e),a.mix(f,b),g.emit("delite-before-hide",f),c(g.changeDisplay(b.child,f),function(){-1!==g.getIndexOfChild(b.child)&&g.removeChild(b.child),g.emit("delite-after-hide",f),h.resolve(b)})}),h.promise},changeDisplay:function(a,b){b.hide===!0?(a.style.visibility="hidden",a.style.display="none"):(a.style.visibility="visible",a.style.display="")},load:function(a){return{child:"string"==typeof a?this.ownerDocument.getElementById(a):a}}})}),define("delite/DialogUnderlay",["./register","./Widget","./BackgroundIframe","./Viewport","./theme!./DialogUnderlay/themes/{{theme}}/DialogUnderlay.css"],function(a,b,c,d){var e=a("d-dialog-underlay",[HTMLElement,b],{_modalConnects:[],buildRendering:function(){this.className="d-dialog-underlay"},postCreate:function(){this.ownerDocument.body.appendChild(this),this.on("keydown",this._onKeyDown.bind(this))},layout:function(){var a=this.style;a.display="none";var b=this.ownerDocument.documentElement;a.width=b.clientWidth+"px",a.height=b.clientHeight+"px",a.display=""},show:function(){this._open||(this.style.display="block",this._open=!0,this.layout(),this.bgIframe=new c(this),this._modalConnects=[d.on("resize",function(){this.layout()}.bind(this))])},hide:function(){if(this._open){for(this.bgIframe.destroy(),delete this.bgIframe,this.style.display="none";this._modalConnects.length;)this._modalConnects.pop().remove();this._open=!1}},destroy:a.before(function(){for(;this._modalConnects.length;)this._modalConnects.pop().remove()}),_onKeyDown:function(){}});return e.show=function(a,b){var c=e._singleton;!c||c._destroyed?c=e._singleton=new e(a):a&&c.mix(a),c.style.zIndex=b,c.show()},e.hide=function(){var a=e._singleton;a&&!a._destroyed&&a.hide()},e}),define("delite/CustomElement",["dcl/dcl","decor/Observable","decor/Destroyable","decor/Stateful"],function(dcl,Observable,Destroyable,Stateful){function getObject(a){try{return a.split(".").reduce(function(a,b){return a[b]},this)}catch(b){}}return dcl([Stateful,Destroyable],{_getProps:function(){var a,b=[],c=this,d=this._propCaseMap={};do Object.keys(c).forEach(function(a){/^_/.test(a)||("function"!=typeof c[a]&&b.push(a),d[a.toLowerCase()]=a)}),c=Object.getPrototypeOf(c),a=c&&c.constructor;while(c&&a!==this._baseElement);return b},createdCallback:dcl.advise({before:function(){this._observable||Observable.call(this),this._parsedAttributes=this._mapAttributes()},after:function(){this._created=!0,this._parsedAttributes.forEach(function(a){a.event?this.on(a.event,a.callback):this[a.prop]=a.value +},this)}}),_parsePrototypeAttr:function(name,value){function stringToObject(value){var obj;try{obj=eval("("+("{"===value[0]?"":"{")+value+("{"===value[0]?"":"}")+")")}catch(e){throw new SyntaxError("Error in attribute conversion to object: "+e.message+"\nAttribute Value: '"+value+"'")}return obj}switch(typeof this[name]){case"string":return value;case"number":return value-0;case"boolean":return"false"!==value;case"object":return getObject(value)||(this[name]instanceof Array?value?value.split(/\s+/):[]:stringToObject(value));case"function":return this._parseFunctionAttr(value,[])}},_parseFunctionAttr:function(a,b){return getObject(a)||new(Function.bind.apply(Function,[void 0].concat(b).concat([a])))},_parseAttr:function(a,b){var c=this._propCaseMap;return a in c?(a=c[a],{prop:a,value:this._parsePrototypeAttr(a,b)}):/^on-/.test(a)?{event:a.substring(3),callback:this._parseFunctionAttr(b,["event"])}:void 0},_mapAttributes:function(){for(var a,b=0,c=[],d=[];a=this.attributes[b++];){var e=a.name.toLowerCase(),f=this._parseAttr(e,a.value);f&&(c.push(f),d.push(a))}return d.forEach(this.removeAttribute,this),c},destroy:function(){this.findCustomElements().forEach(function(a){a.destroy&&a.destroy()}),this.parentNode&&this.parentNode.removeChild(this)},emit:function(a,b){if(this._started!==!1&&!this._beingDestroyed){b=b||{};var c="bubbles"in b?b.bubbles:!0,d="cancelable"in b?b.cancelable:!0,e=this.ownerDocument.createEvent("HTMLEvents");e.initEvent(a,c,d);for(var f in b)f in e||(e[f]=b[f]);return this.dispatchEvent(e)}},on:function(a,b,c){var d={focusin:"focus",focus:"focus",focusout:"blur",blur:"blur"},e=a in d,f=e?d[a]:a;return c=c||this,c.addEventListener(f,b,e),this.own({remove:function(){c.removeEventListener(f,b,e)}})[0]},findCustomElements:function(a){function b(a){for(var d=a.firstChild;d;d=d.nextSibling)1===d.nodeType&&d.createdCallback?c.push(d):b(d)}var c=[];return b(a||this),c}})}),define("delite/CssState",["dcl/dcl","dojo/dom-class","./Widget"],function(a,b,c){return a(c,{booleanCssProps:["disabled","readOnly","selected","focused","opened"],postCreate:function(){["checked","state"].concat(this.booleanCssProps).forEach(function(a){this[a]&&this.notifyCurrentValue(a)})},refreshRendering:function(a){this.booleanCssProps.forEach(function(c){c in a&&b.toggle(this,"d-"+c.toLowerCase(),this[c])},this),"checked"in a&&(b.remove(this,"mixed"===a.checked?"d-mixed":"d-checked"),this.checked&&b.add(this,"mixed"===this.checked?"d-mixed":"d-checked")),"state"in a&&(b.remove(this,"d-"+a.state.toLowerCase()),b.add(this,"d-"+this.state.toLowerCase()))}})}),define("delite/Container",["dcl/dcl","./Widget"],function(a,b){return a(b,{buildRendering:a.after(function(){this.containerNode||(this.containerNode=this)}),addChild:function(c,d){var e=this.containerNode,f=e.children[d];e.insertBefore(c,f||null),this._started&&!c._started&&a.isInstanceOf(c,b)&&c.startup()},removeChild:function(a){"number"==typeof a&&(a=this.getChildren()[a]),a&&a.parentNode&&HTMLElement.prototype.removeChild.call(a.parentNode,a)},hasChildren:function(){return this.getChildren().length>0},getIndexOfChild:function(a){return this.getChildren().indexOf(a)}})}),define("delite/Bidi",[],function(){var a="‪",b="‫",c="‬";return{textDir:"",getTextDir:function(a){return"auto"===this.textDir?this._checkContextual(a):this.textDir},_checkContextual:function(a){var b=/[A-Za-z\u05d0-\u065f\u066a-\u06ef\u06fa-\u07ff\ufb1d-\ufdff\ufe70-\ufefc]/.exec(a);return b?b[0]<="z"?"ltr":"rtl":this.dir?this.dir:this.isLeftToRight()?"ltr":"rtl"},applyTextDir:function(a){if(this.textDir){var b=this.textDir;if("auto"===b){var c=a.tagName.toLowerCase(),d="input"===c||"textarea"===c?a.value:a.textContent;b=this._checkContextual(d)}a.dir=b}},wrapWithUcc:function(d){var e="auto"===this.textDir?this._checkContextual(d):this.textDir;return("ltr"===e?a:b)+d+c},enforceTextDirWithUcc:function(a){a.originalText=a.text,a.innerHTML=this.wrapWithUcc(a.innerHTML)},restoreOriginalText:function(a){a.originalText&&(a.text=a.originalText,delete a.originalText)}}}),define("delite/BackgroundIframe",["dcl/dcl","./features"],function(a,b){var c=function(){var a=[];this.pop=function(){var b;return a.length?(b=a.pop(),b.style.display=""):(b=document.createElement("iframe"),b.src="javascript:''",b.className="d-background-iframe",b.setAttribute("role","presentation"),b.tabIndex=-1),b},this.push=function(b){b.style.display="none",a.push(b)}},d=new c;return a(null,{constructor:function(a){if(b("config-bgIframe")){var c=this.iframe=d.pop();a.appendChild(c),c.style.width="100%",c.style.height="100%"}},destroy:function(){this._conn&&(this._conn.remove(),this._conn=null),this.iframe&&(this.iframe.parentNode.removeChild(this.iframe),d.push(this.iframe),delete this.iframe)}})}); +//# sourceMappingURL=layer.map \ No newline at end of file diff --git a/layer.map b/layer.map new file mode 100644 index 0000000..c9056b9 --- /dev/null +++ b/layer.map @@ -0,0 +1 @@ +{"version":3,"file":"layer.js","sources":["..\\requirejs-text\\text.js","..\\dojo\\string.js","..\\dojo\\_base\\lang.js","..\\dojo\\sniff.js","..\\dojo\\has.js","..\\dojo\\_base\\kernel.js","..\\dojo\\_base\\config.js","..\\dojo\\hccss.js","..\\dojo\\_base\\window.js","..\\dojo\\domReady.js","..\\dojo\\dom-style.js","..\\dojo\\dom.js","..\\dojo\\dom-class.js","..\\dojo\\_base\\array.js","..\\delite\\uacss.js","..\\delite\\typematic.js","..\\delite\\theme.js","..\\delite\\template.js","..\\delite\\register.js","..\\delite\\popup.js","..\\delite\\place.js","..\\delite\\keys.js","..\\delite\\handlebars.js","..\\delite\\focus.js","..\\requirejs-domready\\domReady.js","..\\delite\\features.js","..\\delite\\css.js","..\\dojo\\Deferred.js","..\\dojo\\promise\\Promise.js","..\\dojo\\errors\\CancelError.js","..\\dojo\\errors\\create.js","..\\delite\\a11yclick.js","..\\delite\\a11y.js","..\\delite\\Widget.js","..\\delite\\Viewport.js","..\\delite\\StoreMap.js","..\\delite\\Store.js","..\\dojo\\when.js","..\\delite\\Selection.js","..\\delite\\Scrollable.js","..\\dojo\\fx\\easing.js","..\\dojo\\_base\\fx.js","..\\dojo\\aspect.js","..\\dojo\\_base\\Color.js","..\\dojo\\Evented.js","..\\dojo\\on.js","..\\delite\\KeyNav.js","..\\delite\\HasDropDown.js","..\\delite\\FormWidget.js","..\\delite\\FormValueWidget.js","..\\delite\\DisplayContainer.js","..\\delite\\DialogUnderlay.js","..\\delite\\CustomElement.js","..\\delite\\CssState.js","..\\delite\\Container.js","..\\delite\\Bidi.js","..\\delite\\BackgroundIframe.js"],"names":["define","module","text","fs","Cc","Ci","xpcIsWindows","progIds","xmlRegExp","bodyRegExp","hasLocation","location","href","defaultProtocol","protocol","replace","defaultHostName","hostname","defaultPort","port","undefined","buildMap","masterConfig","config","version","strip","content","matches","match","jsEscape","createXhr","xhr","i","progId","XMLHttpRequest","ActiveXObject","e","parseName","name","modName","ext","temp","index","indexOf","isRelative","substring","length","moduleName","xdRegExp","useXhr","url","uProtocol","uHostName","uPort","exec","split","toLowerCase","finishLoad","onLoad","isBuild","load","req","inlineText","parsed","nonStripName","toUrl","get","err","error","write","pluginName","hasOwnProperty","asModule","writeFile","extPart","fileName","textWrite","contents","env","process","versions","node","require","nodeRequire","callback","errback","file","readFileSync","headers","header","open","setRequestHeader","onXhr","onreadystatechange","status","readyState","Error","responseText","onXhrComplete","send","Packages","java","stringBuffer","line","encoding","io","File","lineSeparator","lang","System","getProperty","input","BufferedReader","InputStreamReader","FileInputStream","StringBuffer","readLine","charAt","append","String","toString","close","Components","classes","interfaces","utils","inStream","convertStream","fileObj","readData","FileUtils","createInstance","nsIFileInputStream","init","nsIConverterInputStream","available","DEFAULT_REPLACEMENT_CHARACTER","readString","value","path","kernel","ESCAPE_REGEXP","ESCAPE_MAP","&","<",">","\"","'","/","string","setObject","escape","str","c","rep","num","buf","push","join","pad","size","ch","end","out","Math","ceil","substitute","template","map","transform","thisObject","global","hitch","v","key","format","getObject","call","trim","prototype","test","dojo","has","add","_extraNames","_extraLen","getProp","parts","create","context","scopeMap","shift","p","opts","Object","efficient","obj","offset","startWith","concat","Array","slice","_pattern","_mixin","dest","source","copyFunc","s","empty","mixin","l","arguments","pop","exists","isString","it","isArray","isFunction","isObject","isArrayLike","tagName","isFinite","isAlien","extend","ctor","_hitchArgs","scope","method","pre","_toArray","named","args","f","apply","this","delegate","TMP","props","tmp","slow","arr","x","partial","clone","src","nodeType","cloneNode","Date","getTime","RegExp","r","constructor","tmpl","pattern","_","k","n","navigator","dua","userAgent","dav","appVersion","tv","parseFloat","document","compatMode","$1","os","SVGAngle","all","isIE","mode","documentMode","floor","opera","wiiremote","isBrowser","window","doc","element","createElement","cache","now","force","v8","addEventListener","maxTouchPoints","msMaxTouchPoints","screen","availWidth","innerWidth","form","attributes","clearElement","innerHTML","normalize","id","toAbsMid","tokens","skip","term","parentRequire","loaded","item","dijit","dojox","packageMap","_scopeName","noGlobals","baseUrl","isAsync","async","locale","rev","major","minor","patch","flag","revision","NaN","Function","exit","exitcode","quit","console","tn","cn","tcn","a","unshift","_fake","isDebug","deprecated","experimental","behaviour","extra","removal","message","warn","modulePaths","paths","moduleUrl","result","_hasResource","rawConfig","adviseHas","featureSet","prefix","booting","dojoConfig","djConfig","language","userLanguage","domClass","domStyle","domReady","win","div","style","cssText","blankGif","body","appendChild","cs","getComputedStyle","bkImg","backgroundImage","hc","borderTopColor","borderRightColor","outerHTML","removeChild","ret","getElementsByTagName","setContext","globalObject","globalDocument","withGlobal","cbArguments","oldGlob","withDoc","documentObject","pwin","oldDoc","oldQ","oldIE","isQuirks","parentWindow","readyQ","ready","processQ","recursiveGuard","log","_onQEmpty","readyStates","complete","fixReadyState","_Q","tests","detectReady","evt","event","type","on","removeEventListener","attachEvent","detachEvent","doScroll","frameElement","poller","setTimeout","dom","_toStyleValue","offsetHeight","offsetWidth","_pixelNamesCache","_pixelRegExp","toPixel","dv","ownerDocument","defaultView","display","currentStyle","avalue","rs","runtimeStyle","sLeft","left","rsLeft","pixelLeft","toPixelValue","astr","af","filters","_getOpacity","Opacity","opacity","_setOpacity","ov","fullyOpaque","zoom","filter","Enabled","td","firstChild","nextSibling","top","_floatAliases","cssFloat","styleFloat","float","byId","op","set","execCommand","_d","te","getElementById","eles","nodeName","isDescendant","ancestor","parentNode","prefixes","cssUserSelect","setSelectable","selectable","nodes","removeAttribute","setAttribute","array","str2array","spaces","a1","cls","className","fakeNode","contains","classStr","oldLen","len","substr","remove","addClassStr","removeClassStr","toggle","condition","buildFn","fn","everyOrSome","some","every","o","up","delta","lOver","uOver","from","last","lastIndexOf","u","forEach","Ctr","clearCache","ie","maj","ff","d-webkit","d-safari","d-chrome","d-gecko","d-ios","d-android","clz","typematic","_fireEventAndReload","_timer","_callback","_count","_node","_evt","_currentTimeout","max","_initialDelay","_subsequentDelay","round","_minDelay","bind","trigger","_this","subsequentDelay","initialDelay","minDelay","_obj","stop","faux","attr","clearTimeout","addKeyListener","keyObject","handles","ctrlKey","altKey","metaKey","shiftKey","stopPropagation","preventDefault","h","addMouseListener","addListener","mouseNode","keyNode","css","themeMap","getTheme","theme","search","ua","onload","commonCss","resources","buildFunctions","addOnce","loadList","layersMap","deps","writePluginFiles","resource","onLayerEnd","data","getLayerPath","pathRE","themeDir","themedLoadList","writeLayer","writeConfig","register","getElement","tag","elementCache","attrName","attrMap","proto","prop","generateWatchCode","dependencies","statement","observeText","generateNodeChildrenCode","children","buildText","child","idx","childName","generateNodeCode","textNodeName","expr","dependsOn","createNode","templateNode","ap","attachPoints","xmlns","info","propName","js","codeToSetProp","connects","handler","codegen","rootNodeName","createRootNode","tree","compile","dcl","base","registry","extends","upgrade","getPropDescriptors","keys","getOwnPropertyNames","getOwnPropertyDescriptor","getPrototypeOf","__upgraded__","widget","getAttribute","__proto__","defineProperties","_constructor","createdCallback","attachedCallback","documentElement","getTagConstructor","baseElement","baseCtor","HTMLElement","tags","tagMap","TypeError","registerElement","selectors","tagConstructor","params","srcNodeRef","_ctor","restore","extension","superclasses","bases","_baseElement","_introspect","_getProps","_introspected","parse","root","querySelectorAll","startup","_started","mix","b","defineProperty","configurable","writable","enumerable","HTMLAnchorElement","HTMLBaseElement","br","HTMLBRElement","button","HTMLButtonElement","canvas","HTMLCanvasElement","HTMLDivElement","dl","HTMLDListElement","directory","HTMLDirectoryElement","fieldset","HTMLFieldSetElement","font","HTMLFontElement","HTMLFormElement","head","HTMLHeadElement","h1","HTMLHeadingElement","html","HTMLHtmlElement","hr","HTMLHRElement","iframe","HTMLIFrameElement","img","HTMLImageElement","HTMLInputElement","label","HTMLLabelElement","legend","HTMLLegendElement","li","HTMLLIElement","link","HTMLLinkElement","HTMLMapElement","menu","HTMLMenuElement","meta","HTMLMetaElement","ins","HTMLModElement","object","HTMLObjectElement","ol","HTMLOListElement","optgroup","HTMLOptGroupElement","option","HTMLOptionElement","HTMLParagraphElement","param","HTMLParamElement","HTMLPreElement","quote","HTMLQuoteElement","script","HTMLScriptElement","select","HTMLSelectElement","HTMLStyleElement","table","HTMLTableElement","caption","HTMLTableCaptionElement","col","HTMLTableColElement","tr","HTMLTableRowElement","tbody","HTMLTableSectionElement","textarea","HTMLTextAreaElement","title","HTMLTitleElement","ul","HTMLUListElement","video","HTMLVideoElement","after","before","around","advise","place","BackgroundIframe","Viewport","isDocLtr","dir","destroyWrapper","_popupWrapper","PopupManager","_stack","_beginZIndex","_idGen","_repositionAll","_firstAroundNode","oldPos","_firstAroundPosition","newPos","position","dx","dy","y","wrapper","right","_aroundMoveListener","_createWrapper","visibility","target","moveOffScreen","ltr","hide","height","overflow","border","_originalStyle","getTopPopup","stack","pi","parent","onKeyDown","keyCode","ESCAPE","onCancel","TAB","topPopup","popup","orient","isLeftToRight","maxHeight","Infinity","viewport","getEffectiveBox","aroundPos","getBoundingClientRect","padding","borderStyle","borderLeftWidth","borderLeftStyle","borderLeftColor","overflowY","baseClass","zIndex","bgIframe","layoutFunc","best","at","handlers","onExecute","onClose","onOpen","elem","destroy","_place","choices","layoutNode","aroundNodeCoords","view","choice","corner","pos","spaceAvailable","w","L","R","M","T","t","B","res","aroundCorner","oldDisplay","oldVis","bb","startXpos","width","min","startYpos","startX","startY","endX","endY","side","marginTop","marginLeft","reverse","TL","TR","BL","BR","corners","anchor","positions","leftToRight","aroundNodePos","borderTopWidth","borderBottomWidth","anchorBorder","anchorChildBorder","firstElementChild","nodeBorder","nodeChildBorder","sawPosAbsolute","parentPos","pcs","bottomYCoord","rightXCoord","bcr","pageXOffset","scrollLeft","pageYOffset","scrollTop","BACKSPACE","CLEAR","ENTER","SHIFT","CTRL","ALT","META","PAUSE","CAPS_LOCK","SPACE","PAGE_UP","PAGE_DOWN","END","HOME","LEFT_ARROW","UP_ARROW","RIGHT_ARROW","DOWN_ARROW","INSERT","DELETE","HELP","LEFT_WINDOW","RIGHT_WINDOW","SELECT","NUMPAD_0","NUMPAD_1","NUMPAD_2","NUMPAD_3","NUMPAD_4","NUMPAD_5","NUMPAD_6","NUMPAD_7","NUMPAD_8","NUMPAD_9","NUMPAD_MULTIPLY","NUMPAD_PLUS","NUMPAD_ENTER","NUMPAD_MINUS","NUMPAD_PERIOD","NUMPAD_DIVIDE","F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12","F13","F14","F15","NUM_LOCK","SCROLL_LOCK","UP_DPAD","DOWN_DPAD","LEFT_DPAD","RIGHT_DPAD","copyKey","toJs","convertUndefinedToBlank","inVar","wp","thisVar","textPlugin","handlebars","attrs","parseChildren","lastRealNode","childType","nodeValue","toDom","templateText","parser","DOMParser","parseFromString","container","templateDom","func","mid","loaderConfig","requires","Evented","lastFocusin","lastTouchOrFocusin","FocusManager","activeStack","registerIframe","registerWin","contentWindow","targetWindow","effectiveNode","pointerDownHandler","_onTouchNode","focusHandler","_onFocusNode","blurHandler","_onBlurNode","_clearActiveWidgetsTimer","_setStack","by","newStack","popupParent","buildRendering","disabled","_clearFocusTimer","oldStack","lastOldIdx","lastNewIdx","emit","_hasBeenBlurred","focused","_onBlur","_onFocus","focus","singleton","runCallbacks","callbacks","callReady","readyCalls","isPageLoaded","pageLoaded","scrollIntervalId","clearInterval","isTop","testDiv","external","setInterval","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","Deferred","wk","parseInt","lastInsertedLink","listenOnLoad","def","loadHandler","resolve","sheet","styleSheet","styleSheets","promise","loadCss","rel","insertBefore","then","cssConf","JSON","stringify","CleanCSS","getNodePath","relativeTo","minify","ary","CancelError","Promise","instrumentation","PROGRESS","RESOLVED","REJECTED","FULFILLED_ERROR_MESSAGE","freezeObject","freeze","signalWaiting","waiting","rejection","deferred","instrumentRejected","signalListener","listener","newResult","signalDeferred","cancel","makeDeferredSignaler","isCanceled","progress","reject","canceler","fulfilled","canceled","captureStackTrace","isResolved","isRejected","isFulfilled","update","strict","progback","reason","returnedReason","throwAbstract","always","callbackOrErrback","otherwise","trace","traceRejected","dojoType","ErrorCtor","clickKey","hasAttribute","lastKeyDownNode","defaultPrevented","clickEvent","createEvent","initMouseEvent","dispatchEvent","a11y","_isElementShown","hasDefaultTabStop","contentDocument","designMode","contentEditable","effectiveTabIndex","isTabNavigable","isFocusable","_getTabNavigable","radioName","walkTree","shown","tabindex","first","lowest","lowestTabindex","highest","highestTabindex","rn","checked","radioSelected","toUpperCase","getFirstInTabbingOrder","elems","getLastInTabbingOrder","Invalidating","CustomElement","Bidi","cnt","Widget","_setBaseClassAttr","_set","containerNode","widgetId","preCreate","postCreate","refreshRendering","_refreshRenderingCallback","_attached","tabIndex","desc","self","MO","MutationObserver","WebKitMutationObserver","observer","newValue","observe","subtree","attributeFilter","setOrRemoveAttribute","findCustomElements","_destroyed","getChildren","getParent","getEnclosingWidget","placeAt","reference","replaceChild","lastChild","childNodes","onFocus","onBlur","chainAfter","oldWidth","clientWidth","oldHeight","clientHeight","box","focusedNode","activeElement","readOnly","orientation","rect","Store","getvalue","store","setvalue","propregexp","capitalize","allowRemap","_mappedKeys","copyAllItemProps","_parseAttr","superCall","sup","_propCaseMap","_parseFunctionAttr","mappedKeys","_itemKeys","deliver","renderItemToItem","renderItem","idProperty","itemToRenderItem","__item","getIdentity","remap","items","renderItems","j","when","query","processQueryResult","initItems","cancelable","bubbles","computeProperties","queryStoreAndInitItems","_untrack","collection","track","_tracked","_itemAdded","_itemUpdated","_itemRemoved","fetch","_queryError","tracking","itemRemoved","splice","itemAdded","itemUpdated","itemMoved","previousIndex","newIndex","notifyCurrentValue","valueOrPromise","receivedPromise","nativePromise","selectionMode","_setSelectionModeAttr","selectedItems","selectedItem","_setSelectedItemAttr","_setSelectedItemsAttr","oldSelectedItems","updateRenderers","_getSelectedItemsAttr","_get","hasSelectionModifier","isSelected","identity","sitem","setSelected","_setSelected","sel","selectFromEvent","renderer","dispatch","_selectFromEvent","changed","oldSelectedItem","selected","dispatchSelectionChange","newSelectedItem","triggerEvent","oldValue","baseFx","easing","scrollDirection","scrollableNode","_stopAnimation","isTopScroll","isBottomScroll","scrollHeight","isLeftScroll","isRightScroll","scrollWidth","getCurrentScroll","scrollBy","duration","to","scrollTo","anim","Curve","start","getValue","animation","Animation","beforeBegin","curve","onAnimate","val","expoInOut","rate","_animation","play","easingFuncs","linear","quadIn","pow","quadOut","quadInOut","cubicIn","cubicOut","cubicInOut","quartIn","quartOut","quartInOut","quintIn","quintOut","quintInOut","sineIn","cos","PI","sineOut","sin","sineInOut","expoIn","expoOut","circIn","sqrt","circOut","circInOut","backIn","backOut","backInOut","elasticIn","elasticOut","elasticInOut","bounceIn","bounceOut","bounceInOut","Color","aspect","basefx","_Line","repeat","_percent","_startRepeatCount","_getStep","_p","_e","_fire","debugAtAllCosts","delay","gotoStart","_t","_delayTimer","_clearTimer","_stopTimer","_active","_paused","de","_play","_startTime","valueOf","_cycle","pause","gotoPercent","percent","andPlay","gotoEnd","curr","step","_startTimer","ctr","timer","runner","run","_makeFadeable","ns","_fade","fArgs","properties","animateProperty","fadeIn","fadeOut","_defaultEasing","PropLine","_properties","tempColor","blendColors","toCss","units","getStyle","isColor","pm","onEnd","_Animation","dispatcher","advice","receiveArguments","signal","previous","advised","next","nextId","methodName","existing","executionId","results","newResults","ArrayUtil","color","setColor","black","silver","gray","white","maroon","red","purple","fuchsia","green","lime","olive","yellow","navy","blue","teal","aqua","transparent","transparentColor","g","fromString","fromArray","sanitize","toRgb","toRgba","toHex","includeAlpha","rgb","weight","fromRgb","colorFromRgb","m","fromHex","colorFromHex","bits","mask","Number","isNaN","colorFromArray","colorFromString","dontFix","matchesTarget","selector","touchEvents","fixTouchListener","addStopImmediate","capture","captures","adjustedType","fixAttach","syntheticPreventDefault","syntheticStopPropagation","ScriptEngineMajorVersion","ScriptEngineMinorVersion","Event","stopImmediatePropagation","pausable","paused","resume","once","events","eventName","eventType","eventTarget","bubble","syntheticDispatch","newEvent","focusin","focusout","immediatelyStopped","modified","nativeEvent","initEvent","_fixEvent","sender","lastEvent","srcElement","currentTarget","relatedTarget","fromElement","toElement","charCode","_setKeyChar","IESignal","handle","_dojoIEListeners_","fixListener","emitter","listeners","oldListener","keyChar","fromCharCode","charOrCode","cancelBubble","_preventDefault","bubbledKeyCode","returnValue","windowOrientation","originalEvent","corrected","rotation","scale","firstChangeTouch","changedTouches","takesInput","focusedChild","_keyNavCodes","childSelector","_getTargetElement","_selectorFunc","matchesFuncName","keyCodes","focusFirstChild","focusLastChild","_onLeftArrow","_onRightArrow","_onUpArrow","_onDownArrow","_onContainerKeypress","_onContainerKeydown","_onContainerFocus","_onChildFocus","focusChild","_getNext","_savedTabIndex","_searchString","multiCharSearchDuration","onKeyboardSearch","_keyboardSearchCompare","searchString","focusNode","textContent","currentString","_searchTimer","_keyboardSearch","matchedItem","numMatches","allSameLetter","searchLen","defer","currentItem","rc","dfsNext","nextElementSibling","dfsLast","lastElementChild","dfsPrev","previousElementSibling","origChild","_buttonNode","_arrowWrapperNode","_popupStateNode","_aroundNode","dropDown","autoWidth","forceWidth","dropDownPosition","_stopClickEvents","opened","_onDropDownMouseDown","_docHandler","_onDropDownMouseUp","toggleDropDown","overMenu","pageX","pageY","onItemClick","menuItem","onClick","focusOnOpen","hovering","_focusDropDownTimer","_onDropDownClick","defaultPos","_onKey","_onKeyUp","closeDropDown","d","handleKey","_toggleOnKeyUp","isLoaded","loadDropDown","loadCallback","loadAndOpenDropDown","afterLoad","openDropDown","aroundNode","retVal","widthAdjust","alt","tabStops","oldValues","isDisabled","valueNode","FormWidget","genHandler","prevValueProp","deferHandleProp","compare","isReadOnly","val1","val2","handleOnChange","handleOnInput","_previousOnChangeValue","_previousOnInputValue","Container","show","loadDeferred","displayDeferred","getIndexOfChild","addChild","changeDisplay","DialogUnderlay","_modalConnects","_onKeyDown","layout","_open","underlay","_singleton","Observable","Destroyable","Stateful","reduce","part","list","pcm","_observable","_parsedAttributes","_mapAttributes","_created","pa","_parsePrototypeAttr","stringToObject","eval","SyntaxError","parsedAttrs","attrsToRemove","parsedAttr","eventObj","_beingDestroyed","blur","own","getChildrenHelper","outAry","booleanCssProps","oldVals","state","insertIndex","isInstanceOf","hasChildren","LRE","RLE","PDF","textDir","getTextDir","_checkContextual","fdc","applyTextDir","wrapWithUcc","enforceTextDirWithUcc","originalText","restoreOriginalText","origObj","Frames","queue","_frames","_conn"],"mappings":";AAUAA,OAAO,uBAAuB,UAAW,SAAUC,GAC/C,YAEA,IAAIC,GAAMC,EAAIC,EAAIC,EAAIC,EAClBC,GAAW,iBAAkB,oBAAqB,sBAClDC,EAAY,2DACZC,EAAa,uCACbC,EAAkC,mBAAbC,WAA4BA,SAASC,KAC1DC,EAAkBH,GAAeC,SAASG,UAAYH,SAASG,SAASC,QAAQ,KAAM,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Widget.html new file mode 100644 index 0000000..160e1fc --- /dev/null +++ b/samples/ExampleWidget.html @@ -0,0 +1,51 @@ + + + + + + + + Delite - ExampleWidget + + + + + + + +

Example Widget

+ + + +


+ Switch theme: + platform default + iOS + holodark + bootstrap + + + diff --git a/samples/ExampleWidget.js b/samples/ExampleWidget.js new file mode 100644 index 0000000..c9c8025 --- /dev/null +++ b/samples/ExampleWidget.js @@ -0,0 +1,17 @@ +define([ + "delite/register", + "delite/CssState", + "delite/handlebars!./ExampleWidget/ExampleWidget.html", + "delite/theme!./ExampleWidget/themes/{{theme}}/ExampleWidget.css", + "requirejs-dplugins/has!bidi?delite/theme!./ExampleWidget/themes/{{theme}}/ExampleWidget_rtl.css" +], function (register, CssState, template) { + + return register("d-example", [HTMLElement, CssState], { + // summary: + // Example widget for testing and as template for new widgets. + + template: template, + + baseClass: "d-example-widget" + }); +}); \ No newline at end of file diff --git a/samples/ExampleWidget/ExampleWidget.html b/samples/ExampleWidget/ExampleWidget.html new file mode 100644 index 0000000..87af101 --- /dev/null +++ b/samples/ExampleWidget/ExampleWidget.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/samples/ExampleWidget/themes/ExampleWidget_template.less b/samples/ExampleWidget/themes/ExampleWidget_template.less new file mode 100644 index 0000000..d53fe4f --- /dev/null +++ b/samples/ExampleWidget/themes/ExampleWidget_template.less @@ -0,0 +1,7 @@ +// Template for ExampleWidget CSS, included from themes/*/ExampleWidget.less files + +.d-example-widget { + color: @example-color; + background: @example-background-color; +} + diff --git a/samples/ExampleWidget/themes/ExampleWidget_template_rtl.less b/samples/ExampleWidget/themes/ExampleWidget_template_rtl.less new file mode 100644 index 0000000..2249f07 --- /dev/null +++ b/samples/ExampleWidget/themes/ExampleWidget_template_rtl.less @@ -0,0 +1,12 @@ +// Template for ExampleWidget CSS, included from themes/*/ExampleWidget_rtl.less files + +// Note that selectors are more selective than ExampleWidget.less because it's indeterminate which order the styles +// are inserted into the document. + +.d-example-widget.d-rtl { + text-align: right; +} + +.d-example-widget.d-rtl:before { + content: "(RTL variant) "; +} diff --git a/samples/ExampleWidget/themes/bootstrap/ExampleWidget.css b/samples/ExampleWidget/themes/bootstrap/ExampleWidget.css new file mode 100644 index 0000000..5361897 --- /dev/null +++ b/samples/ExampleWidget/themes/bootstrap/ExampleWidget.css @@ -0,0 +1,7 @@ +.d-example-widget { + color: #dff0d8; + background: #3c763d; +} +.d-example-widget:after { + content: " (bootstrap theme)"; +} diff --git a/samples/ExampleWidget/themes/bootstrap/ExampleWidget.less b/samples/ExampleWidget/themes/bootstrap/ExampleWidget.less new file mode 100644 index 0000000..f2b2bd2 --- /dev/null +++ b/samples/ExampleWidget/themes/bootstrap/ExampleWidget.less @@ -0,0 +1,10 @@ +@import "../../../../themes/bootstrap/variables"; + +@example-color: @state-success-bg; +@example-background-color: @state-success-text; + +@import "../ExampleWidget_template"; + +.d-example-widget:after { + content: " (bootstrap theme)"; +} diff --git a/samples/ExampleWidget/themes/bootstrap/ExampleWidget_rtl.css b/samples/ExampleWidget/themes/bootstrap/ExampleWidget_rtl.css new file mode 100644 index 0000000..df5b476 --- /dev/null +++ b/samples/ExampleWidget/themes/bootstrap/ExampleWidget_rtl.css @@ -0,0 +1,6 @@ +.d-example-widget.d-rtl { + text-align: right; +} +.d-example-widget.d-rtl:before { + content: "(RTL variant) "; +} diff --git a/samples/ExampleWidget/themes/bootstrap/ExampleWidget_rtl.less b/samples/ExampleWidget/themes/bootstrap/ExampleWidget_rtl.less new file mode 100644 index 0000000..9ad47b3 --- /dev/null +++ b/samples/ExampleWidget/themes/bootstrap/ExampleWidget_rtl.less @@ -0,0 +1 @@ +@import "../ExampleWidget_template_rtl"; diff --git a/samples/ExampleWidget/themes/holodark/ExampleWidget.css b/samples/ExampleWidget/themes/holodark/ExampleWidget.css new file mode 100644 index 0000000..f3f7f64 --- /dev/null +++ b/samples/ExampleWidget/themes/holodark/ExampleWidget.css @@ -0,0 +1,7 @@ +.d-example-widget { + color: #ffffff; + background: #333333; +} +.d-example-widget:after { + content: " (holodark theme)"; +} diff --git a/samples/ExampleWidget/themes/holodark/ExampleWidget.less b/samples/ExampleWidget/themes/holodark/ExampleWidget.less new file mode 100644 index 0000000..819f82a --- /dev/null +++ b/samples/ExampleWidget/themes/holodark/ExampleWidget.less @@ -0,0 +1,10 @@ +@import "../../../../themes/holodark/variables"; + +@example-color: @holo-color; +@example-background-color: @holo-grey2; + +@import "../ExampleWidget_template"; + +.d-example-widget:after { + content: " (holodark theme)"; +} diff --git a/samples/ExampleWidget/themes/holodark/ExampleWidget_rtl.css b/samples/ExampleWidget/themes/holodark/ExampleWidget_rtl.css new file mode 100644 index 0000000..df5b476 --- /dev/null +++ b/samples/ExampleWidget/themes/holodark/ExampleWidget_rtl.css @@ -0,0 +1,6 @@ +.d-example-widget.d-rtl { + text-align: right; +} +.d-example-widget.d-rtl:before { + content: "(RTL variant) "; +} diff --git a/samples/ExampleWidget/themes/holodark/ExampleWidget_rtl.less b/samples/ExampleWidget/themes/holodark/ExampleWidget_rtl.less new file mode 100644 index 0000000..9ad47b3 --- /dev/null +++ b/samples/ExampleWidget/themes/holodark/ExampleWidget_rtl.less @@ -0,0 +1 @@ +@import "../ExampleWidget_template_rtl"; diff --git a/samples/ExampleWidget/themes/ios/ExampleWidget.css b/samples/ExampleWidget/themes/ios/ExampleWidget.css new file mode 100644 index 0000000..6810ecf --- /dev/null +++ b/samples/ExampleWidget/themes/ios/ExampleWidget.css @@ -0,0 +1,7 @@ +.d-example-widget { + color: #ffffff; + background: #5877a2; +} +.d-example-widget:after { + content: " (iOS theme)"; +} diff --git a/samples/ExampleWidget/themes/ios/ExampleWidget.less b/samples/ExampleWidget/themes/ios/ExampleWidget.less new file mode 100644 index 0000000..3c4f587 --- /dev/null +++ b/samples/ExampleWidget/themes/ios/ExampleWidget.less @@ -0,0 +1,8 @@ +@example-color: white; +@example-background-color: #5877a2; + +@import "../ExampleWidget_template"; + +.d-example-widget:after { + content: " (iOS theme)"; +} diff --git a/samples/ExampleWidget/themes/ios/ExampleWidget_rtl.css b/samples/ExampleWidget/themes/ios/ExampleWidget_rtl.css new file mode 100644 index 0000000..df5b476 --- /dev/null +++ b/samples/ExampleWidget/themes/ios/ExampleWidget_rtl.css @@ -0,0 +1,6 @@ +.d-example-widget.d-rtl { + text-align: right; +} +.d-example-widget.d-rtl:before { + content: "(RTL variant) "; +} diff --git a/samples/ExampleWidget/themes/ios/ExampleWidget_rtl.less b/samples/ExampleWidget/themes/ios/ExampleWidget_rtl.less new file mode 100644 index 0000000..9ad47b3 --- /dev/null +++ b/samples/ExampleWidget/themes/ios/ExampleWidget_rtl.less @@ -0,0 +1 @@ +@import "../ExampleWidget_template_rtl"; diff --git a/themes/layer_bootstrap.css b/themes/layer_bootstrap.css new file mode 100644 index 0000000..0293e3a --- /dev/null +++ b/themes/layer_bootstrap.css @@ -0,0 +1 @@ +.d-disabled,.d-disabled *,.d-readonly,.d-readonly *{cursor:default}.d-reset{margin:0;border:0;padding:0;font:inherit;line-height:normal;color:inherit}.d-inline{display:inline-block;border:0;padding:0;vertical-align:middle}.d-hidden,[d-hidden=true],[d-shown=false]{display:none}.d-invisible,[d-invisible=true],[d-visible=false]{visibility:hidden}.d-popup{position:absolute;background-color:transparent;margin:0;border:0;padding:0;-webkit-overflow-scrolling:touch;-webkit-box-shadow:0 1px 5px rgba(0,0,0,.25);-moz-box-shadow:0 1px 5px rgba(0,0,0,.25);box-shadow:0 1px 5px rgba(0,0,0,.25);-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.d-tooltip-dialog-popup{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}html{font-size:62.5%;-webkit-tap-highlight-color:transparent}body{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:1.428571429;color:#333;background-color:#fff}button,input,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit}a{color:#428bca;text-decoration:none}a:focus,a:hover{color:#2a6496;text-decoration:underline}a:focus{outline:dotted thin;outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}.d-scrollable{display:block;-webkit-overflow-scrolling:touch;-webkit-transform:translate3d(0,0,0)}.d-scrollable-h{overflow-x:auto}.d-scrollable-v{overflow-y:auto}.d-dialog-underlay{display:block;position:fixed;left:0;top:0;z-index:998;background:#fff;opacity:.5} \ No newline at end of file