diff --git a/src/lib/anot.js b/src/lib/anot.js
index a59eda4..252027b 100644
--- a/src/lib/anot.js
+++ b/src/lib/anot.js
@@ -1,8 +1,5221 @@
-/*==================================================
- * Anot normal version for future browsers
- * @authors yutent (yutent@doui.cc)
- * @date 2017-03-21 21:05:57
- * V2.0.0
- *
- ==================================================*/
- const _Anot=function(){const e={};let t=1024,n=0;window.VBArray&&(n=document.documentMode||(window.XMLHttpRequest?7:6));let r=T(),i=window.document,a=i.head;a.insertAdjacentHTML("afterbegin",'');let o=a.firstChild;function s(){console.log.apply(console,arguments)}function l(){return Object.create(null)}let c="$"+r,u={},f=/[^, ]+/g,p=/\w+/g,d=/^\[object SVG\w*Element\]$/,h=Object.prototype,v=h.hasOwnProperty,m=h.toString,y=Array.prototype,g=y.slice,b=window.dispatchEvent,w=i.documentElement,x=i.createDocumentFragment(),$=(i.createElement("div"),{"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regexp","[object Object]":"object","[object Error]":"error","[object AsyncFunction]":"asyncfunction","[object Promise]":"promise","[object Generator]":"generator","[object GeneratorFunction]":"generatorfunction"});function k(){}function C(e){return Function.apply(k,e)}function A(e,t){"string"==typeof e&&(e=e.match(f)||[]);let n={},r=void 0!==t?t:1;for(let t=0,i=e.length;t{e.resolve=t,e.reject=n}),e}),String.prototype.splice||Object.defineProperty(String.prototype,"splice",{value:function(e,t,n){let r=this.length,i=arguments.length;if(n=void 0===n?"":n,i<1)return this;if(e<0&&(e=Math.abs(e)>=r?0:r+e),1===i)return this.slice(0,e);return t-=0,this.slice(0,e)+n+this.slice(e+t)},enumerable:!1}),Date.prototype.getFullWeek||(Object.defineProperty(Date.prototype,"getFullWeek",{value:function(){let e=this.getFullYear(),t=new Date(e,0,1),n=t.getDay()||1,r=(this-t)/864e5;return Math.ceil((r+n)/7)},enumerable:!1}),Object.defineProperty(Date.prototype,"getWeek",{value:function(){let e=this.getDate(),t=this.getMonth(),n=this.getFullYear(),r=new Date(n,t,1).getDay();return Math.ceil((e+r)/7)},enumerable:!1})),Date.isDate||Object.defineProperty(Date,"isDate",{value:function(e){return!("object"!=typeof e||!e.getTime)},enumerable:!1}),Date.prototype.format||Object.defineProperty(Date.prototype,"format",{value:function(e){e=e||"Y-m-d H:i:s";let t,n={fullyear:this.getFullYear(),year:this.getYear(),fullweek:this.getFullWeek(),week:this.getWeek(),month:this.getMonth()+1,date:this.getDate(),day:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"][this.getDay()],hours:this.getHours(),minutes:this.getMinutes(),seconds:this.getSeconds()};n.g=n.hours>12?n.hours-12:n.hours,t={Y:n.fullyear,y:n.year,m:n.month<10?"0"+n.month:n.month,n:n.month,d:n.date<10?"0"+n.date:n.date,j:n.date,H:n.hours<10?"0"+n.hours:n.hours,h:n.g<10?"0"+n.g:n.g,G:n.hours,g:n.g,i:n.minutes<10?"0"+n.minutes:n.minutes,s:n.seconds<10?"0"+n.seconds:n.seconds,W:n.fullweek,w:n.week,D:n.day};for(let n in t)e=e.replace(new RegExp(n,"g"),t[n]);return e},enumerable:!1});let N=function(e){return new N.init(e)};N.nextTick=new function(){let e=window.setImmediate,t=window.MutationObserver;if(e)return e.bind(window);let n=[];if(t){let e=document.createTextNode("anot");new t(function(){let e=n.length;for(let t=0;t>>0)return!0}return!1}(e))for(let r=e.length;n1){if(!e)return;if(n=n||{},n=Object.assign({expires:"",path:"/",domain:document.domain,secure:""},n),"string"==this.type(t)&&""===t.trim()||null===t)return document.cookie=encodeURIComponent(e)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; domain="+n.domain+"; path="+n.path,!0;if(n.expires)switch(n.expires.constructor){case Number:n.expires=n.expires===1/0?"; expires=Fri, 31 Dec 9999 23:59:59 GMT":"; max-age="+n.expires;break;case String:n.expires="; expires="+n.expires;break;case Date:n.expires="; expires="+n.expires.toUTCString()}return document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)+n.expires+"; domain="+n.domain+"; path="+n.path+"; "+n.secure,!0}return e?decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null:document.cookie},search:function(e){e+="";let t=location.search;if(!e||!t)return null;t=(t=t.slice(1)).split("&");let n={};for(let e,r=0;e=t[r++];){let t=e.split("=");t[1]=t.length<2?null:t[1],t[1]=decodeURIComponent(t[1]),n.hasOwnProperty(t[0])?"object"==typeof n[t[0]]?n[t[0]].push(t[1]):(n[t[0]]=[n[t[0]]],n[t[0]].push(t[1])):n[t[0]]=t[1]}return n.hasOwnProperty(e)?n[e]:null},copy:function(e){if(!i.queryCommandSupported||!i.queryCommandSupported("copy"))return s("该浏览器不支持复制到粘贴板");let t=i.createElement("textarea");t.textContent=e,t.style.position="fixed",t.style.bottom="-1000px",i.body.appendChild(t),t.select();try{i.execCommand("copy")}catch(e){s("复制到粘贴板失败")}i.body.removeChild(t)}});let j=N.bindingHandlers={},O=N.bindingExecutors={},S=N.directives={};N.directive=function(e,t){return j[e]=t.init=t.init||k,O[e]=t.update=t.update||k,S[e]=t};let D=new function(){function e(e){this.size=0,this.limit=e,this.head=this.tail=void 0,this._keymap={}}let t=e.prototype;return t.put=function(e,t){let 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(){let 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){let 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(i.contains||(Node.prototype.contains=function(e){return!!(16&this.compareDocumentPosition(e))}),N.contains=function(e,t){try{for(;t=t.parentNode;)if(t===e)return!0;return!1}catch(e){return!1}},window.SVGElement){let e="http://www.w3.org/2000/svg",t=i.createElementNS(e,"svg");if(t.innerHTML='',!d.test(t.firstChild)){function L(t,n){if(t&&t.childNodes){let r=t.childNodes;for(let t,a=0;t=r[a++];)if(t.tagName){let r=i.createElementNS(e,t.tagName.toLowerCase());y.forEach.call(t.attributes,function(e){r.setAttribute(e.name,e.value)}),L(t,r),n.appendChild(r)}}}Object.defineProperties(SVGElement.prototype,{outerHTML:{enumerable:!0,configurable:!0,get:function(){return(new XMLSerializer).serializeToString(this)},set:function(e){let t=this.tagName.toLowerCase(),n=this.parentNode,r=N.parseHTML(e);if("svg"===t)n.insertBefore(r,this);else{let e=i.createDocumentFragment();L(r,e),n.insertBefore(e,this)}n.removeChild(this)}},innerHTML:{enumerable:!0,configurable:!0,get:function(){let 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(N.clearHTML){N.clearHTML(this),L(N.parseHTML(e),this)}}}})}}let M=N.eventHooks;function P(e){for(var t in e)if(v.call(e,t)){var n=e[t];"function"==typeof P.plugins[t]?P.plugins[t](n):"object"==typeof P[t]?N.mix(P[t],n):P[t]=n}return this}"onmouseenter"in w||N.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){M[e]={type:t,fix:function(t,n){return function(r){let i=r.relatedTarget;if(!i||i!==t&&!(16&t.compareDocumentPosition(i)))return delete r.type,r.type=e,n.call(t,r)}}}}),N.each({AnimationEvent:"animationend",WebKitAnimationEvent:"webkitAnimationEnd"},function(e,t){window[e]&&!M.animationend&&(M.animationend={type:t})}),void 0===i.onmousewheel&&(M.mousewheel={type:"wheel",fix:function(e,t){return function(n){n.wheelDeltaY=n.wheelDelta=n.deltaY>0?-120:120,n.wheelDeltaX=0,Object.defineProperty(n,"type",{value:"mousewheel"}),t.call(e,n)}}}),N.config=P;var H,R,B,F,I=/[-.*+?^${}()|[\]\/\\]/g;function q(e){return(e+"").replace(I,"\\$&")}var V={interpolate:function(e){if(H=e[0],R=e[1],H===R)throw new SyntaxError("openTag!==closeTag");P.openTag=H,P.closeTag=R;var t=q(H),n=q(R);B=new RegExp(t+"([\\s\\S]*)"+n),F=new RegExp(t+"([\\s\\S]*)"+n,"g"),new RegExp(t+"[\\s\\S]*"+n+"|\\s:")}};function W(e,n){var r=this.$events||(this.$events={}),a=r[e]||(r[e]=[]);if("function"==typeof n){var o=n;o.uuid="_"+ ++t,(n={element:w,type:"user-watcher",handler:k,vmodels:[this],expr:e,uuid:o.uuid}).wildcard=/\*/.test(e)}if(n.update)n.oneTime||N.Array.ensure(a,n);else{if(/\w\.*\B/.test(e)||"*"===e){n.getter=k;var s=this;n.update=function(){var e=this.fireArgs||[];e[2]&&n.handler.apply(s,e),delete this.fireArgs},a.sync=!0,N.Array.ensure(a,n)}else N.injectBinding(n);o&&(n.handler=o)}return function(){n.update=n.getter=n.handler=k,n.element=i.createElement("a")}}function U(e,n){var r=this.$events,i=null;if(r&&r[e]){n&&(n[2]=e);var a=r[e];if(function(e,n){if(!e)return;new Date-ce>444&&"object"==typeof e[0]&&pe();for(var r,i=[],a=[],o=0;r=e[o++];)"user-watcher"===r.type?i.push(r):a.push(r);if(P.async){for(xt.render(),o=0;r=a[o++];)if(r.update){r.uuid=r.uuid||"_"+ ++t;var s=r.uuid;xt.queue[s]||(xt.queue[s]="__",xt.queue.push(r))}}else for(o=0;r=a[o++];)r.update&&r.update();for(o=0;r=i[o++];)(n&&n[2]===r.expr||r.wildcard)&&(r.fireArgs=n),r.update()}(a,n),n&&r["*"]&&!/\./.test(e))for(var o,s=0;o=r["*"][s++];)try{o.handler.apply(this,n)}catch(e){}(i=this.$up)&&(this.$pathname&&U.call(i,this.$pathname+"."+e,n),U.call(i,"*."+e,n))}else{if(i=this.$up,this.$ups){for(var l in this.$ups)U.call(this.$ups[l],l+"."+e,n);return}if(i){var c=this.$pathname;""===c&&(c="*");var u=c+"."+e;a=u.split("."),n=n&&n.concat([u,e])||[u,e],-1===a.indexOf("*")?(U.call(i,u,n),a[1]="*",U.call(i,a.join("."),n)):U.call(i,u,n)}}}P.plugins=V,P.plugins.interpolate(["{{","}}"]),P.async=!0,P.paths={},P.shim={},P.maxRepeatSize=100;var z=A("$id,$watch,$fire,$events,$model,$active,$pathname,$up,$ups,$track,$accessors");function G(e,t){return(t=t||{}).watch=!0,X(e,t)}function X(e,t){if(!e||e.$id&&e.$accessors||e.nodeName&&e.nodeType>0)return e;var n,r=(t=t||u).force||u,i=t.old,a=i&&i.$accessors||u,o=new function(){},l={},c={},f=[],p=[],d={},h=e.state,v=e.computed,m=e.methods,y=e.props,g=e.watch,b=e.mounted;if(delete e.state,delete e.computed,delete e.methods,delete e.props,delete e.watch,e.skip&&(d=A(e.skip),delete e.skip),h)for(x in e.$id&&delete h.props,h){var w=h[x];z[x]||(c[x]=!0),"function"==typeof w||w&&w.nodeName&&w.nodeType>0||!r[x]&&("$"===(n=x).charAt(0)||"__"===n.slice(0,2)||z[n]||d[x])?f.push(x):Y(w)?(s("warning:计算属性建议放在[computed]对象中统一定义"),v[x]=w):(p.push(x),a[x]?l[x]=a[x]:l[x]=J(x,w))}if(v)for(var x in delete v.props,v)c[x]=!0,function(e,t){var n;"function"==typeof t&&(t={get:t,set:k}),"function"!=typeof t.set&&(t.set=k),l[e]={get:function(){return n=t.get.call(this)},set:function(r){var i,a=n;t.set.call(this,r),i=this[e],this.$fire&&i!==a&&this.$fire(e,i,a)},enumerable:!0,configurable:!0}}(x,v[x]);if(m)for(var x in delete m.props,m)c[x]=!0,f.push(x);if(y)for(var x in Z(o,"props",{}),c.props=!!e.$id,y)o.props[x]=y[x];if(Object.assign(e,h,m),l.$model=ee,o=Object.defineProperties(o,l,e),f.forEach(function(t){o[t]=e[t]}),Z(o,"$id","anonymous"),Z(o,"$up",i?i.$up:null),Z(o,"$track",Object.keys(c)),Z(o,"$active",!1),Z(o,"$pathname",i?i.$pathname:""),Z(o,"$accessors",l),Z(o,"$events",{}),Z(o,"$refs",{}),Z(o,"$children",[]),Z(o,"$components",[]),Z(o,"hasOwnProperty",function(e){return!0===c[e]}),Z(o,"$mounted",b),t.watch&&(Z(o,"$watch",function(){return W.apply(o,arguments)}),Z(o,"$fire",function(e,t){if(0===e.indexOf("all!")){var n=e.slice(4);for(var r in N.vmodels){(i=N.vmodels[r]).$fire&&i.$fire.apply(i,[n,t])}}else if(0===e.indexOf("child!")){n="props."+e.slice(6);for(var r in o.$children){var i;(i=o.$children[r]).$fire&&i.$fire.apply(i,[n,t])}}else U.call(o,e,[t])})),p.forEach(function(e){var t=i&&i[e],n=o[e]=h[e];n&&"object"==typeof n&&!Date.isDate(n)&&(n.$up=o,n.$pathname=e),U.call(o,e,[n,t])}),g)for(var $ in delete g.props,g)if(Array.isArray(g[$]))for(var C;C=g[$].pop();)W.call(o,$,C);else W.call(o,$,g[$]);return o.$active=!0,"anonymous"!==o.$id&&i&&i.$up&&i.$up.$children&&i.$up.$children.push(o),o}function Y(e){if(e&&"object"==typeof e){for(var t in e)if("get"!==t&&"set"!==t)return!1;return"function"==typeof e.get}}function J(e,t){var n;t=NaN;return{get:function(){return this.$active&&function(e,t){for(;;){if(e.$watch){var n=e.$events||(e.$events={}),r=n[t]||(n[t]=[]);return void se.collectDependency(r)}if(!(e=e.$up))break;t=e.$pathname+"."+t}}(this,e),t},set:function(r){if(t!==r){var i=t;(n=K(r,t))?t=n:(n=void 0,t=r),Object(n)===n&&(n.$pathname=e,n.$up=this),this.$active&&U.call(this,e,[t,i])}},enumerable:!0,configurable:!0}}function K(e,t,n,r){if(Array.isArray(e))return function(e,t,n){if(t&&t.splice){var r=[0,t.length].concat(e);return t.splice.apply(t,r),t}for(var i in ne)e[i]=ne[i];Z(e,"$up",null),Z(e,"$pathname",""),Z(e,"$track",ie(e.length)),e._=X({state:{length:NaN}},{watch:!0}),e._.length=e.length,e._.$watch("length",function(t,n){U.call(e.$up,e.$pathname+".length",[t,n])}),n&&Z(e,"$watch",function(){return W.apply(e,arguments)}),Object.defineProperty(e,"$model",ee);for(var a=0,o=e.length;a>>=0)>this.length)throw Error(e+"set方法的第一个参数不能大于原数组长度");if(this[e]!==t){var n=this[e];this.splice(e,1,t),U.call(this.$up,this.$pathname+".*",[t,n,null,e])}},contains:function(e){return this.indexOf(e)>-1},ensure:function(e){return this.contains(e)||this.push(e),this},pushArray:function(e){return this.push.apply(this,Q(e))},remove:function(e){return this.removeAt(this.indexOf(e))},removeAt:function(e){return e>>>=0,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])&&(re.call(this.$track,t,1),re.call(this,t,1));else if("function"==typeof e)for(t=this.length-1;t>=0;t--){e(this[t],t)&&(re.call(this.$track,t,1),re.call(this,t,1))}else re.call(this.$track,0,this.length),re.call(this,0,this.length);b||(this.$model=Q(this)),this.notify(),this._.length=this.length},clear:function(){this.removeAll()}},re=te.splice;function ie(e){for(var t=[],n=0;n2){n[1],n.length;n=[n[0],n[1]].concat(ie(n.length-2))}}Array.prototype[t].apply(e,n)}(this.$track,e,n),b||(this.$model=Q(this)),this.notify(),this._.length=this.length,a}}),"sort,reverse".replace(f,function(e){ne[e]=function(){var t=this.concat(),n=Math.random(),r=[],i=!1;te[e].apply(this,arguments);for(var a=0,o=t.length;a444&&pe())}(t,e)}}),e.getter=Fe(e.expr,e.vmodels,e),e.observers.forEach(function(t){t.v.$watch(t.p,e)}),delete e.observers);try{var n,r,i=e.fireArgs;if(delete e.fireArgs,i)n=i[0],r=i[1];else if("on"===e.type)n=e.getter+"";else try{n=e.getter.apply(0,e.args)}catch(e){n=null}if(r=void 0===r?e.oldValue:r,e._filters&&(n=$n.$filter.apply(0,[n].concat(e._filters))),e.signature){var a=N.type(n);if("array"!==a&&"object"!==a)throw Error("warning:"+e.expr+"只能是对象或数组");e.xtype=a;var o=function(e,t){for(var n,r=[],i=0;n=e[i++];)r.push(t?n.$id:n.$key);return r.join(";")}(e.proxies||[],a),l=n.$track||("array"===a?ie(n.length):Object.keys(n));e.track=l,o!==l.join(";")&&(e.handler(n,r),e.oldValue=1)}else Array.isArray(n)&&n.length!==(r&&r.length)?(e.handler(n,r),e.oldValue=n.concat()):"oldValue"in e&&n===r||(e.handler(n,r),e.oldValue=Array.isArray(n)?n.concat():n)}catch(t){delete e.getter,s("warning:exception throwed in [Anot.injectBinding] ",t);var c=e.element;c&&3===c.nodeType&&(c.nodeValue=H+(e.oneTime?"::":"")+e.expr+R)}finally{t&&se.end()}},e.update()};var le=N.$$subscribers=[],ce=new Date;function ue(e,n){e.list=n,e.i=~~e.i,e.uuid||(e.uuid="_"+ ++t),le[e.uuid]||(le[e.uuid]="__",le.push(e))}var fe=0;function pe(e){for(var t=fe||le.length,n=0;e=le[--t];)if(e.i<7){if(null===e.element){le.splice(t,1),e.list&&(N.Array.remove(e.list,e),delete le[e.uuid]);continue}if(he(e.element)){if(le.splice(t,1),N.Array.remove(e.list,e),de(e),n++>500){fe=t;break}continue}e.i++,7===e.i&&(e.i=14)}else e.i--;ce=new Date}function de(e){for(var t in delete le[e.uuid],e.element=null,e.rollback&&e.rollback(),e)e[t]=null}function he(e){try{e.parentNode.nodeType}catch(e){return!0}return e.ifRemove&&!w.contains(e.ifRemove)&&o===e.parentNode?(e.parentNode&&e.parentNode.removeChild(e),!0):e.msRetain?0:1===e.nodeType?!w.contains(e):!N.contains(w,e)}var ve=new function(){N.mix(this,{option:i.createElement("select"),thead:i.createElement("table"),td:i.createElement("tr"),area:i.createElement("map"),tr:i.createElement("tbody"),col:i.createElement("colgroup"),legend:i.createElement("fieldset"),_default:i.createElement("div"),g:i.createElementNS("http://www.w3.org/2000/svg","svg")}),this.optgroup=this.option,this.tbody=this.tfoot=this.colgroup=this.caption=this.thead,this.th=this.td};String("circle,defs,ellipse,image,line,path,polygon,polyline,rect,symbol,text,use").replace(f,function(e){ve[e]=ve.g});var me=/<([\w:]+)/,ye=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,ge=A(["","text/javascript","text/ecmascript","application/ecmascript","application/javascript"]),be=i.createElement("script"),we=/<|?\w+;/;function xe(e){return e.replace(/([a-z\d])([A-Z]+)/g,"$1-$2").toLowerCase()}function $e(e){return e.indexOf("-")<0&&e.indexOf("_")<0?e:e.replace(/[-_][^-_]/g,function(e){return e.charAt(1).toUpperCase()})}N.parseHTML=function(e){var t=x.cloneNode(!1);if("string"!=typeof e)return t;if(!we.test(e))return t.appendChild(i.createTextNode(e)),t;e=e.replace(ye,"<$1>$2>").trim();var n,r=(me.exec(e)||["",""])[1].toLowerCase(),a=ve[r]||ve._default;a.innerHTML=e;var o=a.getElementsByTagName("script");if(o.length)for(var s,l=0;s=o[l++];)if(ge[s.type]){var c=be.cloneNode(!1);y.forEach.call(s.attributes,function(e){c.setAttribute(e.name,e.value)}),c.text=s.text,s.parentNode.replaceChild(c,s)}for(;n=a.firstChild;)t.appendChild(n);return t},N.innerHTML=function(e,t){var n=this.parseHTML(t);this.clearHTML(e).appendChild(n)},N.clearHTML=function(e){for(e.textContent="";e.firstChild;)e.removeChild(e.firstChild);return e},"add,remove".replace(f,function(e){N.fn[e+"Class"]=function(t){var n=this[0];return t&&"string"==typeof t&&n&&1===n.nodeType&&t.replace(/\S+/g,function(t){n.classList[e](t)}),this}}),N.fn.mix({hasClass:function(e){var t=this[0]||{};return 1===t.nodeType&&t.classList.contains(e)},toggleClass:function(e,t){for(var n,r=0,i=String(e).match(/\S+/g)||[],a="boolean"==typeof t;n=i[r++];){this[(a?t:!this.hasClass(n))?"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-"+xe(e||""),arguments.length){case 2:return this.attr(e,t),this;case 1:return Ce(this.attr(e));case 0:var n={};return y.forEach.call(this[0].attributes,function(t){t&&((e=t.name).indexOf("data-")||(e=$e(e.slice(5)),n[e]=Ce(t.value)))}),n}},removeData:function(e){return e="data-"+xe(e),this[0].removeAttribute(e),this},css:function(e,t){if(N.isPlainObject(e))for(var n in e)N.css(this,n,e[n]);else var r=N.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+=N.css(e[0],"borderTopWidth",!0),r.left+=N.css(e[0],"borderLeftWidth",!0),r.top-=e.scrollTop(),r.left-=e.scrollLeft()),{top:t.top-r.top-N.css(n,"marginTop",!0),left:t.left-r.left-N.css(n,"marginLeft",!0)}},offsetParent:function(){for(var e=this[0].offsetParent;e&&"static"===N.css(e,"position");)e=e.offsetParent;return N(e||w)},bind:function(e,t,n){if(this[0])return N.bind(this[0],e,t,n)},unbind:function(e,t,n){return this[0]&&N.unbind(this[0],e,t,n),this},val:function(e){var t,n,r=this[0];if(r&&1===r.nodeType){var i=0===arguments.length,a=i?":get":":set",o=je[(t=r,n=t.tagName.toLowerCase(),("input"===n&&/checkbox|radio/.test(t.type)?"checked":n)+a)];if(o)var s=o(r,e);else{if(i)return(r.value||"").replace(/\r/g,"");r.value=e}}return i?s:this}}),w.dataset&&(N.fn.data=function(e,t){e=e&&$e(e);var n=this[0].dataset;switch(arguments.length){case 2:return n[e]=t,this;case 1:return Ce(t=n[e]);case 0:var r=l();for(e in n)r[e]=Ce(n[e]);return r}}),N.parseJSON=JSON.parse;var ke=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/;function Ce(e){try{if("object"==typeof e)return e;e="true"===e||"false"!==e&&("null"===e?null:+e+""===e?+e:ke.test(e)?JSON.parse(e):e)}catch(e){}return e}N.fireDom=function(e,t,n){var r=i.createEvent("Events");r.initEvent(t,!0,!0),N.mix(r,n),e.dispatchEvent(r)},N.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){N.fn[e]=function(n){var r=this[0]||{},i=function(e){return e.window&&e.document?e:9===e.nodeType&&e.defaultView}(r),a="scrollTop"===e;if(!arguments.length)return i?i[t]:r[e];i?i.scrollTo(a?i[t]:n,a?n:i[t]):r[e]=n}});var Ae=N.cssHooks=l(),Te=["","-webkit-","-moz-","-ms-"],Ne={float:"cssFloat"};N.cssNumber=A("animationIterationCount,animationIterationCount,columnCount,order,flex,flexGrow,flexShrink,fillOpacity,fontWeight,lineHeight,opacity,orphans,widows,zIndex,zoom"),N.cssName=function(e,t,n){if(Ne[e])return Ne[e];t=t||w.style;for(var r=0,i=Te.length;r-1)&&(n=!0);n||(e.selectedIndex=-1)}},Oe={};["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,async,await,undefined"].join(",").replace(/\w+/g,function(e){Oe[e]=!0});var Se=/[a-z_$]/i,De=/[\s\uFEFF\xA0]/;function Le(e,t){if(t&&!Oe[t])return e.push(t),!0}function Me(e,t,n,r){for(var i,a=[],o=" = "+n+".",s=e.length;i=e[--s];){var l=i.split(".")[0];t.hasOwnProperty(l)&&(a.push(l+o+l),r.observers.push({v:t,p:i,type:N.type(t[l])}),e.splice(s,1))}return a}var Pe=/(proxy\-[a-z]+)\-[\-0-9a-f]+$/,He=new D(218),Re=new D(128);function Be(e){e=e.trim();var t=He.get(e);if(t)return t.concat();for(var n,r=function e(t,n){var r=[],i=!!n;n=n||0;for(var a="unknown",o="",s=0;s0){var t=e.replace(vt,function(e){return Array(e.length+1).join("1")}).replace(ht,"ᄢ㍄").indexOf("|");if(t>-1)return{type:"text",filters:e.slice(t).trim(),expr:e.slice(0,t)}}return{type:"text",expr:e,filters:""}}function gt(e){for(var t,n,r=[],i=0;;){if(-1===(n=e.indexOf(H,i)))break;if((t=e.slice(i,n))&&r.push({expr:t}),i=n+H.length,-1===(n=e.indexOf(R,i)))break;(t=e.slice(i,n))&&r.push(yt(t.replace(mt,""))),i=n+R.length}return(t=e.slice(i))&&r.push({expr:t}),r}function bt(e,t,n){var r=[],a=gt(e.data);if(a.length){for(var o,s=0;o=a[s++];){var l=i.createTextNode(o.expr);o.type&&(o.expr=o.expr.replace(Qe,function(){return o.oneTime=!0,""}),o.element=l,o.filters=o.filters.replace(dt,function(){return o.type="html",""}),o.pos=1e3*n+s,r.push(o)),x.appendChild(l)}e.parentNode.replaceChild(x,e),r.length&&Ke(r,t)}}var wt=function(){this.queue=[]};wt.prototype={render:function(e){if(!this.locked){this.locked=e?w.offsetHeight+10:1;var t=this;N.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 xt=new wt,$t=[],kt=[],Ct={__init__:k,componentWillMount:k,componentDidMount:k,childComponentDidMount:k,componentWillUnmount:k,render:function(){return null}};function At(e,t,n){if(2===arguments.length){var r=Function("o","return o."+t)(e);if(r&&"object"==typeof r)try{return r.$model}catch(e){}return r}3===arguments.length&&Function("o","v","return o."+t+" = v")(e,n)}N.components={},N.component=function(e,t){t&&(N.components[e]=N.mix({},Ct,t));for(var n,r=0;n=$t[r];r++)e===n.name&&($t.splice(r,1),r--,function(t,n,r,a){if(N.contains(i,r)&&!r.msResolved){var o=1;if(!r.getAttribute(":attr-uuid")){n.watch=n.watch||{};for(var s,l,c,u=t.vmodels.concat().pop(),f={},p=st(r,t.vmodels),d=p.uuid||T(a),h={__extra__:[]};u.$up&&u.$up.__WIDGET__===e;)u=u.$up;r.childNodes.length&&(s=r.childNodes,l=t.vmodels,c={__extra__:[]},g.call(s,0).forEach(function(e){switch(e.nodeType){case 1:var t="SLOT"===e.tagName,n=null,r=e.getAttribute("slot");if(t?n=e.name||e.getAttribute("name"):r&&(n=r),n)c[n]=c[n]||[],e.removeAttribute("slot"),t?c[n].push(e.innerHTML):c[n].push(e.outerHTML);else{var i=e.outerHTML;if(Ye(e)||/:[\w-]*=".*"/.test(i))break;B.test(i)&&(i=Fe(Ie(i),l,{}).apply(0,l)),c.__extra__.push(i)}break;case 3:(i=e.textContent.trim())&&c.__extra__.push(i)}e.parentNode.removeChild(e)}),h=c);var v=h.__extra__.join("");if(delete h.__extra__,r.text=function(){return v},p.hasOwnProperty(":disabled")){var m=p[":disabled"],y=!1;0===m.indexOf("!")&&(m=m.slice(1),y=!0),f.disabled=At(u,m),y&&(f.disabled=!f.disabled),u.$watch(m,function(e){y&&(e=!e),N.vmodels[d].disabled=e}),delete p[":disabled"]}if(p.hasOwnProperty(":loading")){var b=p[":loading"],w=!1;0===b.indexOf("!")&&(b=b.slice(1),w=!0),f.loading=At(u,b),w&&(f.loading=!f.loading),u.$watch(b,function(e){w&&(e=!e),N.vmodels[d].loading=e}),delete p[":loading"]}if(p.hasOwnProperty(":value")){var x=p[":value"],$=function(){var e=At(u,x);N.vmodels[d].value=e},k=function(){var e=this.value;e&&"object"==typeof e&&(e=e.$model),At(u,x,e)};f.value=At(u,x),n.watch.value?n.watch.value=[n.watch.value]:n.watch.value=[],n.watch["value.length"]?n.watch["value.length"]=[n.watch["value.length"]]:n.watch["value.length"]=[],n.watch["value.*"]?n.watch["value.*"]=[n.watch["value.*"]]:n.watch["value.*"]=[],u.$watch(x,$),Array.isArray(f.value)?(u.$watch(x+".*",$),u.$watch(x+".length",$),n.watch["value.*"].push(k),n.watch["value.length"].push(k)):n.watch.value.push(k),delete p[":value"]}delete p.uuid,delete p.name,delete p.isWidget,n.props=n.props||{},n.state=n.state||{},Object.assign(n.props,p),Object.assign(n.state,f);var C=!1;if(n.__init__.call(r,n.props,n.state,function(){C=!0,delete r.text}),C){n.$id=d;var{componentWillMount:A,componentDidMount:_,childComponentDidMount:E,componentWillUnmount:j,render:O}=n;delete n.__init__,delete n.componentWillMount,delete n.componentDidMount,delete n.childComponentDidMount,delete n.componentWillUnmount;var S=N(n);N.vmodels[S.$id]=S,Z(S,"__WIDGET__",e),Z(S,"$recycle",function(){for(var e in this.$events)for(var t=this.$events[e]||[],n=t.length;n--;)null!==t[n].type&&"user-watcher"!==t[n].type||t.splice(n,1)}),delete S.$mounted,u.$components.push(S),u.__WIDGET__===e&&(S.$up=u),r.msResolved=1,A.call(S),N.clearHTML(r);var D=O.call(S,h)||"";D=D.replace(/<\w+[^>]*>/g,function(e,t){return e.replace(/[\n\t\s]{1,}/g," ")}),r.innerHTML=D,Z(S,"$elem",r),r.__VM__=S,N.fireDom(r,"datasetchanged",{vm:S,childReady:1});var L=0,M=N.bind(r,"datasetchanged",function(e){if(e.childReady&&(o+=e.childReady,S.$id!==e.vm.$id&&(-1===e.childReady&&(L++,E.call(S,e.vm)),e.stopPropagation())),0===o){var n=setTimeout(function(){clearTimeout(n),r.removeAttribute("is-widget"),_.call(S)},L?Math.max(17*L,100):17);N.unbind(r,"datasetchanged",M),t.rollback=function(){try{j.call(S)}catch(e){}u.$recycle&&u.$recycle(),N.Array.remove(u.$components,S),delete N.vmodels[S.$id]},ue(t,kt),window.chrome&&r.addEventListener("DOMNodeRemovedFromDocument",function(){setTimeout(pe)})}});if(pt(r,[S]),r.childNodes.length)var P=setTimeout(function(){clearTimeout(P),N.fireDom(r,"datasetchanged",{vm:S,childReady:-1})},17);else N.fireDom(r,"datasetchanged",{vm:S,childReady:-1})}}}else N.Array.remove($t,t)}(n,Q(N.components[e]),n.element,n.name))};var Tt={};["autofocus,autoplay,async,allowTransparency,checked,controls","declare,disabled,defer,defaultChecked,defaultSelected","contentEditable,isMap,loop,multiple,noHref,noResize,noShade","open,readOnly,selected"].join(",").replace(f,function(e){Tt[e.toLowerCase()]=e});var Nt={"accept-charset":"acceptCharset",char:"ch",charoff:"chOff",class:"className",for:"htmlFor","http-equiv":"httpEquiv"};["accessKey,bgColor,cellPadding,cellSpacing,codeBase,codeType,colSpan","dateTime,defaultValue,frameBorder,longDesc,maxLength,marginWidth,marginHeight","rowSpan,tabIndex,useMap,vSpace,valueType,vAlign"].join(",").replace(f,function(e){Nt[e.toLowerCase()]=e});N.directive("attr",{init:function(e){if(e.expr=Ie(e.expr.trim()),"include"===e.type){var t=e.element;Ut(t,e),e.includeRendered=Je(t,"data-rendered",e.vmodels),e.includeLoaded=Je(t,"data-loaded",e.vmodels);var n=e.includeReplace=!!N(t).data("includeReplace");N(t).data("cache")&&(e.templateCache={}),e.start=i.createComment(":include"),e.end=i.createComment(":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(e){var t=this.element,n={},r=this.vmodels[0];if(e=Q(e),this.param)"object"==typeof e&&null!==e?Array.isArray(e)?n[this.param]=e:Date.isDate(e)?n[this.param]=e.toUTCString():n[this.param]=e:n[this.param]=e;else{if(!e||"object"!=typeof e||Array.isArray(e))return;if(Date.isDate(e))return;n=e}for(var a in n)if("style"!==a){if(0!==a.indexOf("@")||"function"==typeof n[a])if("href"===a||"src"===a){if(w.hasAttribute||(n[a]=n[a].replace(/&/g,"&")),t[a]=n[a],window.chrome&&"EMBED"===t.tagName){var o=t.parentNode,s=i.createComment(":src");o.replaceChild(s,t),o.replaceChild(t,s)}}else{var l=a;if(!b&&Nt[l]&&(l=Nt[l]),!1!==n[a]&&null!==n[a]&&void 0!==n[a]||(n[a]=""),"boolean"==typeof t[Tt[l]]&&(t[Tt[l]]=!!n[a],n[a]||(n[a]=!!n[a]),!1===n[a])){t.removeAttribute(l);continue}!d.test(t)&&(!(!i.namespaces||!isVML(t))||l in t.cloneNode(!1))?t[l]=n[a]:("object"==typeof n[a]?n[a]=Date.isDate(n[a])?n[a].toUTCString():JSON.stringify(n[a]):"function"==typeof n[a]&&(t[l=it+$e(l.slice(1))]=n[a].bind(r),n[a]=l),t.setAttribute(l,n[a]))}}else console.error("设置style样式, 请改用 :css指令")}});N.directive("class",{init:function(e){e.expr=e.expr.replace(/\n/g," ").replace(/\s{2,}/g," ");var t=[];if(/^\{.*\}$/.test(e.expr))/^\{\{.*\}\}$/.test(e.expr)&&(e.expr=e.expr.slice(2,-2));else{(t=e.expr.split(":"))[1]=t[1]&&t[1].trim()||"true";var n=t[0].split(/\s+/);e.expr="{"+n.map(function(e){return e+": "+t[1]}).join(", ")+"}"}if("hover"===e.type||"active"===e.type){if(!e.hasBindEvent){var r=e.element,i=N(r),a="mouseenter",o="mouseleave";if("active"===e.type){r.tabIndex=r.tabIndex||-1,a="mousedown",o="mouseup";var s=i.bind("mouseleave",function(){i.removeClass(t[0])})}}var l=i.bind(a,function(){i.addClass(t[0])}),c=i.bind(o,function(){i.removeClass(t[0])});e.rollback=function(){i.unbind("mouseleave",s),i.unbind(a,l),i.unbind(o,c)},e.hasBindEvent=!0}},update:function(e){if("class"===this.type){var t=e;if(!t||this.param)return s('class指令语法错误 %c %s="%s"',"color:#f00",this.name,this.expr);"string"==typeof t&&((t={})[e]=!0),N.isPlainObject(t)||(t=t.$model);var n=N(this.element);for(var r in t)n.toggleClass(r,!!t[r])}}}),"hover,active".replace(f,function(e){S[e]=S.class}),N.directive("css",{init:S.attr.init,update:function(e){var t=N(this.element);if(this.param)t.css(this.param,e);else{var n=e;try{for(var r in"object"==typeof e?N.isPlainObject(e)||(n=e.$model):n=new Function("return "+e)(),n)t.css(r,n[r])}catch(e){s('样式格式错误 %c %s="%s"',"color:#f00",this.name,this.expr)}}}}),N.directive("data",{priority:100,init:S.attr.init,update:function(e){var t=e;if("object"==typeof t&&null!==t)for(var n in N.isPlainObject(t)||(t=e.$model),t)this.element.setAttribute("data-"+n,t[n]);else{if(!this.param)return;this.element.setAttribute("data-"+this.param,t)}}});var _t={};N.validate=function(e,t){if(!_t[e])throw new Error("validate ["+e+"] not exists.");"function"==typeof t&&(_t[e].event=t);var n=_t[e].result;for(var r in n)if(!n[r].passed)return n[r];return!0},N.directive("rule",{priority:2010,init:function(e){e.param&&!_t[e.param]&&(_t[e.param]={event:k,result:{}}),e.target=_t[e.param]},update:function(e){var t=this,n=this.element;if(["INPUT","TEXTAREA"].includes(n.nodeName)&&!n.msBinded){this.target&&(this.target.result[n.expr]={key:n.expr});var r=this.target;N(n).bind("blur",i),this.rollback=function(){N(n).unbind("blur",i)},n.msBinded=!0,i()}function i(i){var a=n.value,o=0;(!e.require||""!==a&&null!==a||(o=10001),0===o&&e.isNumeric&&(o=isFinite(a)?0:10002),0===o&&e.isEmail&&(o=/^[\w\.\-]+@\w+([\.\-]\w+)*\.\w+$/.test(a)?0:10003),0===o&&e.isPhone&&(o=/^1[34578]\d{9}$/.test(a)?0:10004),0===o&&e.isCN&&(o=/^[\u4e00-\u9fa5]+$/.test(a)?0:10005),0===o&&e.exp&&(o=e.exp.test(a)?0:10006),0===o&&e.maxLen&&(o=a.length>e.maxLen?10011:0),0===o&&e.minLen&&(o=a.lengthe.max?10021:0),0===o&&e.hasOwnProperty("min")&&(o=a-1;break;case"select":this._value=e,n.msHasEvent?N.fireDom(n,"datasetchanged",{bubble:n.msHasEvent}):n.msHasEvent="selectDuplex"}}});function St(e){return null==e?"":e}function Dt(e,t,n,r){return t.param.replace(p,function(r){var i=N.duplexHooks[r];i&&"function"==typeof i[n]&&(e=i[n](e,t))}),e}N.duplexHooks={checked:{get:function(e,t){return!t.oldValue}},string:{get:function(e){return e},set:St},boolean:{get:function(e){return"true"===e},set:St},number:{get:function(e,t){var n=+e;return+e===n?n:0},set:St}};var Lt,Mt=[];function Pt(){for(var e=Mt.length-1;e>=0;e--){!1===(0,Mt[e])()&&Mt.splice(e,1)}Mt.length||clearInterval(Lt)}N.tick=function(e){1===Mt.push(e)&&(Lt=setInterval(Pt,60))};var Ht=k;new function(){try{var e={},t=HTMLInputElement.prototype,n=HTMLTextAreaElement.prototype;function r(t){e[this.tagName].call(this,t),!this.msFocus&&this.anotSetter&&this.anotSetter()}var i=HTMLInputElement.prototype;Object.getOwnPropertyNames(i),e.INPUT=Object.getOwnPropertyDescriptor(t,"value").set,Object.defineProperty(t,"value",{set:r}),e.TEXTAREA=Object.getOwnPropertyDescriptor(n,"value").set,Object.defineProperty(n,"value",{set:r})}catch(e){Ht=N.tick}},N.directive("effect",{priority:5,init:function(e){var t,n,r=e.expr,i=r.replace(F,function(e){return e.replace(/./g,"0")}).indexOf(":");-1===i?(t=r,n=!0):(t=r.slice(0,i),n=r.slice(i+1)),t=B.test(r)?Ie(t):Ge(t),e.expr="["+t+","+n+"]"},update:function(e){var t=e[0],n=this.element;if(n.getAttribute("data-effect-name")!==t){n.removeAttribute("data-effect-driver");var r=n.style,i=window.getComputedStyle?window.getComputedStyle(n):null,a=!1;if(i&&(Ft||It)){var o=r[qt]||i[qt];o&&"0s"!==o&&(n.setAttribute("data-effect-driver","t"),a=!0),a||(o=r[Vt]||i[Vt])&&"0s"!==o&&(n.setAttribute("data-effect-driver","a"),a=!0)}a||N.effects[t]&&(n.setAttribute("data-effect-driver","j"),a=!0),a&&n.setAttribute("data-effect-name",t)}}}),N.effects={},N.effect=function(e,t){N.effects[e]=t};var Rt,Bt,Ft=!1,It=!1,qt=N.cssName("transition-duration"),Vt=N.cssName("animation-duration");new function(){var e,t,n={TransitionEvent:"transitionend",WebKitTransitionEvent:"webkitTransitionEnd",OTransitionEvent:"oTransitionEnd",otransitionEvent:"otransitionEnd"};for(var r in n){if(window[r]){e=n[r];break}try{document.createEvent(r);e=n[r];break}catch(e){}}for(r in"string"==typeof e&&(Ft=!0,Rt=e),n={AnimationEvent:"animationend",WebKitAnimationEvent:"webkitAnimationEnd"})if(window[r]){t=n[r];break}"string"==typeof t&&(Ft=!0,Bt=t)};var Wt=[];function Ut(e,t){var n=e.getAttribute("data-effect-name");if(n){t.effectName=n,t.effectDriver=e.getAttribute("data-effect-driver");var r=+e.getAttribute("data-effect-stagger");t.effectLeaveStagger=+e.getAttribute("data-effect-leave-stagger")||r,t.effectEnterStagger=+e.getAttribute("data-effect-enter-stagger")||r,t.effectClass=e.className||NaN}}function zt(e){return e.replace(/^[\S]/g,function(e){return e.toUpperCase()})}var Gt=new wt;function Xt(){}function Yt(e,t){var n=e.callbacks[t+"Class"];return"string"==typeof n?n:"function"==typeof n?n():e.name+"-"+t}function Jt(e,t,n){var r=e.callbacks[t];r&&r.call(e,e.el,n)}Xt.prototype={contrustor:Xt,enterClass:function(){return Yt(this,"enter")},leaveClass:function(){return Yt(this,"leave")},actionFun:function(e,t,n){if(!document.hidden){var r=this,i=r.el,a="leave"===e;e=a?"leave":"enter",Jt(r,"abort"+zt(a?"enter":"leave")),Jt(r,"before"+zt(e)),a||t(i);var o=function(o){i.removeEventListener(r.cssEvent,r.cssCallback),a?(t(i),N(i).removeClass(r.cssClass)):"a"===r.driver&&N(i).removeClass(r.cssClass),!0!==o&&(Jt(r,"after"+zt(e)),n&&n(i)),r.dispose()};r.useCss?(r.cssCallback&&r.cssCallback(!0),r.cssClass=Yt(r,e),r.cssCallback=o,r.update=function(){i.addEventListener(r.cssEvent,r.cssCallback),a||"t"!==r.driver||N(i).removeClass(r.cssClass)},N(i).addClass(r.cssClass),Gt.render(!0),Gt.queue.push(r)):Jt(r,e,o)}},enter:function(e,t){this.actionFun.apply(this,["enter"].concat(N.slice(arguments)))},leave:function(e,t){this.actionFun.apply(this,["leave"].concat(N.slice(arguments)))},dispose:function(){this.update=this.cssCallback=null,Wt.unshift(this)>100&&Wt.pop()}};var Kt=function(e,t){var n=g.call(arguments,0);"function"!=typeof n[2]&&n.splice(2,0,k),"function"!=typeof n[3]&&n.splice(3,0,k);var r=n[2],i=n[3],a=function(e,t){if(!e||1!==e.nodeType)return null;if(t)var n=t.effectName,r=t.effectDriver;else n=e.getAttribute("data-effect-name"),r=e.getAttribute("data-effect-driver");if(!n||!r)return null;var i=Wt.pop()||new Xt;return i.el=e,i.driver=r,i.useCss="j"!==r,i.useCss&&(t&&N(e).addClass(t.effectClass),i.cssEvent="t"===r?Rt:Bt),i.name=n,i.callbacks=N.effects[n]||{},i}(e,n[4]);if(!a)return r(),i(),!1;a[t?"enter":"leave"](r,i)};N.mix(N.effect,{apply:Kt,append:function(e,t,n,r){return Kt(e,1,function(){t.appendChild(e)},n,r)},before:function(e,t,n,r){return Kt(e,1,function(){t.parentNode.insertBefore(e,t)},n,r)},remove:function(e,t,n,r){return Kt(e,0,function(){e.parentNode===t&&t.removeChild(e)},n,r)}}),N.directive("html",{update:function(e){var t=this.element,n=1!==t.nodeType,r=n?t.parentNode:t;if(r){if(e=null==e?"":e,3===t.nodeType){var a=T("html");r.insertBefore(i.createComment(a),t),this.element=i.createComment(a+":end"),r.replaceChild(this.element,t),t=this.element}if("object"!=typeof e)var o=N.parseHTML(String(e));else if(11===e.nodeType)o=e;else if(1===e.nodeType||e.item){var s=1===e.nodeType?e.childNodes:e.item;for(o=x.cloneNode(!0);s[0];)o.appendChild(s[0])}if(s=N.slice(o.childNodes),n){for(var l=t.nodeValue.slice(0,-4);;){var c=t.previousSibling;if(!c||8===c.nodeType&&c.nodeValue===l)break;r.removeChild(c)}r.insertBefore(o,t)}else N.clearHTML(t).appendChild(o);ft(s,this.vmodels)}}}),N.directive("text",{update:function(e){var t=this.element;if(e=null==e?"":e,3===t.nodeType)try{t.data=e}catch(e){}else t.textContent=e}}),N.directive("if",{priority:10,update:function(e){var t,n=this,r=this.element,a=n.stamp=+new Date,s=function(){a===n.stamp&&(n.recoverNode=null)};n.recoverNode&&n.recoverNode();try{if(!r.parentNode)return;t=r.parentNode}catch(e){return}if(e){function l(){r.getAttribute(n.name)&&(r.removeAttribute(n.name),lt(r,n.vmodels)),n.rollback=null}if(8===r.nodeType){var c=n.keep,u=N.effect.apply(c,1,function(){a===n.stamp&&(r.parentNode.replaceChild(c,r),r=n.element=c,c.getAttribute("_required")&&(r.required=!0,r.removeAttribute("_required")),r.querySelectorAll&&N.each(r.querySelectorAll("[_required=true]"),function(e){e.required=!0,e.removeAttribute("_required")}),l())},s);u=!1===u}u||l()}else if(1===r.nodeType){!0===r.required&&(r.required=!1,r.setAttribute("_required","true"));try{N.each(r.querySelectorAll(":required"),function(e){r.required=!1,e.setAttribute("_required","true")})}catch(e){}var f=n.element=i.createComment(":if"),p=r.nextSibling;n.recoverNode=function(){n.recoverNode=null,f.parentNode!==t&&(t.insertBefore(f,p),n.keep=r)},N.effect.apply(r,0,function(){n.recoverNode=null,a===n.stamp&&(r.parentNode.replaceChild(f,r),n.keep=r,o.appendChild(r),n.rollback=function(){r.parentNode===o&&o.removeChild(r)})},s)}}});var Zt=N.templateCache={};function Qt(e){for(var t=i.createDocumentFragment(),n=0,r=e.length;n0&&t.indexOf(")")>-1){var r=(t.match(en)||["",""])[1].trim();""!==r&&"$event"!==r||(t=t.replace(en,""))}e.expr=t},update:function(e){var t=this,n=this.element;e=function(e){return(t.getter||k).apply(t.args[0],t.args.concat(e))};var r=t.param.replace(/-\d+$/,"");if("scan"===r)e.call(n,{type:r});else if("function"==typeof t.specialBind)t.specialBind(n,e);else var i=N.bind(n,r,e);t.rollback=function(){"function"==typeof t.specialUnbind?t.specialUnbind():N.unbind(n,r,i)}}});function nn(e,t,n){for(var r,i=0;r=e[i++];)r.className===n.effectClass&&N.effect.apply(r,t,k,k,n)}function rn(e,t,n){return e?setTimeout(t,++n*e):t(),n}function an(e,t,n){for(var r=x.cloneNode(!1),i=e,a=i.nodeValue,o=t&&Math.max(+t.staggerIndex,0),s=N.slice(i.parentNode.childNodes),l=s.indexOf(i);;){var c=s[--l];if(!c||0===String(c.nodeValue).indexOf(a))break;!n&&t&&c.className===t.effectClass?(e=c,function(e){t.staggerIndex=rn(t.effectLeaveStagger,function(){N.effect.apply(e,0,k,function(){r.appendChild(e)},t)},o)}(c)):r.insertBefore(c,r.firstChild)}return r.appendChild(i),r}function on(e,t,n,r,i){var a=e.template.cloneNode(!0),o=N.slice(a.childNodes);a.appendChild(n.$anchor),i&&t.appendChild(a);n[e.param||"el"];var s={nodes:o,vmodels:[n].concat(e.vmodels),content:a};r.push(s)}function sn(e){var t=("object"===e.xtype?pn:un)(e);return(t.$anchor||(t.$anchor=e.element.cloneNode(!1))).nodeValue=e.signature,t.$outer=e.$outer,t}function ln(e,t,n){if("array"===n){e.$remove=function(){t.$repeat.removeAt(e.$index)};var r=t.param;e.$watch(r,function(n){var r=e.$index;t.$repeat[r]=n})}else{var i=t.vars[0],a=t.vars[1];e.$up.$watch(t.expr+"."+e[i],function(n){e[t.param][a]=n,e[a]=n})}}N.directive("for",{priority:90,init:function(e){var t=e.type;e.cache={},e.enterCount=0;var n=e.element;if(1===n.nodeType){var r=e.expr.split(" in ");e.expr=r.pop(),r.length&&(r=r.pop().split(/\s+/)),e.vars=r,n.removeAttribute(e.name),Ut(n,e);var a=Je(n,"data-rendered",e.vmodels),o=T(t),s=i.createComment(o+":start"),l=e.element=i.createComment(o+":end");e.signature=o,e.start=s,e.template=x.cloneNode(!1);var c=n.parentNode;if(c.replaceChild(l,n),c.insertBefore(s,l),e.template.appendChild(n),e.element=l,a)var u=N.bind(c,"datasetchanged",function(){a.apply(c,c.args),N.unbind(c,"datasetchanged",u),c.msRendered=a})}},update:function(e,t){var n=this,r=this.xtype;"array"===r?(this.vars.length?1===this.vars.length&&this.vars.unshift("$index"):this.vars.push("$index","el"),this.param=this.vars[1]):(this.param="__el__",this.vars.length?1===this.vars.length&&this.vars.push("$val"):this.vars.push("$key","$val")),this.enterCount+=1;var i=!t;if(i){n.$outer={};var a=this.vars[0],o=this.vars[1];"array"===r&&(a="$first",o="$last");for(var s,l=0;s=n.vmodels[l++];)if(s.hasOwnProperty(a)&&s.hasOwnProperty(o)){n.$outer=s;break}}var c=this.track,u="move";n.$repeat=e;var f=[],p=i&&x.cloneNode(!1),d=[],h=this.param,v=N.mix({},this.cache),m=this.element,y=c.length,g=m.parentNode,b=0;for(l=0;l10,A=m.previousSibling,T=n.start;if(C)for(;A!==T;)g.removeChild(A),A=m.previousSibling;for(l=0;lP.maxRepeatSize&&i.pop(),delete e[t]}}function hn(e,t){var n="_"+e;if(!hn[n]){var r=i.createElement(e);w.appendChild(r),t=b?getComputedStyle(r,null).display:r.currentStyle.display,w.removeChild(r),hn[n]=t}return hn[n]}N.parseDisplay=hn,N.directive("visible",{init:function(e){Ut(e.element,e)},update:function(e){var t,n=this,r=this.element,i=!this.effectName;if(!this.stamp)return t=this.stamp=+new Date,void(e?(r.style.display=n.display||"","none"===N(r).css("display")&&(r.style.display=n.display=hn(r.nodeName))):r.style.display="none");t=this.stamp=+new Date,e?N.effect.apply(r,1,function(){if(t===n.stamp){var e=r.getAttribute("data-effect-driver")||"a";i&&(r.style.display=n.display||""),"a"!==e&&"t"!==e||"none"===N(r).css("display")&&(r.style.display=n.display||hn(r.nodeName))}}):N.effect.apply(r,0,function(){t===n.stamp&&(r.style.display="none")})}});var vn=/
-
-