Showing
49 changed files
with
2292 additions
and
106 deletions
... | @@ -2,6 +2,31 @@ | ... | @@ -2,6 +2,31 @@ |
2 | pageEncoding="utf-8"%> | 2 | pageEncoding="utf-8"%> |
3 | <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> | 3 | <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> |
4 | <%@ page isELIgnored ="false" %> | 4 | <%@ page isELIgnored ="false" %> |
5 | +<% | ||
6 | +String path = request.getContextPath(); | ||
7 | +String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; | ||
8 | +%> | ||
9 | +<script type="text/javascript"> | ||
10 | +var sessionId = "<%=request.getSession().getId()%>"; | ||
11 | +var rootUrl ="<%=basePath%>"; | ||
12 | +</script> | ||
13 | + | ||
14 | +<style> | ||
15 | +.importButton { | ||
16 | + background: rgba(0, 0, 0, 0) url("css/default/images/portal/import.png") repeat-x scroll 0 0 / auto 100% !important; | ||
17 | + height: 30px; | ||
18 | + min-width: 70px; | ||
19 | + padding: 0 5px; | ||
20 | +} | ||
21 | + | ||
22 | +#btn-brand-import{ | ||
23 | + float: left; | ||
24 | +} | ||
25 | +#btn-brand-import .uploadify-queue{ | ||
26 | + display: inline-block; | ||
27 | +} | ||
28 | +</style> | ||
29 | + | ||
5 | <!-- 页面都为div 页面不要使用id 使用class选择 class命名规范:crm(系统名)-accountset(模块名)-XXX(功能名) --> | 30 | <!-- 页面都为div 页面不要使用id 使用class选择 class命名规范:crm(系统名)-accountset(模块名)-XXX(功能名) --> |
6 | <div class="data-brand"> | 31 | <div class="data-brand"> |
7 | <div class="north rs-navi" data-options="region:'north',border:false"> | 32 | <div class="north rs-navi" data-options="region:'north',border:false"> |
... | @@ -38,4 +63,7 @@ | ... | @@ -38,4 +63,7 @@ |
38 | </form> | 63 | </form> |
39 | </div> | 64 | </div> |
40 | </div> | 65 | </div> |
41 | -<script type="text/javascript">require(["brand/index"],function(brand){new brand;});</script> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
66 | +<script type="text/javascript"> | ||
67 | + require(["brand/index"],function(fn){ | ||
68 | + fn(sessionId,rootUrl);}); | ||
69 | +</script> | ||
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -14,4 +14,4 @@ | ... | @@ -14,4 +14,4 @@ |
14 | 14 | ||
15 | </div> | 15 | </div> |
16 | </div> | 16 | </div> |
17 | -<script type="text/javascript">require(["role/index"],function(Role){new Role();});</script> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
17 | +<script type="text/javascript">require(["role/index"],function(Role){new Role('a','b');});</script> | ||
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
1 | +/** | ||
2 | + * Class类定义 | ||
3 | + */ | ||
4 | +define(function () { | ||
5 | + return function () { | ||
6 | + var superClass = null; | ||
7 | + var options = {}; | ||
8 | + var prototype = {}; | ||
9 | + for (var i = 0; i < arguments.length; i++) { | ||
10 | + if (typeof arguments[i] === "function") { | ||
11 | + superClass = arguments[i].prototype; | ||
12 | + } else if (typeof arguments[i] === "object") { | ||
13 | + options = arguments[i]; | ||
14 | + } | ||
15 | + } | ||
16 | + if (superClass) { | ||
17 | + prototype = superClass; | ||
18 | + for (var m in options) { | ||
19 | + if (prototype.hasOwnProperty(m)) { | ||
20 | + if (prototype[m] instanceof Array) { | ||
21 | + prototype[m].push(options[m]); | ||
22 | + } else { | ||
23 | + var array = [prototype[m]]; | ||
24 | + array.push(options[m]); | ||
25 | + prototype[m] = array; | ||
26 | + } | ||
27 | + } else { | ||
28 | + prototype[m] = options[m]; | ||
29 | + } | ||
30 | + } | ||
31 | + } else { | ||
32 | + for (var m in options) { | ||
33 | + prototype[m] = options[m]; | ||
34 | + } | ||
35 | + } | ||
36 | + var currentClass = function () { | ||
37 | + this.invokeMethod("variable", arguments); | ||
38 | + this.invokeMethod("initialize", arguments); | ||
39 | + this.invokeMethod("handler", arguments); | ||
40 | + }; | ||
41 | + currentClass.prototype = prototype; | ||
42 | + currentClass.prototype.invokeMethod = function (name, args) { | ||
43 | + var methods = this.getProperty(name); | ||
44 | + if (methods) { | ||
45 | + if (methods instanceof Array) { | ||
46 | + for (var i = 0; i < methods.length; i++) { | ||
47 | + execMethod(this, methods[i]); | ||
48 | + } | ||
49 | + } else { | ||
50 | + execMethod(this, methods); | ||
51 | + } | ||
52 | + } | ||
53 | + function execMethod(inst, method) { | ||
54 | + if (typeof method === "function") { | ||
55 | + method.apply(inst, args); | ||
56 | + } else { | ||
57 | + this.log(name + "is not function"); | ||
58 | + } | ||
59 | + } | ||
60 | + }; | ||
61 | + /** | ||
62 | + * 添加属性 | ||
63 | + * @param name | ||
64 | + * @param prop | ||
65 | + */ | ||
66 | + currentClass.prototype.setProperty = function (name, prop) { | ||
67 | + var tempProp = this.getProperty(name); | ||
68 | + tempProp = prop; | ||
69 | + }; | ||
70 | + /** | ||
71 | + * 追加属性 | ||
72 | + * @param name | ||
73 | + * @param prop | ||
74 | + */ | ||
75 | + currentClass.prototype.appendProperty = function (name, prop) { | ||
76 | + var tempProp = this.getProperty(name); | ||
77 | + if (tempProp) { | ||
78 | + if (methods instanceof Array) { | ||
79 | + tempProp.push(prop); | ||
80 | + } else { | ||
81 | + tempProp = prop; | ||
82 | + } | ||
83 | + } | ||
84 | + }; | ||
85 | + /** | ||
86 | + * 按名称得到当前属性 | ||
87 | + * @param name | ||
88 | + * @returns {*} | ||
89 | + */ | ||
90 | + currentClass.prototype.getProperty = function (name) { | ||
91 | + var tempProp; | ||
92 | + for (prop in this) { | ||
93 | + if (prop == name) { | ||
94 | + tempProp = this[prop]; | ||
95 | + break; | ||
96 | + } | ||
97 | + } | ||
98 | + return tempProp; | ||
99 | + }; | ||
100 | + /** | ||
101 | + * 向控制台输出信息 | ||
102 | + * @param info | ||
103 | + */ | ||
104 | + currentClass.prototype.log = function (info) { | ||
105 | + if (info && console && console.log) { | ||
106 | + console.log(info); | ||
107 | + } | ||
108 | + }; | ||
109 | + return currentClass; | ||
110 | + } | ||
111 | +}); | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | +define(function(){if("undefined"==typeof window)return{load:function(e,t,n){n()}};var e=document.getElementsByTagName("head")[0],t=window.navigator.userAgent.match(/Trident\/([^ ;]*)|AppleWebKit\/([^ ;]*)|Opera\/([^ ;]*)|rv\:([^ ;]*)(.*?)Gecko\/([^ ;]*)|MSIE\s([^ ;]*)|AndroidWebKit\/([^ ;]*)/)||0,n=!1,r=!0;t[1]||t[7]?n=parseInt(t[1])<6||parseInt(t[7])<=9:t[2]||t[8]?r=!1:t[4]&&(n=parseInt(t[4])<18);var o={};o.pluginBuilder="./css-builder";var a,i,s,l=function(){a=document.createElement("style"),e.appendChild(a),i=a.styleSheet||a.sheet},u=0,d=[],c=function(e){u++,32==u&&(l(),u=0),i.addImport(e),a.onload=function(){f()}},f=function(){s();var e=d.shift();return e?(s=e[1],void c(e[0])):void(s=null)},h=function(e,t){if(i&&i.addImport||l(),i&&i.addImport)s?d.push([e,t]):(c(e),s=t);else{a.textContent='@import "'+e+'";';var n=setInterval(function(){try{a.sheet.cssRules,clearInterval(n),t()}catch(e){}},10)}},p=function(t,n){var o=document.createElement("link");if(o.type="text/css",o.rel="stylesheet",r)o.onload=function(){o.onload=function(){},setTimeout(n,7)};else var a=setInterval(function(){for(var e=0;e<document.styleSheets.length;e++){var t=document.styleSheets[e];if(t.href==o.href)return clearInterval(a),n()}},10);o.href=t,e.appendChild(o)};return o.normalize=function(e,t){return".css"==e.substr(e.length-4,4)&&(e=e.substr(0,e.length-4)),t(e)},o.load=function(e,t,r){(n?h:p)(t.toUrl(e+".css"),r)},o}); | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | +/** | ||
2 | + * @license i18n 2.0.6 Copyright jQuery Foundation and other contributors. | ||
3 | + * Released under MIT license, http://github.com/requirejs/i18n/LICENSE | ||
4 | + */ | ||
5 | +/*jslint regexp: true */ | ||
6 | +/*global require: false, navigator: false, define: false */ | ||
7 | + | ||
8 | +/** | ||
9 | + * This plugin handles i18n! prefixed modules. It does the following: | ||
10 | + * | ||
11 | + * 1) A regular module can have a dependency on an i18n bundle, but the regular | ||
12 | + * module does not want to specify what locale to load. So it just specifies | ||
13 | + * the top-level bundle, like 'i18n!nls/colors'. | ||
14 | + * | ||
15 | + * This plugin will load the i18n bundle at nls/colors, see that it is a root/master | ||
16 | + * bundle since it does not have a locale in its name. It will then try to find | ||
17 | + * the best match locale available in that master bundle, then request all the | ||
18 | + * locale pieces for that best match locale. For instance, if the locale is 'en-us', | ||
19 | + * then the plugin will ask for the 'en-us', 'en' and 'root' bundles to be loaded | ||
20 | + * (but only if they are specified on the master bundle). | ||
21 | + * | ||
22 | + * Once all the bundles for the locale pieces load, then it mixes in all those | ||
23 | + * locale pieces into each other, then finally sets the context.defined value | ||
24 | + * for the nls/colors bundle to be that mixed in locale. | ||
25 | + * | ||
26 | + * 2) A regular module specifies a specific locale to load. For instance, | ||
27 | + * i18n!nls/fr-fr/colors. In this case, the plugin needs to load the master bundle | ||
28 | + * first, at nls/colors, then figure out what the best match locale is for fr-fr, | ||
29 | + * since maybe only fr or just root is defined for that locale. Once that best | ||
30 | + * fit is found, all of its locale pieces need to have their bundles loaded. | ||
31 | + * | ||
32 | + * Once all the bundles for the locale pieces load, then it mixes in all those | ||
33 | + * locale pieces into each other, then finally sets the context.defined value | ||
34 | + * for the nls/fr-fr/colors bundle to be that mixed in locale. | ||
35 | + */ | ||
36 | +(function () { | ||
37 | + 'use strict'; | ||
38 | + | ||
39 | + //regexp for reconstructing the master bundle name from parts of the regexp match | ||
40 | + //nlsRegExp.exec('foo/bar/baz/nls/en-ca/foo') gives: | ||
41 | + //['foo/bar/baz/nls/en-ca/foo', 'foo/bar/baz/nls/', '/', '/', 'en-ca', 'foo'] | ||
42 | + //nlsRegExp.exec('foo/bar/baz/nls/foo') gives: | ||
43 | + //['foo/bar/baz/nls/foo', 'foo/bar/baz/nls/', '/', '/', 'foo', ''] | ||
44 | + //so, if match[5] is blank, it means this is the top bundle definition. | ||
45 | + var nlsRegExp = /(^.*(^|\/)nls(\/|$))([^\/]*)\/?([^\/]*)/; | ||
46 | + | ||
47 | + //Helper function to avoid repeating code. Lots of arguments in the | ||
48 | + //desire to stay functional and support RequireJS contexts without having | ||
49 | + //to know about the RequireJS contexts. | ||
50 | + function addPart(locale, master, needed, toLoad, prefix, suffix) { | ||
51 | + if (master[locale]) { | ||
52 | + needed.push(locale); | ||
53 | + if (master[locale] === true || master[locale] === 1) { | ||
54 | + toLoad.push(prefix + locale + '/' + suffix); | ||
55 | + } | ||
56 | + } | ||
57 | + } | ||
58 | + | ||
59 | + function addIfExists(req, locale, toLoad, prefix, suffix) { | ||
60 | + var fullName = prefix + locale + '/' + suffix; | ||
61 | + if (require._fileExists(req.toUrl(fullName + '.js'))) { | ||
62 | + toLoad.push(fullName); | ||
63 | + } | ||
64 | + } | ||
65 | + | ||
66 | + /** | ||
67 | + * Simple function to mix in properties from source into target, | ||
68 | + * but only if target does not already have a property of the same name. | ||
69 | + * This is not robust in IE for transferring methods that match | ||
70 | + * Object.prototype names, but the uses of mixin here seem unlikely to | ||
71 | + * trigger a problem related to that. | ||
72 | + */ | ||
73 | + function mixin(target, source, force) { | ||
74 | + var prop; | ||
75 | + for (prop in source) { | ||
76 | + if (source.hasOwnProperty(prop) && (!target.hasOwnProperty(prop) || force)) { | ||
77 | + target[prop] = source[prop]; | ||
78 | + } else if (typeof source[prop] === 'object') { | ||
79 | + if (!target[prop] && source[prop]) { | ||
80 | + target[prop] = {}; | ||
81 | + } | ||
82 | + mixin(target[prop], source[prop], force); | ||
83 | + } | ||
84 | + } | ||
85 | + } | ||
86 | + | ||
87 | + define(['module'], function (module) { | ||
88 | + var masterConfig = module.config ? module.config() : {}; | ||
89 | + | ||
90 | + return { | ||
91 | + version: '2.0.6', | ||
92 | + /** | ||
93 | + * Called when a dependency needs to be loaded. | ||
94 | + */ | ||
95 | + load: function (name, req, onLoad, config) { | ||
96 | + config = config || {}; | ||
97 | + | ||
98 | + if (config.locale) { | ||
99 | + masterConfig.locale = config.locale; | ||
100 | + } | ||
101 | + | ||
102 | + var masterName, | ||
103 | + match = nlsRegExp.exec(name), | ||
104 | + prefix = match[1], | ||
105 | + locale = match[4], | ||
106 | + suffix = match[5], | ||
107 | + parts = locale.split('-'), | ||
108 | + toLoad = [], | ||
109 | + value = {}, | ||
110 | + i, part, current = ''; | ||
111 | + | ||
112 | + //If match[5] is blank, it means this is the top bundle definition, | ||
113 | + //so it does not have to be handled. Locale-specific requests | ||
114 | + //will have a match[4] value but no match[5] | ||
115 | + if (match[5]) { | ||
116 | + //locale-specific bundle | ||
117 | + prefix = match[1]; | ||
118 | + masterName = prefix + suffix; | ||
119 | + } else { | ||
120 | + //Top-level bundle. | ||
121 | + masterName = name; | ||
122 | + suffix = match[4]; | ||
123 | + locale = masterConfig.locale; | ||
124 | + if (!locale) { | ||
125 | + locale = masterConfig.locale = | ||
126 | + typeof navigator === 'undefined' ? 'root' : | ||
127 | + ((navigator.languages && navigator.languages[0]) || | ||
128 | + navigator.language || | ||
129 | + navigator.userLanguage || 'root').toLowerCase(); | ||
130 | + } | ||
131 | + parts = locale.split('-'); | ||
132 | + } | ||
133 | + | ||
134 | + if (config.isBuild) { | ||
135 | + //Check for existence of all locale possible files and | ||
136 | + //require them if exist. | ||
137 | + toLoad.push(masterName); | ||
138 | + addIfExists(req, 'root', toLoad, prefix, suffix); | ||
139 | + for (i = 0; i < parts.length; i++) { | ||
140 | + part = parts[i]; | ||
141 | + current += (current ? '-' : '') + part; | ||
142 | + addIfExists(req, current, toLoad, prefix, suffix); | ||
143 | + } | ||
144 | + | ||
145 | + req(toLoad, function () { | ||
146 | + onLoad(); | ||
147 | + }); | ||
148 | + } else { | ||
149 | + //First, fetch the master bundle, it knows what locales are available. | ||
150 | + req([masterName], function (master) { | ||
151 | + //Figure out the best fit | ||
152 | + var needed = [], | ||
153 | + part; | ||
154 | + | ||
155 | + //Always allow for root, then do the rest of the locale parts. | ||
156 | + addPart('root', master, needed, toLoad, prefix, suffix); | ||
157 | + for (i = 0; i < parts.length; i++) { | ||
158 | + part = parts[i]; | ||
159 | + current += (current ? '-' : '') + part; | ||
160 | + addPart(current, master, needed, toLoad, prefix, suffix); | ||
161 | + } | ||
162 | + | ||
163 | + //Load all the parts missing. | ||
164 | + req(toLoad, function () { | ||
165 | + var i, partBundle, part; | ||
166 | + for (i = needed.length - 1; i > -1 && needed[i]; i--) { | ||
167 | + part = needed[i]; | ||
168 | + partBundle = master[part]; | ||
169 | + if (partBundle === true || partBundle === 1) { | ||
170 | + partBundle = req(prefix + part + '/' + suffix); | ||
171 | + } | ||
172 | + mixin(value, partBundle); | ||
173 | + } | ||
174 | + | ||
175 | + //All done, notify the loader. | ||
176 | + onLoad(value); | ||
177 | + }); | ||
178 | + }); | ||
179 | + } | ||
180 | + } | ||
181 | + }; | ||
182 | + }); | ||
183 | +}()); |
1 | +if ($.fn.pagination){ | ||
2 | + $.fn.pagination.defaults.beforePageText = 'Bladsy'; | ||
3 | + $.fn.pagination.defaults.afterPageText = 'Van {pages}'; | ||
4 | + $.fn.pagination.defaults.displayMsg = 'Wys (from) tot (to) van (total) items'; | ||
5 | +} | ||
6 | +if ($.fn.datagrid){ | ||
7 | + $.fn.datagrid.defaults.loadMsg = 'Verwerking, wag asseblief ...'; | ||
8 | +} | ||
9 | +if ($.fn.treegrid && $.fn.datagrid){ | ||
10 | + $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; | ||
11 | +} | ||
12 | +if ($.messager){ | ||
13 | + $.messager.defaults.ok = 'Ok'; | ||
14 | + $.messager.defaults.cancel = 'Die styl'; | ||
15 | +} | ||
16 | +$.map(['validatebox','textbox','filebox','searchbox', | ||
17 | + 'combo','combobox','combogrid','combotree', | ||
18 | + 'datebox','datetimebox','numberbox', | ||
19 | + 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ | ||
20 | + if ($.fn[plugin]){ | ||
21 | + $.fn[plugin].defaults.missingMessage = 'Die veld is verpligtend.'; | ||
22 | + } | ||
23 | +}); | ||
24 | +if ($.fn.validatebox){ | ||
25 | + $.fn.validatebox.defaults.rules.email.message = "Gee 'n geldige e-pos adres."; | ||
26 | + $.fn.validatebox.defaults.rules.url.message = "Gee 'n geldige URL nie."; | ||
27 | + $.fn.validatebox.defaults.rules.length.message = "Voer 'n waarde tussen {0} en {1}."; | ||
28 | +} | ||
29 | +if ($.fn.calendar){ | ||
30 | + $.fn.calendar.defaults.weeks = ['S','M','T','W','T','F','S']; | ||
31 | + $.fn.calendar.defaults.months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; | ||
32 | +} | ||
33 | +if ($.fn.datebox){ | ||
34 | + $.fn.datebox.defaults.currentText = 'Vandag'; | ||
35 | + $.fn.datebox.defaults.closeText = 'Sluit'; | ||
36 | + $.fn.datebox.defaults.okText = 'Ok'; | ||
37 | +} | ||
38 | +if ($.fn.datetimebox && $.fn.datebox){ | ||
39 | + $.extend($.fn.datetimebox.defaults,{ | ||
40 | + currentText: $.fn.datebox.defaults.currentText, | ||
41 | + closeText: $.fn.datebox.defaults.closeText, | ||
42 | + okText: $.fn.datebox.defaults.okText | ||
43 | + }); | ||
44 | +} |
1 | +if ($.fn.pagination){ | ||
2 | + $.fn.pagination.defaults.beforePageText = 'Էջ'; | ||
3 | + $.fn.pagination.defaults.afterPageText = 'ից {pages}'; | ||
4 | + $.fn.pagination.defaults.displayMsg = 'Դիտել {from}-ից {to}-ը {total} գրառումից'; | ||
5 | +} | ||
6 | +if ($.fn.datagrid){ | ||
7 | + $.fn.datagrid.defaults.loadMsg = 'Մշակվում է, խնդրում ենք սպասել ...'; | ||
8 | +} | ||
9 | +if ($.fn.treegrid && $.fn.datagrid){ | ||
10 | + $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; | ||
11 | +} | ||
12 | +if ($.messager){ | ||
13 | + $.messager.defaults.ok = 'Այո'; | ||
14 | + $.messager.defaults.cancel = 'Փակել'; | ||
15 | +} | ||
16 | +$.map(['validatebox','textbox','filebox','searchbox', | ||
17 | + 'combo','combobox','combogrid','combotree', | ||
18 | + 'datebox','datetimebox','numberbox', | ||
19 | + 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ | ||
20 | + if ($.fn[plugin]){ | ||
21 | + $.fn[plugin].defaults.missingMessage = 'Այս դաշտը պարտադիր է.'; | ||
22 | + } | ||
23 | +}); | ||
24 | +if ($.fn.validatebox){ | ||
25 | + $.fn.validatebox.defaults.rules.email.message = 'Խնդրում ենք մուտքագրել գործող e-mail հասցե.'; | ||
26 | + $.fn.validatebox.defaults.rules.url.message = 'Խնդրում ենք մուտքագրել գործող URL.'; | ||
27 | + $.fn.validatebox.defaults.rules.length.message = 'Խնդրում ենք մուտքագրել արժեք {0} {1}.'; | ||
28 | + $.fn.validatebox.defaults.rules.remote.message = 'Խնդրում ենք ուղղել այս դաշտը.'; | ||
29 | +} | ||
30 | +if ($.fn.calendar){ | ||
31 | + $.fn.calendar.defaults.firstDay = 1; | ||
32 | + $.fn.calendar.defaults.weeks = ['Կ.','Ե.','Ե.','Չ.','Հ.','Ու.','Շ.']; | ||
33 | + $.fn.calendar.defaults.months = ['Հունվար', 'Փետրվար', 'Մարտ', 'Ապրիլ', 'Մայիս', 'Հունիս', 'Հուլիս', 'Օգոստոս', 'Սեպտեմբեր', 'Հոկտեմբեր', 'Նոյեմբեր', 'Դեկտեմբեր']; | ||
34 | +} | ||
35 | +if ($.fn.datebox){ | ||
36 | + $.fn.datebox.defaults.currentText = 'Այսօր'; | ||
37 | + $.fn.datebox.defaults.closeText = 'Փակել'; | ||
38 | + $.fn.datebox.defaults.okText = 'Այո'; | ||
39 | +} | ||
40 | +if ($.fn.datetimebox && $.fn.datebox){ | ||
41 | + $.extend($.fn.datetimebox.defaults,{ | ||
42 | + currentText: $.fn.datebox.defaults.currentText, | ||
43 | + closeText: $.fn.datebox.defaults.closeText, | ||
44 | + okText: $.fn.datebox.defaults.okText | ||
45 | + }); | ||
46 | +} |
1 | +if ($.fn.pagination){ | ||
2 | + $.fn.pagination.defaults.beforePageText = 'صفحة'; | ||
3 | + $.fn.pagination.defaults.afterPageText = 'من {pages}'; | ||
4 | + $.fn.pagination.defaults.displayMsg = 'عرض {from} إلى {to} من {total} عنصر'; | ||
5 | +} | ||
6 | +if ($.fn.datagrid){ | ||
7 | + $.fn.datagrid.defaults.loadMsg = 'معالجة, الرجاء الإنتظار ...'; | ||
8 | +} | ||
9 | +if ($.fn.treegrid && $.fn.datagrid){ | ||
10 | + $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; | ||
11 | +} | ||
12 | +if ($.messager){ | ||
13 | + $.messager.defaults.ok = 'موافق'; | ||
14 | + $.messager.defaults.cancel = 'إلغاء'; | ||
15 | +} | ||
16 | +$.map(['validatebox','textbox','filebox','searchbox', | ||
17 | + 'combo','combobox','combogrid','combotree', | ||
18 | + 'datebox','datetimebox','numberbox', | ||
19 | + 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ | ||
20 | + if ($.fn[plugin]){ | ||
21 | + $.fn[plugin].defaults.missingMessage = 'هذا الحقل مطلوب.'; | ||
22 | + } | ||
23 | +}); | ||
24 | +if ($.fn.validatebox){ | ||
25 | + $.fn.validatebox.defaults.rules.email.message = 'الرجاء إدخال بريد إلكتروني صحيح.'; | ||
26 | + $.fn.validatebox.defaults.rules.url.message = 'الرجاء إدخال رابط صحيح.'; | ||
27 | + $.fn.validatebox.defaults.rules.length.message = 'الرجاء إدخال قيمة بين {0} و {1}.'; | ||
28 | + $.fn.validatebox.defaults.rules.remote.message = 'الرجاء التأكد من الحقل.'; | ||
29 | +} | ||
30 | +if ($.fn.calendar){ | ||
31 | + $.fn.calendar.defaults.weeks = ['S','M','T','W','T','F','S']; | ||
32 | + $.fn.calendar.defaults.months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; | ||
33 | +} | ||
34 | +if ($.fn.datebox){ | ||
35 | + $.fn.datebox.defaults.currentText = 'اليوم'; | ||
36 | + $.fn.datebox.defaults.closeText = 'إغلاق'; | ||
37 | + $.fn.datebox.defaults.okText = 'موافق'; | ||
38 | +} | ||
39 | +if ($.fn.datetimebox && $.fn.datebox){ | ||
40 | + $.extend($.fn.datetimebox.defaults,{ | ||
41 | + currentText: $.fn.datebox.defaults.currentText, | ||
42 | + closeText: $.fn.datebox.defaults.closeText, | ||
43 | + okText: $.fn.datebox.defaults.okText | ||
44 | + }); | ||
45 | +} |
1 | +if ($.fn.pagination){ | ||
2 | + $.fn.pagination.defaults.beforePageText = 'Страница'; | ||
3 | + $.fn.pagination.defaults.afterPageText = 'от {pages}'; | ||
4 | + $.fn.pagination.defaults.displayMsg = 'Показани {from} за {to} от {total} продукти'; | ||
5 | +} | ||
6 | +if ($.fn.datagrid){ | ||
7 | + $.fn.datagrid.defaults.loadMsg = 'Обработка, моля изчакайте ...'; | ||
8 | +} | ||
9 | +if ($.fn.treegrid && $.fn.datagrid){ | ||
10 | + $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; | ||
11 | +} | ||
12 | +if ($.messager){ | ||
13 | + $.messager.defaults.ok = 'Добре'; | ||
14 | + $.messager.defaults.cancel = 'Задрасквам'; | ||
15 | +} | ||
16 | +$.map(['validatebox','textbox','filebox','searchbox', | ||
17 | + 'combo','combobox','combogrid','combotree', | ||
18 | + 'datebox','datetimebox','numberbox', | ||
19 | + 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ | ||
20 | + if ($.fn[plugin]){ | ||
21 | + $.fn[plugin].defaults.missingMessage = 'Това поле е задължително.'; | ||
22 | + } | ||
23 | +}); | ||
24 | +if ($.fn.validatebox){ | ||
25 | + $.fn.validatebox.defaults.rules.email.message = 'Моля, въведете валиден имейл адрес.'; | ||
26 | + $.fn.validatebox.defaults.rules.url.message = 'Моля въведете валиден URL.'; | ||
27 | + $.fn.validatebox.defaults.rules.length.message = 'Моля, въведете стойност между {0} и {1}.'; | ||
28 | +} | ||
29 | +if ($.fn.calendar){ | ||
30 | + $.fn.calendar.defaults.weeks = ['S','M','T','W','T','F','S']; | ||
31 | + $.fn.calendar.defaults.months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; | ||
32 | +} | ||
33 | +if ($.fn.datebox){ | ||
34 | + $.fn.datebox.defaults.currentText = 'Днес'; | ||
35 | + $.fn.datebox.defaults.closeText = 'Близо'; | ||
36 | + $.fn.datebox.defaults.okText = 'Добре'; | ||
37 | +} | ||
38 | +if ($.fn.datetimebox && $.fn.datebox){ | ||
39 | + $.extend($.fn.datetimebox.defaults,{ | ||
40 | + currentText: $.fn.datebox.defaults.currentText, | ||
41 | + closeText: $.fn.datebox.defaults.closeText, | ||
42 | + okText: $.fn.datebox.defaults.okText | ||
43 | + }); | ||
44 | +} |
1 | +if ($.fn.pagination){ | ||
2 | + $.fn.pagination.defaults.beforePageText = 'Pàgina'; | ||
3 | + $.fn.pagination.defaults.afterPageText = 'de {pages}'; | ||
4 | + $.fn.pagination.defaults.displayMsg = "Veient {from} a {to} de {total} d'articles"; | ||
5 | +} | ||
6 | +if ($.fn.datagrid){ | ||
7 | + $.fn.datagrid.defaults.loadMsg = 'Elaboració, si us plau esperi ...'; | ||
8 | +} | ||
9 | +if ($.fn.treegrid && $.fn.datagrid){ | ||
10 | + $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; | ||
11 | +} | ||
12 | +if ($.messager){ | ||
13 | + $.messager.defaults.ok = 'Ok'; | ||
14 | + $.messager.defaults.cancel = 'Cancel'; | ||
15 | +} | ||
16 | +$.map(['validatebox','textbox','filebox','searchbox', | ||
17 | + 'combo','combobox','combogrid','combotree', | ||
18 | + 'datebox','datetimebox','numberbox', | ||
19 | + 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ | ||
20 | + if ($.fn[plugin]){ | ||
21 | + $.fn[plugin].defaults.missingMessage = 'Aquest camp és obligatori.'; | ||
22 | + } | ||
23 | +}); | ||
24 | +if ($.fn.validatebox){ | ||
25 | + $.fn.validatebox.defaults.rules.email.message = 'Introduïu una adreça de correu electrònic vàlida.'; | ||
26 | + $.fn.validatebox.defaults.rules.url.message = 'Si us plau, introduïu un URL vàlida.'; | ||
27 | + $.fn.validatebox.defaults.rules.length.message = 'Si us plau, introduïu un valor entre {0} i {1}.'; | ||
28 | +} | ||
29 | +if ($.fn.calendar){ | ||
30 | + $.fn.calendar.defaults.weeks = ['S','M','T','W','T','F','S']; | ||
31 | + $.fn.calendar.defaults.months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; | ||
32 | +} | ||
33 | +if ($.fn.datebox){ | ||
34 | + $.fn.datebox.defaults.currentText = 'Avui'; | ||
35 | + $.fn.datebox.defaults.closeText = 'Tancar'; | ||
36 | + $.fn.datebox.defaults.okText = 'Ok'; | ||
37 | +} | ||
38 | +if ($.fn.datetimebox && $.fn.datebox){ | ||
39 | + $.extend($.fn.datetimebox.defaults,{ | ||
40 | + currentText: $.fn.datebox.defaults.currentText, | ||
41 | + closeText: $.fn.datebox.defaults.closeText, | ||
42 | + okText: $.fn.datebox.defaults.okText | ||
43 | + }); | ||
44 | +} |
1 | +if ($.fn.pagination){ | ||
2 | + $.fn.pagination.defaults.beforePageText = 'Strana'; | ||
3 | + $.fn.pagination.defaults.afterPageText = 'z {pages}'; | ||
4 | + $.fn.pagination.defaults.displayMsg = 'Zobrazuji {from} do {to} z {total} položky'; | ||
5 | +} | ||
6 | +if ($.fn.datagrid){ | ||
7 | + $.fn.datagrid.defaults.loadMsg = 'Zpracování, čekejte prosím ...'; | ||
8 | +} | ||
9 | +if ($.fn.treegrid && $.fn.datagrid){ | ||
10 | + $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; | ||
11 | +} | ||
12 | +if ($.messager){ | ||
13 | + $.messager.defaults.ok = 'Ok'; | ||
14 | + $.messager.defaults.cancel = 'Zrušit'; | ||
15 | +} | ||
16 | +$.map(['validatebox','textbox','filebox','searchbox', | ||
17 | + 'combo','combobox','combogrid','combotree', | ||
18 | + 'datebox','datetimebox','numberbox', | ||
19 | + 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ | ||
20 | + if ($.fn[plugin]){ | ||
21 | + $.fn[plugin].defaults.missingMessage = 'Toto pole je vyžadováno.'; | ||
22 | + } | ||
23 | +}); | ||
24 | +if ($.fn.validatebox){ | ||
25 | + $.fn.validatebox.defaults.rules.email.message = 'Zadejte prosím platnou e-mailovou adresu.'; | ||
26 | + $.fn.validatebox.defaults.rules.url.message = 'Zadejte prosím platnou adresu URL.'; | ||
27 | + $.fn.validatebox.defaults.rules.length.message = 'Prosím, zadejte hodnotu mezi {0} a {1}.'; | ||
28 | +} | ||
29 | +if ($.fn.calendar){ | ||
30 | + $.fn.calendar.defaults.weeks = ['S','M','T','W','T','F','S']; | ||
31 | + $.fn.calendar.defaults.months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; | ||
32 | +} | ||
33 | +if ($.fn.datebox){ | ||
34 | + $.fn.datebox.defaults.currentText = 'Dnes'; | ||
35 | + $.fn.datebox.defaults.closeText = 'Zavřít'; | ||
36 | + $.fn.datebox.defaults.okText = 'Ok'; | ||
37 | +} | ||
38 | +if ($.fn.datetimebox && $.fn.datebox){ | ||
39 | + $.extend($.fn.datetimebox.defaults,{ | ||
40 | + currentText: $.fn.datebox.defaults.currentText, | ||
41 | + closeText: $.fn.datebox.defaults.closeText, | ||
42 | + okText: $.fn.datebox.defaults.okText | ||
43 | + }); | ||
44 | +} |
1 | +if ($.fn.pagination){ | ||
2 | + $.fn.pagination.defaults.beforePageText = 'Strana'; | ||
3 | + $.fn.pagination.defaults.afterPageText = 'z {pages}'; | ||
4 | + $.fn.pagination.defaults.displayMsg = 'Zobrazuji záznam {from} až {to} z {total}.'; | ||
5 | +} | ||
6 | +if ($.fn.datagrid){ | ||
7 | + $.fn.datagrid.defaults.loadMsg = 'Pracuji, čekejte prosím…'; | ||
8 | +} | ||
9 | +if ($.fn.treegrid && $.fn.datagrid){ | ||
10 | + $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; | ||
11 | +} | ||
12 | +if ($.messager){ | ||
13 | + $.messager.defaults.ok = 'Ok'; | ||
14 | + $.messager.defaults.cancel = 'Zrušit'; | ||
15 | +} | ||
16 | +$.map(['validatebox','textbox','filebox','searchbox', | ||
17 | + 'combo','combobox','combogrid','combotree', | ||
18 | + 'datebox','datetimebox','numberbox', | ||
19 | + 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ | ||
20 | + if ($.fn[plugin]){ | ||
21 | + $.fn[plugin].defaults.missingMessage = 'Toto pole je vyžadováno.'; | ||
22 | + } | ||
23 | +}); | ||
24 | +if ($.fn.validatebox){ | ||
25 | + $.fn.validatebox.defaults.rules.email.message = 'Zadejte, prosím, platnou e-mailovou adresu.'; | ||
26 | + $.fn.validatebox.defaults.rules.url.message = 'Zadejte, prosím, platnou adresu URL.'; | ||
27 | + $.fn.validatebox.defaults.rules.length.message = 'Zadejte, prosím, hodnotu mezi {0} a {1}.'; | ||
28 | +} | ||
29 | +if ($.fn.calendar){ | ||
30 | + $.fn.calendar.defaults.weeks = ['N','P','Ú','S','Č','P','S']; //neděle pondělí úterý středa čtvrtek pátek sobota | ||
31 | + $.fn.calendar.defaults.months = ['led', 'únr', 'bře', 'dub', 'kvě', 'čvn', 'čvc', 'srp', 'zář', 'říj', 'lis', 'pro']; //leden únor březen duben květen červen červenec srpen září říjen listopad prosinec | ||
32 | +} | ||
33 | +if ($.fn.datebox){ | ||
34 | + $.fn.datebox.defaults.currentText = 'Dnes'; | ||
35 | + $.fn.datebox.defaults.closeText = 'Zavřít'; | ||
36 | + $.fn.datebox.defaults.okText = 'Ok'; | ||
37 | +} | ||
38 | +if ($.fn.datetimebox && $.fn.datebox){ | ||
39 | + $.extend($.fn.datetimebox.defaults,{ | ||
40 | + currentText: $.fn.datebox.defaults.currentText, | ||
41 | + closeText: $.fn.datebox.defaults.closeText, | ||
42 | + okText: $.fn.datebox.defaults.okText | ||
43 | + }); | ||
44 | +} |
1 | +if ($.fn.pagination){ | ||
2 | + $.fn.pagination.defaults.beforePageText = 'Page'; | ||
3 | + $.fn.pagination.defaults.afterPageText = 'af {pages}'; | ||
4 | + $.fn.pagination.defaults.displayMsg = 'Viser {from} til {to} af {total} poster'; | ||
5 | +} | ||
6 | +if ($.fn.datagrid){ | ||
7 | + $.fn.datagrid.defaults.loadMsg = 'Behandling, vent venligst ...'; | ||
8 | +} | ||
9 | +if ($.fn.treegrid && $.fn.datagrid){ | ||
10 | + $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; | ||
11 | +} | ||
12 | +if ($.messager){ | ||
13 | + $.messager.defaults.ok = 'Ok'; | ||
14 | + $.messager.defaults.cancel = 'Annuller'; | ||
15 | +} | ||
16 | +$.map(['validatebox','textbox','filebox','searchbox', | ||
17 | + 'combo','combobox','combogrid','combotree', | ||
18 | + 'datebox','datetimebox','numberbox', | ||
19 | + 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ | ||
20 | + if ($.fn[plugin]){ | ||
21 | + $.fn[plugin].defaults.missingMessage = 'Dette felt er påkrævet.'; | ||
22 | + } | ||
23 | +}); | ||
24 | +if ($.fn.validatebox){ | ||
25 | + $.fn.validatebox.defaults.rules.email.message = 'Angiv en gyldig e-mail-adresse.'; | ||
26 | + $.fn.validatebox.defaults.rules.url.message = 'Angiv en gyldig webadresse.'; | ||
27 | + $.fn.validatebox.defaults.rules.length.message = 'Angiv en værdi mellem {0} og {1}.'; | ||
28 | +} | ||
29 | +if ($.fn.calendar){ | ||
30 | + $.fn.calendar.defaults.weeks = ['S','M','T','W','T','F','S']; | ||
31 | + $.fn.calendar.defaults.months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; | ||
32 | +} | ||
33 | +if ($.fn.datebox){ | ||
34 | + $.fn.datebox.defaults.currentText = 'I dag'; | ||
35 | + $.fn.datebox.defaults.closeText = 'Luk'; | ||
36 | + $.fn.datebox.defaults.okText = 'Ok'; | ||
37 | +} | ||
38 | +if ($.fn.datetimebox && $.fn.datebox){ | ||
39 | + $.extend($.fn.datetimebox.defaults,{ | ||
40 | + currentText: $.fn.datebox.defaults.currentText, | ||
41 | + closeText: $.fn.datebox.defaults.closeText, | ||
42 | + okText: $.fn.datebox.defaults.okText | ||
43 | + }); | ||
44 | +} |
1 | +if ($.fn.pagination){ | ||
2 | + $.fn.pagination.defaults.beforePageText = 'Seite'; | ||
3 | + $.fn.pagination.defaults.afterPageText = 'von {pages}'; | ||
4 | + $.fn.pagination.defaults.displayMsg = '{from} bis {to} von {total} Datensätzen'; | ||
5 | +} | ||
6 | +if ($.fn.datagrid){ | ||
7 | + $.fn.datagrid.defaults.loadMsg = 'Verarbeitung läuft, bitte warten ...'; | ||
8 | +} | ||
9 | +if ($.fn.treegrid && $.fn.datagrid){ | ||
10 | + $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; | ||
11 | +} | ||
12 | +if ($.messager){ | ||
13 | + $.messager.defaults.ok = 'OK'; | ||
14 | + $.messager.defaults.cancel = 'Abbruch'; | ||
15 | +} | ||
16 | +$.map(['validatebox','textbox','filebox','searchbox', | ||
17 | + 'combo','combobox','combogrid','combotree', | ||
18 | + 'datebox','datetimebox','numberbox', | ||
19 | + 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ | ||
20 | + if ($.fn[plugin]){ | ||
21 | + $.fn[plugin].defaults.missingMessage = 'Dieses Feld wird benötigt.'; | ||
22 | + } | ||
23 | +}); | ||
24 | +if ($.fn.validatebox){ | ||
25 | + $.fn.validatebox.defaults.rules.email.message = 'Bitte geben Sie eine gültige E-Mail-Adresse ein.'; | ||
26 | + $.fn.validatebox.defaults.rules.url.message = 'Bitte geben Sie eine gültige URL ein.'; | ||
27 | + $.fn.validatebox.defaults.rules.length.message = 'Bitte geben Sie einen Wert zwischen {0} und {1} ein.'; | ||
28 | +} | ||
29 | +if ($.fn.calendar){ | ||
30 | + $.fn.calendar.defaults.firstDay = 1; | ||
31 | + $.fn.calendar.defaults.weeks = ['S','M','D','M','D','F','S']; | ||
32 | + $.fn.calendar.defaults.months = ['Jan', 'Feb', 'Mär', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dez']; | ||
33 | +} | ||
34 | +if ($.fn.datebox){ | ||
35 | + $.fn.datebox.defaults.currentText = 'Heute'; | ||
36 | + $.fn.datebox.defaults.closeText = 'Schließen'; | ||
37 | + $.fn.datebox.defaults.okText = 'OK'; | ||
38 | + $.fn.datebox.defaults.formatter = function(date){ | ||
39 | + var y = date.getFullYear(); | ||
40 | + var m = date.getMonth()+1; | ||
41 | + var d = date.getDate(); | ||
42 | + return (d<10?('0'+d):d)+'.'+(m<10?('0'+m):m)+'.'+y; | ||
43 | + }; | ||
44 | + $.fn.datebox.defaults.parser = function(s){ | ||
45 | + if (!s) return new Date(); | ||
46 | + var ss = s.split('.'); | ||
47 | + var m = parseInt(ss[1],10); | ||
48 | + var d = parseInt(ss[0],10); | ||
49 | + var y = parseInt(ss[2],10); | ||
50 | + if (!isNaN(y) && !isNaN(m) && !isNaN(d)){ | ||
51 | + return new Date(y,m-1,d); | ||
52 | + } else { | ||
53 | + return new Date(); | ||
54 | + } | ||
55 | + }; | ||
56 | +} | ||
57 | +if ($.fn.datetimebox && $.fn.datebox){ | ||
58 | + $.extend($.fn.datetimebox.defaults,{ | ||
59 | + currentText: $.fn.datebox.defaults.currentText, | ||
60 | + closeText: $.fn.datebox.defaults.closeText, | ||
61 | + okText: $.fn.datebox.defaults.okText | ||
62 | + }); | ||
63 | +} |
1 | +if ($.fn.pagination){ | ||
2 | + $.fn.pagination.defaults.beforePageText = 'Σελίδα'; | ||
3 | + $.fn.pagination.defaults.afterPageText = 'από {pages}'; | ||
4 | + $.fn.pagination.defaults.displayMsg = 'Εμφάνιση {from} εώς {to} από {total} αντικείμενα'; | ||
5 | +} | ||
6 | +if ($.fn.datagrid){ | ||
7 | + $.fn.datagrid.defaults.loadMsg = 'Γίνεται Επεξεργασία, Παρακαλώ Περιμένετε ...'; | ||
8 | +} | ||
9 | +if ($.fn.treegrid && $.fn.datagrid){ | ||
10 | + $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; | ||
11 | +} | ||
12 | +if ($.messager){ | ||
13 | + $.messager.defaults.ok = 'Εντάξει'; | ||
14 | + $.messager.defaults.cancel = 'Άκυρο'; | ||
15 | +} | ||
16 | +$.map(['validatebox','textbox','filebox','searchbox', | ||
17 | + 'combo','combobox','combogrid','combotree', | ||
18 | + 'datebox','datetimebox','numberbox', | ||
19 | + 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ | ||
20 | + if ($.fn[plugin]){ | ||
21 | + $.fn[plugin].defaults.missingMessage = 'Το πεδίο είναι υποχρεωτικό.'; | ||
22 | + } | ||
23 | +}); | ||
24 | +if ($.fn.validatebox){ | ||
25 | + $.fn.validatebox.defaults.rules.email.message = 'Παρακαλώ εισάγετε σωστή Ηλ.Διεύθυνση.'; | ||
26 | + $.fn.validatebox.defaults.rules.url.message = 'Παρακαλώ εισάγετε σωστό σύνδεσμο.'; | ||
27 | + $.fn.validatebox.defaults.rules.length.message = 'Παρακαλώ εισάγετε τιμή μεταξύ {0} και {1}.'; | ||
28 | + $.fn.validatebox.defaults.rules.remote.message = 'Παρακαλώ διορθώστε αυτό το πεδίο.'; | ||
29 | +} | ||
30 | +if ($.fn.calendar){ | ||
31 | + $.fn.calendar.defaults.weeks = ['Κυρ','Δευ','Τρι','Τετ','Πεμ','Παρ','Σαβ']; | ||
32 | + $.fn.calendar.defaults.months = ['Ιαν', 'Φεβ', 'Μαρ', 'Απρ', 'Μαϊ', 'Ιου', 'Ιου', 'Αυγ', 'Σεπ', 'Οκτ', 'Νοε', 'Δεκ']; | ||
33 | +} | ||
34 | +if ($.fn.datebox){ | ||
35 | + $.fn.datebox.defaults.currentText = 'Σήμερα'; | ||
36 | + $.fn.datebox.defaults.closeText = 'Κλείσιμο'; | ||
37 | + $.fn.datebox.defaults.okText = 'Εντάξει'; | ||
38 | +} | ||
39 | +if ($.fn.datetimebox && $.fn.datebox){ | ||
40 | + $.extend($.fn.datetimebox.defaults,{ | ||
41 | + currentText: $.fn.datebox.defaults.currentText, | ||
42 | + closeText: $.fn.datebox.defaults.closeText, | ||
43 | + okText: $.fn.datebox.defaults.okText | ||
44 | + }); | ||
45 | +} |
1 | +if ($.fn.pagination){ | ||
2 | + $.fn.pagination.defaults.beforePageText = 'Page'; | ||
3 | + $.fn.pagination.defaults.afterPageText = 'of {pages}'; | ||
4 | + $.fn.pagination.defaults.displayMsg = 'Displaying {from} to {to} of {total} items'; | ||
5 | +} | ||
6 | +if ($.fn.datagrid){ | ||
7 | + $.fn.datagrid.defaults.loadMsg = 'Processing, please wait ...'; | ||
8 | +} | ||
9 | +if ($.fn.treegrid && $.fn.datagrid){ | ||
10 | + $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; | ||
11 | +} | ||
12 | +if ($.messager){ | ||
13 | + $.messager.defaults.ok = 'Ok'; | ||
14 | + $.messager.defaults.cancel = 'Cancel'; | ||
15 | +} | ||
16 | +$.map(['validatebox','textbox','filebox','searchbox', | ||
17 | + 'combo','combobox','combogrid','combotree', | ||
18 | + 'datebox','datetimebox','numberbox', | ||
19 | + 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ | ||
20 | + if ($.fn[plugin]){ | ||
21 | + $.fn[plugin].defaults.missingMessage = 'This field is required.'; | ||
22 | + } | ||
23 | +}); | ||
24 | +if ($.fn.validatebox){ | ||
25 | + $.fn.validatebox.defaults.rules.email.message = 'Please enter a valid email address.'; | ||
26 | + $.fn.validatebox.defaults.rules.url.message = 'Please enter a valid URL.'; | ||
27 | + $.fn.validatebox.defaults.rules.length.message = 'Please enter a value between {0} and {1}.'; | ||
28 | + $.fn.validatebox.defaults.rules.remote.message = 'Please fix this field.'; | ||
29 | +} | ||
30 | +if ($.fn.calendar){ | ||
31 | + $.fn.calendar.defaults.weeks = ['S','M','T','W','T','F','S']; | ||
32 | + $.fn.calendar.defaults.months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; | ||
33 | +} | ||
34 | +if ($.fn.datebox){ | ||
35 | + $.fn.datebox.defaults.currentText = 'Today'; | ||
36 | + $.fn.datebox.defaults.closeText = 'Close'; | ||
37 | + $.fn.datebox.defaults.okText = 'Ok'; | ||
38 | +} | ||
39 | +if ($.fn.datetimebox && $.fn.datebox){ | ||
40 | + $.extend($.fn.datetimebox.defaults,{ | ||
41 | + currentText: $.fn.datebox.defaults.currentText, | ||
42 | + closeText: $.fn.datebox.defaults.closeText, | ||
43 | + okText: $.fn.datebox.defaults.okText | ||
44 | + }); | ||
45 | +} |
1 | +if ($.fn.pagination){ | ||
2 | + $.fn.pagination.defaults.beforePageText = 'Página'; | ||
3 | + $.fn.pagination.defaults.afterPageText = 'de {pages}'; | ||
4 | + $.fn.pagination.defaults.displayMsg = 'Mostrando {from} a {to} de {total} elementos'; | ||
5 | +} | ||
6 | +if ($.fn.datagrid){ | ||
7 | + $.fn.datagrid.defaults.loadMsg = 'Procesando, por favor espere ...'; | ||
8 | +} | ||
9 | +if ($.fn.treegrid && $.fn.datagrid){ | ||
10 | + $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; | ||
11 | +} | ||
12 | +if ($.messager){ | ||
13 | + $.messager.defaults.ok = 'Aceptar'; | ||
14 | + $.messager.defaults.cancel = 'Cancelar'; | ||
15 | +} | ||
16 | +$.map(['validatebox','textbox','filebox','searchbox', | ||
17 | + 'combo','combobox','combogrid','combotree', | ||
18 | + 'datebox','datetimebox','numberbox', | ||
19 | + 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ | ||
20 | + if ($.fn[plugin]){ | ||
21 | + $.fn[plugin].defaults.missingMessage = 'Este campo es obligatorio.'; | ||
22 | + } | ||
23 | +}); | ||
24 | +if ($.fn.validatebox){ | ||
25 | + $.fn.validatebox.defaults.rules.email.message = 'Por favor ingrese una dirección de correo válida.'; | ||
26 | + $.fn.validatebox.defaults.rules.url.message = 'Por favor ingrese una URL válida.'; | ||
27 | + $.fn.validatebox.defaults.rules.length.message = 'Por favor ingrese un valor entre {0} y {1}.'; | ||
28 | + $.fn.validatebox.defaults.rules.remote.message = 'Por favor corrija este campo.'; | ||
29 | +} | ||
30 | +if ($.fn.calendar){ | ||
31 | + $.fn.calendar.defaults.weeks = ['Do','Lu','Ma','Mi','Ju','Vi','Sá']; | ||
32 | + $.fn.calendar.defaults.months = ['Ene', 'Feb', 'Mar', 'Abr', 'May', 'Jun', 'Jul', 'Ago', 'Sep', 'Oct', 'Nov', 'Dic']; | ||
33 | +} | ||
34 | +if ($.fn.datebox){ | ||
35 | + $.fn.datebox.defaults.currentText = 'Hoy'; | ||
36 | + $.fn.datebox.defaults.closeText = 'Cerrar'; | ||
37 | + $.fn.datebox.defaults.okText = 'Aceptar'; | ||
38 | +} | ||
39 | +if ($.fn.datetimebox && $.fn.datebox){ | ||
40 | + $.extend($.fn.datetimebox.defaults,{ | ||
41 | + currentText: $.fn.datebox.defaults.currentText, | ||
42 | + closeText: $.fn.datebox.defaults.closeText, | ||
43 | + okText: $.fn.datebox.defaults.okText | ||
44 | + }); | ||
45 | +} |
1 | +if ($.fn.pagination){ | ||
2 | + $.fn.pagination.defaults.beforePageText = 'Page'; | ||
3 | + $.fn.pagination.defaults.afterPageText = 'de {pages}'; | ||
4 | + $.fn.pagination.defaults.displayMsg = 'Affichage de {from} et {to} au {total} des articles'; | ||
5 | +} | ||
6 | +if ($.fn.datagrid){ | ||
7 | + $.fn.datagrid.defaults.loadMsg = "Traitement, s'il vous plaît patienter ..."; | ||
8 | +} | ||
9 | +if ($.fn.treegrid && $.fn.datagrid){ | ||
10 | + $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; | ||
11 | +} | ||
12 | +if ($.messager){ | ||
13 | + $.messager.defaults.ok = 'Ok'; | ||
14 | + $.messager.defaults.cancel = 'Annuler'; | ||
15 | +} | ||
16 | +$.map(['validatebox','textbox','filebox','searchbox', | ||
17 | + 'combo','combobox','combogrid','combotree', | ||
18 | + 'datebox','datetimebox','numberbox', | ||
19 | + 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ | ||
20 | + if ($.fn[plugin]){ | ||
21 | + $.fn[plugin].defaults.missingMessage = 'Ce champ est obligatoire.'; | ||
22 | + } | ||
23 | +}); | ||
24 | +if ($.fn.validatebox){ | ||
25 | + $.fn.validatebox.defaults.rules.email.message = "S'il vous plaît entrer une adresse email valide."; | ||
26 | + $.fn.validatebox.defaults.rules.url.message = "S'il vous plaît entrer une URL valide."; | ||
27 | + $.fn.validatebox.defaults.rules.length.message = "S'il vous plaît entrez une valeur comprise entre {0} et {1}."; | ||
28 | +} | ||
29 | +if ($.fn.calendar){ | ||
30 | + $.fn.calendar.defaults.weeks = ['S','M','T','W','T','F','S']; | ||
31 | + $.fn.calendar.defaults.months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; | ||
32 | +} | ||
33 | +if ($.fn.datebox){ | ||
34 | + $.fn.datebox.defaults.currentText = "Aujourd'hui"; | ||
35 | + $.fn.datebox.defaults.closeText = 'Fermer'; | ||
36 | + $.fn.datebox.defaults.okText = 'Ok'; | ||
37 | +} | ||
38 | +if ($.fn.datetimebox && $.fn.datebox){ | ||
39 | + $.extend($.fn.datetimebox.defaults,{ | ||
40 | + currentText: $.fn.datebox.defaults.currentText, | ||
41 | + closeText: $.fn.datebox.defaults.closeText, | ||
42 | + okText: $.fn.datebox.defaults.okText | ||
43 | + }); | ||
44 | +} |
1 | +if ($.fn.pagination){ | ||
2 | + $.fn.pagination.defaults.beforePageText = 'Pagina'; | ||
3 | + $.fn.pagination.defaults.afterPageText = 'di {pages}'; | ||
4 | + $.fn.pagination.defaults.displayMsg = 'Visualizzazione {from} a {to} di {total} elementi'; | ||
5 | +} | ||
6 | +if ($.fn.datagrid){ | ||
7 | + $.fn.datagrid.defaults.loadMsg = 'In lavorazione, attendere ...'; | ||
8 | +} | ||
9 | +if ($.fn.treegrid && $.fn.datagrid){ | ||
10 | + $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; | ||
11 | +} | ||
12 | +if ($.messager){ | ||
13 | + $.messager.defaults.ok = 'Ok'; | ||
14 | + $.messager.defaults.cancel = 'Annulla'; | ||
15 | +} | ||
16 | +$.map(['validatebox','textbox','filebox','searchbox', | ||
17 | + 'combo','combobox','combogrid','combotree', | ||
18 | + 'datebox','datetimebox','numberbox', | ||
19 | + 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ | ||
20 | + if ($.fn[plugin]){ | ||
21 | + $.fn[plugin].defaults.missingMessage = 'Questo campo è richiesto.'; | ||
22 | + } | ||
23 | +}); | ||
24 | +if ($.fn.validatebox){ | ||
25 | + $.fn.validatebox.defaults.rules.email.message = 'Inserisci un indirizzo email valido.'; | ||
26 | + $.fn.validatebox.defaults.rules.url.message = 'Inserisci un URL valido.'; | ||
27 | + $.fn.validatebox.defaults.rules.length.message = 'Inserisci un valore tra {0} e {1}.'; | ||
28 | + $.fn.validatebox.defaults.rules.remote.message = 'Aggiusta questo campo.'; | ||
29 | +} | ||
30 | +if ($.fn.calendar){ | ||
31 | + $.fn.calendar.defaults.weeks = ['D','L','M','M','G','V','S']; | ||
32 | + $.fn.calendar.defaults.months = ['Gen', 'Feb', 'Mar', 'Apr', 'Mag', 'Giu', 'Lug', 'Ago', 'Set', 'Ott', 'Nov', 'Dic']; | ||
33 | +} | ||
34 | +if ($.fn.datebox){ | ||
35 | + $.fn.datebox.defaults.currentText = 'Oggi'; | ||
36 | + $.fn.datebox.defaults.closeText = 'Chiudi'; | ||
37 | + $.fn.datebox.defaults.okText = 'Ok'; | ||
38 | +} | ||
39 | +if ($.fn.datetimebox && $.fn.datebox){ | ||
40 | + $.extend($.fn.datetimebox.defaults,{ | ||
41 | + currentText: $.fn.datebox.defaults.currentText, | ||
42 | + closeText: $.fn.datebox.defaults.closeText, | ||
43 | + okText: $.fn.datebox.defaults.okText | ||
44 | + }); | ||
45 | +} |
1 | +if ($.fn.pagination){ | ||
2 | + $.fn.pagination.defaults.beforePageText = 'ページ'; | ||
3 | + $.fn.pagination.defaults.afterPageText = '{pages} 中'; | ||
4 | + $.fn.pagination.defaults.displayMsg = '全 {total} アイテム中 {from} から {to} を表示中'; | ||
5 | +} | ||
6 | +if ($.fn.datagrid){ | ||
7 | + $.fn.datagrid.defaults.loadMsg = '処理中です。少々お待ちください...'; | ||
8 | +} | ||
9 | +if ($.fn.treegrid && $.fn.datagrid){ | ||
10 | + $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; | ||
11 | +} | ||
12 | +if ($.messager){ | ||
13 | + $.messager.defaults.ok = 'OK'; | ||
14 | + $.messager.defaults.cancel = 'キャンセル'; | ||
15 | +} | ||
16 | +$.map(['validatebox','textbox','filebox','searchbox', | ||
17 | + 'combo','combobox','combogrid','combotree', | ||
18 | + 'datebox','datetimebox','numberbox', | ||
19 | + 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ | ||
20 | + if ($.fn[plugin]){ | ||
21 | + $.fn[plugin].defaults.missingMessage = '入力は必須です。'; | ||
22 | + } | ||
23 | +}); | ||
24 | +if ($.fn.validatebox){ | ||
25 | + $.fn.validatebox.defaults.rules.email.message = '正しいメールアドレスを入力してください。'; | ||
26 | + $.fn.validatebox.defaults.rules.url.message = '正しいURLを入力してください。'; | ||
27 | + $.fn.validatebox.defaults.rules.length.message = '{0} から {1} の範囲の正しい値を入力してください。'; | ||
28 | + $.fn.validatebox.defaults.rules.remote.message = 'このフィールドを修正してください。'; | ||
29 | +} | ||
30 | +if ($.fn.calendar){ | ||
31 | + $.fn.calendar.defaults.weeks = ['日','月','火','水','木','金','土']; | ||
32 | + $.fn.calendar.defaults.months = ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月']; | ||
33 | +} | ||
34 | +if ($.fn.datebox){ | ||
35 | + $.fn.datebox.defaults.currentText = '今日'; | ||
36 | + $.fn.datebox.defaults.closeText = '閉じる'; | ||
37 | + $.fn.datebox.defaults.okText = 'OK'; | ||
38 | +} | ||
39 | +if ($.fn.datetimebox && $.fn.datebox){ | ||
40 | + $.extend($.fn.datetimebox.defaults,{ | ||
41 | + currentText: $.fn.datebox.defaults.currentText, | ||
42 | + closeText: $.fn.datebox.defaults.closeText, | ||
43 | + okText: $.fn.datebox.defaults.okText | ||
44 | + }); | ||
45 | +} |
1 | +if ($.fn.pagination){ | ||
2 | + $.fn.pagination.defaults.beforePageText = 'Pagina'; | ||
3 | + $.fn.pagination.defaults.afterPageText = 'van {pages}'; | ||
4 | + $.fn.pagination.defaults.displayMsg = 'Tonen van {from} tot {to} van de {total} items'; | ||
5 | +} | ||
6 | +if ($.fn.datagrid){ | ||
7 | + $.fn.datagrid.defaults.loadMsg = 'Verwerking, even geduld ...'; | ||
8 | +} | ||
9 | +if ($.fn.treegrid && $.fn.datagrid){ | ||
10 | + $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; | ||
11 | +} | ||
12 | +if ($.messager){ | ||
13 | + $.messager.defaults.ok = 'Ok'; | ||
14 | + $.messager.defaults.cancel = 'Annuleren'; | ||
15 | +} | ||
16 | +$.map(['validatebox','textbox','filebox','searchbox', | ||
17 | + 'combo','combobox','combogrid','combotree', | ||
18 | + 'datebox','datetimebox','numberbox', | ||
19 | + 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ | ||
20 | + if ($.fn[plugin]){ | ||
21 | + $.fn[plugin].defaults.missingMessage = 'Dit veld is verplicht.'; | ||
22 | + } | ||
23 | +}); | ||
24 | +if ($.fn.validatebox){ | ||
25 | + $.fn.validatebox.defaults.rules.email.message = 'Geef een geldig e-mailadres.'; | ||
26 | + $.fn.validatebox.defaults.rules.url.message = 'Vul een geldige URL.'; | ||
27 | + $.fn.validatebox.defaults.rules.length.message = 'Voer een waarde tussen {0} en {1}.'; | ||
28 | +} | ||
29 | +if ($.fn.calendar){ | ||
30 | + $.fn.calendar.defaults.weeks = ['S','M','T','W','T','F','S']; | ||
31 | + $.fn.calendar.defaults.months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; | ||
32 | +} | ||
33 | +if ($.fn.datebox){ | ||
34 | + $.fn.datebox.defaults.currentText = 'Vandaag'; | ||
35 | + $.fn.datebox.defaults.closeText = 'Dicht'; | ||
36 | + $.fn.datebox.defaults.okText = 'Ok'; | ||
37 | +} | ||
38 | +if ($.fn.datetimebox && $.fn.datebox){ | ||
39 | + $.extend($.fn.datetimebox.defaults,{ | ||
40 | + currentText: $.fn.datebox.defaults.currentText, | ||
41 | + closeText: $.fn.datebox.defaults.closeText, | ||
42 | + okText: $.fn.datebox.defaults.okText | ||
43 | + }); | ||
44 | +} |
1 | +if ($.fn.pagination){ | ||
2 | + $.fn.pagination.defaults.beforePageText = 'Strona'; | ||
3 | + $.fn.pagination.defaults.afterPageText = 'z {pages}'; | ||
4 | + $.fn.pagination.defaults.displayMsg = 'Wyświetlono elementy od {from} do {to} z {total}'; | ||
5 | +} | ||
6 | +if ($.fn.datagrid){ | ||
7 | + $.fn.datagrid.defaults.loadMsg = 'Przetwarzanie, proszę czekać ...'; | ||
8 | +} | ||
9 | +if ($.fn.treegrid && $.fn.datagrid){ | ||
10 | + $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; | ||
11 | +} | ||
12 | +if ($.messager){ | ||
13 | + $.messager.defaults.ok = 'Ok'; | ||
14 | + $.messager.defaults.cancel = 'Cancel'; | ||
15 | +} | ||
16 | +$.map(['validatebox','textbox','filebox','searchbox', | ||
17 | + 'combo','combobox','combogrid','combotree', | ||
18 | + 'datebox','datetimebox','numberbox', | ||
19 | + 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ | ||
20 | + if ($.fn[plugin]){ | ||
21 | + $.fn[plugin].defaults.missingMessage = 'To pole jest wymagane.'; | ||
22 | + } | ||
23 | +}); | ||
24 | +if ($.fn.validatebox){ | ||
25 | + $.fn.validatebox.defaults.rules.email.message = 'Wprowadź poprawny adres email.'; | ||
26 | + $.fn.validatebox.defaults.rules.url.message = 'Wprowadź poprawny adres URL.'; | ||
27 | + $.fn.validatebox.defaults.rules.length.message = 'Wprowadź wartość z zakresu od {0} do {1}.'; | ||
28 | + $.fn.validatebox.defaults.rules.remote.message = 'Proszę poprawić to pole.'; | ||
29 | +} | ||
30 | +if ($.fn.calendar){ | ||
31 | + $.fn.calendar.defaults.weeks = ['N','P','W','Ś','C','P','S']; | ||
32 | + $.fn.calendar.defaults.months = ['Sty', 'Lut', 'Mar', 'Kwi', 'Maj', 'Cze', 'Lip', 'Sie', 'Wrz', 'Paź', 'Lis', 'Gru']; | ||
33 | +} | ||
34 | +if ($.fn.datebox){ | ||
35 | + $.fn.datebox.defaults.currentText = 'Dzisiaj'; | ||
36 | + $.fn.datebox.defaults.closeText = 'Zamknij'; | ||
37 | + $.fn.datebox.defaults.okText = 'Ok'; | ||
38 | +} | ||
39 | +if ($.fn.datetimebox && $.fn.datebox){ | ||
40 | + $.extend($.fn.datetimebox.defaults,{ | ||
41 | + currentText: $.fn.datebox.defaults.currentText, | ||
42 | + closeText: $.fn.datebox.defaults.closeText, | ||
43 | + okText: $.fn.datebox.defaults.okText | ||
44 | + }); | ||
45 | +} |
1 | +if ($.fn.pagination){ | ||
2 | + $.fn.pagination.defaults.beforePageText = 'Página'; | ||
3 | + $.fn.pagination.defaults.afterPageText = 'de {pages}'; | ||
4 | + $.fn.pagination.defaults.displayMsg = 'Mostrando {from} a {to} de {total} itens'; | ||
5 | +} | ||
6 | +if ($.fn.datagrid){ | ||
7 | + $.fn.datagrid.defaults.loadMsg = 'Processando, aguarde ...'; | ||
8 | +} | ||
9 | +if ($.fn.treegrid && $.fn.datagrid){ | ||
10 | + $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; | ||
11 | +} | ||
12 | +if ($.messager){ | ||
13 | + $.messager.defaults.ok = 'Ok'; | ||
14 | + $.messager.defaults.cancel = 'Cancelar'; | ||
15 | +} | ||
16 | +$.map(['validatebox','textbox','filebox','searchbox', | ||
17 | + 'combo','combobox','combogrid','combotree', | ||
18 | + 'datebox','datetimebox','numberbox', | ||
19 | + 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ | ||
20 | + if ($.fn[plugin]){ | ||
21 | + $.fn[plugin].defaults.missingMessage = 'Esse campo é requerido.'; | ||
22 | + } | ||
23 | +}); | ||
24 | +if ($.fn.validatebox){ | ||
25 | + $.fn.validatebox.defaults.rules.email.message = 'Insira um endereço de email válido.'; | ||
26 | + $.fn.validatebox.defaults.rules.url.message = 'Insira uma URL válida.'; | ||
27 | + $.fn.validatebox.defaults.rules.length.message = 'Insira uma valor entre {0} e {1}.'; | ||
28 | + $.fn.validatebox.defaults.rules.remote.message = 'Corrija esse campo.'; | ||
29 | +} | ||
30 | +if ($.fn.calendar){ | ||
31 | + $.fn.calendar.defaults.weeks = ['D','S','T','Q','Q','S','S']; | ||
32 | + $.fn.calendar.defaults.months = ['Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez']; | ||
33 | +} | ||
34 | +if ($.fn.datebox){ | ||
35 | + $.fn.datebox.defaults.currentText = 'Hoje'; | ||
36 | + $.fn.datebox.defaults.closeText = 'Fechar'; | ||
37 | + $.fn.datebox.defaults.okText = 'Ok'; | ||
38 | +} | ||
39 | +if ($.fn.datetimebox && $.fn.datebox){ | ||
40 | + $.extend($.fn.datetimebox.defaults,{ | ||
41 | + currentText: $.fn.datebox.defaults.currentText, | ||
42 | + closeText: $.fn.datebox.defaults.closeText, | ||
43 | + okText: $.fn.datebox.defaults.okText | ||
44 | + }); | ||
45 | +} |
1 | +if ($.fn.pagination){ | ||
2 | + $.fn.pagination.defaults.beforePageText = 'Страница'; | ||
3 | + $.fn.pagination.defaults.afterPageText = 'из {pages}'; | ||
4 | + $.fn.pagination.defaults.displayMsg = 'Просмотр {from} до {to} из {total} записей'; | ||
5 | +} | ||
6 | +if ($.fn.datagrid){ | ||
7 | + $.fn.datagrid.defaults.loadMsg = 'Обрабатывается, пожалуйста ждите ...'; | ||
8 | +} | ||
9 | +if ($.fn.treegrid && $.fn.datagrid){ | ||
10 | + $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; | ||
11 | +} | ||
12 | +if ($.messager){ | ||
13 | + $.messager.defaults.ok = 'Ок'; | ||
14 | + $.messager.defaults.cancel = 'Закрыть'; | ||
15 | +} | ||
16 | +$.map(['validatebox','textbox','filebox','searchbox', | ||
17 | + 'combo','combobox','combogrid','combotree', | ||
18 | + 'datebox','datetimebox','numberbox', | ||
19 | + 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ | ||
20 | + if ($.fn[plugin]){ | ||
21 | + $.fn[plugin].defaults.missingMessage = 'Это поле необходимо.'; | ||
22 | + } | ||
23 | +}); | ||
24 | +if ($.fn.validatebox){ | ||
25 | + $.fn.validatebox.defaults.rules.email.message = 'Пожалуйста введите корректный e-mail адрес.'; | ||
26 | + $.fn.validatebox.defaults.rules.url.message = 'Пожалуйста введите корректный URL.'; | ||
27 | + $.fn.validatebox.defaults.rules.length.message = 'Пожалуйста введите зачение между {0} и {1}.'; | ||
28 | + $.fn.validatebox.defaults.rules.remote.message = 'Пожалуйста исправте это поле.'; | ||
29 | +} | ||
30 | +if ($.fn.calendar){ | ||
31 | + $.fn.calendar.defaults.firstDay = 1; | ||
32 | + $.fn.calendar.defaults.weeks = ['В','П','В','С','Ч','П','С']; | ||
33 | + $.fn.calendar.defaults.months = ['Янв', 'Фев', 'Мар', 'Апр', 'Май', 'Июн', 'Июл', 'Авг', 'Сен', 'Окт', 'Ноя', 'Дек']; | ||
34 | +} | ||
35 | +if ($.fn.datebox){ | ||
36 | + $.fn.datebox.defaults.currentText = 'Сегодня'; | ||
37 | + $.fn.datebox.defaults.closeText = 'Закрыть'; | ||
38 | + $.fn.datebox.defaults.okText = 'Ок'; | ||
39 | +} | ||
40 | +if ($.fn.datetimebox && $.fn.datebox){ | ||
41 | + $.extend($.fn.datetimebox.defaults,{ | ||
42 | + currentText: $.fn.datebox.defaults.currentText, | ||
43 | + closeText: $.fn.datebox.defaults.closeText, | ||
44 | + okText: $.fn.datebox.defaults.okText | ||
45 | + }); | ||
46 | +} |
1 | +if ($.fn.pagination) { | ||
2 | + $.fn.pagination.defaults.beforePageText = 'Sida'; | ||
3 | + $.fn.pagination.defaults.afterPageText = 'av {pages}'; | ||
4 | + $.fn.pagination.defaults.displayMsg = 'Visar {from} till {to} av {total} poster'; | ||
5 | +} | ||
6 | +if ($.fn.datagrid) { | ||
7 | + $.fn.datagrid.defaults.loadMsg = 'Bearbetar, vänligen vänta ...'; | ||
8 | +} | ||
9 | +if ($.fn.treegrid && $.fn.datagrid) { | ||
10 | + $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; | ||
11 | +} | ||
12 | +if ($.messager) { | ||
13 | + $.messager.defaults.ok = 'Ok'; | ||
14 | + $.messager.defaults.cancel = 'Avbryt'; | ||
15 | +} | ||
16 | +$.map(['validatebox','textbox','filebox','searchbox', | ||
17 | + 'combo','combobox','combogrid','combotree', | ||
18 | + 'datebox','datetimebox','numberbox', | ||
19 | + 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ | ||
20 | + if ($.fn[plugin]){ | ||
21 | + $.fn[plugin].defaults.missingMessage = 'Detta fält är obligatoriskt.'; | ||
22 | + } | ||
23 | +}); | ||
24 | +if ($.fn.validatebox) { | ||
25 | + $.fn.validatebox.defaults.rules.email.message = 'Vänligen ange en korrekt e-post adress.'; | ||
26 | + $.fn.validatebox.defaults.rules.url.message = 'Vänligen ange en korrekt URL.'; | ||
27 | + $.fn.validatebox.defaults.rules.length.message = 'Vänligen ange ett nummer mellan {0} och {1}.'; | ||
28 | + $.fn.validatebox.defaults.rules.remote.message = 'Vänligen åtgärda detta fält.'; | ||
29 | +} | ||
30 | +if ($.fn.calendar) { | ||
31 | + $.fn.calendar.defaults.weeks = ['Sön', 'Mån', 'Tis', 'Ons', 'Tors', 'Fre', 'Lör']; | ||
32 | + $.fn.calendar.defaults.months = ['Jan', 'Feb', 'Mar', 'Apr', 'Maj', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dec']; | ||
33 | +} | ||
34 | +if ($.fn.datebox) { | ||
35 | + $.fn.datebox.defaults.currentText = 'I dag'; | ||
36 | + $.fn.datebox.defaults.closeText = 'Stäng'; | ||
37 | + $.fn.datebox.defaults.okText = 'Ok'; | ||
38 | +} | ||
39 | +if ($.fn.datetimebox && $.fn.datebox) { | ||
40 | + $.extend($.fn.datetimebox.defaults, { | ||
41 | + currentText: $.fn.datebox.defaults.currentText, | ||
42 | + closeText: $.fn.datebox.defaults.closeText, | ||
43 | + okText: $.fn.datebox.defaults.okText | ||
44 | + }); | ||
45 | +} |
1 | +if ($.fn.pagination){ | ||
2 | + $.fn.pagination.defaults.beforePageText = 'Sayfa'; | ||
3 | + $.fn.pagination.defaults.afterPageText = ' / {pages}'; | ||
4 | + $.fn.pagination.defaults.displayMsg = '{from} ile {to} arası gösteriliyor, toplam {total} kayıt'; | ||
5 | +} | ||
6 | +if ($.fn.datagrid){ | ||
7 | + $.fn.panel.defaults.loadingMessage = "Yükleniyor..."; | ||
8 | +} | ||
9 | + | ||
10 | +if ($.fn.datagrid){ | ||
11 | + $.fn.datagrid.defaults.loadingMessage = "Yükleniyor..."; | ||
12 | + $.fn.datagrid.defaults.loadMsg = 'İşleminiz Yapılıyor, lütfen bekleyin ...'; | ||
13 | +} | ||
14 | +if ($.fn.treegrid && $.fn.datagrid){ | ||
15 | + $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; | ||
16 | +} | ||
17 | +if ($.messager){ | ||
18 | + $.messager.defaults.ok = 'Tamam'; | ||
19 | + $.messager.defaults.cancel = 'İptal'; | ||
20 | +} | ||
21 | +$.map(['validatebox','textbox','filebox','searchbox', | ||
22 | + 'combo','combobox','combogrid','combotree', | ||
23 | + 'datebox','datetimebox','numberbox', | ||
24 | + 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ | ||
25 | + if ($.fn[plugin]){ | ||
26 | + $.fn[plugin].defaults.missingMessage = 'Bu alan zorunludur.'; | ||
27 | + } | ||
28 | +}); | ||
29 | +if ($.fn.validatebox){ | ||
30 | + $.fn.validatebox.defaults.rules.email.message = 'Lütfen geçerli bir email adresi giriniz.'; | ||
31 | + $.fn.validatebox.defaults.rules.url.message = 'Lütfen geçerli bir URL giriniz.'; | ||
32 | + $.fn.validatebox.defaults.rules.length.message = 'Lütfen {0} ile {1} arasında bir değer giriniz.'; | ||
33 | + $.fn.validatebox.defaults.rules.remote.message = 'Lütfen bu alanı düzeltiniz.'; | ||
34 | +} | ||
35 | +if ($.fn.calendar){ | ||
36 | + $.fn.calendar.defaults.weeks = ['Pz','Pt','Sa','Ça','Pe','Cu','Ct']; | ||
37 | + $.fn.calendar.defaults.months = ['Oca', 'Şub', 'Mar', 'Nis', 'May', 'Haz', 'Tem', 'Ağu', 'Eyl', 'Eki', 'Kas', 'Ara']; | ||
38 | +} | ||
39 | +if ($.fn.datebox){ | ||
40 | + $.fn.datebox.defaults.currentText = 'Bugün'; | ||
41 | + $.fn.datebox.defaults.closeText = 'Kapat'; | ||
42 | + $.fn.datebox.defaults.okText = 'Tamam'; | ||
43 | +} | ||
44 | +if ($.fn.datetimebox && $.fn.datebox){ | ||
45 | + $.extend($.fn.datetimebox.defaults,{ | ||
46 | + currentText: $.fn.datebox.defaults.currentText, | ||
47 | + closeText: $.fn.datebox.defaults.closeText, | ||
48 | + okText: $.fn.datebox.defaults.okText | ||
49 | + }); | ||
50 | + | ||
51 | + $.fn.datebox.defaults.formatter=function(date){ | ||
52 | + var y=date.getFullYear(); | ||
53 | + var m=date.getMonth()+1; | ||
54 | + var d=date.getDate(); | ||
55 | + if(m<10){m="0"+m;} | ||
56 | + if(d<10){d="0"+d;} | ||
57 | + return d+"."+m+"."+y; | ||
58 | + }; | ||
59 | +} |
1 | +if ($.fn.pagination){ | ||
2 | + $.fn.pagination.defaults.beforePageText = '第'; | ||
3 | + $.fn.pagination.defaults.afterPageText = '共{pages}页'; | ||
4 | + $.fn.pagination.defaults.displayMsg = '显示{from}到{to},共{total}记录'; | ||
5 | +} | ||
6 | +if ($.fn.datagrid){ | ||
7 | + $.fn.datagrid.defaults.loadMsg = '正在处理,请稍待。。。'; | ||
8 | +} | ||
9 | +if ($.fn.treegrid && $.fn.datagrid){ | ||
10 | + $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; | ||
11 | +} | ||
12 | +if ($.messager){ | ||
13 | + $.messager.defaults.ok = '确定'; | ||
14 | + $.messager.defaults.cancel = '取消'; | ||
15 | +} | ||
16 | +$.map(['validatebox','textbox','filebox','searchbox', | ||
17 | + 'combo','combobox','combogrid','combotree', | ||
18 | + 'datebox','datetimebox','numberbox', | ||
19 | + 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ | ||
20 | + if ($.fn[plugin]){ | ||
21 | + $.fn[plugin].defaults.missingMessage = '该输入项为必输项'; | ||
22 | + } | ||
23 | +}); | ||
24 | +if ($.fn.validatebox){ | ||
25 | + $.fn.validatebox.defaults.rules.email.message = '请输入有效的电子邮件地址'; | ||
26 | + $.fn.validatebox.defaults.rules.url.message = '请输入有效的URL地址'; | ||
27 | + $.fn.validatebox.defaults.rules.length.message = '输入内容长度必须介于{0}和{1}之间'; | ||
28 | + $.fn.validatebox.defaults.rules.remote.message = '请修正该字段'; | ||
29 | +} | ||
30 | +if ($.fn.calendar){ | ||
31 | + $.fn.calendar.defaults.weeks = ['日','一','二','三','四','五','六']; | ||
32 | + $.fn.calendar.defaults.months = ['一月','二月','三月','四月','五月','六月','七月','八月','九月','十月','十一月','十二月']; | ||
33 | +} | ||
34 | +if ($.fn.datebox){ | ||
35 | + $.fn.datebox.defaults.currentText = '今天'; | ||
36 | + $.fn.datebox.defaults.closeText = '关闭'; | ||
37 | + $.fn.datebox.defaults.okText = '确定'; | ||
38 | + $.fn.datebox.defaults.formatter = function(date){ | ||
39 | + var y = date.getFullYear(); | ||
40 | + var m = date.getMonth()+1; | ||
41 | + var d = date.getDate(); | ||
42 | + return y+'-'+(m<10?('0'+m):m)+'-'+(d<10?('0'+d):d); | ||
43 | + }; | ||
44 | + $.fn.datebox.defaults.parser = function(s){ | ||
45 | + if (!s) return new Date(); | ||
46 | + var ss = s.split('-'); | ||
47 | + var y = parseInt(ss[0],10); | ||
48 | + var m = parseInt(ss[1],10); | ||
49 | + var d = parseInt(ss[2],10); | ||
50 | + if (!isNaN(y) && !isNaN(m) && !isNaN(d)){ | ||
51 | + return new Date(y,m-1,d); | ||
52 | + } else { | ||
53 | + return new Date(); | ||
54 | + } | ||
55 | + }; | ||
56 | +} | ||
57 | +if ($.fn.datetimebox && $.fn.datebox){ | ||
58 | + $.extend($.fn.datetimebox.defaults,{ | ||
59 | + currentText: $.fn.datebox.defaults.currentText, | ||
60 | + closeText: $.fn.datebox.defaults.closeText, | ||
61 | + okText: $.fn.datebox.defaults.okText | ||
62 | + }); | ||
63 | +} | ||
64 | +if ($.fn.datetimespinner){ | ||
65 | + $.fn.datetimespinner.defaults.selections = [[0,4],[5,7],[8,10],[11,13],[14,16],[17,19]] | ||
66 | +} |
1 | +if ($.fn.pagination){ | ||
2 | + $.fn.pagination.defaults.beforePageText = '第'; | ||
3 | + $.fn.pagination.defaults.afterPageText = '共{pages}頁'; | ||
4 | + $.fn.pagination.defaults.displayMsg = '顯示{from}到{to},共{total}記錄'; | ||
5 | +} | ||
6 | +if ($.fn.datagrid){ | ||
7 | + $.fn.datagrid.defaults.loadMsg = '正在處理,請稍待。。。'; | ||
8 | +} | ||
9 | +if ($.fn.treegrid && $.fn.datagrid){ | ||
10 | + $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; | ||
11 | +} | ||
12 | +if ($.messager){ | ||
13 | + $.messager.defaults.ok = '確定'; | ||
14 | + $.messager.defaults.cancel = '取消'; | ||
15 | +} | ||
16 | +$.map(['validatebox','textbox','filebox','searchbox', | ||
17 | + 'combo','combobox','combogrid','combotree', | ||
18 | + 'datebox','datetimebox','numberbox', | ||
19 | + 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ | ||
20 | + if ($.fn[plugin]){ | ||
21 | + $.fn[plugin].defaults.missingMessage = '該輸入項為必輸項'; | ||
22 | + } | ||
23 | +}); | ||
24 | +if ($.fn.validatebox){ | ||
25 | + $.fn.validatebox.defaults.rules.email.message = '請輸入有效的電子郵件地址'; | ||
26 | + $.fn.validatebox.defaults.rules.url.message = '請輸入有效的URL地址'; | ||
27 | + $.fn.validatebox.defaults.rules.length.message = '輸入內容長度必須介於{0}和{1}之間'; | ||
28 | + $.fn.validatebox.defaults.rules.remote.message = '請修正此欄位'; | ||
29 | +} | ||
30 | +if ($.fn.calendar){ | ||
31 | + $.fn.calendar.defaults.weeks = ['日','一','二','三','四','五','六']; | ||
32 | + $.fn.calendar.defaults.months = ['一月','二月','三月','四月','五月','六月','七月','八月','九月','十月','十一月','十二月']; | ||
33 | +} | ||
34 | +if ($.fn.datebox){ | ||
35 | + $.fn.datebox.defaults.currentText = '今天'; | ||
36 | + $.fn.datebox.defaults.closeText = '關閉'; | ||
37 | + $.fn.datebox.defaults.okText = '確定'; | ||
38 | +} | ||
39 | +if ($.fn.datetimebox && $.fn.datebox){ | ||
40 | + $.extend($.fn.datetimebox.defaults,{ | ||
41 | + currentText: $.fn.datebox.defaults.currentText, | ||
42 | + closeText: $.fn.datebox.defaults.closeText, | ||
43 | + okText: $.fn.datebox.defaults.okText | ||
44 | + }); | ||
45 | +} | ||
46 | +if ($.fn.datetimespinner){ | ||
47 | + $.fn.datetimespinner.defaults.selections = [[0,4],[5,7],[8,10],[11,13],[14,16],[17,19]] | ||
48 | +} |
This diff could not be displayed because it is too large.
1 | +/** | ||
2 | + * @license | ||
3 | + * lodash 3.10.1 (Custom Build) lodash.com/license | Underscore.js 1.8.3 underscorejs.org/LICENSE | ||
4 | + * Build: `lodash compat -o ./lodash.js` | ||
5 | + */ | ||
6 | +;(function(){function n(n,t){if(n!==t){var r=null===n,e=n===w,u=n===n,o=null===t,i=t===w,f=t===t;if(n>t&&!o||!u||r&&!i&&f||e&&f)return 1;if(n<t&&!r||!f||o&&!e&&u||i&&u)return-1}return 0}function t(n,t,r){for(var e=n.length,u=r?e:-1;r?u--:++u<e;)if(t(n[u],u,n))return u;return-1}function r(n,t,r){if(t!==t)return p(n,r);r-=1;for(var e=n.length;++r<e;)if(n[r]===t)return r;return-1}function e(n){return typeof n=="function"||false}function u(n){return null==n?"":n+""}function o(n,t){for(var r=-1,e=n.length;++r<e&&-1<t.indexOf(n.charAt(r));); | ||
7 | +return r}function i(n,t){for(var r=n.length;r--&&-1<t.indexOf(n.charAt(r)););return r}function f(t,r){return n(t.a,r.a)||t.b-r.b}function a(n){return Nn[n]}function c(n){return Tn[n]}function l(n,t,r){return t?n=Bn[n]:r&&(n=Dn[n]),"\\"+n}function s(n){return"\\"+Dn[n]}function p(n,t,r){var e=n.length;for(t+=r?0:-1;r?t--:++t<e;){var u=n[t];if(u!==u)return t}return-1}function h(n){return!!n&&typeof n=="object"}function _(n){return 160>=n&&9<=n&&13>=n||32==n||160==n||5760==n||6158==n||8192<=n&&(8202>=n||8232==n||8233==n||8239==n||8287==n||12288==n||65279==n); | ||
8 | +}function v(n,t){for(var r=-1,e=n.length,u=-1,o=[];++r<e;)n[r]===t&&(n[r]=P,o[++u]=r);return o}function g(n){for(var t=-1,r=n.length;++t<r&&_(n.charCodeAt(t)););return t}function y(n){for(var t=n.length;t--&&_(n.charCodeAt(t)););return t}function d(n){return Pn[n]}function m(_){function Nn(n){if(h(n)&&!(Wo(n)||n instanceof zn)){if(n instanceof Pn)return n;if(eu.call(n,"__chain__")&&eu.call(n,"__wrapped__"))return qr(n)}return new Pn(n)}function Tn(){}function Pn(n,t,r){this.__wrapped__=n,this.__actions__=r||[], | ||
9 | +this.__chain__=!!t}function zn(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=false,this.__iteratees__=[],this.__takeCount__=Cu,this.__views__=[]}function Bn(){this.__data__={}}function Dn(n){var t=n?n.length:0;for(this.data={hash:mu(null),set:new hu};t--;)this.push(n[t])}function Mn(n,t){var r=n.data;return(typeof t=="string"||de(t)?r.set.has(t):r.hash[t])?0:-1}function qn(n,t){var r=-1,e=n.length;for(t||(t=De(e));++r<e;)t[r]=n[r];return t}function Kn(n,t){for(var r=-1,e=n.length;++r<e&&false!==t(n[r],r,n);); | ||
10 | +return n}function Vn(n,t){for(var r=-1,e=n.length;++r<e;)if(!t(n[r],r,n))return false;return true}function Zn(n,t){for(var r=-1,e=n.length,u=-1,o=[];++r<e;){var i=n[r];t(i,r,n)&&(o[++u]=i)}return o}function Xn(n,t){for(var r=-1,e=n.length,u=De(e);++r<e;)u[r]=t(n[r],r,n);return u}function Hn(n,t){for(var r=-1,e=t.length,u=n.length;++r<e;)n[u+r]=t[r];return n}function Qn(n,t,r,e){var u=-1,o=n.length;for(e&&o&&(r=n[++u]);++u<o;)r=t(r,n[u],u,n);return r}function nt(n,t){for(var r=-1,e=n.length;++r<e;)if(t(n[r],r,n))return true; | ||
11 | +return false}function tt(n,t,r,e){return n!==w&&eu.call(e,r)?n:t}function rt(n,t,r){for(var e=-1,u=Ko(t),o=u.length;++e<o;){var i=u[e],f=n[i],a=r(f,t[i],i,n,t);(a===a?a===f:f!==f)&&(f!==w||i in n)||(n[i]=a)}return n}function et(n,t){return null==t?n:ot(t,Ko(t),n)}function ut(n,t){for(var r=-1,e=null==n,u=!e&&Sr(n),o=u?n.length:0,i=t.length,f=De(i);++r<i;){var a=t[r];f[r]=u?Ur(a,o)?n[a]:w:e?w:n[a]}return f}function ot(n,t,r){r||(r={});for(var e=-1,u=t.length;++e<u;){var o=t[e];r[o]=n[o]}return r}function it(n,t,r){ | ||
12 | +var e=typeof n;return"function"==e?t===w?n:Dt(n,t,r):null==n?Ne:"object"==e?At(n):t===w?Be(n):jt(n,t)}function ft(n,t,r,e,u,o,i){var f;if(r&&(f=u?r(n,e,u):r(n)),f!==w)return f;if(!de(n))return n;if(e=Wo(n)){if(f=Ir(n),!t)return qn(n,f)}else{var a=ou.call(n),c=a==K;if(a!=Z&&a!=z&&(!c||u))return Ln[a]?Er(n,a,t):u?n:{};if(Gn(n))return u?n:{};if(f=Rr(c?{}:n),!t)return et(f,n)}for(o||(o=[]),i||(i=[]),u=o.length;u--;)if(o[u]==n)return i[u];return o.push(n),i.push(f),(e?Kn:gt)(n,function(e,u){f[u]=ft(e,t,r,u,n,o,i); | ||
13 | +}),f}function at(n,t,r){if(typeof n!="function")throw new Xe(T);return _u(function(){n.apply(w,r)},t)}function ct(n,t){var e=n?n.length:0,u=[];if(!e)return u;var o=-1,i=jr(),f=i===r,a=f&&t.length>=F&&mu&&hu?new Dn(t):null,c=t.length;a&&(i=Mn,f=false,t=a);n:for(;++o<e;)if(a=n[o],f&&a===a){for(var l=c;l--;)if(t[l]===a)continue n;u.push(a)}else 0>i(t,a,0)&&u.push(a);return u}function lt(n,t){var r=true;return zu(n,function(n,e,u){return r=!!t(n,e,u)}),r}function st(n,t,r,e){var u=e,o=u;return zu(n,function(n,i,f){ | ||
14 | +i=+t(n,i,f),(r(i,u)||i===e&&i===o)&&(u=i,o=n)}),o}function pt(n,t){var r=[];return zu(n,function(n,e,u){t(n,e,u)&&r.push(n)}),r}function ht(n,t,r,e){var u;return r(n,function(n,r,o){return t(n,r,o)?(u=e?r:n,false):void 0}),u}function _t(n,t,r,e){e||(e=[]);for(var u=-1,o=n.length;++u<o;){var i=n[u];h(i)&&Sr(i)&&(r||Wo(i)||_e(i))?t?_t(i,t,r,e):Hn(e,i):r||(e[e.length]=i)}return e}function vt(n,t){return Du(n,t,Ee)}function gt(n,t){return Du(n,t,Ko)}function yt(n,t){return Mu(n,t,Ko)}function dt(n,t){for(var r=-1,e=t.length,u=-1,o=[];++r<e;){ | ||
15 | +var i=t[r];ye(n[i])&&(o[++u]=i)}return o}function mt(n,t,r){if(null!=n){n=Dr(n),r!==w&&r in n&&(t=[r]),r=0;for(var e=t.length;null!=n&&r<e;)n=Dr(n)[t[r++]];return r&&r==e?n:w}}function wt(n,t,r,e,u,o){if(n===t)return true;if(null==n||null==t||!de(n)&&!h(t))return n!==n&&t!==t;n:{var i=wt,f=Wo(n),a=Wo(t),c=B,l=B;f||(c=ou.call(n),c==z?c=Z:c!=Z&&(f=je(n))),a||(l=ou.call(t),l==z?l=Z:l!=Z&&je(t));var s=c==Z&&!Gn(n),a=l==Z&&!Gn(t),l=c==l;if(!l||f||s){if(!e&&(c=s&&eu.call(n,"__wrapped__"),a=a&&eu.call(t,"__wrapped__"), | ||
16 | +c||a)){n=i(c?n.value():n,a?t.value():t,r,e,u,o);break n}if(l){for(u||(u=[]),o||(o=[]),c=u.length;c--;)if(u[c]==n){n=o[c]==t;break n}u.push(n),o.push(t),n=(f?mr:xr)(n,t,i,r,e,u,o),u.pop(),o.pop()}else n=false}else n=wr(n,t,c)}return n}function xt(n,t,r){var e=t.length,u=e,o=!r;if(null==n)return!u;for(n=Dr(n);e--;){var i=t[e];if(o&&i[2]?i[1]!==n[i[0]]:!(i[0]in n))return false}for(;++e<u;){var i=t[e],f=i[0],a=n[f],c=i[1];if(o&&i[2]){if(a===w&&!(f in n))return false}else if(i=r?r(a,c,f):w,i===w?!wt(c,a,r,true):!i)return false; | ||
17 | +}return true}function bt(n,t){var r=-1,e=Sr(n)?De(n.length):[];return zu(n,function(n,u,o){e[++r]=t(n,u,o)}),e}function At(n){var t=kr(n);if(1==t.length&&t[0][2]){var r=t[0][0],e=t[0][1];return function(n){return null==n?false:(n=Dr(n),n[r]===e&&(e!==w||r in n))}}return function(n){return xt(n,t)}}function jt(n,t){var r=Wo(n),e=Wr(n)&&t===t&&!de(t),u=n+"";return n=Mr(n),function(o){if(null==o)return false;var i=u;if(o=Dr(o),!(!r&&e||i in o)){if(o=1==n.length?o:mt(o,St(n,0,-1)),null==o)return false;i=Gr(n),o=Dr(o); | ||
18 | +}return o[i]===t?t!==w||i in o:wt(t,o[i],w,true)}}function kt(n,t,r,e,u){if(!de(n))return n;var o=Sr(t)&&(Wo(t)||je(t)),i=o?w:Ko(t);return Kn(i||t,function(f,a){if(i&&(a=f,f=t[a]),h(f)){e||(e=[]),u||(u=[]);n:{for(var c=a,l=e,s=u,p=l.length,_=t[c];p--;)if(l[p]==_){n[c]=s[p];break n}var p=n[c],v=r?r(p,_,c,n,t):w,g=v===w;g&&(v=_,Sr(_)&&(Wo(_)||je(_))?v=Wo(p)?p:Sr(p)?qn(p):[]:xe(_)||_e(_)?v=_e(p)?Ie(p):xe(p)?p:{}:g=false),l.push(_),s.push(v),g?n[c]=kt(v,_,r,l,s):(v===v?v!==p:p===p)&&(n[c]=v)}}else c=n[a], | ||
19 | +l=r?r(c,f,a,n,t):w,(s=l===w)&&(l=f),l===w&&(!o||a in n)||!s&&(l===l?l===c:c!==c)||(n[a]=l)}),n}function Ot(n){return function(t){return null==t?w:Dr(t)[n]}}function It(n){var t=n+"";return n=Mr(n),function(r){return mt(r,n,t)}}function Rt(n,t){for(var r=n?t.length:0;r--;){var e=t[r];if(e!=u&&Ur(e)){var u=e;vu.call(n,e,1)}}return n}function Et(n,t){return n+wu(Ru()*(t-n+1))}function Ct(n,t,r,e,u){return u(n,function(n,u,o){r=e?(e=false,n):t(r,n,u,o)}),r}function St(n,t,r){var e=-1,u=n.length;for(t=null==t?0:+t||0, | ||
20 | +0>t&&(t=-t>u?0:u+t),r=r===w||r>u?u:+r||0,0>r&&(r+=u),u=t>r?0:r-t>>>0,t>>>=0,r=De(u);++e<u;)r[e]=n[e+t];return r}function Ut(n,t){var r;return zu(n,function(n,e,u){return r=t(n,e,u),!r}),!!r}function $t(n,t){var r=n.length;for(n.sort(t);r--;)n[r]=n[r].c;return n}function Wt(t,r,e){var u=br(),o=-1;return r=Xn(r,function(n){return u(n)}),t=bt(t,function(n){return{a:Xn(r,function(t){return t(n)}),b:++o,c:n}}),$t(t,function(t,r){var u;n:{for(var o=-1,i=t.a,f=r.a,a=i.length,c=e.length;++o<a;)if(u=n(i[o],f[o])){ | ||
21 | +if(o>=c)break n;o=e[o],u*="asc"===o||true===o?1:-1;break n}u=t.b-r.b}return u})}function Ft(n,t){var r=0;return zu(n,function(n,e,u){r+=+t(n,e,u)||0}),r}function Lt(n,t){var e=-1,u=jr(),o=n.length,i=u===r,f=i&&o>=F,a=f&&mu&&hu?new Dn(void 0):null,c=[];a?(u=Mn,i=false):(f=false,a=t?[]:c);n:for(;++e<o;){var l=n[e],s=t?t(l,e,n):l;if(i&&l===l){for(var p=a.length;p--;)if(a[p]===s)continue n;t&&a.push(s),c.push(l)}else 0>u(a,s,0)&&((t||f)&&a.push(s),c.push(l))}return c}function Nt(n,t){for(var r=-1,e=t.length,u=De(e);++r<e;)u[r]=n[t[r]]; | ||
22 | +return u}function Tt(n,t,r,e){for(var u=n.length,o=e?u:-1;(e?o--:++o<u)&&t(n[o],o,n););return r?St(n,e?0:o,e?o+1:u):St(n,e?o+1:0,e?u:o)}function Pt(n,t){var r=n;r instanceof zn&&(r=r.value());for(var e=-1,u=t.length;++e<u;)var o=t[e],r=o.func.apply(o.thisArg,Hn([r],o.args));return r}function zt(n,t,r){var e=0,u=n?n.length:e;if(typeof t=="number"&&t===t&&u<=Uu){for(;e<u;){var o=e+u>>>1,i=n[o];(r?i<=t:i<t)&&null!==i?e=o+1:u=o}return u}return Bt(n,t,Ne,r)}function Bt(n,t,r,e){t=r(t);for(var u=0,o=n?n.length:0,i=t!==t,f=null===t,a=t===w;u<o;){ | ||
23 | +var c=wu((u+o)/2),l=r(n[c]),s=l!==w,p=l===l;(i?p||e:f?p&&s&&(e||null!=l):a?p&&(e||s):null==l?0:e?l<=t:l<t)?u=c+1:o=c}return ku(o,Su)}function Dt(n,t,r){if(typeof n!="function")return Ne;if(t===w)return n;switch(r){case 1:return function(r){return n.call(t,r)};case 3:return function(r,e,u){return n.call(t,r,e,u)};case 4:return function(r,e,u,o){return n.call(t,r,e,u,o)};case 5:return function(r,e,u,o,i){return n.call(t,r,e,u,o,i)}}return function(){return n.apply(t,arguments)}}function Mt(n){var t=new au(n.byteLength); | ||
24 | +return new gu(t).set(new gu(n)),t}function qt(n,t,r){for(var e=r.length,u=-1,o=ju(n.length-e,0),i=-1,f=t.length,a=De(f+o);++i<f;)a[i]=t[i];for(;++u<e;)a[r[u]]=n[u];for(;o--;)a[i++]=n[u++];return a}function Kt(n,t,r){for(var e=-1,u=r.length,o=-1,i=ju(n.length-u,0),f=-1,a=t.length,c=De(i+a);++o<i;)c[o]=n[o];for(i=o;++f<a;)c[i+f]=t[f];for(;++e<u;)c[i+r[e]]=n[o++];return c}function Vt(n,t){return function(r,e,u){var o=t?t():{};if(e=br(e,u,3),Wo(r)){u=-1;for(var i=r.length;++u<i;){var f=r[u];n(o,f,e(f,u,r),r); | ||
25 | +}}else zu(r,function(t,r,u){n(o,t,e(t,r,u),u)});return o}}function Zt(n){return pe(function(t,r){var e=-1,u=null==t?0:r.length,o=2<u?r[u-2]:w,i=2<u?r[2]:w,f=1<u?r[u-1]:w;for(typeof o=="function"?(o=Dt(o,f,5),u-=2):(o=typeof f=="function"?f:w,u-=o?1:0),i&&$r(r[0],r[1],i)&&(o=3>u?w:o,u=1);++e<u;)(i=r[e])&&n(t,i,o);return t})}function Yt(n,t){return function(r,e){var u=r?Vu(r):0;if(!Lr(u))return n(r,e);for(var o=t?u:-1,i=Dr(r);(t?o--:++o<u)&&false!==e(i[o],o,i););return r}}function Gt(n){return function(t,r,e){ | ||
26 | +var u=Dr(t);e=e(t);for(var o=e.length,i=n?o:-1;n?i--:++i<o;){var f=e[i];if(false===r(u[f],f,u))break}return t}}function Jt(n,t){function r(){return(this&&this!==Yn&&this instanceof r?e:n).apply(t,arguments)}var e=Ht(n);return r}function Xt(n){return function(t){var r=-1;t=Fe(Ue(t));for(var e=t.length,u="";++r<e;)u=n(u,t[r],r);return u}}function Ht(n){return function(){var t=arguments;switch(t.length){case 0:return new n;case 1:return new n(t[0]);case 2:return new n(t[0],t[1]);case 3:return new n(t[0],t[1],t[2]); | ||
27 | +case 4:return new n(t[0],t[1],t[2],t[3]);case 5:return new n(t[0],t[1],t[2],t[3],t[4]);case 6:return new n(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new n(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=Pu(n.prototype),t=n.apply(r,t);return de(t)?t:r}}function Qt(n){function t(r,e,u){return u&&$r(r,e,u)&&(e=w),r=dr(r,n,w,w,w,w,w,e),r.placeholder=t.placeholder,r}return t}function nr(n,t){return pe(function(r){var e=r[0];return null==e?e:(r.push(t),n.apply(w,r))})}function tr(n,t){return function(r,e,u){ | ||
28 | +if(u&&$r(r,e,u)&&(e=w),e=br(e,u,3),1==e.length){u=r=Wo(r)?r:Br(r);for(var o=e,i=-1,f=u.length,a=t,c=a;++i<f;){var l=u[i],s=+o(l);n(s,a)&&(a=s,c=l)}if(u=c,!r.length||u!==t)return u}return st(r,e,n,t)}}function rr(n,r){return function(e,u,o){return u=br(u,o,3),Wo(e)?(u=t(e,u,r),-1<u?e[u]:w):ht(e,u,n)}}function er(n){return function(r,e,u){return r&&r.length?(e=br(e,u,3),t(r,e,n)):-1}}function ur(n){return function(t,r,e){return r=br(r,e,3),ht(t,r,n,true)}}function or(n){return function(){for(var t,r=arguments.length,e=n?r:-1,u=0,o=De(r);n?e--:++e<r;){ | ||
29 | +var i=o[u++]=arguments[e];if(typeof i!="function")throw new Xe(T);!t&&Pn.prototype.thru&&"wrapper"==Ar(i)&&(t=new Pn([],true))}for(e=t?-1:r;++e<r;){var i=o[e],u=Ar(i),f="wrapper"==u?Ku(i):w;t=f&&Fr(f[0])&&f[1]==(E|k|I|C)&&!f[4].length&&1==f[9]?t[Ar(f[0])].apply(t,f[3]):1==i.length&&Fr(i)?t[u]():t.thru(i)}return function(){var n=arguments,e=n[0];if(t&&1==n.length&&Wo(e)&&e.length>=F)return t.plant(e).value();for(var u=0,n=r?o[u].apply(this,n):e;++u<r;)n=o[u].call(this,n);return n}}}function ir(n,t){ | ||
30 | +return function(r,e,u){return typeof e=="function"&&u===w&&Wo(r)?n(r,e):t(r,Dt(e,u,3))}}function fr(n){return function(t,r,e){return(typeof r!="function"||e!==w)&&(r=Dt(r,e,3)),n(t,r,Ee)}}function ar(n){return function(t,r,e){return(typeof r!="function"||e!==w)&&(r=Dt(r,e,3)),n(t,r)}}function cr(n){return function(t,r,e){var u={};return r=br(r,e,3),gt(t,function(t,e,o){o=r(t,e,o),e=n?o:e,t=n?t:o,u[e]=t}),u}}function lr(n){return function(t,r,e){return t=u(t),(n?t:"")+_r(t,r,e)+(n?"":t)}}function sr(n){ | ||
31 | +var t=pe(function(r,e){var u=v(e,t.placeholder);return dr(r,n,w,e,u)});return t}function pr(n,t){return function(r,e,u,o){var i=3>arguments.length;return typeof e=="function"&&o===w&&Wo(r)?n(r,e,u,i):Ct(r,br(e,o,4),u,i,t)}}function hr(n,t,r,e,u,o,i,f,a,c){function l(){for(var m=arguments.length,x=m,j=De(m);x--;)j[x]=arguments[x];if(e&&(j=qt(j,e,u)),o&&(j=Kt(j,o,i)),_||y){var x=l.placeholder,k=v(j,x),m=m-k.length;if(m<c){var O=f?qn(f):w,m=ju(c-m,0),E=_?k:w,k=_?w:k,C=_?j:w,j=_?w:j;return t|=_?I:R,t&=~(_?R:I), | ||
32 | +g||(t&=~(b|A)),j=[n,t,r,C,E,j,k,O,a,m],O=hr.apply(w,j),Fr(n)&&Zu(O,j),O.placeholder=x,O}}if(x=p?r:this,O=h?x[n]:n,f)for(m=j.length,E=ku(f.length,m),k=qn(j);E--;)C=f[E],j[E]=Ur(C,m)?k[C]:w;return s&&a<j.length&&(j.length=a),this&&this!==Yn&&this instanceof l&&(O=d||Ht(n)),O.apply(x,j)}var s=t&E,p=t&b,h=t&A,_=t&k,g=t&j,y=t&O,d=h?w:Ht(n);return l}function _r(n,t,r){return n=n.length,t=+t,n<t&&bu(t)?(t-=n,r=null==r?" ":r+"",$e(r,du(t/r.length)).slice(0,t)):""}function vr(n,t,r,e){function u(){for(var t=-1,f=arguments.length,a=-1,c=e.length,l=De(c+f);++a<c;)l[a]=e[a]; | ||
33 | +for(;f--;)l[a++]=arguments[++t];return(this&&this!==Yn&&this instanceof u?i:n).apply(o?r:this,l)}var o=t&b,i=Ht(n);return u}function gr(n){var t=Ve[n];return function(n,r){return(r=r===w?0:+r||0)?(r=su(10,r),t(n*r)/r):t(n)}}function yr(n){return function(t,r,e,u){var o=br(e);return null==e&&o===it?zt(t,r,n):Bt(t,r,o(e,u,1),n)}}function dr(n,t,r,e,u,o,i,f){var a=t&A;if(!a&&typeof n!="function")throw new Xe(T);var c=e?e.length:0;if(c||(t&=~(I|R),e=u=w),c-=u?u.length:0,t&R){var l=e,s=u;e=u=w}var p=a?w:Ku(n); | ||
34 | +return r=[n,t,r,e,u,l,s,o,i,f],p&&(e=r[1],t=p[1],f=e|t,u=t==E&&e==k||t==E&&e==C&&r[7].length<=p[8]||t==(E|C)&&e==k,(f<E||u)&&(t&b&&(r[2]=p[2],f|=e&b?0:j),(e=p[3])&&(u=r[3],r[3]=u?qt(u,e,p[4]):qn(e),r[4]=u?v(r[3],P):qn(p[4])),(e=p[5])&&(u=r[5],r[5]=u?Kt(u,e,p[6]):qn(e),r[6]=u?v(r[5],P):qn(p[6])),(e=p[7])&&(r[7]=qn(e)),t&E&&(r[8]=null==r[8]?p[8]:ku(r[8],p[8])),null==r[9]&&(r[9]=p[9]),r[0]=p[0],r[1]=f),t=r[1],f=r[9]),r[9]=null==f?a?0:n.length:ju(f-c,0)||0,n=t==b?Jt(r[0],r[2]):t!=I&&t!=(b|I)||r[4].length?hr.apply(w,r):vr.apply(w,r), | ||
35 | +(p?qu:Zu)(n,r)}function mr(n,t,r,e,u,o,i){var f=-1,a=n.length,c=t.length;if(a!=c&&(!u||c<=a))return false;for(;++f<a;){var l=n[f],c=t[f],s=e?e(u?c:l,u?l:c,f):w;if(s!==w){if(s)continue;return false}if(u){if(!nt(t,function(n){return l===n||r(l,n,e,u,o,i)}))return false}else if(l!==c&&!r(l,c,e,u,o,i))return false}return true}function wr(n,t,r){switch(r){case D:case M:return+n==+t;case q:return n.name==t.name&&n.message==t.message;case V:return n!=+n?t!=+t:n==+t;case Y:case G:return n==t+""}return false}function xr(n,t,r,e,u,o,i){ | ||
36 | +var f=Ko(n),a=f.length,c=Ko(t).length;if(a!=c&&!u)return false;for(c=a;c--;){var l=f[c];if(!(u?l in t:eu.call(t,l)))return false}for(var s=u;++c<a;){var l=f[c],p=n[l],h=t[l],_=e?e(u?h:p,u?p:h,l):w;if(_===w?!r(p,h,e,u,o,i):!_)return false;s||(s="constructor"==l)}return s||(r=n.constructor,e=t.constructor,!(r!=e&&"constructor"in n&&"constructor"in t)||typeof r=="function"&&r instanceof r&&typeof e=="function"&&e instanceof e)?true:false}function br(n,t,r){var e=Nn.callback||Le,e=e===Le?it:e;return r?e(n,t,r):e}function Ar(n){ | ||
37 | +for(var t=n.name+"",r=Fu[t],e=r?r.length:0;e--;){var u=r[e],o=u.func;if(null==o||o==n)return u.name}return t}function jr(n,t,e){var u=Nn.indexOf||Yr,u=u===Yr?r:u;return n?u(n,t,e):u}function kr(n){n=Ce(n);for(var t=n.length;t--;){var r,e=n[t];r=n[t][1],r=r===r&&!de(r),e[2]=r}return n}function Or(n,t){var r=null==n?w:n[t];return me(r)?r:w}function Ir(n){var t=n.length,r=new n.constructor(t);return t&&"string"==typeof n[0]&&eu.call(n,"index")&&(r.index=n.index,r.input=n.input),r}function Rr(n){return n=n.constructor, | ||
38 | +typeof n=="function"&&n instanceof n||(n=Ye),new n}function Er(n,t,r){var e=n.constructor;switch(t){case J:return Mt(n);case D:case M:return new e(+n);case X:case H:case Q:case nn:case tn:case rn:case en:case un:case on:return e instanceof e&&(e=Lu[t]),t=n.buffer,new e(r?Mt(t):t,n.byteOffset,n.length);case V:case G:return new e(n);case Y:var u=new e(n.source,kn.exec(n));u.lastIndex=n.lastIndex}return u}function Cr(n,t,r){return null==n||Wr(t,n)||(t=Mr(t),n=1==t.length?n:mt(n,St(t,0,-1)),t=Gr(t)), | ||
39 | +t=null==n?n:n[t],null==t?w:t.apply(n,r)}function Sr(n){return null!=n&&Lr(Vu(n))}function Ur(n,t){return n=typeof n=="number"||Rn.test(n)?+n:-1,t=null==t?$u:t,-1<n&&0==n%1&&n<t}function $r(n,t,r){if(!de(r))return false;var e=typeof t;return("number"==e?Sr(r)&&Ur(t,r.length):"string"==e&&t in r)?(t=r[t],n===n?n===t:t!==t):false}function Wr(n,t){var r=typeof n;return"string"==r&&dn.test(n)||"number"==r?true:Wo(n)?false:!yn.test(n)||null!=t&&n in Dr(t)}function Fr(n){var t=Ar(n),r=Nn[t];return typeof r=="function"&&t in zn.prototype?n===r?true:(t=Ku(r), | ||
40 | +!!t&&n===t[0]):false}function Lr(n){return typeof n=="number"&&-1<n&&0==n%1&&n<=$u}function Nr(n,t){return n===w?t:Fo(n,t,Nr)}function Tr(n,t){n=Dr(n);for(var r=-1,e=t.length,u={};++r<e;){var o=t[r];o in n&&(u[o]=n[o])}return u}function Pr(n,t){var r={};return vt(n,function(n,e,u){t(n,e,u)&&(r[e]=n)}),r}function zr(n){for(var t=Ee(n),r=t.length,e=r&&n.length,u=!!e&&Lr(e)&&(Wo(n)||_e(n)||Ae(n)),o=-1,i=[];++o<r;){var f=t[o];(u&&Ur(f,e)||eu.call(n,f))&&i.push(f)}return i}function Br(n){return null==n?[]:Sr(n)?Nn.support.unindexedChars&&Ae(n)?n.split(""):de(n)?n:Ye(n):Se(n); | ||
41 | +}function Dr(n){if(Nn.support.unindexedChars&&Ae(n)){for(var t=-1,r=n.length,e=Ye(n);++t<r;)e[t]=n.charAt(t);return e}return de(n)?n:Ye(n)}function Mr(n){if(Wo(n))return n;var t=[];return u(n).replace(mn,function(n,r,e,u){t.push(e?u.replace(An,"$1"):r||n)}),t}function qr(n){return n instanceof zn?n.clone():new Pn(n.__wrapped__,n.__chain__,qn(n.__actions__))}function Kr(n,t,r){return n&&n.length?((r?$r(n,t,r):null==t)&&(t=1),St(n,0>t?0:t)):[]}function Vr(n,t,r){var e=n?n.length:0;return e?((r?$r(n,t,r):null==t)&&(t=1), | ||
42 | +t=e-(+t||0),St(n,0,0>t?0:t)):[]}function Zr(n){return n?n[0]:w}function Yr(n,t,e){var u=n?n.length:0;if(!u)return-1;if(typeof e=="number")e=0>e?ju(u+e,0):e;else if(e)return e=zt(n,t),e<u&&(t===t?t===n[e]:n[e]!==n[e])?e:-1;return r(n,t,e||0)}function Gr(n){var t=n?n.length:0;return t?n[t-1]:w}function Jr(n){return Kr(n,1)}function Xr(n,t,e,u){if(!n||!n.length)return[];null!=t&&typeof t!="boolean"&&(u=e,e=$r(n,t,u)?w:t,t=false);var o=br();if((null!=e||o!==it)&&(e=o(e,u,3)),t&&jr()===r){t=e;var i;e=-1, | ||
43 | +u=n.length;for(var o=-1,f=[];++e<u;){var a=n[e],c=t?t(a,e,n):a;e&&i===c||(i=c,f[++o]=a)}n=f}else n=Lt(n,e);return n}function Hr(n){if(!n||!n.length)return[];var t=-1,r=0;n=Zn(n,function(n){return Sr(n)?(r=ju(n.length,r),true):void 0});for(var e=De(r);++t<r;)e[t]=Xn(n,Ot(t));return e}function Qr(n,t,r){return n&&n.length?(n=Hr(n),null==t?n:(t=Dt(t,r,4),Xn(n,function(n){return Qn(n,t,w,true)}))):[]}function ne(n,t){var r=-1,e=n?n.length:0,u={};for(!e||t||Wo(n[0])||(t=[]);++r<e;){var o=n[r];t?u[o]=t[r]:o&&(u[o[0]]=o[1]); | ||
44 | +}return u}function te(n){return n=Nn(n),n.__chain__=true,n}function re(n,t,r){return t.call(r,n)}function ee(n,t,r){var e=Wo(n)?Vn:lt;return r&&$r(n,t,r)&&(t=w),(typeof t!="function"||r!==w)&&(t=br(t,r,3)),e(n,t)}function ue(n,t,r){var e=Wo(n)?Zn:pt;return t=br(t,r,3),e(n,t)}function oe(n,t,r,e){var u=n?Vu(n):0;return Lr(u)||(n=Se(n),u=n.length),r=typeof r!="number"||e&&$r(t,r,e)?0:0>r?ju(u+r,0):r||0,typeof n=="string"||!Wo(n)&&Ae(n)?r<=u&&-1<n.indexOf(t,r):!!u&&-1<jr(n,t,r)}function ie(n,t,r){var e=Wo(n)?Xn:bt; | ||
45 | +return t=br(t,r,3),e(n,t)}function fe(n,t,r){if(r?$r(n,t,r):null==t){n=Br(n);var e=n.length;return 0<e?n[Et(0,e-1)]:w}r=-1,n=Oe(n);var e=n.length,u=e-1;for(t=ku(0>t?0:+t||0,e);++r<t;){var e=Et(r,u),o=n[e];n[e]=n[r],n[r]=o}return n.length=t,n}function ae(n,t,r){var e=Wo(n)?nt:Ut;return r&&$r(n,t,r)&&(t=w),(typeof t!="function"||r!==w)&&(t=br(t,r,3)),e(n,t)}function ce(n,t){var r;if(typeof t!="function"){if(typeof n!="function")throw new Xe(T);var e=n;n=t,t=e}return function(){return 0<--n&&(r=t.apply(this,arguments)), | ||
46 | +1>=n&&(t=w),r}}function le(n,t,r){function e(t,r){r&&cu(r),a=p=h=w,t&&(_=wo(),c=n.apply(s,f),p||a||(f=s=w))}function u(){var n=t-(wo()-l);0>=n||n>t?e(h,a):p=_u(u,n)}function o(){e(g,p)}function i(){if(f=arguments,l=wo(),s=this,h=g&&(p||!y),false===v)var r=y&&!p;else{a||y||(_=l);var e=v-(l-_),i=0>=e||e>v;i?(a&&(a=cu(a)),_=l,c=n.apply(s,f)):a||(a=_u(o,e))}return i&&p?p=cu(p):p||t===v||(p=_u(u,t)),r&&(i=true,c=n.apply(s,f)),!i||p||a||(f=s=w),c}var f,a,c,l,s,p,h,_=0,v=false,g=true;if(typeof n!="function")throw new Xe(T); | ||
47 | +if(t=0>t?0:+t||0,true===r)var y=true,g=false;else de(r)&&(y=!!r.leading,v="maxWait"in r&&ju(+r.maxWait||0,t),g="trailing"in r?!!r.trailing:g);return i.cancel=function(){p&&cu(p),a&&cu(a),_=0,a=p=h=w},i}function se(n,t){if(typeof n!="function"||t&&typeof t!="function")throw new Xe(T);var r=function(){var e=arguments,u=t?t.apply(this,e):e[0],o=r.cache;return o.has(u)?o.get(u):(e=n.apply(this,e),r.cache=o.set(u,e),e)};return r.cache=new se.Cache,r}function pe(n,t){if(typeof n!="function")throw new Xe(T);return t=ju(t===w?n.length-1:+t||0,0), | ||
48 | +function(){for(var r=arguments,e=-1,u=ju(r.length-t,0),o=De(u);++e<u;)o[e]=r[t+e];switch(t){case 0:return n.call(this,o);case 1:return n.call(this,r[0],o);case 2:return n.call(this,r[0],r[1],o)}for(u=De(t+1),e=-1;++e<t;)u[e]=r[e];return u[t]=o,n.apply(this,u)}}function he(n,t){return n>t}function _e(n){return h(n)&&Sr(n)&&eu.call(n,"callee")&&!pu.call(n,"callee")}function ve(n,t,r,e){return e=(r=typeof r=="function"?Dt(r,e,3):w)?r(n,t):w,e===w?wt(n,t,r):!!e}function ge(n){return h(n)&&typeof n.message=="string"&&ou.call(n)==q; | ||
49 | +}function ye(n){return de(n)&&ou.call(n)==K}function de(n){var t=typeof n;return!!n&&("object"==t||"function"==t)}function me(n){return null==n?false:ye(n)?fu.test(ru.call(n)):h(n)&&(Gn(n)?fu:In).test(n)}function we(n){return typeof n=="number"||h(n)&&ou.call(n)==V}function xe(n){var t;if(!h(n)||ou.call(n)!=Z||Gn(n)||_e(n)||!(eu.call(n,"constructor")||(t=n.constructor,typeof t!="function"||t instanceof t)))return false;var r;return Nn.support.ownLast?(vt(n,function(n,t,e){return r=eu.call(e,t),false}),false!==r):(vt(n,function(n,t){ | ||
50 | +r=t}),r===w||eu.call(n,r))}function be(n){return de(n)&&ou.call(n)==Y}function Ae(n){return typeof n=="string"||h(n)&&ou.call(n)==G}function je(n){return h(n)&&Lr(n.length)&&!!Fn[ou.call(n)]}function ke(n,t){return n<t}function Oe(n){var t=n?Vu(n):0;return Lr(t)?t?Nn.support.unindexedChars&&Ae(n)?n.split(""):qn(n):[]:Se(n)}function Ie(n){return ot(n,Ee(n))}function Re(n){return dt(n,Ee(n))}function Ee(n){if(null==n)return[];de(n)||(n=Ye(n));for(var t=n.length,r=Nn.support,t=t&&Lr(t)&&(Wo(n)||_e(n)||Ae(n))&&t||0,e=n.constructor,u=-1,e=ye(e)&&e.prototype||nu,o=e===n,i=De(t),f=0<t,a=r.enumErrorProps&&(n===Qe||n instanceof qe),c=r.enumPrototypes&&ye(n);++u<t;)i[u]=u+""; | ||
51 | +for(var l in n)c&&"prototype"==l||a&&("message"==l||"name"==l)||f&&Ur(l,t)||"constructor"==l&&(o||!eu.call(n,l))||i.push(l);if(r.nonEnumShadows&&n!==nu)for(t=n===tu?G:n===Qe?q:ou.call(n),r=Nu[t]||Nu[Z],t==Z&&(e=nu),t=Wn.length;t--;)l=Wn[t],u=r[l],o&&u||(u?!eu.call(n,l):n[l]===e[l])||i.push(l);return i}function Ce(n){n=Dr(n);for(var t=-1,r=Ko(n),e=r.length,u=De(e);++t<e;){var o=r[t];u[t]=[o,n[o]]}return u}function Se(n){return Nt(n,Ko(n))}function Ue(n){return(n=u(n))&&n.replace(En,a).replace(bn,""); | ||
52 | +}function $e(n,t){var r="";if(n=u(n),t=+t,1>t||!n||!bu(t))return r;do t%2&&(r+=n),t=wu(t/2),n+=n;while(t);return r}function We(n,t,r){var e=n;return(n=u(n))?(r?$r(e,t,r):null==t)?n.slice(g(n),y(n)+1):(t+="",n.slice(o(n,t),i(n,t)+1)):n}function Fe(n,t,r){return r&&$r(n,t,r)&&(t=w),n=u(n),n.match(t||Un)||[]}function Le(n,t,r){return r&&$r(n,t,r)&&(t=w),h(n)?Te(n):it(n,t)}function Ne(n){return n}function Te(n){return At(ft(n,true))}function Pe(n,t,r){if(null==r){var e=de(t),u=e?Ko(t):w;((u=u&&u.length?dt(t,u):w)?u.length:e)||(u=false, | ||
53 | +r=t,t=n,n=this)}u||(u=dt(t,Ko(t)));var o=true,e=-1,i=ye(n),f=u.length;false===r?o=false:de(r)&&"chain"in r&&(o=r.chain);for(;++e<f;){r=u[e];var a=t[r];n[r]=a,i&&(n.prototype[r]=function(t){return function(){var r=this.__chain__;if(o||r){var e=n(this.__wrapped__);return(e.__actions__=qn(this.__actions__)).push({func:t,args:arguments,thisArg:n}),e.__chain__=r,e}return t.apply(n,Hn([this.value()],arguments))}}(a))}return n}function ze(){}function Be(n){return Wr(n)?Ot(n):It(n)}_=_?Jn.defaults(Yn.Object(),_,Jn.pick(Yn,$n)):Yn; | ||
54 | +var De=_.Array,Me=_.Date,qe=_.Error,Ke=_.Function,Ve=_.Math,Ze=_.Number,Ye=_.Object,Ge=_.RegExp,Je=_.String,Xe=_.TypeError,He=De.prototype,Qe=qe.prototype,nu=Ye.prototype,tu=Je.prototype,ru=Ke.prototype.toString,eu=nu.hasOwnProperty,uu=0,ou=nu.toString,iu=Yn._,fu=Ge("^"+ru.call(eu).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),au=_.ArrayBuffer,cu=_.clearTimeout,lu=_.parseFloat,su=Ve.pow,pu=nu.propertyIsEnumerable,hu=Or(_,"Set"),_u=_.setTimeout,vu=He.splice,gu=_.Uint8Array,yu=Or(_,"WeakMap"),du=Ve.ceil,mu=Or(Ye,"create"),wu=Ve.floor,xu=Or(De,"isArray"),bu=_.isFinite,Au=Or(Ye,"keys"),ju=Ve.max,ku=Ve.min,Ou=Or(Me,"now"),Iu=_.parseInt,Ru=Ve.random,Eu=Ze.NEGATIVE_INFINITY,Cu=Ze.POSITIVE_INFINITY,Su=4294967294,Uu=2147483647,$u=9007199254740991,Wu=yu&&new yu,Fu={},Lu={}; | ||
55 | +Lu[X]=_.Float32Array,Lu[H]=_.Float64Array,Lu[Q]=_.Int8Array,Lu[nn]=_.Int16Array,Lu[tn]=_.Int32Array,Lu[rn]=gu,Lu[en]=_.Uint8ClampedArray,Lu[un]=_.Uint16Array,Lu[on]=_.Uint32Array;var Nu={};Nu[B]=Nu[M]=Nu[V]={constructor:true,toLocaleString:true,toString:true,valueOf:true},Nu[D]=Nu[G]={constructor:true,toString:true,valueOf:true},Nu[q]=Nu[K]=Nu[Y]={constructor:true,toString:true},Nu[Z]={constructor:true},Kn(Wn,function(n){for(var t in Nu)if(eu.call(Nu,t)){var r=Nu[t];r[n]=eu.call(r,n)}});var Tu=Nn.support={};!function(n){ | ||
56 | +var t=function(){this.x=n},r={0:n,length:n},e=[];t.prototype={valueOf:n,y:n};for(var u in new t)e.push(u);Tu.enumErrorProps=pu.call(Qe,"message")||pu.call(Qe,"name"),Tu.enumPrototypes=pu.call(t,"prototype"),Tu.nonEnumShadows=!/valueOf/.test(e),Tu.ownLast="x"!=e[0],Tu.spliceObjects=(vu.call(r,0,1),!r[0]),Tu.unindexedChars="xx"!="x"[0]+Ye("x")[0]}(1,0),Nn.templateSettings={escape:_n,evaluate:vn,interpolate:gn,variable:"",imports:{_:Nn}};var Pu=function(){function n(){}return function(t){if(de(t)){n.prototype=t; | ||
57 | +var r=new n;n.prototype=w}return r||{}}}(),zu=Yt(gt),Bu=Yt(yt,true),Du=Gt(),Mu=Gt(true),qu=Wu?function(n,t){return Wu.set(n,t),n}:Ne,Ku=Wu?function(n){return Wu.get(n)}:ze,Vu=Ot("length"),Zu=function(){var n=0,t=0;return function(r,e){var u=wo(),o=W-(u-t);if(t=u,0<o){if(++n>=$)return r}else n=0;return qu(r,e)}}(),Yu=pe(function(n,t){return h(n)&&Sr(n)?ct(n,_t(t,false,true)):[]}),Gu=er(),Ju=er(true),Xu=pe(function(n){for(var t=n.length,e=t,u=De(l),o=jr(),i=o===r,f=[];e--;){var a=n[e]=Sr(a=n[e])?a:[];u[e]=i&&120<=a.length&&mu&&hu?new Dn(e&&a):null; | ||
58 | +}var i=n[0],c=-1,l=i?i.length:0,s=u[0];n:for(;++c<l;)if(a=i[c],0>(s?Mn(s,a):o(f,a,0))){for(e=t;--e;){var p=u[e];if(0>(p?Mn(p,a):o(n[e],a,0)))continue n}s&&s.push(a),f.push(a)}return f}),Hu=pe(function(t,r){r=_t(r);var e=ut(t,r);return Rt(t,r.sort(n)),e}),Qu=yr(),no=yr(true),to=pe(function(n){return Lt(_t(n,false,true))}),ro=pe(function(n,t){return Sr(n)?ct(n,t):[]}),eo=pe(Hr),uo=pe(function(n){var t=n.length,r=2<t?n[t-2]:w,e=1<t?n[t-1]:w;return 2<t&&typeof r=="function"?t-=2:(r=1<t&&typeof e=="function"?(--t, | ||
59 | +e):w,e=w),n.length=t,Qr(n,r,e)}),oo=pe(function(n){return n=_t(n),this.thru(function(t){t=Wo(t)?t:[Dr(t)];for(var r=n,e=-1,u=t.length,o=-1,i=r.length,f=De(u+i);++e<u;)f[e]=t[e];for(;++o<i;)f[e++]=r[o];return f})}),io=pe(function(n,t){return Sr(n)&&(n=Br(n)),ut(n,_t(t))}),fo=Vt(function(n,t,r){eu.call(n,r)?++n[r]:n[r]=1}),ao=rr(zu),co=rr(Bu,true),lo=ir(Kn,zu),so=ir(function(n,t){for(var r=n.length;r--&&false!==t(n[r],r,n););return n},Bu),po=Vt(function(n,t,r){eu.call(n,r)?n[r].push(t):n[r]=[t]}),ho=Vt(function(n,t,r){ | ||
60 | +n[r]=t}),_o=pe(function(n,t,r){var e=-1,u=typeof t=="function",o=Wr(t),i=Sr(n)?De(n.length):[];return zu(n,function(n){var f=u?t:o&&null!=n?n[t]:w;i[++e]=f?f.apply(n,r):Cr(n,t,r)}),i}),vo=Vt(function(n,t,r){n[r?0:1].push(t)},function(){return[[],[]]}),go=pr(Qn,zu),yo=pr(function(n,t,r,e){var u=n.length;for(e&&u&&(r=n[--u]);u--;)r=t(r,n[u],u,n);return r},Bu),mo=pe(function(n,t){if(null==n)return[];var r=t[2];return r&&$r(t[0],t[1],r)&&(t.length=1),Wt(n,_t(t),[])}),wo=Ou||function(){return(new Me).getTime(); | ||
61 | +},xo=pe(function(n,t,r){var e=b;if(r.length)var u=v(r,xo.placeholder),e=e|I;return dr(n,e,t,r,u)}),bo=pe(function(n,t){t=t.length?_t(t):Re(n);for(var r=-1,e=t.length;++r<e;){var u=t[r];n[u]=dr(n[u],b,n)}return n}),Ao=pe(function(n,t,r){var e=b|A;if(r.length)var u=v(r,Ao.placeholder),e=e|I;return dr(t,e,n,r,u)}),jo=Qt(k),ko=Qt(O),Oo=pe(function(n,t){return at(n,1,t)}),Io=pe(function(n,t,r){return at(n,t,r)}),Ro=or(),Eo=or(true),Co=pe(function(n,t){if(t=_t(t),typeof n!="function"||!Vn(t,e))throw new Xe(T); | ||
62 | +var r=t.length;return pe(function(e){for(var u=ku(e.length,r);u--;)e[u]=t[u](e[u]);return n.apply(this,e)})}),So=sr(I),Uo=sr(R),$o=pe(function(n,t){return dr(n,C,w,w,w,_t(t))}),Wo=xu||function(n){return h(n)&&Lr(n.length)&&ou.call(n)==B},Fo=Zt(kt),Lo=Zt(function(n,t,r){return r?rt(n,t,r):et(n,t)}),No=nr(Lo,function(n,t){return n===w?t:n}),To=nr(Fo,Nr),Po=ur(gt),zo=ur(yt),Bo=fr(Du),Do=fr(Mu),Mo=ar(gt),qo=ar(yt),Ko=Au?function(n){var t=null==n?w:n.constructor;return typeof t=="function"&&t.prototype===n||(typeof n=="function"?Nn.support.enumPrototypes:Sr(n))?zr(n):de(n)?Au(n):[]; | ||
63 | +}:zr,Vo=cr(true),Zo=cr(),Yo=pe(function(n,t){if(null==n)return{};if("function"!=typeof t[0])return t=Xn(_t(t),Je),Tr(n,ct(Ee(n),t));var r=Dt(t[0],t[1],3);return Pr(n,function(n,t,e){return!r(n,t,e)})}),Go=pe(function(n,t){return null==n?{}:"function"==typeof t[0]?Pr(n,Dt(t[0],t[1],3)):Tr(n,_t(t))}),Jo=Xt(function(n,t,r){return t=t.toLowerCase(),n+(r?t.charAt(0).toUpperCase()+t.slice(1):t)}),Xo=Xt(function(n,t,r){return n+(r?"-":"")+t.toLowerCase()}),Ho=lr(),Qo=lr(true),ni=Xt(function(n,t,r){return n+(r?"_":"")+t.toLowerCase(); | ||
64 | +}),ti=Xt(function(n,t,r){return n+(r?" ":"")+(t.charAt(0).toUpperCase()+t.slice(1))}),ri=pe(function(n,t){try{return n.apply(w,t)}catch(r){return ge(r)?r:new qe(r)}}),ei=pe(function(n,t){return function(r){return Cr(r,n,t)}}),ui=pe(function(n,t){return function(r){return Cr(n,r,t)}}),oi=gr("ceil"),ii=gr("floor"),fi=tr(he,Eu),ai=tr(ke,Cu),ci=gr("round");return Nn.prototype=Tn.prototype,Pn.prototype=Pu(Tn.prototype),Pn.prototype.constructor=Pn,zn.prototype=Pu(Tn.prototype),zn.prototype.constructor=zn, | ||
65 | +Bn.prototype["delete"]=function(n){return this.has(n)&&delete this.__data__[n]},Bn.prototype.get=function(n){return"__proto__"==n?w:this.__data__[n]},Bn.prototype.has=function(n){return"__proto__"!=n&&eu.call(this.__data__,n)},Bn.prototype.set=function(n,t){return"__proto__"!=n&&(this.__data__[n]=t),this},Dn.prototype.push=function(n){var t=this.data;typeof n=="string"||de(n)?t.set.add(n):t.hash[n]=true},se.Cache=Bn,Nn.after=function(n,t){if(typeof t!="function"){if(typeof n!="function")throw new Xe(T); | ||
66 | +var r=n;n=t,t=r}return n=bu(n=+n)?n:0,function(){return 1>--n?t.apply(this,arguments):void 0}},Nn.ary=function(n,t,r){return r&&$r(n,t,r)&&(t=w),t=n&&null==t?n.length:ju(+t||0,0),dr(n,E,w,w,w,w,t)},Nn.assign=Lo,Nn.at=io,Nn.before=ce,Nn.bind=xo,Nn.bindAll=bo,Nn.bindKey=Ao,Nn.callback=Le,Nn.chain=te,Nn.chunk=function(n,t,r){t=(r?$r(n,t,r):null==t)?1:ju(wu(t)||1,1),r=0;for(var e=n?n.length:0,u=-1,o=De(du(e/t));r<e;)o[++u]=St(n,r,r+=t);return o},Nn.compact=function(n){for(var t=-1,r=n?n.length:0,e=-1,u=[];++t<r;){ | ||
67 | +var o=n[t];o&&(u[++e]=o)}return u},Nn.constant=function(n){return function(){return n}},Nn.countBy=fo,Nn.create=function(n,t,r){var e=Pu(n);return r&&$r(n,t,r)&&(t=w),t?et(e,t):e},Nn.curry=jo,Nn.curryRight=ko,Nn.debounce=le,Nn.defaults=No,Nn.defaultsDeep=To,Nn.defer=Oo,Nn.delay=Io,Nn.difference=Yu,Nn.drop=Kr,Nn.dropRight=Vr,Nn.dropRightWhile=function(n,t,r){return n&&n.length?Tt(n,br(t,r,3),true,true):[]},Nn.dropWhile=function(n,t,r){return n&&n.length?Tt(n,br(t,r,3),true):[]},Nn.fill=function(n,t,r,e){ | ||
68 | +var u=n?n.length:0;if(!u)return[];for(r&&typeof r!="number"&&$r(n,t,r)&&(r=0,e=u),u=n.length,r=null==r?0:+r||0,0>r&&(r=-r>u?0:u+r),e=e===w||e>u?u:+e||0,0>e&&(e+=u),u=r>e?0:e>>>0,r>>>=0;r<u;)n[r++]=t;return n},Nn.filter=ue,Nn.flatten=function(n,t,r){var e=n?n.length:0;return r&&$r(n,t,r)&&(t=false),e?_t(n,t):[]},Nn.flattenDeep=function(n){return n&&n.length?_t(n,true):[]},Nn.flow=Ro,Nn.flowRight=Eo,Nn.forEach=lo,Nn.forEachRight=so,Nn.forIn=Bo,Nn.forInRight=Do,Nn.forOwn=Mo,Nn.forOwnRight=qo,Nn.functions=Re, | ||
69 | +Nn.groupBy=po,Nn.indexBy=ho,Nn.initial=function(n){return Vr(n,1)},Nn.intersection=Xu,Nn.invert=function(n,t,r){r&&$r(n,t,r)&&(t=w),r=-1;for(var e=Ko(n),u=e.length,o={};++r<u;){var i=e[r],f=n[i];t?eu.call(o,f)?o[f].push(i):o[f]=[i]:o[f]=i}return o},Nn.invoke=_o,Nn.keys=Ko,Nn.keysIn=Ee,Nn.map=ie,Nn.mapKeys=Vo,Nn.mapValues=Zo,Nn.matches=Te,Nn.matchesProperty=function(n,t){return jt(n,ft(t,true))},Nn.memoize=se,Nn.merge=Fo,Nn.method=ei,Nn.methodOf=ui,Nn.mixin=Pe,Nn.modArgs=Co,Nn.negate=function(n){if(typeof n!="function")throw new Xe(T); | ||
70 | +return function(){return!n.apply(this,arguments)}},Nn.omit=Yo,Nn.once=function(n){return ce(2,n)},Nn.pairs=Ce,Nn.partial=So,Nn.partialRight=Uo,Nn.partition=vo,Nn.pick=Go,Nn.pluck=function(n,t){return ie(n,Be(t))},Nn.property=Be,Nn.propertyOf=function(n){return function(t){return mt(n,Mr(t),t+"")}},Nn.pull=function(){var n=arguments,t=n[0];if(!t||!t.length)return t;for(var r=0,e=jr(),u=n.length;++r<u;)for(var o=0,i=n[r];-1<(o=e(t,i,o));)vu.call(t,o,1);return t},Nn.pullAt=Hu,Nn.range=function(n,t,r){ | ||
71 | +r&&$r(n,t,r)&&(t=r=w),n=+n||0,r=null==r?1:+r||0,null==t?(t=n,n=0):t=+t||0;var e=-1;t=ju(du((t-n)/(r||1)),0);for(var u=De(t);++e<t;)u[e]=n,n+=r;return u},Nn.rearg=$o,Nn.reject=function(n,t,r){var e=Wo(n)?Zn:pt;return t=br(t,r,3),e(n,function(n,r,e){return!t(n,r,e)})},Nn.remove=function(n,t,r){var e=[];if(!n||!n.length)return e;var u=-1,o=[],i=n.length;for(t=br(t,r,3);++u<i;)r=n[u],t(r,u,n)&&(e.push(r),o.push(u));return Rt(n,o),e},Nn.rest=Jr,Nn.restParam=pe,Nn.set=function(n,t,r){if(null==n)return n; | ||
72 | +var e=t+"";t=null!=n[e]||Wr(t,n)?[e]:Mr(t);for(var e=-1,u=t.length,o=u-1,i=n;null!=i&&++e<u;){var f=t[e];de(i)&&(e==o?i[f]=r:null==i[f]&&(i[f]=Ur(t[e+1])?[]:{})),i=i[f]}return n},Nn.shuffle=function(n){return fe(n,Cu)},Nn.slice=function(n,t,r){var e=n?n.length:0;return e?(r&&typeof r!="number"&&$r(n,t,r)&&(t=0,r=e),St(n,t,r)):[]},Nn.sortBy=function(n,t,r){if(null==n)return[];r&&$r(n,t,r)&&(t=w);var e=-1;return t=br(t,r,3),n=bt(n,function(n,r,u){return{a:t(n,r,u),b:++e,c:n}}),$t(n,f)},Nn.sortByAll=mo, | ||
73 | +Nn.sortByOrder=function(n,t,r,e){return null==n?[]:(e&&$r(t,r,e)&&(r=w),Wo(t)||(t=null==t?[]:[t]),Wo(r)||(r=null==r?[]:[r]),Wt(n,t,r))},Nn.spread=function(n){if(typeof n!="function")throw new Xe(T);return function(t){return n.apply(this,t)}},Nn.take=function(n,t,r){return n&&n.length?((r?$r(n,t,r):null==t)&&(t=1),St(n,0,0>t?0:t)):[]},Nn.takeRight=function(n,t,r){var e=n?n.length:0;return e?((r?$r(n,t,r):null==t)&&(t=1),t=e-(+t||0),St(n,0>t?0:t)):[]},Nn.takeRightWhile=function(n,t,r){return n&&n.length?Tt(n,br(t,r,3),false,true):[]; | ||
74 | +},Nn.takeWhile=function(n,t,r){return n&&n.length?Tt(n,br(t,r,3)):[]},Nn.tap=function(n,t,r){return t.call(r,n),n},Nn.throttle=function(n,t,r){var e=true,u=true;if(typeof n!="function")throw new Xe(T);return false===r?e=false:de(r)&&(e="leading"in r?!!r.leading:e,u="trailing"in r?!!r.trailing:u),le(n,t,{leading:e,maxWait:+t,trailing:u})},Nn.thru=re,Nn.times=function(n,t,r){if(n=wu(n),1>n||!bu(n))return[];var e=-1,u=De(ku(n,4294967295));for(t=Dt(t,r,1);++e<n;)4294967295>e?u[e]=t(e):t(e);return u},Nn.toArray=Oe, | ||
75 | +Nn.toPlainObject=Ie,Nn.transform=function(n,t,r,e){var u=Wo(n)||je(n);return t=br(t,e,4),null==r&&(u||de(n)?(e=n.constructor,r=u?Wo(n)?new e:[]:Pu(ye(e)?e.prototype:w)):r={}),(u?Kn:gt)(n,function(n,e,u){return t(r,n,e,u)}),r},Nn.union=to,Nn.uniq=Xr,Nn.unzip=Hr,Nn.unzipWith=Qr,Nn.values=Se,Nn.valuesIn=function(n){return Nt(n,Ee(n))},Nn.where=function(n,t){return ue(n,At(t))},Nn.without=ro,Nn.wrap=function(n,t){return t=null==t?Ne:t,dr(t,I,w,[n],[])},Nn.xor=function(){for(var n=-1,t=arguments.length;++n<t;){ | ||
76 | +var r=arguments[n];if(Sr(r))var e=e?Hn(ct(e,r),ct(r,e)):r}return e?Lt(e):[]},Nn.zip=eo,Nn.zipObject=ne,Nn.zipWith=uo,Nn.backflow=Eo,Nn.collect=ie,Nn.compose=Eo,Nn.each=lo,Nn.eachRight=so,Nn.extend=Lo,Nn.iteratee=Le,Nn.methods=Re,Nn.object=ne,Nn.select=ue,Nn.tail=Jr,Nn.unique=Xr,Pe(Nn,Nn),Nn.add=function(n,t){return(+n||0)+(+t||0)},Nn.attempt=ri,Nn.camelCase=Jo,Nn.capitalize=function(n){return(n=u(n))&&n.charAt(0).toUpperCase()+n.slice(1)},Nn.ceil=oi,Nn.clone=function(n,t,r,e){return t&&typeof t!="boolean"&&$r(n,t,r)?t=false:typeof t=="function"&&(e=r, | ||
77 | +r=t,t=false),typeof r=="function"?ft(n,t,Dt(r,e,3)):ft(n,t)},Nn.cloneDeep=function(n,t,r){return typeof t=="function"?ft(n,true,Dt(t,r,3)):ft(n,true)},Nn.deburr=Ue,Nn.endsWith=function(n,t,r){n=u(n),t+="";var e=n.length;return r=r===w?e:ku(0>r?0:+r||0,e),r-=t.length,0<=r&&n.indexOf(t,r)==r},Nn.escape=function(n){return(n=u(n))&&hn.test(n)?n.replace(sn,c):n},Nn.escapeRegExp=function(n){return(n=u(n))&&xn.test(n)?n.replace(wn,l):n||"(?:)"},Nn.every=ee,Nn.find=ao,Nn.findIndex=Gu,Nn.findKey=Po,Nn.findLast=co, | ||
78 | +Nn.findLastIndex=Ju,Nn.findLastKey=zo,Nn.findWhere=function(n,t){return ao(n,At(t))},Nn.first=Zr,Nn.floor=ii,Nn.get=function(n,t,r){return n=null==n?w:mt(n,Mr(t),t+""),n===w?r:n},Nn.gt=he,Nn.gte=function(n,t){return n>=t},Nn.has=function(n,t){if(null==n)return false;var r=eu.call(n,t);if(!r&&!Wr(t)){if(t=Mr(t),n=1==t.length?n:mt(n,St(t,0,-1)),null==n)return false;t=Gr(t),r=eu.call(n,t)}return r||Lr(n.length)&&Ur(t,n.length)&&(Wo(n)||_e(n)||Ae(n))},Nn.identity=Ne,Nn.includes=oe,Nn.indexOf=Yr,Nn.inRange=function(n,t,r){ | ||
79 | +return t=+t||0,r===w?(r=t,t=0):r=+r||0,n>=ku(t,r)&&n<ju(t,r)},Nn.isArguments=_e,Nn.isArray=Wo,Nn.isBoolean=function(n){return true===n||false===n||h(n)&&ou.call(n)==D},Nn.isDate=function(n){return h(n)&&ou.call(n)==M},Nn.isElement=function(n){return!!n&&1===n.nodeType&&h(n)&&!xe(n)},Nn.isEmpty=function(n){return null==n?true:Sr(n)&&(Wo(n)||Ae(n)||_e(n)||h(n)&&ye(n.splice))?!n.length:!Ko(n).length},Nn.isEqual=ve,Nn.isError=ge,Nn.isFinite=function(n){return typeof n=="number"&&bu(n)},Nn.isFunction=ye,Nn.isMatch=function(n,t,r,e){ | ||
80 | +return r=typeof r=="function"?Dt(r,e,3):w,xt(n,kr(t),r)},Nn.isNaN=function(n){return we(n)&&n!=+n},Nn.isNative=me,Nn.isNull=function(n){return null===n},Nn.isNumber=we,Nn.isObject=de,Nn.isPlainObject=xe,Nn.isRegExp=be,Nn.isString=Ae,Nn.isTypedArray=je,Nn.isUndefined=function(n){return n===w},Nn.kebabCase=Xo,Nn.last=Gr,Nn.lastIndexOf=function(n,t,r){var e=n?n.length:0;if(!e)return-1;var u=e;if(typeof r=="number")u=(0>r?ju(e+r,0):ku(r||0,e-1))+1;else if(r)return u=zt(n,t,true)-1,n=n[u],(t===t?t===n:n!==n)?u:-1; | ||
81 | +if(t!==t)return p(n,u,true);for(;u--;)if(n[u]===t)return u;return-1},Nn.lt=ke,Nn.lte=function(n,t){return n<=t},Nn.max=fi,Nn.min=ai,Nn.noConflict=function(){return Yn._=iu,this},Nn.noop=ze,Nn.now=wo,Nn.pad=function(n,t,r){n=u(n),t=+t;var e=n.length;return e<t&&bu(t)?(e=(t-e)/2,t=wu(e),e=du(e),r=_r("",e,r),r.slice(0,t)+n+r):n},Nn.padLeft=Ho,Nn.padRight=Qo,Nn.parseInt=function(n,t,r){return(r?$r(n,t,r):null==t)?t=0:t&&(t=+t),n=We(n),Iu(n,t||(On.test(n)?16:10))},Nn.random=function(n,t,r){r&&$r(n,t,r)&&(t=r=w); | ||
82 | +var e=null==n,u=null==t;return null==r&&(u&&typeof n=="boolean"?(r=n,n=1):typeof t=="boolean"&&(r=t,u=true)),e&&u&&(t=1,u=false),n=+n||0,u?(t=n,n=0):t=+t||0,r||n%1||t%1?(r=Ru(),ku(n+r*(t-n+lu("1e-"+((r+"").length-1))),t)):Et(n,t)},Nn.reduce=go,Nn.reduceRight=yo,Nn.repeat=$e,Nn.result=function(n,t,r){var e=null==n?w:Dr(n)[t];return e===w&&(null==n||Wr(t,n)||(t=Mr(t),n=1==t.length?n:mt(n,St(t,0,-1)),e=null==n?w:Dr(n)[Gr(t)]),e=e===w?r:e),ye(e)?e.call(n):e},Nn.round=ci,Nn.runInContext=m,Nn.size=function(n){ | ||
83 | +var t=n?Vu(n):0;return Lr(t)?t:Ko(n).length},Nn.snakeCase=ni,Nn.some=ae,Nn.sortedIndex=Qu,Nn.sortedLastIndex=no,Nn.startCase=ti,Nn.startsWith=function(n,t,r){return n=u(n),r=null==r?0:ku(0>r?0:+r||0,n.length),n.lastIndexOf(t,r)==r},Nn.sum=function(n,t,r){if(r&&$r(n,t,r)&&(t=w),t=br(t,r,3),1==t.length){n=Wo(n)?n:Br(n),r=n.length;for(var e=0;r--;)e+=+t(n[r])||0;n=e}else n=Ft(n,t);return n},Nn.template=function(n,t,r){var e=Nn.templateSettings;r&&$r(n,t,r)&&(t=r=w),n=u(n),t=rt(et({},r||t),e,tt),r=rt(et({},t.imports),e.imports,tt); | ||
84 | +var o,i,f=Ko(r),a=Nt(r,f),c=0;r=t.interpolate||Cn;var l="__p+='";r=Ge((t.escape||Cn).source+"|"+r.source+"|"+(r===gn?jn:Cn).source+"|"+(t.evaluate||Cn).source+"|$","g");var p="sourceURL"in t?"//# sourceURL="+t.sourceURL+"\n":"";if(n.replace(r,function(t,r,e,u,f,a){return e||(e=u),l+=n.slice(c,a).replace(Sn,s),r&&(o=true,l+="'+__e("+r+")+'"),f&&(i=true,l+="';"+f+";\n__p+='"),e&&(l+="'+((__t=("+e+"))==null?'':__t)+'"),c=a+t.length,t}),l+="';",(t=t.variable)||(l="with(obj){"+l+"}"),l=(i?l.replace(fn,""):l).replace(an,"$1").replace(cn,"$1;"), | ||
85 | +l="function("+(t||"obj")+"){"+(t?"":"obj||(obj={});")+"var __t,__p=''"+(o?",__e=_.escape":"")+(i?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+l+"return __p}",t=ri(function(){return Ke(f,p+"return "+l).apply(w,a)}),t.source=l,ge(t))throw t;return t},Nn.trim=We,Nn.trimLeft=function(n,t,r){var e=n;return(n=u(n))?n.slice((r?$r(e,t,r):null==t)?g(n):o(n,t+"")):n},Nn.trimRight=function(n,t,r){var e=n;return(n=u(n))?(r?$r(e,t,r):null==t)?n.slice(0,y(n)+1):n.slice(0,i(n,t+"")+1):n; | ||
86 | +},Nn.trunc=function(n,t,r){r&&$r(n,t,r)&&(t=w);var e=S;if(r=U,null!=t)if(de(t)){var o="separator"in t?t.separator:o,e="length"in t?+t.length||0:e;r="omission"in t?u(t.omission):r}else e=+t||0;if(n=u(n),e>=n.length)return n;if(e-=r.length,1>e)return r;if(t=n.slice(0,e),null==o)return t+r;if(be(o)){if(n.slice(e).search(o)){var i,f=n.slice(0,e);for(o.global||(o=Ge(o.source,(kn.exec(o)||"")+"g")),o.lastIndex=0;n=o.exec(f);)i=n.index;t=t.slice(0,null==i?e:i)}}else n.indexOf(o,e)!=e&&(o=t.lastIndexOf(o), | ||
87 | +-1<o&&(t=t.slice(0,o)));return t+r},Nn.unescape=function(n){return(n=u(n))&&pn.test(n)?n.replace(ln,d):n},Nn.uniqueId=function(n){var t=++uu;return u(n)+t},Nn.words=Fe,Nn.all=ee,Nn.any=ae,Nn.contains=oe,Nn.eq=ve,Nn.detect=ao,Nn.foldl=go,Nn.foldr=yo,Nn.head=Zr,Nn.include=oe,Nn.inject=go,Pe(Nn,function(){var n={};return gt(Nn,function(t,r){Nn.prototype[r]||(n[r]=t)}),n}(),false),Nn.sample=fe,Nn.prototype.sample=function(n){return this.__chain__||null!=n?this.thru(function(t){return fe(t,n)}):fe(this.value()); | ||
88 | +},Nn.VERSION=x,Kn("bind bindKey curry curryRight partial partialRight".split(" "),function(n){Nn[n].placeholder=Nn}),Kn(["drop","take"],function(n,t){zn.prototype[n]=function(r){var e=this.__filtered__;if(e&&!t)return new zn(this);r=null==r?1:ju(wu(r)||0,0);var u=this.clone();return e?u.__takeCount__=ku(u.__takeCount__,r):u.__views__.push({size:r,type:n+(0>u.__dir__?"Right":"")}),u},zn.prototype[n+"Right"]=function(t){return this.reverse()[n](t).reverse()}}),Kn(["filter","map","takeWhile"],function(n,t){ | ||
89 | +var r=t+1,e=r!=N;zn.prototype[n]=function(n,t){var u=this.clone();return u.__iteratees__.push({iteratee:br(n,t,1),type:r}),u.__filtered__=u.__filtered__||e,u}}),Kn(["first","last"],function(n,t){var r="take"+(t?"Right":"");zn.prototype[n]=function(){return this[r](1).value()[0]}}),Kn(["initial","rest"],function(n,t){var r="drop"+(t?"":"Right");zn.prototype[n]=function(){return this.__filtered__?new zn(this):this[r](1)}}),Kn(["pluck","where"],function(n,t){var r=t?"filter":"map",e=t?At:Be;zn.prototype[n]=function(n){ | ||
90 | +return this[r](e(n))}}),zn.prototype.compact=function(){return this.filter(Ne)},zn.prototype.reject=function(n,t){return n=br(n,t,1),this.filter(function(t){return!n(t)})},zn.prototype.slice=function(n,t){n=null==n?0:+n||0;var r=this;return r.__filtered__&&(0<n||0>t)?new zn(r):(0>n?r=r.takeRight(-n):n&&(r=r.drop(n)),t!==w&&(t=+t||0,r=0>t?r.dropRight(-t):r.take(t-n)),r)},zn.prototype.takeRightWhile=function(n,t){return this.reverse().takeWhile(n,t).reverse()},zn.prototype.toArray=function(){return this.take(Cu); | ||
91 | +},gt(zn.prototype,function(n,t){var r=/^(?:filter|map|reject)|While$/.test(t),e=/^(?:first|last)$/.test(t),u=Nn[e?"take"+("last"==t?"Right":""):t];u&&(Nn.prototype[t]=function(){var t=e?[1]:arguments,o=this.__chain__,i=this.__wrapped__,f=!!this.__actions__.length,a=i instanceof zn,c=t[0],l=a||Wo(i);l&&r&&typeof c=="function"&&1!=c.length&&(a=l=false);var s=function(n){return e&&o?u(n,1)[0]:u.apply(w,Hn([n],t))},c={func:re,args:[s],thisArg:w},f=a&&!f;return e&&!o?f?(i=i.clone(),i.__actions__.push(c), | ||
92 | +n.call(i)):u.call(w,this.value())[0]:!e&&l?(i=f?i:new zn(this),i=n.apply(i,t),i.__actions__.push(c),new Pn(i,o)):this.thru(s)})}),Kn("join pop push replace shift sort splice split unshift".split(" "),function(n){var t=(/^(?:replace|split)$/.test(n)?tu:He)[n],r=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",e=!Tu.spliceObjects&&/^(?:pop|shift|splice)$/.test(n),u=/^(?:join|pop|replace|shift)$/.test(n),o=e?function(){var n=t.apply(this,arguments);return 0===this.length&&delete this[0],n}:t;Nn.prototype[n]=function(){ | ||
93 | +var n=arguments;return u&&!this.__chain__?o.apply(this.value(),n):this[r](function(t){return o.apply(t,n)})}}),gt(zn.prototype,function(n,t){var r=Nn[t];if(r){var e=r.name+"";(Fu[e]||(Fu[e]=[])).push({name:t,func:r})}}),Fu[hr(w,A).name]=[{name:"wrapper",func:w}],zn.prototype.clone=function(){var n=new zn(this.__wrapped__);return n.__actions__=qn(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=qn(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=qn(this.__views__), | ||
94 | +n},zn.prototype.reverse=function(){if(this.__filtered__){var n=new zn(this);n.__dir__=-1,n.__filtered__=true}else n=this.clone(),n.__dir__*=-1;return n},zn.prototype.value=function(){var n,t=this.__wrapped__.value(),r=this.__dir__,e=Wo(t),u=0>r,o=e?t.length:0;n=0;for(var i=o,f=this.__views__,a=-1,c=f.length;++a<c;){var l=f[a],s=l.size;switch(l.type){case"drop":n+=s;break;case"dropRight":i-=s;break;case"take":i=ku(i,n+s);break;case"takeRight":n=ju(n,i-s)}}if(n={start:n,end:i},i=n.start,f=n.end,n=f-i, | ||
95 | +u=u?f:i-1,i=this.__iteratees__,f=i.length,a=0,c=ku(n,this.__takeCount__),!e||o<F||o==n&&c==n)return Pt(t,this.__actions__);e=[];n:for(;n--&&a<c;){for(u+=r,o=-1,l=t[u];++o<f;){var p=i[o],s=p.type,p=p.iteratee(l);if(s==N)l=p;else if(!p){if(s==L)continue n;break n}}e[a++]=l}return e},Nn.prototype.chain=function(){return te(this)},Nn.prototype.commit=function(){return new Pn(this.value(),this.__chain__)},Nn.prototype.concat=oo,Nn.prototype.plant=function(n){for(var t,r=this;r instanceof Tn;){var e=qr(r); | ||
96 | +t?u.__wrapped__=e:t=e;var u=e,r=r.__wrapped__}return u.__wrapped__=n,t},Nn.prototype.reverse=function(){var n=this.__wrapped__,t=function(n){return n.reverse()};return n instanceof zn?(this.__actions__.length&&(n=new zn(this)),n=n.reverse(),n.__actions__.push({func:re,args:[t],thisArg:w}),new Pn(n,this.__chain__)):this.thru(t)},Nn.prototype.toString=function(){return this.value()+""},Nn.prototype.run=Nn.prototype.toJSON=Nn.prototype.valueOf=Nn.prototype.value=function(){return Pt(this.__wrapped__,this.__actions__); | ||
97 | +},Nn.prototype.collect=Nn.prototype.map,Nn.prototype.head=Nn.prototype.first,Nn.prototype.select=Nn.prototype.filter,Nn.prototype.tail=Nn.prototype.rest,Nn}var w,x="3.10.1",b=1,A=2,j=4,k=8,O=16,I=32,R=64,E=128,C=256,S=30,U="...",$=150,W=16,F=200,L=1,N=2,T="Expected a function",P="__lodash_placeholder__",z="[object Arguments]",B="[object Array]",D="[object Boolean]",M="[object Date]",q="[object Error]",K="[object Function]",V="[object Number]",Z="[object Object]",Y="[object RegExp]",G="[object String]",J="[object ArrayBuffer]",X="[object Float32Array]",H="[object Float64Array]",Q="[object Int8Array]",nn="[object Int16Array]",tn="[object Int32Array]",rn="[object Uint8Array]",en="[object Uint8ClampedArray]",un="[object Uint16Array]",on="[object Uint32Array]",fn=/\b__p\+='';/g,an=/\b(__p\+=)''\+/g,cn=/(__e\(.*?\)|\b__t\))\+'';/g,ln=/&(?:amp|lt|gt|quot|#39|#96);/g,sn=/[&<>"'`]/g,pn=RegExp(ln.source),hn=RegExp(sn.source),_n=/<%-([\s\S]+?)%>/g,vn=/<%([\s\S]+?)%>/g,gn=/<%=([\s\S]+?)%>/g,yn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,dn=/^\w*$/,mn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g,wn=/^[:!,]|[\\^$.*+?()[\]{}|\/]|(^[0-9a-fA-Fnrtuvx])|([\n\r\u2028\u2029])/g,xn=RegExp(wn.source),bn=/[\u0300-\u036f\ufe20-\ufe23]/g,An=/\\(\\)?/g,jn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,kn=/\w*$/,On=/^0[xX]/,In=/^\[object .+?Constructor\]$/,Rn=/^\d+$/,En=/[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g,Cn=/($^)/,Sn=/['\n\r\u2028\u2029\\]/g,Un=RegExp("[A-Z\\xc0-\\xd6\\xd8-\\xde]+(?=[A-Z\\xc0-\\xd6\\xd8-\\xde][a-z\\xdf-\\xf6\\xf8-\\xff]+)|[A-Z\\xc0-\\xd6\\xd8-\\xde]?[a-z\\xdf-\\xf6\\xf8-\\xff]+|[A-Z\\xc0-\\xd6\\xd8-\\xde]+|[0-9]+","g"),$n="Array ArrayBuffer Date Error Float32Array Float64Array Function Int8Array Int16Array Int32Array Math Number Object RegExp Set String _ clearTimeout isFinite parseFloat parseInt setTimeout TypeError Uint8Array Uint8ClampedArray Uint16Array Uint32Array WeakMap".split(" "),Wn="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),Fn={}; | ||
98 | +Fn[X]=Fn[H]=Fn[Q]=Fn[nn]=Fn[tn]=Fn[rn]=Fn[en]=Fn[un]=Fn[on]=true,Fn[z]=Fn[B]=Fn[J]=Fn[D]=Fn[M]=Fn[q]=Fn[K]=Fn["[object Map]"]=Fn[V]=Fn[Z]=Fn[Y]=Fn["[object Set]"]=Fn[G]=Fn["[object WeakMap]"]=false;var Ln={};Ln[z]=Ln[B]=Ln[J]=Ln[D]=Ln[M]=Ln[X]=Ln[H]=Ln[Q]=Ln[nn]=Ln[tn]=Ln[V]=Ln[Z]=Ln[Y]=Ln[G]=Ln[rn]=Ln[en]=Ln[un]=Ln[on]=true,Ln[q]=Ln[K]=Ln["[object Map]"]=Ln["[object Set]"]=Ln["[object WeakMap]"]=false;var Nn={"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a", | ||
99 | +"\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y", | ||
100 | +"\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss"},Tn={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},Pn={"&":"&","<":"<",">":">",""":'"',"'":"'","`":"`"},zn={"function":true,object:true},Bn={0:"x30",1:"x31",2:"x32",3:"x33",4:"x34",5:"x35",6:"x36",7:"x37",8:"x38",9:"x39",A:"x41",B:"x42",C:"x43",D:"x44",E:"x45",F:"x46",a:"x61",b:"x62",c:"x63",d:"x64",e:"x65",f:"x66",n:"x6e",r:"x72",t:"x74",u:"x75",v:"x76",x:"x78"},Dn={"\\":"\\", | ||
101 | +"'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Mn=zn[typeof exports]&&exports&&!exports.nodeType&&exports,qn=zn[typeof module]&&module&&!module.nodeType&&module,Kn=zn[typeof self]&&self&&self.Object&&self,Vn=zn[typeof window]&&window&&window.Object&&window,Zn=qn&&qn.exports===Mn&&Mn,Yn=Mn&&qn&&typeof global=="object"&&global&&global.Object&&global||Vn!==(this&&this.window)&&Vn||Kn||this,Gn=function(){try{Object({toString:0}+"")}catch(n){return function(){return false}}return function(n){ | ||
102 | +return typeof n.toString!="function"&&typeof(n+"")=="string"}}(),Jn=m();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Yn._=Jn, define(function(){return Jn})):Mn&&qn?Zn?(qn.exports=Jn)._=Jn:Mn._=Jn:Yn._=Jn}).call(this); | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
1 | +//! moment.js | ||
2 | +//! version : 2.10.6 | ||
3 | +//! authors : Tim Wood, Iskren Chernev, Moment.js contributors | ||
4 | +//! license : MIT | ||
5 | +//! momentjs.com | ||
6 | +!function(a,b){"object"==typeof exports&&"undefined"!=typeof module?module.exports=b():"function"==typeof define&&define.amd?define(b):a.moment=b()}(this,function(){"use strict";function a(){return Hc.apply(null,arguments)}function b(a){Hc=a}function c(a){return"[object Array]"===Object.prototype.toString.call(a)}function d(a){return a instanceof Date||"[object Date]"===Object.prototype.toString.call(a)}function e(a,b){var c,d=[];for(c=0;c<a.length;++c)d.push(b(a[c],c));return d}function f(a,b){return Object.prototype.hasOwnProperty.call(a,b)}function g(a,b){for(var c in b)f(b,c)&&(a[c]=b[c]);return f(b,"toString")&&(a.toString=b.toString),f(b,"valueOf")&&(a.valueOf=b.valueOf),a}function h(a,b,c,d){return Ca(a,b,c,d,!0).utc()}function i(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function j(a){return null==a._pf&&(a._pf=i()),a._pf}function k(a){if(null==a._isValid){var b=j(a);a._isValid=!(isNaN(a._d.getTime())||!(b.overflow<0)||b.empty||b.invalidMonth||b.invalidWeekday||b.nullInput||b.invalidFormat||b.userInvalidated),a._strict&&(a._isValid=a._isValid&&0===b.charsLeftOver&&0===b.unusedTokens.length&&void 0===b.bigHour)}return a._isValid}function l(a){var b=h(NaN);return null!=a?g(j(b),a):j(b).userInvalidated=!0,b}function m(a,b){var c,d,e;if("undefined"!=typeof b._isAMomentObject&&(a._isAMomentObject=b._isAMomentObject),"undefined"!=typeof b._i&&(a._i=b._i),"undefined"!=typeof b._f&&(a._f=b._f),"undefined"!=typeof b._l&&(a._l=b._l),"undefined"!=typeof b._strict&&(a._strict=b._strict),"undefined"!=typeof b._tzm&&(a._tzm=b._tzm),"undefined"!=typeof b._isUTC&&(a._isUTC=b._isUTC),"undefined"!=typeof b._offset&&(a._offset=b._offset),"undefined"!=typeof b._pf&&(a._pf=j(b)),"undefined"!=typeof b._locale&&(a._locale=b._locale),Jc.length>0)for(c in Jc)d=Jc[c],e=b[d],"undefined"!=typeof e&&(a[d]=e);return a}function n(b){m(this,b),this._d=new Date(null!=b._d?b._d.getTime():NaN),Kc===!1&&(Kc=!0,a.updateOffset(this),Kc=!1)}function o(a){return a instanceof n||null!=a&&null!=a._isAMomentObject}function p(a){return 0>a?Math.ceil(a):Math.floor(a)}function q(a){var b=+a,c=0;return 0!==b&&isFinite(b)&&(c=p(b)),c}function r(a,b,c){var d,e=Math.min(a.length,b.length),f=Math.abs(a.length-b.length),g=0;for(d=0;e>d;d++)(c&&a[d]!==b[d]||!c&&q(a[d])!==q(b[d]))&&g++;return g+f}function s(){}function t(a){return a?a.toLowerCase().replace("_","-"):a}function u(a){for(var b,c,d,e,f=0;f<a.length;){for(e=t(a[f]).split("-"),b=e.length,c=t(a[f+1]),c=c?c.split("-"):null;b>0;){if(d=v(e.slice(0,b).join("-")))return d;if(c&&c.length>=b&&r(e,c,!0)>=b-1)break;b--}f++}return null}function v(a){var b=null;if(!Lc[a]&&"undefined"!=typeof module&&module&&module.exports)try{b=Ic._abbr,require("./locale/"+a),w(b)}catch(c){}return Lc[a]}function w(a,b){var c;return a&&(c="undefined"==typeof b?y(a):x(a,b),c&&(Ic=c)),Ic._abbr}function x(a,b){return null!==b?(b.abbr=a,Lc[a]=Lc[a]||new s,Lc[a].set(b),w(a),Lc[a]):(delete Lc[a],null)}function y(a){var b;if(a&&a._locale&&a._locale._abbr&&(a=a._locale._abbr),!a)return Ic;if(!c(a)){if(b=v(a))return b;a=[a]}return u(a)}function z(a,b){var c=a.toLowerCase();Mc[c]=Mc[c+"s"]=Mc[b]=a}function A(a){return"string"==typeof a?Mc[a]||Mc[a.toLowerCase()]:void 0}function B(a){var b,c,d={};for(c in a)f(a,c)&&(b=A(c),b&&(d[b]=a[c]));return d}function C(b,c){return function(d){return null!=d?(E(this,b,d),a.updateOffset(this,c),this):D(this,b)}}function D(a,b){return a._d["get"+(a._isUTC?"UTC":"")+b]()}function E(a,b,c){return a._d["set"+(a._isUTC?"UTC":"")+b](c)}function F(a,b){var c;if("object"==typeof a)for(c in a)this.set(c,a[c]);else if(a=A(a),"function"==typeof this[a])return this[a](b);return this}function G(a,b,c){var d=""+Math.abs(a),e=b-d.length,f=a>=0;return(f?c?"+":"":"-")+Math.pow(10,Math.max(0,e)).toString().substr(1)+d}function H(a,b,c,d){var e=d;"string"==typeof d&&(e=function(){return this[d]()}),a&&(Qc[a]=e),b&&(Qc[b[0]]=function(){return G(e.apply(this,arguments),b[1],b[2])}),c&&(Qc[c]=function(){return this.localeData().ordinal(e.apply(this,arguments),a)})}function I(a){return a.match(/\[[\s\S]/)?a.replace(/^\[|\]$/g,""):a.replace(/\\/g,"")}function J(a){var b,c,d=a.match(Nc);for(b=0,c=d.length;c>b;b++)Qc[d[b]]?d[b]=Qc[d[b]]:d[b]=I(d[b]);return function(e){var f="";for(b=0;c>b;b++)f+=d[b]instanceof Function?d[b].call(e,a):d[b];return f}}function K(a,b){return a.isValid()?(b=L(b,a.localeData()),Pc[b]=Pc[b]||J(b),Pc[b](a)):a.localeData().invalidDate()}function L(a,b){function c(a){return b.longDateFormat(a)||a}var d=5;for(Oc.lastIndex=0;d>=0&&Oc.test(a);)a=a.replace(Oc,c),Oc.lastIndex=0,d-=1;return a}function M(a){return"function"==typeof a&&"[object Function]"===Object.prototype.toString.call(a)}function N(a,b,c){dd[a]=M(b)?b:function(a){return a&&c?c:b}}function O(a,b){return f(dd,a)?dd[a](b._strict,b._locale):new RegExp(P(a))}function P(a){return a.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(a,b,c,d,e){return b||c||d||e}).replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Q(a,b){var c,d=b;for("string"==typeof a&&(a=[a]),"number"==typeof b&&(d=function(a,c){c[b]=q(a)}),c=0;c<a.length;c++)ed[a[c]]=d}function R(a,b){Q(a,function(a,c,d,e){d._w=d._w||{},b(a,d._w,d,e)})}function S(a,b,c){null!=b&&f(ed,a)&&ed[a](b,c._a,c,a)}function T(a,b){return new Date(Date.UTC(a,b+1,0)).getUTCDate()}function U(a){return this._months[a.month()]}function V(a){return this._monthsShort[a.month()]}function W(a,b,c){var d,e,f;for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),d=0;12>d;d++){if(e=h([2e3,d]),c&&!this._longMonthsParse[d]&&(this._longMonthsParse[d]=new RegExp("^"+this.months(e,"").replace(".","")+"$","i"),this._shortMonthsParse[d]=new RegExp("^"+this.monthsShort(e,"").replace(".","")+"$","i")),c||this._monthsParse[d]||(f="^"+this.months(e,"")+"|^"+this.monthsShort(e,""),this._monthsParse[d]=new RegExp(f.replace(".",""),"i")),c&&"MMMM"===b&&this._longMonthsParse[d].test(a))return d;if(c&&"MMM"===b&&this._shortMonthsParse[d].test(a))return d;if(!c&&this._monthsParse[d].test(a))return d}}function X(a,b){var c;return"string"==typeof b&&(b=a.localeData().monthsParse(b),"number"!=typeof b)?a:(c=Math.min(a.date(),T(a.year(),b)),a._d["set"+(a._isUTC?"UTC":"")+"Month"](b,c),a)}function Y(b){return null!=b?(X(this,b),a.updateOffset(this,!0),this):D(this,"Month")}function Z(){return T(this.year(),this.month())}function $(a){var b,c=a._a;return c&&-2===j(a).overflow&&(b=c[gd]<0||c[gd]>11?gd:c[hd]<1||c[hd]>T(c[fd],c[gd])?hd:c[id]<0||c[id]>24||24===c[id]&&(0!==c[jd]||0!==c[kd]||0!==c[ld])?id:c[jd]<0||c[jd]>59?jd:c[kd]<0||c[kd]>59?kd:c[ld]<0||c[ld]>999?ld:-1,j(a)._overflowDayOfYear&&(fd>b||b>hd)&&(b=hd),j(a).overflow=b),a}function _(b){a.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+b)}function aa(a,b){var c=!0;return g(function(){return c&&(_(a+"\n"+(new Error).stack),c=!1),b.apply(this,arguments)},b)}function ba(a,b){od[a]||(_(b),od[a]=!0)}function ca(a){var b,c,d=a._i,e=pd.exec(d);if(e){for(j(a).iso=!0,b=0,c=qd.length;c>b;b++)if(qd[b][1].exec(d)){a._f=qd[b][0];break}for(b=0,c=rd.length;c>b;b++)if(rd[b][1].exec(d)){a._f+=(e[6]||" ")+rd[b][0];break}d.match(ad)&&(a._f+="Z"),va(a)}else a._isValid=!1}function da(b){var c=sd.exec(b._i);return null!==c?void(b._d=new Date(+c[1])):(ca(b),void(b._isValid===!1&&(delete b._isValid,a.createFromInputFallback(b))))}function ea(a,b,c,d,e,f,g){var h=new Date(a,b,c,d,e,f,g);return 1970>a&&h.setFullYear(a),h}function fa(a){var b=new Date(Date.UTC.apply(null,arguments));return 1970>a&&b.setUTCFullYear(a),b}function ga(a){return ha(a)?366:365}function ha(a){return a%4===0&&a%100!==0||a%400===0}function ia(){return ha(this.year())}function ja(a,b,c){var d,e=c-b,f=c-a.day();return f>e&&(f-=7),e-7>f&&(f+=7),d=Da(a).add(f,"d"),{week:Math.ceil(d.dayOfYear()/7),year:d.year()}}function ka(a){return ja(a,this._week.dow,this._week.doy).week}function la(){return this._week.dow}function ma(){return this._week.doy}function na(a){var b=this.localeData().week(this);return null==a?b:this.add(7*(a-b),"d")}function oa(a){var b=ja(this,1,4).week;return null==a?b:this.add(7*(a-b),"d")}function pa(a,b,c,d,e){var f,g=6+e-d,h=fa(a,0,1+g),i=h.getUTCDay();return e>i&&(i+=7),c=null!=c?1*c:e,f=1+g+7*(b-1)-i+c,{year:f>0?a:a-1,dayOfYear:f>0?f:ga(a-1)+f}}function qa(a){var b=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==a?b:this.add(a-b,"d")}function ra(a,b,c){return null!=a?a:null!=b?b:c}function sa(a){var b=new Date;return a._useUTC?[b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate()]:[b.getFullYear(),b.getMonth(),b.getDate()]}function ta(a){var b,c,d,e,f=[];if(!a._d){for(d=sa(a),a._w&&null==a._a[hd]&&null==a._a[gd]&&ua(a),a._dayOfYear&&(e=ra(a._a[fd],d[fd]),a._dayOfYear>ga(e)&&(j(a)._overflowDayOfYear=!0),c=fa(e,0,a._dayOfYear),a._a[gd]=c.getUTCMonth(),a._a[hd]=c.getUTCDate()),b=0;3>b&&null==a._a[b];++b)a._a[b]=f[b]=d[b];for(;7>b;b++)a._a[b]=f[b]=null==a._a[b]?2===b?1:0:a._a[b];24===a._a[id]&&0===a._a[jd]&&0===a._a[kd]&&0===a._a[ld]&&(a._nextDay=!0,a._a[id]=0),a._d=(a._useUTC?fa:ea).apply(null,f),null!=a._tzm&&a._d.setUTCMinutes(a._d.getUTCMinutes()-a._tzm),a._nextDay&&(a._a[id]=24)}}function ua(a){var b,c,d,e,f,g,h;b=a._w,null!=b.GG||null!=b.W||null!=b.E?(f=1,g=4,c=ra(b.GG,a._a[fd],ja(Da(),1,4).year),d=ra(b.W,1),e=ra(b.E,1)):(f=a._locale._week.dow,g=a._locale._week.doy,c=ra(b.gg,a._a[fd],ja(Da(),f,g).year),d=ra(b.w,1),null!=b.d?(e=b.d,f>e&&++d):e=null!=b.e?b.e+f:f),h=pa(c,d,e,g,f),a._a[fd]=h.year,a._dayOfYear=h.dayOfYear}function va(b){if(b._f===a.ISO_8601)return void ca(b);b._a=[],j(b).empty=!0;var c,d,e,f,g,h=""+b._i,i=h.length,k=0;for(e=L(b._f,b._locale).match(Nc)||[],c=0;c<e.length;c++)f=e[c],d=(h.match(O(f,b))||[])[0],d&&(g=h.substr(0,h.indexOf(d)),g.length>0&&j(b).unusedInput.push(g),h=h.slice(h.indexOf(d)+d.length),k+=d.length),Qc[f]?(d?j(b).empty=!1:j(b).unusedTokens.push(f),S(f,d,b)):b._strict&&!d&&j(b).unusedTokens.push(f);j(b).charsLeftOver=i-k,h.length>0&&j(b).unusedInput.push(h),j(b).bigHour===!0&&b._a[id]<=12&&b._a[id]>0&&(j(b).bigHour=void 0),b._a[id]=wa(b._locale,b._a[id],b._meridiem),ta(b),$(b)}function wa(a,b,c){var d;return null==c?b:null!=a.meridiemHour?a.meridiemHour(b,c):null!=a.isPM?(d=a.isPM(c),d&&12>b&&(b+=12),d||12!==b||(b=0),b):b}function xa(a){var b,c,d,e,f;if(0===a._f.length)return j(a).invalidFormat=!0,void(a._d=new Date(NaN));for(e=0;e<a._f.length;e++)f=0,b=m({},a),null!=a._useUTC&&(b._useUTC=a._useUTC),b._f=a._f[e],va(b),k(b)&&(f+=j(b).charsLeftOver,f+=10*j(b).unusedTokens.length,j(b).score=f,(null==d||d>f)&&(d=f,c=b));g(a,c||b)}function ya(a){if(!a._d){var b=B(a._i);a._a=[b.year,b.month,b.day||b.date,b.hour,b.minute,b.second,b.millisecond],ta(a)}}function za(a){var b=new n($(Aa(a)));return b._nextDay&&(b.add(1,"d"),b._nextDay=void 0),b}function Aa(a){var b=a._i,e=a._f;return a._locale=a._locale||y(a._l),null===b||void 0===e&&""===b?l({nullInput:!0}):("string"==typeof b&&(a._i=b=a._locale.preparse(b)),o(b)?new n($(b)):(c(e)?xa(a):e?va(a):d(b)?a._d=b:Ba(a),a))}function Ba(b){var f=b._i;void 0===f?b._d=new Date:d(f)?b._d=new Date(+f):"string"==typeof f?da(b):c(f)?(b._a=e(f.slice(0),function(a){return parseInt(a,10)}),ta(b)):"object"==typeof f?ya(b):"number"==typeof f?b._d=new Date(f):a.createFromInputFallback(b)}function Ca(a,b,c,d,e){var f={};return"boolean"==typeof c&&(d=c,c=void 0),f._isAMomentObject=!0,f._useUTC=f._isUTC=e,f._l=c,f._i=a,f._f=b,f._strict=d,za(f)}function Da(a,b,c,d){return Ca(a,b,c,d,!1)}function Ea(a,b){var d,e;if(1===b.length&&c(b[0])&&(b=b[0]),!b.length)return Da();for(d=b[0],e=1;e<b.length;++e)(!b[e].isValid()||b[e][a](d))&&(d=b[e]);return d}function Fa(){var a=[].slice.call(arguments,0);return Ea("isBefore",a)}function Ga(){var a=[].slice.call(arguments,0);return Ea("isAfter",a)}function Ha(a){var b=B(a),c=b.year||0,d=b.quarter||0,e=b.month||0,f=b.week||0,g=b.day||0,h=b.hour||0,i=b.minute||0,j=b.second||0,k=b.millisecond||0;this._milliseconds=+k+1e3*j+6e4*i+36e5*h,this._days=+g+7*f,this._months=+e+3*d+12*c,this._data={},this._locale=y(),this._bubble()}function Ia(a){return a instanceof Ha}function Ja(a,b){H(a,0,0,function(){var a=this.utcOffset(),c="+";return 0>a&&(a=-a,c="-"),c+G(~~(a/60),2)+b+G(~~a%60,2)})}function Ka(a){var b=(a||"").match(ad)||[],c=b[b.length-1]||[],d=(c+"").match(xd)||["-",0,0],e=+(60*d[1])+q(d[2]);return"+"===d[0]?e:-e}function La(b,c){var e,f;return c._isUTC?(e=c.clone(),f=(o(b)||d(b)?+b:+Da(b))-+e,e._d.setTime(+e._d+f),a.updateOffset(e,!1),e):Da(b).local()}function Ma(a){return 15*-Math.round(a._d.getTimezoneOffset()/15)}function Na(b,c){var d,e=this._offset||0;return null!=b?("string"==typeof b&&(b=Ka(b)),Math.abs(b)<16&&(b=60*b),!this._isUTC&&c&&(d=Ma(this)),this._offset=b,this._isUTC=!0,null!=d&&this.add(d,"m"),e!==b&&(!c||this._changeInProgress?bb(this,Ya(b-e,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,a.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?e:Ma(this)}function Oa(a,b){return null!=a?("string"!=typeof a&&(a=-a),this.utcOffset(a,b),this):-this.utcOffset()}function Pa(a){return this.utcOffset(0,a)}function Qa(a){return this._isUTC&&(this.utcOffset(0,a),this._isUTC=!1,a&&this.subtract(Ma(this),"m")),this}function Ra(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(Ka(this._i)),this}function Sa(a){return a=a?Da(a).utcOffset():0,(this.utcOffset()-a)%60===0}function Ta(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Ua(){if("undefined"!=typeof this._isDSTShifted)return this._isDSTShifted;var a={};if(m(a,this),a=Aa(a),a._a){var b=a._isUTC?h(a._a):Da(a._a);this._isDSTShifted=this.isValid()&&r(a._a,b.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Va(){return!this._isUTC}function Wa(){return this._isUTC}function Xa(){return this._isUTC&&0===this._offset}function Ya(a,b){var c,d,e,g=a,h=null;return Ia(a)?g={ms:a._milliseconds,d:a._days,M:a._months}:"number"==typeof a?(g={},b?g[b]=a:g.milliseconds=a):(h=yd.exec(a))?(c="-"===h[1]?-1:1,g={y:0,d:q(h[hd])*c,h:q(h[id])*c,m:q(h[jd])*c,s:q(h[kd])*c,ms:q(h[ld])*c}):(h=zd.exec(a))?(c="-"===h[1]?-1:1,g={y:Za(h[2],c),M:Za(h[3],c),d:Za(h[4],c),h:Za(h[5],c),m:Za(h[6],c),s:Za(h[7],c),w:Za(h[8],c)}):null==g?g={}:"object"==typeof g&&("from"in g||"to"in g)&&(e=_a(Da(g.from),Da(g.to)),g={},g.ms=e.milliseconds,g.M=e.months),d=new Ha(g),Ia(a)&&f(a,"_locale")&&(d._locale=a._locale),d}function Za(a,b){var c=a&&parseFloat(a.replace(",","."));return(isNaN(c)?0:c)*b}function $a(a,b){var c={milliseconds:0,months:0};return c.months=b.month()-a.month()+12*(b.year()-a.year()),a.clone().add(c.months,"M").isAfter(b)&&--c.months,c.milliseconds=+b-+a.clone().add(c.months,"M"),c}function _a(a,b){var c;return b=La(b,a),a.isBefore(b)?c=$a(a,b):(c=$a(b,a),c.milliseconds=-c.milliseconds,c.months=-c.months),c}function ab(a,b){return function(c,d){var e,f;return null===d||isNaN(+d)||(ba(b,"moment()."+b+"(period, number) is deprecated. Please use moment()."+b+"(number, period)."),f=c,c=d,d=f),c="string"==typeof c?+c:c,e=Ya(c,d),bb(this,e,a),this}}function bb(b,c,d,e){var f=c._milliseconds,g=c._days,h=c._months;e=null==e?!0:e,f&&b._d.setTime(+b._d+f*d),g&&E(b,"Date",D(b,"Date")+g*d),h&&X(b,D(b,"Month")+h*d),e&&a.updateOffset(b,g||h)}function cb(a,b){var c=a||Da(),d=La(c,this).startOf("day"),e=this.diff(d,"days",!0),f=-6>e?"sameElse":-1>e?"lastWeek":0>e?"lastDay":1>e?"sameDay":2>e?"nextDay":7>e?"nextWeek":"sameElse";return this.format(b&&b[f]||this.localeData().calendar(f,this,Da(c)))}function db(){return new n(this)}function eb(a,b){var c;return b=A("undefined"!=typeof b?b:"millisecond"),"millisecond"===b?(a=o(a)?a:Da(a),+this>+a):(c=o(a)?+a:+Da(a),c<+this.clone().startOf(b))}function fb(a,b){var c;return b=A("undefined"!=typeof b?b:"millisecond"),"millisecond"===b?(a=o(a)?a:Da(a),+a>+this):(c=o(a)?+a:+Da(a),+this.clone().endOf(b)<c)}function gb(a,b,c){return this.isAfter(a,c)&&this.isBefore(b,c)}function hb(a,b){var c;return b=A(b||"millisecond"),"millisecond"===b?(a=o(a)?a:Da(a),+this===+a):(c=+Da(a),+this.clone().startOf(b)<=c&&c<=+this.clone().endOf(b))}function ib(a,b,c){var d,e,f=La(a,this),g=6e4*(f.utcOffset()-this.utcOffset());return b=A(b),"year"===b||"month"===b||"quarter"===b?(e=jb(this,f),"quarter"===b?e/=3:"year"===b&&(e/=12)):(d=this-f,e="second"===b?d/1e3:"minute"===b?d/6e4:"hour"===b?d/36e5:"day"===b?(d-g)/864e5:"week"===b?(d-g)/6048e5:d),c?e:p(e)}function jb(a,b){var c,d,e=12*(b.year()-a.year())+(b.month()-a.month()),f=a.clone().add(e,"months");return 0>b-f?(c=a.clone().add(e-1,"months"),d=(b-f)/(f-c)):(c=a.clone().add(e+1,"months"),d=(b-f)/(c-f)),-(e+d)}function kb(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function lb(){var a=this.clone().utc();return 0<a.year()&&a.year()<=9999?"function"==typeof Date.prototype.toISOString?this.toDate().toISOString():K(a,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):K(a,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function mb(b){var c=K(this,b||a.defaultFormat);return this.localeData().postformat(c)}function nb(a,b){return this.isValid()?Ya({to:this,from:a}).locale(this.locale()).humanize(!b):this.localeData().invalidDate()}function ob(a){return this.from(Da(),a)}function pb(a,b){return this.isValid()?Ya({from:this,to:a}).locale(this.locale()).humanize(!b):this.localeData().invalidDate()}function qb(a){return this.to(Da(),a)}function rb(a){var b;return void 0===a?this._locale._abbr:(b=y(a),null!=b&&(this._locale=b),this)}function sb(){return this._locale}function tb(a){switch(a=A(a)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===a&&this.weekday(0),"isoWeek"===a&&this.isoWeekday(1),"quarter"===a&&this.month(3*Math.floor(this.month()/3)),this}function ub(a){return a=A(a),void 0===a||"millisecond"===a?this:this.startOf(a).add(1,"isoWeek"===a?"week":a).subtract(1,"ms")}function vb(){return+this._d-6e4*(this._offset||0)}function wb(){return Math.floor(+this/1e3)}function xb(){return this._offset?new Date(+this):this._d}function yb(){var a=this;return[a.year(),a.month(),a.date(),a.hour(),a.minute(),a.second(),a.millisecond()]}function zb(){var a=this;return{years:a.year(),months:a.month(),date:a.date(),hours:a.hours(),minutes:a.minutes(),seconds:a.seconds(),milliseconds:a.milliseconds()}}function Ab(){return k(this)}function Bb(){return g({},j(this))}function Cb(){return j(this).overflow}function Db(a,b){H(0,[a,a.length],0,b)}function Eb(a,b,c){return ja(Da([a,11,31+b-c]),b,c).week}function Fb(a){var b=ja(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return null==a?b:this.add(a-b,"y")}function Gb(a){var b=ja(this,1,4).year;return null==a?b:this.add(a-b,"y")}function Hb(){return Eb(this.year(),1,4)}function Ib(){var a=this.localeData()._week;return Eb(this.year(),a.dow,a.doy)}function Jb(a){return null==a?Math.ceil((this.month()+1)/3):this.month(3*(a-1)+this.month()%3)}function Kb(a,b){return"string"!=typeof a?a:isNaN(a)?(a=b.weekdaysParse(a),"number"==typeof a?a:null):parseInt(a,10)}function Lb(a){return this._weekdays[a.day()]}function Mb(a){return this._weekdaysShort[a.day()]}function Nb(a){return this._weekdaysMin[a.day()]}function Ob(a){var b,c,d;for(this._weekdaysParse=this._weekdaysParse||[],b=0;7>b;b++)if(this._weekdaysParse[b]||(c=Da([2e3,1]).day(b),d="^"+this.weekdays(c,"")+"|^"+this.weekdaysShort(c,"")+"|^"+this.weekdaysMin(c,""),this._weekdaysParse[b]=new RegExp(d.replace(".",""),"i")),this._weekdaysParse[b].test(a))return b}function Pb(a){var b=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=a?(a=Kb(a,this.localeData()),this.add(a-b,"d")):b}function Qb(a){var b=(this.day()+7-this.localeData()._week.dow)%7;return null==a?b:this.add(a-b,"d")}function Rb(a){return null==a?this.day()||7:this.day(this.day()%7?a:a-7)}function Sb(a,b){H(a,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),b)})}function Tb(a,b){return b._meridiemParse}function Ub(a){return"p"===(a+"").toLowerCase().charAt(0)}function Vb(a,b,c){return a>11?c?"pm":"PM":c?"am":"AM"}function Wb(a,b){b[ld]=q(1e3*("0."+a))}function Xb(){return this._isUTC?"UTC":""}function Yb(){return this._isUTC?"Coordinated Universal Time":""}function Zb(a){return Da(1e3*a)}function $b(){return Da.apply(null,arguments).parseZone()}function _b(a,b,c){var d=this._calendar[a];return"function"==typeof d?d.call(b,c):d}function ac(a){var b=this._longDateFormat[a],c=this._longDateFormat[a.toUpperCase()];return b||!c?b:(this._longDateFormat[a]=c.replace(/MMMM|MM|DD|dddd/g,function(a){return a.slice(1)}),this._longDateFormat[a])}function bc(){return this._invalidDate}function cc(a){return this._ordinal.replace("%d",a)}function dc(a){return a}function ec(a,b,c,d){var e=this._relativeTime[c];return"function"==typeof e?e(a,b,c,d):e.replace(/%d/i,a)}function fc(a,b){var c=this._relativeTime[a>0?"future":"past"];return"function"==typeof c?c(b):c.replace(/%s/i,b)}function gc(a){var b,c;for(c in a)b=a[c],"function"==typeof b?this[c]=b:this["_"+c]=b;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}function hc(a,b,c,d){var e=y(),f=h().set(d,b);return e[c](f,a)}function ic(a,b,c,d,e){if("number"==typeof a&&(b=a,a=void 0),a=a||"",null!=b)return hc(a,b,c,e);var f,g=[];for(f=0;d>f;f++)g[f]=hc(a,f,c,e);return g}function jc(a,b){return ic(a,b,"months",12,"month")}function kc(a,b){return ic(a,b,"monthsShort",12,"month")}function lc(a,b){return ic(a,b,"weekdays",7,"day")}function mc(a,b){return ic(a,b,"weekdaysShort",7,"day")}function nc(a,b){return ic(a,b,"weekdaysMin",7,"day")}function oc(){var a=this._data;return this._milliseconds=Wd(this._milliseconds),this._days=Wd(this._days),this._months=Wd(this._months),a.milliseconds=Wd(a.milliseconds),a.seconds=Wd(a.seconds),a.minutes=Wd(a.minutes),a.hours=Wd(a.hours),a.months=Wd(a.months),a.years=Wd(a.years),this}function pc(a,b,c,d){var e=Ya(b,c);return a._milliseconds+=d*e._milliseconds,a._days+=d*e._days,a._months+=d*e._months,a._bubble()}function qc(a,b){return pc(this,a,b,1)}function rc(a,b){return pc(this,a,b,-1)}function sc(a){return 0>a?Math.floor(a):Math.ceil(a)}function tc(){var a,b,c,d,e,f=this._milliseconds,g=this._days,h=this._months,i=this._data;return f>=0&&g>=0&&h>=0||0>=f&&0>=g&&0>=h||(f+=864e5*sc(vc(h)+g),g=0,h=0),i.milliseconds=f%1e3,a=p(f/1e3),i.seconds=a%60,b=p(a/60),i.minutes=b%60,c=p(b/60),i.hours=c%24,g+=p(c/24),e=p(uc(g)),h+=e,g-=sc(vc(e)),d=p(h/12),h%=12,i.days=g,i.months=h,i.years=d,this}function uc(a){return 4800*a/146097}function vc(a){return 146097*a/4800}function wc(a){var b,c,d=this._milliseconds;if(a=A(a),"month"===a||"year"===a)return b=this._days+d/864e5,c=this._months+uc(b),"month"===a?c:c/12;switch(b=this._days+Math.round(vc(this._months)),a){case"week":return b/7+d/6048e5;case"day":return b+d/864e5;case"hour":return 24*b+d/36e5;case"minute":return 1440*b+d/6e4;case"second":return 86400*b+d/1e3;case"millisecond":return Math.floor(864e5*b)+d;default:throw new Error("Unknown unit "+a)}}function xc(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*q(this._months/12)}function yc(a){return function(){return this.as(a)}}function zc(a){return a=A(a),this[a+"s"]()}function Ac(a){return function(){return this._data[a]}}function Bc(){return p(this.days()/7)}function Cc(a,b,c,d,e){return e.relativeTime(b||1,!!c,a,d)}function Dc(a,b,c){var d=Ya(a).abs(),e=ke(d.as("s")),f=ke(d.as("m")),g=ke(d.as("h")),h=ke(d.as("d")),i=ke(d.as("M")),j=ke(d.as("y")),k=e<le.s&&["s",e]||1===f&&["m"]||f<le.m&&["mm",f]||1===g&&["h"]||g<le.h&&["hh",g]||1===h&&["d"]||h<le.d&&["dd",h]||1===i&&["M"]||i<le.M&&["MM",i]||1===j&&["y"]||["yy",j];return k[2]=b,k[3]=+a>0,k[4]=c,Cc.apply(null,k)}function Ec(a,b){return void 0===le[a]?!1:void 0===b?le[a]:(le[a]=b,!0)}function Fc(a){var b=this.localeData(),c=Dc(this,!a,b);return a&&(c=b.pastFuture(+this,c)),b.postformat(c)}function Gc(){var a,b,c,d=me(this._milliseconds)/1e3,e=me(this._days),f=me(this._months);a=p(d/60),b=p(a/60),d%=60,a%=60,c=p(f/12),f%=12;var g=c,h=f,i=e,j=b,k=a,l=d,m=this.asSeconds();return m?(0>m?"-":"")+"P"+(g?g+"Y":"")+(h?h+"M":"")+(i?i+"D":"")+(j||k||l?"T":"")+(j?j+"H":"")+(k?k+"M":"")+(l?l+"S":""):"P0D"}var Hc,Ic,Jc=a.momentProperties=[],Kc=!1,Lc={},Mc={},Nc=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Oc=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Pc={},Qc={},Rc=/\d/,Sc=/\d\d/,Tc=/\d{3}/,Uc=/\d{4}/,Vc=/[+-]?\d{6}/,Wc=/\d\d?/,Xc=/\d{1,3}/,Yc=/\d{1,4}/,Zc=/[+-]?\d{1,6}/,$c=/\d+/,_c=/[+-]?\d+/,ad=/Z|[+-]\d\d:?\d\d/gi,bd=/[+-]?\d+(\.\d{1,3})?/,cd=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,dd={},ed={},fd=0,gd=1,hd=2,id=3,jd=4,kd=5,ld=6;H("M",["MM",2],"Mo",function(){return this.month()+1}),H("MMM",0,0,function(a){return this.localeData().monthsShort(this,a)}),H("MMMM",0,0,function(a){return this.localeData().months(this,a)}),z("month","M"),N("M",Wc),N("MM",Wc,Sc),N("MMM",cd),N("MMMM",cd),Q(["M","MM"],function(a,b){b[gd]=q(a)-1}),Q(["MMM","MMMM"],function(a,b,c,d){var e=c._locale.monthsParse(a,d,c._strict);null!=e?b[gd]=e:j(c).invalidMonth=a});var md="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),nd="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),od={};a.suppressDeprecationWarnings=!1;var pd=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,qd=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],rd=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],sd=/^\/?Date\((\-?\d+)/i;a.createFromInputFallback=aa("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(a){a._d=new Date(a._i+(a._useUTC?" UTC":""))}),H(0,["YY",2],0,function(){return this.year()%100}),H(0,["YYYY",4],0,"year"),H(0,["YYYYY",5],0,"year"),H(0,["YYYYYY",6,!0],0,"year"),z("year","y"),N("Y",_c),N("YY",Wc,Sc),N("YYYY",Yc,Uc),N("YYYYY",Zc,Vc),N("YYYYYY",Zc,Vc),Q(["YYYYY","YYYYYY"],fd),Q("YYYY",function(b,c){c[fd]=2===b.length?a.parseTwoDigitYear(b):q(b)}),Q("YY",function(b,c){c[fd]=a.parseTwoDigitYear(b)}),a.parseTwoDigitYear=function(a){return q(a)+(q(a)>68?1900:2e3)};var td=C("FullYear",!1);H("w",["ww",2],"wo","week"),H("W",["WW",2],"Wo","isoWeek"),z("week","w"),z("isoWeek","W"),N("w",Wc),N("ww",Wc,Sc),N("W",Wc),N("WW",Wc,Sc),R(["w","ww","W","WW"],function(a,b,c,d){b[d.substr(0,1)]=q(a)});var ud={dow:0,doy:6};H("DDD",["DDDD",3],"DDDo","dayOfYear"),z("dayOfYear","DDD"),N("DDD",Xc),N("DDDD",Tc),Q(["DDD","DDDD"],function(a,b,c){c._dayOfYear=q(a)}),a.ISO_8601=function(){};var vd=aa("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(){var a=Da.apply(null,arguments);return this>a?this:a}),wd=aa("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(){var a=Da.apply(null,arguments);return a>this?this:a});Ja("Z",":"),Ja("ZZ",""),N("Z",ad),N("ZZ",ad),Q(["Z","ZZ"],function(a,b,c){c._useUTC=!0,c._tzm=Ka(a)});var xd=/([\+\-]|\d\d)/gi;a.updateOffset=function(){};var yd=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,zd=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/;Ya.fn=Ha.prototype;var Ad=ab(1,"add"),Bd=ab(-1,"subtract");a.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";var Cd=aa("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(a){return void 0===a?this.localeData():this.locale(a)});H(0,["gg",2],0,function(){return this.weekYear()%100}),H(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Db("gggg","weekYear"),Db("ggggg","weekYear"),Db("GGGG","isoWeekYear"),Db("GGGGG","isoWeekYear"),z("weekYear","gg"),z("isoWeekYear","GG"),N("G",_c),N("g",_c),N("GG",Wc,Sc),N("gg",Wc,Sc),N("GGGG",Yc,Uc),N("gggg",Yc,Uc),N("GGGGG",Zc,Vc),N("ggggg",Zc,Vc),R(["gggg","ggggg","GGGG","GGGGG"],function(a,b,c,d){b[d.substr(0,2)]=q(a)}),R(["gg","GG"],function(b,c,d,e){c[e]=a.parseTwoDigitYear(b)}),H("Q",0,0,"quarter"),z("quarter","Q"),N("Q",Rc),Q("Q",function(a,b){b[gd]=3*(q(a)-1)}),H("D",["DD",2],"Do","date"),z("date","D"),N("D",Wc),N("DD",Wc,Sc),N("Do",function(a,b){return a?b._ordinalParse:b._ordinalParseLenient}),Q(["D","DD"],hd),Q("Do",function(a,b){b[hd]=q(a.match(Wc)[0],10)});var Dd=C("Date",!0);H("d",0,"do","day"),H("dd",0,0,function(a){return this.localeData().weekdaysMin(this,a)}),H("ddd",0,0,function(a){return this.localeData().weekdaysShort(this,a)}),H("dddd",0,0,function(a){return this.localeData().weekdays(this,a)}),H("e",0,0,"weekday"),H("E",0,0,"isoWeekday"),z("day","d"),z("weekday","e"),z("isoWeekday","E"),N("d",Wc),N("e",Wc),N("E",Wc),N("dd",cd),N("ddd",cd),N("dddd",cd),R(["dd","ddd","dddd"],function(a,b,c){var d=c._locale.weekdaysParse(a);null!=d?b.d=d:j(c).invalidWeekday=a}),R(["d","e","E"],function(a,b,c,d){b[d]=q(a)});var Ed="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Fd="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Gd="Su_Mo_Tu_We_Th_Fr_Sa".split("_");H("H",["HH",2],0,"hour"),H("h",["hh",2],0,function(){return this.hours()%12||12}),Sb("a",!0),Sb("A",!1),z("hour","h"),N("a",Tb),N("A",Tb),N("H",Wc),N("h",Wc),N("HH",Wc,Sc),N("hh",Wc,Sc),Q(["H","HH"],id),Q(["a","A"],function(a,b,c){c._isPm=c._locale.isPM(a),c._meridiem=a}),Q(["h","hh"],function(a,b,c){b[id]=q(a),j(c).bigHour=!0});var Hd=/[ap]\.?m?\.?/i,Id=C("Hours",!0);H("m",["mm",2],0,"minute"),z("minute","m"),N("m",Wc),N("mm",Wc,Sc),Q(["m","mm"],jd);var Jd=C("Minutes",!1);H("s",["ss",2],0,"second"),z("second","s"),N("s",Wc),N("ss",Wc,Sc),Q(["s","ss"],kd);var Kd=C("Seconds",!1);H("S",0,0,function(){return~~(this.millisecond()/100)}),H(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),H(0,["SSS",3],0,"millisecond"),H(0,["SSSS",4],0,function(){return 10*this.millisecond()}),H(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),H(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),H(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),H(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),H(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),z("millisecond","ms"),N("S",Xc,Rc),N("SS",Xc,Sc),N("SSS",Xc,Tc);var Ld;for(Ld="SSSS";Ld.length<=9;Ld+="S")N(Ld,$c);for(Ld="S";Ld.length<=9;Ld+="S")Q(Ld,Wb);var Md=C("Milliseconds",!1);H("z",0,0,"zoneAbbr"),H("zz",0,0,"zoneName");var Nd=n.prototype;Nd.add=Ad,Nd.calendar=cb,Nd.clone=db,Nd.diff=ib,Nd.endOf=ub,Nd.format=mb,Nd.from=nb,Nd.fromNow=ob,Nd.to=pb,Nd.toNow=qb,Nd.get=F,Nd.invalidAt=Cb,Nd.isAfter=eb,Nd.isBefore=fb,Nd.isBetween=gb,Nd.isSame=hb,Nd.isValid=Ab,Nd.lang=Cd,Nd.locale=rb,Nd.localeData=sb,Nd.max=wd,Nd.min=vd,Nd.parsingFlags=Bb,Nd.set=F,Nd.startOf=tb,Nd.subtract=Bd,Nd.toArray=yb,Nd.toObject=zb,Nd.toDate=xb,Nd.toISOString=lb,Nd.toJSON=lb,Nd.toString=kb,Nd.unix=wb,Nd.valueOf=vb,Nd.year=td,Nd.isLeapYear=ia,Nd.weekYear=Fb,Nd.isoWeekYear=Gb,Nd.quarter=Nd.quarters=Jb,Nd.month=Y,Nd.daysInMonth=Z,Nd.week=Nd.weeks=na,Nd.isoWeek=Nd.isoWeeks=oa,Nd.weeksInYear=Ib,Nd.isoWeeksInYear=Hb,Nd.date=Dd,Nd.day=Nd.days=Pb,Nd.weekday=Qb,Nd.isoWeekday=Rb,Nd.dayOfYear=qa,Nd.hour=Nd.hours=Id,Nd.minute=Nd.minutes=Jd,Nd.second=Nd.seconds=Kd, | ||
7 | +Nd.millisecond=Nd.milliseconds=Md,Nd.utcOffset=Na,Nd.utc=Pa,Nd.local=Qa,Nd.parseZone=Ra,Nd.hasAlignedHourOffset=Sa,Nd.isDST=Ta,Nd.isDSTShifted=Ua,Nd.isLocal=Va,Nd.isUtcOffset=Wa,Nd.isUtc=Xa,Nd.isUTC=Xa,Nd.zoneAbbr=Xb,Nd.zoneName=Yb,Nd.dates=aa("dates accessor is deprecated. Use date instead.",Dd),Nd.months=aa("months accessor is deprecated. Use month instead",Y),Nd.years=aa("years accessor is deprecated. Use year instead",td),Nd.zone=aa("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",Oa);var Od=Nd,Pd={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Qd={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},Rd="Invalid date",Sd="%d",Td=/\d{1,2}/,Ud={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},Vd=s.prototype;Vd._calendar=Pd,Vd.calendar=_b,Vd._longDateFormat=Qd,Vd.longDateFormat=ac,Vd._invalidDate=Rd,Vd.invalidDate=bc,Vd._ordinal=Sd,Vd.ordinal=cc,Vd._ordinalParse=Td,Vd.preparse=dc,Vd.postformat=dc,Vd._relativeTime=Ud,Vd.relativeTime=ec,Vd.pastFuture=fc,Vd.set=gc,Vd.months=U,Vd._months=md,Vd.monthsShort=V,Vd._monthsShort=nd,Vd.monthsParse=W,Vd.week=ka,Vd._week=ud,Vd.firstDayOfYear=ma,Vd.firstDayOfWeek=la,Vd.weekdays=Lb,Vd._weekdays=Ed,Vd.weekdaysMin=Nb,Vd._weekdaysMin=Gd,Vd.weekdaysShort=Mb,Vd._weekdaysShort=Fd,Vd.weekdaysParse=Ob,Vd.isPM=Ub,Vd._meridiemParse=Hd,Vd.meridiem=Vb,w("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(a){var b=a%10,c=1===q(a%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th";return a+c}}),a.lang=aa("moment.lang is deprecated. Use moment.locale instead.",w),a.langData=aa("moment.langData is deprecated. Use moment.localeData instead.",y);var Wd=Math.abs,Xd=yc("ms"),Yd=yc("s"),Zd=yc("m"),$d=yc("h"),_d=yc("d"),ae=yc("w"),be=yc("M"),ce=yc("y"),de=Ac("milliseconds"),ee=Ac("seconds"),fe=Ac("minutes"),ge=Ac("hours"),he=Ac("days"),ie=Ac("months"),je=Ac("years"),ke=Math.round,le={s:45,m:45,h:22,d:26,M:11},me=Math.abs,ne=Ha.prototype;ne.abs=oc,ne.add=qc,ne.subtract=rc,ne.as=wc,ne.asMilliseconds=Xd,ne.asSeconds=Yd,ne.asMinutes=Zd,ne.asHours=$d,ne.asDays=_d,ne.asWeeks=ae,ne.asMonths=be,ne.asYears=ce,ne.valueOf=xc,ne._bubble=tc,ne.get=zc,ne.milliseconds=de,ne.seconds=ee,ne.minutes=fe,ne.hours=ge,ne.days=he,ne.weeks=Bc,ne.months=ie,ne.years=je,ne.humanize=Fc,ne.toISOString=Gc,ne.toString=Gc,ne.toJSON=Gc,ne.locale=rb,ne.localeData=sb,ne.toIsoString=aa("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Gc),ne.lang=Cd,H("X",0,0,"unix"),H("x",0,0,"valueOf"),N("x",_c),N("X",bd),Q("X",function(a,b,c){c._d=new Date(1e3*parseFloat(a,10))}),Q("x",function(a,b,c){c._d=new Date(q(a))}),a.version="2.10.6",b(Da),a.fn=Od,a.min=Fa,a.max=Ga,a.utc=h,a.unix=Zb,a.months=jc,a.isDate=d,a.locale=w,a.invalid=l,a.duration=Ya,a.isMoment=o,a.weekdays=lc,a.parseZone=$b,a.localeData=y,a.isDuration=Ia,a.monthsShort=kc,a.weekdaysMin=nc,a.defineLocale=x,a.weekdaysShort=mc,a.normalizeUnits=A,a.relativeTimeThreshold=Ec;var oe=a;return oe}); | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
... | @@ -6,7 +6,7 @@ define(['i18n!base/nls/resource', 'cls', 'jquery', '../authz.jsonp?callback=defi | ... | @@ -6,7 +6,7 @@ define(['i18n!base/nls/resource', 'cls', 'jquery', '../authz.jsonp?callback=defi |
6 | extendJqueryFunction(); | 6 | extendJqueryFunction(); |
7 | localeRunsaPlugin(); | 7 | localeRunsaPlugin(); |
8 | extendEasyuiOptions(); | 8 | extendEasyuiOptions(); |
9 | - extendEasyuiValidate(); | 9 | + // extendEasyuiValidate(); |
10 | }, | 10 | }, |
11 | initialize: function () { | 11 | initialize: function () { |
12 | 12 | ... | ... |
1 | +define({ | ||
2 | + root:{ | ||
3 | + btn:{ | ||
4 | + yes:'是', | ||
5 | + no:'否', | ||
6 | + refresh:'刷新', | ||
7 | + more:'更多', | ||
8 | + confirm:'确定', | ||
9 | + select:'查询条件', | ||
10 | + add:'新建', | ||
11 | + append:'添加', | ||
12 | + remove:'删除', | ||
13 | + del:'移除', | ||
14 | + submit:'提交', | ||
15 | + edit:'编辑', | ||
16 | + cancel:'取消', | ||
17 | + print:'打印', | ||
18 | + more:'更多', | ||
19 | + save:'保存', | ||
20 | + discount:"编辑现价折数带", | ||
21 | + find:"查询", | ||
22 | + insertLevel:'插平级', | ||
23 | + addSubordinate:'添下级', | ||
24 | + moveUp:'上移', | ||
25 | + moveDown:'下移', | ||
26 | + approval:'审批', | ||
27 | + stopOpt:'中止', | ||
28 | + continueOpt:'继续执行', | ||
29 | + seeOpt:'查看', | ||
30 | + addByFile:'导入', /*import 在IE浏览器上是关键字,请引用到的地方修改*/ | ||
31 | + selCustomer:"选择用户", | ||
32 | + downloadExcel:"导出模板", | ||
33 | + exportPdf:'导出PDF' | ||
34 | + }, | ||
35 | + confirmDelete:'你确定要删除这条信息吗?', | ||
36 | + msgEditTip:'请选择要编辑的数据!', | ||
37 | + msgRemoveTip:'请选择要删除的数据!', | ||
38 | + msgDefaultTip:'请选择对象!', | ||
39 | + msg_title:"系统提示", | ||
40 | + onExit:'您确定退出门户吗?', | ||
41 | + msgOptTip:'确定进行该操作?', | ||
42 | + msgSuccess:'操作成功', | ||
43 | + loadingText:'加载中,请稍候...' | ||
44 | + }, | ||
45 | + "en-US": true, | ||
46 | + "en-US-paris": true | ||
47 | +}); | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -define(['i18n!brand/nls/resource', 'cls', 'base/index', 'index/index'], function (resource, Class, base, index){ | 1 | +define(["uploadify"],function(){ |
2 | - return Class({ | 2 | + return function(sessionId,rootUrl){ |
3 | - resource: resource, | 3 | + var body=$(document.body); |
4 | - variable: function () { | 4 | + var pannel = getSelectedPanel();//初始化面板 |
5 | - var panel = index.getSelectedPanel(); | 5 | + var page = pannel.children(".data-brand").layout({fit:true});//定义面板内div |
6 | - this.page = panel.children('.data-brand').layout({fit: true}); | 6 | + var datagrid = initDatagrid();//初始化数据表格 |
7 | - this.north = this.page.layout("panel", "north"); | 7 | + var window = initWindow();//初始化添加页面 |
8 | - this.center = this.page.layout("panel", "center"); | ||
9 | - this.grid = $('<div></div>').appendTo(this.center); | ||
10 | - this.queryId = '22726b54-5748-4926-82ed-abe076caecfa'; | ||
11 | - }, | ||
12 | - initialize: function () { | ||
13 | - initDatagrid(this); | ||
14 | - function initDatagrid(inst){ | ||
15 | - return inst.grid.datagrid({ | ||
16 | - url:'./query/' + inst.queryId + '.json', | ||
17 | - toolbar:$('<div class="clearfix"></div>').rs_toolbar({ | ||
18 | - title: resource.grid.title, | ||
19 | - authz:base.getAuthz('brand'), | ||
20 | - buttons:[{ | ||
21 | - text:base.resource.btn.select, | ||
22 | - iconCls:'btn-select select-condition', | ||
23 | - code:'view', | ||
24 | - handler: function(){ | ||
25 | - showCondObject('22726b54-5748-4926-82ed-abe076caecfa',datagridReload); | ||
26 | - } | ||
27 | - },{ | ||
28 | - text:base.resource.btn.add, | ||
29 | - iconCls:'btn-add', | ||
30 | - code:'edit', | ||
31 | - handler: function(){ | ||
32 | - addWindow.call(this,inst) | ||
33 | - } | ||
34 | - },{ | ||
35 | - text:base.resource.btn.edit, | ||
36 | - iconCls:'btn-edit', | ||
37 | - code:'edit', | ||
38 | - handler: function(){ | ||
39 | - editWindow.call(this,inst) | ||
40 | - } | ||
41 | - },{ | ||
42 | - text:base.resource.btn.remove, | ||
43 | - iconCls:'btn-remove', | ||
44 | - code:'edit', | ||
45 | - handler: function () { | ||
46 | - deleteData.call(this,inst) | ||
47 | - } | ||
48 | - }], | ||
49 | - tools:[{ | ||
50 | - text:base.resource.btn.refresh, | ||
51 | - iconCls:'btn-refresh', | ||
52 | - handler:function(){ | ||
53 | - datagridReload.call(inst) | ||
54 | - } | ||
55 | - }] | ||
56 | - }), | ||
57 | - columns:[[ | ||
58 | - {field:'ck',checkbox:true }, | ||
59 | - /*{field:'id',title:'编号', width:100, align:"center"},*/ | ||
60 | - {field:'BRNAME',title:resource.grid.BRNAME, width:120}, | ||
61 | - {field:'BRDESC',title:resource.grid.BRDESC, width:200}, | ||
62 | - {field:'BRCODE',title:resource.grid.BRCODE, width:120}, | ||
63 | - {field:'PTVALID',title:resource.grid.PTVALID, width:80,formatter: function(value,row,index){ | ||
64 | - if(parseInt(value)==1){ | ||
65 | - return base.resource.btn.yes; | ||
66 | - }else if(parseInt(value)==0){ | ||
67 | - return base.resource.btn.no; | ||
68 | - }else{return "";} | ||
69 | - }} | ||
70 | - ]] | ||
71 | - }); | ||
72 | - } | ||
73 | - }, | ||
74 | - windowDialog: initWindow(),//初始化添加页面 | ||
75 | - handler: function () { | ||
76 | - | ||
77 | - } | ||
78 | - }); | ||
79 | - | ||
80 | - | ||
81 | var form=window.children(".addForm"); | 8 | var form=window.children(".addForm"); |
82 | var txtId=form.find("input[name='id']"); | 9 | var txtId=form.find("input[name='id']"); |
83 | var txtName=form.find("input[name='name']"); | 10 | var txtName=form.find("input[name='name']"); |
84 | var txtDesc=form.find("input[name='desc']"); | 11 | var txtDesc=form.find("input[name='desc']"); |
85 | var txtCode=form.find("input[name='code']"); | 12 | var txtCode=form.find("input[name='code']"); |
86 | var txtValid=form.find("select[name='valid']"); | 13 | var txtValid=form.find("select[name='valid']"); |
87 | - form.find("span.name").html(resource.name); | 14 | + form.find("span.name").html(resource.brand.name); |
88 | - form.find("div.desc").html(resource.desc); | 15 | + form.find("div.desc").html(resource.brand.desc); |
89 | - form.find("span.code").html(resource.code); | 16 | + form.find("span.code").html(resource.brand.code); |
90 | - form.find("div.valid").html(resource.valid); | 17 | + form.find("div.valid").html(resource.brand.valid); |
91 | maxlengthUtils(txtName,20); | 18 | maxlengthUtils(txtName,20); |
92 | txtName.textbox({ | 19 | txtName.textbox({ |
93 | required:true | 20 | required:true |
... | @@ -115,26 +42,110 @@ define(['i18n!brand/nls/resource', 'cls', 'base/index', 'index/index'], function | ... | @@ -115,26 +42,110 @@ define(['i18n!brand/nls/resource', 'cls', 'base/index', 'index/index'], function |
115 | }); | 42 | }); |
116 | window.find(".cancel").bind("click", hideWindow);//绑定页面取消按钮 | 43 | window.find(".cancel").bind("click", hideWindow);//绑定页面取消按钮 |
117 | //初始化表格 | 44 | //初始化表格 |
118 | - | 45 | + function initDatagrid(){ |
46 | + return page.layout('panel','center').children('.data-brand-table').datagrid({ | ||
47 | + url:'./query/22726b54-5748-4926-82ed-abe076caecfa.json', | ||
48 | + toolbar:$('<div class="clearfix"></div>').rs_toolbar({ | ||
49 | + title: resource.brand.grid.title, | ||
50 | + authz:getAuthzUtils('brand'), | ||
51 | + buttons:[{ | ||
52 | + text:resource.btn.select, | ||
53 | + iconCls:'btn-select select-condition', | ||
54 | + code:'view', | ||
55 | + handler: function(){ | ||
56 | + showCondObject('22726b54-5748-4926-82ed-abe076caecfa',datagridReload); | ||
57 | +// showTreeObject('22726b54-5748-4926-82ed-abe076caecfa',datagridReload); | ||
58 | +// showCondObject({ | ||
59 | +// id:'11111111-1111-1111-1111-111111111111', | ||
60 | +// showGrid:true, | ||
61 | +// singleSelect:false, | ||
62 | +// disableSelect:true, | ||
63 | +// onCascade:{ | ||
64 | +// "5ac16b69-77e4-4710-8bcd-63fc8685fd1a":{ | ||
65 | +// change:function(newValue,oldValue){ | ||
66 | +// return "f48ab2d7-5e71-49eb-9c45-47df6cda15fb"; /*指定取field id的值*/ | ||
67 | +// } | ||
68 | +// }, | ||
69 | +// "f48ab2d7-5e71-49eb-9c45-47df6cda15fb":{ | ||
70 | +// fields:function(params,node){ | ||
71 | +// return "5ac16b69-77e4-4710-8bcd-63fc8685fd1a"; /*指定取field id的值*/ | ||
72 | +// } | ||
73 | +// } | ||
74 | +// } | ||
75 | +// },function(exps,rowCount,desc){ | ||
76 | +// alert(desc); | ||
77 | +// }); | ||
78 | + } | ||
79 | + },{ | ||
80 | + text:resource.btn.add, | ||
81 | + iconCls:'btn-add', | ||
82 | + code:'edit', | ||
83 | + handler: addWindow | ||
84 | + },{ | ||
85 | + text:resource.btn.edit, | ||
86 | + iconCls:'btn-edit', | ||
87 | + code:'edit', | ||
88 | + handler: editWindow | ||
89 | + },{ | ||
90 | + text:resource.btn.remove, | ||
91 | + iconCls:'btn-remove', | ||
92 | + code:'edit', | ||
93 | + handler: deleteData | ||
94 | + }], | ||
95 | + tools:[ | ||
96 | + { | ||
97 | + text:resource.btn.downloadExcel, | ||
98 | + iconCls:'btn-down', | ||
99 | + handler:function(){ | ||
100 | + var fileName="mtBrandTemplate.xlsx"; | ||
101 | + downloadExcel(fileName); | ||
102 | + } | ||
103 | + } ,{ | ||
104 | + text:resource.btn.refresh, | ||
105 | + iconCls:'btn-refresh', | ||
106 | + handler:panelRefreshUtils | ||
107 | + } ,{ | ||
108 | + text : resource.btn.import, | ||
109 | + iconCls : 'btn-up', | ||
110 | + id:'btn-brand-import' | ||
111 | + } ] | ||
112 | + }), | ||
113 | + columns:[[ | ||
114 | + {field:'ck',checkbox:true }, | ||
115 | + /*{field:'id',title:'编号', width:100, align:"center"},*/ | ||
116 | + {field:'BRNAME',title:resource.brand.grid.BRNAME, width:120}, | ||
117 | + {field:'BRDESC',title:resource.brand.grid.BRDESC, width:200}, | ||
118 | + {field:'BRCODE',title:resource.brand.grid.BRCODE, width:120}, | ||
119 | + {field:'PTVALID',title:resource.brand.grid.PTVALID, width:80,formatter: function(value,row,index){ | ||
120 | + if(parseInt(value)==1){ | ||
121 | + return resource.btn.yes; | ||
122 | + }else if(parseInt(value)==0){ | ||
123 | + return resource.btn.no; | ||
124 | + }else{return "";} | ||
125 | + }} | ||
126 | + ]] | ||
127 | + }); | ||
128 | + } | ||
119 | //初始化dialog | 129 | //初始化dialog |
120 | function initWindow(){ | 130 | function initWindow(){ |
121 | $(document.body).children(".window").children(".data-brand-dialog").parent().remove(); | 131 | $(document.body).children(".window").children(".data-brand-dialog").parent().remove(); |
122 | - $(document.body).children(".window").children(".data-brand-dialog").remove(); | 132 | + body.children(".window").children(".data-brand-dialog").remove(); |
123 | - var tempWin = $(document.body).children(".data-brand-dialog"); | 133 | + var tempWin = page.children(".data-brand-dialog"); |
124 | tempWin.dialog({ | 134 | tempWin.dialog({ |
125 | buttons:[{ | 135 | buttons:[{ |
126 | - text: base.resource.btn.confirm, | 136 | + text: resource.btn.confirm, |
127 | handler:function(){ | 137 | handler:function(){ |
128 | editSubmit(); | 138 | editSubmit(); |
129 | } | 139 | } |
130 | }, | 140 | }, |
131 | { | 141 | { |
132 | - text: base.resource.btn.cancel, | 142 | + text: resource.btn.cancel, |
133 | handler:hideWindow | 143 | handler:hideWindow |
134 | }], | 144 | }], |
135 | closed:true, | 145 | closed:true, |
136 | width: 500, | 146 | width: 500, |
137 | height: 'auto', | 147 | height: 'auto', |
148 | + closed: true, | ||
138 | modal: true | 149 | modal: true |
139 | }); | 150 | }); |
140 | return tempWin; | 151 | return tempWin; |
... | @@ -146,29 +157,43 @@ define(['i18n!brand/nls/resource', 'cls', 'base/index', 'index/index'], function | ... | @@ -146,29 +157,43 @@ define(['i18n!brand/nls/resource', 'cls', 'base/index', 'index/index'], function |
146 | } | 157 | } |
147 | 158 | ||
148 | //添加页面弹出绑定按钮 | 159 | //添加页面弹出绑定按钮 |
149 | - function addWindow(inst){ | 160 | + function addWindow(){ |
150 | window.removeClass("hide"); | 161 | window.removeClass("hide"); |
151 | maxlengthUtils(txtName,20); | 162 | maxlengthUtils(txtName,20); |
152 | maxlengthUtils(txtCode,10); | 163 | maxlengthUtils(txtCode,10); |
153 | window.find(".addForm").form("clear"); | 164 | window.find(".addForm").form("clear"); |
154 | txtValid.combobox("setValue","1"); | 165 | txtValid.combobox("setValue","1"); |
155 | - window.window("center").dialog('setTitle',resource.addDialog.title).dialog("open"); | 166 | + window.window("center").dialog('setTitle',resource.brand.addDialog.title).dialog("open"); |
156 | window.addClass("add"); | 167 | window.addClass("add"); |
157 | } | 168 | } |
158 | 169 | ||
159 | - | 170 | + //添加确认 |
171 | +// function addSubmit(){ | ||
172 | +// window.removeClass("edit").find(".addForm").form('submit', { | ||
173 | +// url : "./brand/update.json", | ||
174 | +// onSubmit : function() { | ||
175 | +// return $(this).form("validate"); | ||
176 | +// }, | ||
177 | +// success : function(result) { | ||
178 | +// if(responseUtils(result)){//统一返回标准处理 responseUtils | ||
179 | +// window.dialog("close"); | ||
180 | +// datagridReload(); | ||
181 | +// } | ||
182 | +// } | ||
183 | +// }); | ||
184 | +// } | ||
160 | //编辑页面弹出绑定按钮 | 185 | //编辑页面弹出绑定按钮 |
161 | - function editWindow(inst){ | 186 | + function editWindow(){ |
162 | maxlengthUtils(txtName,20); | 187 | maxlengthUtils(txtName,20); |
163 | maxlengthUtils(txtCode,10); | 188 | maxlengthUtils(txtCode,10); |
164 | - var row = getSelectedRow.call(inst); | 189 | + var row = getSelectedRow(); |
165 | if(row == null){ | 190 | if(row == null){ |
166 | $.messager.alert(resource.msg_title, resource.brand.editDialog.tip); | 191 | $.messager.alert(resource.msg_title, resource.brand.editDialog.tip); |
167 | }else{ | 192 | }else{ |
168 | window.removeClass("hide"); | 193 | window.removeClass("hide"); |
169 | var edit = window.window("center").dialog('setTitle',resource.brand.editDialog.title).dialog("open").find(".addForm"); | 194 | var edit = window.window("center").dialog('setTitle',resource.brand.editDialog.title).dialog("open").find(".addForm"); |
170 | window.addClass("edit"); | 195 | window.addClass("edit"); |
171 | - edit.form("load", getSelectedRow.call(inst)); | 196 | + edit.form("load", getSelectedRow()); |
172 | } | 197 | } |
173 | } | 198 | } |
174 | //编辑确认 | 199 | //编辑确认 |
... | @@ -191,11 +216,23 @@ define(['i18n!brand/nls/resource', 'cls', 'base/index', 'index/index'], function | ... | @@ -191,11 +216,23 @@ define(['i18n!brand/nls/resource', 'cls', 'base/index', 'index/index'], function |
191 | datagridReload(); | 216 | datagridReload(); |
192 | } | 217 | } |
193 | }); | 218 | }); |
219 | +// window.find(".addForm").form('submit', { | ||
220 | +// url : txtId.val()==""?"./brand/insert.json":"./brand/update.json", | ||
221 | +// onSubmit : function() { | ||
222 | +// return $(this).form("validate"); | ||
223 | +// }, | ||
224 | +// success : function(result) { | ||
225 | +// if(responseUtils(result)){ | ||
226 | +// window.dialog("close"); | ||
227 | +// datagridReload(); | ||
228 | +// } | ||
229 | +// } | ||
230 | +// }); | ||
194 | } | 231 | } |
195 | 232 | ||
196 | //删除 | 233 | //删除 |
197 | - function deleteData(inst){ | 234 | + function deleteData(){ |
198 | - var accountSet = getSelectedRow.call(inst); | 235 | + var accountSet = getSelectedRow(); |
199 | if(accountSet == null){ | 236 | if(accountSet == null){ |
200 | return $.messager.alert(resource.msg_title, resource.brand.removeDialog.tip); | 237 | return $.messager.alert(resource.msg_title, resource.brand.removeDialog.tip); |
201 | }else if(accountSet.id=='1'){ | 238 | }else if(accountSet.id=='1'){ |
... | @@ -205,7 +242,7 @@ define(['i18n!brand/nls/resource', 'cls', 'base/index', 'index/index'], function | ... | @@ -205,7 +242,7 @@ define(['i18n!brand/nls/resource', 'cls', 'base/index', 'index/index'], function |
205 | if (r){ | 242 | if (r){ |
206 | $.JSON("./brand/delete.json", accountSet, function(result){ | 243 | $.JSON("./brand/delete.json", accountSet, function(result){ |
207 | if(responseUtils(result)){ | 244 | if(responseUtils(result)){ |
208 | - this.grid.datagrid("reload"); | 245 | + datagridReload(); |
209 | } | 246 | } |
210 | }); | 247 | }); |
211 | } | 248 | } |
... | @@ -213,20 +250,49 @@ define(['i18n!brand/nls/resource', 'cls', 'base/index', 'index/index'], function | ... | @@ -213,20 +250,49 @@ define(['i18n!brand/nls/resource', 'cls', 'base/index', 'index/index'], function |
213 | } | 250 | } |
214 | function datagridReload(params){ | 251 | function datagridReload(params){ |
215 | if(params){ | 252 | if(params){ |
216 | - this.grid.datagrid("reload",params); | 253 | + datagrid.datagrid("reload",params); |
217 | }else{ | 254 | }else{ |
218 | - this.grid.datagrid("reload",base.getCondObjectValue(this.queryId)); | 255 | + datagrid.datagrid("reload",getCondObjectValue('22726b54-5748-4926-82ed-abe076caecfa')); |
219 | } | 256 | } |
220 | } | 257 | } |
221 | function getSelectedRow(){ | 258 | function getSelectedRow(){ |
222 | - var row = this.grid.datagrid('getSelected'); | 259 | + var row = datagrid.datagrid('getSelected'); |
223 | return row?{ | 260 | return row?{ |
224 | id:row.BRID, | 261 | id:row.BRID, |
225 | name:row.BRNAME, | 262 | name:row.BRNAME, |
226 | - desc:row.BRDESC, | 263 | + desc:row.BRDESC==undefined?"":row.BRDESC, |
227 | code:row.BRCODE, | 264 | code:row.BRCODE, |
228 | valid:row.PTVALID | 265 | valid:row.PTVALID |
229 | }:null; | 266 | }:null; |
230 | } | 267 | } |
231 | 268 | ||
269 | + | ||
270 | + $("#btn-brand-import").uploadify({ | ||
271 | + width: 70, | ||
272 | + swf:'js/third/uploadify/uploadify.swf', | ||
273 | +// uploader:rootUrl+'excelImport/tagUpload.json;jsessionid='+sessionId, //有参数 | ||
274 | + uploader:rootUrl+'excelImport/upload.json;jsessionid='+sessionId, //无参数 | ||
275 | + buttonText:'', | ||
276 | + buttonClass:'importButton', | ||
277 | + multi :false, | ||
278 | + fileTypeExts: '*.xlsx; *.xls', | ||
279 | + 'formData': { 'sheetCode': "mtBrand" }, | ||
280 | + onUploadSuccess:function (file, data, response){ | ||
281 | + var json=eval("("+data+")"); | ||
282 | + var result = json.excelResult; | ||
283 | + if(result.error>0){ | ||
284 | + download(result.filePath, result.fileName); | ||
285 | + }else{ | ||
286 | + datagridReload(); | ||
287 | + } | ||
288 | + } | ||
289 | + }); | ||
290 | + | ||
291 | + (function importSize(){ | ||
292 | + $("#btn-brand-import").css('width','90px'); | ||
293 | + $("#btn-brand-import").find("#btn-brand-import-button").remove(); | ||
294 | + $("#btn-brand-import").append('<a href="javascript:void(0);" class="button l-btn l-btn-small" group="" id=""><span class="l-btn-left l-btn-icon-left"><span class="l-btn-text">导入</span><span class="l-btn-icon btn-up"> </span></span></a>') | ||
295 | + }()) | ||
296 | + | ||
297 | + } | ||
232 | }); | 298 | }); |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
1 | +define(['i18n!index/nls/resource','cls'],function(resource,Class){ | ||
2 | + return Class({ | ||
3 | + resource:resource, | ||
4 | + variable:function(){ | ||
5 | + this.log("layout variable"); | ||
6 | + this.layout=$(document.body).children(".rs-base").children(".rs-layout").layout({fit:true}); | ||
7 | + this.center=this.layout.layout("panel","center"); | ||
8 | + this.north=this.layout.layout("panel","north");; | ||
9 | + this.west=this.layout.layout("panel","west"); | ||
10 | + this.tabs=$('<div class="rs-tabs"></div>').appendTo(this.center); | ||
11 | + }, | ||
12 | + initialize:function(){ | ||
13 | + this.log("layout initialize"); | ||
14 | + initTabs(this); | ||
15 | + }, | ||
16 | + handler:function(){ | ||
17 | + this.log("layout handler"); | ||
18 | + layoutResize(this); | ||
19 | + }, | ||
20 | + showPanel:function(node,r,fn) { | ||
21 | + //打开先项卡 isView:强制刷新 ,callback:回调函数 | ||
22 | + var isView=false; | ||
23 | + var callback; | ||
24 | + for (var i = 1; i < arguments.length; i++) { | ||
25 | + if (typeof (arguments[i]) == "boolean") { | ||
26 | + isView = arguments[i]; | ||
27 | + } else if (typeof (arguments[i]) == "function") { | ||
28 | + callback = arguments[i]; | ||
29 | + } | ||
30 | + } | ||
31 | + if (node.url) { | ||
32 | + var list = this.tabs.tabs("tabs"); | ||
33 | + var isFind = false; | ||
34 | + for (var i = 0; i < list.length; i++) { | ||
35 | + if (list[i].panel("options").title == node.text) { | ||
36 | + tabs.tabs("select", i); | ||
37 | + isFind = true; | ||
38 | + if(isView){ | ||
39 | + var index=tabs.tabs("getTabIndex",list[i]); | ||
40 | + tabs.tabs("close",index); | ||
41 | + isFind=false; | ||
42 | +// list[i].panel('options').tabParams=node; | ||
43 | +// list[i].panel("refresh",changeUrl(node.url)); | ||
44 | + } | ||
45 | + break; | ||
46 | + } | ||
47 | + } | ||
48 | + if (!isFind) { | ||
49 | + this.tabs.tabs("add", { | ||
50 | + title : node.text, | ||
51 | + closable : true, | ||
52 | + href : changeUrl(node.url), | ||
53 | + tabParams : node, | ||
54 | +// onResize:function(width, height){ | ||
55 | +// $(this).triggerHandler("_resize"); | ||
56 | +// }, | ||
57 | + callback:callback | ||
58 | + }); | ||
59 | + } | ||
60 | + } | ||
61 | + function changeUrl(){ | ||
62 | + var frame=node.url.length>8&&node.url.substr(0,9)=="iframe://"; | ||
63 | + if(frame){ | ||
64 | + node.url=(node.url+(node.url.indexOf('?')>0?'&':'?')+'platid='+global.platId+'&pltid='+global.platTypeId) | ||
65 | + } | ||
66 | + var url=frame?("./iframe?url="+node.url.substr(9)):node.url; | ||
67 | + return url; | ||
68 | + } | ||
69 | + }, | ||
70 | + getSelectedPanel:function(){ | ||
71 | + /*得到选中面板*/ | ||
72 | + return this.tabs.tabs("getSelected"); | ||
73 | + }, | ||
74 | + closeSelectedPanel:function (fn) {/*关闭当前选中tab*/ | ||
75 | + if(fn){ | ||
76 | + fn(); | ||
77 | + } | ||
78 | + var selectedTab =this.tabs.tabs('getSelected'); | ||
79 | + var options=selectedTab.panel("options"); | ||
80 | + var index = this.tabs.tabs("getTabIndex", selectedTab); | ||
81 | + this.tabs.tabs("close", index); | ||
82 | + if(options.callback){ | ||
83 | + options.callback.call(this); | ||
84 | + } | ||
85 | + }, | ||
86 | + panelRefresh:function(){ | ||
87 | + this.getSelectedPanel().panel("refresh"); | ||
88 | + } | ||
89 | + }); | ||
90 | + | ||
91 | + function initTabs(inst){ | ||
92 | + inst.tabs.tabs({ | ||
93 | + fit : true, | ||
94 | + border : false, | ||
95 | + plain:true, | ||
96 | +// tabHeight:22, | ||
97 | + tabWidth:150, | ||
98 | + onBeforeClose: function(title,index){ | ||
99 | + var tab=inst.tabs.tabs("getTab",index); | ||
100 | +// var editors=tab.find(".ckeditor"); | ||
101 | +// for (var i = 0; i < editors.length; i++) { | ||
102 | +// var editor = $(editors[i]); | ||
103 | +// | ||
104 | +// } | ||
105 | + return true; | ||
106 | + }, | ||
107 | + onAdd:function(title,index){ | ||
108 | + $(this).tabs('getTab',index).addClass('rs-box'); | ||
109 | + } | ||
110 | + }).tabs("add", { | ||
111 | + title : '首页', | ||
112 | + href : './home' | ||
113 | + }); | ||
114 | + } | ||
115 | + /*事件绑定-设置菜单高度*/ | ||
116 | + function layoutResize(inst){ | ||
117 | + inst.layout.bind("_resize.menu",function(){ | ||
118 | + inst.layout.children(".rs-menu").height(inst.west.height()); | ||
119 | + }); | ||
120 | + } | ||
121 | +}); | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | +define(['cls','base/index','index/west'],function(Class,base,West){ | ||
2 | + return Class(West,{ | ||
3 | + variable:function(){ | ||
4 | + this.log("north variable"); | ||
5 | + //this.superClass.variable(); | ||
6 | + this.menuSearch=this.north.find(".menu-search input"); | ||
7 | + this.userMore=this.north.find(".more"); | ||
8 | + this.userWindow=$(document.body).children(".rs-user"); | ||
9 | + }, | ||
10 | + initialize:function(){ | ||
11 | + this.log("north initialize"); | ||
12 | + //this.superClass.initialize(); | ||
13 | + initMenuSearch(this); | ||
14 | + initUserWindow(this); | ||
15 | + }, | ||
16 | + handler:function(){ | ||
17 | + this.log("north handler"); | ||
18 | + //this.superClass.handler(); | ||
19 | + userMoreHandler(this); | ||
20 | + } | ||
21 | + }); | ||
22 | + | ||
23 | + //菜单搜索 | ||
24 | + function initMenuSearch(inst){ | ||
25 | + inst.menuSearch.combobox({ | ||
26 | + prompt:inst.resource.menuSearch, | ||
27 | + valueField:'id', | ||
28 | + textField: 'text', | ||
29 | + editable:true, | ||
30 | + panelWidth:260, | ||
31 | + panelHeight:'auto', | ||
32 | + panelMaxHeight:200, | ||
33 | + hasDownArrow:false, | ||
34 | + url:'./menu/select/search.json', | ||
35 | + loadFilter: $.loadFilter, | ||
36 | + filter: searchFilter, | ||
37 | + formatter: searchFormatter, | ||
38 | + onHidePanel:function(){ | ||
39 | + this.menuLoad() | ||
40 | + searchHidePanel.call(this,inst); | ||
41 | + } | ||
42 | + }); | ||
43 | + inst.menuSearch.combo('panel').parent().addClass("menu-search-combo"); | ||
44 | + inst.menuSearch.parent().find(".textbox-text").bind("focus.menuSearch",function(){ | ||
45 | + $(this).select(); | ||
46 | + }); | ||
47 | + } | ||
48 | + // | ||
49 | + function initUserWindow(inst){ | ||
50 | + inst.userWindow.window({ | ||
51 | + title:'用户信息' | ||
52 | + }).tabs({ | ||
53 | + fit:true, | ||
54 | + tabPosition:'left' | ||
55 | + }); | ||
56 | + var pwdPanel=inst.userWindow.tabs("getTab",0) | ||
57 | + inst.userWindow.tabs('update', { | ||
58 | + tab: pwdPanel, | ||
59 | + options: { | ||
60 | + title: '密码修改' | ||
61 | + } | ||
62 | + }); | ||
63 | + var pwdForm=pwdPanel.find("form.password"); | ||
64 | + var lblOldPwd=pwdForm.find("div.oldpwd"); | ||
65 | + var txtOldPwd=pwdForm.find("input.oldpwd").textbox({ | ||
66 | + required:true, | ||
67 | + invalidMessage:'请输入旧密码', | ||
68 | + type:'password' | ||
69 | + }); | ||
70 | + var lblNewPwd=pwdForm.find("div.newpwd"); | ||
71 | + var txtNewPwd=pwdForm.find("input.newpwd").textbox({ | ||
72 | + required:true, | ||
73 | + invalidMessage:'请输入新密码', | ||
74 | + type:'password' | ||
75 | + }); | ||
76 | + var lblRepPwd=pwdForm.find("div.repeatpwd"); | ||
77 | + var txtRepPwd=pwdForm.find("input.repeatpwd").textbox({ | ||
78 | + required:true, | ||
79 | + invalidMessage:'请输入重复密码', | ||
80 | + type:'password' | ||
81 | + }); | ||
82 | + var btnConfirm=pwdForm.find(".confirm"); | ||
83 | + btnConfirm.bind("click.password",function(){ | ||
84 | + var oldpwd=$.trim(txtOldPwd.textbox("getValue")); | ||
85 | + var newpwd=$.trim(txtNewPwd.textbox("getValue")); | ||
86 | + var reppwd=$.trim(txtRepPwd.textbox("getValue")); | ||
87 | + if(oldpwd==newpwd){ //cn.runsa.password.newPwdNotMatch | ||
88 | + $.messager.alert(base.resource.msg_title,base.resource.cn_runsa_password.newPwdNotMatch); | ||
89 | + return; | ||
90 | + } | ||
91 | + if(reppwd!=newpwd){//cn.runsa.password.repeatPwdNotMatch | ||
92 | + $.messager.alert(base.resource.msg_title,base.resource.cn_runsa_password.repeatPwdNotMatch); | ||
93 | + return; | ||
94 | + } | ||
95 | + if(newpwd.length<8){//cn.runsa.password.newpwdLenthError | ||
96 | + $.messager.alert(base.resource.msg_title,base.resource.cn_runsa_password.newpwdLenthError); | ||
97 | + return; | ||
98 | + } | ||
99 | + if(pwdForm.form("validate")){ | ||
100 | + $.messager.progress(); | ||
101 | + var data={ | ||
102 | + oldPwd:oldpwd, | ||
103 | + newPwd:newpwd, | ||
104 | + repPwd:reppwd | ||
105 | + }; | ||
106 | + $.post("./users/password/update.json",data,function(json){ | ||
107 | + $.messager.progress('close'); | ||
108 | + if(responseUtils(json)){ | ||
109 | + $.messager.alert(base.resource.msg_title,'密码已修改,请重新登录.','info',function(){ | ||
110 | + window.location.href="./logout"; | ||
111 | + }); | ||
112 | + } | ||
113 | + }); | ||
114 | + } | ||
115 | + }); | ||
116 | + inst.userWindow.width(inst.userWindow.width()+1); | ||
117 | + } | ||
118 | + function userMoreHandler(inst){ | ||
119 | + inst.userMore.bind("click.user",function(){ | ||
120 | + inst.userWindow.show().window("center").window("open"); | ||
121 | + }); | ||
122 | + } | ||
123 | + function searchFilter(q, row){ | ||
124 | + var opts = $(this).combobox('options'); | ||
125 | + //添加判断子菜单是否匹配 | ||
126 | + var isFind=row[opts.textField].indexOf(q) >= 0; | ||
127 | + if(!isFind){ | ||
128 | + for (var i = 0; i < row.child.length; i++) { | ||
129 | + if(row.child[i].indexOf(q) >= 0){ | ||
130 | + isFind=true; | ||
131 | + break; | ||
132 | + } | ||
133 | + } | ||
134 | + } | ||
135 | + return isFind; | ||
136 | + } | ||
137 | + function searchFormatter(row){ | ||
138 | + var opts = $(this).combobox('options'); | ||
139 | + //生成子菜单内容 | ||
140 | + row.child=[]; | ||
141 | + var html=row[opts.textField]; | ||
142 | + appendChild(row.children,1); | ||
143 | + return html; | ||
144 | + function appendChild(items,c){ | ||
145 | + if(items){ | ||
146 | + var t=c+1; | ||
147 | + for (var i = 0; i < items.length; i++) { | ||
148 | + if(items[i]&&items[i].text){ | ||
149 | + row.child.push(items[i].text); | ||
150 | + html+=('<div class="nav-select">'+appendSpace(c)+items[i].text+'</div>'); | ||
151 | + appendChild(items[i].children,t); | ||
152 | + } | ||
153 | + } | ||
154 | + } | ||
155 | + } | ||
156 | + function appendSpace(c){ | ||
157 | + var space=""; | ||
158 | + for (var i = 0; i < c; i++) { | ||
159 | + space+=("<i class='out'></i>"); | ||
160 | + } | ||
161 | + return space; | ||
162 | + } | ||
163 | + } | ||
164 | + function searchHidePanel(inst){ | ||
165 | + var t=$(this).combobox("getValue"); | ||
166 | + if(t){ | ||
167 | + data=$(this).combobox("getData"); | ||
168 | + if(data){ | ||
169 | + for (var i = 0; i < data.length; i++) { | ||
170 | + if(data[i]&&data[i].id==t&&data[i].url){ | ||
171 | + inst.showPanel({text:formatMenuName(data[i].text),url:data[i].url}); | ||
172 | + break; | ||
173 | + } | ||
174 | + } | ||
175 | + } | ||
176 | + } | ||
177 | + function formatMenuName(name){ | ||
178 | + var i=name.lastIndexOf("("); | ||
179 | + return i>0?name.substring(0,i):name; | ||
180 | + } | ||
181 | + } | ||
182 | +}); | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | +define(['base/index','cls','index/layout'],function(base,Class,Layout){ | ||
2 | + return Class(Layout,{ | ||
3 | + animateSpeed:500, | ||
4 | + variable:function(){ | ||
5 | + this.log("west variable"); | ||
6 | + this.menu=this.layout.children(".rs-menu"); | ||
7 | + this.btnMenu=this.west.find(".btn-menu"); | ||
8 | + this.btnHome=this.west.find(".btn-crm"); | ||
9 | + this.btnExit=this.west.find(".btn-exit"); | ||
10 | + }, | ||
11 | + initialize:function(){ | ||
12 | + this.log("west initialize"); | ||
13 | + this.menuLoad('./menu/select.json'); | ||
14 | + }, | ||
15 | + handler:function(){ | ||
16 | + this.log("west handler"); | ||
17 | + btnMenuHandler(this); | ||
18 | + globalMenuShrink(this); | ||
19 | + btnHomeHandler(this); | ||
20 | + btnExitHandler(this); | ||
21 | + }, | ||
22 | + menuLoad:function(url){ | ||
23 | + loadMenuTree(this,url); | ||
24 | + }, | ||
25 | + menuReload:function(id){ | ||
26 | + var roots=this.menu.tree("getRoots"); | ||
27 | + for (var i =(roots.length-1); i >=0 ; i--) { | ||
28 | + this.menu.tree("remove",roots[i].target); | ||
29 | + } | ||
30 | + this.menuLoad('./menu/select.json?parent='+id); | ||
31 | + }, | ||
32 | + menuShrink:function(){ | ||
33 | + this.btnMenu.removeClass("shrink"); | ||
34 | + this.menu.animate({ | ||
35 | + left:-this.menu.width()+this.west.width() | ||
36 | + }, this.animateSpeed); | ||
37 | + }, | ||
38 | + menuExpand:function(id){ | ||
39 | + expand(this); | ||
40 | + function expand(inst){ | ||
41 | + inst.btnMenu.addClass("shrink"); | ||
42 | + inst.menu.animate({ | ||
43 | + left:inst.west.width() | ||
44 | + }, inst.animateSpeed,function(){ | ||
45 | + if(id){ | ||
46 | + inst.menuReload(id); | ||
47 | + } | ||
48 | + }); | ||
49 | + } | ||
50 | + } | ||
51 | + }); | ||
52 | + function loadMenuTree(inst,url){ | ||
53 | + if(inst.menu.hasClass("tree")){ | ||
54 | + inst.menu.tree("options").url=url; | ||
55 | + inst.menu.tree("reload"); | ||
56 | + }else{ | ||
57 | + inst.menu.tree({ | ||
58 | + url:url, | ||
59 | + lines:false, | ||
60 | + checkbox:false, | ||
61 | + onBeforeLoad:function(node, param){ | ||
62 | + if($(this).hasClass('rs-load')){ | ||
63 | + $(this).rs_load("show"); | ||
64 | + } | ||
65 | + }, | ||
66 | + onLoadSuccess:function(node, data){ | ||
67 | + $(this).rs_load("hide"); | ||
68 | + }, | ||
69 | + onClick: function(node){ | ||
70 | + if(node.state=="open"){ | ||
71 | + $(this).tree("collapse",node.target); | ||
72 | + }else{ | ||
73 | + $(this).tree("expand",node.target); | ||
74 | + inst.showPanel(node); | ||
75 | + } | ||
76 | + if(node.url&&node.url!=""){ | ||
77 | + inst.menuShrink(); | ||
78 | + } | ||
79 | + }, | ||
80 | + onSelect : function(node){ | ||
81 | + inst.showPanel(node); | ||
82 | + } | ||
83 | + }).rs_load().css({ | ||
84 | + height:inst.west.height(), | ||
85 | + top:inst.north.height() | ||
86 | + }); | ||
87 | + } | ||
88 | + } | ||
89 | + function btnMenuHandler(inst){ | ||
90 | + inst.btnMenu.bind("click.menu",function(){ | ||
91 | + if(inst.btnMenu.hasClass("shrink")){ | ||
92 | + inst.menuShrink(); | ||
93 | + }else{ | ||
94 | + inst.menuExpand(); | ||
95 | + } | ||
96 | + }); | ||
97 | +// inst.menu.bind("mouseleave.menu",function(){ | ||
98 | +// inst.menuShrink(); | ||
99 | +// }); | ||
100 | + } | ||
101 | + function globalMenuShrink(inst){ | ||
102 | + $(window).bind("click.menu",function(e){ //收菜单 | ||
103 | + var obj=$(e.target); | ||
104 | +// if(obj.closest(".pl-home-page")){ // | ||
105 | +// return; | ||
106 | +// } | ||
107 | + var m=obj.closest(".rs-menu,.pl-home-module"); | ||
108 | + if(!obj.hasClass("btn-menu")&&m&&m.length==0){ | ||
109 | + inst.menuShrink(); | ||
110 | + } | ||
111 | + }); | ||
112 | + } | ||
113 | + function btnHomeHandler(inst){ | ||
114 | + inst.btnHome.bind("click.home",function(){ | ||
115 | + inst.tabs.tabs("select",0); | ||
116 | + }); | ||
117 | + } | ||
118 | + function btnExitHandler(inst){ | ||
119 | + inst.btnExit.bind("click.exit",function(){ | ||
120 | + $.messager.confirm(base.resource.msg_title, base.resource.onExit,function(r){ | ||
121 | + if (r){ | ||
122 | + window.location.href="./logout"; | ||
123 | + } | ||
124 | + }); | ||
125 | + }); | ||
126 | + } | ||
127 | +}); | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | +requirejs.config({ | ||
2 | + baseUrl: 'js/views', | ||
3 | + paths: { | ||
4 | + jquery: '../jquery.min', | ||
5 | + css: '../require.css.min', | ||
6 | + i18n: '../require.i18n', | ||
7 | + json2: '../json2', | ||
8 | + cls: '../plugin/rs.class', | ||
9 | + rs_load: '../plugin/rs.load', | ||
10 | + rs_toolbar: '../plugin/rs.toolbar', | ||
11 | + rs_condfield: '../../query/js/plugin/rs.condfield', | ||
12 | + rs_condition: '../../query/js/plugin/rs.condition', | ||
13 | + rs_condobject: '../../query/js/plugin/rs.condobject', | ||
14 | + rs_treeobject: '../../query/js/plugin/rs.treeobject', | ||
15 | + rs_condfield_ext: '../../query/js/plugin/rs.condfield.ext', | ||
16 | + cookie: '../third/jquery/jquery.cookie', | ||
17 | + easyui: '../third/easyui/jquery.easyui.min', | ||
18 | + 'easyui_zh-CN': '../third/easyui/locale/easyui-lang-zh_CN', | ||
19 | + moment:'../third/moment/moment.min', | ||
20 | + lodash:'../third/lodash/lodash.min', | ||
21 | + qrcode: '../third/easyui/jquery.qrcode', | ||
22 | + jspdf: '../third/pdf/jspdf.min', | ||
23 | + echarts: '../third/echarts/echarts-all', | ||
24 | + ckeditor: '../third/ckeditor/ckeditor', | ||
25 | + uploadify: '../third/uploadify/jquery.uploadify.min', | ||
26 | + qiniu: '../third/qiniu/qiniu.min', | ||
27 | + plupload: '../third/plupload/plupload.full.min' | ||
28 | + }, | ||
29 | + shim: { | ||
30 | + easyui: ['jquery'], | ||
31 | + 'easyui_zh-CN': ['easyui'], | ||
32 | + rs_condfield: ['easyui'], | ||
33 | + rs_condfield_ext: ['rs_condfield'], | ||
34 | + rs_condition: ['rs_condfield_ext'], | ||
35 | + rs_condobject: ['rs_condition'], | ||
36 | + rs_treeobject: ['easyui'], | ||
37 | + uploadify: ['jquery'], | ||
38 | + ckeditor: ['css!../third/ckeditor/skins/moono/editor.css'] | ||
39 | + }, | ||
40 | + map: { | ||
41 | + '*': { | ||
42 | + easyui_locale: 'easyui_zh-CN' | ||
43 | + } | ||
44 | + }, | ||
45 | + config: { | ||
46 | + i18n: { | ||
47 | + locale: 'zh-CN' | ||
48 | + } | ||
49 | + }, | ||
50 | + waitSeconds: 15 | ||
51 | +}); | ||
52 | +requirejs(['index/index']); | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | define(['i18n!role/nls/resource', 'cls', 'base/index', 'index/index'], function (resource, Class, base, index) { | 1 | define(['i18n!role/nls/resource', 'cls', 'base/index', 'index/index'], function (resource, Class, base, index) { |
2 | return Class({ | 2 | return Class({ |
3 | resource: resource, | 3 | resource: resource, |
4 | - variable: function () { | 4 | + variable: function (a,b) { |
5 | + alert(a); | ||
5 | var panel = index.getSelectedPanel(); | 6 | var panel = index.getSelectedPanel(); |
6 | this.page = panel.children('.pl-role-page').layout({fit: true}); | 7 | this.page = panel.children('.pl-role-page').layout({fit: true}); |
7 | this.north = this.page.layout("panel", "north"); | 8 | this.north = this.page.layout("panel", "north"); | ... | ... |
1 | +define({ | ||
2 | + root: { | ||
3 | + selectAll: '全选', | ||
4 | + unSelect: '反选', | ||
5 | + detailsDialogTitle: '请选择适用平台类型', | ||
6 | + title: '操作角色', | ||
7 | + code: '编号', | ||
8 | + name: '名称', | ||
9 | + desc: '描述', | ||
10 | + platName: '创建平台', | ||
11 | + pltName: '平台类型', | ||
12 | + valid: '可用', | ||
13 | + noSelect: '请选择操作角色.', | ||
14 | + onDelete: '您确定要删除当前操作角色?', | ||
15 | + detailsTitle: '操作角色详情', | ||
16 | + permTitle: '操作角色权限', | ||
17 | + sensTitle: '敏感字段权限', | ||
18 | + nameEmpty: '角色名称不能为空', | ||
19 | + codeEmpty: '角色编号不能为空', | ||
20 | + form: { | ||
21 | + code: '编号', | ||
22 | + name: '名称', | ||
23 | + valid: '可用', | ||
24 | + desc: '描述', | ||
25 | + platType: '适用平台类型', | ||
26 | + platform: '创建平台', | ||
27 | + type: '角色类型', | ||
28 | + system: '系统保留', | ||
29 | + custom: '自定义' | ||
30 | + }, | ||
31 | + permGrid: { | ||
32 | + name: '子系统/模块/子模块/菜单/子菜单', | ||
33 | + actions: '操作权限' | ||
34 | + }, | ||
35 | + sesnGrid: { | ||
36 | + tableName: '表名', | ||
37 | + name: '名称', | ||
38 | + perm: '权限' | ||
39 | + } | ||
40 | + }, | ||
41 | + "en-US": true, | ||
42 | + "en-US-paris": true | ||
43 | +}); | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
-
Please register or login to post a comment