amazeui 2.5.2a → 2.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +30 -12
- data/lib/amazeui/version.rb +1 -1
- data/vendor/assets/javascripts/amazeui.ie8polyfill.js +1899 -1312
- data/vendor/assets/javascripts/amazeui.ie8polyfill.min.js +3 -2
- data/vendor/assets/javascripts/amazeui.js +228 -121
- data/vendor/assets/javascripts/amazeui.min.js +8 -8
- data/vendor/assets/javascripts/amazeui.widgets.helper.js +1 -1
- data/vendor/assets/javascripts/amazeui.widgets.helper.min.js +1 -1
- data/vendor/assets/stylesheets/amazeui.css +60 -59
- data/vendor/assets/stylesheets/amazeui.flat.css +62 -61
- data/vendor/assets/stylesheets/amazeui.flat.min.css +1 -1
- data/vendor/assets/stylesheets/amazeui.min.css +1 -1
- metadata +4 -5
- data/lib/amazeui/version.rb~ +0 -3
@@ -1,2 +1,3 @@
|
|
1
|
-
/*! Amaze UI v2.
|
2
|
-
!function(e){"use strict";e.console=e.console||{};for(var t,n,r=e.console,o={},i=function(){},a="memory".split(","),c="assert,clear,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profiles,profileEnd,show,table,time,timeEnd,timeline,timelineEnd,timeStamp,trace,warn".split(",");t=a.pop();)r[t]||(r[t]=o);for(;n=c.pop();)r[n]||(r[n]=i)}("undefined"==typeof window?this:window),function(e,t){"use strict";"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.returnExports=t()}(this,function(){var e,t,n,r,o=Function.prototype.call,i=Object.prototype,a=o.bind(i.hasOwnProperty),c=a(i,"__defineGetter__");c&&(e=o.bind(i.__defineGetter__),t=o.bind(i.__defineSetter__),n=o.bind(i.__lookupGetter__),r=o.bind(i.__lookupSetter__)),Object.getPrototypeOf||(Object.getPrototypeOf=function(e){var t=e.__proto__;return t||null===t?t:e.constructor?e.constructor.prototype:i});var l=function(e){try{return e.sentinel=0,0===Object.getOwnPropertyDescriptor(e,"sentinel").value}catch(t){return!1}};if(Object.defineProperty){var u=l({}),s="undefined"==typeof document||l(document.createElement("div"));if(!s||!u)var f=Object.getOwnPropertyDescriptor}if(!Object.getOwnPropertyDescriptor||f){var p="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function(e,t){if("object"!=typeof e&&"function"!=typeof e||null===e)throw new TypeError(p+e);if(f)try{return f.call(Object,e,t)}catch(o){}var l;if(!a(e,t))return l;if(l={enumerable:!0,configurable:!0},c){var u=e.__proto__,s=e!==i;s&&(e.__proto__=i);var h=n(e,t),d=r(e,t);if(s&&(e.__proto__=u),h||d)return h&&(l.get=h),d&&(l.set=d),l}return l.value=e[t],l.writable=!0,l}}if(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(e){return Object.keys(e)}),!Object.create){var h,d=!({__proto__:null}instanceof Object),y=function(){if(!document.domain)return!1;try{return!!new ActiveXObject("htmlfile")}catch(e){return!1}},m=function(){var e,t;return t=new ActiveXObject("htmlfile"),t.write("<script></script>"),t.close(),e=t.parentWindow.Object.prototype,t=null,e},g=function(){var e,t=document.createElement("iframe"),n=document.body||document.documentElement;return t.style.display="none",n.appendChild(t),t.src="javascript:",e=t.contentWindow.Object.prototype,n.removeChild(t),t=null,e};h=d||"undefined"==typeof document?function(){return{__proto__:null}}:function(){var e=y()?m():g();delete e.constructor,delete e.hasOwnProperty,delete e.propertyIsEnumerable,delete e.isPrototypeOf,delete e.toLocaleString,delete e.toString,delete e.valueOf,e.__proto__=null;var t=function(){};return t.prototype=e,h=function(){return new t},new t},Object.create=function(e,t){var n,r=function(){};if(null===e)n=h();else{if("object"!=typeof e&&"function"!=typeof e)throw new TypeError("Object prototype may only be an Object or null");r.prototype=e,n=new r,n.__proto__=e}return void 0!==t&&Object.defineProperties(n,t),n}}var b=function(e){try{return Object.defineProperty(e,"sentinel",{}),"sentinel"in e}catch(t){return!1}};if(Object.defineProperty){var v=b({}),w="undefined"==typeof document||b(document.createElement("div"));if(!v||!w)var O=Object.defineProperty,j=Object.defineProperties}if(!Object.defineProperty||O){var x="Property description must be an object: ",E="Object.defineProperty called on non-object: ",T="getters & setters can not be defined on this javascript engine";Object.defineProperty=function(o,a,l){if("object"!=typeof o&&"function"!=typeof o||null===o)throw new TypeError(E+o);if("object"!=typeof l&&"function"!=typeof l||null===l)throw new TypeError(x+l);if(O)try{return O.call(Object,o,a,l)}catch(u){}if("value"in l)if(c&&(n(o,a)||r(o,a))){var s=o.__proto__;o.__proto__=i,delete o[a],o[a]=l.value,o.__proto__=s}else o[a]=l.value;else{if(!c)throw new TypeError(T);"get"in l&&e(o,a,l.get),"set"in l&&t(o,a,l.set)}return o}}(!Object.defineProperties||j)&&(Object.defineProperties=function(e,t){if(j)try{return j.call(Object,e,t)}catch(n){}return Object.keys(t).forEach(function(n){"__proto__"!==n&&Object.defineProperty(e,n,t[n])}),e}),Object.seal||(Object.seal=function(e){if(Object(e)!==e)throw new TypeError("Object.seal can only be called on Objects.");return e}),Object.freeze||(Object.freeze=function(e){if(Object(e)!==e)throw new TypeError("Object.freeze can only be called on Objects.");return e});try{Object.freeze(function(){})}catch(S){Object.freeze=function(e){return function(t){return"function"==typeof t?t:e(t)}}(Object.freeze)}Object.preventExtensions||(Object.preventExtensions=function(e){if(Object(e)!==e)throw new TypeError("Object.preventExtensions can only be called on Objects.");return e}),Object.isSealed||(Object.isSealed=function(e){if(Object(e)!==e)throw new TypeError("Object.isSealed can only be called on Objects.");return!1}),Object.isFrozen||(Object.isFrozen=function(e){if(Object(e)!==e)throw new TypeError("Object.isFrozen can only be called on Objects.");return!1}),Object.isExtensible||(Object.isExtensible=function(e){if(Object(e)!==e)throw new TypeError("Object.isExtensible can only be called on Objects.");for(var t="";a(e,t);)t+="?";e[t]=!0;var n=a(e,t);return delete e[t],n})}),function(e,t){"use strict";"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.returnExports=t()}(this,function(){var e,t=Array.prototype,n=Object.prototype,r=Function.prototype,o=String.prototype,i=Number.prototype,a=t.slice,c=t.splice,l=t.push,u=t.unshift,s=t.concat,f=r.call,p=n.toString,h=Array.isArray||function(e){return"[object Array]"===p.call(e)},d="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,y=Function.prototype.toString,m=function(e){try{return y.call(e),!0}catch(t){return!1}},g="[object Function]",b="[object GeneratorFunction]";e=function(e){if("function"!=typeof e)return!1;if(d)return m(e);var t=p.call(e);return t===g||t===b};var v,w=RegExp.prototype.exec,O=function(e){try{return w.call(e),!0}catch(t){return!1}},j="[object RegExp]";v=function(e){return"object"!=typeof e?!1:d?O(e):p.call(e)===j};var x,E=String.prototype.valueOf,T=function(e){try{return E.call(e),!0}catch(t){return!1}},S="[object String]";x=function(e){return"string"==typeof e?!0:"object"!=typeof e?!1:d?T(e):p.call(e)===S};var _=function(t){var n=p.call(t),r="[object Arguments]"===n;return r||(r=!h(t)&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&e(t.callee)),r},N=function(e){var t,n=Object.defineProperty&&function(){try{var e={};Object.defineProperty(e,"x",{enumerable:!1,value:e});for(var t in e)return!1;return e.x===e}catch(n){return!1}}();return t=n?function(e,t,n,r){!r&&t in e||Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:!0,value:n})}:function(e,t,n,r){!r&&t in e||(e[t]=n)},function(n,r,o){for(var i in r)e.call(r,i)&&t(n,i,r[i],o)}}(n.hasOwnProperty),P=function(e){var t=typeof e;return null===e||"object"!==t&&"function"!==t},M={ToInteger:function(e){var t=+e;return t!==t?t=0:0!==t&&t!==1/0&&t!==-(1/0)&&(t=(t>0||-1)*Math.floor(Math.abs(t))),t},ToPrimitive:function(t){var n,r,o;if(P(t))return t;if(r=t.valueOf,e(r)&&(n=r.call(t),P(n)))return n;if(o=t.toString,e(o)&&(n=o.call(t),P(n)))return n;throw new TypeError},ToObject:function(e){if(null==e)throw new TypeError("can't convert "+e+" to object");return Object(e)},ToUint32:function(e){return e>>>0}},C=function(){};N(r,{bind:function(t){var n=this;if(!e(n))throw new TypeError("Function.prototype.bind called on incompatible "+n);for(var r,o=a.call(arguments,1),i=function(){if(this instanceof r){var e=n.apply(this,s.call(o,a.call(arguments)));return Object(e)===e?e:this}return n.apply(t,s.call(o,a.call(arguments)))},c=Math.max(0,n.length-o.length),l=[],u=0;c>u;u++)l.push("$"+u);return r=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this, arguments); }")(i),n.prototype&&(C.prototype=n.prototype,r.prototype=new C,C.prototype=null),r}});var D=f.bind(n.hasOwnProperty),z=function(){var e=[1,2],t=e.splice();return 2===e.length&&h(t)&&0===t.length}();N(t,{splice:function(e,t){return 0===arguments.length?[]:c.apply(this,arguments)}},!z);var k=function(){var e={};return t.splice.call(e,0,0,1),1===e.length}();N(t,{splice:function(e,t){if(0===arguments.length)return[];var n=arguments;return this.length=Math.max(M.ToInteger(this.length),0),arguments.length>0&&"number"!=typeof t&&(n=a.call(arguments),n.length<2?n.push(this.length-e):n[1]=M.ToInteger(t)),c.apply(this,n)}},!k);var I=1!==[].unshift(0);N(t,{unshift:function(){return u.apply(this,arguments),this.length}},I),N(Array,{isArray:h});var R=Object("a"),A="a"!==R[0]||!(0 in R),F=function(e){var t=!0,n=!0;return e&&(e.call("foo",function(e,n,r){"object"!=typeof r&&(t=!1)}),e.call([1],function(){"use strict";n="string"==typeof this},"x")),!!e&&t&&n};N(t,{forEach:function(t){var n,r=M.ToObject(this),o=A&&x(this)?this.split(""):r,i=-1,a=o.length>>>0;if(arguments.length>1&&(n=arguments[1]),!e(t))throw new TypeError("Array.prototype.forEach callback must be a function");for(;++i<a;)i in o&&("undefined"!=typeof n?t.call(n,o[i],i,r):t(o[i],i,r))}},!F(t.forEach)),N(t,{map:function(t){var n,r=M.ToObject(this),o=A&&x(this)?this.split(""):r,i=o.length>>>0,a=Array(i);if(arguments.length>1&&(n=arguments[1]),!e(t))throw new TypeError("Array.prototype.map callback must be a function");for(var c=0;i>c;c++)c in o&&("undefined"!=typeof n?a[c]=t.call(n,o[c],c,r):a[c]=t(o[c],c,r));return a}},!F(t.map)),N(t,{filter:function(t){var n,r,o=M.ToObject(this),i=A&&x(this)?this.split(""):o,a=i.length>>>0,c=[];if(arguments.length>1&&(r=arguments[1]),!e(t))throw new TypeError("Array.prototype.filter callback must be a function");for(var l=0;a>l;l++)l in i&&(n=i[l],("undefined"==typeof r?t(n,l,o):t.call(r,n,l,o))&&c.push(n));return c}},!F(t.filter)),N(t,{every:function(t){var n,r=M.ToObject(this),o=A&&x(this)?this.split(""):r,i=o.length>>>0;if(arguments.length>1&&(n=arguments[1]),!e(t))throw new TypeError("Array.prototype.every callback must be a function");for(var a=0;i>a;a++)if(a in o&&!("undefined"==typeof n?t(o[a],a,r):t.call(n,o[a],a,r)))return!1;return!0}},!F(t.every)),N(t,{some:function(t){var n,r=M.ToObject(this),o=A&&x(this)?this.split(""):r,i=o.length>>>0;if(arguments.length>1&&(n=arguments[1]),!e(t))throw new TypeError("Array.prototype.some callback must be a function");for(var a=0;i>a;a++)if(a in o&&("undefined"==typeof n?t(o[a],a,r):t.call(n,o[a],a,r)))return!0;return!1}},!F(t.some));var $=!1;t.reduce&&($="object"==typeof t.reduce.call("es5",function(e,t,n,r){return r})),N(t,{reduce:function(t){var n=M.ToObject(this),r=A&&x(this)?this.split(""):n,o=r.length>>>0;if(!e(t))throw new TypeError("Array.prototype.reduce callback must be a function");if(0===o&&1===arguments.length)throw new TypeError("reduce of empty array with no initial value");var i,a=0;if(arguments.length>=2)i=arguments[1];else for(;;){if(a in r){i=r[a++];break}if(++a>=o)throw new TypeError("reduce of empty array with no initial value")}for(;o>a;a++)a in r&&(i=t(i,r[a],a,n));return i}},!$);var L=!1;t.reduceRight&&(L="object"==typeof t.reduceRight.call("es5",function(e,t,n,r){return r})),N(t,{reduceRight:function(t){var n=M.ToObject(this),r=A&&x(this)?this.split(""):n,o=r.length>>>0;if(!e(t))throw new TypeError("Array.prototype.reduceRight callback must be a function");if(0===o&&1===arguments.length)throw new TypeError("reduceRight of empty array with no initial value");var i,a=o-1;if(arguments.length>=2)i=arguments[1];else for(;;){if(a in r){i=r[a--];break}if(--a<0)throw new TypeError("reduceRight of empty array with no initial value")}if(0>a)return i;do a in r&&(i=t(i,r[a],a,n));while(a--);return i}},!L);var X=Array.prototype.indexOf&&-1!==[0,1].indexOf(1,2);N(t,{indexOf:function(e){var t=A&&x(this)?this.split(""):M.ToObject(this),n=t.length>>>0;if(0===n)return-1;var r=0;for(arguments.length>1&&(r=M.ToInteger(arguments[1])),r=r>=0?r:Math.max(0,n+r);n>r;r++)if(r in t&&t[r]===e)return r;return-1}},X);var B=Array.prototype.lastIndexOf&&-1!==[0,1].lastIndexOf(0,-3);N(t,{lastIndexOf:function(e){var t=A&&x(this)?this.split(""):M.ToObject(this),n=t.length>>>0;if(0===n)return-1;var r=n-1;for(arguments.length>1&&(r=Math.min(r,M.ToInteger(arguments[1]))),r=r>=0?r:n-Math.abs(r);r>=0;r--)if(r in t&&e===t[r])return r;return-1}},B);var U=!{toString:null}.propertyIsEnumerable("toString"),q=function(){}.propertyIsEnumerable("prototype"),Z=!D("x","0"),H=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],W=H.length;N(Object,{keys:function(t){var n=e(t),r=_(t),o=null!==t&&"object"==typeof t,i=o&&x(t);if(!o&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var a=[],c=q&&n;if(i&&Z||r)for(var l=0;l<t.length;++l)a.push(String(l));if(!r)for(var u in t)c&&"prototype"===u||!D(t,u)||a.push(String(u));if(U)for(var s=t.constructor,f=s&&s.prototype===t,p=0;W>p;p++){var h=H[p];f&&"constructor"===h||!D(t,h)||a.push(h)}return a}});var G=Object.keys&&function(){return 2===Object.keys(arguments).length}(1,2),J=Object.keys;N(Object,{keys:function(e){return J(_(e)?t.slice.call(e):e)}},!G);var Q=-621987552e5,V="-000001",Y=Date.prototype.toISOString&&-1===new Date(Q).toISOString().indexOf(V);N(Date.prototype,{toISOString:function(){var e,t,n,r,o;if(!isFinite(this))throw new RangeError("Date.prototype.toISOString called on non-finite value.");for(r=this.getUTCFullYear(),o=this.getUTCMonth(),r+=Math.floor(o/12),o=(o%12+12)%12,e=[o+1,this.getUTCDate(),this.getUTCHours(),this.getUTCMinutes(),this.getUTCSeconds()],r=(0>r?"-":r>9999?"+":"")+("00000"+Math.abs(r)).slice(r>=0&&9999>=r?-4:-6),t=e.length;t--;)n=e[t],10>n&&(e[t]="0"+n);return r+"-"+e.slice(0,2).join("-")+"T"+e.slice(2).join(":")+"."+("000"+this.getUTCMilliseconds()).slice(-3)+"Z"}},Y);var K=function(){try{return Date.prototype.toJSON&&null===new Date(NaN).toJSON()&&-1!==new Date(Q).toJSON().indexOf(V)&&Date.prototype.toJSON.call({toISOString:function(){return!0}})}catch(e){return!1}}();K||(Date.prototype.toJSON=function(t){var n=Object(this),r=M.ToPrimitive(n);if("number"==typeof r&&!isFinite(r))return null;var o=n.toISOString;if(!e(o))throw new TypeError("toISOString property is not callable");return o.call(n)});var ee=1e15===Date.parse("+033658-09-27T01:46:40.000Z"),te=!isNaN(Date.parse("2012-04-04T24:00:00.500Z"))||!isNaN(Date.parse("2012-11-31T23:59:59.000Z"))||!isNaN(Date.parse("2012-12-31T23:59:60.000Z")),ne=isNaN(Date.parse("2000-01-01T00:00:00.000Z"));(!Date.parse||ne||te||!ee)&&(Date=function(e){var t=function(n,r,o,i,a,c,l){var u,s=arguments.length;return u=this instanceof e?1===s&&String(n)===n?new e(t.parse(n)):s>=7?new e(n,r,o,i,a,c,l):s>=6?new e(n,r,o,i,a,c):s>=5?new e(n,r,o,i,a):s>=4?new e(n,r,o,i):s>=3?new e(n,r,o):s>=2?new e(n,r):s>=1?new e(n):new e:e.apply(this,arguments),N(u,{constructor:t},!0),u},n=new RegExp("^(\\d{4}|[+-]\\d{6})(?:-(\\d{2})(?:-(\\d{2})(?:T(\\d{2}):(\\d{2})(?::(\\d{2})(?:(\\.\\d{1,}))?)?(Z|(?:([-+])(\\d{2}):(\\d{2})))?)?)?)?$"),r=[0,31,59,90,120,151,181,212,243,273,304,334,365],o=function(e,t){var n=t>1?1:0;return r[t]+Math.floor((e-1969+n)/4)-Math.floor((e-1901+n)/100)+Math.floor((e-1601+n)/400)+365*(e-1970)},i=function(t){return Number(new e(1970,0,1,0,0,0,t))};for(var a in e)D(e,a)&&(t[a]=e[a]);N(t,{now:e.now,UTC:e.UTC},!0),t.prototype=e.prototype,N(t.prototype,{constructor:t},!0);var c=function(t){var r=n.exec(t);if(r){var a,c=Number(r[1]),l=Number(r[2]||1)-1,u=Number(r[3]||1)-1,s=Number(r[4]||0),f=Number(r[5]||0),p=Number(r[6]||0),h=Math.floor(1e3*Number(r[7]||0)),d=Boolean(r[4]&&!r[8]),y="-"===r[9]?1:-1,m=Number(r[10]||0),g=Number(r[11]||0);return(f>0||p>0||h>0?24:25)>s&&60>f&&60>p&&1e3>h&&l>-1&&12>l&&24>m&&60>g&&u>-1&&u<o(c,l+1)-o(c,l)&&(a=60*(24*(o(c,l)+u)+s+m*y),a=1e3*(60*(a+f+g*y)+p)+h,d&&(a=i(a)),a>=-864e13&&864e13>=a)?a:NaN}return e.parse.apply(this,arguments)};return N(t,{parse:c}),t}(Date)),Date.now||(Date.now=function(){return(new Date).getTime()});var re=i.toFixed&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==0xde0b6b3a7640080.toFixed(0)),oe={base:1e7,size:6,data:[0,0,0,0,0,0],multiply:function(e,t){for(var n=-1,r=t;++n<oe.size;)r+=e*oe.data[n],oe.data[n]=r%oe.base,r=Math.floor(r/oe.base)},divide:function(e){for(var t=oe.size,n=0;--t>=0;)n+=oe.data[t],oe.data[t]=Math.floor(n/e),n=n%e*oe.base},numToString:function(){for(var e=oe.size,t="";--e>=0;)if(""!==t||0===e||0!==oe.data[e]){var n=String(oe.data[e]);""===t?t=n:t+="0000000".slice(0,7-n.length)+n}return t},pow:function me(e,t,n){return 0===t?n:t%2===1?me(e,t-1,n*e):me(e*e,t/2,n)},log:function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}};N(i,{toFixed:function(e){var t,n,r,o,i,a,c,l;if(t=Number(e),t=t!==t?0:Math.floor(t),0>t||t>20)throw new RangeError("Number.toFixed called with invalid number of decimals");if(n=Number(this),n!==n)return"NaN";if(-1e21>=n||n>=1e21)return String(n);if(r="",0>n&&(r="-",n=-n),o="0",n>1e-21)if(i=oe.log(n*oe.pow(2,69,1))-69,a=0>i?n*oe.pow(2,-i,1):n/oe.pow(2,i,1),a*=4503599627370496,i=52-i,i>0){for(oe.multiply(0,a),c=t;c>=7;)oe.multiply(1e7,0),c-=7;for(oe.multiply(oe.pow(10,c,1),0),c=i-1;c>=23;)oe.divide(1<<23),c-=23;oe.divide(1<<c),oe.multiply(1,1),oe.divide(2),o=oe.numToString()}else oe.multiply(0,a),oe.multiply(1<<-i,0),o=oe.numToString()+"0.00000000000000000000".slice(2,2+t);return t>0?(l=o.length,o=t>=l?r+"0.0000000000000000000".slice(0,t-l+2)+o:r+o.slice(0,l-t)+"."+o.slice(l-t)):o=r+o,o}},re);var ie=o.split;2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||"t"==="tesst".split(/(s)*/)[1]||4!=="test".split(/(?:)/,-1).length||"".split(/.?/).length||".".split(/()()/).length>1?!function(){var e="undefined"==typeof/()??/.exec("")[1];o.split=function(t,n){var r=this;if("undefined"==typeof t&&0===n)return[];if(!v(t))return ie.call(this,t,n);var o,i,a,c,u=[],s=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.extended?"x":"")+(t.sticky?"y":""),f=0,p=new RegExp(t.source,s+"g");r+="",e||(o=new RegExp("^"+p.source+"$(?!\\s)",s));var h="undefined"==typeof n?-1>>>0:M.ToUint32(n);for(i=p.exec(r);i&&(a=i.index+i[0].length,!(a>f&&(u.push(r.slice(f,i.index)),!e&&i.length>1&&i[0].replace(o,function(){for(var e=1;e<arguments.length-2;e++)"undefined"==typeof arguments[e]&&(i[e]=void 0)}),i.length>1&&i.index<r.length&&l.apply(u,i.slice(1)),c=i[0].length,f=a,u.length>=h)));)p.lastIndex===i.index&&p.lastIndex++,i=p.exec(r);return f===r.length?(c||!p.test(""))&&u.push(""):u.push(r.slice(f)),u.length>h?u.slice(0,h):u}}():"0".split(void 0,0).length&&(o.split=function(e,t){return"undefined"==typeof e&&0===t?[]:ie.call(this,e,t)});var ae=o.replace,ce=function(){var e=[];return"x".replace(/x(.)?/g,function(t,n){e.push(n)}),1===e.length&&"undefined"==typeof e[0]}();ce||(o.replace=function(t,n){var r=e(n),o=v(t)&&/\)[*?]/.test(t.source);if(r&&o){var i=function(e){var r=arguments.length,o=t.lastIndex;t.lastIndex=0;var i=t.exec(e)||[];return t.lastIndex=o,i.push(arguments[r-2],arguments[r-1]),n.apply(this,i)};return ae.call(this,t,i)}return ae.call(this,t,n)});var le=o.substr,ue="".substr&&"b"!=="0b".substr(-1);N(o,{substr:function(e,t){var n=e;return 0>e&&(n=Math.max(this.length+e,0)),le.call(this,n,t)}},ue);var se=" \n\x0B\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff",fe="\u200b",pe="["+se+"]",he=new RegExp("^"+pe+pe+"*"),de=new RegExp(pe+pe+"*$"),ye=o.trim&&(se.trim()||!fe.trim());N(o,{trim:function(){if("undefined"==typeof this||null===this)throw new TypeError("can't convert "+this+" to object");return String(this).replace(he,"").replace(de,"")}},ye),(8!==parseInt(se+"08")||22!==parseInt(se+"0x16"))&&(parseInt=function(e){var t=/^0[xX]/;return function(n,r){var o=String(n).trim(),i=Number(r)||(t.test(o)?16:10);return e(o,i)}}(parseInt))}),!window.addEventListener&&function(e,t,n,r,o,i,a){e[r]=t[r]=n[r]=function(e,t){var n=this;a.unshift([n,e,t,function(e){e.currentTarget=n,e.preventDefault=function(){e.returnValue=!1},e.stopPropagation=function(){e.cancelBubble=!0},e.target=e.srcElement||n,t.call(n,e)}]),this.attachEvent("on"+e,a[0][3])},e[o]=t[o]=n[o]=function(e,t){for(var n,r=0;n=a[r];++r)if(n[0]==this&&n[1]==e&&n[2]==t)return this.detachEvent("on"+e,a.splice(r,1)[0][3])},e[i]=t[i]=n[i]=function(e){return this.fireEvent("on"+e.type,e)}}(Window.prototype,HTMLDocument.prototype,Element.prototype,"addEventListener","removeEventListener","dispatchEvent",[]),function(e,t){"use strict";var n=function(){var e=document.createElement("div");return e.style.cssText="font-size: 1rem;",/rem/.test(e.style.fontSize)},r=function(){for(var e=document.getElementsByTagName("link"),t=[],n=0;n<e.length;n++)"stylesheet"===e[n].rel.toLowerCase()&&null===e[n].getAttribute("data-norem")&&t.push(e[n].href);return t},o=function(){for(var e=0;e<h.length;e++)s(h[e],i)},i=function(e,t){if(g.push(e.responseText),b.push(t),b.length===h.length){for(var n=0;n<b.length;n++)a(g[n],b[n]);(h=d.slice(0)).length>0?(b=[],g=[],d=[],o()):c()}},a=function(e,t){for(var n,r=f(e).replace(/\/\*[\s\S]*?\*\//g,""),o=/[\w\d\s\-\/\\\[\]:,.'"*()<>+~%#^$_=|@]+\{[\w\d\s\-\/\\%#:!;,.'"*()]+\d*\.?\d+rem[\w\d\s\-\/\\%#:!;,.'"*()]*\}/g,i=r.match(o),a=/\d*\.?\d+rem/g,c=r.match(a),l=/(.*\/)/,u=l.exec(t)[0],s=/@import (?:url\()?['"]?([^'\)"]*)['"]?\)?[^;]*/gm;null!==(n=s.exec(e));)0===n[1].indexOf("/")?d.push(n[1]):d.push(u+n[1]);null!==i&&0!==i.length&&(y=y.concat(i),m=m.concat(c))},c=function(){for(var e=/[\w\d\s\-\/\\%#:,.'"*()]+\d*\.?\d+rem[\w\d\s\-\/\\%#:!,.'"*()]*[;}]/g,t=0;t<y.length;t++){p+=y[t].substr(0,y[t].indexOf("{")+1);for(var n=y[t].match(e),r=0;r<n.length;r++)p+=n[r],r===n.length-1&&"}"!==p[p.length-1]&&(p+="\n}")}l()},l=function(){for(var e=0;e<m.length;e++)v[e]=Math.round(parseFloat(m[e].substr(0,m[e].length-3)*w))+"px";u()},u=function(){for(var e=0;e<v.length;e++)v[e]&&(p=p.replace(m[e],v[e]));var t=document.createElement("style");t.setAttribute("type","text/css"),t.id="remReplace",document.getElementsByTagName("head")[0].appendChild(t),t.styleSheet?t.styleSheet.cssText=p:t.appendChild(document.createTextNode(p))},s=function(t,n){try{var r=e.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP")||new ActiveXObject("Msxml2.XMLHTTP"):new XMLHttpRequest;r.open("GET",t,!0),r.onreadystatechange=function(){4===r.readyState&&n(r,t)},r.send(null)}catch(o){if(e.XDomainRequest){var i=new XDomainRequest;i.open("get",t),i.onload=function(){n(i,t)},i.onerror=function(){return!1},i.send()}}},f=function(t){return e.matchMedia||e.msMatchMedia||(t=t.replace(/@media[\s\S]*?\}\s*\}/g,"")),t};if(!n()){var p="",h=r(),d=[],y=[],m=[],g=[],b=[],v=[],w="";w=function(){var e,t=document,n=t.documentElement,r=t.body||t.createElement("body"),o=!t.body,i=t.createElement("div"),a=r.style.fontSize;return o&&n.appendChild(r),i.style.cssText="width:1em; position:absolute; visibility:hidden; padding: 0;",r.style.fontSize="1em",r.appendChild(i),e=i.offsetWidth,o?n.removeChild(r):(r.removeChild(i),r.style.fontSize=a),e}(),o()}}(window),!function(e){"use strict";e.matchMedia=e.matchMedia||function(e){var t,n=e.documentElement,r=n.firstElementChild||n.firstChild,o=e.createElement("body"),i=e.createElement("div");return i.id="mq-test-1",i.style.cssText="position:absolute;top:-100em",o.style.background="none",o.appendChild(i),function(e){return i.innerHTML='­<style media="'+e+'"> #mq-test-1 { width: 42px; }</style>',n.insertBefore(o,r),t=42===i.offsetWidth,n.removeChild(o),{matches:t,media:e}}}(e.document)}(this),function(e){"use strict";function t(){O(!0)}var n={};e.respond=n,n.update=function(){};var r=[],o=function(){var t=!1;try{t=new e.XMLHttpRequest}catch(n){t=new e.ActiveXObject("Microsoft.XMLHTTP")}return function(){return t}}(),i=function(e,t){var n=o();n&&(n.open("GET",e,!0),n.onreadystatechange=function(){4!==n.readyState||200!==n.status&&304!==n.status||t(n.responseText)},4!==n.readyState&&n.send(null))},a=function(e){return e.replace(n.regex.minmaxwh,"").match(n.regex.other)};if(n.ajax=i,n.queue=r,n.unsupportedmq=a,n.regex={media:/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi,keyframes:/@(?:\-(?:o|moz|webkit)\-)?keyframes[^\{]+\{(?:[^\{\}]*\{[^\}\{]*\})+[^\}]*\}/gi,comments:/\/\*[^*]*\*+([^\/][^*]*\*+)*\//gi,urls:/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,findStyles:/@media *([^\{]+)\{([\S\s]+?)$/,only:/(only\s+)?([a-zA-Z]+)\s?/,minw:/\(\s*min\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/,maxw:/\(\s*max\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/,minmaxwh:/\(\s*m(in|ax)\-(height|width)\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/gi,other:/\([^\)]*\)/g},n.mediaQueriesSupported=e.matchMedia&&null!==e.matchMedia("only all")&&e.matchMedia("only all").matches,!n.mediaQueriesSupported){var c,l,u,s=e.document,f=s.documentElement,p=[],h=[],d=[],y={},m=30,g=s.getElementsByTagName("head")[0]||f,b=s.getElementsByTagName("base")[0],v=g.getElementsByTagName("link"),w=function(){var e,t=s.createElement("div"),n=s.body,r=f.style.fontSize,o=n&&n.style.fontSize,i=!1;return t.style.cssText="position:absolute;font-size:1em;width:1em",n||(n=i=s.createElement("body"),n.style.background="none"),f.style.fontSize="100%",n.style.fontSize="100%",n.appendChild(t),i&&f.insertBefore(n,f.firstChild),e=t.offsetWidth,i?f.removeChild(n):n.removeChild(t),f.style.fontSize=r,o&&(n.style.fontSize=o),e=u=parseFloat(e)},O=function(t){var n="clientWidth",r=f[n],o="CSS1Compat"===s.compatMode&&r||s.body[n]||r,i={},a=v[v.length-1],y=(new Date).getTime();if(t&&c&&m>y-c)return e.clearTimeout(l),void(l=e.setTimeout(O,m));c=y;for(var b in p)if(p.hasOwnProperty(b)){var j=p[b],x=j.minw,E=j.maxw,T=null===x,S=null===E,_="em";x&&(x=parseFloat(x)*(x.indexOf(_)>-1?u||w():1)),E&&(E=parseFloat(E)*(E.indexOf(_)>-1?u||w():1)),j.hasquery&&(T&&S||!(T||o>=x)||!(S||E>=o))||(i[j.media]||(i[j.media]=[]),i[j.media].push(h[j.rules]))}for(var N in d)d.hasOwnProperty(N)&&d[N]&&d[N].parentNode===g&&g.removeChild(d[N]);d.length=0;for(var P in i)if(i.hasOwnProperty(P)){var M=s.createElement("style"),C=i[P].join("\n");M.type="text/css",M.media=P,g.insertBefore(M,a.nextSibling),M.styleSheet?M.styleSheet.cssText=C:M.appendChild(s.createTextNode(C)),d.push(M)}},j=function(e,t,r){var o=e.replace(n.regex.comments,"").replace(n.regex.keyframes,"").match(n.regex.media),i=o&&o.length||0;t=t.substring(0,t.lastIndexOf("/"));var c=function(e){return e.replace(n.regex.urls,"$1"+t+"$2$3")},l=!i&&r;t.length&&(t+="/"),l&&(i=1);for(var u=0;i>u;u++){var s,f,d,y;l?(s=r,h.push(c(e))):(s=o[u].match(n.regex.findStyles)&&RegExp.$1,h.push(RegExp.$2&&c(RegExp.$2))),d=s.split(","),y=d.length;for(var m=0;y>m;m++)f=d[m],a(f)||p.push({media:f.split("(")[0].match(n.regex.only)&&RegExp.$2||"all",rules:h.length-1,hasquery:f.indexOf("(")>-1,minw:f.match(n.regex.minw)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:f.match(n.regex.maxw)&&parseFloat(RegExp.$1)+(RegExp.$2||"")})}O()},x=function(){if(r.length){var t=r.shift();i(t.href,function(n){j(n,t.href,t.media),y[t.href]=!0,e.setTimeout(function(){x()},0)})}},E=function(){for(var t=0;t<v.length;t++){var n=v[t],o=n.href,i=n.media,a=n.rel&&"stylesheet"===n.rel.toLowerCase();o&&a&&!y[o]&&(n.styleSheet&&n.styleSheet.rawCssText?(j(n.styleSheet.rawCssText,o,i),y[o]=!0):(!/^([a-zA-Z:]*\/\/)/.test(o)&&!b||o.replace(RegExp.$1,"").split("/")[0]===e.location.host)&&("//"===o.substring(0,2)&&(o=e.location.protocol+o),r.push({href:o,media:i})))}x()};E(),n.update=E,n.getEmValue=w,e.addEventListener?e.addEventListener("resize",t,!1):e.attachEvent&&e.attachEvent("onresize",t)}}(this);
|
1
|
+
/*! Amaze UI v2.6.1 ~ IE8 Fucker | by Amaze UI Team | (c) 2016 AllMobilize, Inc. | Licensed under MIT | 2016-04-06T09:34:39+0800 */
|
2
|
+
!function(e,t){"use strict";"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.returnExports=t()}(this,function(){var e,t,n=Array,r=n.prototype,o=Object,i=o.prototype,a=Function,c=a.prototype,s=String,u=s.prototype,l=Number,f=l.prototype,p=r.slice,h=r.splice,d=r.push,y=r.unshift,g=r.concat,v=r.join,b=c.call,m=c.apply,w=Math.max,O=Math.min,T=i.toString,j="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,x=Function.prototype.toString,E=/^\s*class /,S=function(e){try{var t=x.call(e),n=t.replace(/\/\/.*\n/g,""),r=n.replace(/\/\*[.\s\S]*\*\//g,""),o=r.replace(/\n/gm," ").replace(/ {2}/g," ");return E.test(o)}catch(i){return!1}},D=function(e){try{return S(e)?!1:(x.call(e),!0)}catch(t){return!1}},_="[object Function]",M="[object GeneratorFunction]",e=function(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(j)return D(e);if(S(e))return!1;var t=T.call(e);return t===_||t===M},P=RegExp.prototype.exec,I=function(e){try{return P.call(e),!0}catch(t){return!1}},C="[object RegExp]";t=function(e){return"object"!=typeof e?!1:j?I(e):T.call(e)===C};var F,N=String.prototype.valueOf,k=function(e){try{return N.call(e),!0}catch(t){return!1}},z="[object String]";F=function(e){return"string"==typeof e?!0:"object"!=typeof e?!1:j?k(e):T.call(e)===z};var R=o.defineProperty&&function(){try{var e={};o.defineProperty(e,"x",{enumerable:!1,value:e});for(var t in e)return!1;return e.x===e}catch(n){return!1}}(),$=function(e){var t;return t=R?function(e,t,n,r){!r&&t in e||o.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:!0,value:n})}:function(e,t,n,r){!r&&t in e||(e[t]=n)},function(n,r,o){for(var i in r)e.call(r,i)&&t(n,i,r[i],o)}}(i.hasOwnProperty),U=function(e){var t=typeof e;return null===e||"object"!==t&&"function"!==t},A=l.isNaN||function(e){return e!==e},L={ToInteger:function(e){var t=+e;return A(t)?t=0:0!==t&&t!==1/0&&t!==-(1/0)&&(t=(t>0||-1)*Math.floor(Math.abs(t))),t},ToPrimitive:function(t){var n,r,o;if(U(t))return t;if(r=t.valueOf,e(r)&&(n=r.call(t),U(n)))return n;if(o=t.toString,e(o)&&(n=o.call(t),U(n)))return n;throw new TypeError},ToObject:function(e){if(null==e)throw new TypeError("can't convert "+e+" to object");return o(e)},ToUint32:function(e){return e>>>0}},X=function(){};$(c,{bind:function(t){var n=this;if(!e(n))throw new TypeError("Function.prototype.bind called on incompatible "+n);for(var r,i=p.call(arguments,1),c=function(){if(this instanceof r){var e=m.call(n,this,g.call(i,p.call(arguments)));return o(e)===e?e:this}return m.call(n,t,g.call(i,p.call(arguments)))},s=w(0,n.length-i.length),u=[],l=0;s>l;l++)d.call(u,"$"+l);return r=a("binder","return function ("+v.call(u,",")+"){ return binder.apply(this, arguments); }")(c),n.prototype&&(X.prototype=n.prototype,r.prototype=new X,X.prototype=null),r}});var B=b.bind(i.hasOwnProperty),G=b.bind(i.toString),J=b.bind(p),q=m.bind(p),Z=b.bind(u.slice),H=b.bind(u.split),W=b.bind(u.indexOf),Y=b.bind(d),Q=b.bind(i.propertyIsEnumerable),V=b.bind(r.sort),K=n.isArray||function(e){return"[object Array]"===G(e)},ee=1!==[].unshift(0);$(r,{unshift:function(){return y.apply(this,arguments),this.length}},ee),$(n,{isArray:K});var te=o("a"),ne="a"!==te[0]||!(0 in te),re=function(e){var t=!0,n=!0,r=!1;if(e)try{e.call("foo",function(e,n,r){"object"!=typeof r&&(t=!1)}),e.call([1],function(){"use strict";n="string"==typeof this},"x")}catch(o){r=!0}return!!e&&!r&&t&&n};$(r,{forEach:function(t){var n,r=L.ToObject(this),o=ne&&F(this)?H(this,""):r,i=-1,a=L.ToUint32(o.length);if(arguments.length>1&&(n=arguments[1]),!e(t))throw new TypeError("Array.prototype.forEach callback must be a function");for(;++i<a;)i in o&&("undefined"==typeof n?t(o[i],i,r):t.call(n,o[i],i,r))}},!re(r.forEach)),$(r,{map:function(t){var r,o=L.ToObject(this),i=ne&&F(this)?H(this,""):o,a=L.ToUint32(i.length),c=n(a);if(arguments.length>1&&(r=arguments[1]),!e(t))throw new TypeError("Array.prototype.map callback must be a function");for(var s=0;a>s;s++)s in i&&("undefined"==typeof r?c[s]=t(i[s],s,o):c[s]=t.call(r,i[s],s,o));return c}},!re(r.map)),$(r,{filter:function(t){var n,r,o=L.ToObject(this),i=ne&&F(this)?H(this,""):o,a=L.ToUint32(i.length),c=[];if(arguments.length>1&&(r=arguments[1]),!e(t))throw new TypeError("Array.prototype.filter callback must be a function");for(var s=0;a>s;s++)s in i&&(n=i[s],("undefined"==typeof r?t(n,s,o):t.call(r,n,s,o))&&Y(c,n));return c}},!re(r.filter)),$(r,{every:function(t){var n,r=L.ToObject(this),o=ne&&F(this)?H(this,""):r,i=L.ToUint32(o.length);if(arguments.length>1&&(n=arguments[1]),!e(t))throw new TypeError("Array.prototype.every callback must be a function");for(var a=0;i>a;a++)if(a in o&&!("undefined"==typeof n?t(o[a],a,r):t.call(n,o[a],a,r)))return!1;return!0}},!re(r.every)),$(r,{some:function(t){var n,r=L.ToObject(this),o=ne&&F(this)?H(this,""):r,i=L.ToUint32(o.length);if(arguments.length>1&&(n=arguments[1]),!e(t))throw new TypeError("Array.prototype.some callback must be a function");for(var a=0;i>a;a++)if(a in o&&("undefined"==typeof n?t(o[a],a,r):t.call(n,o[a],a,r)))return!0;return!1}},!re(r.some));var oe=!1;r.reduce&&(oe="object"==typeof r.reduce.call("es5",function(e,t,n,r){return r})),$(r,{reduce:function(t){var n=L.ToObject(this),r=ne&&F(this)?H(this,""):n,o=L.ToUint32(r.length);if(!e(t))throw new TypeError("Array.prototype.reduce callback must be a function");if(0===o&&1===arguments.length)throw new TypeError("reduce of empty array with no initial value");var i,a=0;if(arguments.length>=2)i=arguments[1];else for(;;){if(a in r){i=r[a++];break}if(++a>=o)throw new TypeError("reduce of empty array with no initial value")}for(;o>a;a++)a in r&&(i=t(i,r[a],a,n));return i}},!oe);var ie=!1;r.reduceRight&&(ie="object"==typeof r.reduceRight.call("es5",function(e,t,n,r){return r})),$(r,{reduceRight:function(t){var n=L.ToObject(this),r=ne&&F(this)?H(this,""):n,o=L.ToUint32(r.length);if(!e(t))throw new TypeError("Array.prototype.reduceRight callback must be a function");if(0===o&&1===arguments.length)throw new TypeError("reduceRight of empty array with no initial value");var i,a=o-1;if(arguments.length>=2)i=arguments[1];else for(;;){if(a in r){i=r[a--];break}if(--a<0)throw new TypeError("reduceRight of empty array with no initial value")}if(0>a)return i;do a in r&&(i=t(i,r[a],a,n));while(a--);return i}},!ie);var ae=r.indexOf&&-1!==[0,1].indexOf(1,2);$(r,{indexOf:function(e){var t=ne&&F(this)?H(this,""):L.ToObject(this),n=L.ToUint32(t.length);if(0===n)return-1;var r=0;for(arguments.length>1&&(r=L.ToInteger(arguments[1])),r=r>=0?r:w(0,n+r);n>r;r++)if(r in t&&t[r]===e)return r;return-1}},ae);var ce=r.lastIndexOf&&-1!==[0,1].lastIndexOf(0,-3);$(r,{lastIndexOf:function(e){var t=ne&&F(this)?H(this,""):L.ToObject(this),n=L.ToUint32(t.length);if(0===n)return-1;var r=n-1;for(arguments.length>1&&(r=O(r,L.ToInteger(arguments[1]))),r=r>=0?r:n-Math.abs(r);r>=0;r--)if(r in t&&e===t[r])return r;return-1}},ce);var se=function(){var e=[1,2],t=e.splice();return 2===e.length&&K(t)&&0===t.length}();$(r,{splice:function(e,t){return 0===arguments.length?[]:h.apply(this,arguments)}},!se);var ue=function(){var e={};return r.splice.call(e,0,0,1),1===e.length}();$(r,{splice:function(e,t){if(0===arguments.length)return[];var n=arguments;return this.length=w(L.ToInteger(this.length),0),arguments.length>0&&"number"!=typeof t&&(n=J(arguments),n.length<2?Y(n,this.length-e):n[1]=L.ToInteger(t)),h.apply(this,n)}},!ue);var le=function(){var e=new n(1e5);return e[8]="x",e.splice(1,1),7===e.indexOf("x")}(),fe=function(){var e=256,t=[];return t[e]="a",t.splice(e+1,0,"b"),"a"===t[e]}();$(r,{splice:function(e,t){for(var n,r=L.ToObject(this),o=[],i=L.ToUint32(r.length),a=L.ToInteger(e),c=0>a?w(i+a,0):O(a,i),u=O(w(L.ToInteger(t),0),i-c),l=0;u>l;)n=s(c+l),B(r,n)&&(o[l]=r[n]),l+=1;var f,p=J(arguments,2),h=p.length;if(u>h){l=c;for(var d=i-u;d>l;)n=s(l+u),f=s(l+h),B(r,n)?r[f]=r[n]:delete r[f],l+=1;l=i;for(var y=i-u+h;l>y;)delete r[l-1],l-=1}else if(h>u)for(l=i-u;l>c;)n=s(l+u-1),f=s(l+h-1),B(r,n)?r[f]=r[n]:delete r[f],l-=1;l=c;for(var g=0;g<p.length;++g)r[l]=p[g],l+=1;return r.length=i-u+h,o}},!le||!fe);var pe,he=r.join;try{pe="1,2,3"!==Array.prototype.join.call("123",",")}catch(de){pe=!0}pe&&$(r,{join:function(e){var t="undefined"==typeof e?",":e;return he.call(F(this)?H(this,""):this,t)}},pe);var ye="1,2"!==[1,2].join(void 0);ye&&$(r,{join:function(e){var t="undefined"==typeof e?",":e;return he.call(this,t)}},ye);var ge=function(e){for(var t=L.ToObject(this),n=L.ToUint32(t.length),r=0;r<arguments.length;)t[n+r]=arguments[r],r+=1;return t.length=n+r,n+r},ve=function(){var e={},t=Array.prototype.push.call(e,void 0);return 1!==t||1!==e.length||"undefined"!=typeof e[0]||!B(e,0)}();$(r,{push:function(e){return K(this)?d.apply(this,arguments):ge.apply(this,arguments)}},ve);var be=function(){var e=[],t=e.push(void 0);return 1!==t||1!==e.length||"undefined"!=typeof e[0]||!B(e,0)}();$(r,{push:ge},be),$(r,{slice:function(e,t){var n=F(this)?H(this,""):this;return q(n,arguments)}},ne);var me=function(){try{return[1,2].sort(null),[1,2].sort({}),!0}catch(e){}return!1}(),we=function(){try{return[1,2].sort(/a/),!1}catch(e){}return!0}(),Oe=function(){try{return[1,2].sort(void 0),!0}catch(e){}return!1}();$(r,{sort:function(t){if("undefined"==typeof t)return V(this);if(!e(t))throw new TypeError("Array.prototype.sort callback must be a function");return V(this,t)}},me||!Oe||!we);var Te=!{toString:null}.propertyIsEnumerable("toString"),je=function(){}.propertyIsEnumerable("prototype"),xe=!B("x","0"),Ee=function(e){var t=e.constructor;return t&&t.prototype===e},Se={$window:!0,$console:!0,$parent:!0,$self:!0,$frame:!0,$frames:!0,$frameElement:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$external:!0},De=function(){if("undefined"==typeof window)return!1;for(var e in window)try{!Se["$"+e]&&B(window,e)&&null!==window[e]&&"object"==typeof window[e]&&Ee(window[e])}catch(t){return!0}return!1}(),_e=function(e){if("undefined"==typeof window||!De)return Ee(e);try{return Ee(e)}catch(t){return!1}},Me=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Pe=Me.length,Ie=function(e){return"[object Arguments]"===G(e)},Ce=function(t){return null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&!K(t)&&e(t.callee)},Fe=Ie(arguments)?Ie:Ce;$(o,{keys:function(t){var n=e(t),r=Fe(t),o=null!==t&&"object"==typeof t,i=o&&F(t);if(!o&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var a=[],c=je&&n;if(i&&xe||r)for(var u=0;u<t.length;++u)Y(a,s(u));if(!r)for(var l in t)c&&"prototype"===l||!B(t,l)||Y(a,s(l));if(Te)for(var f=_e(t),p=0;Pe>p;p++){var h=Me[p];f&&"constructor"===h||!B(t,h)||Y(a,h)}return a}});var Ne=o.keys&&function(){return 2===o.keys(arguments).length}(1,2),ke=o.keys&&function(){var e=o.keys(arguments);return 1!==arguments.length||1!==e.length||1!==e[0]}(1),ze=o.keys;$(o,{keys:function(e){return ze(Fe(e)?J(e):e)}},!Ne||ke);var Re,$e,Ue=0!==new Date(-0xc782b5b342b24).getUTCMonth(),Ae=new Date(-0x55d318d56a724),Le=new Date(14496624e5),Xe="Mon, 01 Jan -45875 11:59:59 GMT"!==Ae.toUTCString(),Be=Ae.getTimezoneOffset();-720>Be?(Re="Tue Jan 02 -45875"!==Ae.toDateString(),$e=!/^Thu Dec 10 2015 \d\d:\d\d:\d\d GMT[-\+]\d\d\d\d(?: |$)/.test(Le.toString())):(Re="Mon Jan 01 -45875"!==Ae.toDateString(),$e=!/^Wed Dec 09 2015 \d\d:\d\d:\d\d GMT[-\+]\d\d\d\d(?: |$)/.test(Le.toString()));var Ge=b.bind(Date.prototype.getFullYear),Je=b.bind(Date.prototype.getMonth),qe=b.bind(Date.prototype.getDate),Ze=b.bind(Date.prototype.getUTCFullYear),He=b.bind(Date.prototype.getUTCMonth),We=b.bind(Date.prototype.getUTCDate),Ye=b.bind(Date.prototype.getUTCDay),Qe=b.bind(Date.prototype.getUTCHours),Ve=b.bind(Date.prototype.getUTCMinutes),Ke=b.bind(Date.prototype.getUTCSeconds),et=b.bind(Date.prototype.getUTCMilliseconds),tt=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],nt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],rt=function(e,t){return qe(new Date(t,e,0))};$(Date.prototype,{getFullYear:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var e=Ge(this);return 0>e&&Je(this)>11?e+1:e},getMonth:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var e=Ge(this),t=Je(this);return 0>e&&t>11?0:t},getDate:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var e=Ge(this),t=Je(this),n=qe(this);if(0>e&&t>11){if(12===t)return n;var r=rt(0,e+1);return r-n+1}return n},getUTCFullYear:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var e=Ze(this);return 0>e&&He(this)>11?e+1:e},getUTCMonth:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var e=Ze(this),t=He(this);return 0>e&&t>11?0:t},getUTCDate:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var e=Ze(this),t=He(this),n=We(this);if(0>e&&t>11){if(12===t)return n;var r=rt(0,e+1);return r-n+1}return n}},Ue),$(Date.prototype,{toUTCString:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var e=Ye(this),t=We(this),n=He(this),r=Ze(this),o=Qe(this),i=Ve(this),a=Ke(this);return tt[e]+", "+(10>t?"0"+t:t)+" "+nt[n]+" "+r+" "+(10>o?"0"+o:o)+":"+(10>i?"0"+i:i)+":"+(10>a?"0"+a:a)+" GMT"}},Ue||Xe),$(Date.prototype,{toDateString:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var e=this.getDay(),t=this.getDate(),n=this.getMonth(),r=this.getFullYear();return tt[e]+" "+nt[n]+" "+(10>t?"0"+t:t)+" "+r}},Ue||Re),(Ue||$e)&&(Date.prototype.toString=function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var e=this.getDay(),t=this.getDate(),n=this.getMonth(),r=this.getFullYear(),o=this.getHours(),i=this.getMinutes(),a=this.getSeconds(),c=this.getTimezoneOffset(),s=Math.floor(Math.abs(c)/60),u=Math.floor(Math.abs(c)%60);return tt[e]+" "+nt[n]+" "+(10>t?"0"+t:t)+" "+r+" "+(10>o?"0"+o:o)+":"+(10>i?"0"+i:i)+":"+(10>a?"0"+a:a)+" GMT"+(c>0?"-":"+")+(10>s?"0"+s:s)+(10>u?"0"+u:u)},R&&o.defineProperty(Date.prototype,"toString",{configurable:!0,enumerable:!1,writable:!0}));var ot=-621987552e5,it="-000001",at=Date.prototype.toISOString&&-1===new Date(ot).toISOString().indexOf(it),ct=Date.prototype.toISOString&&"1969-12-31T23:59:59.999Z"!==new Date(-1).toISOString(),st=b.bind(Date.prototype.getTime);$(Date.prototype,{toISOString:function(){if(!isFinite(this)||!isFinite(st(this)))throw new RangeError("Date.prototype.toISOString called on non-finite value.");var e=Ze(this),t=He(this);e+=Math.floor(t/12),t=(t%12+12)%12;var n=[t+1,We(this),Qe(this),Ve(this),Ke(this)];e=(0>e?"-":e>9999?"+":"")+Z("00000"+Math.abs(e),e>=0&&9999>=e?-4:-6);for(var r=0;r<n.length;++r)n[r]=Z("00"+n[r],-2);return e+"-"+J(n,0,2).join("-")+"T"+J(n,2).join(":")+"."+Z("000"+et(this),-3)+"Z"}},at||ct);var ut=function(){try{return Date.prototype.toJSON&&null===new Date(NaN).toJSON()&&-1!==new Date(ot).toJSON().indexOf(it)&&Date.prototype.toJSON.call({toISOString:function(){return!0}})}catch(e){return!1}}();ut||(Date.prototype.toJSON=function(t){var n=o(this),r=L.ToPrimitive(n);if("number"==typeof r&&!isFinite(r))return null;var i=n.toISOString;if(!e(i))throw new TypeError("toISOString property is not callable");return i.call(n)});var lt=1e15===Date.parse("+033658-09-27T01:46:40.000Z"),ft=!isNaN(Date.parse("2012-04-04T24:00:00.500Z"))||!isNaN(Date.parse("2012-11-31T23:59:59.000Z"))||!isNaN(Date.parse("2012-12-31T23:59:60.000Z")),pt=isNaN(Date.parse("2000-01-01T00:00:00.000Z"));if(pt||ft||!lt){var ht=Math.pow(2,31)-1,dt=A(new Date(1970,0,1,0,0,0,ht+1).getTime());Date=function(e){var t=function(n,r,o,i,a,c,u){var l,f=arguments.length;if(this instanceof e){var p=c,h=u;if(dt&&f>=7&&u>ht){var d=Math.floor(u/ht)*ht,y=Math.floor(d/1e3);p+=y,h-=1e3*y}l=1===f&&s(n)===n?new e(t.parse(n)):f>=7?new e(n,r,o,i,a,p,h):f>=6?new e(n,r,o,i,a,p):f>=5?new e(n,r,o,i,a):f>=4?new e(n,r,o,i):f>=3?new e(n,r,o):f>=2?new e(n,r):f>=1?new e(n instanceof e?+n:n):new e}else l=e.apply(this,arguments);return U(l)||$(l,{constructor:t},!0),l},n=new RegExp("^(\\d{4}|[+-]\\d{6})(?:-(\\d{2})(?:-(\\d{2})(?:T(\\d{2}):(\\d{2})(?::(\\d{2})(?:(\\.\\d{1,}))?)?(Z|(?:([-+])(\\d{2}):(\\d{2})))?)?)?)?$"),r=[0,31,59,90,120,151,181,212,243,273,304,334,365],o=function(e,t){var n=t>1?1:0;return r[t]+Math.floor((e-1969+n)/4)-Math.floor((e-1901+n)/100)+Math.floor((e-1601+n)/400)+365*(e-1970)},i=function(t){var n=0,r=t;if(dt&&r>ht){var o=Math.floor(r/ht)*ht,i=Math.floor(o/1e3);n+=i,r-=1e3*i}return l(new e(1970,0,1,0,0,n,r))};for(var a in e)B(e,a)&&(t[a]=e[a]);$(t,{now:e.now,UTC:e.UTC},!0),t.prototype=e.prototype,$(t.prototype,{constructor:t},!0);var c=function(t){var r=n.exec(t);if(r){var a,c=l(r[1]),s=l(r[2]||1)-1,u=l(r[3]||1)-1,f=l(r[4]||0),p=l(r[5]||0),h=l(r[6]||0),d=Math.floor(1e3*l(r[7]||0)),y=Boolean(r[4]&&!r[8]),g="-"===r[9]?1:-1,v=l(r[10]||0),b=l(r[11]||0),m=p>0||h>0||d>0;return(m?24:25)>f&&60>p&&60>h&&1e3>d&&s>-1&&12>s&&24>v&&60>b&&u>-1&&u<o(c,s+1)-o(c,s)&&(a=60*(24*(o(c,s)+u)+f+v*g),a=1e3*(60*(a+p+b*g)+h)+d,y&&(a=i(a)),a>=-864e13&&864e13>=a)?a:NaN}return e.parse.apply(this,arguments)};return $(t,{parse:c}),t}(Date)}Date.now||(Date.now=function(){return(new Date).getTime()});var yt=f.toFixed&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==0xde0b6b3a7640080.toFixed(0)),gt={base:1e7,size:6,data:[0,0,0,0,0,0],multiply:function(e,t){for(var n=-1,r=t;++n<gt.size;)r+=e*gt.data[n],gt.data[n]=r%gt.base,r=Math.floor(r/gt.base)},divide:function(e){for(var t=gt.size,n=0;--t>=0;)n+=gt.data[t],gt.data[t]=Math.floor(n/e),n=n%e*gt.base},numToString:function(){for(var e=gt.size,t="";--e>=0;)if(""!==t||0===e||0!==gt.data[e]){var n=s(gt.data[e]);""===t?t=n:t+=Z("0000000",0,7-n.length)+n}return t},pow:function zt(e,t,n){return 0===t?n:t%2===1?zt(e,t-1,n*e):zt(e*e,t/2,n)},log:function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}},vt=function(e){var t,n,r,o,i,a,c,u;if(t=l(e),t=A(t)?0:Math.floor(t),0>t||t>20)throw new RangeError("Number.toFixed called with invalid number of decimals");if(n=l(this),A(n))return"NaN";if(-1e21>=n||n>=1e21)return s(n);if(r="",0>n&&(r="-",n=-n),o="0",n>1e-21)if(i=gt.log(n*gt.pow(2,69,1))-69,a=0>i?n*gt.pow(2,-i,1):n/gt.pow(2,i,1),a*=4503599627370496,i=52-i,i>0){for(gt.multiply(0,a),c=t;c>=7;)gt.multiply(1e7,0),c-=7;for(gt.multiply(gt.pow(10,c,1),0),c=i-1;c>=23;)gt.divide(1<<23),c-=23;gt.divide(1<<c),gt.multiply(1,1),gt.divide(2),o=gt.numToString()}else gt.multiply(0,a),gt.multiply(1<<-i,0),o=gt.numToString()+Z("0.00000000000000000000",2,2+t);return t>0?(u=o.length,o=t>=u?r+Z("0.0000000000000000000",0,t-u+2)+o:r+Z(o,0,u-t)+"."+Z(o,u-t)):o=r+o,o};$(f,{toFixed:vt},yt);var bt=function(){try{return"1"===1..toPrecision(void 0)}catch(e){return!0}}(),mt=f.toPrecision;$(f,{toPrecision:function(e){return"undefined"==typeof e?mt.call(this):mt.call(this,e)}},bt),2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||"t"==="tesst".split(/(s)*/)[1]||4!=="test".split(/(?:)/,-1).length||"".split(/.?/).length||".".split(/()()/).length>1?!function(){var e="undefined"==typeof/()??/.exec("")[1],n=Math.pow(2,32)-1;u.split=function(r,o){var i=String(this);if("undefined"==typeof r&&0===o)return[];if(!t(r))return H(this,r,o);var a,c,s,u,l=[],f=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(r.sticky?"y":""),p=0,h=new RegExp(r.source,f+"g");e||(a=new RegExp("^"+h.source+"$(?!\\s)",f));var y="undefined"==typeof o?n:L.ToUint32(o);for(c=h.exec(i);c&&(s=c.index+c[0].length,!(s>p&&(Y(l,Z(i,p,c.index)),!e&&c.length>1&&c[0].replace(a,function(){for(var e=1;e<arguments.length-2;e++)"undefined"==typeof arguments[e]&&(c[e]=void 0)}),c.length>1&&c.index<i.length&&d.apply(l,J(c,1)),u=c[0].length,p=s,l.length>=y)));)h.lastIndex===c.index&&h.lastIndex++,c=h.exec(i);return p===i.length?!u&&h.test("")||Y(l,""):Y(l,Z(i,p)),l.length>y?J(l,0,y):l}}():"0".split(void 0,0).length&&(u.split=function(e,t){return"undefined"==typeof e&&0===t?[]:H(this,e,t)});var wt=u.replace,Ot=function(){var e=[];return"x".replace(/x(.)?/g,function(t,n){Y(e,n)}),1===e.length&&"undefined"==typeof e[0]}();Ot||(u.replace=function(n,r){var o=e(r),i=t(n)&&/\)[*?]/.test(n.source);if(o&&i){var a=function(e){var t=arguments.length,o=n.lastIndex;n.lastIndex=0;var i=n.exec(e)||[];return n.lastIndex=o,Y(i,arguments[t-2],arguments[t-1]),r.apply(this,i)};return wt.call(this,n,a)}return wt.call(this,n,r)});var Tt=u.substr,jt="".substr&&"b"!=="0b".substr(-1);$(u,{substr:function(e,t){var n=e;return 0>e&&(n=w(this.length+e,0)),Tt.call(this,n,t)}},jt);var xt=" \n\x0B\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff",Et="\u200b",St="["+xt+"]",Dt=new RegExp("^"+St+St+"*"),_t=new RegExp(St+St+"*$"),Mt=u.trim&&(xt.trim()||!Et.trim());$(u,{trim:function(){if("undefined"==typeof this||null===this)throw new TypeError("can't convert "+this+" to object");return s(this).replace(Dt,"").replace(_t,"")}},Mt);var Pt=b.bind(String.prototype.trim),It=u.lastIndexOf&&-1!=="abc\u3042\u3044".lastIndexOf("\u3042\u3044",2);$(u,{lastIndexOf:function(e){if("undefined"==typeof this||null===this)throw new TypeError("can't convert "+this+" to object");for(var t=s(this),n=s(e),r=arguments.length>1?l(arguments[1]):NaN,o=A(r)?1/0:L.ToInteger(r),i=O(w(o,0),t.length),a=n.length,c=i+a;c>0;){c=w(0,c-a);var u=W(Z(t,c,i+a),n);if(-1!==u)return c+u}return-1}},It);var Ct=u.lastIndexOf;if($(u,{lastIndexOf:function(e){return Ct.apply(this,arguments)}},1!==u.lastIndexOf.length),8===parseInt(xt+"08")&&22===parseInt(xt+"0x16")||(parseInt=function(e){var t=/^[\-+]?0[xX]/;return function(n,r){var o=Pt(n),i=l(r)||(t.test(o)?16:10);return e(o,i)}}(parseInt)),1/parseFloat("-0")!==-(1/0)&&(parseFloat=function(e){return function(t){var n=Pt(t),r=e(n);return 0===r&&"-"===Z(n,0,1)?-0:r}}(parseFloat)),"RangeError: test"!==String(new RangeError("test"))){var Ft=function(){if("undefined"==typeof this||null===this)throw new TypeError("can't convert "+this+" to object");var e=this.name;"undefined"==typeof e?e="Error":"string"!=typeof e&&(e=s(e));var t=this.message;return"undefined"==typeof t?t="":"string"!=typeof t&&(t=s(t)),e?t?e+": "+t:e:t};Error.prototype.toString=Ft}if(R){var Nt=function(e,t){if(Q(e,t)){var n=Object.getOwnPropertyDescriptor(e,t);n.enumerable=!1,Object.defineProperty(e,t,n)}};Nt(Error.prototype,"message"),""!==Error.prototype.message&&(Error.prototype.message=""),Nt(Error.prototype,"name")}if("/a/gim"!==String(/a/gim)){var kt=function(){var e="/"+this.source+"/";return this.global&&(e+="g"),this.ignoreCase&&(e+="i"),this.multiline&&(e+="m"),e};RegExp.prototype.toString=kt}}),function(e,t){"use strict";"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.returnExports=t()}(this,function(){var e,t,n,r,o=Function.call,i=Object.prototype,a=o.bind(i.hasOwnProperty),c=o.bind(i.propertyIsEnumerable),s=o.bind(i.toString),u=a(i,"__defineGetter__");u&&(e=o.bind(i.__defineGetter__),t=o.bind(i.__defineSetter__),n=o.bind(i.__lookupGetter__),r=o.bind(i.__lookupSetter__)),Object.getPrototypeOf||(Object.getPrototypeOf=function(e){var t=e.__proto__;return t||null===t?t:"[object Function]"===s(e.constructor)?e.constructor.prototype:e instanceof Object?i:null});var l=function(e){try{return e.sentinel=0,0===Object.getOwnPropertyDescriptor(e,"sentinel").value}catch(t){return!1}};if(Object.defineProperty){var f=l({}),p="undefined"==typeof document||l(document.createElement("div"));if(!p||!f)var h=Object.getOwnPropertyDescriptor}if(!Object.getOwnPropertyDescriptor||h){var d="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function(e,t){if("object"!=typeof e&&"function"!=typeof e||null===e)throw new TypeError(d+e);if(h)try{return h.call(Object,e,t)}catch(o){}var s;if(!a(e,t))return s;if(s={enumerable:c(e,t),configurable:!0},u){var l=e.__proto__,f=e!==i;f&&(e.__proto__=i);var p=n(e,t),y=r(e,t);if(f&&(e.__proto__=l),p||y)return p&&(s.get=p),y&&(s.set=y),s}return s.value=e[t],s.writable=!0,s}}if(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(e){return Object.keys(e)}),!Object.create){var y,g=!({__proto__:null}instanceof Object),v=function(){if(!document.domain)return!1;try{return!!new ActiveXObject("htmlfile")}catch(e){return!1}},b=function(){var e,t;return t=new ActiveXObject("htmlfile"),t.write("<script></script>"),t.close(),e=t.parentWindow.Object.prototype,t=null,e},m=function(){var e,t=document.createElement("iframe"),n=document.body||document.documentElement;return t.style.display="none",n.appendChild(t),t.src="javascript:",e=t.contentWindow.Object.prototype,n.removeChild(t),t=null,e};y=g||"undefined"==typeof document?function(){return{__proto__:null}}:function(){var e=v()?b():m();delete e.constructor,delete e.hasOwnProperty,delete e.propertyIsEnumerable,delete e.isPrototypeOf,delete e.toLocaleString,delete e.toString,delete e.valueOf;var t=function(){};return t.prototype=e,y=function(){return new t},new t},Object.create=function(e,t){var n,r=function(){};if(null===e)n=y();else{if("object"!=typeof e&&"function"!=typeof e)throw new TypeError("Object prototype may only be an Object or null");r.prototype=e,n=new r,n.__proto__=e}return void 0!==t&&Object.defineProperties(n,t),n}}var w=function(e){try{return Object.defineProperty(e,"sentinel",{}),"sentinel"in e}catch(t){return!1}};if(Object.defineProperty){var O=w({}),T="undefined"==typeof document||w(document.createElement("div"));if(!O||!T)var j=Object.defineProperty,x=Object.defineProperties}if(!Object.defineProperty||j){var E="Property description must be an object: ",S="Object.defineProperty called on non-object: ",D="getters & setters can not be defined on this javascript engine";Object.defineProperty=function(o,a,c){if("object"!=typeof o&&"function"!=typeof o||null===o)throw new TypeError(S+o);if("object"!=typeof c&&"function"!=typeof c||null===c)throw new TypeError(E+c);if(j)try{return j.call(Object,o,a,c)}catch(s){}if("value"in c)if(u&&(n(o,a)||r(o,a))){var l=o.__proto__;o.__proto__=i,delete o[a],o[a]=c.value,o.__proto__=l}else o[a]=c.value;else{if(!u&&("get"in c||"set"in c))throw new TypeError(D);"get"in c&&e(o,a,c.get),"set"in c&&t(o,a,c.set)}return o}}Object.defineProperties&&!x||(Object.defineProperties=function(e,t){if(x)try{return x.call(Object,e,t)}catch(n){}return Object.keys(t).forEach(function(n){"__proto__"!==n&&Object.defineProperty(e,n,t[n])}),e}),Object.seal||(Object.seal=function(e){if(Object(e)!==e)throw new TypeError("Object.seal can only be called on Objects.");return e}),Object.freeze||(Object.freeze=function(e){if(Object(e)!==e)throw new TypeError("Object.freeze can only be called on Objects.");return e});try{Object.freeze(function(){})}catch(_){Object.freeze=function(e){return function(t){return"function"==typeof t?t:e(t)}}(Object.freeze)}Object.preventExtensions||(Object.preventExtensions=function(e){if(Object(e)!==e)throw new TypeError("Object.preventExtensions can only be called on Objects.");return e}),Object.isSealed||(Object.isSealed=function(e){if(Object(e)!==e)throw new TypeError("Object.isSealed can only be called on Objects.");return!1}),Object.isFrozen||(Object.isFrozen=function(e){if(Object(e)!==e)throw new TypeError("Object.isFrozen can only be called on Objects.");return!1}),Object.isExtensible||(Object.isExtensible=function(e){if(Object(e)!==e)throw new TypeError("Object.isExtensible can only be called on Objects.");for(var t="";a(e,t);)t+="?";e[t]=!0;var n=a(e,t);return delete e[t],n})}),function(e){"use strict";e.console=e.console||{};for(var t,n,r=e.console,o={},i=function(){},a="memory".split(","),c="assert,clear,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profiles,profileEnd,show,table,time,timeEnd,timeline,timelineEnd,timeStamp,trace,warn".split(",");t=a.pop();)r[t]||(r[t]=o);for(;n=c.pop();)"function"!=typeof r[n]&&(r[n]=i)}("undefined"==typeof window?this:window),!window.addEventListener&&function(e,t,n,r,o,i,a){e[r]=t[r]=n[r]=function(e,t){var n=this;a.unshift([n,e,t,function(e){e.currentTarget=n,e.preventDefault=function(){e.returnValue=!1},e.stopPropagation=function(){e.cancelBubble=!0},e.target=e.srcElement||n,t.call(n,e)}]),this.attachEvent("on"+e,a[0][3])},e[o]=t[o]=n[o]=function(e,t){for(var n,r=0;n=a[r];++r)if(n[0]==this&&n[1]==e&&n[2]==t)return this.detachEvent("on"+e,a.splice(r,1)[0][3])},e[i]=t[i]=n[i]=function(e){return this.fireEvent("on"+e.type,e)}}(Window.prototype,HTMLDocument.prototype,Element.prototype,"addEventListener","removeEventListener","dispatchEvent",[]),function(e,t){"use strict";var n=function(){var e=document.createElement("div");return e.style.cssText="font-size: 1rem;",/rem/.test(e.style.fontSize)},r=function(){for(var e=document.getElementsByTagName("link"),t=[],n=0;n<e.length;n++)"stylesheet"===e[n].rel.toLowerCase()&&null===e[n].getAttribute("data-norem")&&t.push(e[n].href);return t},o=function(){for(var e=0;e<h.length;e++)l(h[e],i)},i=function(e,t){if(v.push(e.responseText),b.push(t),b.length===h.length){for(var n=0;n<b.length;n++)a(v[n],b[n]);(h=d.slice(0)).length>0?(b=[],v=[],d=[],o()):c()}},a=function(e,t){for(var n,r=f(e).replace(/\/\*[\s\S]*?\*\//g,""),o=/[\w\d\s\-\/\\\[\]:,.'"*()<>+~%#^$_=|@]+\{[\w\d\s\-\/\\%#:!;,.'"*()]+\d*\.?\d+rem[\w\d\s\-\/\\%#:!;,.'"*()]*\}/g,i=r.match(o),a=/\d*\.?\d+rem/g,c=r.match(a),s=/(.*\/)/,u=s.exec(t)[0],l=/@import (?:url\()?['"]?([^'\)"]*)['"]?\)?[^;]*/gm;null!==(n=l.exec(e));)0===n[1].indexOf("/")?d.push(n[1]):d.push(u+n[1]);null!==i&&0!==i.length&&(y=y.concat(i),g=g.concat(c))},c=function(){for(var e=/[\w\d\s\-\/\\%#:,.'"*()]+\d*\.?\d+rem[\w\d\s\-\/\\%#:!,.'"*()]*[;}]/g,t=0;t<y.length;t++){p+=y[t].substr(0,y[t].indexOf("{")+1);for(var n=y[t].match(e),r=0;r<n.length;r++)p+=n[r],r===n.length-1&&"}"!==p[p.length-1]&&(p+="\n}")}s()},s=function(){for(var e=0;e<g.length;e++)m[e]=Math.round(parseFloat(g[e].substr(0,g[e].length-3)*w))+"px";u()},u=function(){for(var e=0;e<m.length;e++)m[e]&&(p=p.replace(g[e],m[e]));var t=document.createElement("style");t.setAttribute("type","text/css"),t.id="remReplace",document.getElementsByTagName("head")[0].appendChild(t),t.styleSheet?t.styleSheet.cssText=p:t.appendChild(document.createTextNode(p))},l=function(t,n){try{var r=e.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP")||new ActiveXObject("Msxml2.XMLHTTP"):new XMLHttpRequest;r.open("GET",t,!0),r.onreadystatechange=function(){4===r.readyState&&n(r,t)},r.send(null)}catch(o){if(e.XDomainRequest){var i=new XDomainRequest;i.open("get",t),i.onload=function(){n(i,t)},i.onerror=function(){return!1},i.send()}}},f=function(t){return e.matchMedia||e.msMatchMedia||(t=t.replace(/@media[\s\S]*?\}\s*\}/g,"")),t};if(!n()){var p="",h=r(),d=[],y=[],g=[],v=[],b=[],m=[],w="";w=function(){var e,t=document,n=t.documentElement,r=t.body||t.createElement("body"),o=!t.body,i=t.createElement("div"),a=r.style.fontSize;return o&&n.appendChild(r),i.style.cssText="width:1em; position:absolute; visibility:hidden; padding: 0;",r.style.fontSize="1em",r.appendChild(i),e=i.offsetWidth,o?n.removeChild(r):(r.removeChild(i),r.style.fontSize=a),e}(),o()}}(window),!function(e){"use strict";e.matchMedia=e.matchMedia||function(e){var t,n=e.documentElement,r=n.firstElementChild||n.firstChild,o=e.createElement("body"),i=e.createElement("div");return i.id="mq-test-1",i.style.cssText="position:absolute;top:-100em",o.style.background="none",o.appendChild(i),function(e){return i.innerHTML='­<style media="'+e+'"> #mq-test-1 { width: 42px; }</style>',n.insertBefore(o,r),t=42===i.offsetWidth,n.removeChild(o),{matches:t,media:e}}}(e.document)}(this),function(e){"use strict";function t(){O(!0)}var n={};e.respond=n,n.update=function(){};var r=[],o=function(){var t=!1;try{t=new e.XMLHttpRequest}catch(n){t=new e.ActiveXObject("Microsoft.XMLHTTP")}return function(){return t};
|
3
|
+
}(),i=function(e,t){var n=o();n&&(n.open("GET",e,!0),n.onreadystatechange=function(){4!==n.readyState||200!==n.status&&304!==n.status||t(n.responseText)},4!==n.readyState&&n.send(null))},a=function(e){return e.replace(n.regex.minmaxwh,"").match(n.regex.other)};if(n.ajax=i,n.queue=r,n.unsupportedmq=a,n.regex={media:/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi,keyframes:/@(?:\-(?:o|moz|webkit)\-)?keyframes[^\{]+\{(?:[^\{\}]*\{[^\}\{]*\})+[^\}]*\}/gi,comments:/\/\*[^*]*\*+([^\/][^*]*\*+)*\//gi,urls:/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,findStyles:/@media *([^\{]+)\{([\S\s]+?)$/,only:/(only\s+)?([a-zA-Z]+)\s?/,minw:/\(\s*min\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/,maxw:/\(\s*max\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/,minmaxwh:/\(\s*m(in|ax)\-(height|width)\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/gi,other:/\([^\)]*\)/g},n.mediaQueriesSupported=e.matchMedia&&null!==e.matchMedia("only all")&&e.matchMedia("only all").matches,!n.mediaQueriesSupported){var c,s,u,l=e.document,f=l.documentElement,p=[],h=[],d=[],y={},g=30,v=l.getElementsByTagName("head")[0]||f,b=l.getElementsByTagName("base")[0],m=v.getElementsByTagName("link"),w=function(){var e,t=l.createElement("div"),n=l.body,r=f.style.fontSize,o=n&&n.style.fontSize,i=!1;return t.style.cssText="position:absolute;font-size:1em;width:1em",n||(n=i=l.createElement("body"),n.style.background="none"),f.style.fontSize="100%",n.style.fontSize="100%",n.appendChild(t),i&&f.insertBefore(n,f.firstChild),e=t.offsetWidth,i?f.removeChild(n):n.removeChild(t),f.style.fontSize=r,o&&(n.style.fontSize=o),e=u=parseFloat(e)},O=function(t){var n="clientWidth",r=f[n],o="CSS1Compat"===l.compatMode&&r||l.body[n]||r,i={},a=m[m.length-1],y=(new Date).getTime();if(t&&c&&g>y-c)return e.clearTimeout(s),void(s=e.setTimeout(O,g));c=y;for(var b in p)if(p.hasOwnProperty(b)){var T=p[b],j=T.minw,x=T.maxw,E=null===j,S=null===x,D="em";j&&(j=parseFloat(j)*(j.indexOf(D)>-1?u||w():1)),x&&(x=parseFloat(x)*(x.indexOf(D)>-1?u||w():1)),T.hasquery&&(E&&S||!(E||o>=j)||!(S||x>=o))||(i[T.media]||(i[T.media]=[]),i[T.media].push(h[T.rules]))}for(var _ in d)d.hasOwnProperty(_)&&d[_]&&d[_].parentNode===v&&v.removeChild(d[_]);d.length=0;for(var M in i)if(i.hasOwnProperty(M)){var P=l.createElement("style"),I=i[M].join("\n");P.type="text/css",P.media=M,v.insertBefore(P,a.nextSibling),P.styleSheet?P.styleSheet.cssText=I:P.appendChild(l.createTextNode(I)),d.push(P)}},T=function(e,t,r){var o=e.replace(n.regex.comments,"").replace(n.regex.keyframes,"").match(n.regex.media),i=o&&o.length||0;t=t.substring(0,t.lastIndexOf("/"));var c=function(e){return e.replace(n.regex.urls,"$1"+t+"$2$3")},s=!i&&r;t.length&&(t+="/"),s&&(i=1);for(var u=0;i>u;u++){var l,f,d,y;s?(l=r,h.push(c(e))):(l=o[u].match(n.regex.findStyles)&&RegExp.$1,h.push(RegExp.$2&&c(RegExp.$2))),d=l.split(","),y=d.length;for(var g=0;y>g;g++)f=d[g],a(f)||p.push({media:f.split("(")[0].match(n.regex.only)&&RegExp.$2||"all",rules:h.length-1,hasquery:f.indexOf("(")>-1,minw:f.match(n.regex.minw)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:f.match(n.regex.maxw)&&parseFloat(RegExp.$1)+(RegExp.$2||"")})}O()},j=function(){if(r.length){var t=r.shift();i(t.href,function(n){T(n,t.href,t.media),y[t.href]=!0,e.setTimeout(function(){j()},0)})}},x=function(){for(var t=0;t<m.length;t++){var n=m[t],o=n.href,i=n.media,a=n.rel&&"stylesheet"===n.rel.toLowerCase();o&&a&&!y[o]&&(n.styleSheet&&n.styleSheet.rawCssText?(T(n.styleSheet.rawCssText,o,i),y[o]=!0):(!/^([a-zA-Z:]*\/\/)/.test(o)&&!b||o.replace(RegExp.$1,"").split("/")[0]===e.location.host)&&("//"===o.substring(0,2)&&(o=e.location.protocol+o),r.push({href:o,media:i})))}j()};x(),n.update=x,n.getEmValue=w,e.addEventListener?e.addEventListener("resize",t,!1):e.attachEvent&&e.attachEvent("onresize",t)}}(this);
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! Amaze UI v2.
|
1
|
+
/*! Amaze UI v2.6.1 | by Amaze UI Team | (c) 2016 AllMobilize, Inc. | Licensed under MIT | 2016-04-06T09:34:39+0800 */
|
2
2
|
(function webpackUniversalModuleDefinition(root, factory) {
|
3
3
|
if(typeof exports === 'object' && typeof module === 'object')
|
4
4
|
module.exports = factory(require("jquery"));
|
@@ -140,7 +140,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
140
140
|
var doc = window.document;
|
141
141
|
var $html = $('html');
|
142
142
|
|
143
|
-
UI.VERSION = '2.
|
143
|
+
UI.VERSION = '2.6.1';
|
144
144
|
|
145
145
|
UI.support = {};
|
146
146
|
|
@@ -738,10 +738,10 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
738
738
|
/* 3 */
|
739
739
|
/***/ function(module, exports, __webpack_require__) {
|
740
740
|
|
741
|
-
/*! Hammer.JS - v2.0.
|
741
|
+
/*! Hammer.JS - v2.0.6 - 2015-12-23
|
742
742
|
* http://hammerjs.github.io/
|
743
743
|
*
|
744
|
-
* Copyright (c)
|
744
|
+
* Copyright (c) 2015 Jorik Tangelder;
|
745
745
|
* Licensed under the MIT license */
|
746
746
|
|
747
747
|
'use strict';
|
@@ -749,7 +749,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
749
749
|
var $ = __webpack_require__(1);
|
750
750
|
var UI = __webpack_require__(2);
|
751
751
|
|
752
|
-
var VENDOR_PREFIXES = ['', 'webkit', '
|
752
|
+
var VENDOR_PREFIXES = ['', 'webkit', 'Moz', 'MS', 'ms', 'o'];
|
753
753
|
var TEST_ELEMENT = document.createElement('div');
|
754
754
|
|
755
755
|
var TYPE_FUNCTION = 'function';
|
@@ -814,15 +814,69 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
814
814
|
}
|
815
815
|
}
|
816
816
|
|
817
|
+
/**
|
818
|
+
* wrap a method with a deprecation warning and stack trace
|
819
|
+
* @param {Function} method
|
820
|
+
* @param {String} name
|
821
|
+
* @param {String} message
|
822
|
+
* @returns {Function} A new function wrapping the supplied method.
|
823
|
+
*/
|
824
|
+
function deprecate(method, name, message) {
|
825
|
+
var deprecationMessage = 'DEPRECATED METHOD: ' + name + '\n' + message + ' AT \n';
|
826
|
+
return function() {
|
827
|
+
var e = new Error('get-stack-trace');
|
828
|
+
var stack = e && e.stack ? e.stack.replace(/^[^\(]+?[\n$]/gm, '')
|
829
|
+
.replace(/^\s+at\s+/gm, '')
|
830
|
+
.replace(/^Object.<anonymous>\s*\(/gm, '{anonymous}()@') : 'Unknown Stack Trace';
|
831
|
+
|
832
|
+
var log = window.console && (window.console.warn || window.console.log);
|
833
|
+
if (log) {
|
834
|
+
log.call(window.console, deprecationMessage, stack);
|
835
|
+
}
|
836
|
+
return method.apply(this, arguments);
|
837
|
+
};
|
838
|
+
}
|
839
|
+
|
840
|
+
/**
|
841
|
+
* extend object.
|
842
|
+
* means that properties in dest will be overwritten by the ones in src.
|
843
|
+
* @param {Object} target
|
844
|
+
* @param {...Object} objects_to_assign
|
845
|
+
* @returns {Object} target
|
846
|
+
*/
|
847
|
+
var assign;
|
848
|
+
if (typeof Object.assign !== 'function') {
|
849
|
+
assign = function assign(target) {
|
850
|
+
if (target === undefined || target === null) {
|
851
|
+
throw new TypeError('Cannot convert undefined or null to object');
|
852
|
+
}
|
853
|
+
|
854
|
+
var output = Object(target);
|
855
|
+
for (var index = 1; index < arguments.length; index++) {
|
856
|
+
var source = arguments[index];
|
857
|
+
if (source !== undefined && source !== null) {
|
858
|
+
for (var nextKey in source) {
|
859
|
+
if (source.hasOwnProperty(nextKey)) {
|
860
|
+
output[nextKey] = source[nextKey];
|
861
|
+
}
|
862
|
+
}
|
863
|
+
}
|
864
|
+
}
|
865
|
+
return output;
|
866
|
+
};
|
867
|
+
} else {
|
868
|
+
assign = Object.assign;
|
869
|
+
}
|
870
|
+
|
817
871
|
/**
|
818
872
|
* extend object.
|
819
873
|
* means that properties in dest will be overwritten by the ones in src.
|
820
874
|
* @param {Object} dest
|
821
875
|
* @param {Object} src
|
822
|
-
* @param {Boolean} [merge]
|
876
|
+
* @param {Boolean=false} [merge]
|
823
877
|
* @returns {Object} dest
|
824
878
|
*/
|
825
|
-
function extend(dest, src, merge) {
|
879
|
+
var extend = deprecate(function extend(dest, src, merge) {
|
826
880
|
var keys = Object.keys(src);
|
827
881
|
var i = 0;
|
828
882
|
while (i < keys.length) {
|
@@ -832,7 +886,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
832
886
|
i++;
|
833
887
|
}
|
834
888
|
return dest;
|
835
|
-
}
|
889
|
+
}, 'extend', 'Use `assign`.');
|
836
890
|
|
837
891
|
/**
|
838
892
|
* merge the values from src in the dest.
|
@@ -841,9 +895,9 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
841
895
|
* @param {Object} src
|
842
896
|
* @returns {Object} dest
|
843
897
|
*/
|
844
|
-
function merge(dest, src) {
|
898
|
+
var merge = deprecate(function merge(dest, src) {
|
845
899
|
return extend(dest, src, true);
|
846
|
-
}
|
900
|
+
}, 'merge', 'Use `assign`.');
|
847
901
|
|
848
902
|
/**
|
849
903
|
* simple class inheritance
|
@@ -860,7 +914,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
860
914
|
childP._super = baseP;
|
861
915
|
|
862
916
|
if (properties) {
|
863
|
-
|
917
|
+
assign(childP, properties);
|
864
918
|
}
|
865
919
|
}
|
866
920
|
|
@@ -1063,8 +1117,8 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
1063
1117
|
* @returns {DocumentView|Window}
|
1064
1118
|
*/
|
1065
1119
|
function getWindowForElement(element) {
|
1066
|
-
var doc = element.ownerDocument;
|
1067
|
-
return (doc.defaultView || doc.parentWindow);
|
1120
|
+
var doc = element.ownerDocument || element;
|
1121
|
+
return (doc.defaultView || doc.parentWindow || window);
|
1068
1122
|
}
|
1069
1123
|
|
1070
1124
|
var MOBILE_REGEX = /mobile|tablet|ip(ad|hone|od)|android/i;
|
@@ -1129,8 +1183,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
1129
1183
|
* should handle the inputEvent data and trigger the callback
|
1130
1184
|
* @virtual
|
1131
1185
|
*/
|
1132
|
-
handler: function() {
|
1133
|
-
},
|
1186
|
+
handler: function() { },
|
1134
1187
|
|
1135
1188
|
/**
|
1136
1189
|
* bind the events
|
@@ -1244,9 +1297,17 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
1244
1297
|
computeDeltaXY(session, input);
|
1245
1298
|
input.offsetDirection = getDirection(input.deltaX, input.deltaY);
|
1246
1299
|
|
1300
|
+
var overallVelocity = getVelocity(input.deltaTime, input.deltaX, input.deltaY);
|
1301
|
+
input.overallVelocityX = overallVelocity.x;
|
1302
|
+
input.overallVelocityY = overallVelocity.y;
|
1303
|
+
input.overallVelocity = (abs(overallVelocity.x) > abs(overallVelocity.y)) ? overallVelocity.x : overallVelocity.y;
|
1304
|
+
|
1247
1305
|
input.scale = firstMultiple ? getScale(firstMultiple.pointers, pointers) : 1;
|
1248
1306
|
input.rotation = firstMultiple ? getRotation(firstMultiple.pointers, pointers) : 0;
|
1249
1307
|
|
1308
|
+
input.maxPointers = !session.prevInput ? input.pointers.length : ((input.pointers.length >
|
1309
|
+
session.prevInput.maxPointers) ? input.pointers.length : session.prevInput.maxPointers);
|
1310
|
+
|
1250
1311
|
computeIntervalInputData(session, input);
|
1251
1312
|
|
1252
1313
|
// find the correct target
|
@@ -1290,8 +1351,8 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
1290
1351
|
velocity, velocityX, velocityY, direction;
|
1291
1352
|
|
1292
1353
|
if (input.eventType != INPUT_CANCEL && (deltaTime > COMPUTE_INTERVAL || last.velocity === undefined)) {
|
1293
|
-
var deltaX =
|
1294
|
-
var deltaY =
|
1354
|
+
var deltaX = input.deltaX - last.deltaX;
|
1355
|
+
var deltaY = input.deltaY - last.deltaY;
|
1295
1356
|
|
1296
1357
|
var v = getVelocity(deltaTime, deltaX, deltaY);
|
1297
1358
|
velocityX = v.x;
|
@@ -1396,9 +1457,9 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
1396
1457
|
}
|
1397
1458
|
|
1398
1459
|
if (abs(x) >= abs(y)) {
|
1399
|
-
return x
|
1460
|
+
return x < 0 ? DIRECTION_LEFT : DIRECTION_RIGHT;
|
1400
1461
|
}
|
1401
|
-
return y
|
1462
|
+
return y < 0 ? DIRECTION_UP : DIRECTION_DOWN;
|
1402
1463
|
}
|
1403
1464
|
|
1404
1465
|
/**
|
@@ -1441,7 +1502,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
1441
1502
|
* @return {Number} rotation
|
1442
1503
|
*/
|
1443
1504
|
function getRotation(start, end) {
|
1444
|
-
return getAngle(end[1], end[0], PROPS_CLIENT_XY)
|
1505
|
+
return getAngle(end[1], end[0], PROPS_CLIENT_XY) + getAngle(start[1], start[0], PROPS_CLIENT_XY);
|
1445
1506
|
}
|
1446
1507
|
|
1447
1508
|
/**
|
@@ -1534,7 +1595,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
1534
1595
|
var POINTER_WINDOW_EVENTS = 'pointermove pointerup pointercancel';
|
1535
1596
|
|
1536
1597
|
// IE10 has prefixed support, and case-sensitive
|
1537
|
-
if (window.MSPointerEvent) {
|
1598
|
+
if (window.MSPointerEvent && !window.PointerEvent) {
|
1538
1599
|
POINTER_ELEMENT_EVENTS = 'MSPointerDown';
|
1539
1600
|
POINTER_WINDOW_EVENTS = 'MSPointerMove MSPointerUp MSPointerCancel';
|
1540
1601
|
}
|
@@ -1858,7 +1919,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
1858
1919
|
value = this.compute();
|
1859
1920
|
}
|
1860
1921
|
|
1861
|
-
if (NATIVE_TOUCH_ACTION) {
|
1922
|
+
if (NATIVE_TOUCH_ACTION && this.manager.element.style) {
|
1862
1923
|
this.manager.element.style[PREFIXED_TOUCH_ACTION] = value;
|
1863
1924
|
}
|
1864
1925
|
this.actions = value.toLowerCase().trim();
|
@@ -1909,6 +1970,23 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
1909
1970
|
var hasPanY = inStr(actions, TOUCH_ACTION_PAN_Y);
|
1910
1971
|
var hasPanX = inStr(actions, TOUCH_ACTION_PAN_X);
|
1911
1972
|
|
1973
|
+
if (hasNone) {
|
1974
|
+
//do not prevent defaults if this is a tap gesture
|
1975
|
+
|
1976
|
+
var isTapPointer = input.pointers.length === 1;
|
1977
|
+
var isTapMovement = input.distance < 2;
|
1978
|
+
var isTapTouchTime = input.deltaTime < 250;
|
1979
|
+
|
1980
|
+
if (isTapPointer && isTapMovement && isTapTouchTime) {
|
1981
|
+
return;
|
1982
|
+
}
|
1983
|
+
}
|
1984
|
+
|
1985
|
+
if (hasPanX && hasPanY) {
|
1986
|
+
// `pan-x pan-y` means browser handles all scrolling/panning, do not prevent
|
1987
|
+
return;
|
1988
|
+
}
|
1989
|
+
|
1912
1990
|
if (hasNone ||
|
1913
1991
|
(hasPanY && direction & DIRECTION_HORIZONTAL) ||
|
1914
1992
|
(hasPanX && direction & DIRECTION_VERTICAL)) {
|
@@ -1940,9 +2018,12 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
1940
2018
|
var hasPanX = inStr(actions, TOUCH_ACTION_PAN_X);
|
1941
2019
|
var hasPanY = inStr(actions, TOUCH_ACTION_PAN_Y);
|
1942
2020
|
|
1943
|
-
// pan-x and pan-y
|
2021
|
+
// if both pan-x and pan-y are set (different recognizers
|
2022
|
+
// for different directions, e.g. horizontal pan but vertical swipe?)
|
2023
|
+
// we need none (as otherwise with pan-x pan-y combined none of these
|
2024
|
+
// recognizers will work, since the browser would handle all panning
|
1944
2025
|
if (hasPanX && hasPanY) {
|
1945
|
-
return
|
2026
|
+
return TOUCH_ACTION_NONE;
|
1946
2027
|
}
|
1947
2028
|
|
1948
2029
|
// pan-x OR pan-y
|
@@ -2000,10 +2081,11 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
2000
2081
|
* @param {Object} options
|
2001
2082
|
*/
|
2002
2083
|
function Recognizer(options) {
|
2084
|
+
this.options = assign({}, this.defaults, options || {});
|
2085
|
+
|
2003
2086
|
this.id = uniqueId();
|
2004
2087
|
|
2005
2088
|
this.manager = null;
|
2006
|
-
this.options = merge(options || {}, this.defaults);
|
2007
2089
|
|
2008
2090
|
// default is enable true
|
2009
2091
|
this.options.enable = ifUndefined(this.options.enable, true);
|
@@ -2027,7 +2109,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
2027
2109
|
* @return {Recognizer}
|
2028
2110
|
*/
|
2029
2111
|
set: function(options) {
|
2030
|
-
|
2112
|
+
assign(this.options, options);
|
2031
2113
|
|
2032
2114
|
// also update the touchAction, in case something changed about the directions/enabled state
|
2033
2115
|
this.manager && this.manager.touchAction.update();
|
@@ -2131,20 +2213,24 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
2131
2213
|
var self = this;
|
2132
2214
|
var state = this.state;
|
2133
2215
|
|
2134
|
-
function emit(
|
2135
|
-
self.manager.emit(
|
2216
|
+
function emit(event) {
|
2217
|
+
self.manager.emit(event, input);
|
2136
2218
|
}
|
2137
2219
|
|
2138
2220
|
// 'panstart' and 'panmove'
|
2139
2221
|
if (state < STATE_ENDED) {
|
2140
|
-
emit(
|
2222
|
+
emit(self.options.event + stateStr(state));
|
2141
2223
|
}
|
2142
2224
|
|
2143
|
-
emit(); // simple 'eventName' events
|
2225
|
+
emit(self.options.event); // simple 'eventName' events
|
2226
|
+
|
2227
|
+
if (input.additionalEvent) { // additional event(panleft, panright, pinchin, pinchout...)
|
2228
|
+
emit(input.additionalEvent);
|
2229
|
+
}
|
2144
2230
|
|
2145
2231
|
// panend and pancancel
|
2146
2232
|
if (state >= STATE_ENDED) {
|
2147
|
-
emit(
|
2233
|
+
emit(self.options.event + stateStr(state));
|
2148
2234
|
}
|
2149
2235
|
},
|
2150
2236
|
|
@@ -2184,7 +2270,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
2184
2270
|
recognize: function(inputData) {
|
2185
2271
|
// make a new copy of the inputData
|
2186
2272
|
// so we can change the inputData without messing up the other recognizers
|
2187
|
-
var inputDataClone =
|
2273
|
+
var inputDataClone = assign({}, inputData);
|
2188
2274
|
|
2189
2275
|
// is is enabled and allow recognizing?
|
2190
2276
|
if (!boolOrFn(this.options.enable, [this, inputDataClone])) {
|
@@ -2214,24 +2300,21 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
2214
2300
|
* @param {Object} inputData
|
2215
2301
|
* @returns {Const} STATE
|
2216
2302
|
*/
|
2217
|
-
process: function(inputData) {
|
2218
|
-
}, // jshint ignore:line
|
2303
|
+
process: function(inputData) { }, // jshint ignore:line
|
2219
2304
|
|
2220
2305
|
/**
|
2221
2306
|
* return the preferred touch-action
|
2222
2307
|
* @virtual
|
2223
2308
|
* @returns {Array}
|
2224
2309
|
*/
|
2225
|
-
getTouchAction: function() {
|
2226
|
-
},
|
2310
|
+
getTouchAction: function() { },
|
2227
2311
|
|
2228
2312
|
/**
|
2229
2313
|
* called when the gesture isn't allowed to recognize
|
2230
2314
|
* like when another is being recognized or it is disabled
|
2231
2315
|
* @virtual
|
2232
2316
|
*/
|
2233
|
-
reset: function() {
|
2234
|
-
}
|
2317
|
+
reset: function() { }
|
2235
2318
|
};
|
2236
2319
|
|
2237
2320
|
/**
|
@@ -2412,14 +2495,15 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
2412
2495
|
},
|
2413
2496
|
|
2414
2497
|
emit: function(input) {
|
2498
|
+
|
2415
2499
|
this.pX = input.deltaX;
|
2416
2500
|
this.pY = input.deltaY;
|
2417
2501
|
|
2418
2502
|
var direction = directionStr(input.direction);
|
2503
|
+
|
2419
2504
|
if (direction) {
|
2420
|
-
|
2505
|
+
input.additionalEvent = this.options.event + direction;
|
2421
2506
|
}
|
2422
|
-
|
2423
2507
|
this._super.emit.call(this, input);
|
2424
2508
|
}
|
2425
2509
|
});
|
@@ -2455,11 +2539,11 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
2455
2539
|
},
|
2456
2540
|
|
2457
2541
|
emit: function(input) {
|
2458
|
-
this._super.emit.call(this, input);
|
2459
2542
|
if (input.scale !== 1) {
|
2460
2543
|
var inOut = input.scale < 1 ? 'in' : 'out';
|
2461
|
-
|
2544
|
+
input.additionalEvent = this.options.event + inOut;
|
2462
2545
|
}
|
2546
|
+
this._super.emit.call(this, input);
|
2463
2547
|
}
|
2464
2548
|
});
|
2465
2549
|
|
@@ -2484,8 +2568,8 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
2484
2568
|
defaults: {
|
2485
2569
|
event: 'press',
|
2486
2570
|
pointers: 1,
|
2487
|
-
time:
|
2488
|
-
threshold:
|
2571
|
+
time: 251, // minimal time of the pointer to be pressed
|
2572
|
+
threshold: 9 // a minimal movement is ok, but keep it low
|
2489
2573
|
},
|
2490
2574
|
|
2491
2575
|
getTouchAction: function() {
|
@@ -2583,7 +2667,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
2583
2667
|
defaults: {
|
2584
2668
|
event: 'swipe',
|
2585
2669
|
threshold: 10,
|
2586
|
-
velocity: 0.
|
2670
|
+
velocity: 0.3,
|
2587
2671
|
direction: DIRECTION_HORIZONTAL | DIRECTION_VERTICAL,
|
2588
2672
|
pointers: 1
|
2589
2673
|
},
|
@@ -2597,21 +2681,22 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
2597
2681
|
var velocity;
|
2598
2682
|
|
2599
2683
|
if (direction & (DIRECTION_HORIZONTAL | DIRECTION_VERTICAL)) {
|
2600
|
-
velocity = input.
|
2684
|
+
velocity = input.overallVelocity;
|
2601
2685
|
} else if (direction & DIRECTION_HORIZONTAL) {
|
2602
|
-
velocity = input.
|
2686
|
+
velocity = input.overallVelocityX;
|
2603
2687
|
} else if (direction & DIRECTION_VERTICAL) {
|
2604
|
-
velocity = input.
|
2688
|
+
velocity = input.overallVelocityY;
|
2605
2689
|
}
|
2606
2690
|
|
2607
2691
|
return this._super.attrTest.call(this, input) &&
|
2608
|
-
direction & input.
|
2692
|
+
direction & input.offsetDirection &&
|
2609
2693
|
input.distance > this.options.threshold &&
|
2694
|
+
input.maxPointers == this.options.pointers &&
|
2610
2695
|
abs(velocity) > this.options.velocity && input.eventType & INPUT_END;
|
2611
2696
|
},
|
2612
2697
|
|
2613
2698
|
emit: function(input) {
|
2614
|
-
var direction = directionStr(input.
|
2699
|
+
var direction = directionStr(input.offsetDirection);
|
2615
2700
|
if (direction) {
|
2616
2701
|
this.manager.emit(this.options.event + direction, input);
|
2617
2702
|
}
|
@@ -2654,7 +2739,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
2654
2739
|
taps: 1,
|
2655
2740
|
interval: 300, // max time between the multi-tap taps
|
2656
2741
|
time: 250, // max time of the pointer to be down (like finger on the screen)
|
2657
|
-
threshold:
|
2742
|
+
threshold: 9, // a minimal movement is ok, but keep it low
|
2658
2743
|
posThreshold: 10 // a multi-tap can be a bit off the initial position
|
2659
2744
|
},
|
2660
2745
|
|
@@ -2736,7 +2821,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
2736
2821
|
});
|
2737
2822
|
|
2738
2823
|
/**
|
2739
|
-
* Simple way to create
|
2824
|
+
* Simple way to create a manager with a default set of recognizers.
|
2740
2825
|
* @param {HTMLElement} element
|
2741
2826
|
* @param {Object} [options]
|
2742
2827
|
* @constructor
|
@@ -2750,7 +2835,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
2750
2835
|
/**
|
2751
2836
|
* @const {string}
|
2752
2837
|
*/
|
2753
|
-
Hammer.VERSION = '2.0.
|
2838
|
+
Hammer.VERSION = '2.0.6';
|
2754
2839
|
|
2755
2840
|
/**
|
2756
2841
|
* default settings
|
@@ -2874,9 +2959,8 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
2874
2959
|
* @constructor
|
2875
2960
|
*/
|
2876
2961
|
function Manager(element, options) {
|
2877
|
-
options = options || {};
|
2962
|
+
this.options = assign({}, Hammer.defaults, options || {});
|
2878
2963
|
|
2879
|
-
this.options = merge(options, Hammer.defaults);
|
2880
2964
|
this.options.inputTarget = this.options.inputTarget || element;
|
2881
2965
|
|
2882
2966
|
this.handlers = {};
|
@@ -2889,7 +2973,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
2889
2973
|
|
2890
2974
|
toggleCssProps(this, true);
|
2891
2975
|
|
2892
|
-
each(options.recognizers, function(item) {
|
2976
|
+
each(this.options.recognizers, function(item) {
|
2893
2977
|
var recognizer = this.add(new (item[0])(item[1]));
|
2894
2978
|
item[2] && recognizer.recognizeWith(item[2]);
|
2895
2979
|
item[3] && recognizer.requireFailure(item[3]);
|
@@ -2903,7 +2987,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
2903
2987
|
* @returns {Manager}
|
2904
2988
|
*/
|
2905
2989
|
set: function(options) {
|
2906
|
-
|
2990
|
+
assign(this.options, options);
|
2907
2991
|
|
2908
2992
|
// Options that need a little more setup
|
2909
2993
|
if (options.touchAction) {
|
@@ -3037,11 +3121,19 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
3037
3121
|
return this;
|
3038
3122
|
}
|
3039
3123
|
|
3040
|
-
var recognizers = this.recognizers;
|
3041
3124
|
recognizer = this.get(recognizer);
|
3042
|
-
recognizers.splice(inArray(recognizers, recognizer), 1);
|
3043
3125
|
|
3044
|
-
this
|
3126
|
+
// let's make sure this recognizer exists
|
3127
|
+
if (recognizer) {
|
3128
|
+
var recognizers = this.recognizers;
|
3129
|
+
var index = inArray(recognizers, recognizer);
|
3130
|
+
|
3131
|
+
if (index !== -1) {
|
3132
|
+
recognizers.splice(index, 1);
|
3133
|
+
this.touchAction.update();
|
3134
|
+
}
|
3135
|
+
}
|
3136
|
+
|
3045
3137
|
return this;
|
3046
3138
|
},
|
3047
3139
|
|
@@ -3072,7 +3164,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
3072
3164
|
if (!handler) {
|
3073
3165
|
delete handlers[event];
|
3074
3166
|
} else {
|
3075
|
-
handlers[event].splice(inArray(handlers[event], handler), 1);
|
3167
|
+
handlers[event] && handlers[event].splice(inArray(handlers[event], handler), 1);
|
3076
3168
|
}
|
3077
3169
|
});
|
3078
3170
|
return this;
|
@@ -3128,6 +3220,9 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
3128
3220
|
*/
|
3129
3221
|
function toggleCssProps(manager, add) {
|
3130
3222
|
var element = manager.element;
|
3223
|
+
if (!element.style) {
|
3224
|
+
return;
|
3225
|
+
}
|
3131
3226
|
each(manager.options.cssProps, function(value, name) {
|
3132
3227
|
element.style[prefixed(element.style, name)] = add ? value : '';
|
3133
3228
|
});
|
@@ -3145,7 +3240,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
3145
3240
|
data.target.dispatchEvent(gestureEvent);
|
3146
3241
|
}
|
3147
3242
|
|
3148
|
-
|
3243
|
+
assign(Hammer, {
|
3149
3244
|
INPUT_START: INPUT_START,
|
3150
3245
|
INPUT_MOVE: INPUT_MOVE,
|
3151
3246
|
INPUT_END: INPUT_END,
|
@@ -3192,6 +3287,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
3192
3287
|
each: each,
|
3193
3288
|
merge: merge,
|
3194
3289
|
extend: extend,
|
3290
|
+
assign: assign,
|
3195
3291
|
inherit: inherit,
|
3196
3292
|
bindFn: bindFn,
|
3197
3293
|
prefixed: prefixed
|
@@ -5300,17 +5396,19 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
5300
5396
|
var UI = __webpack_require__(2);
|
5301
5397
|
|
5302
5398
|
// MODIFIED:
|
5303
|
-
// - LINE
|
5399
|
+
// - LINE 252: add `<i></i>`
|
5304
5400
|
// - namespace
|
5305
5401
|
// - Init code
|
5306
5402
|
// TODO: start after x ms when pause on actions
|
5307
5403
|
|
5308
5404
|
/*
|
5309
|
-
* jQuery FlexSlider v2.
|
5405
|
+
* jQuery FlexSlider v2.6.0
|
5310
5406
|
* Copyright 2012 WooThemes
|
5311
5407
|
* Contributing Author: Tyler Smith
|
5312
5408
|
*/
|
5313
5409
|
|
5410
|
+
var focused = true;
|
5411
|
+
|
5314
5412
|
// FlexSlider: Object Instance
|
5315
5413
|
$.flexslider = function(el, options) {
|
5316
5414
|
var slider = $(el);
|
@@ -5322,7 +5420,6 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
5322
5420
|
msGesture = window.navigator && window.navigator.msPointerEnabled && window.MSGesture,
|
5323
5421
|
touch = (( "ontouchstart" in window ) || msGesture || window.DocumentTouch && document instanceof DocumentTouch) && slider.vars.touch,
|
5324
5422
|
// depricating this idea, as devices are being released with both of these events
|
5325
|
-
//eventType = (touch) ? "touchend" : "click",
|
5326
5423
|
eventType = "click touchend MSPointerUp keyup",
|
5327
5424
|
watchedEvent = "",
|
5328
5425
|
watchedEventClearTimer,
|
@@ -5331,8 +5428,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
5331
5428
|
carousel = (slider.vars.itemWidth > 0),
|
5332
5429
|
fade = slider.vars.animation === "fade",
|
5333
5430
|
asNav = slider.vars.asNavFor !== "",
|
5334
|
-
methods = {}
|
5335
|
-
focused = true;
|
5431
|
+
methods = {};
|
5336
5432
|
|
5337
5433
|
// Store a reference to the slider object
|
5338
5434
|
$.data(el, 'flexslider', slider);
|
@@ -5385,6 +5481,9 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
5385
5481
|
// MANUAL:
|
5386
5482
|
if (slider.vars.manualControls !== "") slider.manualControls = $(slider.vars.manualControls).length > 0 && $(slider.vars.manualControls);
|
5387
5483
|
|
5484
|
+
// CUSTOM DIRECTION NAV:
|
5485
|
+
if (slider.vars.customDirectionNav !== "") slider.customDirectionNav = $(slider.vars.customDirectionNav).length === 2 && $(slider.vars.customDirectionNav);
|
5486
|
+
|
5388
5487
|
// RANDOMIZE:
|
5389
5488
|
if (slider.vars.randomize) {
|
5390
5489
|
slider.slides.sort(function() {
|
@@ -5533,10 +5632,14 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
5533
5632
|
if (slider.pagingCount > 1) {
|
5534
5633
|
for (var i = 0; i < slider.pagingCount; i++) {
|
5535
5634
|
slide = slider.slides.eq(i);
|
5536
|
-
|
5635
|
+
if (undefined === slide.attr('data-thumb-alt')) {
|
5636
|
+
slide.attr('data-thumb-alt', '');
|
5637
|
+
}
|
5638
|
+
altText = ( '' !== slide.attr('data-thumb-alt') ) ? altText = ' alt="' + slide.attr('data-thumb-alt') + '"' : '';
|
5639
|
+
item = (slider.vars.controlNav === "thumbnails") ? '<img src="' + slide.attr( 'data-thumb' ) + '"' + altText + '/>' : '<a href="#">' + j + '</a>';
|
5537
5640
|
if ('thumbnails' === slider.vars.controlNav && true === slider.vars.thumbCaptions) {
|
5538
5641
|
var captn = slide.attr('data-thumbcaption');
|
5539
|
-
if (''
|
5642
|
+
if ('' !== captn && undefined !== captn) {item += '<span class="' + namespace + 'caption">' + captn + '</span>';}
|
5540
5643
|
}
|
5541
5644
|
// slider.controlNavScaffold.append('<li>' + item + '</li>');
|
5542
5645
|
slider.controlNavScaffold.append('<li>' + item + '<i></i></li>');
|
@@ -5604,7 +5707,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
5604
5707
|
},
|
5605
5708
|
update: function(action, pos) {
|
5606
5709
|
if (slider.pagingCount > 1 && action === "add") {
|
5607
|
-
slider.controlNavScaffold.append($('<li><a>' + slider.count + '</a></li>'));
|
5710
|
+
slider.controlNavScaffold.append($('<li><a href="#">' + slider.count + '</a></li>'));
|
5608
5711
|
} else if (slider.pagingCount === 1) {
|
5609
5712
|
slider.controlNavScaffold.find('li').remove();
|
5610
5713
|
} else {
|
@@ -5618,8 +5721,10 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
5618
5721
|
setup: function() {
|
5619
5722
|
var directionNavScaffold = $('<ul class="' + namespace + 'direction-nav"><li class="' + namespace + 'nav-prev"><a class="' + namespace + 'prev" href="#">' + slider.vars.prevText + '</a></li><li class="' + namespace + 'nav-next"><a class="' + namespace + 'next" href="#">' + slider.vars.nextText + '</a></li></ul>');
|
5620
5723
|
|
5621
|
-
//
|
5622
|
-
if (slider.
|
5724
|
+
// CUSTOM DIRECTION NAV:
|
5725
|
+
if (slider.customDirectionNav) {
|
5726
|
+
slider.directionNav = slider.customDirectionNav;
|
5727
|
+
} else if (slider.controlsContainer) { // CONTROLSCONTAINER:
|
5623
5728
|
$(slider.controlsContainer).append(directionNavScaffold);
|
5624
5729
|
slider.directionNav = $('.' + namespace + 'direction-nav li a', slider.controlsContainer);
|
5625
5730
|
} else {
|
@@ -5664,7 +5769,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
5664
5769
|
},
|
5665
5770
|
pausePlay: {
|
5666
5771
|
setup: function() {
|
5667
|
-
var pausePlayScaffold = $('<div class="' + namespace + 'pauseplay"><a></a></div>');
|
5772
|
+
var pausePlayScaffold = $('<div class="' + namespace + 'pauseplay"><a href="#"></a></div>');
|
5668
5773
|
|
5669
5774
|
// CONTROLSCONTAINER:
|
5670
5775
|
if (slider.controlsContainer) {
|
@@ -5710,15 +5815,16 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
5710
5815
|
cwidth,
|
5711
5816
|
dx,
|
5712
5817
|
startT,
|
5818
|
+
onTouchStart,
|
5819
|
+
onTouchMove,
|
5820
|
+
onTouchEnd,
|
5713
5821
|
scrolling = false,
|
5714
5822
|
localX = 0,
|
5715
5823
|
localY = 0,
|
5716
5824
|
accDx = 0;
|
5717
5825
|
|
5718
5826
|
if (!msGesture) {
|
5719
|
-
|
5720
|
-
|
5721
|
-
function onTouchStart(e) {
|
5827
|
+
onTouchStart = function(e) {
|
5722
5828
|
if (slider.animating) {
|
5723
5829
|
e.preventDefault();
|
5724
5830
|
} else if (( window.navigator.msPointerEnabled ) || e.touches.length === 1) {
|
@@ -5743,9 +5849,9 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
5743
5849
|
el.addEventListener('touchmove', onTouchMove, false);
|
5744
5850
|
el.addEventListener('touchend', onTouchEnd, false);
|
5745
5851
|
}
|
5746
|
-
}
|
5852
|
+
};
|
5747
5853
|
|
5748
|
-
function
|
5854
|
+
onTouchMove = function(e) {
|
5749
5855
|
// Local vars for X and Y points.
|
5750
5856
|
|
5751
5857
|
localX = e.touches[0].pageX;
|
@@ -5765,9 +5871,9 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
5765
5871
|
slider.setProps(offset + dx, "setTouch");
|
5766
5872
|
}
|
5767
5873
|
}
|
5768
|
-
}
|
5874
|
+
};
|
5769
5875
|
|
5770
|
-
function
|
5876
|
+
onTouchEnd = function(e) {
|
5771
5877
|
// finish the touch by undoing the touch session
|
5772
5878
|
el.removeEventListener('touchmove', onTouchMove, false);
|
5773
5879
|
|
@@ -5787,7 +5893,9 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
5787
5893
|
startY = null;
|
5788
5894
|
dx = null;
|
5789
5895
|
offset = null;
|
5790
|
-
}
|
5896
|
+
};
|
5897
|
+
|
5898
|
+
el.addEventListener('touchstart', onTouchStart, false);
|
5791
5899
|
} else {
|
5792
5900
|
el.style.msTouchAction = "none";
|
5793
5901
|
el._gesture = new MSGesture();
|
@@ -6266,11 +6374,8 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
6266
6374
|
slider.setProps(sliderOffset * slider.computedW, "init");
|
6267
6375
|
setTimeout(function() {
|
6268
6376
|
slider.doMath();
|
6269
|
-
slider.newSlides.css({
|
6270
|
-
|
6271
|
-
"float": "left",
|
6272
|
-
"display": "block"
|
6273
|
-
});
|
6377
|
+
slider.newSlides.css({"width": slider.computedW, "marginRight" : slider.computedM, "float": "left", "display": "block"});
|
6378
|
+
|
6274
6379
|
// SMOOTH HEIGHT:
|
6275
6380
|
if (slider.vars.smoothHeight) {methods.smoothHeight();}
|
6276
6381
|
}, (type === "init") ? 100 : 0);
|
@@ -6318,6 +6423,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
6318
6423
|
// CAROUSEL:
|
6319
6424
|
if (carousel) {
|
6320
6425
|
slider.itemT = slider.vars.itemWidth + slideMargin;
|
6426
|
+
slider.itemM = slideMargin;
|
6321
6427
|
slider.minW = (minItems) ? minItems * slider.itemT : slider.w;
|
6322
6428
|
slider.maxW = (maxItems) ? (maxItems * slider.itemT) - slideMargin : slider.w;
|
6323
6429
|
slider.itemW = (slider.minW > slider.w) ? (slider.w - (slideMargin * (minItems - 1))) / minItems :
|
@@ -6332,10 +6438,12 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
6332
6438
|
(slider.vars.itemWidth > slider.w) ? (slider.itemW * (slider.count - 1)) + (slideMargin * (slider.count - 1)) : ((slider.itemW + slideMargin) * slider.count) - slider.w - slideMargin;
|
6333
6439
|
} else {
|
6334
6440
|
slider.itemW = slider.w;
|
6441
|
+
slider.itemM = slideMargin;
|
6335
6442
|
slider.pagingCount = slider.count;
|
6336
6443
|
slider.last = slider.count - 1;
|
6337
6444
|
}
|
6338
6445
|
slider.computedW = slider.itemW - slider.boxPadding;
|
6446
|
+
slider.computedM = slider.itemM;
|
6339
6447
|
};
|
6340
6448
|
|
6341
6449
|
slider.update = function(pos, action) {
|
@@ -6474,6 +6582,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
6474
6582
|
// Special properties
|
6475
6583
|
controlsContainer: '', // {UPDATED} jQuery Object/Selector: Declare which container the navigation elements should be appended too. Default container is the FlexSlider element. Example use would be $('.flexslider-container'). Property is ignored if given element is not found.
|
6476
6584
|
manualControls: '', // {UPDATED} jQuery Object/Selector: Declare custom control navigation. Examples would be $(".flex-control-nav li") or "#tabs-nav li img", etc. The number of elements in your controlNav should match the number of slides/tabs.
|
6585
|
+
customDirectionNav: '', // {NEW} jQuery Object/Selector: Custom prev / next button. Must be two jQuery elements. In order to make the events work they have to have the classes "prev" and "next" (plus namespace)
|
6477
6586
|
sync: '', // {NEW} Selector: Mirror the actions performed on this slider with another slider. Use with care.
|
6478
6587
|
asNavFor: '', // {NEW} Selector: Internal property exposed for turning the slider into a thumbnail navigation for another slider
|
6479
6588
|
|
@@ -7818,7 +7927,8 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
7818
7927
|
if (this.transitioning) {
|
7819
7928
|
clearTimeout($element.transitionEndTimmer);
|
7820
7929
|
$element.transitionEndTimmer = null;
|
7821
|
-
$element.trigger(options.transitionEnd)
|
7930
|
+
$element.trigger(options.transitionEnd)
|
7931
|
+
.off(options.transitionEnd);
|
7822
7932
|
}
|
7823
7933
|
|
7824
7934
|
isPopup && this.$element.show();
|
@@ -7834,35 +7944,26 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
7834
7944
|
// apply Modal width/height if set
|
7835
7945
|
if (!isPopup && !this.isActions) {
|
7836
7946
|
if (width) {
|
7837
|
-
width =
|
7838
|
-
style.width = width + 'px';
|
7839
|
-
style.marginLeft = -parseInt(width / 2) + 'px';
|
7947
|
+
style.width = parseInt(width, 10) + 'px';
|
7840
7948
|
}
|
7841
7949
|
|
7842
7950
|
if (height) {
|
7843
|
-
height = parseInt(height, 10);
|
7844
|
-
// style.height = height + 'px';
|
7845
|
-
style.marginTop = -parseInt(height / 2) + 'px';
|
7846
|
-
|
7847
|
-
// the background color is styled to $dialog
|
7848
|
-
// so the height should set to $dialog
|
7849
|
-
this.$dialog.css({height: height + 'px'});
|
7850
|
-
} else {
|
7851
|
-
style.marginTop = -parseInt($element.height() / 2, 10) + 'px';
|
7951
|
+
style.height = parseInt(height, 10) + 'px';
|
7852
7952
|
}
|
7853
7953
|
|
7854
|
-
|
7954
|
+
this.$dialog.css(style);
|
7855
7955
|
}
|
7856
7956
|
|
7857
|
-
$element
|
7858
|
-
removeClass(options.className.out)
|
7859
|
-
addClass(options.className.active);
|
7957
|
+
$element
|
7958
|
+
.removeClass(options.className.out)
|
7959
|
+
.addClass(options.className.active);
|
7860
7960
|
|
7861
7961
|
this.transitioning = 1;
|
7862
7962
|
|
7863
7963
|
var complete = function() {
|
7864
|
-
$element.trigger(
|
7865
|
-
{relatedTarget: relatedTarget})
|
7964
|
+
$element.trigger(
|
7965
|
+
$.Event('opened.modal.amui', {relatedTarget: relatedTarget})
|
7966
|
+
);
|
7866
7967
|
this.transitioning = 0;
|
7867
7968
|
|
7868
7969
|
// Prompt auto focus
|
@@ -7875,9 +7976,9 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
7875
7976
|
return complete.call(this);
|
7876
7977
|
}
|
7877
7978
|
|
7878
|
-
$element
|
7879
|
-
one(options.transitionEnd, $.proxy(complete, this))
|
7880
|
-
emulateTransitionEnd(options.duration);
|
7979
|
+
$element
|
7980
|
+
.one(options.transitionEnd, $.proxy(complete, this))
|
7981
|
+
.emulateTransitionEnd(options.duration);
|
7881
7982
|
};
|
7882
7983
|
|
7883
7984
|
Modal.prototype.close = function(relatedTarget) {
|
@@ -7919,8 +8020,8 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
7919
8020
|
return complete.call(this);
|
7920
8021
|
}
|
7921
8022
|
|
7922
|
-
$element.one(options.transitionEnd, $.proxy(complete, this))
|
7923
|
-
emulateTransitionEnd(options.duration);
|
8023
|
+
$element.one(options.transitionEnd, $.proxy(complete, this))
|
8024
|
+
.emulateTransitionEnd(options.duration);
|
7924
8025
|
};
|
7925
8026
|
|
7926
8027
|
Modal.prototype.events = function() {
|
@@ -14311,7 +14412,9 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
14311
14412
|
UCheck.prototype.uncheck = function() {
|
14312
14413
|
this.$element
|
14313
14414
|
.prop('checked', false)
|
14314
|
-
|
14415
|
+
// trigger `change` event for form validation, etc.
|
14416
|
+
// @see https://forum.jquery.com/topic/should-chk-prop-checked-true-trigger-change-event
|
14417
|
+
.trigger('change')
|
14315
14418
|
.trigger('unchecked.ucheck.amui');
|
14316
14419
|
},
|
14317
14420
|
|
@@ -14463,7 +14566,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
14463
14566
|
submit: null
|
14464
14567
|
};
|
14465
14568
|
|
14466
|
-
Validator.VERSION = '2.
|
14569
|
+
Validator.VERSION = '2.6.1';
|
14467
14570
|
|
14468
14571
|
/* jshint -W101 */
|
14469
14572
|
Validator.patterns = {
|
@@ -15038,6 +15141,11 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
15038
15141
|
|
15039
15142
|
'use strict';
|
15040
15143
|
|
15144
|
+
/**
|
15145
|
+
* @via https://github.com/sindresorhus/screenfull.js
|
15146
|
+
* @license MIT © Sindre Sorhus
|
15147
|
+
*/
|
15148
|
+
|
15041
15149
|
var UI = __webpack_require__(2);
|
15042
15150
|
var screenfull = (function() {
|
15043
15151
|
var keyboardAllowed = typeof Element !== 'undefined' &&
|
@@ -15165,7 +15273,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
15165
15273
|
}
|
15166
15274
|
});
|
15167
15275
|
|
15168
|
-
screenfull.VERSION = '
|
15276
|
+
screenfull.VERSION = '3.0.0';
|
15169
15277
|
|
15170
15278
|
return screenfull;
|
15171
15279
|
})();
|
@@ -15256,7 +15364,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
15256
15364
|
/* 34 */
|
15257
15365
|
/***/ function(module, exports, __webpack_require__) {
|
15258
15366
|
|
15259
|
-
'use strict';
|
15367
|
+
/* WEBPACK VAR INJECTION */(function(global) {'use strict';
|
15260
15368
|
|
15261
15369
|
var UI = __webpack_require__(2);
|
15262
15370
|
|
@@ -15267,13 +15375,12 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
15267
15375
|
*/
|
15268
15376
|
|
15269
15377
|
var store = {};
|
15270
|
-
var win = window;
|
15378
|
+
var win = (typeof window != 'undefined' ? window : global);
|
15271
15379
|
var localStorageName = 'localStorage';
|
15272
15380
|
var storage;
|
15273
15381
|
|
15274
15382
|
store.disabled = false;
|
15275
|
-
|
15276
|
-
store.version = '1.3.17';
|
15383
|
+
store.version = '1.3.20';
|
15277
15384
|
|
15278
15385
|
store.set = function(key, value) {
|
15279
15386
|
};
|
@@ -15296,7 +15403,6 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
15296
15403
|
transactionFn = defaultVal;
|
15297
15404
|
defaultVal = null;
|
15298
15405
|
}
|
15299
|
-
|
15300
15406
|
if (defaultVal == null) {
|
15301
15407
|
defaultVal = {};
|
15302
15408
|
}
|
@@ -15334,14 +15440,14 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
15334
15440
|
function isLocalStorageNameSupported() {
|
15335
15441
|
try {
|
15336
15442
|
return (localStorageName in win && win[localStorageName]);
|
15337
|
-
}
|
15338
|
-
catch (err) {
|
15443
|
+
} catch (err) {
|
15339
15444
|
return false;
|
15340
15445
|
}
|
15341
15446
|
}
|
15342
15447
|
|
15343
15448
|
if (isLocalStorageNameSupported()) {
|
15344
15449
|
storage = win[localStorageName];
|
15450
|
+
|
15345
15451
|
store.set = function(key, val) {
|
15346
15452
|
if (val === undefined) {
|
15347
15453
|
return store.remove(key);
|
@@ -15380,7 +15486,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
15380
15486
|
}
|
15381
15487
|
|
15382
15488
|
try {
|
15383
|
-
var testKey = '
|
15489
|
+
var testKey = '__storejs__';
|
15384
15490
|
store.set(testKey, testKey);
|
15385
15491
|
if (store.get(testKey) != testKey) {
|
15386
15492
|
store.disabled = true;
|
@@ -15394,6 +15500,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
15394
15500
|
|
15395
15501
|
module.exports = UI.store = store;
|
15396
15502
|
|
15503
|
+
/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
|
15397
15504
|
|
15398
15505
|
/***/ },
|
15399
15506
|
/* 35 */
|