/**
* This file is part of Qunee for HTML5.
* Copyright (c) 2016 by qunee.com
**/
if(!window.getI18NString){getI18NString = function(s){return s;}}
window.Q=function(t,i,n){"use strict";function e(t,i,n){if(t[Gh]()){var s=t._fo||t[zh]();if(s){s=s._k0||s;for(var h=0,r=s[Hh];r>h;h++)if(i[qh](n,s[h])===!1||e(s[h],i,n)===!1)return!1;return!0}}}function s(t){if(!t[Gh]())return t instanceof MY?t:null;for(var i,n=t._fo._k0,e=n[Hh]-1;e>=0;){if(i=n[e],i=s(i))return i;e--}return null}function h(t,i,n,e){return e?r(t,i,n):a(t,i,n)}function r(t,i,n){t=t._k0||t;for(var e,s=0,h=t[Hh];h>s;s++)if(e=t[s],e[Gh]()&&!r(e[Yh],i,n)||i[qh](n,e)===!1)return!1;return!0}function a(t,i,n){t=t._k0||t;for(var e,s=0,h=t.length;h>s;s++)if(e=t[s],i[qh](n,e)===!1||e.hasChildren()&&!a(e[Yh],i,n))return!1;return!0}function o(t,i,n,e){return e?f(t,i,n):c(t,i,n)}function f(t,i,n){t=t._k0||t;for(var e,s=t.length,h=s-1;h>=0;h--)if(e=t[h],e[Gh]()&&!f(e[Yh],i,n)||i[qh](n,e)===!1)return!1;return!0}function c(t,i,n){t=t._k0||t;for(var e,s=t[Hh],h=s-1;h>=0;h--)if(e=t[h],i.call(n,e)===!1||e[Gh]()&&!c(e.children,i,n))return!1;return!0}function u(t,i,n){for(var e,s=(t._k0||t)[Wh](0);s[Hh];){e=s[0],s=s[Uh](1);var h=i.call(n,e);if(h===!1)return!1;if(e[Gh]()){var r=e[Yh];r=r._k0||r,s=s[Vh](r)}}return!0}function _(t,i,n){for(var e,s=(t._k0||t)[Wh](0);s[Hh];){e=s[s[Hh]-1],s=s.splice(0,s[Hh]-1);var h=i[qh](n,e);if(h===!1)return!1;if(e[Gh]()){var r=e[Yh];r=r._k0||r,s=s.concat(r)}}return!0}function d(t,i){function n(t,n){for(var e=t.length,s=n[Hh],h=e+s,r=new Array(h),a=0,o=0,f=0;h>f;)r[f++]=a===e?n[o++]:o===s||i(t[a],n[o])<=0?t[a++]:n[o++];return r}function e(t){var i=t.length,s=Math.ceil(i/2);return 1>=i?t:n(e(t[Wh](0,s)),e(t[Wh](s)))}return e(t)}function l(t,i,n,e){t instanceof hz&&(t=t._k0);for(var s=0,h=(t._k0||t)[Hh];h>s;s++){var r=i.call(n,t[s],s,e);if(r===!1)return!1}return!0}function v(t,i,n){for(var e=t instanceof hz,s=t._k0||t,h=0,r=s.length;r>h;h++){var a=s[h];i[qh](n,a)&&(e?t[Xh](a):t.splice(h,1),h--,r--)}}function b(t,i,n,e){t instanceof hz&&(t=t._k0);for(var s=(t._k0||t)[Hh]-1;s>=0;s--){var h=i[qh](n,t[s],s,e);if(h===!1)return!1}return!0}function y(t){if(t[Zh]instanceof Function)return t[Zh](!0);var i,n=[];return l(t,function(t){i=t&&t[Zh]instanceof Function?t[Zh]():t,n.push(i)},this),n}function g(t,i,e){e===n||0>e?t[Kh](i):t.splice(e,0,i)}function x(t,i){var n=t[Jh](i);return 0>n||n>=t.length?!1:t.splice(n,1)}function m(t,i){var n=!1;return l(t,function(t){return i==t?(n=!0,!1):void 0}),n}function E(t,i){var n=t;for(var e in i)if(i.__lookupGetter__){var s=i.__lookupGetter__(e),h=i.__lookupSetter__(e);s||h?(s&&n.__defineGetter__(e,s),h&&n.__defineSetter__(e,h)):n[e]=i[e]}else n[e]=i[e];return n}function p(t,i,n){if(!(t instanceof Function))throw new Error("subclass must be type of Function");var e=null;Qh==typeof i&&(e=i,i=t,t=function(){i.apply(this,arguments)});var s=t.prototype,h=function(){};return h[tr]=i[tr],t[tr]=new h,t.superclass=i[tr],t.superclass.constructor=i,E(t[tr],s),e&&E(t[tr],e),n&&E(t[tr],n),t.prototype[ir]=t,t}function w(t,i,n){return T(t,i,"constructor",n)}function T(t,i,n,e){var s=i[nr];if(s){var h=s[n];return h?h.apply(t,e):void 0}}function k(t,i,n,e){if("constructor"==n)return O(t,i,e);if(i[er]instanceof Function){var s=i[er][tr][n];return s instanceof Function?s[sr](t,e):void 0}}function O(t,i,n){return i[er]instanceof Function?i[er][sr](t,n):void 0}function M(t,i){return t[er]=i,t[tr]=Object[hr](i.prototype,{super_:{value:i,enumerable:!1},constructor:{value:t,enumerable:!1}}),t}function S(t,i,n){if(!(t instanceof Function)&&t instanceof Object){i=t[rr];var e;return t.hasOwnProperty("constructor")?(e=t.constructor,delete t.constructor):e=i?function(){i[sr](this,arguments)}:function(){},S(e,i,t)}if(i&&!(i instanceof Function)&&i instanceof Object)return S(t,i[rr],i);if(i&&M(t,i),n){var s=t[tr];for(var h in n)s[h]=n[h]}return t}function I(t,i,e,s,h){if(s)return void Object[ar](t,i,{value:e,enumerable:!0});var r={configurable:!0,enumerable:!0},a=or+i;e!==n&&(t[a]=e),r.get=function(){return this[a]},r.set=function(t){var n=this[a];if(n==t)return!1;var e=new Tz(this,i,t,n);return this.beforeEvent(e)?(this[a]=t,h&&h[qh](this,t,n),this[fr](e),!0):!1},Object[ar](t,i,r)}function A(t,i){for(var n=0,e=i[Hh];e>n;n++){var s=i[n];I(t,s.name||s,s[cr]||s[ur],s.readOnly,s.onSetting)}}function C(t,i,n){return i instanceof Object?t=t[_r](i):i&&!n&&(n=parseInt(i)),i&&!n&&(n=parseInt(i)),n?setTimeout(t,n):setTimeout(t)}function L(i,n){return n&&(i=i.bind(n)),t[dr](i)}function R(t,i){return t.className=i,t}function P(t,i){if(!t.hasOwnProperty(lr)){var n=t[vr](ir);if(!n)return R(t,i);for(var e=n[br](yr),s=0,h=e.length;h>s;s++)if(e[s]==i)return;return n+=yr+i,R(t,n)}t[lr].add(i)}function D(t,i){if(!t.hasOwnProperty(lr)){var n=t[vr](ir);if(!n||!n.indexOf(i))return;for(var e="",s=n[br](yr),h=0,r=s.length;r>h;h++)s[h]!=i&&(e+=s[h]+yr);return R(t,e)}t.classList.remove(i)}function N(t){return!isNaN(t)&&t instanceof Number||gr==typeof t}function j(t){return t!==n&&(t instanceof String||xr==typeof t)}function $(t){return t!==n&&(t instanceof Boolean||mr==typeof t)}function B(t){return Array[Er](t)}function F(i){i||(i=t[pr]),i[wr]?i[wr]():i.returnValue=!1}function G(i){i||(i=t[pr]),i[Tr]?i[Tr]():i[kr]||(i[kr]=!0)}function z(t){F(t),G(t)}function H(t){return Math[Or](Math.random()*t)}function q(){return Math[Mr]()>=.5}function Y(t){var i=!0;for(var n in t){i=!1;break}return i}function W(t){if(t&&t>0&&1>t){var i=Math.floor(16777215*Math[Mr]());return Sr+(i>>16&255)+Ir+(i>>8&255)+Ir+(255&i)+Ir+t[Ar](2)+Cr}return X(Math[Or](16777215*Math[Mr]()))}function U(t){return t>0?Math[Or](t):Math.ceil(t)}function V(t){return t>0?Math.ceil(t):Math[Or](t)}function X(t){return 16777216>t?Lr+(Rr+t.toString(16)).slice(-6):Sr+(t>>16&255)+Ir+(t>>8&255)+Ir+(255&t)+Ir+((t>>24&255)/255)[Ar](2)+Cr}function Z(t,i,n){Qh!=typeof n||n.hasOwnProperty(Pr)||(n[Pr]=!0),Object[ar](t,i,n)}function K(t,i){for(var n in i)if(Dr!=n[0]){var e=i[n];Qh!=typeof e||e.hasOwnProperty(Pr)||(e[Pr]=!0)}Object[Nr](t,i)}function J(i,n){n||(n=t);for(var e=i.split(jr),s=0,h=e[Hh];h>s;s++){var r=e[s];n=n[r]}return n}function Q(t){return t instanceof MouseEvent||t instanceof Object&&t[$r]!==n}function ti(i){t.console&&console.log(i)}function ii(i){t[Br]&&console[Fr](i)}function ni(i){t[Br]&&console[Gr](i)}function ei(t,i,n){var e,s,h;0==t._nb?(e=-1,h=0,s=i):0==t._nd?(e=0,h=1,s=n):(e=-1/t._nb,s=(t._nb-e)*i+t._nc,h=1);var r=new cz;return r._nb=e,r._nc=s,r._nd=h,r._n7=i,r._n5=n,r._l6=Math[zr](e,h),r[Hr]=Math.cos(r._l6),r[qr]=Math.sin(r._l6),r}function si(t,i,n,e,s){var h,r;i>e?h=-1:e>i&&(h=1),n>s?r=-1:s>n&&(r=1);var a,o;if(!h)return o=0>r?t.y:t[Yr],{x:i,y:o};if(!r)return a=0>h?t.x:t[Wr],{x:a,y:n};var f=(n-s)/(i-e),c=n-f*i,u=0>h?i-t.x:i-t[Wr],_=0>r?n-t.y:n-t[Yr];return Math.abs(f)>=Math.abs(_/u)?(o=0>r?t.y:t[Yr],a=(o-c)/f):(a=0>h?t.x:t[Wr],o=f*a+c),{x:a,y:o}}function hi(t,i,n,e,s,h,r,a){return 0>=r||0>=a||0>=n||0>=e?!1:(r+=s,a+=h,n+=t,e+=i,(s>r||r>t)&&(h>a||a>i)&&(t>n||n>s)&&(i>e||e>h))}function ri(t,i,n,e,s,h){return s>=t&&t+n>=s&&h>=i&&i+e>=h}function ai(t,i,n,e,s,h,r,a,o){return o&&(t-=o,i-=o,n+=o+o,e+=o+o),s>=t&&h>=i&&t+n>=s+r&&i+e>=h+a}function oi(t,i,n,e,s,h,r,a){var o=t;o+=n;var f=i;f+=e;var c=s;c+=r;var u=h;return u+=a,s>t&&(t=s),h>i&&(i=h),o>c&&(o=c),f>u&&(f=u),o-=t,f-=i,0>o||0>f?null:new _z(t,i,o,f)}function fi(t,i,e){if(j(t)&&(t=lz[Ur](t)),!t)return{x:0,y:0};if(t.x!==n)return{x:t.x,y:t.y};var s,h,r=t[Vr],a=t[Xr];switch(r){case vz:s=0;break;case yz:s=i;break;default:s=i/2}switch(a){case gz:h=0;break;case mz:h=e;break;default:h=e/2}return{x:s,y:h}}function ci(t,i,n){t[Yh].add(i,n),t.onChildAdd(i,n)}function ui(t,i){t._fo&&(t._fo[Xh](i),t.onChildRemove(i))}function _i(t){return t[Zr](/^-ms-/,Kr)[Zr](/-([\da-z])/gi,function(t,i){return i[Jr]()})}function di(t){return t[Zr](/[A-Z]/g,function(t){return Qr+t[ta]()})[Zr](/^ms-/,ia)}function li(t,i){var n=t[na];if(!n)return!1;var e,s;for(e in i)i.hasOwnProperty(e)&&(s=Fz(e))&&(n[s]=i[e]);return t}funct
评论2
最新资源