base.min.js 28.3 KB
!function(t,e){t.gxb=t.gxb||function(){var n={},r={};return{_:{registerF:function(t,e,n,r,i){gxb.components.registerNamespace(t+"FullName",t),e=e||[],n=n||[];for(var o=0,s=n.length;o<s;o++)e.indexOf(n[o])<0&&e.push(n[o]);var a=gxb.components.getComponent(t),c=function(){for(var n={},r=0,i=e.length-1;r<i;r++){var o=e[r]||"";o.lastIndexOf(".")>=0&&(o="$"+o.substr(o.lastIndexOf(".")+1)),n[o]=arguments[r]}return 0==t.indexOf("gxb.models.")?a:new a(n)};e.push(c),r(i||t,e)}},extend:e.extend,services:{},controllers:{},models:{},utils:{generateID:function(){var t;do t=Math.random()+"00000000",t=t.substr(t.indexOf(".")+1,6);while(r[t]);return r[t]=!0,t}},uis:{},settings:{},webparts:{},inherit:function(t,e){var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.prototype.super=t.prototype,t.prototype.constructor==Object.prototype.constructor&&(t.prototype.constructor=t)},components:{registerNamespace:function(e,r){for(var i=e.split("."),o=t,s=0,a=i.length;s<a;s++){var c=i[s];"object"!=typeof o[c]&&"function"!=typeof o[c]&&(o[c]={},s==a-1&&r&&(o[c]=r));var u=i.slice(0,s+1).join(".");n[u]||(n[u]=o[c]),o=o[c]}},getComponent:function(t){return n[t]||gxb.components.registerNamespace(t),n[t]||null}}}}()}(window,$),function(t){t.interceptors=function(){var e=angular.module("gxb.interceptors",[]),n={};return{inheritFromInterceptor:function(e){t.inherit(t.interceptors.baseInterceptor,e)},registerDependency:function(t,e){n[t+"_"]=e||[]},getDependency:function(t){return n[t+"_"]||[]},registerInterceptor:function(n,r){var i=[];t._.registerF(n,r,i,e.factory),e.config(["$httpProvider",function(t){t.interceptors.push(n)}])}}}()}(gxb),function(t){t.models=function(){var e=angular.module("gxb.models",[]);return{inheritFromModel:function(e){t.inherit(gxb.models.baseModel,e)},registerModel:function(n){t._.registerF(n,[],[],e.factory)}}}()}(gxb),function(t){t.services=function(){var e=angular.module("gxb.services",["gxb.models","gxb.plugins"]),n={};return{inheritFromSrv:function(e){t.inherit(gxb.services.baseSrv,e)},registerDependency:function(t,e){n[t+"_"]=e||[]},getDependency:function(t){return n[t+"_"]||[]},registerService:function(n,r){var i=[];t._.registerF(n,r,i,e.service)}}}()}(gxb),function($$){$$.controllers=function(){var _ctrlModule=angular.module("gxb.controllers",["gxb.services","gxb.models","gxb.ui","gxb.plugins","datePicker"]),_ctrlModuleDependency={},_ctrlViews={};return{inheritFromCtrl:function(t){$$.inherit(gxb.controllers.baseCtrl,t)},registerDependency:function(t,e){_ctrlModuleDependency[t+"_"]=e||[]},getDependency:function(t){return _ctrlModuleDependency[t+"_"]||[]},registerView:function(t,e){_ctrlViews[t+"_"]=e||""},getView:function(t){return _ctrlViews[t+"_"]||""},getController:function(ctrlName){try{return eval(ctrlName)}catch(t){return null}},registerController:function(t,e){var n=["$rootScope","$scope","$sce","$compile","$stateParams","$location","$window","gxb.uis.components.uiComponents","gxb.plugins.components.pluginComponents","$state"];$$._.registerF(t,e,n,_ctrlModule.controller)}}}()}(gxb),function(t){t.uis=function(){var e=angular.module("gxb.ui",[]),n={};return{registerDependency:function(t,e){n[t+"_"]=e||[]},getDependency:function(t){return n[t+"_"]||[]},registerUI:function(n,r){var i=[];t._.registerF(n,r,i,e.factory)},components:{}}}()}(gxb),function(t){t.plugins=function(){var e=angular.module("gxb.plugins",[]),n={};return{inheritFromPlugin:function(e){t.inherit(t.plugins.basePlug,e)},registerDependency:function(t,e){n[t+"_"]=e||[]},getDependency:function(t){return n[t+"_"]||[]},registerPlugin:function(n,r){var i=[];t._.registerF(n,r,i,e.factory)},components:{}}}()}(gxb),function($$){$$.directives=function(){var _dirModule=angular.module("gxb.directives",["gxb.plugins","gxb.services"]),_dirViews={},_dirModuleDependency={};return{inheritFromDir:function(t){$$.inherit(gxb.directives.baseDir,t)},registerDependency:function(t,e){_dirModuleDependency[t+"_"]=e||[]},getDependency:function(t){return _dirModuleDependency[t+"_"]||[]},registerView:function(t,e){_dirViews[t+"_"]=e||""},getView:function(t){return _dirViews[t+"_"]||""},getController:function(direName){try{return eval(direName)}catch(t){return null}},registerDirective:function(t,e,n){var r=["$compile","$interval","$timeout","gxb.plugins.components.pluginComponents"];$$._.registerF(e,n,r,_dirModule.directive,t)}}}()}(gxb),function(t){t.filters=function(){var e=angular.module("gxb.filters",[]),n={};return{inheritFromFilter:function(e){t.inherit(gxb.filters.baseFilter,e)},registerDependency:function(t,e){n[t+"_"]=e||[]},getDependency:function(t){return n[t+"_"]||[]},registerFilter:function(n,r,i){var o=["$filter"];t._.registerF(r,i,o,e.filter,n)}}}()}(gxb),function(t){!function(t){var e={version:"3.3.0",areas:{},apis:{},inherit:function(t,e){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n]);return e},stringify:function(t){return void 0===t||"function"==typeof t?t+"":JSON.stringify(t)},parse:function(t){try{return JSON.parse(t)}catch(e){return t}},fn:function(t,n){e.storeAPI[t]=n;for(var r in e.apis)e.apis[r][t]=n},get:function(t,e){return t.getItem(e)},set:function(t,e,n){t.setItem(e,n)},remove:function(t,e){t.removeItem(e)},key:function(t,e){return t.key(e)},length:function(t){return t.length},clear:function(t){t.clear()},Store:function(t,n,r){var i=e.inherit(e.storeAPI,function(t,e,n){return 0===arguments.length?i.getAll():void 0!==e?i.set(t,e,n):"string"==typeof t||"number"==typeof t?i.get(t):t?i.setAll(t,e):i.clear()});i._id=t;try{var o="_safariPrivate_";n.setItem(o,"sucks"),i._area=n,n.removeItem(o)}catch(t){}return i._area||(i._area=e.inherit(e.storageAPI,{items:{},name:"fake"})),i._ns=r||"",e.areas[t]||(e.areas[t]=i._area),e.apis[i._ns+i._id]||(e.apis[i._ns+i._id]=i),i},storeAPI:{area:function(t,n){var r=this[t];return r&&r.area||(r=e.Store(t,n,this._ns),this[t]||(this[t]=r)),r},namespace:function(t,n){if(!t)return this._ns?this._ns.substring(0,this._ns.length-1):"";var r=t,i=this[r];return i&&i.namespace||(i=e.Store(this._id,this._area,this._ns+r+"."),this[r]||(this[r]=i),n||i.area("session",e.areas.session)),i},isFake:function(){return"fake"===this._area.name},toString:function(){return"store"+(this._ns?"."+this.namespace():"")+"["+this._id+"]"},has:function(t){return this._area.has?this._area.has(this._in(t)):!!(this._in(t)in this._area)},size:function(){return this.keys().length},each:function(t,n){for(var r=0,i=e.length(this._area);r<i;r++){var o=this._out(e.key(this._area,r));if(void 0!==o&&t.call(this,o,n||this.get(o))===!1)break;i>e.length(this._area)&&(i--,r--)}return n||this},keys:function(){return this.each(function(t,e){e.push(t)},[])},get:function(t,n){var r=e.get(this._area,this._in(t));return null!==r?e.parse(r):n||r},getAll:function(){return this.each(function(t,e){e[t]=this.get(t)},{})},set:function(t,n,r){var i=this.get(t);if(null!=i&&r===!1)return n;try{return e.set(this._area,this._in(t),e.stringify(n),r)||i}catch(t){if("QUOTA_EXCEEDED_ERR"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name||t.toString().indexOf("QUOTA_EXCEEDED_ERR")!==-1||t.toString().indexOf("QuotaExceededError")!==-1)return void this.clearAll();throw t}},setAll:function(t,e){var n,r;for(var i in t)r=t[i],this.set(i,r,e)!==r&&(n=!0);return n},remove:function(t){var n=this.get(t);return e.remove(this._area,this._in(t)),n},clear:function(){return this._ns?this.each(function(t){e.remove(this._area,this._in(t))},1):e.clear(this._area),this},clearAll:function(){var t=this._area;for(var n in e.areas)e.areas.hasOwnProperty(n)&&(this._area=e.areas[n],this.clear());return this._area=t,this},_in:function(t){return"string"!=typeof t&&(t=e.stringify(t)),this._ns?this._ns+t:t},_out:function(t){return this._ns?t&&0===t.indexOf(this._ns)?t.substring(this._ns.length):void 0:t}},storageAPI:{length:0,has:function(t){return this.items.hasOwnProperty(t)},key:function(t){var e=0;for(var n in this.items)if(this.has(n)&&t===e++)return n},setItem:function(t,e){this.has(t)||this.length++,this.items[t]=e},removeItem:function(t){this.has(t)&&(delete this.items[t],this.length--)},getItem:function(t){return this.has(t)?this.items[t]:null},clear:function(){for(var t in this.list)this.removeItem(t)},toString:function(){return this.length+" items in "+this.name+"Storage"}}},n=e.Store("local",function(){try{return localStorage}catch(t){}}());n.local=n,n._=e,n.area("session",function(){try{return sessionStorage}catch(t){}}()),t.localStorageUtils=n}(t)}(gxb.utils),function(t,e){"use strict";var n=function(n){var i=e.Deferred();n.isGetMethod=function(){return"GET"===n.type},n.inQueue=function(){return!!r[n.url]},n.pushDefered=function(t){n.inQueue()&&r[n.url].notify.push(t)},n.canCachable=function(){return n.cacheable!==!1},n.getHash=function(){return t.encryptUtils.md5(n.url+t.jsonUtils.toString(n.data||{}))};var o=function(t,e){(e||i).resolve(t)},s=function(t){i.reject(t)},a=function(){var a=n.url;n.isGetMethod()&&((a||"").indexOf("?")!=-1?n.url=a+"&rnd="+(new Date).getTime():n.url=a+"?rnd="+(new Date).getTime());var c=e.ajax(n);n.url=a,r[n.url]={xhr:c,notify:[i]},c.then(function(e){if(n.isGetMethod()){try{t.cacheUtils.set(n.getHash(),e)}catch(t){}var i=r[n.url]&&r[n.url].notify||[];delete r[n.url];for(var s=0,a=i.length;s<a;s++)o(e,i[s])}else delete r[n.url],o(e)},function(t,e,i){var o={context:t,state:e,msg:i};delete r[n.url],s(o)})};if(n.isGetMethod()){var c=n.canCachable()?t.cacheUtils.get(n.getHash()):void 0,u="undefined"==typeof c;u?n.inQueue()?n.pushDefered(i):a():window.setTimeout(function(){o(c)},15)}else a();return i.promise()},r={},i=function(){return{data:null,cache:!1,crossDomain:!0,processData:!0,timeout:0,type:"HEAD",url:"",dataType:"json",contentType:e.ajaxSettings.accepts.json}};t.ajaxUtils={doPost:function(t){var r=e.extend(i(),t||{});return r.data=r.data instanceof FormData?r.data:gxb.utils.jsonUtils.toString(r.data),r.type="POST",new n(r)},doGet:function(t){var r=e.extend(i(),t||{});return r.data=r.data?gxb.utils.jsonUtils.toObject(gxb.utils.jsonUtils.toString(r.data)):r.data,r.type="GET",new n(r)},doDelete:function(t){var r=e.extend(i(),t||{});return r.type="DELETE",new n(r)},doPut:function(t){var r=e.extend(i(),t||{});return r.data=r.data instanceof FormData?r.data:r.data?gxb.utils.jsonUtils.toString(r.data):r.data,r.type="PUT",new n(r)},doHead:function(t){var r=e.extend(i(),t||{});return r.type="HEAD",r.timeout=1e3,new n(r)}}}(gxb.utils,Zepto),function(t){t.browserUtils=function(t){var e={android:/(Android)(\s+([\d.]+))*/i.test(t),ipad:/(iPad).*OS\s([\d_]+)/i.test(t),webos:/(webOS|hpwOS)[\s\/]([\d.]+)/i.test(t),kindle:/Kindle\/([\d.]+)/i.test(t),silk:/Silk\/([\d._]+)/i.test(t),blackberry:/(BlackBerry).*Version\/([\d.]+)/i.test(t),bb10:/(BB10).*Version\/([\d.]+)/i.test(t),rimtabletos:/(RIM\sTablet\sOS)\s([\d.]+)/i.test(t),playbook:/PlayBook/i.test(t),chrome:/chrome\/(\d+\.\d+)/i.test(t)?+RegExp.$1:void 0,firefox:/firefox\/(\d+\.\d+)/i.test(t)?+RegExp.$1:void 0,ie:/msie (\d+\.\d+)/i.test(t)?document.documentMode||+RegExp.$1:document.documentMode||void 0,isGecko:/gecko/i.test(t)&&!/like gecko/i.test(t),isStrict:"CSS1Compat"===document.compatMode,isWebkit:/webkit/i.test(t),opera:/opera(\/| )(\d+(\.\d+)?)(.+?(version\/(\d+(\.\d+)?)))?/i.test(t)?+(RegExp.$6||RegExp.$2):void 0};e.iphone=!e.ipad&&/(iPhone\sOS)\s([\d_]+)/i.test(t),e.touchpad=e.webos&&/TouchPad/.test(t),e.tablet=!!(e.ipad||e.playbook||e.android&&!/Mobile/.test(t)||e.firefox&&/Tablet/.test(t)),e.phone=!(e.tablet||!(e.android||e.iphone||e.webos||e.blackberry||e.bb10||e.chrome&&/Android/.test(t)||e.chrome&&/CriOS\/([\d.]+)/.test(t)||e.firefox&&/Mobile/.test(t)));try{/(\d+\.\d+)/.test(window.external.max_version)&&(e.maxthon=+RegExp.$1)}catch(t){}return e.mobile=e.tablet||e.phone||e.touchpad,e.safari=/(\d+\.\d)?(?:\.\d)?\s+safari\/?(\d+\.\d+)?/i.test(t)&&!/chrome/i.test(t)?+(RegExp.$1||RegExp.$2):void 0,e.isSupportFixed=!e.ie||e.ie>=7,e}(navigator.userAgent),function(){gxb.utils.localStorageUtils.set("underIE10",gxb.utils.localStorageUtils.get("underIE10")||(gxb.utils.browserUtils.ie||10)>=10)}()}(gxb.utils),function(t){t.cacheUtils=function(){"use strict";function e(t,e,n){for(var r in t)t.hasOwnProperty(r)&&e(t[r],r,t)}function n(t,r){e(t,function(t){t&&"object"==typeof t&&n(t,r),delete c[r+t]})}function r(t,e,n){if(n=n||c[t._ns+e]){if(Date.now()<=n.e)return n.d;delete c[t._ns+e],a()}}function i(t,o){var s;return t=(t||"")+":",o=o>0?+o:l,s=u[t]||function(t,e,n){return arguments.length>1||t&&"object"==typeof t?s.set(t,e,n):s.get(t)},s._ns=t,s._ex=o,u[t]?s:(u[t]=s,s.get=function(t){var n={};return null!=t?r(s,t):(e(c,function(t,e){0===e.indexOf(s._ns)&&(e=e.slice(s._ns.length),t=r(s,e,t),t&&(n[e]=t))}),n)},s.set=function(t,n,r){var i={};t&&"object"==typeof t?(i=t,r=n):i[t]=n;var o=r>=0?r:s._ex;return o=1e3*+o+ +new Date,e(i,function(t,e){e=s._ns+e,c[e]=c[e]||{},c[e].d=t,r===!1&&c[e].e||(c[e].e=o)}),a(),s},s.remove=function(t){return"undefined"==typeof t||t+""==""?e(c,function(t,e){0===e.indexOf(s._ns)&&delete c[e]}):n(f.call(arguments),s._ns),a(),s},s.namespace=function(t,e){return null==t?s:(t=s._ns+t,e=e>0?+e:s._ex,i(t,e))},s)}var o="_GXB_CMS_DATA_CACHE_KEY",s="_GXB_CMS_DATA_CACHE_KEY";t.localStorageUtils.get(o)||t.localStorageUtils.set(o,{}),t.localStorageUtils.get(s)||t.localStorageUtils.set(s,{});var a=function(){t.localStorageUtils.set(s,c)},c=t.localStorageUtils.get(o),u=t.localStorageUtils.get(s),l=5,f=Array.prototype.slice,d=i();return d.NAME="expireCache",d.VERSION="v1.0.0",d._getCache=function(){return{cache:c,index:u}},d}()}(gxb.utils),function(t){t.datetimeUtils={parse:function(t){if(!t)return"";try{if(1*t==t){t=new Number(t);try{t=new Date(t)}catch(t){}}else try{t=new Date(t.replace(/-/g,"/").substr(0,19))}catch(t){}return t}catch(t){return""}},convert:function(t){return"string"==typeof t?t:t.format("YYYY-MM-DD HH:mm:ss")},minutes:function(t){return"string"==typeof t?t:t.format("YYYY-MM-DD HH:mm")}}}(gxb.utils),function(t){t.downloadUtils={downloadFile:function(t){var e=document.createElement("iframe");e.style.display="none",e.src=t,document.body.appendChild(e)}}}(gxb.utils),function(t){function e(t){t=r(t);var e,n,i,s,a,c;for(i=t.length,n=0,e="";n<i;){if(s=255&t.charCodeAt(n++),n==i){e+=o.charAt(s>>2),e+=o.charAt((3&s)<<4),e+="==";break}if(a=t.charCodeAt(n++),n==i){e+=o.charAt(s>>2),e+=o.charAt((3&s)<<4|(240&a)>>4),e+=o.charAt((15&a)<<2),e+="=";break}c=t.charCodeAt(n++),e+=o.charAt(s>>2),e+=o.charAt((3&s)<<4|(240&a)>>4),e+=o.charAt((15&a)<<2|(192&c)>>6),e+=o.charAt(63&c)}return e}function n(t){var e,n,r,o,a,c,u;for(c=t.length,a=0,u="";a<c;){do e=s[255&t.charCodeAt(a++)];while(a<c&&e==-1);if(e==-1)break;do n=s[255&t.charCodeAt(a++)];while(a<c&&n==-1);if(n==-1)break;u+=String.fromCharCode(e<<2|(48&n)>>4);do{if(r=255&t.charCodeAt(a++),61==r)return i(u);r=s[r]}while(a<c&&r==-1);if(r==-1)break;u+=String.fromCharCode((15&n)<<4|(60&r)>>2);do{if(o=255&t.charCodeAt(a++),61==o)return i(u);o=s[o]}while(a<c&&o==-1);if(o==-1)break;u+=String.fromCharCode((3&r)<<6|o)}return i(u)}function r(t){var e,n,r,i;for(e="",r=t.length,n=0;n<r;n++)i=t.charCodeAt(n),i>=1&&i<=127?e+=t.charAt(n):i>2047?(e+=String.fromCharCode(224|i>>12&15),e+=String.fromCharCode(128|i>>6&63),e+=String.fromCharCode(128|i>>0&63)):(e+=String.fromCharCode(192|i>>6&31),e+=String.fromCharCode(128|i>>0&63));return e}function i(t){var e,n,r,i,o,s;for(e="",r=t.length,n=0;n<r;)switch(i=t.charCodeAt(n++),i>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:e+=t.charAt(n-1);break;case 12:case 13:o=t.charCodeAt(n++),e+=String.fromCharCode((31&i)<<6|63&o);break;case 14:o=t.charCodeAt(n++),s=t.charCodeAt(n++),e+=String.fromCharCode((15&i)<<12|(63&o)<<6|(63&s)<<0)}return e}var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=new Array((-1),(-1),(-1),(-1),(-1),(-1),(-1),(-1),(-1),(-1),(-1),(-1),(-1),(-1),(-1),(-1),(-1),(-1),(-1),(-1),(-1),(-1),(-1),(-1),(-1),(-1),(-1),(-1),(-1),(-1),(-1),(-1),(-1),(-1),(-1),(-1),(-1),(-1),(-1),(-1),(-1),(-1),(-1),62,(-1),(-1),(-1),63,52,53,54,55,56,57,58,59,60,61,(-1),(-1),(-1),(-1),(-1),(-1),(-1),0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,(-1),(-1),(-1),(-1),(-1),(-1),26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,(-1),(-1),(-1),(-1),(-1));t.base64={},t.base64.encode=e,t.base64.decode=n}(gxb.utils.encryptUtils=gxb.utils.encryptUtils||{}),function(t){var e={htmlEncode:function(t){var e=document.createElement("div");void 0!=e.textContent?e.textContent=t:e.innerText=t;var n=e.innerHTML;return e=null,n},htmlDecode:function(t){var e=document.createElement("div");e.innerHTML=t;var n=e.innerText||e.textContent;return e=null,n}};t.html=e}(gxb.utils.encryptUtils=gxb.utils.encryptUtils||{}),function(t){function e(t,e){var n=t[0],a=t[1],c=t[2],u=t[3];n=r(n,a,c,u,e[0],7,-680876936),u=r(u,n,a,c,e[1],12,-389564586),c=r(c,u,n,a,e[2],17,606105819),a=r(a,c,u,n,e[3],22,-1044525330),n=r(n,a,c,u,e[4],7,-176418897),u=r(u,n,a,c,e[5],12,1200080426),c=r(c,u,n,a,e[6],17,-1473231341),a=r(a,c,u,n,e[7],22,-45705983),n=r(n,a,c,u,e[8],7,1770035416),u=r(u,n,a,c,e[9],12,-1958414417),c=r(c,u,n,a,e[10],17,-42063),a=r(a,c,u,n,e[11],22,-1990404162),n=r(n,a,c,u,e[12],7,1804603682),u=r(u,n,a,c,e[13],12,-40341101),c=r(c,u,n,a,e[14],17,-1502002290),a=r(a,c,u,n,e[15],22,1236535329),n=i(n,a,c,u,e[1],5,-165796510),u=i(u,n,a,c,e[6],9,-1069501632),c=i(c,u,n,a,e[11],14,643717713),a=i(a,c,u,n,e[0],20,-373897302),n=i(n,a,c,u,e[5],5,-701558691),u=i(u,n,a,c,e[10],9,38016083),c=i(c,u,n,a,e[15],14,-660478335),a=i(a,c,u,n,e[4],20,-405537848),n=i(n,a,c,u,e[9],5,568446438),u=i(u,n,a,c,e[14],9,-1019803690),c=i(c,u,n,a,e[3],14,-187363961),a=i(a,c,u,n,e[8],20,1163531501),n=i(n,a,c,u,e[13],5,-1444681467),u=i(u,n,a,c,e[2],9,-51403784),c=i(c,u,n,a,e[7],14,1735328473),a=i(a,c,u,n,e[12],20,-1926607734),n=o(n,a,c,u,e[5],4,-378558),u=o(u,n,a,c,e[8],11,-2022574463),c=o(c,u,n,a,e[11],16,1839030562),a=o(a,c,u,n,e[14],23,-35309556),n=o(n,a,c,u,e[1],4,-1530992060),u=o(u,n,a,c,e[4],11,1272893353),c=o(c,u,n,a,e[7],16,-155497632),a=o(a,c,u,n,e[10],23,-1094730640),n=o(n,a,c,u,e[13],4,681279174),u=o(u,n,a,c,e[0],11,-358537222),c=o(c,u,n,a,e[3],16,-722521979),a=o(a,c,u,n,e[6],23,76029189),n=o(n,a,c,u,e[9],4,-640364487),u=o(u,n,a,c,e[12],11,-421815835),c=o(c,u,n,a,e[15],16,530742520),a=o(a,c,u,n,e[2],23,-995338651),n=s(n,a,c,u,e[0],6,-198630844),u=s(u,n,a,c,e[7],10,1126891415),c=s(c,u,n,a,e[14],15,-1416354905),a=s(a,c,u,n,e[5],21,-57434055),n=s(n,a,c,u,e[12],6,1700485571),u=s(u,n,a,c,e[3],10,-1894986606),c=s(c,u,n,a,e[10],15,-1051523),a=s(a,c,u,n,e[1],21,-2054922799),n=s(n,a,c,u,e[8],6,1873313359),u=s(u,n,a,c,e[15],10,-30611744),c=s(c,u,n,a,e[6],15,-1560198380),a=s(a,c,u,n,e[13],21,1309151649),n=s(n,a,c,u,e[4],6,-145523070),u=s(u,n,a,c,e[11],10,-1120210379),c=s(c,u,n,a,e[2],15,718787259),a=s(a,c,u,n,e[9],21,-343485551),t[0]=g(n,t[0]),t[1]=g(a,t[1]),t[2]=g(c,t[2]),t[3]=g(u,t[3])}function n(t,e,n,r,i,o){return e=g(g(e,t),g(r,o)),g(e<<i|e>>>32-i,n)}function r(t,e,r,i,o,s,a){return n(e&r|~e&i,t,e,o,s,a)}function i(t,e,r,i,o,s,a){return n(e&i|r&~i,t,e,o,s,a)}function o(t,e,r,i,o,s,a){return n(e^r^i,t,e,o,s,a)}function s(t,e,r,i,o,s,a){return n(r^(e|~i),t,e,o,s,a)}function a(t){txt="";var n,r=t.length,i=[1732584193,-271733879,-1732584194,271733878];for(n=64;n<=t.length;n+=64)e(i,c(t.substring(n-64,n)));t=t.substring(n-64);var o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(n=0;n<t.length;n++)o[n>>2]|=t.charCodeAt(n)<<(n%4<<3);if(o[n>>2]|=128<<(n%4<<3),n>55)for(e(i,o),n=0;n<16;n++)o[n]=0;return o[14]=8*r,e(i,o),i}function c(t){var e,n=[];for(e=0;e<64;e+=4)n[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return n}function u(t){for(var e="",n=0;n<4;n++)e+=d[t>>8*n+4&15]+d[t>>8*n&15];return e}function l(t){for(var e=0;e<t.length;e++)t[e]=u(t[e]);return t.join("")}function f(t){return l(a(t))}var d="0123456789abcdef".split(""),g=function(t,e){return t+e&4294967295};"5d41402abc4b2a76b9719d911017c592"!=f("hello")&&(g=function(t,e){var n=(65535&t)+(65535&e),r=(t>>16)+(e>>16)+(n>>16);return r<<16|65535&n}),t.md5=f}(gxb.utils.encryptUtils=gxb.utils.encryptUtils||{}),function(t){function e(t){return c(n(a(t),t.length*l))}function n(t,e){t[e>>5]|=128<<24-e%32,t[(e+64>>9<<4)+15]=e;for(var n=Array(80),a=1732584193,c=-271733879,u=-1732584194,l=271733878,f=-1009589776,d=0;d<t.length;d+=16){for(var g=a,h=c,p=u,b=l,v=f,m=0;m<80;m++){m<16?n[m]=t[d+m]:n[m]=s(n[m-3]^n[m-8]^n[m-14]^n[m-16],1);var x=o(o(s(a,5),r(m,c,u,l)),o(o(f,n[m]),i(m)));f=l,l=u,u=s(c,30),c=a,a=x}a=o(a,g),c=o(c,h),u=o(u,p),l=o(l,b),f=o(f,v)}return Array(a,c,u,l,f)}function r(t,e,n,r){return t<20?e&n|~e&r:t<40?e^n^r:t<60?e&n|e&r|n&r:e^n^r}function i(t){return t<20?1518500249:t<40?1859775393:t<60?-1894007588:-899497514}function o(t,e){var n=(65535&t)+(65535&e),r=(t>>16)+(e>>16)+(n>>16);return r<<16|65535&n}function s(t,e){return t<<e|t>>>32-e}function a(t){for(var e=Array(),n=(1<<l)-1,r=0;r<t.length*l;r+=l)e[r>>5]|=(t.charCodeAt(r/l)&n)<<24-r%32;return e}function c(t){for(var e=u?"0123456789ABCDEF":"0123456789abcdef",n="",r=0;r<4*t.length;r++)n+=e.charAt(t[r>>2]>>8*(3-r%4)+4&15)+e.charAt(t[r>>2]>>8*(3-r%4)&15);return n}var u=0,l=8;t.hex_sha1=e}(gxb.utils.encryptUtils=gxb.utils.encryptUtils||{}),function(t,e){t.jsonUtils={toString:function(t){try{return JSON.stringify(t)}catch(t){return gxb.utils.stringUtils.EMPTY}},toObject:function(t){try{return JSON.parse(t)}catch(t){return gxb.utils.objectUtils.NULL}}}}(gxb.utils,_),function(t,e){t.langUtils={isEmpty:e.isEmpty,isEqual:e.isEqual,isEqualWith:e.isEqualWith,isFunction:e.isFunction,isInt:e.isInteger,isNumber:e.isNumber,isString:e.isString,isArray:e.isArray,isDate:e.isDate,isMap:e.isMap,isUndefined:e.isUndefined,isNaN:e.isNaN,isNull:e.isNull}}(gxb.utils,_),function(t){var e={insert:function(n,r,i){t.langUtils.isFunction(r)&&(i=i||r,r=!0);for(var o=n.length,s=0;s<o;s++){var a=n[s];{if(!r||!e.exist(a)){var c=document.getElementsByTagName("head")[0],u=document.createElement("script");u.setAttribute("type","text/javascript"),u.setAttribute("src",a),c.appendChild(u),e.bind(u,s,a,n,r,i);break}s==o-1&&e.exec(n,i)}}},exist:function(t){for(var e=document.getElementsByTagName("script"),n=e.length,r=0;r<n;r++){var i=e[r];if(i.src.indexOf(t)>-1)return!0}return!1},check:function(t){t=t||[];for(var n=t.length;n>0;)if(n--,!e.exist(t[n]))return!1;return!0},exec:function(t,n){e.check(t)&&n&&n()},bind:function(t,n,r,i,o,s){t.onload=function(){e.insert(i,o,s)}}};t.loaderUtils={jsLoader:function(t,n){e.insert(t,n)}}}(gxb.utils),function(t,e){t.objectUtils={clone:e.cloneDeep,forEach:e.forIn,forOwn:e.forOwn,extend:_.extend,isObject:e.isObject,isObjectOnly:function(e){return t.objectUtils.isObject(e)&&!t.langUtils.isFunction(e)},NULL:null,undefined:void 0,isNullOrUndefined:function(t){return"undefined"==typeof t||t===this.NULL},getKeys:e.mapKeys,getValues:e.mapValues}}(gxb.utils,_),function(t){t.pathUtils={concatLocalJSPath:function(t){return gxb.settings.env.getContextPath()+"/js"+t}}}(gxb.utils),function(t,e){t.stringUtils={format:function(t,n){try{return e.template(t)(n)}catch(e){return t}},EMPTY:""}}(gxb.utils,_),function(t){t.urlUtils={resolveUrl:function(e){e=e||"";var n=gxb.settings.server.remoteServer||"",r=0==e.indexOf("/"),i=n.lastIndexOf("/")==n.length-1,o=r||i?"":"/",s="<%= remoteServer %>"+o+"<%= suffix %><%= fixed %>";return t.stringUtils.format(s,{remoteServer:n,suffix:e,fixed:""})},encodeUrl:function(t){return encodeURIComponent(t)},decodeUrl:function(t){return decodeURIComponent(t)},concat:function(){return Array.prototype.slice.call(arguments||[]).join("/")},getHost:function(){return window.location.origin||window.location.protocol+"//"+window.location.host},getCDNFile:function(t){var e=t.substring(t.indexOf("1/")+2,t.indexOf("?"));if(e.lastIndexOf("/")>=0)e=e.substr(e.lastIndexOf("/")+1);else{if(!(t.lastIndexOf("/")>=0))return t;e=t.substr(t.lastIndexOf("/")+1)}return e},getRemoteUrl:function(t){return t?t.substring(0,t.indexOf("?")):""},getCDNFileExtension:function(t){return t.substr(t.lastIndexOf(".")+1)},getCDNFilePath:function(t){if(!t)return"";var e=0===t.indexOf("/")?t:t.substr(t.indexOf("/",t.indexOf("http://")>=0?7:0));return 0===e.indexOf("/")?e.substr(1):e}}}(gxb.utils),function(t){var e="http://stat.gaoxiaobang.com/iclick.gif",n=function(t){return(t=RegExp("(^| )"+t+"=([^;]*)(;|$)").exec(document.cookie))?t[2]:""},r=function(){var t=0,e=0;if(document.all){var n=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");n&&(t=1,VSwf=n.GetVariable("$version"),e=parseInt(VSwf.split(" ")[1].split(",")[0]))}else if(navigator.plugins&&navigator.plugins.length>0){var n=navigator.plugins["Shockwave Flash"];if(n){t=1;for(var r=n.description.split(" "),i=0;i<r.length;++i)isNaN(parseInt(r[i]))||(e=parseInt(r[i]))}}return{f:t,v:e}},i=function(){return{ct:"pc",re:encodeURIComponent(document.referrer),sid:n("GXB_USER_SESSION_ID"),jp:1,ce:navigator.cookieEnabled?1:0,je:navigator.javaEnabled()?1:0,l:navigator.language||navigator.browserLanguage||navigator.systemLanguage||navigator.userLanguage||"",dp:(window.screen.width||0)+"x"+(window.screen.height||0),cd:(window.screen.colorDepth||0)+"-bit",tl:document.title||"",u:encodeURIComponent(document.location.href),tt:(new Date).getTime(),fs:r().f,fv:r().v,uid:window.USERID||"",tid:window.TENANTID||""}},o=function(t){t=t||{};var e="?";for(var n in t)e+=n+"="+t[n]+"&";return e.substring(0,e.length-1)},s=function(t,e){var n=document.createElement("script");n.charset="utf-8",n.readyState?n.onreadystatechange=function(){"loaded"!==n.readyState&&"complete"!==n.readyState||(n.onreadystatechange=null,n.parentNode.removeChild(n))}:n.onload=function(){n.parentNode.removeChild(n)},n.src=t+e;var r=document.getElementsByTagName("script")[0];r.parentNode.insertBefore(n,r)};t.userLogUtils={bindClickEvent:function(){var t=0,n=window.setInterval(function(){5===t&&window.clearInterval(n),t++;$("*[gxb-click-node='true'][gxb-click-type='AD']");$("*[gxb-click-node='true'][gxb-click-type='AD']").unbind("click").click(function(){var t=$(this),n=i();n.catalog="course_click",n.type=t.attr("gxb-data-type")||"",n.classId=t.attr("gxb-data-key")||"",s(e,o(n))})},1e3)}},"undefined"==typeof __GXB_LOGGER&&(__GXB_LOGGER={}),t.userLogUtils.operation={},t.userLogUtils.operation.miniclass={sendMiniClassClickEvent:function(t){__GXB_LOGGER&&__GXB_LOGGER.operation&&__GXB_LOGGER.operation.miniclass&&__GXB_LOGGER.operation.miniclass.sendMiniClassClickEvent(t)}}}(gxb.utils),function(t){t.basePlug=function(){},t.basePlug.prototype.getContext=function(){}}(gxb.plugins),function(t){t.registerNamespace("gxb.plugins.components.log")}(gxb.components),function(t,e){t.components.log.videoLog=function(t){var n=function(t,n){var r=[];this.sendLog=function(){var i=[];for(var o in r){var s=r[o];e.objectUtils.isNullOrUndefined(s.ch)||(s.ch=parseInt(s.ch)),e.objectUtils.isNullOrUndefined(s.mh)||(s.mh=parseInt(s.mh)),e.objectUtils.isNullOrUndefined(s.ph)||(s.ph=parseInt(s.ph)),i.push(s)}i.length&&(t||0===t)&&e.ajaxUtils.doPost({url:"/log/video/"+t+"/"+n,data:{rl:window.location.href,data:e.jsonUtils.toString(i)}}).then(function(){r=[]},function(){})},this.addLog=function(t){r.push(t)}},r=null,i=6e4,o=null,s=function(e){o=t.$interval(function(){r&&r.sendLog()},e||i)},a=function(){t.$interval.cancel(o)};return{init:function(t){return r=r||new n(t.chapterId||0,t.classId||0),s(t.defaultIntervalSeconds),{addLog:function(t){r&&r.addLog(t)},destory:function(){r&&r.sendLog(),r=null,a()}}}}},t.inheritFromPlugin(t.components.log.videoLog),t.registerDependency("gxb.plugins.components.log.videoLog",["$interval"])}(gxb.plugins,gxb.utils),function(t){var e="gxb.plugins",n="",r=[],i=[],o=function(e,n){t.utils.objectUtils.isObjectOnly(e)||(e=r.pop()),r.length&&t.utils.objectUtils.getKeys(e,function(e,s){var a=n+"."+s;t.utils.objectUtils.isObjectOnly(e)?(r.push(e),o(e,a)):t.utils.langUtils.isFunction(e)&&"gxb.plugins.components.pluginComponents"!==a&&(t.plugins.registerPlugin(a,t.plugins.getDependency(a)),i.push(a))})};t.utils.objectUtils.getKeys(t.plugins,function(i,s){t.utils.objectUtils.isObjectOnly(i)&&(n=e+"."+s,r.push(i),o(i,n))}),t.plugins.components.pluginComponents=function(t){return t},t.plugins.registerPlugin("gxb.plugins.components.pluginComponents",i)}(gxb),function(t){var e="gxb.uis",n="",r=[],i=[],o=function(e,n){t.utils.objectUtils.isObjectOnly(e)||(e=r.pop()),r.length&&t.utils.objectUtils.getKeys(e,function(e,s){var a=n+"."+s;t.utils.objectUtils.isObjectOnly(e)?(r.push(e),o(e,a)):t.utils.langUtils.isFunction(e)&&"gxb.uis.components.uiComponents"!==a&&(t.uis.registerUI(a,t.uis.getDependency(a)),i.push(a))})};t.utils.objectUtils.getKeys(t.uis,function(i,s){t.utils.objectUtils.isObjectOnly(i)&&(n=e+"."+s,r.push(i),o(i,n))}),t.uis.components.uiComponents=function(t){return t},t.uis.registerUI("gxb.uis.components.uiComponents",i)}(gxb),function(t,e){t.loader=function(t){e.ajaxUtils.doGet({url:"/getTemplate/"+t+"/api"}).then(function(t){},function(t){})}}(gxb.webparts,gxb.utils);