avalon-rails 1.4.7.1 → 1.5.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/avalon-rails/version.rb +1 -1
- data/vendor/assets/javascripts/avalon.js +3016 -2365
- data/vendor/assets/javascripts/avalon.min.js +3 -3
- data/vendor/assets/javascripts/avalon.mobile.js +3283 -2629
- data/vendor/assets/javascripts/avalon.mobile.min.js +3 -3
- data/vendor/assets/javascripts/avalon.mobile.old.js +349 -374
- data/vendor/assets/javascripts/avalon.mobile.shim.js +3302 -2643
- data/vendor/assets/javascripts/avalon.mobile.shim.min.js +3 -0
- data/vendor/assets/javascripts/avalon.modern.js +2808 -2155
- data/vendor/assets/javascripts/avalon.modern.min.js +3 -2
- data/vendor/assets/javascripts/avalon.modern.shim.js +2816 -2159
- data/vendor/assets/javascripts/avalon.modern.shim.min.js +2 -0
- data/vendor/assets/javascripts/avalon.shim.js +3002 -2325
- data/vendor/assets/javascripts/avalon.shim.min.js +3 -3
- metadata +4 -2
@@ -1,3 +1,3 @@
|
|
1
|
-
!function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("Avalon requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){function n(){e.console&&avalon.config.debug&&Function.apply.call(console.log,console,arguments)}function r(){}function a(e,t){"string"==typeof e&&(e=e.match(Le)||[]);for(var n={},r=void 0!==t?t:1,a=0,i=e.length;i>a;a++)n[e[a]]=r;return n}function i(){if(e.VBArray){var t=document.documentMode;return t?t:e.XMLHttpRequest?7:6}return NaN}function o(e){return Pe.test(Ie.call(e))}function l(e,t){return e=Math.floor(e)||0,0>e?Math.max(t+e,0):Math.min(e,t)}function s(e){if(!e)return!1;var t=e.length;if(t===t>>>0){var n=Ie.call(e).slice(8,-1);if(/(?:regexp|string|function|window|global)$/i.test(n))return!1;if("Array"===n)return!0;try{return{}.propertyIsEnumerable.call(e,"length")===!1?/^\s?function/.test(e.item||e.callee):!0}catch(r){return!e.window}}return!1}function c(e,t,n){var r="for(var "+e+"i=0,n = this.length; i < n; i++){"+t.replace("_","((i in this) && fn.call(scope,this[i],i,this))")+"}"+n;return Function("fn,scope",r)}function u(e,t){try{for(;t=t.parentNode;)if(t===e)return!0;return!1}catch(n){return!1}}function f(){return(new XMLSerializer).serializeToString(this)}function p(e,t){if(e&&e.childNodes)for(var n,r=e.childNodes,a=0;n=r[a++];)if(n.tagName){var i=Ae.createElementNS(lt,n.tagName.toLowerCase());Re.forEach.call(n.attributes,function(e){i.setAttribute(e.name,e.value)}),p(n,i),t.appendChild(i)}}function d(e){var t={};for(var n in e)t[n]=e[n];var r=t.target=e.srcElement;if(0===e.type.indexOf("key"))t.which=null!=e.charCode?e.charCode:e.keyCode;else if(ct.test(e.type)){var a=r.ownerDocument||Ae,i="BackCompat"===a.compatMode?a.body:a.documentElement;t.pageX=e.clientX+(i.scrollLeft>>0)-(i.clientLeft>>0),t.pageY=e.clientY+(i.scrollTop>>0)-(i.clientTop>>0),t.wheelDeltaY=t.wheelDelta,t.wheelDeltaX=0}return t.timeStamp=new Date-0,t.originalEvent=e,t.preventDefault=function(){e.returnValue=!1},t.stopPropagation=function(){e.cancelBubble=!0},t}function v(e){for(var t in e)if(Be.call(e,t)){var n=e[t];"function"==typeof v.plugins[t]?v.plugins[t](n):"object"==typeof v[t]?avalon.mix(v[t],n):v[t]=n}return this}function h(e){return(e+"").replace(yt,"\\$&")}function m(e,t,n){if(Array.isArray(e)){var r=e.concat();e.length=0;var a=_(e);return a.pushArray(r),a}if(!e||e.$id&&e.$events||e.nodeType>0&&e.nodeName)return e;var i=Array.isArray(e.$skipArray)?e.$skipArray:[];i.$special=t||{};var o={};n=n||{};var l={},s={},c=[];Tt.forEach(function(t){delete e[t]});var u=Object.keys(e);u.forEach(function(t,r){var a=e[t];if(n[t]=a,T(t,a,i)){l[t]=[];var o=avalon.type(a);"object"===o&&Je(a.get)&&Object.keys(a).length<=2?(r=b(t,a),c.push(r)):r=He.test(o)?x(t,a,o,l[t],n):y(t,a),s[t]=r}}),o=_t(o,Nt(s),e);for(var f=0;f<u.length;f++){var p=u[f];s[p]||(o[p]=e[p])}g(o,"$id",qe()),g(o,"$model",n),g(o,"$events",l),kt?g(o,"hasOwnProperty",function(e){return e in o.$model}):o.hasOwnProperty=function(e){return e in o.$model&&"hasOwnProperty"!==e};for(f in $t)g(o,f,$t[f].bind(o));return o.$reinitialize=function(){c.forEach(function(e){delete e._value,delete e.oldArgs,e.digest=function(){e.call(o)},Lt.begin({callback:function(t,n){var r=n._name;if(n!==e){var a=t.$events[r];N(a,e.digest)}}});try{e.get.call(o)}finally{Lt.end()}})},o.$reinitialize(),o}function g(e,t,n){kt?Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!1,configurable:!0}):e[t]=n}function y(e,t){function n(e){var t=n._value;return arguments.length>0?(je||Ot(e,t)||(n.updateValue(this,e),n.notify(this,e,t)),this):(Lt.collectDependency(this,n),t)}return C(n,e),n._value=t,n}function b(e,t){function n(t){var r=n._value,a="_value"in n;if(arguments.length>0){if(je)return this;if("function"==typeof n.set&&n.oldArgs!==t){n.oldArgs=t;var i=this.$events,o=i[e];i[e]=[],n.set.call(this,t),i[e]=o,t=n.get.call(this),t!==r&&(n.updateValue(this,t),n.notify(this,t,r))}return this}return t=n.get.call(this),n.updateValue(this,t),a&&r!==t&&n.notify(this,t,r),t}return n.set=t.set,n.get=t.get,C(n,e),n}function x(e,t,n,r,a){function i(t){var r=i._value,a=i._vmodel;if(arguments.length>0){if(je)return this;if("array"===n){var o=a,l=t,s=o.length,c=l.length;o.$lock=!0,s>c?o.splice(c,s-c):c>s&&o.push.apply(o,l.slice(s));for(var u=Math.min(s,c),f=0;u>f;f++)o.set(f,l[f]);delete o.$lock,o._fire("set")}else if("object"===n){t=t.$model?t.$model:t;var p=this.$events[e]||[],d=avalon.mix(!0,{},t);for(f in a)a.hasOwnProperty(f)&&Be.call(d,f)&&(a[f]=d[f]);a=i._vmodel=m(t),a.$events[Se]=p,p.length&&p.forEach(function(e){e.type&&(e.rollback&&e.rollback(),Qe[e.type](e,e.vmodels))})}return i.updateValue(this,a.$model),i.notify(this,this._value,r),this}return Lt.collectDependency(this,i),a}C(i,e),Array.isArray(t)?a[e]=t:a[e]=a[e]||{};var o=i._vmodel=m(t,0,a[e]);return o.$events[Se]=r,i}function w(e,t){e.$model[this._name]=this._value=t}function $(e,t,n){var r=this._name,a=e.$events[r];a&&(M(a),$t.$fire.call(e,r,t,n))}function C(e,t){e._name=t,e.updateValue=w,e.notify=$}function T(e,t,n){if(Je(t)||t&&t.nodeName&&t.nodeType>0)return!1;if(-1!==n.indexOf(e))return!1;var r=n.$special;return e&&"$"===e.charAt(0)&&!r[e]?!1:!0}function E(e){for(var t=Object.keys(e.$model?e.$model:e),n=0;n<Tt.length;n++){var r=t.indexOf(Tt[n]);-1!==r&&t.splice(r,1)}return t}function k(e,t,n,r){var a=t[n];return 4!==arguments.length?a.call(e):void a.call(e,r)}function _(e){var t=[];t.$id=qe(),t.$model=e,t.$events={},t.$events[Se]=[],t._=m({length:e.length}),t._.$watch("length",function(e,n){t.$fire("length",e,n)});for(var n in $t)t[n]=$t[n];return avalon.mix(t,jt),t}function A(e,t,n,r,a,i,o){for(var l=this.length,s=2;--s;){switch(e){case"add":var c=this.$model.slice(t,t+n).map(function(e){return He.test(avalon.type(e))?e.$id?e:m(e,0,e):e});St.apply(this,[t,0].concat(c)),this._fire("add",t,n);break;case"del":var u=this._splice(t,n);this._fire("del",t,n)}a&&(e=a,t=i,n=o,s=2,a=0)}return this._fire("index",r),this.length!==l&&(this._.length=this.length),u}function O(e,t){for(var n={},r=0,a=t.length;a>r;r++){n[r]=e[r];var i=t[r];i in n?(e[r]=n[i],delete n[i]):e[r]=e[i]}}function N(e,t){t.oneTime||e&&avalon.Array.ensure(e,t)&&t.element&&(j(t,e),new Date-Ft>444&&L())}function M(e){if(e&&e.length){new Date-Ft>444&&"object"==typeof e[0]&&L();for(var t,n=Ve.call(arguments,1),r=e.length;t=e[--r];){var a=t.element;if(a&&a.parentNode)try{var i=t.evaluator;if(t.$repeat)t.handler.apply(t,n);else if("$repeat"in t||!i)Qe[t.type](t,t.vmodels);else if("on"!==t.type){var o=i.apply(0,t.args||[]);t.handler(o,a,t)}}catch(l){console.log(l)}}}}function S(e,t){return e.uuid||t||(e.uuid=++Dt),e.uuid}function j(e,t){var n=e.element;e.uuid||(1!==n.nodeType?e.uuid=e.type+S(n.parentNode)+"-"+ ++Dt:e.uuid=e.name+"-"+S(n));var r=e.lists||(e.lists=[]);avalon.Array.ensure(r,t),t.$uuid=t.$uuid||qe(),Pt[e.uuid]||(Pt[e.uuid]=1,Pt.push(e))}function L(e){if(!avalon.optimize){for(var t=Pt.length,n=t,r=[],a={},i={};e=Pt[--t];){var o=e.type;i[o]?i[o]++:(i[o]=1,r.push(o))}var l=!1;if(r.forEach(function(e){Bt[e]!==i[e]&&(a[e]=1,l=!0)}),t=n,l)for(;e=Pt[--t];)if(null!==e.element){if(a[e.type]&&D(e.element)){Pt.splice(t,1),delete Pt[e.uuid];for(var s,c=e.lists,u=0;s=c[u++];)avalon.Array.remove(c,s),avalon.Array.remove(s,e);H(e)}}else Pt.splice(t,1);Bt=i,Ft=new Date}}function H(e){delete Pt[e.uuid],e.element=null,e.rollback&&e.rollback();for(var t in e)e[t]=null}function D(e){try{e.parentNode.nodeType}catch(t){return!0}return e.ifRemove&&!We.contains(e.ifRemove)&&Ne===e.parentNode?(e.parentNode&&e.parentNode.removeChild(e),!0):e.msRetain?0:1===e.nodeType?!We.contains(e):!avalon.contains(We,e)}function P(e){var t=e.nodeName;return t.toLowerCase()===t&&e.scopeName&&""===e.outerText}function F(e){"url(#default#VML)"!==e.currentStyle.behavior&&(e.style.behavior="url(#default#VML)",e.style.display="inline-block",e.style.zoom=1)}function B(e){return e.replace(/([a-z\d])([A-Z]+)/g,"$1-$2").toLowerCase()}function I(e){return!e||e.indexOf("-")<0&&e.indexOf("_")<0?e:e.replace(/[-_][^-_]/g,function(e){return e.charAt(1).toUpperCase()})}function R(e){if(!("classList"in e)){e.classList={node:e};for(var t in qt)e.classList[t.slice(1)]=qt[t]}return e.classList}function V(e){try{if("object"==typeof e)return e;e="true"===e?!0:"false"===e?!1:"null"===e?null:+e+""===e?+e:Ut.test(e)?avalon.parseJSON(e):e}catch(t){}return e}function z(e){return e.window&&e.document?e:9===e.nodeType?e.defaultView||e.parentWindow:!1}function W(e,t){if(e.offsetWidth<=0){if(fn.test(en["@:get"](e,"display"))){var n={node:e};for(var r in un)n[r]=e.style[r],e.style[r]=un[r];t.push(n)}var a=e.parentNode;a&&1===a.nodeType&&W(a,t)}}function X(e){var t=e.tagName.toLowerCase();return"input"===t&&/checkbox|radio/.test(e.type)?"checked":t}function Y(e,t,n,r){for(var a,i=[],o=" = "+n+".",l=e.length;a=e[--l];)t.hasOwnProperty(a)&&(i.push(a+o+a),r.vars.push(a),"duplex"===r.type&&(e.get=n+"."+a),e.splice(l,1));return i}function G(e){for(var t=[],n={},r=0;r<e.length;r++){var a=e[r],i=a&&"string"==typeof a.$id?a.$id:a;n[i]||(n[i]=t.push(a))}return t}function q(e,t){return t=t.replace(_n,"").replace(An,function(){return"],|"}).replace(On,function(e,t){return"["+hn(t)}).replace(Nn,function(){return'"],["'}).replace(Mn,function(){return'",'})+"]","return this.filters.$filter("+e+", "+t+")"}function U(e,t,a){var i=a.type,o=a.filters||"",l=t.map(function(e){return String(e.$id).replace(kn,"$1")})+e+i+o,s=Cn(e).concat(),c=[],u=[],f=[],p="";t=G(t),a.vars=[];for(var d=0,v=t.length;v>d;d++)if(s.length){var h="vm"+_e+"_"+d;u.push(h),f.push(t[d]),c.push.apply(c,Y(s,t[d],h,a))}if(c.length||"duplex"!==i){"duplex"!==i&&(e.indexOf("||")>-1||e.indexOf("&&")>-1)&&a.vars.forEach(function(t){var n=new RegExp("\\b"+t+"(?:\\.\\w+|\\[\\w+\\])+","ig");e=e.replace(n,function(n,r){var a=n.charAt(t.length),i=e.slice(r+n.length),o=/^\s*\(/.test(i);if("."===a||"["===a||o){var l="var"+String(Math.random()).replace(/^0\./,"");if(o){var s=n.split(".");if(s.length>2){var u=s.pop();return c.push(l+" = "+s.join(".")),l+"."+u}return n}return c.push(l+" = "+n),l}return n})}),a.args=f,delete a.vars;var m=Tn.get(l);if(m)return void(a.evaluator=m);if(p=c.join(", "),p&&(p="var "+p),/\S/.test(o)){if(!/text|html/.test(a.type))throw Error("ms-"+a.type+"不支持过滤器");e="\nvar ret"+_e+" = "+e+";\r\n",e+=q("ret"+_e,o);try{m=Function.apply(r,u.concat("'use strict';\n"+p+e)),a.evaluator=Tn.put(l,function(){return m.apply(avalon,arguments)})}catch(g){n("debug: parse error,"+g.message)}return void(s=c=u=null)}if("duplex"===i){var y="'use strict';\nreturn function(vvv){\n "+p+";\n if(!arguments.length){\n return "+e+"\n }\n "+(En.test(e)?e:s.get)+"= vvv;\n} ";try{m=Function.apply(r,u.concat(y)),a.evaluator=Tn.put(l,m)}catch(g){n("debug: parse error,"+g.message)}return void(s=c=u=null)}if("on"===i){-1===e.indexOf("(")?e+=".call(this, $event)":e=e.replace("(",".call(this,"),u.push("$event"),e="\nreturn "+e+";";var b=e.lastIndexOf("\nreturn"),x=e.slice(0,b),w=e.slice(b);e=x+"\n"+w}else e="\nreturn "+e+";";try{m=Function.apply(r,u.concat("'use strict';\n"+p+e)),a.evaluator=Tn.put(l,m)}catch(g){n("debug: parse error,"+g.message)}s=c=u=null}}function J(e){var t=ht.test(e);if(t){var n=le(e);return 1===n.length?n[0].value:n.map(function(e){return e.expr?"("+e.value+")":hn(e.value)}).join(" + ")}return e}function Z(e,t,n,r){e=e||"",U(e,t,n),n.evaluator&&!r&&(n.handler=et[n.handlerName||n.type],avalon.injectBinding(n))}function K(e,t,n){var r=setTimeout(function(){var a=e.innerHTML;clearTimeout(r),a===n?t():K(e,t,a)})}function Q(e,t){var n=e.getAttribute("avalonctrl")||t.$id;e.setAttribute("avalonctrl",n),t.$events.expr=e.tagName+'[avalonctrl="'+n+'"]'}function ee(e,t){for(var n,r=0;n=e[r++];)n.vmodels=t,Qe[n.type](n,t),n.evaluator&&n.element&&1===n.element.nodeType&&n.element.removeAttribute(n.name);e.length=0}function te(e,t){return e.priority-t.priority}function ne(e,t,r){var a=!0;if(t.length){for(var i,o=Gn?Gn(e):e.attributes,l=[],s=[],c={},u={},f=0;i=o[f++];)if(i.specified&&(r=i.name.match(Dn))){var p=r[1],d=r[2]||"",v=i.value,h=i.name;if(u[h])continue;if(u[h]=1,Fn[p]?(d=p,p="on"):Bn[p]&&("enabled"===p&&(n("warning!ms-enabled或ms-attr-enabled已经被废弃"),p="disabled",v="!("+v+")"),d=p,p="attr",h="ms-"+p+"-"+d,s.push([i.name,h,v])),c[h]=v,"function"==typeof Qe[p]){var m=v.replace(Hn,""),g=v!==m,y={type:p,param:d,element:e,name:h,value:m,oneTime:g,uuid:h+"-"+S(e),priority:(Pn[p]||10*p.charCodeAt(0))+(Number(d.replace(/\D/g,""))||0)};if("html"===p||"text"===p){var b=oe(v);avalon.mix(y,b),y.filters=y.filters.replace(qn,function(){return y.type="html",y.group=1,""})}else if("duplex"===p)var x=h;else"ms-if-loop"===h&&(y.priority+=100);l.push(y),"widget"===p&&(e.msData=e.msData||c)}}if(l.length){for(l.sort(te),s.forEach(function(t){n("warning!请改用"+t[1]+"代替"+t[0]+"!"),e.removeAttribute(t[0]),e.setAttribute(t[1],t[2])}),x&&c["ms-attr-value"]&&!e.scopeName&&"text"===e.type&&n("warning!一个控件不能同时定义ms-attr-value与"+x),f=0;y=l[f];f++){if(p=y.type,In.test(p))return ee(l.slice(0,f+1),t);a&&(a=!Rn.test(p))}ee(l,t)}}a&&!Sn[e.tagName]&>.test(e.innerHTML.replace(Jn,"<").replace(Zn,">"))&&(Ln&&Ln(e),re(e,t))}function re(e,t){var n=avalon.slice(e.childNodes);ae(n,t)}function ae(e,t){for(var n,r=0;n=e[r++];)switch(n.nodeType){case 1:ie(n,t),n.msCallback&&(n.msCallback(),n.msCallback=void 0);break;case 3:ht.test(n.nodeValue)&&se(n,t,r)}}function ie(e,t,r){var a=e.getAttribute("ms-skip");if(!e.getAttributeNode)return n("warning "+e.tagName+" no getAttributeNode method");var i=e.getAttributeNode("ms-important"),o=e.getAttributeNode("ms-controller");if("string"!=typeof a){if(r=i||o){var l=avalon.vmodels[r.value];if(!l)return;t=r===i?[l]:[l].concat(t);var s=r.name;e.removeAttribute(s),avalon(e).removeClass(s),Q(e,l)}ne(e,t)}}function oe(e){if(e.indexOf("|")>0){var t=e.replace(Kn,function(e){return Array(e.length+1).join("1")}),n=t.replace(Un,"ᄢ㍄").indexOf("|");if(n>-1)return{filters:e.slice(n),value:e.slice(0,n),expr:!0}}return{value:e,filters:"",expr:!0}}function le(e){for(var t,n,r=[],a=0;;){if(n=e.indexOf(dt,a),-1===n)break;if(t=e.slice(a,n),t&&r.push({value:t,filters:"",expr:!1}),a=n+dt.length,n=e.indexOf(vt,a),-1===n)break;t=e.slice(a,n),t&&r.push(oe(t)),a=n+vt.length}return t=e.slice(a),t&&r.push({value:t,expr:!1,filters:""}),r}function se(e,t){var n=[],r=le(e.data);if(r.length){for(var a,i=0;a=r[i++];){var o=Ae.createTextNode(a.value);a.expr&&(a.value=a.value.replace(Hn,function(){return a.oneTime=!0,""}),a.type="text",a.element=o,a.filters=a.filters.replace(qn,function(e,t,n){return a.type="html",""}),n.push(a)),Xe.appendChild(o)}e.parentNode.replaceChild(Xe,e),n.length&&ee(n,t)}}function ce(e,t,n){var r=e.templateCache&&e.templateCache[t];if(r){for(var a,i=Ae.createDocumentFragment();a=r.firstChild;)i.appendChild(a);return i}return avalon.parseHTML(n)}function ue(e){return null==e?"":e}function fe(e,t,n,r){return t.param.replace(/\w+/g,function(r){var a=avalon.duplexHooks[r];a&&"function"==typeof a[n]&&(e=a[n](e,t))}),e}function pe(){for(var e=cr.length-1;e>=0;e--){var t=cr[e];t()===!1&&cr.splice(e,1)}cr.length||clearInterval(sr)}function de(e){var t=NaN,n=NaN;if(e.setSelectionRange)t=e.selectionStart,n=e.selectionEnd;else{var r=document.selection.createRange();t=0-r.duplicate().moveStart("character",-1e5),n=t+r.text.length}return{start:t,end:n}}function ve(e,t,n){if(e.value&&!e.readOnly)if(e.createTextRange){var r=e.createTextRange();r.collapse(!0),r.moveStart("character",t),r.select()}else e.selectionStart=t,e.selectionEnd=n}function he(e,t,n,r){var a=e.template.cloneNode(!0),i=avalon.slice(a.childNodes);a.insertBefore(Ae.createComment(e.signature),a.firstChild),t.appendChild(a);var o=[n].concat(e.vmodels),l={nodes:i,vmodels:o};r.push(l)}function me(e){for(var t,n=[],r=e.element.parentNode.childNodes,a=0;t=r[a++];)if(t.nodeValue===e.signature)n.push(t);else if(t.nodeValue===e.signature+":end")break;return n}function ge(e,t,n){for(;;){var r=t.previousSibling;if(!r)break;if(r.parentNode.removeChild(r),n&&n.call(r),r===e)break}}function ye(){var e=m({$key:"",$outer:{},$host:{},$val:{get:function(){return this.$host[this.$key]},set:function(e){this.$host[this.$key]=e}}},{$val:1});return e.$id=qe("$proxy$with"),e}function be(e,t,n){e=e||dr.pop(),e?e.$reinitialize():e=ye();var r=n.$repeat;return e.$key=t,e.$host=r,e.$outer=n.$outer,r.$events?e.$events.$val=r.$events[t]:e.$events={},e}function xe(e){we(e)}function we(e){e.forEach(function(e){Te(e,vr)}),e.length=0}function $e(e){var t={$host:[],$outer:{},$index:0,$first:!1,$last:!1,$remove:avalon.noop};t[e]={get:function(){var t=this.$events,n=t.$index;t.$index=t[e];try{return this.$host[this.$index]}finally{t.$index=n}},set:function(e){try{var t=this.$events,n=t.$index;t.$index=[],this.$host.set(this.$index,e)}finally{t.$index=n}}};var n={$last:1,$first:1,$index:1},r=m(t,n);return r.$id=qe("$proxy$each"),r}function Ce(e,t){for(var n,r=t.param||"el",a=0,i=vr.length;i>a;a++){var o=vr[a];o&&o.hasOwnProperty(r)&&(n=o,vr.splice(a,1))}n||(n=$e(r));var l=t.$repeat,s=l.length-1;return n.$index=e,n.$first=0===e,n.$last=e===s,n.$host=l,n.$outer=t.$outer,n.$remove=function(){return l.removeAt(n.$index)},n}function Te(e,t){for(var n in e.$events){var r=e.$events[n];Array.isArray(r)&&(r.forEach(function(e){"object"==typeof e&&H(e)}),r.length=0)}e.$host=e.$outer={},t.unshift(e)>v.maxRepeatSize&&t.pop()}function Ee(e,t){var n="_"+e;if(!Ee[n]){var r=Ae.createElement(e);We.appendChild(r),t=ze?getComputedStyle(r,null).display:r.currentStyle.display,We.removeChild(r),Ee[n]=t}return Ee[n]}function ke(e,t,n,r){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var a=isFinite(+e)?+e:0,i=isFinite(+t)?Math.abs(t):3,o=r||",",l=n||".",s="",c=function(e,t){var n=Math.pow(10,t);return""+(Math.round(e*n)/n).toFixed(t)};return s=(i?c(a,i):""+Math.round(a)).split("."),s[0].length>3&&(s[0]=s[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,o)),(s[1]||"").length<i&&(s[1]=s[1]||"",s[1]+=new Array(i-s[1].length+1).join("0")),s.join(l)}var _e=new Date-0,Ae=e.document,Oe=Ae.getElementsByTagName("head")[0],Ne=Oe.insertBefore(document.createElement("avalon"),Oe.firstChild);Ne.innerHTML="X<style id='avalonStyle'>.avalonHide{ display: none!important }</style>",Ne.setAttribute("ms-skip","1"),Ne.className="avalonHide";var Me=/\[native code\]/,Se="$"+_e,je=!1,Le=/[^, ]+/g,He=/^(?:object|array)$/,De=/^\[object SVG\w*Element\]$/,Pe=/^\[object (?:Window|DOMWindow|global)\]$/,Fe=Object.prototype,Be=Fe.hasOwnProperty,Ie=Fe.toString,Re=Array.prototype,Ve=Re.slice,ze=e.dispatchEvent,We=Ae.documentElement,Xe=Ae.createDocumentFragment(),Ye=Ae.createElement("div"),Ge={};"Boolean Number String Function Array Date RegExp Object Error".replace(Le,function(e){Ge["[object "+e+"]"]=e.toLowerCase()});var qe=function(e){return e=e||"avalon",String(Math.random()+Math.random()).replace(/\d\.\d{4}/,e)},Ue=i();avalon=function(e){return new avalon.init(e)},avalon.profile=function(){e.console&&avalon.config.profile&&Function.apply.call(console.log,console,arguments)},avalon.nextTick=new function(){function t(){for(var e=a.length,t=0;e>t;t++)a[t]();a=a.slice(e)}var n=e.setImmediate,r=e.MutationObserver;if(n)return n.bind(e);var a=[];if(r){var i=document.createTextNode("avalon");return new r(t).observe(i,{characterData:!0}),function(e){a.push(e),i.data=Math.random()}}return e.VBArray?function(e){a.push(e);var n=Ae.createElement("script");n.onreadystatechange=function(){t(),n.onreadystatechange=null,Oe.removeChild(n),n=null},Oe.appendChild(n)}:function(e){setTimeout(e,4)}},avalon.init=function(e){this[0]=this.element=e},avalon.fn=avalon.prototype=avalon.init.prototype,avalon.type=function(e){return null==e?String(e):"object"==typeof e||"function"==typeof e?Ge[Ie.call(e)]||"object":typeof e};var Je="object"==typeof alert?function(e){try{return/^\s*\bfunction\b/.test(e+"")}catch(t){return!1}}:function(e){return"[object Function]"===Ie.call(e)};avalon.isFunction=Je,avalon.isWindow=function(e){return e?e==e.document&&e.document!=e:!1},o(e)&&(avalon.isWindow=o);var Ze;for(Ze in avalon({}))break;var Ke="0"!==Ze;avalon.isPlainObject=function(e,t){if(!e||"object"!==avalon.type(e)||e.nodeType||avalon.isWindow(e))return!1;try{if(e.constructor&&!Be.call(e,"constructor")&&!Be.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}if(Ke)for(t in e)return Be.call(e,t);for(t in e);return void 0===t||Be.call(e,t)},Me.test(Object.getPrototypeOf)&&(avalon.isPlainObject=function(e){return"[object Object]"===Ie.call(e)&&Object.getPrototypeOf(e)===Fe}),avalon.mix=avalon.fn.mix=function(){var e,t,n,r,a,i,o=arguments[0]||{},l=1,s=arguments.length,c=!1;for("boolean"==typeof o&&(c=o,o=arguments[1]||{},l++),"object"==typeof o||Je(o)||(o={}),l===s&&(o=this,l--);s>l;l++)if(null!=(e=arguments[l]))for(t in e){n=o[t];try{r=e[t]}catch(u){continue}o!==r&&(c&&r&&(avalon.isPlainObject(r)||(a=Array.isArray(r)))?(a?(a=!1,i=n&&Array.isArray(n)?n:[]):i=n&&avalon.isPlainObject(n)?n:{},o[t]=avalon.mix(c,i,r)):void 0!==r&&(o[t]=r))}return o},avalon.mix({rword:Le,subscribers:Se,version:1.471,ui:{},log:n,slice:ze?function(e,t,n){return Ve.call(e,t,n)}:function(e,t,n){var r=[],a=e.length;if(void 0===n&&(n=a),"number"==typeof n&&isFinite(n)){t=l(t,a),n=l(n,a);for(var i=t;n>i;++i)r[i-t]=e[i]}return r},noop:r,error:function(e,t){throw(t||Error)(e)},oneObject:a,range:function(e,t,n){n||(n=1),null==t&&(t=e||0,e=0);for(var r=-1,a=Math.max(0,Math.ceil((t-e)/n)),i=new Array(a);++r<a;)i[r]=e,e+=n;return i},eventHooks:[],bind:function(e,t,n,r){var a=avalon.eventHooks,i=a[t];"object"==typeof i&&(t=i.type||t,r=i.phase||!!r,n=i.fn?i.fn(e,n):n);var o=ze?n:function(t){n.call(e,d(t))};return ze?e.addEventListener(t,o,r):e.attachEvent("on"+t,o),o},unbind:function(e,t,n,a){var i=avalon.eventHooks,o=i[t],l=n||r;"object"==typeof o&&(t=o.type||t,a=o.phase||!!a),ze?e.removeEventListener(t,l,a):e.detachEvent("on"+t,l)},css:function(e,t,n){e instanceof avalon&&(e=e[0]);var r,a=/[_-]/.test(t)?I(t):t;if(t=avalon.cssName(a)||a,void 0===n||"boolean"==typeof n){r=en[a+":get"]||en["@:get"],"background"===t&&(t="backgroundColor");var i=r(e,t);return n===!0?parseFloat(i)||0:i}if(""===n)e.style[t]="";else{if(null==n||n!==n)return;isFinite(n)&&!avalon.cssNumber[a]&&(n+="px"),r=en[a+":set"]||en["@:set"],r(e,t,n)}},each:function(e,t){if(e){var n=0;if(s(e))for(var r=e.length;r>n&&t(n,e[n])!==!1;n++);else for(n in e)if(e.hasOwnProperty(n)&&t(n,e[n])===!1)break}},getWidgetData:function(e,t){var n=avalon(e).data(),r={};for(var a in n)0===a.indexOf(t)&&(r[a.replace(t,"").replace(/\w/,function(e){return e.toLowerCase()})]=n[a]);return r},Array:{ensure:function(e,t){return-1===e.indexOf(t)?e.push(t):void 0},removeAt:function(e,t){return!!e.splice(t,1).length},remove:function(e,t){var n=e.indexOf(t);return~n?avalon.Array.removeAt(e,n):!1}}});var Qe=avalon.bindingHandlers={},et=avalon.bindingExecutors={},tt=new function(){function e(e){this.size=0,this.limit=e,this.head=this.tail=void 0,this._keymap={}}var t=e.prototype;return t.put=function(e,t){var n={key:e,value:t};return this._keymap[e]=n,this.tail?(this.tail.newer=n,n.older=this.tail):this.head=n,this.tail=n,this.size===this.limit?this.shift():this.size++,t},t.shift=function(){var e=this.head;e&&(this.head=this.head.newer,this.head.older=e.newer=e.older=this._keymap[e.key]=void 0,delete this._keymap[e.key])},t.get=function(e){var t=this._keymap[e];if(void 0!==t)return t===this.tail?t.value:(t.newer&&(t===this.head&&(this.head=t.newer),t.newer.older=t.older),t.older&&(t.older.newer=t.newer),t.newer=void 0,t.older=this.tail,this.tail&&(this.tail.newer=t),this.tail=t,t.value)},e};if(!"司徒正美".trim){var nt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;String.prototype.trim=function(){return this.replace(nt,"")}}var rt=!{toString:null}.propertyIsEnumerable("toString"),at=function(){}.propertyIsEnumerable("prototype"),it=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],ot=it.length;if(Object.keys||(Object.keys=function(e){var t=[],n=at&&"function"==typeof e;if("string"==typeof e||e&&e.callee)for(var r=0;r<e.length;++r)t.push(String(r));else for(var a in e)n&&"prototype"===a||!Be.call(e,a)||t.push(String(a));if(rt)for(var i=e.constructor,o=i&&i.prototype===e,l=0;ot>l;l++){var s=it[l];o&&"constructor"===s||!Be.call(e,s)||t.push(s)}return t}),Array.isArray||(Array.isArray=function(e){return"[object Array]"===Ie.call(e)}),r.bind||(Function.prototype.bind=function(e){if(arguments.length<2&&void 0===e)return this;var t=this,n=arguments;return function(){var r,a=[];for(r=1;r<n.length;r++)a.push(n[r]);for(r=0;r<arguments.length;r++)a.push(arguments[r]);return t.apply(e,a)}}),Me.test([].map)||avalon.mix(Re,{indexOf:function(e,t){var n=this.length,r=~~t;for(0>r&&(r+=n);n>r;r++)if(this[r]===e)return r;return-1},lastIndexOf:function(e,t){var n=this.length,r=null==t?n-1:t;for(0>r&&(r=Math.max(0,n+r));r>=0;r--)if(this[r]===e)return r;return-1},forEach:c("","_",""),filter:c("r=[],j=0,","if(_)r[j++]=this[i]","return r"),map:c("r=[],","r[i]=_","return r"),some:c("","if(_)return true","return false"),every:c("","if(!_)return false","return true")}),avalon.contains=u,Ae.contains||(Ae.contains=function(e){return u(Ae,e)}),e.SVGElement){Ae.createTextNode("x").contains||(Node.prototype.contains=function(e){return!!(16&this.compareDocumentPosition(e))});var lt="http://www.w3.org/2000/svg",st=Ae.createElementNS(lt,"svg");st.innerHTML='<circle cx="50" cy="50" r="40" fill="red" />',De.test(st.firstChild)||Object.defineProperties(SVGElement.prototype,{outerHTML:{enumerable:!0,configurable:!0,get:f,set:function(e){var t=this.tagName.toLowerCase(),n=this.parentNode,r=avalon.parseHTML(e);if("svg"===t)n.insertBefore(r,this);else{var a=Ae.createDocumentFragment();p(r,a),n.insertBefore(a,this)}n.removeChild(this)}},innerHTML:{enumerable:!0,configurable:!0,get:function(){var e=this.outerHTML,t=new RegExp("<"+this.nodeName+'\\b(?:(["\'])[^"]*?(\\1)|[^>])*>',"i"),n=new RegExp("</"+this.nodeName+">$","i");return e.replace(t,"").replace(n,"")},set:function(e){if(avalon.clearHTML){avalon.clearHTML(this);var t=avalon.parseHTML(e);p(t,this)}}}})}!We.outerHTML&&e.HTMLElement&&HTMLElement.prototype.__defineGetter__("outerHTML",f);var ct=/^(?:mouse|contextmenu|drag)|click/,ut=avalon.eventHooks;if("onmouseenter"in We||avalon.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){ut[e]={type:t,fn:function(t,n){return function(r){var a=r.relatedTarget;return a&&(a===t||16&t.compareDocumentPosition(a))?void 0:(delete r.type,r.type=e,n.call(t,r))}}}}),avalon.each({AnimationEvent:"animationend",WebKitAnimationEvent:"webkitAnimationEnd"},function(t,n){e[t]&&!ut.animationend&&(ut.animationend={type:n})}),"oninput"in Ae.createElement("input")||(ut.input={type:"propertychange",fn:function(e,t){return function(n){return"value"===n.propertyName?(n.type="input",t.call(e,n)):void 0}}}),void 0===Ae.onmousewheel){var ft=void 0!==Ae.onwheel?"wheel":"DOMMouseScroll",pt="wheel"===ft?"deltaY":"detail";ut.mousewheel={type:ft,fn:function(e,t){return function(n){n.wheelDeltaY=n.wheelDelta=n[pt]>0?-120:120,n.wheelDeltaX=0,Object.defineProperty&&Object.defineProperty(n,"type",{value:"mousewheel"}),t.call(e,n)}}}}var dt,vt,ht,mt,gt,yt=/[-.*+?^${}()|[\]\/\\]/g,bt={interpolate:function(e){if(dt=e[0],vt=e[1],dt===vt)throw new SyntaxError("openTag===closeTag");var t=dt+"test"+vt;if(Ye.innerHTML=t,Ye.innerHTML!==t&&Ye.innerHTML.indexOf("<")>-1)throw new SyntaxError("此定界符不合法");v.openTag=dt,v.closeTag=vt,Ye.innerHTML="";var n=h(dt),r=h(vt);ht=new RegExp(n+"(.*?)"+r),mt=new RegExp(n+"(.*?)"+r,"g"),gt=new RegExp(n+".*?"+r+"|\\sms-")}};v.debug=!0,v.plugins=bt,v.plugins.interpolate(["{{","}}"]),v.paths={},v.shim={},v.maxRepeatSize=100,avalon.config=v;var xt=/(\w+)\[(avalonctrl)="(\S+)"\]/,wt=Ae.querySelectorAll?function(e){return Ae.querySelectorAll(e)}:function(e){for(var t,n=e.match(xt),r=Ae.getElementsByTagName(n[1]),a=[],i=0;t=r[i++];)t.getAttribute(n[2])===n[3]&&a.push(t);return a},$t={$watch:function(e,t){if("function"==typeof t){var n=this.$events[e];n?n.push(t):this.$events[e]=[t]}else this.$events=this.$watch.backup;return this},$unwatch:function(e,t){var n=arguments.length;if(0===n)this.$watch.backup=this.$events,this.$events={};else if(1===n)this.$events[e]=[];else for(var r=this.$events[e]||[],a=r.length;~--a<0;)if(r[a]===t)return r.splice(a,1);return this},$fire:function(e){var t,n,r,a;/^(\w+)!(\S+)$/.test(e)&&(t=RegExp.$1,e=RegExp.$2);var i=this.$events;if(i){var o=Ve.call(arguments,1),l=[e].concat(o);if("all"===t)for(n in avalon.vmodels)r=avalon.vmodels[n],r!==this&&r.$fire.apply(r,l);else if("up"===t||"down"===t){var s=i.expr?wt(i.expr):[];if(0===s.length)return;for(n in avalon.vmodels)if(r=avalon.vmodels[n],r!==this&&r.$events.expr){var c=wt(r.$events.expr);if(0===c.length)continue;Re.forEach.call(c,function(e){Re.forEach.call(s,function(n){var a="down"===t?n.contains(e):e.contains(n);a&&(e._avalon=r)})})}var u=Ae.getElementsByTagName("*"),f=[];for(Re.forEach.call(u,function(e){e._avalon&&(f.push(e._avalon),e._avalon="",e.removeAttribute("_avalon"))}),"up"===t&&f.reverse(),n=0;(a=f[n++])&&a.$fire.apply(a,l)!==!1;);}else{var p=i[e]||[],d=i.$all||[];for(n=0;a=p[n++];)Je(a)&&a.apply(this,o);for(n=0;a=d[n++];)Je(a)&&a.apply(this,arguments)}}}},Ct=avalon.vmodels={};avalon.define=function(e,t){var a=e.$id||e;if(a||n("warning: vm必须指定$id"),Ct[a]&&n("warning: "+a+" 已经存在于avalon.vmodels中"),"object"==typeof e)var i=m(e);else{var o={$watch:r};t(o),i=m(o),je=!0,t(i),je=!1}return i.$id=a,Ct[a]=i};var Tt=String("$id,$watch,$unwatch,$fire,$events,$model,$skipArray,$reinitialize").match(Le),Et=Object.defineProperty,kt=!0;try{Et({},"_",{value:"x"});var _t=Object.defineProperties}catch(At){kt=!1}var Ot=Object.is||function(e,t){return 0===e&&0===t?1/e===1/t:e!==e?t!==t:e===t},Nt=ze?function(e){var t={};for(var n in e)t[n]={get:e[n],set:e[n],enumerable:!0,configurable:!0};return t}:function(e){return e};if(!kt&&("__defineGetter__"in avalon&&(Et=function(e,t,n){return"value"in n&&(e[t]=n.value),"get"in n&&e.__defineGetter__(t,n.get),"set"in n&&e.__defineSetter__(t,n.set),e},_t=function(e,t){for(var n in t)t.hasOwnProperty(n)&&Et(e,n,t[n]);return e}),Ue)){var Mt={};e.execScript(["Function parseVB(code)"," ExecuteGlobal(code)","End Function"].join("\n"),"VBScript"),_t=function(t,n,r){var a=[];a.push("\r\n Private [__data__], [__proxy__]"," Public Default Function [__const__](d"+_e+", p"+_e+")"," Set [__data__] = d"+_e+": set [__proxy__] = p"+_e," Set [__const__] = Me"," End Function");for(t in r)n.hasOwnProperty(t)||a.push(" Public ["+t+"]");Tt.forEach(function(e){n.hasOwnProperty(e)||a.push(" Public ["+e+"]")}),a.push(" Public [hasOwnProperty]");for(t in n)a.push(" Public Property Let ["+t+"](val"+_e+")",' Call [__proxy__](Me,[__data__], "'+t+'", val'+_e+")"," End Property"," Public Property Set ["+t+"](val"+_e+")",' Call [__proxy__](Me,[__data__], "'+t+'", val'+_e+")"," End Property"," Public Property Get ["+t+"]"," On Error Resume Next"," Set["+t+'] = [__proxy__](Me,[__data__],"'+t+'")'," If Err.Number <> 0 Then"," ["+t+'] = [__proxy__](Me,[__data__],"'+t+'")'," End If"," On Error Goto 0"," End Property");a.push("End Class");var i=a.join("\r\n"),o=Mt[i];o||(o=qe("VBClass"),e.parseVB("Class "+o+i),e.parseVB(["Function "+o+"Factory(a, b)"," Dim o"," Set o = (New "+o+")(a, b)"," Set "+o+"Factory = o","End Function"].join("\r\n")),Mt[i]=o);var l=e[o+"Factory"](n,k);return l}}var St=Re.splice,jt={_splice:St,_fire:function(e,t,n){M(this.$events[Se],e,t,n)},size:function(){return this._.length},pushArray:function(e){var t=e.length,n=this.length;return t&&(Re.push.apply(this.$model,e),A.call(this,"add",n,t,Math.max(0,n-1))),t+n},push:function(){var e,t=[],n=arguments.length;for(e=0;n>e;e++)t[e]=arguments[e];return this.pushArray(t)},unshift:function(){var e=arguments.length,t=this.length;return e&&(Re.unshift.apply(this.$model,arguments),A.call(this,"add",0,e,0)),e+t},shift:function(){if(this.length){var e=this.$model.shift();return A.call(this,"del",0,1,0),
|
2
|
-
e}},pop:function(){var e=this.length;if(e){var t=this.$model.pop();return A.call(this,"del",e-1,1,Math.max(0,e-2)),t}},splice:function(e){var t,n=arguments.length,r=[],a=St.apply(this.$model,arguments);return a.length&&(r.push("del",e,a.length,0),t=!0),n>2&&(t?r.splice(3,1,0,"add",e,n-2):r.push("add",e,n-2,0),t=!0),t?A.apply(this,r):[]},contains:function(e){return-1!==this.indexOf(e)},remove:function(e){return this.removeAt(this.indexOf(e))},removeAt:function(e){return e>=0?(this.$model.splice(e,1),A.call(this,"del",e,1,0)):[]},clear:function(){return this.$model.length=this.length=this._.length=0,this._fire("clear",0),this},removeAll:function(e){if(Array.isArray(e))for(var t=this.length-1;t>=0;t--)-1!==e.indexOf(this[t])&&this.removeAt(t);else if("function"==typeof e)for(t=this.length-1;t>=0;t--){var n=this[t];e(n,t)&&this.removeAt(t)}else this.clear()},ensure:function(e){return this.contains(e)||this.push(e),this},set:function(e,t){if(e<this.length&&e>-1){var n=avalon.type(t);t&&t.$model&&(t=t.$model);var r=this[e];if("object"===n)for(var a in t)r.hasOwnProperty(a)&&(r[a]=t[a]);else"array"===n?r.clear().push.apply(r,t):r!==t&&(this[e]=t,this.$model[e]=t,this._fire("set",e,t))}return this}};"sort,reverse".replace(Le,function(e){jt[e]=function(){var t,n=this.$model,r=n.concat(),a=Math.random(),i=[];Re[e].apply(n,arguments);for(var o=0,l=r.length;l>o;o++){var s=n[o],c=r[o];if(Ot(s,c))i.push(o);else{var u=r.indexOf(s);i.push(u),r[u]=a,t=!0}}return t&&(O(this,i),this._fire("move",i),this._fire("index",0)),this}});var Lt=function(){var e,t=[];return{begin:function(n){t.push(e),e=n},end:function(){e=t.pop()},collectDependency:function(t,n){e&&e.callback(t,n)}}}(),Ht=/^(duplex|on)$/;avalon.injectBinding=function(e){var t=e.evaluator;if(t){Lt.begin({callback:function(t,n){N(t.$events[n._name],e)}});try{var r=Ht.test(e.type)?e:t.apply(0,e.args);void 0===r&&delete e.evaluator,e.handler&&e.handler(r,e.element,e)}catch(a){n("warning:exception throwed in [avalon.injectBinding] ",a),delete e.evaluator;var i=e.element;if(i&&3===i.nodeType){var o=i.parentNode;v.commentInterpolate?o.replaceChild(Ae.createComment(e.value),i):i.data=dt+(e.oneTime?"::":"")+e.value+vt}}finally{Lt.end()}}};var Dt=0,Pt=avalon.$$subscribers=[],Ft=new Date,Bt={},It={area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],col:[2,"<table><colgroup>","</colgroup></table>"],legend:[1,"<fieldset>","</fieldset>"],option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],tr:[2,"<table>","</table>"],td:[3,"<table><tr>","</tr></table>"],g:[1,'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">',"</svg>"],_default:ze?[0,"",""]:[1,"X<div>","</div>"]};It.th=It.td,It.optgroup=It.option,It.tbody=It.tfoot=It.colgroup=It.caption=It.thead,String("circle,defs,ellipse,image,line,path,polygon,polyline,rect,symbol,text,use").replace(Le,function(e){It[e]=It.g});var Rt=/<([\w:]+)/,Vt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,zt=ze?/[^\d\D]/:/(<(?:script|link|style|meta|noscript))/gi,Wt=a(["","text/javascript","text/ecmascript","application/ecmascript","application/javascript"]),Xt=/<(?:tb|td|tf|th|tr|col|opt|leg|cap|area)/,Yt=Ae.createElement("script"),Gt=/<|&#?\w+;/;avalon.parseHTML=function(e){var t=Xe.cloneNode(!1);if("string"!=typeof e)return t;if(!Gt.test(e))return t.appendChild(Ae.createTextNode(e)),t;e=e.replace(Vt,"<$1></$2>").trim();var n,r,a=(Rt.exec(e)||["",""])[1].toLowerCase(),i=It[a]||It._default,o=Ye;ze||(e=e.replace(zt,"<br class=msNoScope>$1")),o.innerHTML=i[1]+e+i[2];var l=o.getElementsByTagName("script");if(l.length)for(var s,c=0;s=l[c++];)Wt[s.type]&&(r=Yt.cloneNode(!1),Re.forEach.call(s.attributes,function(e){e&&e.specified&&(r[e.name]=e.value,r.setAttribute(e.name,e.value))}),r.text=s.text,s.parentNode.replaceChild(r,s));if(!ze){var u="X<div>"===i[1]?o.lastChild.firstChild:o.lastChild;if(u&&"TABLE"===u.tagName&&"tbody"!==a)for(l=u.childNodes,c=0;s=l[c++];)if("TBODY"===s.tagName&&!s.innerHTML){u.removeChild(s);break}l=o.getElementsByTagName("br");for(var f=l.length;s=l[--f];)"msNoScope"===s.className&&s.parentNode.removeChild(s);for(l=o.all,c=0;s=l[c++];)P(s)&&F(s)}for(c=i[0];c--;o=o.lastChild);for(;n=o.firstChild;)t.appendChild(n);return t},avalon.innerHTML=function(e,t){if(!ze&&!zt.test(t)&&!Xt.test(t))try{return void(e.innerHTML=t)}catch(n){}var r=this.parseHTML(t);this.clearHTML(e).appendChild(r)},avalon.clearHTML=function(e){for(e.textContent="";e.firstChild;)e.removeChild(e.firstChild);return e};var qt={_toString:function(){var e=this.node,t=e.className,n="string"==typeof t?t:t.baseVal;return n.split(/\s+/).join(" ")},_contains:function(e){return(" "+this+" ").indexOf(" "+e+" ")>-1},_add:function(e){this.contains(e)||this._set(this+" "+e)},_remove:function(e){this._set((" "+this+" ").replace(" "+e+" "," "))},__set:function(e){e=e.trim();var t=this.node;De.test(t)?t.setAttribute("class",e):t.className=e}};"add,remove".replace(Le,function(e){avalon.fn[e+"Class"]=function(t){var n=this[0];return t&&"string"==typeof t&&n&&1===n.nodeType&&t.replace(/\S+/g,function(t){R(n)[e](t)}),this}}),avalon.fn.mix({hasClass:function(e){var t=this[0]||{};return 1===t.nodeType&&R(t).contains(e)},toggleClass:function(e,t){for(var n,r=0,a=String(e).split(/\s+/),i="boolean"==typeof t;n=a[r++];){var o=i?t:!this.hasClass(n);this[o?"addClass":"removeClass"](n)}return this},attr:function(e,t){return 2===arguments.length?(this[0].setAttribute(e,t),this):this[0].getAttribute(e)},data:function(e,t){switch(e="data-"+B(e||""),arguments.length){case 2:return this.attr(e,t),this;case 1:var n=this.attr(e);return V(n);case 0:var r={};return Re.forEach.call(this[0].attributes,function(t){t&&(e=t.name,e.indexOf("data-")||(e=I(e.slice(5)),r[e]=V(t.value)))}),r}},removeData:function(e){return e="data-"+B(e),this[0].removeAttribute(e),this},css:function(e,t){if(avalon.isPlainObject(e))for(var n in e)avalon.css(this,n,e[n]);else var r=avalon.css(this,e,t);return void 0!==r?r:this},position:function(){var e,t,n=this[0],r={top:0,left:0};if(n)return"fixed"===this.css("position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),"HTML"!==e[0].tagName&&(r=e.offset()),r.top+=avalon.css(e[0],"borderTopWidth",!0),r.left+=avalon.css(e[0],"borderLeftWidth",!0),r.top-=e.scrollTop(),r.left-=e.scrollLeft()),{top:t.top-r.top-avalon.css(n,"marginTop",!0),left:t.left-r.left-avalon.css(n,"marginLeft",!0)}},offsetParent:function(){for(var e=this[0].offsetParent;e&&"static"===avalon.css(e,"position");)e=e.offsetParent;return avalon(e||We)},bind:function(e,t,n){return this[0]?avalon.bind(this[0],e,t,n):void 0},unbind:function(e,t,n){return this[0]&&avalon.unbind(this[0],e,t,n),this},val:function(e){var t=this[0];if(t&&1===t.nodeType){var n=0===arguments.length,r=n?":get":":set",a=dn[X(t)+r];if(a)var i=a(t,e);else{if(n)return(t.value||"").replace(/\r/g,"");t.value=e}}return n?i:this}});var Ut=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,Jt=/^[\],:{}\s]*$/,Zt=/(?:^|:|,)(?:\s*\[)+/g,Kt=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,Qt=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g;avalon.parseJSON=e.JSON?JSON.parse:function(e){if("string"==typeof e){if(e=e.trim(),e&&Jt.test(e.replace(Kt,"@").replace(Qt,"]").replace(Zt,"")))return new Function("return "+e)();avalon.error("Invalid JSON: "+e)}return e},avalon.fireDom=function(e,t,n){if(Ae.createEvent){var r=Ae.createEvent("Events");r.initEvent(t,!0,!0),avalon.mix(r,n),e.dispatchEvent(r)}else try{r=Ae.createEventObject(),avalon.mix(r,n),e.fireEvent("on"+t,r)}catch(a){}},avalon.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){avalon.fn[e]=function(n){var r=this[0]||{},a=z(r),i="scrollTop"===e;return arguments.length?void(a?a.scrollTo(i?avalon(a).scrollLeft():n,i?n:avalon(a).scrollTop()):r[e]=n):a?t in a?a[t]:We[e]:r[e]}});var en=avalon.cssHooks={},tn=["","-webkit-","-o-","-moz-","-ms-"],nn={"float":ze?"cssFloat":"styleFloat"};if(avalon.cssNumber=a("animationIterationCount,columnCount,order,flex,flexGrow,flexShrink,fillOpacity,fontWeight,lineHeight,opacity,orphans,widows,zIndex,zoom"),avalon.cssName=function(e,t,n){if(nn[e])return nn[e];t=t||We.style;for(var r=0,a=tn.length;a>r;r++)if(n=I(tn[r]+e),n in t)return nn[e]=n;return null},en["@:set"]=function(e,t,n){try{e.style[t]=n}catch(r){}},e.getComputedStyle)en["@:get"]=function(e,t){if(!e||!e.style)throw new Error("getComputedStyle要求传入一个节点 "+e);var n,r=getComputedStyle(e,null);return r&&(n="filter"===t?r.getPropertyValue(t):r[t],""===n&&(n=e.style[t])),n},en["opacity:get"]=function(e){var t=en["@:get"](e,"opacity");return""===t?"1":t};else{var rn=/^-?(?:\d*\.)?\d+(?!px)[^\d\s]+$/i,an=/^(top|right|bottom|left)$/,on=/alpha\([^)]*\)/i,ln=!!e.XDomainRequest,sn="DXImageTransform.Microsoft.Alpha",cn={thin:ln?"1px":"2px",medium:ln?"3px":"4px",thick:ln?"5px":"6px"};en["@:get"]=function(e,t){var n=e.currentStyle,r=n[t];if(rn.test(r)&&!an.test(r)){var a=e.style,i=a.left,o=e.runtimeStyle.left;e.runtimeStyle.left=n.left,a.left="fontSize"===t?"1em":r||0,r=a.pixelLeft+"px",a.left=i,e.runtimeStyle.left=o}return"medium"===r&&(t=t.replace("Width","Style"),"none"===n[t]&&(r="0px")),""===r?"auto":cn[r]||r},en["opacity:set"]=function(e,t,n){var r=e.style,a=isFinite(n)&&1>=n?"alpha(opacity="+100*n+")":"",i=r.filter||"";r.zoom=1,r.filter=(on.test(i)?i.replace(on,a):i+" "+a).trim(),r.filter||r.removeAttribute("filter")},en["opacity:get"]=function(e){var t=e.filters.alpha||e.filters[sn],n=t&&t.enabled?t.opacity:100;return n/100+""}}"top,left".replace(Le,function(e){en[e+":get"]=function(t){var n=en["@:get"](t,e);return/px$/.test(n)?n:avalon(t).position()[e]+"px"}});var un={position:"absolute",visibility:"hidden",display:"block"},fn=/^(none|table(?!-c[ea]).+)/;"Width,Height".replace(Le,function(e){var t=e.toLowerCase(),n="client"+e,r="scroll"+e,a="offset"+e;en[t+":get"]=function(t,n,r){var i=-4;"number"==typeof r&&(i=r),n="Width"===e?["Left","Right"]:["Top","Bottom"];var o=t[a];return 2===i?o+avalon.css(t,"margin"+n[0],!0)+avalon.css(t,"margin"+n[1],!0):(0>i&&(o=o-avalon.css(t,"border"+n[0]+"Width",!0)-avalon.css(t,"border"+n[1]+"Width",!0)),-4===i&&(o=o-avalon.css(t,"padding"+n[0],!0)-avalon.css(t,"padding"+n[1],!0)),o)},en[t+"&get"]=function(e){var n=[];W(e,n);for(var r,a=en[t+":get"](e),i=0;r=n[i++];){e=r.node;for(var o in r)"string"==typeof r[o]&&(e.style[o]=r[o])}return a},avalon.fn[t]=function(i){var o=this[0];if(0===arguments.length){if(o.setTimeout)return o["inner"+e]||o.document.documentElement[n]||o.document.body[n];if(9===o.nodeType){var l=o.documentElement;return Math.max(o.body[r],l[r],o.body[a],l[a],l[n])}return en[t+"&get"](o)}return this.css(t,i)},avalon.fn["inner"+e]=function(){return en[t+":get"](this[0],void 0,-2)},avalon.fn["outer"+e]=function(e){return en[t+":get"](this[0],void 0,e===!0?2:0)}}),avalon.fn.offset=function(){var e=this[0],t={left:0,top:0};if(!e||!e.tagName||!e.ownerDocument)return t;var n=e.ownerDocument,r=n.body,a=n.documentElement,i=n.defaultView||n.parentWindow;if(!avalon.contains(a,e))return t;e.getBoundingClientRect&&(t=e.getBoundingClientRect());var o=a.clientTop||r.clientTop,l=a.clientLeft||r.clientLeft,s=Math.max(i.pageYOffset||0,a.scrollTop,r.scrollTop),c=Math.max(i.pageXOffset||0,a.scrollLeft,r.scrollLeft);return{top:t.top+s-o,left:t.left+c-l}};var pn=/^<option(?:\s+\w+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+))?)*\s+value[\s=]/i,dn={"option:get":Ue?function(e){return pn.test(e.outerHTML)?e.value:e.text.trim()}:function(e){return e.value},"select:get":function(e,t){for(var n,r=e.options,a=e.selectedIndex,i=dn["option:get"],o="select-one"===e.type||0>a,l=o?null:[],s=o?a+1:r.length,c=0>a?s:o?a:0;s>c;c++)if(n=r[c],(n.selected||c===a)&&!n.disabled){if(t=i(n),o)return t;l.push(t)}return l},"select:set":function(e,t,n){t=[].concat(t);for(var r,a=dn["option:get"],i=0;r=e.options[i++];)(r.selected=t.indexOf(a(r))>-1)&&(n=!0);n||(e.selectedIndex=-1)}},vn={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},hn=e.JSON&&JSON.stringify||function(e){return'"'+e.replace(/[\\\"\x00-\x1f]/g,function(e){var t=vn[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"'},mn=["break,case,catch,continue,debugger,default,delete,do,else,false","finally,for,function,if,in,instanceof,new,null,return,switch,this","throw,true,try,typeof,var,void,while,with","abstract,boolean,byte,char,class,const,double,enum,export,extends","final,float,goto,implements,import,int,interface,long,native","package,private,protected,public,short,static,super,synchronized","throws,transient,volatile","arguments,let,yield,undefined"].join(","),gn=/\/\*[\w\W]*?\*\/|\/\/[^\n]*\n|\/\/[^\n]*$|"(?:[^"\\]|\\[\w\W])*"|'(?:[^'\\]|\\[\w\W])*'|[\s\t\n]*\.[\s\t\n]*[$\w\.]+/g,yn=/[^\w$]+/g,bn=new RegExp(["\\b"+mn.replace(/,/g,"\\b|\\b")+"\\b"].join("|"),"g"),xn=/\b\d[^,]*/g,wn=/^,+|,+$/g,$n=new tt(512),Cn=function(e){var t=","+e.trim(),n=$n.get(t);if(n)return n;var r=e.replace(gn,"").replace(yn,",").replace(bn,"").replace(xn,"").replace(wn,"").split(/^$|,+/);return $n.put(t,G(r))},Tn=new tt(128),En=/\w\[.*\]|\w\.\w/,kn=/(\$proxy\$[a-z]+)\d+$/,_n=/\)\s*$/,An=/\)\s*\|/g,On=/\|\s*([$\w]+)/g,Nn=/"\s*\["/g,Mn=/"\s*\(/g;avalon.parseExprProxy=Z,avalon.scan=function(e,t){e=e||We;var n=t?[].concat(t):[];ie(e,n)};var Sn=a("area,base,basefont,br,col,command,embed,hr,img,input,link,meta,param,source,track,wbr,noscript,script,style,textarea".toUpperCase()),jn=function(e,t,n){var r=e.getAttribute(t);if(r)for(var a,i=0;a=n[i++];)if(a.hasOwnProperty(r)&&"function"==typeof a[r])return a[r]},Ln=Ue&&e.MutationObserver?function(e){for(var t,n=e.firstChild;n;){var r=n.nextSibling;3===n.nodeType?t?(t.nodeValue+=n.nodeValue,e.removeChild(n)):t=n:t=null,n=r}}:0,Hn=/^\s*::/,Dn=/ms-(\w+)-?(.*)/,Pn={"if":10,repeat:90,data:100,widget:110,each:1400,"with":1500,duplex:2e3,on:3e3},Fn=a("animationend,blur,change,input,click,dblclick,focus,keydown,keypress,keyup,mousedown,mouseenter,mouseleave,mousemove,mouseout,mouseover,mouseup,scan,scroll,submit"),Bn=a("value,title,alt,checked,selected,disabled,readonly,enabled"),In=/^if|widget|repeat$/,Rn=/^each|with|html|include$/;if(!ze)var Vn=new tt(512),zn=/\s+(ms-[^=\s]+)(?:=("[^"]*"|'[^']*'|[^\s>]+))?/g,Wn=/^['"]/,Xn=/<\w+\b(?:(["'])[^"]*?(\1)|[^>])*>/i,Yn=/&/g,Gn=function(e){var t=e.outerHTML;if("</"===t.slice(0,2)||!t.trim())return[];var n,r,a,i=t.match(Xn)[0],o=[],l=Vn.get(i);if(l)return l;for(;r=zn.exec(i);){a=r[2],a&&(a=(Wn.test(a)?a.slice(1,-1):a).replace(Yn,"&"));var s=r[1].toLowerCase();n=s.match(Dn);var c={name:s,specified:!0,value:a||""};o.push(c)}return Vn.put(i,o)};var qn=/\|\s*html(?:\b|$)/,Un=/\|\|/g,Jn=/</g,Zn=/>/g,Kn=/(['"])(\\\1|.)+?\1/g,Qn=["autofocus,autoplay,async,allowTransparency,checked,controls","declare,disabled,defer,defaultChecked,defaultSelected","contentEditable,isMap,loop,multiple,noHref,noResize,noShade","open,readOnly,selected"].join(","),er={};Qn.replace(Le,function(e){er[e.toLowerCase()]=e});var tr={"accept-charset":"acceptCharset","char":"ch",charoff:"chOff","class":"className","for":"htmlFor","http-equiv":"httpEquiv"},nr=["accessKey,bgColor,cellPadding,cellSpacing,codeBase,codeType,colSpan","dateTime,defaultValue,frameBorder,longDesc,maxLength,marginWidth,marginHeight","rowSpan,tabIndex,useMap,vSpace,valueType,vAlign"].join(",");nr.replace(Le,function(e){tr[e.toLowerCase()]=e});var rr=/<noscript.*?>(?:[\s\S]+?)<\/noscript>/gim,ar=/<noscript.*?>([\s\S]+?)<\/noscript>/im,ir=function(){return new(e.XMLHttpRequest||ActiveXObject)("Microsoft.XMLHTTP")},or=avalon.templateCache={};Qe.attr=function(e,t){var n=J(e.value.trim());if("include"===e.type){var r=e.element;e.includeRendered=jn(r,"data-include-rendered",t),e.includeLoaded=jn(r,"data-include-loaded",t);var a=e.includeReplace=!!avalon(r).data("includeReplace");avalon(r).data("includeCache")&&(e.templateCache={}),e.startInclude=Ae.createComment("ms-include"),e.endInclude=Ae.createComment("ms-include-end"),a?(e.element=e.startInclude,r.parentNode.insertBefore(e.startInclude,r),r.parentNode.insertBefore(e.endInclude,r.nextSibling)):(r.insertBefore(e.startInclude,r.firstChild),r.appendChild(e.endInclude))}e.handlerName="attr",Z(n,t,e)},et.attr=function(t,n,r){var a=r.type,i=r.param;if("css"===a)avalon(n).css(i,t);else if("attr"===a){var o=t===!1||null===t||void 0===t;!ze&&tr[i]&&(i=tr[i]);var l=er[i];if("boolean"==typeof n[l]&&(n[l]=!!t,t||(o=!0)),o)return n.removeAttribute(i);var s=De.test(n)?!1:Ae.namespaces&&P(n)?!0:i in n.cloneNode(!1);s?n[i]=t+"":n.setAttribute(i,t)}else if("include"===a&&t){var c=r.vmodels,u=r.includeRendered,f=r.includeLoaded,p=r.includeReplace,d=p?n.parentNode:n,v=function(e){if(null!==r.vmodels){if(f){var n=f.apply(d,[e].concat(c));"string"==typeof n&&(e=n)}u&&K(d,function(){u.call(d)},NaN);var a=r.includeLastID;if(r.templateCache&&a&&a!==t){var i=r.templateCache[a];i||(i=r.templateCache[a]=Ae.createElement("div"),Ne.appendChild(i))}for(r.includeLastID=t;r.startInclude;){var o=r.startInclude.nextSibling;if(!o||o===r.endInclude)break;d.removeChild(o),i&&i.appendChild(o)}var l=ce(r,t,e),s=avalon.slice(l.childNodes);d.insertBefore(l,r.endInclude),ae(s,c)}};if("src"===r.param)if("string"==typeof or[t])avalon.nextTick(function(){v(or[t])});else if(Array.isArray(or[t]))or[t].push(v);else{var h=ir();h.onreadystatechange=function(){if(4===h.readyState){var e=h.status;if(e>=200&&300>e||304===e||1223===e){for(var n,r=h.responseText,a=0;n=or[t][a++];)n(r);or[t]=r}}},or[t]=[v],h.open("GET",t,!0),"withCredentials"in h&&(h.withCredentials=!0),h.setRequestHeader("X-Requested-With","XMLHttpRequest"),h.send(null)}else{var m=t&&1===t.nodeType?t:Ae.getElementById(t);if(m){if("NOSCRIPT"===m.tagName&&!m.innerHTML&&!m.fixIE78){h=ir(),h.open("GET",location,!1),h.send(null);for(var g=Ae.getElementsByTagName("noscript"),y=(h.responseText||"").match(rr)||[],b=y.length,x=0;b>x;x++){var w=g[x];w&&(w.style.display="none",w.fixIE78=(y[x].match(ar)||[""," "])[1])}}avalon.nextTick(function(){v(m.fixIE78||m.value||m.innerText||m.innerHTML)})}}}else if(We.hasAttribute||"string"!=typeof t||"src"!==a&&"href"!==a||(t=t.replace(/&/g,"&")),n[a]=t,e.chrome&&"EMBED"===n.tagName){var $=n.parentNode,C=document.createComment("ms-src");$.replaceChild(C,n),$.replaceChild(n,C)}},"title,alt,src,value,css,include,href".replace(Le,function(e){Qe[e]=Qe.attr}),Qe["class"]=function(e,t){var n,r=e.param,a=e.value;if(e.handlerName="class",!r||isFinite(r)){e.param="";var i=a.replace(mt,function(e){return e.replace(/./g,"0")}).indexOf(":");if(-1===i){var o=a;n=!0}else o=a.slice(0,i),n=a.slice(i+1);o=ht.test(a)?J(o):hn(o),e.expr="["+o+","+n+"]"}else e.expr="["+hn(r)+","+a+"]",e.oldStyle=r;var l=e.type;if("hover"===l||"active"===l){if(!e.hasBindEvent){var s=e.element,c=avalon(s),u="mouseenter",f="mouseleave";if("active"===l){s.tabIndex=s.tabIndex||-1,u="mousedown",f="mouseup";var p=c.bind("mouseleave",function(){e.toggleClass&&c.removeClass(e.newClass)})}}var d=c.bind(u,function(){e.toggleClass&&c.addClass(e.newClass)}),v=c.bind(f,function(){e.toggleClass&&c.removeClass(e.newClass)});e.rollback=function(){c.unbind("mouseleave",p),c.unbind(u,d),c.unbind(f,v)},e.hasBindEvent=!0}Z(e.expr,t,e)},et["class"]=function(e,t,n){var r=avalon(t);n.newClass=e[0],n.toggleClass=!!e[1],n.oldClass&&n.newClass!==n.oldClass&&r.removeClass(n.oldClass),n.oldClass=n.newClass,"class"===n.type&&(n.oldStyle?r.toggleClass(n.oldStyle,!!e[1]):r.toggleClass(n.newClass,n.toggleClass))},"hover,active".replace(Le,function(e){Qe[e]=Qe["class"]}),et.data=function(e,t,n){var r="data-"+n.param;e&&"object"==typeof e?t[r]=e:t.setAttribute(r,String(e))};var lr=Qe.duplex=function(e,t){var i,o=e.element;if(Z(e.value,t,e,1),e.changed=jn(o,"data-duplex-changed",t)||r,e.evaluator&&e.args){var l=[],s=a("string,number,boolean,checked");"radio"===o.type&&""===e.param&&(e.param="checked"),o.msData&&(o.msData["ms-duplex"]=e.value),e.param.replace(/\w+/g,function(t){/^(checkbox|radio)$/.test(o.type)&&/^(radio|checked)$/.test(t)&&("radio"===t&&n("ms-duplex-radio已经更名为ms-duplex-checked"),t="checked",e.isChecked=!0),"bool"===t?(t="boolean",n("ms-duplex-bool已经更名为ms-duplex-boolean")):"text"===t&&(t="string",n("ms-duplex-text已经更名为ms-duplex-string")),s[t]&&(i=!0),avalon.Array.ensure(l,t)}),i||l.push("string"),e.param=l.join("-"),e.bound=function(t,n){o.addEventListener?o.addEventListener(t,n,!1):o.attachEvent("on"+t,n);var r=e.rollback;e.rollback=function(){o.avalonSetter=null,avalon.unbind(o,t,n),r&&r()}};for(var c in avalon.vmodels){var u=avalon.vmodels[c];u.$fire("avalon-ms-duplex-init",e)}var f=e.pipe||(e.pipe=fe);f(null,e,"init");var p=o.tagName;lr[p]&&lr[p](o,e.evaluator.apply(null,e.args),e)}};avalon.duplexHooks={checked:{get:function(e,t){return!t.element.oldValue}},string:{get:function(e){return e},set:ue},"boolean":{get:function(e){return"true"===e},set:ue},number:{get:function(e,t){var n=parseFloat(e);if(-e===-n)return n;var r=/strong|medium|weak/.exec(t.element.getAttribute("data-duplex-number"))||["medium"];switch(r[0]){case"strong":return 0;case"medium":return""===e?"":0;case"weak":return e}},set:ue}};var sr,cr=[];avalon.tick=function(e){1===cr.push(e)&&(sr=setInterval(pe,60))};var ur=r;!new function(){function e(e){t[this.tagName].call(this,e),!this.msFocus&&this.avalonSetter&&this.avalonSetter()}try{var t={},n=HTMLInputElement.prototype,r=HTMLTextAreaElement.prototype,a=HTMLInputElement.prototype;Object.getOwnPropertyNames(a),t.INPUT=Object.getOwnPropertyDescriptor(n,"value").set,Object.defineProperty(n,"value",{set:e}),t.TEXTAREA=Object.getOwnPropertyDescriptor(r,"value").set,Object.defineProperty(r,"value",{set:e})}catch(i){ur=avalon.tick}},Ue&&avalon.bind(Ae,"selectionchange",function(e){var t=Ae.activeElement||{};!t.msFocus&&t.avalonSetter&&t.avalonSetter()});var fr=/^(file|button|reset|submit|checkbox|radio|range)$/;lr.INPUT=function(e,t,r){function a(e){r.changed.call(this,e,r)}function i(){p=!0}function o(){p=!1}function l(e){setTimeout(function(){d(e)})}var s,c=e.type,u=r.bound,f=avalon(e),p=!1,d=function(){var n=e.value;if(!p&&n!==s){var i=r.pipe(n,r,"get");f.data("duplexObserve")!==!1&&(s=n,t(i),a.call(e,i))}};if(r.handler=function(){var n=r.pipe(t(),r,"set");if(n!==s){var a=!1;if(e.msFocus)try{var i=de(e);i.start===i.end&&(i=i.start,a=!0)}catch(o){}e.value=s=n,a&&!e.readyOnly&&ve(e,i,i)}},r.isChecked||"radio"===c){var v=6===Ue;d=function(){if(f.data("duplexObserve")!==!1){var n=r.pipe(e.value,r,"get");t(n),a.call(e,n)}},r.handler=function(){var n=t(),a=r.isChecked?!!n:n+""===e.value;e.oldValue=a,v?setTimeout(function(){e.defaultChecked=a,e.checked=a},31):e.checked=a},u("click",d)}else if("checkbox"===c)d=function(){if(f.data("duplexObserve")!==!1){var i=e.checked?"ensure":"remove",o=t();Array.isArray(o)||(n("ms-duplex应用于checkbox上要对应一个数组"),o=[o]);var l=r.pipe(e.value,r,"get");avalon.Array[i](o,l),a.call(e,o)}},r.handler=function(){var n=[].concat(t()),a=r.pipe(e.value,r,"get");e.checked=n.indexOf(a)>-1},u(ze?"change":"click",d);else{var h=e.getAttribute("data-duplex-event")||"input";e.attributes["data-event"]&&n("data-event指令已经废弃,请改用data-duplex-event"),h.replace(Le,function(e){switch(e){case"input":Ue?(Ue>8?(9===Ue&&u("keyup",d),u("input",d)):u("propertychange",function(e){"value"===e.propertyName&&d()}),u("dragend",l)):(u("input",d),u("compositionstart",i),u("compositionend",o),u("DOMAutoComplete",d));break;default:u(e,d)}}),fr.test(e.type)||("hidden"!==e.type&&(u("focus",function(){e.msFocus=!0}),u("blur",function(){e.msFocus=!1})),e.avalonSetter=d,ur(function(){if(We.contains(e))e.msFocus||d();else if(!e.msRetain)return!1}))}avalon.injectBinding(r),a.call(e,e.value)},lr.TEXTAREA=lr.INPUT,lr.SELECT=function(e,t,r){function a(){if(i.data("duplexObserve")!==!1){var n=i.val();n=Array.isArray(n)?n.map(function(e){return r.pipe(e,r,"get")}):r.pipe(n,r,"get"),n+""!==e.oldValue&&t(n),r.changed.call(e,n,r)}}var i=avalon(e);r.handler=function(){var r=t();r=r&&r.$model||r,Array.isArray(r)?e.multiple||n("ms-duplex在<select multiple=true>上要求对应一个数组"):e.multiple&&n("ms-duplex在<select multiple=false>不能对应一个数组"),r=Array.isArray(r)?r.map(String):r+"",r+""!==e.oldValue&&(i.val(r),e.oldValue=r+"")},r.bound("change",a),e.msCallback=function(){avalon.injectBinding(r),r.changed.call(e,t(),r)}},et.html=function(e,t,n){var r=1!==t.nodeType,a=r?t.parentNode:t;if(a&&(e=null==e?"":e,n.oldText!==e)){if(n.oldText=e,3===t.nodeType){var i=qe("html");a.insertBefore(Ae.createComment(i),t),n.element=Ae.createComment(i+":end"),a.replaceChild(n.element,t),t=n.element}if("object"!=typeof e)var o=avalon.parseHTML(String(e));else if(11===e.nodeType)o=e;else if(1===e.nodeType||e.item){var l=1===e.nodeType?e.childNodes:e.item;for(o=Xe.cloneNode(!0);l[0];)o.appendChild(l[0])}if(l=avalon.slice(o.childNodes),r){for(var s=t.nodeValue.slice(0,-4);;){var c=t.previousSibling;if(!c||8===c.nodeType&&c.nodeValue===s)break;a.removeChild(c)}a.insertBefore(o,t)}else avalon.clearHTML(t).appendChild(o);ae(l,n.vmodels)}},Qe["if"]=Qe.data=Qe.text=Qe.html=function(e,t){Z(e.value,t,e)},et["if"]=function(e,t,n){try{if(!t.parentNode)return}catch(r){return}if(e)8===t.nodeType&&(t.parentNode.replaceChild(n.template,t),t.ifRemove=null,t=n.element=n.template),t.getAttribute(n.name)&&(t.removeAttribute(n.name),ne(t,n.vmodels)),n.rollback=null;else if(1===t.nodeType){var a=n.element=Ae.createComment("ms-if");t.parentNode.replaceChild(a,t),t.ifRemove=a,n.template=t,Ne.appendChild(t),n.rollback=function(){t.parentNode===Ne&&Ne.removeChild(t)}}};var pr=/\(([^)]*)\)/;Qe.on=function(e,t){var n=e.value;e.type="on";var r=e.param.replace(/-\d+$/,"");if("function"==typeof Qe.on[r+"Hook"]&&Qe.on[r+"Hook"](e),n.indexOf("(")>0&&n.indexOf(")")>-1){var a=(n.match(pr)||["",""])[1].trim();(""===a||"$event"===a)&&(n=n.replace(pr,""))}Z(n,t,e)},et.on=function(e,t,n){e=function(e){var t=n.evaluator||r;return t.apply(this,n.args.concat(e))};var a=n.param.replace(/-\d+$/,"");if("scan"===a)e.call(t,{type:a});else if("function"==typeof n.specialBind)n.specialBind(t,e);else var i=avalon.bind(t,a,e);n.rollback=function(){"function"==typeof n.specialUnbind?n.specialUnbind():avalon.unbind(t,a,i)}},Qe.repeat=function(e,t){var n=e.type;Z(e.value,t,e,1),e.proxies=[];var a=!1;try{var i=e.$repeat=e.evaluator.apply(0,e.args||[]),o=avalon.type(i);"object"!==o&&"array"!==o?(a=!0,avalon.log("warning:"+e.value+"只能是对象或数组")):e.xtype=o}catch(l){a=!0}var s=e.value.split(".")||[];if(s.length>1){s.pop();for(var c,u=s[0],f=0;c=t[f++];)if(c&&c.hasOwnProperty(u)){var p=c[u].$events||{};p[Se]=p[Se]||[],p[Se].push(e);break}}var d=e.handler;e.handler=r,avalon.injectBinding(e),e.handler=d;var v=e.element;if(1===v.nodeType){v.removeAttribute(e.name),e.sortedCallback=jn(v,"data-with-sorted",t),e.renderedCallback=jn(v,"data-"+n+"-rendered",t);var h=qe(n),m=Ae.createComment(h),g=Ae.createComment(h+":end");if(e.signature=h,e.template=Xe.cloneNode(!1),"repeat"===n){var y=v.parentNode;y.replaceChild(g,v),y.insertBefore(m,g),e.template.appendChild(v)}else{for(;v.firstChild;)e.template.appendChild(v.firstChild);v.appendChild(m),v.appendChild(g)}e.element=g,e.handler=et.repeat,e.rollback=function(){var t=e.element;t&&e.handler("clear")}}if(!a){e.$outer={};var b="$key",x="$val";for(Array.isArray(i)&&(b="$first",x="$last"),f=0;c=t[f++];)if(c.hasOwnProperty(b)&&c.hasOwnProperty(x)){e.$outer=c;break}var w=i.$events,$=(w||{})[Se];N($,e),"object"===o?e.handler("append"):i.length&&e.handler("add",0,i.length)}},et.repeat=function(e,t,n){var a=this;if(!e&&a.xtype){var i=a.$repeat,o=a.evaluator.apply(0,a.args||[]);if("array"===a.xtype){if(i.length===o.length){if(!(i!==o&&i.length>0))return;et.repeat.call(this,"clear",t,n)}e="add",t=0,a.$repeat=o,n=o.length}else{if(E(i).join(";;")===E(o).join(";;"))return;e="append",a.$repeat=o}}if(e){var l,s,c=a.element,u=me(a),f=c.parentNode,p=a.proxies,d=Xe.cloneNode(!1);switch(e){case"add":for(var v=t+n,h=[],m=t;v>m;m++){var g=Ce(m,a);p.splice(m,0,g),he(a,d,g,h)}for(f.insertBefore(d,u[t]||c),m=0;s=h[m++];)ae(s.nodes,s.vmodels),s.nodes=s.vmodels=null;break;case"del":ge(u[t],u[t+n]||c);var y=p.splice(t,n);xe(y,"each");break;case"clear":l=u[0],l&&(ge(l,c),"object"===a.xtype?f.insertBefore(l,c):xe(p,"each"));break;case"move":if(l=u[0]){var b,x=l.nodeValue,w=[],$=[];for(ge(l,c,function(){$.unshift(this),this.nodeValue===x&&(w.unshift($),$=[])}),O(w,t),O(p,t);$=w.shift();)for(;b=$.shift();)d.appendChild(b);f.insertBefore(d,c)}break;case"index":for(var C=p.length-1;n=p[t];t++)n.$index=t,n.$first=0===t,n.$last=t===C;return;case"set":g=p[t],g&&M(g.$events[a.param||"el"]);break;case"append":var T=a.$repeat,k=Array.isArray(p)||!p?{}:p;a.proxies=k;var _=[];h=[];for(var A in k)T.hasOwnProperty(A)||(Te(k[A],dr),delete k[A]);for(A in T)T.hasOwnProperty(A)&&"hasOwnProperty"!==A&&_.push(A);if(a.sortedCallback){var N=a.sortedCallback.call(f,_);N&&Array.isArray(N)&&N.length&&(_=N)}for(m=0;A=_[m++];)"hasOwnProperty"!==A&&(k[A]=be(k[A],A,a),he(a,d,k[A],h));for(f.insertBefore(d,c),m=0;s=h[m++];)ae(s.nodes,s.vmodels),s.nodes=s.vmodels=null}if(!a.$repeat||a.$repeat.hasOwnProperty("$lock"))return;"clear"===e&&(e="del");var S=a.renderedCallback||r,j=arguments;f.oldValue&&"SELECT"===f.tagName&&avalon(f).val(f.oldValue.split(",")),S.apply(f,j)}},"with,each".replace(Le,function(e){Qe[e]=Qe.repeat});var dr=[],vr=[];et.text=function(e,t){if(e=null==e?"":e,3===t.nodeType)try{t.data=e}catch(n){}else"textContent"in t?t.textContent=e:t.innerText=e},avalon.parseDisplay=Ee,Qe.visible=function(e,t){Z(e.value,t,e)},et.visible=function(e,t,n){e?(t.style.display=n.display||"","none"===avalon(t).css("display")&&(t.style.display=n.display=Ee(t.nodeName))):t.style.display="none"},Qe.widget=function(t,a){var i=t.value.match(Le),o=t.element,l=i[0],s=i[1];s&&"$"!==s||(s=qe(l));var c=i[2]||l,u=avalon.ui[l];if("function"==typeof u){a=o.vmodels||a;for(var f,p=0;f=a[p++];)if(f.hasOwnProperty(c)&&"object"==typeof f[c]){var d=f[c];d=d.$model||d;break}if(d){var v=d[l+"Id"];"string"==typeof v&&(n("warning!不再支持"+l+"Id"),s=v)}var h=avalon.getWidgetData(o,l);t.value=[l,s,c].join(","),t[l+"Id"]=s,t.evaluator=r,o.msData["ms-widget-id"]=s;var m=t[l+"Options"]=avalon.mix({},u.defaults,d||{},h);o.removeAttribute("ms-widget");var g=u(o,t,a)||{};if(g.$id){avalon.vmodels[s]=g,Q(o,g);try{g.$init(function(){avalon.scan(o,[g].concat(a)),"function"==typeof m.onInit&&m.onInit.call(o,g,m,a)})}catch(y){n(y)}t.rollback=function(){try{g.$remove(),g.widgetElement=null}catch(e){}o.msData={},delete avalon.vmodels[g.$id]},j(t,hr),e.chrome&&o.addEventListener("DOMNodeRemovedFromDocument",function(){setTimeout(L)})}else avalon.scan(o,a)}else a.length&&(o.vmodels=a)};var hr=[],mr=/<script[^>]*>([\S\s]*?)<\/script\s*>/gim,gr=/\s+(on[^=\s]+)(?:=("[^"]*"|'[^']*'|[^\s>]+))?/g,yr=/<\w+\b(?:(["'])[^"]*?(\1)|[^>])*>/gi,br={a:/\b(href)\=("javascript[^"]*"|'javascript[^']*')/gi,img:/\b(src)\=("javascript[^"]*"|'javascript[^']*')/gi,form:/\b(action)\=("javascript[^"]*"|'javascript[^']*')/gi},xr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,wr=/([^\#-~| |!])/g,$r=avalon.filters={uppercase:function(e){return e.toUpperCase()},lowercase:function(e){return e.toLowerCase()},truncate:function(e,t,n){return t=t||30,n="string"==typeof n?n:"...",e.length>t?e.slice(0,t-n.length)+n:String(e)},$filter:function(e){for(var t=1,n=arguments.length;n>t;t++){var r=arguments[t],a=avalon.filters[r[0]];if("function"==typeof a){var i=[e].concat(r.slice(1));e=a.apply(null,i)}}return e},camelize:I,sanitize:function(e){return e.replace(mr,"").replace(yr,function(e,t){var n=e.toLowerCase().match(/<(\w+)\s/);if(n){var r=br[n[1]];r&&(e=e.replace(r,function(e,t,n){var r=n.charAt(0);return t+"="+r+"javascript:void(0)"+r}))}return e.replace(gr," ").replace(/\s+/g," ")})},escape:function(e){return String(e).replace(/&/g,"&").replace(xr,function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1);return"&#"+(1024*(t-55296)+(n-56320)+65536)+";"}).replace(wr,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")},currency:function(e,t,n){return(t||"¥")+ke(e,isFinite(n)?n:2)},number:ke};!new function(){
|
3
|
-
function e(e){return parseInt(e,10)||0}function t(e,t,n){var r="";for(0>e&&(r="-",e=-e),e=""+e;e.length<t;)e="0"+e;return n&&(e=e.substr(e.length-t)),r+e}function n(e,n,r,a){return function(i){var o=i["get"+e]();return(r>0||o>-r)&&(o+=r),0===o&&-12===r&&(o=12),t(o,n,a)}}function r(e,t){return function(n,r){var a=n["get"+e](),i=(t?"SHORT"+e:e).toUpperCase();return r[i][a]}}function a(e){var n=-1*e.getTimezoneOffset(),r=n>=0?"+":"";return r+=t(Math[n>0?"floor":"ceil"](n/60),2)+t(Math.abs(n%60),2)}function i(e,t){return e.getHours()<12?t.AMPMS[0]:t.AMPMS[1]}var o={yyyy:n("FullYear",4),yy:n("FullYear",2,0,!0),y:n("FullYear",1),MMMM:r("Month"),MMM:r("Month",!0),MM:n("Month",2,1),M:n("Month",1,1),dd:n("Date",2),d:n("Date",1),HH:n("Hours",2),H:n("Hours",1),hh:n("Hours",2,-12),h:n("Hours",1,-12),mm:n("Minutes",2),m:n("Minutes",1),ss:n("Seconds",2),s:n("Seconds",1),sss:n("Milliseconds",3),EEEE:r("Day"),EEE:r("Day",!0),a:i,Z:a},l=/((?:[^yMdHhmsaZE']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z))(.*)/,s=/^\/Date\((\d+)\)\/$/;$r.date=function(t,n){var r,a,i=$r.date.locate,c="",u=[];if(n=n||"mediumDate",n=i[n]||n,"string"==typeof t)if(/^\d+$/.test(t))t=e(t);else if(s.test(t))t=+RegExp.$1;else{var f=t.trim(),p=[0,0,0,0,0,0,0],d=new Date(0);f=f.replace(/^(\d+)\D(\d+)\D(\d+)/,function(t,n,r,a){var i=4===a.length?[a,n,r]:[n,r,a];return p[0]=e(i[0]),p[1]=e(i[1])-1,p[2]=e(i[2]),""});var v=d.setFullYear,h=d.setHours;f=f.replace(/[T\s](\d+):(\d+):?(\d+)?\.?(\d)?/,function(t,n,r,a,i){return p[3]=e(n),p[4]=e(r),p[5]=e(a),i&&(p[6]=Math.round(1e3*parseFloat("0."+i))),""});var m=0,g=0;f=f.replace(/Z|([+-])(\d\d):?(\d\d)/,function(t,n,r,a){return v=d.setUTCFullYear,h=d.setUTCHours,n&&(m=e(n+r),g=e(n+a)),""}),p[3]-=m,p[4]-=g,v.apply(d,p.slice(0,3)),h.apply(d,p.slice(3)),t=d}if("number"==typeof t&&(t=new Date(t)),"date"===avalon.type(t)){for(;n;)a=l.exec(n),a?(u=u.concat(a.slice(1)),n=u.pop()):(u.push(n),n=null);return u.forEach(function(e){r=o[e],c+=r?r(t,i):e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}};var c={AMPMS:{0:"上午",1:"下午"},DAY:{0:"星期日",1:"星期一",2:"星期二",3:"星期三",4:"星期四",5:"星期五",6:"星期六"},MONTH:{0:"1月",1:"2月",2:"3月",3:"4月",4:"5月",5:"6月",6:"7月",7:"8月",8:"9月",9:"10月",10:"11月",11:"12月"},SHORTDAY:{0:"周日",1:"周一",2:"周二",3:"周三",4:"周四",5:"周五",6:"周六"},fullDate:"y年M月d日EEEE",longDate:"y年M月d日",medium:"yyyy-M-d H:mm:ss",mediumDate:"yyyy-M-d",mediumTime:"H:mm:ss","short":"yy-M-d ah:mm",shortDate:"yy-M-d",shortTime:"ah:mm"};c.SHORTMONTH=c.MONTH,$r.date.locate=c},new function(){function e(e){for(r=1;e=n.shift();)e()}avalon.config({loader:!1});var t,n=[],r="complete"===Ae.readyState;avalon.bind(Ae,"DOMContentLoaded",t=function(){avalon.unbind(Ae,"DOMContentLoaded",t),e()});var a=setInterval(function(){"complete"===document.readyState&&document.body&&(clearInterval(a),e())},50);avalon.ready=function(e){r?e(avalon):n.push(e)},avalon.ready(function(){avalon.scan(Ae.body)})},"function"==typeof define&&define.amd&&define("avalon",[],function(){return avalon});var Cr=e.avalon;return avalon.noConflict=function(t){return t&&e.avalon===avalon&&(e.avalon=Cr),avalon},void 0===t&&(e.avalon=avalon),avalon});
|
1
|
+
!function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("Avalon requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){function n(){e.console&&avalon.config.debug&&Function.apply.call(console.log,console,arguments)}function a(e){return Function.apply(r,e)}function r(){}function i(e,t){"string"==typeof e&&(e=e.match(Zt)||[]);for(var n={},a=void 0!==t?t:1,r=0,i=e.length;i>r;r++)n[e[r]]=a;return n}function o(){if(e.VBArray){var t=document.documentMode;return t?t:e.XMLHttpRequest?7:6}return 0/0}function l(e){return en.test(an.call(e))}function s(e,t){return e=Math.floor(e)||0,0>e?Math.max(t+e,0):Math.min(e,t)}function c(e){if(!e)return!1;var t=e.length;if(t===t>>>0){var n=an.call(e).slice(8,-1);if(/(?:regexp|string|function|window|global)$/i.test(n))return!1;if("Array"===n)return!0;try{return{}.propertyIsEnumerable.call(e,"length")===!1?/^\s?function/.test(e.item||e.callee):!0}catch(a){return!e.window}}return!1}function u(e,t,n){var a="for(var "+e+"i=0,n = this.length; i < n; i++){"+t.replace("_","((i in this) && fn.call(scope,this[i],i,this))")+"}"+n;return Function("fn,scope",a)}function f(e,t){try{for(;t=t.parentNode;)if(t===e)return!0;return!1}catch(n){return!1}}function d(){return(new XMLSerializer).serializeToString(this)}function p(e,t){if(e&&e.childNodes)for(var n,a=e.childNodes,r=0;n=a[r++];)if(n.tagName){var i=Wt.createElementNS(Tn,n.tagName.toLowerCase());rn.forEach.call(n.attributes,function(e){i.setAttribute(e.name,e.value)}),p(n,i),t.appendChild(i)}}function v(e){var t={};for(var n in e)t[n]=e[n];var a=t.target=e.srcElement;if(0===e.type.indexOf("key"))t.which=null!=e.charCode?e.charCode:e.keyCode;else if(An.test(e.type)){var r=a.ownerDocument||Wt,i="BackCompat"===r.compatMode?r.body:r.documentElement;t.pageX=e.clientX+(i.scrollLeft>>0)-(i.clientLeft>>0),t.pageY=e.clientY+(i.scrollTop>>0)-(i.clientTop>>0),t.wheelDeltaY=t.wheelDelta,t.wheelDeltaX=0}return t.timeStamp=new Date-0,t.originalEvent=e,t.preventDefault=function(){e.returnValue=!1},t.stopPropagation=function(){e.cancelBubble=!0},t}function h(e){for(var t in e)if(nn.call(e,t)){var n=e[t];"function"==typeof h.plugins[t]?h.plugins[t](n):"object"==typeof h[t]?avalon.mix(h[t],n):h[t]=n}return this}function m(e){return(e+"").replace(Pn,"\\$&")}function y(e,t){var n=this.$events||(this.$events={}),a=n[e]||(n[e]=[]);if("function"==typeof t){var i=t;i.uniqueNumber=Math.random(),t={element:sn,type:"user-watcher",handler:r,vmodels:[this],expr:e,uniqueNumber:i.uniqueNumber},t.wildcard=/\*/.test(e)}if(t.update)t.oneTime||avalon.Array.ensure(a,t);else{if(/\w\.*\B/.test(e)){t.getter=r;var o=this;t.update=function(){var e=this.fireArgs||[];e[2]&&t.handler.apply(o,e),delete this.fireArgs},a.sync=!0,avalon.Array.ensure(a,t)}else avalon.injectBinding(t);i&&(t.handler=i)}return function(){t.update=t.getter=t.handler=r,t.element=Wt.createElement("a")}}function g(e,t){var n=this.$events;if(n&&n[e]){t&&(t[2]=e);var a=n[e];$(a,t);var r=this.$up;r&&(this.$pathname&&g.call(r,this.$pathname+"."+e,t),g.call(r,"*."+e,t))}else{if(r=this.$up,this.$ups){for(var i in this.$ups)g.call(this.$ups[i],i+"."+e,t);return}if(r){var o=this.$pathname;""===o&&(o="*");var l=o+"."+e;a=l.split("."),-1===a.indexOf("*")?(g.call(r,l,t),a[1]="*",g.call(r,a.join("."),t)):g.call(r,l,t)}}}function b(e,t){for(;;){if(e.$watch){var n=e.$events||(e.$events={}),a=n[t]||(n[t]=[]);return void Kn.collectDependency(a)}if(e=e.$up,!e)break;t=e.$pathname+"."+t}}function $(e,t){if(e){new Date-ta>444&&"object"==typeof e[0]&&F();for(var n,a=[],r=[],i=0;n=e[i++];)"user-watcher"===n.type?a.push(n):r.push(n);if(h.async){for(ur.render(),i=0;n=r[i++];)if(n.update){var o=H(n);ur.queue[o]||(ur.queue[o]=1,ur.queue.push(n))}}else for(i=0;n=r[i++];)n.update&&n.update();for(i=0;n=a[i++];)(t&&t[2]===n.expr||n.wildcard)&&(n.fireArgs=t),n.update()}}function x(e,t){return t=t||{},t.watch=!0,C(e,t)}function w(){}function C(e,t){function a(e){return u[e]===!0}if(!e||e.$id&&e.$accessors||e.nodeName&&e.nodeType>0)return e;t=t||Jt;var r=t.force||Jt,o=t.old,l=o&&o.$accessors||Jt,s=new w,c={},u={},f=[],d=[],p={};e.$skipArray&&(p=i(e.$skipArray),delete e.$skipArray);var v=e.$computed;if(v){delete e.$computed;for(var h in v)u[h]=!0,function(e,t){var n;c[e]={get:function(){return n=t.get.call(this)},set:function(a){if("function"==typeof t.set){var r=n;t.set.call(this,a);var i=this[e];this.$fire&&i!==r&&this.$fire(e,i,r)}},enumerable:!0,configurable:!0}}(h,v[h])}for(h in e){var m=e[h];Bn[h]||(u[h]=!0),"function"==typeof m||m&&m.nodeName&&m.nodeType>0||!r[h]&&("$"===h.charAt(0)||Bn[h]||p[h])?f.push(h):k(m)?(n("warning:计算属性建议放在$computed对象中统一定义"),function(e,t){var n;c[e]={get:function(){return n=t.get.call(this)},set:function(a){if("function"==typeof t.set){var r=n;t.set.call(this,a);var i=this[e];this.$fire&&i!==r&&this.$fire(e,i,r)}},enumerable:!0,configurable:!0}}(h,m)):(d.push(h),c[h]=l[h]?l[h]:N(h,m))}c.$model=Xn,s=In(s,c,e),f.forEach(function(t){s[t]=e[t]}),A(s,"$ups",null),A(s,"$id","anonymous"),A(s,"$up",o?o.$up:null),A(s,"$track",Object.keys(u)),A(s,"$active",!1),A(s,"$pathname",o?o.$pathname:""),A(s,"$accessors",c),A(s,"hasOwnProperty",a),t.watch&&(A(s,"$watch",function(){return y.apply(s,arguments)}),A(s,"$fire",function(e,t){if(0===e.indexOf("all!")){var n=e.slice(4);for(var a in avalon.vmodels){var r=avalon.vmodels[a];r.$fire&&r.$fire.apply(r,[n,t])}}else g.call(s,e,[t])})),d.forEach(function(t){var n=o&&o[t],a=s[t]=e[t];a&&"object"==typeof a&&(a.$up=s,a.$pathname=t),g.call(s,t,[a,n])});for(h in v)m=s[h];return s.$active=!0,s}function k(e){if(e&&"object"==typeof e){for(var t in e)if("get"!==t&&"set"!==t)return!1;return"function"==typeof e.get}}function N(e,t){var n;return t=0/0,{get:function(){return this.$active&&b(this,e),t},set:function(a){if(t!==a){var r=t;n=T(a,t),n?t=n:(n=void 0,t=a),Object(n)===n&&(n.$pathname=e,n.$up=this),this.$active&&g.call(this,e,[t,r])}},enumerable:!0,configurable:!0}}function T(e,t,n,a){if(Array.isArray(e))return E(e,t,a);if(avalon.isPlainObject(e)){if(t&&"object"==typeof t){var r=Wn(e),i=Wn(t);if(r.join(";")===i.join(";")){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o]);return t}t.$active=!1}return C(e,{old:t,watch:a})}return n?e:void 0}function E(e,t,n){if(t){var a=[0,t.length].concat(e);return t.splice.apply(t,a),t}for(var r in Jn)e[r]=Jn[r];A(e,"$up",null),A(e,"$pathname",""),A(e,"$track",M(e.length)),e._=C({length:0/0},{watch:!0}),e._.length=e.length,e._.$watch("length",function(t,n){g.call(e.$up,e.$pathname+".length",[t,n])}),n&&A(e,"$watch",function(){return y.apply(e,arguments)}),ln?Object.defineProperty(e,"$model",Xn):e.$model=_(e);for(var i=0,o=e.length;o>i;i++){var l=e[i]=T(e[i],0,1,1);Object(l)===l&&(l.$up=e)}return e}function A(e,t,n){Vn?Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!1,configurable:!0}):e[t]=n}function _(e){var t=avalon.type(e);if("array"===t){for(var n=[],a=0;a<e.length;a++)n[a]=_(e[a]);return n}if("object"===t){var r={};for(a in e)if("__proxy__"!==a&&"__data__"!==a&&"__const__"!==a&&e.hasOwnProperty(a)){var i=e[a];r[a]=i&&i.nodeType?i:_(i)}return r}return e}function S(e,t,n,a){var r=t[n];return 4!==arguments.length?r.get.call(e):void r.set.call(e,a)}function O(e,t){for(var n={},a=0,r=t.length;r>a;a++){n[a]=e[a];var i=t[a];i in n?(e[a]=n[i],delete n[i]):e[a]=e[i]}}function M(e){for(var t=[],n=0;e>n;n++)t[n]=dn("$proxy$each");return t}function j(e,t,n){switch(t){case"push":case"unshift":n=M(n.length);break;case"splice":if(n.length>2){{n[1],n.length-2}n=[n[0],n[1]].concat(M(n.length-2))}}Array.prototype[t].apply(e,n)}function L(e,t){t.oneTime||e&&avalon.Array.ensure(e,t)&&t.element&&(P(t,e),new Date-ta>444&&F())}function D(e,t){for(var n,a=[],r=0;n=e[r++];)a.push(t?n.$id:n.$key);return a.join(";")}function H(e){if(!e.uniqueNumber){var t=e.element;e.uniqueNumber=t?1!==t.nodeType?e.type+"-"+H(t.parentNode)+"-"+ ++Qn:e.name+"-"+H(t):++Qn}return e.uniqueNumber}function P(e,t){var n=e.lists||(e.lists=[]),a=H(e);avalon.Array.ensure(n,t),t.$uuid=t.$uuid||dn(),ea[a]||(ea[a]=1,ea.push(e))}function F(e){for(var t=ea.length,n=t,a=[],r={},i={};e=ea[--t];){var o=e.type;i[o]?i[o]++:(i[o]=1,a.push(o))}var l=!1;if(a.forEach(function(e){na[e]!==i[e]&&(r[e]=1,l=!0)}),t=n,l)for(;e=ea[--t];)if(null!==e.element){if(r[e.type]&&B(e.element)){ea.splice(t,1),delete ea[e.uniqueNumber];for(var s,c=e.lists,u=0;s=c[u++];)avalon.Array.remove(c,s),avalon.Array.remove(s,e);R(e)}}else ea.splice(t,1);na=i,ta=new Date}function R(e){delete ea[e.uniqueNumber],e.element=null,e.rollback&&e.rollback();for(var t in e)e[t]=null}function B(e){try{{e.parentNode.nodeType}}catch(t){return!0}return e.ifRemove&&!sn.contains(e.ifRemove)&&Yt===e.parentNode?(e.parentNode&&e.parentNode.removeChild(e),!0):e.msRetain?0:1===e.nodeType?!sn.contains(e):!avalon.contains(sn,e)}function q(e){var t=e.nodeName;return t.toLowerCase()===t&&e.scopeName&&""===e.outerText}function V(e){"url(#default#VML)"!==e.currentStyle.behavior&&(e.style.behavior="url(#default#VML)",e.style.display="inline-block",e.style.zoom=1)}function I(e){return e.replace(/([a-z\d])([A-Z]+)/g,"$1-$2").toLowerCase()}function z(e){return!e||e.indexOf("-")<0&&e.indexOf("_")<0?e:e.replace(/[-_][^-_]/g,function(e){return e.charAt(1).toUpperCase()})}function W(e){if(!("classList"in e)){e.classList={node:e};for(var t in fa)e.classList[t.slice(1)]=fa[t]}return e.classList}function X(e){try{if("object"==typeof e)return e;e="true"===e?!0:"false"===e?!1:"null"===e?null:+e+""===e?+e:da.test(e)?avalon.parseJSON(e):e}catch(t){}return e}function Y(e){return e.window&&e.document?e:9===e.nodeType?e.defaultView||e.parentWindow:!1}function G(e,t){if(e.offsetWidth<=0){if(Ea.test(ya["@:get"](e,"display"))){var n={node:e};for(var a in Ta)n[a]=e.style[a],e.style[a]=Ta[a];t.push(n)}var r=e.parentNode;r&&1===r.nodeType&&G(r,t)}}function U(e){var t=e.tagName.toLowerCase();return"input"===t&&/checkbox|radio/.test(e.type)?"checked":t}function J(e,t){var n=[],r=!!t;t=t||0;for(var i="unknown",o="",l=0;l<e.length;l++){var s=e.charAt(l);if("'"===s||'"'===s)"unknown"===i?i=s:i===s&&(i="unknown");else if("\\"===s)("'"===i||'"'===i)&&l++;else if(Ma.test(s))"unknown"===i?(i="variable",o=s):"maybePath"===i?(o=n.pop(),o+="."+s,i="variable"):"variable"===i&&(o+=s);else if(/\w/.test(s))"variable"===i&&(o+=s);else if("."===s)"variable"===i&&o&&(n.push(o),o="",i="maybePath");else if("["===s){if("variable"===i||"maybePath"===i){o&&(n.push(o),o="");var c=n.length,u=n[c-1],f=J(e.slice(l),l);if(f.length)n[c-1]=u+".*",n=f.concat(n);else{var d=e.slice(l+1,f.i);try{var p=a(["return "+d])();n[c-1]=u+"."+p}catch(v){}}i="maybePath",l=f.i}}else if("]"===s){if(r)return n.i=l+t,Z(n,o),n}else ja.test(s)&&"\r"!==s&&"\n"!==s?"variable"===i&&(Z(n,o)&&(i="maybePath"),o=""):(Z(n,o),i="unknown",o="")}return Z(n,o),n}function Z(e,t){return t&&!Sa[t]?(e.push(t),!0):void 0}function K(e,t,n,a){for(var r,i=[],o=" = "+n+".",l=e.length;r=e[--l];)for(var s,c=r.split("."),u=c[0];s=c.shift();)t.hasOwnProperty(s)&&(i.push(u+o+u),a.observers.push({v:t,p:r}),e.splice(l,1));return i}function Q(e){e=e.trim();var t=Da.get(e);if(t)return t.concat();for(var n,a=J(e),r={},i=[],o=0;n=a[o++];)r[n]||(r[n]=1,i.push(n));return Da.put(e,i).concat()}function et(e,t,n){var r=n.filters;"string"==typeof r&&r.trim()&&!n._filters&&(n._filters=nt(r.trim()));var i=Q(e),o=new Date-0,l=[],s=[],c=[];n.observers=[];for(var u=0,f=t.length;f>u;u++)if(i.length){var d="vm"+o+"_"+u;s.push(d),c.push(t[u]),l.push.apply(l,K(i,t[u],d,n))}n.args=c;var p=n.type,v=t.map(function(e){return String(e.$id).replace(La,"$1")})+e+p,h=Ha.get(v);if(h){if("duplex"===p){var m=Ha.get(v+"setter");n.setter=m.apply(m,n.args)}return n.getter=h}if(l.length||l.push("fix"+o),"duplex"===p){var y={};l.forEach(function(e){var t=e.split("=");y[t[0].trim()]=t[1].trim()}),e=e.replace(/[\$\w]+/,function(e){return y[e]?y[e]:e});var g=a(s.concat("'use strict';return function(vvv){"+e+" = vvv\n}\n"));Ha.put(v+"setter",g),n.setter=g.apply(g,n.args)}if("on"===p){-1===e.indexOf("(")?e+=".call(this, $event)":e=e.replace("(",".call(this,"),s.push("$event"),e="\nreturn "+e+";";var b=e.lastIndexOf("\nreturn"),$=e.slice(0,b),x=e.slice(b);e=$+"\n"+x}else e="\nreturn "+e+";";return h=a(s.concat("'use strict';\nvar "+l.join(",\n")+e)),Ha.put(v,h)}function tt(e){var t=Ln.test(e);if(t){var n=pt(e);return 1===n.length?n[0].expr:n.map(function(e){return e.type?"("+e.expr+")":Ia(e.expr)}).join(" + ")}return e}function nt(e){return e=e.replace(Pa,"").replace(Fa,function(){return"],|"}).replace(Ra,function(e,t){return"["+Ia(t)}).replace(Ba,function(){return'"],["'}).replace(qa,function(){return'",'})+"]",a(["return ["+e+"]"])()}function at(e,t,n){var a=setTimeout(function(){var r=e.innerHTML;clearTimeout(a),r===n?t():at(e,t,r)})}function rt(e,t){var n=e.getAttribute("avalonctrl")||t.$id;e.setAttribute("avalonctrl",n),t.$events&&(t.$events.expr=e.tagName+'[avalonctrl="'+n+'"]')}function it(e,t){for(var n,a=0;n=e[a++];)n.vmodels=t,bn[n.type].init(n),avalon.injectBinding(n),n.getter&&1===n.element.nodeType&&n.element.removeAttribute(n.name);e.length=0}function ot(e,t){return e.priority-t.priority}function lt(e,t,a){var r=!0;if(t.length){for(var i,o=rr?rr(e):e.attributes,l=[],s={},c=0;i=o[c++];){var u=i.name;if(!s[u]&&(s[u]=1,i.specified&&(a=u.match(Ga)))){var f=a[1],d=a[2]||"",p=i.value;if(Ua[f]?(d=f,f="on"):Ja[f]&&(d=f,f="attr",u="ms-"+f+"-"+d,n("warning!请改用"+u+"代替"+i.name+"!")),bn[f]){var v=p.replace(Ya,""),h=p!==v,m={type:f,param:d,element:e,name:u,expr:v,oneTime:h,uniqueNumber:i.name+"-"+H(e),priority:(bn[f].priority||10*f.charCodeAt(0))+(Number(d.replace(/\D/g,""))||0)};if("html"===f||"text"===f){var y=dt(p).filters;m.expr=m.expr.replace(y,""),m.filters=y.replace(or,function(){return m.type="html",m.group=1,""}).trim()}else if("duplex"===f)var g=u;else if("ms-if-loop"===u)m.priority+=100;else if("ms-attr-value"===u)var b=u;l.push(m)}}}if(l.length){for(l.sort(ot),g&&b&&"INPUT"===e.nodeName&&"text"===e.type&&n("warning!一个控件不能同时定义ms-attr-value与"+g),c=0;m=l[c];c++){if(f=m.type,Za.test(f))return it(l.slice(0,c+1),t);r&&(r=!Ka.test(f))}it(l,t)}}r&&!za[e.tagName]&&(mt(e)?e.msResolved:1)&&(Xa&&Xa(e),ct(e,t))}function st(e){for(var t,n=rr?rr(e):e.attributes,a={},r=0;t=n[r++];)t.specified&&!ir.test(t.name)&&(a[z(t.name)]=X(t.value));return a}function ct(e,t){var n=avalon.slice(e.childNodes);ut(n,t)}function ut(e,t){for(var n,a=0;n=e[a++];)switch(n.nodeType){case 1:var r=n;if(!r.msResolved&&r.parentNode&&1===r.parentNode.nodeType){var i=mt(r);if(i){var o=r.localName?r.localName.replace(i+":",""):r.nodeName,l=i+":"+z(o);fr.push({library:i,element:r,fullName:l,widget:o,vmodels:t,name:"widget"}),avalon.components[l]&&avalon.component(l)}}ft(n,t),n.msHasEvent&&avalon.fireDom(n,"datasetchanged",{bubble:n.msHasEvent});break;case 3:Ln.test(n.nodeValue)&&vt(n,t,a)}}function ft(e,t,a){var r=e.getAttribute("ms-skip");if(!e.getAttributeNode)return n("warning "+e.tagName+" no getAttributeNode method");var i=e.getAttributeNode("ms-important"),o=e.getAttributeNode("ms-controller");if("string"!=typeof r){if(a=i||o){var l=avalon.vmodels[a.value];if(!l)return;t=a===i?[l]:[l].concat(t);var s=a.name;e.removeAttribute(s),avalon(e).removeClass(s),rt(e,l)}lt(e,t)}}function dt(e){if(e.indexOf("|")>0){var t=e.replace(sr,function(e){return Array(e.length+1).join("1")}),n=t.replace(lr,"ᄢ㍄").indexOf("|");if(n>-1)return{type:"text",filters:e.slice(n).trim(),expr:e.slice(0,n)}}return{type:"text",expr:e,filters:""}}function pt(e){for(var t,n,a=[],r=0;;){if(n=e.indexOf(Mn,r),-1===n)break;if(t=e.slice(r,n),t&&a.push({expr:t}),r=n+Mn.length,n=e.indexOf(jn,r),-1===n)break;t=e.slice(r,n),t&&a.push(dt(t,r)),r=n+jn.length}return t=e.slice(r),t&&a.push({expr:t}),a}function vt(e,t,n){var a=[],r=pt(e.data);if(r.length){for(var i,o=0;i=r[o++];){var l=Wt.createTextNode(i.expr);i.type&&(i.expr=i.expr.replace(Ya,function(){return i.oneTime=!0,""}),i.element=l,i.filters=i.filters.replace(or,function(){return i.type="html",""}),i.pos=1e3*n+o,a.push(i)),cn.appendChild(l)}e.parentNode.replaceChild(cn,e),a.length&&it(a,t)}}function ht(e,t){if(t)for(var n,a=0;n=e[a++];)if(n.hasOwnProperty(t)&&"object"==typeof n[t]){var r=n[t];return r.$model||r}return{}}function mt(e){if(e.scopeName&&"HTML"!==e.scopeName)return e.scopeName;var t=e.nodeName.toLowerCase(),n=t.indexOf(":");return n>0?t.slice(0,n):void 0}function yt(e){return null==e?"":e}function gt(e,t,n){return t.param.replace(Kt,function(a){var r=avalon.duplexHooks[a];r&&"function"==typeof r[n]&&(e=r[n](e,t))}),e}function bt(){for(var e=Cr.length-1;e>=0;e--){var t=Cr[e];t()===!1&&Cr.splice(e,1)}Cr.length||clearInterval(wr)}function $t(e,t,n){if(e.setSelectionRange)t=e.selectionStart,n=e.selectionEnd;else if(document.selection&&document.selection.createRange){var a=document.selection.createRange();t=0-a.duplicate().moveStart("character",-1e5),n=t+a.text.length}return{start:t,end:n}}function xt(e,t,n){e.value&&!e.readOnly&&(e.createTextRange?setTimeout(function(){var n=e.createTextRange();n.collapse(!0),n.moveStart("character",t),n.select()},17):(e.selectionStart=t,e.selectionEnd=n))}function wt(e,t){if(!e||1!==e.nodeType)return null;if(t)var n=t.effectName,a=t.effectDriver;else n=e.getAttribute("data-effect-name"),a=e.getAttribute("data-effect-driver");if(!n||!a)return null;var r=Or.pop()||new Nt;return r.el=e,r.driver=a,r.useCss="j"!==a,r.useCss&&(t&&avalon(e).addClass(t.effectClass),r.cssEvent="t"===a?Nr:Tr),r.name=n,r.callbacks=avalon.effects[n]||{},r}function Ct(e,t){var n=e.getAttribute("data-effect-name");if(n){t.effectName=n,t.effectDriver=e.getAttribute("data-effect-driver");var a=+e.getAttribute("data-effect-stagger");t.effectLeaveStagger=+e.getAttribute("data-effect-leave-stagger")||a,t.effectEnterStagger=+e.getAttribute("data-effect-enter-stagger")||a,t.effectClass=e.className||0/0}}function kt(e){return e.replace(/^[\S]/g,function(e){return e.toUpperCase()})}function Nt(){}function Tt(e,t){var n=e.callbacks[t+"Class"];return"string"==typeof n?n:"function"==typeof n?n():e.name+"-"+t}function Et(e,t,n){var a=e.callbacks[t];a&&a.call(e,e.el,n)}function At(e,t,n){var a=e.templateCache&&e.templateCache[t];if(a){for(var r,i=Wt.createDocumentFragment();r=a.firstChild;)i.appendChild(r);return i}return avalon.parseHTML(n)}function _t(e){for(var t=Wt.createDocumentFragment(),n=0,a=e.length;a>n;n++)t.appendChild(e[n]);return t}function St(e,t,n){for(var a,i=0;a=e[i++];)a.className===n.effectClass&&avalon.effect.apply(a,t,r,r,n)}function Ot(e,t,n){return e?setTimeout(t,++n*e):t(),n}function Mt(e,t){for(var n=cn.cloneNode(!1),a=e,i=a.nodeValue,o=t&&Math.max(+t.staggerIndex,0),l=avalon.slice(a.parentNode.childNodes),s=l.indexOf(a);;){var c=l[--s];if(!c||0===String(c.nodeValue).indexOf(i))break;t&&c.className===t.effectClass?(e=c,function(e){t.staggerIndex=Ot(t.effectLeaveStagger,function(){avalon.effect.apply(e,0,r,function(){n.appendChild(e)},t)},o)}(c)):n.insertBefore(c,n.firstChild)}return n.appendChild(a),n}function jt(e,t,n,a,r){var i=e.template.cloneNode(!0),o=avalon.slice(i.childNodes);i.appendChild(n.$anchor),r&&t.appendChild(i);var l=[n].concat(e.vmodels),s={nodes:o,vmodels:l,content:i};a.push(s)}function Lt(e){var t="object"===e.xtype?Ft:Dt,n=t(e),a=n.$anchor||(n.$anchor=e.element.cloneNode(!1));return a.nodeValue=e.signature,n.$outer=e.$outer,n}function Dt(e,t){for(var n=e.param||"el",a=0,r=Br.length;r>a;a++){var i=Br[a];if(i&&i.hasOwnProperty(n)){Br.splice(a,1),t=i;break}}return t||(t=Ht(n)),t}function Ht(e){var t={$outer:{},$index:0,$oldIndex:0,$anchor:null,$first:!1,$last:!1,$remove:avalon.noop};t[e]=0/0;var n={$last:1,$first:1,$index:1};n[e]=1;var a=x(t,{force:n});return a.$id=dn("$proxy$each"),a}function Pt(e,t,n){if("array"===n){e.$remove=function(){t.$repeat.removeAt(e.$index)};var a=t.param;e.$watch(a,function(n){var a=e.$index;t.$repeat[a]=n})}else e.$watch("$val",function(n){t.$repeat[e.$key]=n})}function Ft(){return qr.pop()||Rt()}function Rt(){var e=x({$key:"",$val:0/0,$index:0,$oldIndex:0,$outer:{},$anchor:null},{force:{$key:1,$val:1,$index:1}});return e.$id=dn("$proxy$with"),e}function Bt(e,t,n){var a=e[t];if(a){var r=0===a.$id.indexOf("$proxy$each")?Br:qr;a.$outer={};for(var i in a.$events){var o=a.$events[i];Array.isArray(o)&&(o.length=0,i===n?a[n]=0/0:"$val"===i&&(a.$val=0/0))}r.unshift(a)>h.maxRepeatSize&&r.pop(),delete e[t]}}function qt(e,t){var n="_"+e;if(!qt[n]){var a=Wt.createElement(e);sn.appendChild(a),t=ln?getComputedStyle(a,null).display:a.currentStyle.display,sn.removeChild(a),qt[n]=t}return qt[n]}function Vt(e,t,n,a){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var r=isFinite(+e)?+e:0,i=isFinite(+t)?Math.abs(t):3,o=a||",",l=n||".",s="",c=function(e,t){var n=Math.pow(10,t);return""+(Math.round(e*n)/n).toFixed(t)};return s=(i?c(r,i):""+Math.round(r)).split("."),s[0].length>3&&(s[0]=s[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,o)),(s[1]||"").length<i&&(s[1]=s[1]||"",s[1]+=new Array(i-s[1].length+1).join("0")),s.join(l)}function It(){try{sn.doScroll("left"),Zr()}catch(e){setTimeout(It)}}var zt=new Date-0,Wt=e.document,Xt=Wt.getElementsByTagName("head")[0],Yt=Xt.insertBefore(document.createElement("avalon"),Xt.firstChild);Yt.innerHTML="X<style id='avalonStyle'>.avalonHide{ display: none!important }</style>",Yt.setAttribute("ms-skip","1"),Yt.className="avalonHide";var Gt=/\[native code\]/,Ut="$"+zt,Jt={},Zt=/[^, ]+/g,Kt=/\w+/g,Qt=/^\[object SVG\w*Element\]$/,en=/^\[object (?:Window|DOMWindow|global)\]$/,tn=Object.prototype,nn=tn.hasOwnProperty,an=tn.toString,rn=Array.prototype,on=rn.slice,ln=e.dispatchEvent,sn=Wt.documentElement,cn=Wt.createDocumentFragment(),un=Wt.createElement("div"),fn={};"Boolean Number String Function Array Date RegExp Object Error".replace(Zt,function(e){fn["[object "+e+"]"]=e.toLowerCase()});var dn=function(e){return e=e||"avalon",String(Math.random()+Math.random()).replace(/\d\.\d{4}/,e)},pn=o();avalon=function(e){return new avalon.init(e)},avalon.nextTick=new function(){function t(){for(var e=r.length,t=0;e>t;t++)r[t]();r=r.slice(e)}var n=e.setImmediate,a=e.MutationObserver;if(n)return n.bind(e);var r=[];if(a){var i=document.createTextNode("avalon");new a(t).observe(i,{characterData:!0});var o=!1;return function(e){r.push(e),o=!o,i.data=o}}return function(e){setTimeout(e,4)}},avalon.init=function(e){this[0]=this.element=e},avalon.fn=avalon.prototype=avalon.init.prototype,avalon.type=function(e){return null==e?String(e):"object"==typeof e||"function"==typeof e?fn[an.call(e)]||"object":typeof e};var vn="object"==typeof alert?function(e){try{return/^\s*\bfunction\b/.test(e+"")}catch(t){return!1}}:function(e){return"[object Function]"===an.call(e)};avalon.isFunction=vn,avalon.isWindow=function(e){return e?e==e.document&&e.document!=e:!1},l(e)&&(avalon.isWindow=l);var hn;for(hn in avalon({}))break;var mn="0"!==hn;avalon.isPlainObject=function(e,t){if(!e||"object"!==avalon.type(e)||e.nodeType||avalon.isWindow(e))return!1;try{if(e.constructor&&!nn.call(e,"constructor")&&!nn.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}if(mn)for(t in e)return nn.call(e,t);for(t in e);return void 0===t||nn.call(e,t)},Gt.test(Object.getPrototypeOf)&&(avalon.isPlainObject=function(e){return"[object Object]"===an.call(e)&&Object.getPrototypeOf(e)===tn}),avalon.mix=avalon.fn.mix=function(){var e,t,n,a,r,i,o=arguments[0]||{},l=1,s=arguments.length,c=!1;for("boolean"==typeof o&&(c=o,o=arguments[1]||{},l++),"object"==typeof o||vn(o)||(o={}),l===s&&(o=this,l--);s>l;l++)if(null!=(e=arguments[l]))for(t in e){n=o[t];try{a=e[t]}catch(u){continue}o!==a&&(c&&a&&(avalon.isPlainObject(a)||(r=Array.isArray(a)))?(r?(r=!1,i=n&&Array.isArray(n)?n:[]):i=n&&avalon.isPlainObject(n)?n:{},o[t]=avalon.mix(c,i,a)):void 0!==a&&(o[t]=a))}return o},avalon.mix({rword:Zt,subscribers:Ut,version:1.55,ui:{},log:n,slice:ln?function(e,t,n){return on.call(e,t,n)}:function(e,t,n){var a=[],r=e.length;if(void 0===n&&(n=r),"number"==typeof n&&isFinite(n)){t=s(t,r),n=s(n,r);for(var i=t;n>i;++i)a[i-t]=e[i]}return a},noop:r,error:function(e,t){throw(t||Error)(e)},oneObject:i,range:function(e,t,n){n||(n=1),null==t&&(t=e||0,e=0);for(var a=-1,r=Math.max(0,Math.ceil((t-e)/n)),i=new Array(r);++a<r;)i[a]=e,e+=n;return i},eventHooks:{},bind:function(e,t,n,a){var r=avalon.eventHooks,i=r[t];"object"==typeof i&&(t=i.type||t,a=i.phase||!!a,n=i.fn?i.fn(e,n):n);var o=ln?n:function(t){n.call(e,v(t))};return ln?e.addEventListener(t,o,a):e.attachEvent("on"+t,o),o},unbind:function(e,t,n,a){var i=avalon.eventHooks,o=i[t],l=n||r;"object"==typeof o&&(t=o.type||t,a=o.phase||!!a),ln?e.removeEventListener(t,l,a):e.detachEvent("on"+t,l)},css:function(e,t,n){e instanceof avalon&&(e=e[0]);var a,r=/[_-]/.test(t)?z(t):t;if(t=avalon.cssName(r)||r,void 0===n||"boolean"==typeof n){a=ya[r+":get"]||ya["@:get"],"background"===t&&(t="backgroundColor");var i=a(e,t);return n===!0?parseFloat(i)||0:i}if(""===n)e.style[t]="";else{if(null==n||n!==n)return;isFinite(n)&&!avalon.cssNumber[r]&&(n+="px"),a=ya[r+":set"]||ya["@:set"],a(e,t,n)}},each:function(e,t){if(e){var n=0;if(c(e))for(var a=e.length;a>n&&t(n,e[n])!==!1;n++);else for(n in e)if(e.hasOwnProperty(n)&&t(n,e[n])===!1)break}},getWidgetData:function(e,t){var n=avalon(e).data(),a={};for(var r in n)0===r.indexOf(t)&&(a[r.replace(t,"").replace(/\w/,function(e){return e.toLowerCase()})]=n[r]);return a},Array:{ensure:function(e,t){return-1===e.indexOf(t)?e.push(t):void 0},removeAt:function(e,t){return!!e.splice(t,1).length},remove:function(e,t){var n=e.indexOf(t);return~n?avalon.Array.removeAt(e,n):!1}}});var yn=avalon.bindingHandlers={},gn=avalon.bindingExecutors={},bn=avalon.directives={};avalon.directive=function(e,t){return yn[e]=t.init=t.init||r,gn[e]=t.update=t.update||r,bn[e]=t};var $n=new function(){function e(e){this.size=0,this.limit=e,this.head=this.tail=void 0,this._keymap={}}var t=e.prototype;return t.put=function(e,t){var n={key:e,value:t};return this._keymap[e]=n,this.tail?(this.tail.newer=n,n.older=this.tail):this.head=n,this.tail=n,this.size===this.limit?this.shift():this.size++,t},t.shift=function(){var e=this.head;e&&(this.head=this.head.newer,this.head.older=e.newer=e.older=this._keymap[e.key]=void 0,delete this._keymap[e.key])},t.get=function(e){var t=this._keymap[e];if(void 0!==t)return t===this.tail?t.value:(t.newer&&(t===this.head&&(this.head=t.newer),t.newer.older=t.older),t.older&&(t.older.newer=t.newer),t.newer=void 0,t.older=this.tail,this.tail&&(this.tail.newer=t),this.tail=t,t.value)},e};if(!"司徒正美".trim){var xn=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;String.prototype.trim=function(){return this.replace(xn,"")}}var wn=!{toString:null}.propertyIsEnumerable("toString"),Cn=function(){}.propertyIsEnumerable("prototype"),kn=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Nn=kn.length;if(Object.keys||(Object.keys=function(e){var t=[],n=Cn&&"function"==typeof e;if("string"==typeof e||e&&e.callee)for(var a=0;a<e.length;++a)t.push(String(a));else for(var r in e)n&&"prototype"===r||!nn.call(e,r)||t.push(String(r));if(wn)for(var i=e.constructor,o=i&&i.prototype===e,l=0;Nn>l;l++){var s=kn[l];o&&"constructor"===s||!nn.call(e,s)||t.push(s)}return t}),Array.isArray||(Array.isArray=function(e){return"[object Array]"===an.call(e)}),r.bind||(Function.prototype.bind=function(e){if(arguments.length<2&&void 0===e)return this;var t=this,n=arguments;return function(){var a,r=[];for(a=1;a<n.length;a++)r.push(n[a]);for(a=0;a<arguments.length;a++)r.push(arguments[a]);return t.apply(e,r)}}),Gt.test([].map)||avalon.mix(rn,{indexOf:function(e,t){var n=this.length,a=~~t;for(0>a&&(a+=n);n>a;a++)if(this[a]===e)return a;return-1},lastIndexOf:function(e,t){var n=this.length,a=null==t?n-1:t;for(0>a&&(a=Math.max(0,n+a));a>=0;a--)if(this[a]===e)return a;return-1},forEach:u("","_",""),filter:u("r=[],j=0,","if(_)r[j++]=this[i]","return r"),map:u("r=[],","r[i]=_","return r"),some:u("","if(_)return true","return false"),every:u("","if(!_)return false","return true")}),avalon.contains=f,Wt.contains||(Wt.contains=function(e){return f(Wt,e)}),e.SVGElement){Wt.createTextNode("x").contains||(Node.prototype.contains=function(e){return!!(16&this.compareDocumentPosition(e))});var Tn="http://www.w3.org/2000/svg",En=Wt.createElementNS(Tn,"svg");En.innerHTML='<circle cx="50" cy="50" r="40" fill="red" />',Qt.test(En.firstChild)||Object.defineProperties(SVGElement.prototype,{outerHTML:{enumerable:!0,configurable:!0,get:d,set:function(e){var t=this.tagName.toLowerCase(),n=this.parentNode,a=avalon.parseHTML(e);if("svg"===t)n.insertBefore(a,this);else{var r=Wt.createDocumentFragment();p(a,r),n.insertBefore(r,this)}n.removeChild(this)}},innerHTML:{enumerable:!0,configurable:!0,get:function(){var e=this.outerHTML,t=new RegExp("<"+this.nodeName+'\\b(?:(["\'])[^"]*?(\\1)|[^>])*>',"i"),n=new RegExp("</"+this.nodeName+">$","i");return e.replace(t,"").replace(n,"")},set:function(e){if(avalon.clearHTML){avalon.clearHTML(this);var t=avalon.parseHTML(e);p(t,this)}}}})}!sn.outerHTML&&e.HTMLElement&&HTMLElement.prototype.__defineGetter__("outerHTML",d);var An=/^(?:mouse|contextmenu|drag)|click/,_n=avalon.eventHooks;if("onmouseenter"in sn||avalon.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){_n[e]={type:t,fn:function(t,n){return function(a){var r=a.relatedTarget;return r&&(r===t||16&t.compareDocumentPosition(r))?void 0:(delete a.type,a.type=e,n.call(t,a))}}}}),avalon.each({AnimationEvent:"animationend",WebKitAnimationEvent:"webkitAnimationEnd"},function(t,n){e[t]&&!_n.animationend&&(_n.animationend={type:n})}),"oninput"in Wt.createElement("input")||(_n.input={type:"propertychange",deel:function(e,t){return function(n){return"value"===n.propertyName?(n.type="input",t.call(e,n)):void 0}}}),void 0===Wt.onmousewheel){var Sn=void 0!==Wt.onwheel?"wheel":"DOMMouseScroll",On="wheel"===Sn?"deltaY":"detail";_n.mousewheel={type:Sn,fn:function(e,t){return function(n){n.wheelDeltaY=n.wheelDelta=n[On]>0?-120:120,n.wheelDeltaX=0,Object.defineProperty&&Object.defineProperty(n,"type",{value:"mousewheel"}),t.call(e,n)}}}}var Mn,jn,Ln,Dn,Hn,Pn=/[-.*+?^${}()|[\]\/\\]/g,Fn={interpolate:function(e){if(Mn=e[0],jn=e[1],Mn===jn){throw new SyntaxError("openTag!==closeTag")}h.openTag=Mn,h.closeTag=jn;var t=m(Mn),n=m(jn);Ln=new RegExp(t+"(.*?)"+n),Dn=new RegExp(t+"(.*?)"+n,"g"),Hn=new RegExp(t+".*?"+n+"|\\sms-")}};h.async=!0,h.debug=!0,h.plugins=Fn,h.plugins.interpolate(["{{","}}"]),h.paths={},h.shim={},h.maxRepeatSize=100,avalon.config=h;var Rn=avalon.vmodels={};avalon.define=function(e){var t=e.$id;t||n("warning: vm必须指定$id");var a=x(e);return a.$id=t,Rn[t]=a};var Bn=i("$id,$watch,$fire,$events,$model,$skipArray,$active,$pathname,$up,$track,$accessors,$ups"),qn=Object.defineProperty,Vn=!0;try{qn({},"_",{value:"x"});var In=Object.defineProperties}catch(zn){Vn=!1}var Wn=Gt.test(Object.key)?Object.key:function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&!Bn[n]&&t.push(n);return t},Xn={get:function(){return _(this)},set:r,enumerable:!1,configurable:!0};if(!Vn&&("__defineGetter__"in avalon&&(qn=function(e,t,n){return"value"in n&&(e[t]=n.value),"get"in n&&e.__defineGetter__(t,n.get),"set"in n&&e.__defineSetter__(t,n.set),e},In=function(e,t){for(var n in t)t.hasOwnProperty(n)&&qn(e,n,t[n]);return e}),pn)){var Yn={};e.execScript(["Function parseVB(code)"," ExecuteGlobal(code)","End Function"].join("\n"),"VBScript"),In=function(t,n,a){var r=[];r.push("\r\n Private [__data__], [__proxy__]"," Public Default Function [__const__](d"+zt+", p"+zt+")"," Set [__data__] = d"+zt+": set [__proxy__] = p"+zt," Set [__const__] = Me"," End Function");var i={};for(t in n)i[t]=!0,r.push(" Public Property Let ["+t+"](val"+zt+")",' Call [__proxy__](Me,[__data__], "'+t+'", val'+zt+")"," End Property"," Public Property Set ["+t+"](val"+zt+")",' Call [__proxy__](Me,[__data__], "'+t+'", val'+zt+")"," End Property"," Public Property Get ["+t+"]"," On Error Resume Next"," Set["+t+'] = [__proxy__](Me,[__data__],"'+t+'")'," If Err.Number <> 0 Then"," ["+t+'] = [__proxy__](Me,[__data__],"'+t+'")'," End If"," On Error Goto 0"," End Property");
|
2
|
+
for(t in a)i[t]!==!0&&(i[t]=!0,r.push(" Public ["+t+"]"));for(t in Bn)i[t]!==!0&&(i[t]=!0,r.push(" Public ["+t+"]"));r.push(" Public [hasOwnProperty]"),r.push("End Class");var o=r.join("\r\n"),l=Yn[o];l||(l=dn("VBClass"),e.parseVB("Class "+l+o),e.parseVB(["Function "+l+"Factory(a, b)"," Dim o"," Set o = (New "+l+")(a, b)"," Set "+l+"Factory = o","End Function"].join("\r\n")),Yn[o]=l);var s=e[l+"Factory"](n,S);return s}}var Gn=["push","pop","shift","unshift","splice"],Un=Array.prototype,Jn={notify:function(){g.call(this.$up,this.$pathname)},set:function(e,t){if(e>>>0===e&&this[e]!==t){if(e>this.length)throw Error(e+"set方法的第一个参数不能大于原数组长度");g.call(this.$up,this.$pathname+".*",[t,this[e]]),this.splice(e,1,t)}},contains:function(e){return-1!==this.indexOf(e)},ensure:function(e){return this.contains(e)||this.push(e),this},pushArray:function(e){return this.push.apply(this,e)},remove:function(e){return this.removeAt(this.indexOf(e))},removeAt:function(e){return e>>>0===e?this.splice(e,1):[]},size:function(){return this._.length},removeAll:function(e){if(Array.isArray(e))for(var t=this.length-1;t>=0;t--)-1!==e.indexOf(this[t])&&(Zn.call(this.$track,t,1),Zn.call(this,t,1));else if("function"==typeof e)for(t=this.length-1;t>=0;t--){var n=this[t];e(n,t)&&(Zn.call(this.$track,t,1),Zn.call(this,t,1))}else Zn.call(this.$track,0,this.length),Zn.call(this,0,this.length);ln||(this.$model=_(this)),this.notify(),this._.length=this.length},clear:function(){return this.removeAll()}},Zn=Un.splice;Gn.forEach(function(e){var t=Un[e];Jn[e]=function(){for(var n=[],a=0,r=arguments.length;r>a;a++)n[a]=T(arguments[a],0,1,1);var i=t.apply(this,n);return j(this.$track,e,n),ln||(this.$model=_(this)),this.notify(),this._.length=this.length,i}}),"sort,reverse".replace(Zt,function(e){Jn[e]=function(){var t=this.concat(),n=this,a=Math.random(),r=[],i=!1;Un[e].apply(n,arguments);for(var o=0,l=t.length;l>o;o++){var s=n[o],c=t[o];if(s===c)r.push(o);else{var u=t.indexOf(s);r.push(u),t[u]=a,i=!0}}return i&&(O(this.$track,r),ln||(this.$model=_(this)),this.notify()),this}});var Kn=function(){var e,t=[];return{begin:function(n){t.push(e),e=n},end:function(){e=t.pop()},collectDependency:function(t){e&&e.callback(t)}}}();avalon.injectBinding=function(e){e.handler=e.handler||bn[e.type].update||r,e.update=function(){var t=!1;e.getter||(t=!0,Kn.begin({callback:function(t){L(t,e)}}),e.getter=et(e.expr,e.vmodels,e),e.observers.forEach(function(t){t.v.$watch(t.p,e)}),delete e.observers);try{var a,r,i=e.fireArgs;if(delete e.fireArgs,i?(a=i[0],r=i[1]):a="on"===e.type?e.getter+"":e.getter.apply(0,e.args),r="undefined"==typeof r?e.oldValue:r,e._filters&&(a=Gr.$filter.apply(0,[a].concat(e._filters))),e.signature){var o=avalon.type(a);if("array"!==o&&"object"!==o)throw Error("warning:"+e.expr+"只能是对象或数组");e.xtype=o;var l=D(e.proxies||[],o),s=a.$track||("array"===o?M(a.length):Object.keys(a));e.track=s,l!==s.join(";")&&(e.handler(a,r),e.oldValue=1)}else(Array.isArray(a)?a.length===(r&&r.length):1)?"oldValue"in e&&a===r||(e.handler(a,r),e.oldValue=a):(e.handler(a,r),e.oldValue=a.concat())}catch(c){delete e.getter,n("warning:exception throwed in [avalon.injectBinding] ",c);var u=e.element;u&&3===u.nodeType&&(u.nodeValue=Mn+(e.oneTime?"::":"")+e.expr+jn)}finally{t&&Kn.end()}},e.update()};var Qn=0,ea=avalon.$$subscribers=[],ta=new Date,na={},aa={area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],col:[2,"<table><colgroup>","</colgroup></table>"],legend:[1,"<fieldset>","</fieldset>"],option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],tr:[2,"<table>","</table>"],td:[3,"<table><tr>","</tr></table>"],g:[1,'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">',"</svg>"],_default:ln?[0,"",""]:[1,"X<div>","</div>"]};aa.th=aa.td,aa.optgroup=aa.option,aa.tbody=aa.tfoot=aa.colgroup=aa.caption=aa.thead,String("circle,defs,ellipse,image,line,path,polygon,polyline,rect,symbol,text,use").replace(Zt,function(e){aa[e]=aa.g});var ra=/<([\w:]+)/,ia=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,oa=ln?/[^\d\D]/:/(<(?:script|link|style|meta|noscript))/gi,la=i(["","text/javascript","text/ecmascript","application/ecmascript","application/javascript"]),sa=/<(?:tb|td|tf|th|tr|col|opt|leg|cap|area)/,ca=Wt.createElement("script"),ua=/<|&#?\w+;/;avalon.parseHTML=function(e){var t=cn.cloneNode(!1);if("string"!=typeof e)return t;if(!ua.test(e))return t.appendChild(Wt.createTextNode(e)),t;e=e.replace(ia,"<$1></$2>").trim();var n,a,r=(ra.exec(e)||["",""])[1].toLowerCase(),i=aa[r]||aa._default,o=un;ln||(e=e.replace(oa,"<br class=msNoScope>$1")),o.innerHTML=i[1]+e+i[2];var l=o.getElementsByTagName("script");if(l.length)for(var s,c=0;s=l[c++];)la[s.type]&&(a=ca.cloneNode(!1),rn.forEach.call(s.attributes,function(e){e&&e.specified&&(a[e.name]=e.value,a.setAttribute(e.name,e.value))}),a.text=s.text,s.parentNode.replaceChild(a,s));if(!ln){var u="X<div>"===i[1]?o.lastChild.firstChild:o.lastChild;if(u&&"TABLE"===u.tagName&&"tbody"!==r)for(l=u.childNodes,c=0;s=l[c++];)if("TBODY"===s.tagName&&!s.innerHTML){u.removeChild(s);break}l=o.getElementsByTagName("br");for(var f=l.length;s=l[--f];)"msNoScope"===s.className&&s.parentNode.removeChild(s);for(l=o.all,c=0;s=l[c++];)q(s)&&V(s)}for(c=i[0];c--;o=o.lastChild);for(;n=o.firstChild;)t.appendChild(n);return t},avalon.innerHTML=function(e,t){if(!ln&&!oa.test(t)&&!sa.test(t))try{return void(e.innerHTML=t)}catch(n){}var a=this.parseHTML(t);this.clearHTML(e).appendChild(a)},avalon.clearHTML=function(e){for(e.textContent="";e.firstChild;)e.removeChild(e.firstChild);return e};var fa={_toString:function(){var e=this.node,t=e.className,n="string"==typeof t?t:t.baseVal;return n.split(/\s+/).join(" ")},_contains:function(e){return(" "+this+" ").indexOf(" "+e+" ")>-1},_add:function(e){this.contains(e)||this._set(this+" "+e)},_remove:function(e){this._set((" "+this+" ").replace(" "+e+" "," "))},__set:function(e){e=e.trim();var t=this.node;Qt.test(t)?t.setAttribute("class",e):t.className=e}};"add,remove".replace(Zt,function(e){avalon.fn[e+"Class"]=function(t){var n=this[0];return t&&"string"==typeof t&&n&&1===n.nodeType&&t.replace(/\S+/g,function(t){W(n)[e](t)}),this}}),avalon.fn.mix({hasClass:function(e){var t=this[0]||{};return 1===t.nodeType&&W(t).contains(e)},toggleClass:function(e,t){for(var n,a=0,r=String(e).split(/\s+/),i="boolean"==typeof t;n=r[a++];){var o=i?t:!this.hasClass(n);this[o?"addClass":"removeClass"](n)}return this},attr:function(e,t){return 2===arguments.length?(this[0].setAttribute(e,t),this):this[0].getAttribute(e)},data:function(e,t){switch(e="data-"+I(e||""),arguments.length){case 2:return this.attr(e,t),this;case 1:var n=this.attr(e);return X(n);case 0:var a={};return rn.forEach.call(this[0].attributes,function(t){t&&(e=t.name,e.indexOf("data-")||(e=z(e.slice(5)),a[e]=X(t.value)))}),a}},removeData:function(e){return e="data-"+I(e),this[0].removeAttribute(e),this},css:function(e,t){if(avalon.isPlainObject(e))for(var n in e)avalon.css(this,n,e[n]);else var a=avalon.css(this,e,t);return void 0!==a?a:this},position:function(){var e,t,n=this[0],a={top:0,left:0};if(n)return"fixed"===this.css("position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),"HTML"!==e[0].tagName&&(a=e.offset()),a.top+=avalon.css(e[0],"borderTopWidth",!0),a.left+=avalon.css(e[0],"borderLeftWidth",!0),a.top-=e.scrollTop(),a.left-=e.scrollLeft()),{top:t.top-a.top-avalon.css(n,"marginTop",!0),left:t.left-a.left-avalon.css(n,"marginLeft",!0)}},offsetParent:function(){for(var e=this[0].offsetParent;e&&"static"===avalon.css(e,"position");)e=e.offsetParent;return avalon(e||sn)},bind:function(e,t,n){return this[0]?avalon.bind(this[0],e,t,n):void 0},unbind:function(e,t,n){return this[0]&&avalon.unbind(this[0],e,t,n),this},val:function(e){var t=this[0];if(t&&1===t.nodeType){var n=0===arguments.length,a=n?":get":":set",r=_a[U(t)+a];if(r)var i=r(t,e);else{if(n)return(t.value||"").replace(/\r/g,"");t.value=e}}return n?i:this}});var da=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,pa=/^[\],:{}\s]*$/,va=/(?:^|:|,)(?:\s*\[)+/g,ha=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,ma=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g;avalon.parseJSON=e.JSON?JSON.parse:function(e){if("string"==typeof e){if(e=e.trim(),e&&pa.test(e.replace(ha,"@").replace(ma,"]").replace(va,"")))return new Function("return "+e)();avalon.error("Invalid JSON: "+e)}return e},avalon.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){avalon.fn[e]=function(n){var a=this[0]||{},r=Y(a),i="scrollTop"===e;return arguments.length?void(r?r.scrollTo(i?avalon(r).scrollLeft():n,i?n:avalon(r).scrollTop()):a[e]=n):r?t in r?r[t]:sn[e]:a[e]}});var ya=avalon.cssHooks={},ga=["","-webkit-","-o-","-moz-","-ms-"],ba={"float":ln?"cssFloat":"styleFloat"};if(avalon.cssNumber=i("animationIterationCount,columnCount,order,flex,flexGrow,flexShrink,fillOpacity,fontWeight,lineHeight,opacity,orphans,widows,zIndex,zoom"),avalon.cssName=function(e,t,n){if(ba[e])return ba[e];t=t||sn.style;for(var a=0,r=ga.length;r>a;a++)if(n=z(ga[a]+e),n in t)return ba[e]=n;return null},ya["@:set"]=function(e,t,n){try{e.style[t]=n}catch(a){}},e.getComputedStyle)ya["@:get"]=function(e,t){if(!e||!e.style)throw new Error("getComputedStyle要求传入一个节点 "+e);var n,a=getComputedStyle(e,null);return a&&(n="filter"===t?a.getPropertyValue(t):a[t],""===n&&(n=e.style[t])),n},ya["opacity:get"]=function(e){var t=ya["@:get"](e,"opacity");return""===t?"1":t};else{var $a=/^-?(?:\d*\.)?\d+(?!px)[^\d\s]+$/i,xa=/^(top|right|bottom|left)$/,wa=/alpha\([^)]*\)/i,Ca=!!e.XDomainRequest,ka="DXImageTransform.Microsoft.Alpha",Na={thin:Ca?"1px":"2px",medium:Ca?"3px":"4px",thick:Ca?"5px":"6px"};ya["@:get"]=function(e,t){var n=e.currentStyle,a=n[t];if($a.test(a)&&!xa.test(a)){var r=e.style,i=r.left,o=e.runtimeStyle.left;e.runtimeStyle.left=n.left,r.left="fontSize"===t?"1em":a||0,a=r.pixelLeft+"px",r.left=i,e.runtimeStyle.left=o}return"medium"===a&&(t=t.replace("Width","Style"),"none"===n[t]&&(a="0px")),""===a?"auto":Na[a]||a},ya["opacity:set"]=function(e,t,n){var a=e.style,r=isFinite(n)&&1>=n?"alpha(opacity="+100*n+")":"",i=a.filter||"";a.zoom=1,a.filter=(wa.test(i)?i.replace(wa,r):i+" "+r).trim(),a.filter||a.removeAttribute("filter")},ya["opacity:get"]=function(e){var t=e.filters.alpha||e.filters[ka],n=t&&t.enabled?t.opacity:100;return n/100+""}}"top,left".replace(Zt,function(e){ya[e+":get"]=function(t){var n=ya["@:get"](t,e);return/px$/.test(n)?n:avalon(t).position()[e]+"px"}});var Ta={position:"absolute",visibility:"hidden",display:"block"},Ea=/^(none|table(?!-c[ea]).+)/;"Width,Height".replace(Zt,function(e){var t=e.toLowerCase(),n="client"+e,a="scroll"+e,r="offset"+e;ya[t+":get"]=function(t,n,a){var i=-4;"number"==typeof a&&(i=a),n="Width"===e?["Left","Right"]:["Top","Bottom"];var o=t[r];return 2===i?o+avalon.css(t,"margin"+n[0],!0)+avalon.css(t,"margin"+n[1],!0):(0>i&&(o=o-avalon.css(t,"border"+n[0]+"Width",!0)-avalon.css(t,"border"+n[1]+"Width",!0)),-4===i&&(o=o-avalon.css(t,"padding"+n[0],!0)-avalon.css(t,"padding"+n[1],!0)),o)},ya[t+"&get"]=function(e){var n=[];G(e,n);for(var a,r=ya[t+":get"](e),i=0;a=n[i++];){e=a.node;for(var o in a)"string"==typeof a[o]&&(e.style[o]=a[o])}return r},avalon.fn[t]=function(i){var o=this[0];if(0===arguments.length){if(o.setTimeout)return o["inner"+e]||o.document.documentElement[n]||o.document.body[n];if(9===o.nodeType){var l=o.documentElement;return Math.max(o.body[a],l[a],o.body[r],l[r],l[n])}return ya[t+"&get"](o)}return this.css(t,i)},avalon.fn["inner"+e]=function(){return ya[t+":get"](this[0],void 0,-2)},avalon.fn["outer"+e]=function(e){return ya[t+":get"](this[0],void 0,e===!0?2:0)}}),avalon.fn.offset=function(){var e=this[0],t={left:0,top:0};if(!e||!e.tagName||!e.ownerDocument)return t;var n=e.ownerDocument,a=n.body,r=n.documentElement,i=n.defaultView||n.parentWindow;if(!avalon.contains(r,e))return t;e.getBoundingClientRect&&(t=e.getBoundingClientRect());var o=r.clientTop||a.clientTop,l=r.clientLeft||a.clientLeft,s=Math.max(i.pageYOffset||0,r.scrollTop,a.scrollTop),c=Math.max(i.pageXOffset||0,r.scrollLeft,a.scrollLeft);return{top:t.top+s-o,left:t.left+c-l}};var Aa=/^<option(?:\s+\w+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+))?)*\s+value[\s=]/i,_a={"option:get":pn?function(e){return Aa.test(e.outerHTML)?e.value:e.text.trim()}:function(e){return e.value},"select:get":function(e,t){for(var n,a=e.options,r=e.selectedIndex,i=_a["option:get"],o="select-one"===e.type||0>r,l=o?null:[],s=o?r+1:a.length,c=0>r?s:o?r:0;s>c;c++)if(n=a[c],(n.selected||c===r)&&!n.disabled){if(t=i(n),o)return t;l.push(t)}return l},"select:set":function(e,t,n){t=[].concat(t);for(var a,r=_a["option:get"],i=0;a=e.options[i++];)(a.selected=t.indexOf(r(a))>-1)&&(n=!0);n||(e.selectedIndex=-1)}},Sa={},Oa=["break,case,catch,continue,debugger,default,delete,do,else,false","finally,for,function,if,in,instanceof,new,null,return,switch,this","throw,true,try,typeof,var,void,while,with","abstract,boolean,byte,char,class,const,double,enum,export,extends","final,float,goto,implements,import,int,interface,long,native","package,private,protected,public,short,static,super,synchronized","throws,transient,volatile","arguments,let,yield,undefined"].join(",");Oa.replace(/\w+/g,function(e){Sa[e]=!0});var Ma=/[a-z_$]/i,ja=/[\s\uFEFF\xA0]/,La=/(\$proxy\$[a-z]+)\d+$/,Da=new $n(218),Ha=new $n(128);avalon.normalizeExpr=tt,avalon.parseExprProxy=et;var Pa=/\)\s*$/,Fa=/\)\s*\|/g,Ra=/\|\s*([$\w]+)/g,Ba=/"\s*\["/g,qa=/"\s*\(/g,Va={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},Ia=e.JSON&&JSON.stringify||function(e){return'"'+e.replace(/[\\\"\x00-\x1f]/g,function(e){var t=Va[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"'};avalon.scan=function(e,t){e=e||sn;var n=t?[].concat(t):[];ft(e,n)};var za=i("area,base,basefont,br,col,command,embed,hr,img,input,link,meta,param,source,track,wbr,noscript,script,style,textarea".toUpperCase()),Wa=function(e,t,n){var a=e.getAttribute(t);if(a)for(var r,i=0;r=n[i++];)if(r.hasOwnProperty(a)&&"function"==typeof r[a])return r[a]},Xa=pn&&e.MutationObserver?function(e){for(var t,n=e.firstChild;n;){var a=n.nextSibling;3===n.nodeType?t?(t.nodeValue+=n.nodeValue,e.removeChild(n)):t=n:t=null,n=a}}:0,Ya=/^\s*::/,Ga=/ms-(\w+)-?(.*)/,Ua=i("animationend,blur,change,input,click,dblclick,focus,keydown,keypress,keyup,mousedown,mouseenter,mouseleave,mousemove,mouseout,mouseover,mouseup,scan,scroll,submit"),Ja=i("value,title,alt,checked,selected,disabled,readonly,enabled,href,src"),Za=/^if|widget|repeat$/,Ka=/^each|with|html|include$/;if(!ln)var Qa=new $n(512),er=/\s+([^=\s]+)(?:=("[^"]*"|'[^']*'|[^\s>]+))?/g,tr=/^['"]/,nr=/<\w+\b(?:(["'])[^"]*?(\1)|[^>])*>/i,ar=/&/g,rr=function(e){var t=e.outerHTML;if("</"===t.slice(0,2)||!t.trim())return[];var n,a,r=t.match(nr)[0],i=[],o=Qa.get(r);if(o)return o;for(;n=er.exec(r);){a=n[2],a&&(a=(tr.test(a)?a.slice(1,-1):a).replace(ar,"&"));var l=n[1].toLowerCase();match=l.match(Ga);var s={name:l,specified:!0,value:a||""};i.push(s)}return Qa.put(r,i)};var ir=/^(ms-\S+|data-\S+|on[a-z]+|id|style|class|tabindex)$/,or=/\|\s*html(?:\b|$)/,lr=/\|\|/g,sr=/(['"])(\\\1|.)+?\1/g,cr=function(){this.queue=[]};cr.prototype={render:function(e){if(!this.locked){this.locked=e?sn.offsetHeight+10:1;var t=this;avalon.nextTick(function(){t.flush()})}},flush:function(){for(var e,t=0;e=this.queue[t++];)e.update&&e.update();this.locked=0,this.queue=[]}};var ur=new cr,fr=[],dr=[],pr={$construct:function(){return avalon.mix.apply(null,arguments)},$ready:r,$init:r,$dispose:r,$container:null,$childReady:r,$replace:!1,$extend:null,$$template:function(e){return e}};avalon.components={},avalon.component=function(t,n){n&&(avalon.components[t]=avalon.mix({},pr,n));for(var a,r=0;a=fr[r];r++)t===a.fullName&&(fr.splice(r,1),r--,function(n,a,r,i){var o=1,l=n.library,s=avalon.libraries[l]||pr,c=st(r),u=ht(n.vmodels,c.config||n.widget),f=c.$id||c.identifier||dn(i);delete c.config,delete c.$id,delete c.identifier;var d={},p=avalon.components[a.$extend];p?(avalon.mix(!0,d,p),d=p.$construct.call(r,d,{},{})):avalon.mix(!0,d,a),d=avalon.components[t].$construct.call(r,d,u,c),d.$refs={},d.$id=f;var v=d.$slot,h=d.$replace,m=d.$container,y=d.$template;delete d.$slot,delete d.$replace,delete d.$container,delete d.$construct;var g=avalon.define(d)||{};r.msResolved=1,g.$init(g,r),s.$init(g,r);for(var b,$,x=r.childNodes,w={},C=0;$=x[C++];){var k=1===$.nodeType&&$.getAttribute("slot")||v;k&&(w[k]?w[k].push($):w[k]=[$])}g.$$template&&(avalon.clearHTML(r),r.innerHTML=g.$$template(y));for(C in w)if(g.hasOwnProperty(C)){var N=w[C];if(N.length){for(var T=cn.cloneNode(!0),E=0;b=N[E++];)T.appendChild(b);g[C]=T}w[C]=null}w=null;var A=r.firstChild;h&&(A=r.firstChild,r.parentNode.replaceChild(A,r),A.msResolved=1,r=n.element=A),m&&m.appendChild(r),avalon.fireDom(r,"datasetchanged",{library:l,vm:g,childReady:1});var _=0,S=avalon.bind(r,"datasetchanged",function(t){if(t.childReady&&t.library===l&&(o+=t.childReady,g!==t.vm&&(g.$refs[t.vm.$id]=t.vm,-1===t.childReady&&(_++,g.$childReady(g,r,t)),t.stopPropagation())),0===o){var a=setTimeout(function(){clearTimeout(a),g.$ready(g,r,n.vmodels),s.$ready(g,r,n.vmodels)},_?Math.max(17*_,100):17);avalon.unbind(r,"datasetchanged",S),n.rollback=function(){try{g.$dispose(g,r),s.$dispose(g,r)}catch(e){}delete avalon.vmodels[g.$id]},P(n,dr),e.chrome&&r.addEventListener("DOMNodeRemovedFromDocument",function(){setTimeout(F)})}});if(ft(r,[g].concat(n.vmodels)),avalon.vmodels[g.$id]=g,r.childNodes.length)var O=setTimeout(function(){clearTimeout(O),avalon.fireDom(r,"datasetchanged",{library:l,vm:g,childReady:-1})},17);else avalon.fireDom(r,"datasetchanged",{library:l,vm:g,childReady:-1})}(a,avalon.components[t],a.element,a.widget))},avalon.fireDom=function(e,t,n){if(Wt.createEvent){var a=Wt.createEvent("Events");a.initEvent(t,!0,!0,n),avalon.mix(a,n),e.dispatchEvent(a)}else sn.contains(e)&&(a=Wt.createEventObject(),avalon.mix(a,n),e.fireEvent("on"+t,a))},avalon.libraries=[],avalon.library=function(e,t){Wt.namespaces&&Wt.namespaces.add(e,"http://www.w3.org/1999/xhtml"),avalon.libraries[e]=avalon.mix({$init:r,$ready:r,$dispose:r},t||{})},avalon.library("ms");var vr=["autofocus,autoplay,async,allowTransparency,checked,controls","declare,disabled,defer,defaultChecked,defaultSelected","contentEditable,isMap,loop,multiple,noHref,noResize,noShade","open,readOnly,selected"].join(","),hr={};vr.replace(Zt,function(e){hr[e.toLowerCase()]=e});var mr={"accept-charset":"acceptCharset","char":"ch",charoff:"chOff","class":"className","for":"htmlFor","http-equiv":"httpEquiv"},yr=["accessKey,bgColor,cellPadding,cellSpacing,codeBase,codeType,colSpan","dateTime,defaultValue,frameBorder,longDesc,maxLength,marginWidth,marginHeight","rowSpan,tabIndex,useMap,vSpace,valueType,vAlign"].join(",");yr.replace(Zt,function(e){mr[e.toLowerCase()]=e});var gr=avalon.directive("attr",{init:function(e){if(e.expr=tt(e.expr.trim()),"include"===e.type){var t=e.element;Ct(t,e),e.includeRendered=Wa(t,"data-include-rendered",e.vmodels),e.includeLoaded=Wa(t,"data-include-loaded",e.vmodels);var n=e.includeReplace=!!avalon(t).data("includeReplace");avalon(t).data("includeCache")&&(e.templateCache={}),e.start=Wt.createComment("ms-include"),e.end=Wt.createComment("ms-include-end"),n?(e.element=e.end,e._element=t,t.parentNode.insertBefore(e.start,t),t.parentNode.insertBefore(e.end,t.nextSibling)):(t.insertBefore(e.start,t.firstChild),t.appendChild(e.end))}},update:function(t){var n=this.element,a=this.param;if("href"===a||"src"===a){if("string"!=typeof t||sn.hasAttribute||(t=t.replace(/&/g,"&")),n[a]=t,e.chrome&&"EMBED"===n.tagName){var r=n.parentNode,i=document.createComment("ms-src");r.replaceChild(i,n),r.replaceChild(n,i)}}else{var o=t===!1||null===t||void 0===t;!ln&&mr[a]&&(a=mr[a]);var l=hr[a];if("boolean"==typeof n[l]&&(n[l]=!!t,t||(o=!0)),o)return n.removeAttribute(a);var s=Qt.test(n)?!1:Wt.namespaces&&q(n)?!0:a in n.cloneNode(!1);s?n[a]=t+"":n.setAttribute(a,t)}}});"title,alt,src,value,css,include,href".replace(Zt,function(e){bn[e]=gr}),avalon.directive("class",{init:function(e){var t=e.param,a=e.type;if(!t||isFinite(t)?(e.param="",bn.effect.init(e)):(n("ms-"+a+'-xxx="yyy"这种用法已经过时,请使用ms-'+a+'="xxx:yyy"'),e.expr="["+Ia(t)+","+e.expr+"]",e.oldStyle=t),"hover"===a||"active"===a){if(!e.hasBindEvent){var r=e.element,i=avalon(r),o="mouseenter",l="mouseleave";if("active"===a){r.tabIndex=r.tabIndex||-1,o="mousedown",l="mouseup";var s=i.bind("mouseleave",function(){e.toggleClass&&i.removeClass(e.newClass)})}}var c=i.bind(o,function(){e.toggleClass&&i.addClass(e.newClass)}),u=i.bind(l,function(){e.toggleClass&&i.removeClass(e.newClass)});e.rollback=function(){i.unbind("mouseleave",s),i.unbind(o,c),i.unbind(l,u)},e.hasBindEvent=!0}},update:function(e){var t=this,n=avalon(this.element);t.newClass=e[0],t.toggleClass=!!e[1],t.oldClass&&t.newClass!==t.oldClass&&n.removeClass(t.oldClass),t.oldClass=t.newClass,"class"===t.type&&(t.oldStyle?n.toggleClass(t.oldStyle,!!e[1]):n.toggleClass(t.newClass,t.toggleClass))}}),"hover,active".replace(Zt,function(e){bn[e]=bn["class"]}),avalon.directive("css",{init:bn.attr.init,update:function(e){avalon(this.element).css(this.param,e)}}),avalon.directive("data",{priority:100,update:function(e){var t=this.element,n="data-"+this.param;e&&"object"==typeof e?t[n]=e:t.setAttribute(n,String(e))}});{var br=/^(?:checkbox|radio)$/,$r=/^(?:radio|checked)$/,xr=/^(file|button|reset|submit|checkbox|radio|range)$/;avalon.directive("duplex",{priority:2e3,init:function(e,t){function a(t){e.changed.call(this,t,e)}function o(){d=!0}function l(){d=!1}var s=e.element,c=e.vmodels;e.changed=Wa(s,"data-duplex-changed",c)||r;var u=[],f=i("string,number,boolean,checked");"radio"===s.type&&""===e.param&&(e.param="checked"),e.param.replace(Kt,function(a){br.test(s.type)&&$r.test(a)&&("radio"===a&&n("ms-duplex-radio已经更名为ms-duplex-checked"),a="checked",e.isChecked=!0,e.xtype="radio"),"bool"===a?(a="boolean",n("ms-duplex-bool已经更名为ms-duplex-boolean")):"text"===a&&(a="string",n("ms-duplex-text已经更名为ms-duplex-string")),f[a]&&(t=!0),avalon.Array.ensure(u,a)}),t||u.push("string"),e.param=u.join("-"),e.xtype||(e.xtype="SELECT"===s.tagName?"select":"checkbox"===s.type?"checkbox":"radio"===s.type?"radio":/^change/.test(s.getAttribute("data-duplex-event"))?"change":"input"),e.bound=function(t,n){s.addEventListener?s.addEventListener(t,n,!1):s.attachEvent("on"+t,n);var a=e.rollback;e.rollback=function(){s.avalonSetter=null,avalon.unbind(s,t,n),a&&a()}};var d=!1,p=function(){var t=s.value;if(!d&&t!==e.oldValue&&null!==e.pipe){var r=e.pipe(t,e,"get");try{e.setter(r),a.call(s,r)}catch(i){n(i)}}};switch(e.xtype){case"radio":e.bound("click",function(){var t=e.pipe(s.value,e,"get");try{e.setter(t),a.call(s,t)}catch(r){n(r)}});break;case"checkbox":e.bound(ln?"change":"click",function(){var t=s.checked?"ensure":"remove",r=e.getter.apply(0,e.vmodels);Array.isArray(r)||(n("ms-duplex应用于checkbox上要对应一个数组"),r=[r]);var i=e.pipe(s.value,e,"get");avalon.Array[t](r,i),a.call(s,r)});break;case"change":e.bound("change",p);break;case"input":pn?(pn>8?e.bound("input",p):e.bound("propertychange",function(e){"value"===e.propertyName&&p()}),e.bound("dragend",function(){setTimeout(function(){p()},17)})):(e.bound("input",p),e.bound("compositionstart",o),e.bound("compositionend",l),e.bound("DOMAutoComplete",p));break;case"select":e.bound("change",function(){var t=avalon(s).val();if(t=Array.isArray(t)?t.map(function(t){return e.pipe(t,e,"get")}):e.pipe(t,e,"get"),t+""!==e.oldValue)try{e.setter(t)}catch(a){n(a)}}),e.bound("datasetchanged",function(t){if("selectDuplex"===t.bubble){var n=e._value,r=Array.isArray(n)?n.map(String):n+"";avalon(s).val(r),s.oldValue=r+"",a.call(s,r)}})}"input"!==e.xtype||xr.test(s.type)||("hidden"!==s.type&&(e.bound("focus",function(){s.msFocus=!0}),e.bound("blur",function(){s.msFocus=!1})),s.avalonSetter=p,kr(function(){if(s.contains(s))this.msFocus||e.oldValue===s.value||p();else if(!s.msRetain)return!1}))},update:function(e){var t,n=this.element,a=this;if(!this.init){for(var r in avalon.vmodels){var i=avalon.vmodels[r];i.$fire("avalon-ms-duplex-init",a)}var o=a.pipe||(a.pipe=gt);o(null,a,"init"),this.init=1}switch(this.xtype){case"input":case"change":if(t=this.pipe(e,this,"set"),t!==this.oldValue){var l=!1;if(n.msFocus)try{var s=$t(n);s.start===s.end&&(s=s.start,l=!0)}catch(c){}n.value=this.oldValue=t,l&&xt(n,s,s)}break;case"radio":t=a.isChecked?!!e:e+""===n.value,6===pn?setTimeout(function(){n.defaultChecked=t,n.checked=t},31):n.checked=t;break;case"checkbox":var u=[].concat(e);t=this.pipe(n.value,this,"get"),n.checked=u.indexOf(t)>-1;break;case"select":a._value=e,n.msHasEvent?avalon.fireDom(n,"datasetchanged",{bubble:n.msHasEvent}):n.msHasEvent="selectDuplex"}"select"!==a.xtype&&a.changed.call(n,t,a)}})}pn&&avalon.bind(Wt,"selectionchange",function(){var e=Wt.activeElement;e&&"function"==typeof e.avalonSetter&&e.avalonSetter()}),avalon.duplexHooks={checked:{get:function(e,t){return!t.oldValue}},string:{get:function(e){return e},set:yt},"boolean":{get:function(e){return"true"===e},set:yt},number:{get:function(e,t){var n=parseFloat(e+"");if(-e===-n)return n;var a=/strong|medium|weak/.exec(t.element.getAttribute("data-duplex-number"))||["medium"];switch(a[0]){case"strong":return 0;case"medium":return""===e?"":0;case"weak":return e}},set:yt}};var wr,Cr=[];avalon.tick=function(e){1===Cr.push(e)&&(wr=setInterval(bt,60))};var kr=r;!new function(){function e(e){t[this.tagName].call(this,e),!this.msFocus&&this.avalonSetter&&this.oldValue!==e&&this.avalonSetter()}try{var t={},n=HTMLInputElement.prototype,a=HTMLTextAreaElement.prototype,r=HTMLInputElement.prototype;Object.getOwnPropertyNames(r),t.INPUT=Object.getOwnPropertyDescriptor(n,"value").set,Object.defineProperty(n,"value",{set:e}),t.TEXTAREA=Object.getOwnPropertyDescriptor(a,"value").set,Object.defineProperty(a,"value",{set:e})}catch(i){kr=avalon.tick}},avalon.directive("effect",{priority:5,init:function(e){var t,n,a=e.expr,r=a.replace(Dn,function(e){return e.replace(/./g,"0")}).indexOf(":");-1===r?(t=a,n=!0):(t=a.slice(0,r),n=a.slice(r+1)),t=Ln.test(a)?tt(t):Ia(t),e.expr="["+t+","+n+"]"},update:function(t){var n=t[0],a=this.element;if(a.getAttribute("data-effect-name")!==n){a.removeAttribute("data-effect-driver");var r=a.style,i=e.getComputedStyle?e.getComputedStyle(a):null,o=!1;if(i&&(Er||Ar)){var l=r[_r]||i[_r];l&&"0s"!==l&&(a.setAttribute("data-effect-driver","t"),o=!0),o||(l=r[Sr]||i[Sr],l&&"0s"!==l&&(a.setAttribute("data-effect-driver","a"),o=!0))}o||avalon.effects[n]&&(a.setAttribute("data-effect-driver","j"),o=!0),o&&a.setAttribute("data-effect-name",n)}}}),avalon.effects={},avalon.effect=function(e,t){avalon.effects[e]=t};var Nr,Tr,Er=!1,Ar=!1,_r=avalon.cssName("transition-duration"),Sr=avalon.cssName("animation-duration");!new function(){var t,n={TransitionEvent:"transitionend",WebKitTransitionEvent:"webkitTransitionEnd",OTransitionEvent:"oTransitionEnd",otransitionEvent:"otransitionEnd"};for(var a in n){if(e[a]){t=n[a];break}try{{document.createEvent(a)}t=n[a];break}catch(r){}}"string"==typeof t&&(Er=!0,Nr=t),n={AnimationEvent:"animationend",WebKitAnimationEvent:"webkitAnimationEnd"};var i;for(a in n)if(e[a]){i=n[a];break}"string"==typeof i&&(Er=!0,Tr=i)};var Or=[],Mr=new cr;Nt.prototype={contrustor:Nt,enterClass:function(){return Tt(this,"enter")},leaveClass:function(){return Tt(this,"leave")},actionFun:function(e,t,n){if(!document.hidden){var a=this,r=a.el,i="leave"===e;e=i?"leave":"enter";var o=i?"enter":"leave";Et(a,"abort"+kt(o)),Et(a,"before"+kt(e)),i||t(r);var l=function(o){r.removeEventListener(a.cssEvent,a.cssCallback),i?(t(r),avalon(r).removeClass(a.cssClass)):"a"===a.driver&&avalon(r).removeClass(a.cssClass),o!==!0&&(Et(a,"after"+kt(e)),n&&n(r)),a.dispose()};a.useCss?(a.cssCallback&&a.cssCallback(!0),a.cssClass=Tt(a,e),a.cssCallback=l,a.update=function(){r.addEventListener(a.cssEvent,a.cssCallback),i||"t"!==a.driver||avalon(r).removeClass(a.cssClass)},avalon(r).addClass(a.cssClass),Mr.render(!0),Mr.queue.push(a)):Et(a,e,l)}},enter:function(){this.actionFun.apply(this,["enter"].concat(avalon.slice(arguments)))},leave:function(){this.actionFun.apply(this,["leave"].concat(avalon.slice(arguments)))},dispose:function(){this.update=this.cssCallback=null,Or.unshift(this)>100&&Or.pop()}};var jr=function(e,t){var n=on.call(arguments,0);"function"!=typeof n[2]&&n.splice(2,0,r),"function"!=typeof n[3]&&n.splice(3,0,r);var a=n[2],i=n[3],o=n[4],l=wt(e,o);if(!l)return a(),i(),!1;var s=t?"enter":"leave";l[s](a,i)};avalon.mix(avalon.effect,{apply:jr,append:function(e,t,n,a){return jr(e,1,function(){t.appendChild(e)},n,a)},before:function(e,t,n,a){return jr(e,1,function(){t.parentNode.insertBefore(e,t)},n,a)},remove:function(e,t,n,a){return jr(e,0,function(){e.parentNode===t&&t.removeChild(e)},n,a)}}),avalon.directive("html",{update:function(e){var t=this,n=this.element,a=1!==n.nodeType,r=a?n.parentNode:n;if(r){if(e=null==e?"":e,3===n.nodeType){var i=dn("html");r.insertBefore(Wt.createComment(i),n),t.element=Wt.createComment(i+":end"),r.replaceChild(t.element,n),n=t.element}if("object"!=typeof e)var o=avalon.parseHTML(String(e));else if(11===e.nodeType)o=e;else if(1===e.nodeType||e.item){var l=1===e.nodeType?e.childNodes:e.item;for(o=cn.cloneNode(!0);l[0];)o.appendChild(l[0])}if(l=avalon.slice(o.childNodes),a){for(var s=n.nodeValue.slice(0,-4);;){var c=n.previousSibling;if(!c||8===c.nodeType&&c.nodeValue===s)break;r.removeChild(c)}r.insertBefore(o,n)}else avalon.clearHTML(n).appendChild(o);ut(l,t.vmodels)}}}),avalon.directive("if",{priority:10,update:function(e){function t(){r.getAttribute(a.name)&&(r.removeAttribute(a.name),lt(r,a.vmodels)),a.rollback=null}var n,a=this,r=this.element,i=a.stamp=+new Date,o=function(){i===a.stamp&&(a.recoverNode=null)};a.recoverNode&&a.recoverNode();try{if(!r.parentNode)return;n=r.parentNode}catch(l){return}if(e){if(8===r.nodeType){var s=a.keep,c=avalon.effect.apply(s,1,function(){i===a.stamp&&(r.parentNode.replaceChild(s,r),r=a.element=s,s.getAttribute("_required")&&(r.required=!0,r.removeAttribute("_required")),r.querySelectorAll&&avalon.each(r.querySelectorAll("[_required=true]"),function(e){e.required=!0,e.removeAttribute("_required")}),t())},o);c=c===!1}c||t()}else if(1===r.nodeType){r.required===!0&&(r.required=!1,r.setAttribute("_required","true"));try{avalon.each(r.querySelectorAll(":required"),function(e){r.required=!1,e.setAttribute("_required","true")})}catch(l){}var u=a.element=Wt.createComment("ms-if"),f=r.nextSibling;a.recoverNode=function(){a.recoverNode=null,u.parentNode!==n&&(n.insertBefore(u,f),a.keep=r)},avalon.effect.apply(r,0,function(){a.recoverNode=null,i===a.stamp&&(r.parentNode.replaceChild(u,r),a.keep=r,Yt.appendChild(r),a.rollback=function(){r.parentNode===Yt&&Yt.removeChild(r)})},o)}}});var Lr=/<noscript.*?>(?:[\s\S]+?)<\/noscript>/gim,Dr=/<noscript.*?>([\s\S]+?)<\/noscript>/im,Hr=function(){return new(e.XMLHttpRequest||ActiveXObject)("Microsoft.XMLHTTP")},Pr=avalon.templateCache={};avalon.directive("include",{init:bn.attr.init,update:function(e){var t=this,a=this.element,r=t.vmodels,i=t.includeRendered,o=t.effectName&&t.effectClass,l=t.templateCache,s=t.includeReplace,c=t.includeLoaded,u=s?a.parentNode:a,f=t._element;t.recoverNodes=t.recoverNodes||avalon.noop;var d=function(n){var d=t._stamp=+new Date;if(c){var p=c.apply(u,[n].concat(r));"string"==typeof p&&(n=p)}i&&at(u,function(){i.call(u)},0/0);var v=t.includeLastID||"_default";t.includeLastID=e;var h=l&&l[v]||Wt.createElement(a.tagName||t._element.tagName);o&&(h.className=o,u.insertBefore(h,t.start)),(l||{})[v]=h;var m=t.recoverNodes();for(m&&u.insertBefore(m,t.end);;){var y=t.start.nextSibling;if(!y||y===h||y===t.end)break;h.appendChild(y)}avalon.effect.remove(h,u,function(){l&&d===t._stamp&&Yt.appendChild(h)},t);var g=u,b=avalon.noop,$=avalon.noop,x=At(t,e,n),w=avalon.slice(x.childNodes);s&&o?(g=f,g.innerHTML="",g.setAttribute("ms-skip","true"),u.insertBefore(g,t.end.nextSibling),b=function(){g.insertBefore(x,null)
|
3
|
+
},$=function(){t.recoverNodes=avalon.noop,d===t._stamp&&(x=_t(w),u.insertBefore(x,t.end),ut(w,r)),g.parentNode===u&&u.removeChild(g)},t.recoverNodes=function(){return t.recoverNodes=avalon.noop,_t(w)}):b=function(){u.insertBefore(x,t.end),ut(w,r)},avalon.effect.apply(g,"enter",b,$)};if("src"===t.param)if("string"==typeof Pr[e])avalon.nextTick(function(){d(Pr[e])});else if(Array.isArray(Pr[e]))Pr[e].push(d);else{var p=Hr();p.onreadystatechange=function(){if(4===p.readyState){var t=p.status;if(t>=200&&300>t||304===t||1223===t){for(var a,r=p.responseText,i=0;a=Pr[e][i++];)a(r);Pr[e]=r}else n("ms-include load ["+e+"] error")}},Pr[e]=[d],p.open("GET",e,!0),"withCredentials"in p&&(p.withCredentials=!0),p.setRequestHeader("X-Requested-With","XMLHttpRequest"),p.send(null)}else{var v=e&&1===e.nodeType?e:Wt.getElementById(e);if(v){if("NOSCRIPT"===v.tagName&&!v.innerHTML&&!v.fixIE78){p=Hr(),p.open("GET",location,!1),p.send(null);for(var h=Wt.getElementsByTagName("noscript"),m=(p.responseText||"").match(Lr)||[],y=m.length,g=0;y>g;g++){var b=h[g];b&&(b.style.display="none",b.fixIE78=(m[g].match(Dr)||[""," "])[1])}}avalon.nextTick(function(){d(v.fixIE78||v.value||v.innerText||v.innerHTML)})}}}});var Fr=/\(([^)]*)\)/,Rr=avalon.directive("on",{priority:3e3,init:function(e){var t=e.expr;e.type="on";var n=e.param.replace(/-\d+$/,"");if("function"==typeof Rr[n+"Hook"]&&Rr[n+"Hook"](e),t.indexOf("(")>0&&t.indexOf(")")>-1){var a=(t.match(Fr)||["",""])[1].trim();(""===a||"$event"===a)&&(t=t.replace(Fr,""))}e.expr=t},update:function(e){var t=this,n=this.element;e=function(e){var n=t.getter||r;return n.apply(this,t.args.concat(e))};var a=t.param.replace(/-\d+$/,"");if("scan"===a)e.call(n,{type:a});else if("function"==typeof t.specialBind)t.specialBind(n,e);else var i=avalon.bind(n,a,e);t.rollback=function(){"function"==typeof t.specialUnbind?t.specialUnbind():avalon.unbind(n,a,i)}}});avalon.directive("repeat",{priority:90,init:function(e){var t=e.type;e.cache={},e.enterCount=0;var n=e.element;if(1===n.nodeType){n.removeAttribute(e.name),Ct(n,e),e.param=e.param||"el",e.sortedCallback=Wa(n,"data-with-sorted",e.vmodels);var a=Wa(n,"data-"+t+"-rendered",e.vmodels),r=dn(t),i=Wt.createComment(r+":start"),o=e.element=Wt.createComment(r+":end");if(e.signature=r,e.start=i,e.template=cn.cloneNode(!1),"repeat"===t){var l=n.parentNode;l.replaceChild(o,n),l.insertBefore(i,o),e.template.appendChild(n)}else{for(;n.firstChild;)e.template.appendChild(n.firstChild);n.appendChild(i),n.appendChild(o),l=n}if(e.element=o,a)var s=avalon.bind(l,"datasetchanged",function(){a.apply(l,l.args),avalon.unbind(l,"datasetchanged",s),l.msRendered=a})}},update:function(e,t){var n=this,a=this.xtype;this.enterCount+=1;var r=!t;if(r){n.$outer={};var i="$key",o="$val";"array"===a&&(i="$first",o="$last");for(var l,s=0;l=n.vmodels[s++];)if(l.hasOwnProperty(i)&&l.hasOwnProperty(o)){n.$outer=l;break}}var c=this.track;if(n.sortedCallback){var u=n.sortedCallback.call($,c);u&&Array.isArray(u)&&(c=u)}var f="move";n.$repeat=e;var d=[],p=r&&cn.cloneNode(!1),v=[],m=this.param,y=avalon.mix({},this.cache),g=this.element,b=c.length,$=g.parentNode;for(s=0;b>s;s++){var x=c[s],w=y[x];if(w)d.push({}),y[x]=!0;else{if(w=Lt(this),w.$up=null,"array"===a){f="add",w.$id=x;var C=e[s];w[m]=C,Object(C)===C&&(C.$ups=C.$ups||{},C.$ups[m]=w)}else f="append",w.$key=x,w.$val=e[x];this.cache[x]=w;var k=w.$anchor||(w.$anchor=g.cloneNode(!1));k.nodeValue=this.signature,jt(n,p,w,d,r&&!n.effectDriver),Pt(w,n,a)}1===this.enterCount&&(w.$active=!1,w.$oldIndex=w.$index,w.$active=!0,w.$index=s),"array"===a?(w.$first=0===s,w.$last=s===b-1):w.$val=_(e[x]),v.push(w)}if(this.proxies=v,r&&!n.effectDriver)$.insertBefore(p,g),d.forEach(function(e){ut(e.nodes||[],e.vmodels),e.nodes=e.vmodels=null});else{var N=n.staggerIndex=0;for(x in y)y[x]!==!0&&(f="del",Mt(y[x].$anchor,n),Bt(this.cache,x,m),y[x]=null);for(s=0;b>s;s++){w=v[s],x="array"===a?w.$id:w.$key;var T=v[s-1],E=T?T.$anchor:n.start;y[x]?w.$index!==w.$oldIndex&&!function(e,t){N=Ot(n.effectEnterStagger,function(){var a=Mt(e.$anchor),r=avalon.slice(a.childNodes);$.insertBefore(a,t.nextSibling),St(r,1,n)},N)}(w,E):!function(e,t){var a=e.nodes,r=e.vmodels;a&&(N=Ot(n.effectEnterStagger,function(){$.insertBefore(e.content,t.nextSibling),ut(a,r),St(a,1,n)},N)),e.nodes=e.vmodels=null}(d[s],E)}}if(!e.$track)for(x in this.cache)Bt(this.cache,x,m);!function(e){$.args=e,$.msRendered&&$.msRendered.apply($,e)}(h.newWatch?arguments:[f]);var A=setTimeout(function(){clearTimeout(A),avalon.fireDom($,"datasetchanged",{bubble:$.msHasEvent})});this.enterCount-=1}}),"with,each".replace(Zt,function(e){bn[e]=avalon.mix({},bn.repeat,{priority:1400})});var Br=[],qr=[];avalon.directive("text",{update:function(e){var t=this.element;if(e=null==e?"":e,3===t.nodeType)try{t.data=e}catch(n){}else"textContent"in t?t.textContent=e:t.innerText=e}}),avalon.parseDisplay=qt,avalon.directive("visible",{init:function(e){Ct(e.element,e)},update:function(e){var t,n=this,a=this.element,r=!this.effectName;return this.stamp?(t=this.stamp=+new Date,void(e?avalon.effect.apply(a,1,function(){if(t===n.stamp){var e=a.getAttribute("data-effect-driver")||"a";r&&(a.style.display=n.display||""),("a"===e||"t"===e)&&"none"===avalon(a).css("display")&&(a.style.display=n.display||qt(a.nodeName))}}):avalon.effect.apply(a,0,function(){t===n.stamp&&(a.style.display="none")}))):(t=this.stamp=+new Date,void(e?(a.style.display=n.display||"","none"===avalon(a).css("display")&&(a.style.display=n.display=qt(a.nodeName))):a.style.display="none"))}});var Vr=/<script[^>]*>([\S\s]*?)<\/script\s*>/gim,Ir=/\s+(on[^=\s]+)(?:=("[^"]*"|'[^']*'|[^\s>]+))?/g,zr=/<\w+\b(?:(["'])[^"]*?(\1)|[^>])*>/gi,Wr={a:/\b(href)\=("javascript[^"]*"|'javascript[^']*')/gi,img:/\b(src)\=("javascript[^"]*"|'javascript[^']*')/gi,form:/\b(action)\=("javascript[^"]*"|'javascript[^']*')/gi},Xr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Yr=/([^\#-~| |!])/g,Gr=avalon.filters={uppercase:function(e){return e.toUpperCase()},lowercase:function(e){return e.toLowerCase()},truncate:function(e,t,n){return t=t||30,n="string"==typeof n?n:"...",e.length>t?e.slice(0,t-n.length)+n:String(e)},$filter:function(e){for(var t=1,n=arguments.length;n>t;t++){var a=arguments[t],r=avalon.filters[a[0]];if("function"==typeof r){var i=[e].concat(a.slice(1));e=r.apply(null,i)}}return e},camelize:z,sanitize:function(e){return e.replace(Vr,"").replace(zr,function(e){var t=e.toLowerCase().match(/<(\w+)\s/);if(t){var n=Wr[t[1]];n&&(e=e.replace(n,function(e,t,n){var a=n.charAt(0);return t+"="+a+"javascript:void(0)"+a}))}return e.replace(Ir," ").replace(/\s+/g," ")})},escape:function(e){return String(e).replace(/&/g,"&").replace(Xr,function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1);return"&#"+(1024*(t-55296)+(n-56320)+65536)+";"}).replace(Yr,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")},currency:function(e,t,n){return(t||"¥")+Vt(e,isFinite(n)?n:2)},number:Vt};!new function(){function e(e){return parseInt(e,10)||0}function t(e,t,n){var a="";for(0>e&&(a="-",e=-e),e=""+e;e.length<t;)e="0"+e;return n&&(e=e.substr(e.length-t)),a+e}function n(e,n,a,r){return function(i){var o=i["get"+e]();return(a>0||o>-a)&&(o+=a),0===o&&-12===a&&(o=12),t(o,n,r)}}function a(e,t){return function(n,a){var r=n["get"+e](),i=(t?"SHORT"+e:e).toUpperCase();return a[i][r]}}function r(e){var n=-1*e.getTimezoneOffset(),a=n>=0?"+":"";return a+=t(Math[n>0?"floor":"ceil"](n/60),2)+t(Math.abs(n%60),2)}function i(e,t){return e.getHours()<12?t.AMPMS[0]:t.AMPMS[1]}var o={yyyy:n("FullYear",4),yy:n("FullYear",2,0,!0),y:n("FullYear",1),MMMM:a("Month"),MMM:a("Month",!0),MM:n("Month",2,1),M:n("Month",1,1),dd:n("Date",2),d:n("Date",1),HH:n("Hours",2),H:n("Hours",1),hh:n("Hours",2,-12),h:n("Hours",1,-12),mm:n("Minutes",2),m:n("Minutes",1),ss:n("Seconds",2),s:n("Seconds",1),sss:n("Milliseconds",3),EEEE:a("Day"),EEE:a("Day",!0),a:i,Z:r},l=/((?:[^yMdHhmsaZE']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z))(.*)/,s=/^\/Date\((\d+)\)\/$/;Gr.date=function(t,n){var a,r,i=Gr.date.locate,c="",u=[];if(n=n||"mediumDate",n=i[n]||n,"string"==typeof t)if(/^\d+$/.test(t))t=e(t);else if(s.test(t))t=+RegExp.$1;else{var f=t.trim(),d=[0,0,0,0,0,0,0],p=new Date(0);f=f.replace(/^(\d+)\D(\d+)\D(\d+)/,function(t,n,a,r){var i=4===r.length?[r,n,a]:[n,a,r];return d[0]=e(i[0]),d[1]=e(i[1])-1,d[2]=e(i[2]),""});var v=p.setFullYear,h=p.setHours;f=f.replace(/[T\s](\d+):(\d+):?(\d+)?\.?(\d)?/,function(t,n,a,r,i){return d[3]=e(n),d[4]=e(a),d[5]=e(r),i&&(d[6]=Math.round(1e3*parseFloat("0."+i))),""});var m=0,y=0;f=f.replace(/Z|([+-])(\d\d):?(\d\d)/,function(t,n,a,r){return v=p.setUTCFullYear,h=p.setUTCHours,n&&(m=e(n+a),y=e(n+r)),""}),d[3]-=m,d[4]-=y,v.apply(p,d.slice(0,3)),h.apply(p,d.slice(3)),t=p}if("number"==typeof t&&(t=new Date(t)),"date"===avalon.type(t)){for(;n;)r=l.exec(n),r?(u=u.concat(r.slice(1)),n=u.pop()):(u.push(n),n=null);return u.forEach(function(e){a=o[e],c+=a?a(t,i):e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}};var c={AMPMS:{0:"上午",1:"下午"},DAY:{0:"星期日",1:"星期一",2:"星期二",3:"星期三",4:"星期四",5:"星期五",6:"星期六"},MONTH:{0:"1月",1:"2月",2:"3月",3:"4月",4:"5月",5:"6月",6:"7月",7:"8月",8:"9月",9:"10月",10:"11月",11:"12月"},SHORTDAY:{0:"周日",1:"周一",2:"周二",3:"周三",4:"周四",5:"周五",6:"周六"},fullDate:"y年M月d日EEEE",longDate:"y年M月d日",medium:"yyyy-M-d H:mm:ss",mediumDate:"yyyy-M-d",mediumTime:"H:mm:ss","short":"yy-M-d ah:mm",shortDate:"yy-M-d",shortTime:"ah:mm"};c.SHORTMONTH=c.MONTH,Gr.date.locate=c};var Ur,Jr=[],Zr=function(e){Ur=!0;var t=avalon.require;for(t&&t.checkDeps&&(modules["domReady!"].state=4,t.checkDeps());e=Jr.shift();)e(avalon)};if("complete"===Wt.readyState)setTimeout(Zr);else if(ln)Wt.addEventListener("DOMContentLoaded",Zr);else{Wt.attachEvent("onreadystatechange",function(){"complete"===Wt.readyState&&Zr()});try{var Kr=null===e.frameElement}catch(zn){}sn.doScroll&&Kr&&e.external&&It()}avalon.bind(e,"load",Zr),avalon.ready=function(e){Ur?e(avalon):Jr.push(e)},avalon.config({loader:!0}),avalon.ready(function(){avalon.scan(Wt.body)}),"function"==typeof define&&define.amd&&define("avalon",[],function(){return avalon});var Qr=e.avalon;return avalon.noConflict=function(t){return t&&e.avalon===avalon&&(e.avalon=Qr),avalon},void 0===t&&(e.avalon=avalon),avalon});
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: avalon-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- zj0713001
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-03 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: This gem provides javascript framework Avalon for your Rails 3+ application.
|
14
14
|
email:
|
@@ -34,9 +34,11 @@ files:
|
|
34
34
|
- vendor/assets/javascripts/avalon.mobile.min.js
|
35
35
|
- vendor/assets/javascripts/avalon.mobile.old.js
|
36
36
|
- vendor/assets/javascripts/avalon.mobile.shim.js
|
37
|
+
- vendor/assets/javascripts/avalon.mobile.shim.min.js
|
37
38
|
- vendor/assets/javascripts/avalon.modern.js
|
38
39
|
- vendor/assets/javascripts/avalon.modern.min.js
|
39
40
|
- vendor/assets/javascripts/avalon.modern.shim.js
|
41
|
+
- vendor/assets/javascripts/avalon.modern.shim.min.js
|
40
42
|
- vendor/assets/javascripts/avalon.shim.js
|
41
43
|
- vendor/assets/javascripts/avalon.shim.min.js
|
42
44
|
homepage: https://github.com/zj0713001/avalon-rails
|