/*================================================== * Anot normal version for future browsers * @authors yutent (yutent@doui.cc) * @date 2017-03-21 21:05:57 * support IE10+ and modern browsers * ==================================================*/ var _Anot=function(){var e=1024,t=0;window.VBArray&&(t=document.documentMode||(window.XMLHttpRequest?7:6));var n=j(),r=window.document,i=r.head;i.insertAdjacentHTML("afterBegin",'');var a=i.firstChild;function o(){console.log.apply(console,arguments)}function s(){return Object.create(null)}var c,l,u,f,p="$"+n,d={},h=/[^, ]+/g,v=/\w+/g,m=/^\[object SVG\w*Element\]$/,y=Object.prototype,g=y.hasOwnProperty,b=y.toString,w=Array.prototype,x=w.slice,$=window.dispatchEvent,k=r.documentElement,C=r.createDocumentFragment(),A=(r.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 _(){}function T(e){return Function.apply(_,e)}function N(e,t){"string"==typeof e&&(e=e.match(h)||[]);for(var n={},r=void 0!==t?t:1,i=0,a=e.length;i=t.length)&&(a(e?o:r),i=!0))},function(e){i=!0,o(e)})}t.length||o(r);for(var c=0,l=t.length;c0?1:-1)*Math.floor(Math.abs(t))}(e);return Math.min(Math.max(t,0),u)},function(e){var t=Object(e);if(null===e)throw new TypeError("Array.from requires an array-like object - not null or undefined");var n,r=arguments.length>1?arguments[1]:void 0;if(void 0!==r){if(!l(r))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(n=arguments[2])}for(var i,a=f(t.length),o=l(this)?Object(new this(a)):new Array(a),s=0;s=r?0:r+e),1===i?this.slice(0,e):(t-=0,this.slice(0,e)+n+this.slice(e+t)))},enumerable:!1}),Date.prototype.getFullWeek||(Object.defineProperty(Date.prototype,"getFullWeek",{value:function(){var 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(){var 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";var 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()};for(var r in 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})e=e.replace(new RegExp(r,"g"),t[r]);return e},enumerable:!1});var E=function(e){return new E.init(e)};E.nextTick=new function(){var e=window.setImmediate,t=window.MutationObserver;if(e)return e.bind(window);var n=[];if(t){var r=document.createTextNode("anot");new t(function(){for(var e=n.length,t=0;t>>0)return!0}return!1}(e))for(var 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+="";var t=location.search;if(!e||!t)return null;t=(t=t.slice(1)).split("&");for(var n,r={},i=0;n=t[i++];){var a=n.split("=");a[1]=a.length<2?null:a[1],a[1]=decodeURIComponent(a[1]),r.hasOwnProperty(a[0])?"object"==typeof r[a[0]]?r[a[0]].push(a[1]):(r[a[0]]=[r[a[0]]],r[a[0]].push(a[1])):r[a[0]]=a[1]}return r.hasOwnProperty(e)?r[e]:null},copy:function(e){if(!r.queryCommandSupported||!r.queryCommandSupported("copy"))return o("该浏览器不支持复制到粘贴板");var t=r.createElement("textarea");t.textContent=e,t.style.position="fixed",t.style.bottom="-1000px",r.body.appendChild(t),t.select();try{r.execCommand("copy")}catch(e){o("复制到粘贴板失败")}r.body.removeChild(t)}});var D=E.bindingHandlers={},L=E.bindingExecutors={},M=E.directives={};E.directive=function(e,t){return D[e]=t.init=t.init||_,L[e]=t.update=t.update||_,M[e]=t};var P=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(r.contains||(Node.prototype.contains=function(e){return!!(16&this.compareDocumentPosition(e))}),E.contains=function(e,t){try{for(;t=t.parentNode;)if(t===e)return!0;return!1}catch(e){return!1}},window.SVGElement){var H="http://www.w3.org/2000/svg",R=r.createElementNS(H,"svg");if(R.innerHTML='',!m.test(R.firstChild)){function B(e,t){if(e&&e.childNodes)for(var n,i=e.childNodes,a=0;n=i[a++];)if(n.tagName){var o=r.createElementNS(H,n.tagName.toLowerCase());w.forEach.call(n.attributes,function(e){o.setAttribute(e.name,e.value)}),B(n,o),t.appendChild(o)}}Object.defineProperties(SVGElement.prototype,{outerHTML:{enumerable:!0,configurable:!0,get:function(){return(new XMLSerializer).serializeToString(this)},set:function(e){var t=this.tagName.toLowerCase(),n=this.parentNode,i=E.parseHTML(e);if("svg"===t)n.insertBefore(i,this);else{var a=r.createDocumentFragment();B(i,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("$","i");return e.replace(t,"").replace(n,"")},set:function(e){E.clearHTML&&(E.clearHTML(this),B(E.parseHTML(e),this))}}})}}var F=E.eventHooks;function I(e){for(var t in e)if(g.call(e,t)){var n=e[t];"function"==typeof I.plugins[t]?I.plugins[t](n):"object"==typeof I[t]?E.mix(I[t],n):I[t]=n}return this}"onmouseenter"in k||E.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){F[e]={type:t,fix:function(t,n){return function(r){var i=r.relatedTarget;if(!i||i!==t&&!(16&t.compareDocumentPosition(i)))return delete r.type,r.type=e,n.call(t,r)}}}}),E.each({AnimationEvent:"animationend",WebKitAnimationEvent:"webkitAnimationEnd"},function(e,t){window[e]&&!F.animationend&&(F.animationend={type:t})}),void 0===r.onmousewheel&&(F.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)}}}),E.config=I;var q,V,W,U,z=/[-.*+?^${}()|[\]\/\\]/g;function G(e){return(e+"").replace(z,"\\$&")}var X={interpolate:function(e){if(q=e[0],V=e[1],q===V)throw new SyntaxError("openTag!==closeTag");I.openTag=q,I.closeTag=V;var t=G(q),n=G(V);W=new RegExp(t+"([\\s\\S]*)"+n),U=new RegExp(t+"([\\s\\S]*)"+n,"g"),new RegExp(t+"[\\s\\S]*"+n+"|\\s:")}};function Y(t,n){var i=this.$events||(this.$events={}),a=i[t]||(i[t]=[]);if("function"==typeof n){var o=n;o.uuid="_"+ ++e,(n={element:k,type:"user-watcher",handler:_,vmodels:[this],expr:t,uuid:o.uuid}).wildcard=/\*/.test(t)}if(n.update)n.oneTime||E.Array.ensure(a,n);else{if(/\w\.*\B/.test(t)||"*"===t){n.getter=_;var s=this;n.update=function(){var e=this.fireArgs||[];e[2]&&n.handler.apply(s,e),delete this.fireArgs},a.sync=!0,E.Array.ensure(a,n)}else E.injectBinding(n);o&&(n.handler=o)}return function(){n.update=n.getter=n.handler=_,n.element=r.createElement("a")}}function J(t,n){var r=this.$events,i=null;if(r&&r[t]){n&&(n[2]=t);var a=r[t];if(function(t,n){if(!t)return;new Date-he>444&&"object"==typeof t[0]&&ye();for(var r,i=[],a=[],o=0;r=t[o++];)"user-watcher"===r.type?i.push(r):a.push(r);if(I.async){for(_t.render(),o=0;r=a[o++];)if(r.update){r.uuid=r.uuid||"_"+ ++e;var s=r.uuid;_t.queue[s]||(_t.queue[s]="__",_t.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(t))for(var o,s=0;o=r["*"][s++];)try{o.handler.apply(this,n)}catch(e){}(i=this.$up)&&(this.$pathname&&J.call(i,this.$pathname+"."+t,n),J.call(i,"*."+t,n))}else{if(i=this.$up,this.$ups){for(var c in this.$ups)J.call(this.$ups[c],c+"."+t,n);return}if(i){var l=this.$pathname;""===l&&(l="*");var u=l+"."+t;a=u.split("."),n=n&&n.concat([u,t])||[u,t],-1===a.indexOf("*")?(J.call(i,u,n),a[1]="*",J.call(i,a.join("."),n)):J.call(i,u,n)}}}I.plugins=X,I.plugins.interpolate(["{{","}}"]),I.async=!0,I.paths={},I.shim={},I.maxRepeatSize=100;var K=N("$id,$watch,$fire,$events,$model,$active,$pathname,$up,$ups,$track,$accessors");function Z(e,t){return(t=t||{}).watch=!0,Q(e,t)}function Q(e,t){if(!e||e.$id&&e.$accessors||e.nodeName&&e.nodeType>0)return e;var n,r=(t=t||d).force||d,i=t.old,a=i&&i.$accessors||d,s=new function(){},c={},l={},u=[],f=[],p={},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&&(p=N(e.skip),delete e.skip),h)for(x in e.$id&&delete h.props,h){var w=h[x];K[x]||(l[x]=!0),"function"==typeof w||w&&w.nodeName&&w.nodeType>0||!r[x]&&("$"===(n=x).charAt(0)||"__"===n.slice(0,2)||K[n]||p[x])?u.push(x):ee(w)?(o("warning:计算属性建议放在[computed]对象中统一定义"),v[x]=w):(f.push(x),a[x]?c[x]=a[x]:c[x]=te(x,w))}if(v)for(var x in delete v.props,v)l[x]=!0,function(e,t){var n;"function"==typeof t&&(t={get:t,set:_}),"function"!=typeof t.set&&(t.set=_),c[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)l[x]=!0,u.push(x);if(y)for(var x in re(s,"props",{}),l.props=!!e.$id,y)s.props[x]=y[x];if(Object.assign(e,h,m),c.$model=ae,s=Object.defineProperties(s,c,e),u.forEach(function(t){s[t]=e[t]}),re(s,"$id","anonymous"),re(s,"$up",i?i.$up:null),re(s,"$track",Object.keys(l)),re(s,"$active",!1),re(s,"$pathname",i?i.$pathname:""),re(s,"$accessors",c),re(s,"$events",{}),re(s,"$refs",{}),re(s,"$children",[]),re(s,"$components",[]),re(s,"hasOwnProperty",function(e){return!0===l[e]}),re(s,"$mounted",b),t.watch&&(re(s,"$watch",function(){return Y.apply(s,arguments)}),re(s,"$fire",function(e,t){if(0===e.indexOf("all!")){var n=e.slice(4);for(var r in E.vmodels){(i=E.vmodels[r]).$fire&&i.$fire.apply(i,[n,t])}}else if(0===e.indexOf("child!")){n="props."+e.slice(6);for(var r in s.$children){var i;(i=s.$children[r]).$fire&&i.$fire.apply(i,[n,t])}}else J.call(s,e,[t])})),f.forEach(function(e){var t=i&&i[e],n=s[e]=h[e];n&&"object"==typeof n&&!Date.isDate(n)&&(n.$up=s,n.$pathname=e),J.call(s,e,[n,t])}),g)for(var $ in delete g.props,g)if(Array.isArray(g[$]))for(var k;k=g[$].pop();)Y.call(s,$,k);else Y.call(s,$,g[$]);return s.$active=!0,"anonymous"!==s.$id&&i&&i.$up&&i.$up.$children&&i.$up.$children.push(s),s}function ee(e){if(e&&"object"==typeof e){for(var t in e)if("get"!==t&&"set"!==t)return!1;return"function"==typeof e.get}}function te(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 pe.collectDependency(r)}if(!(e=e.$up))break;t=e.$pathname+"."+t}}(this,e),t},set:function(r){if(t!==r){var i=t;(n=ne(r,t))?t=n:(n=void 0,t=r),Object(n)===n&&(n.$pathname=e,n.$up=this),this.$active&&J.call(this,e,[t,i])}},enumerable:!0,configurable:!0}}function ne(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 se)e[i]=se[i];re(e,"$up",null),re(e,"$pathname",""),re(e,"$track",le(e.length)),e._=Q({state:{length:NaN}},{watch:!0}),e._.length=e.length,e._.$watch("length",function(t,n){J.call(e.$up,e.$pathname+".length",[t,n])}),n&&re(e,"$watch",function(){return Y.apply(e,arguments)}),Object.defineProperty(e,"$model",ae);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),J.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,ie(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])&&(ce.call(this.$track,t,1),ce.call(this,t,1));else if("function"==typeof e)for(t=this.length-1;t>=0;t--){e(this[t],t)&&(ce.call(this.$track,t,1),ce.call(this,t,1))}else ce.call(this.$track,0,this.length),ce.call(this,0,this.length);$||(this.$model=ie(this)),this.notify(),this._.length=this.length},clear:function(){this.removeAll()}},ce=oe.splice;function le(e){for(var t=[],n=0;n2){n[1],n.length;n=[n[0],n[1]].concat(le(n.length-2))}}Array.prototype[t].apply(e,n)}(this.$track,e,n),$||(this.$model=ie(this)),this.notify(),this._.length=this.length,a}}),"sort,reverse".replace(h,function(e){se[e]=function(){var t=this.concat(),n=Math.random(),r=[],i=!1;oe[e].apply(this,arguments);for(var a=0,o=t.length;a444&&ye())}(t,e)}}),e.getter=Ue(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=Tn.$filter.apply(0,[n].concat(e._filters))),e.signature){var a=E.type(n);if("array"!==a&&"object"!==a)throw Error("warning:"+e.expr+"只能是对象或数组");e.xtype=a;var s=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),c=n.$track||("array"===a?le(n.length):Object.keys(n));e.track=c,s!==c.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,o("warning:exception throwed in [Anot.injectBinding] ",t);var l=e.element;l&&3===l.nodeType&&(l.nodeValue=q+(e.oneTime?"::":"")+e.expr+V)}finally{t&&pe.end()}},e.update()};var de=E.$$subscribers=[],he=new Date;function ve(t,n){t.list=n,t.i=~~t.i,t.uuid||(t.uuid="_"+ ++e),de[t.uuid]||(de[t.uuid]="__",de.push(t))}var me=0;function ye(e){for(var t=me||de.length,n=0;e=de[--t];)if(e.i<7){if(null===e.element){de.splice(t,1),e.list&&(E.Array.remove(e.list,e),delete de[e.uuid]);continue}if(be(e.element)){if(de.splice(t,1),E.Array.remove(e.list,e),ge(e),n++>500){me=t;break}continue}e.i++,7===e.i&&(e.i=14)}else e.i--;he=new Date}function ge(e){for(var t in delete de[e.uuid],e.element=null,e.rollback&&e.rollback(),e)e[t]=null}function be(e){try{e.parentNode.nodeType}catch(e){return!0}return e.ifRemove&&!k.contains(e.ifRemove)&&a===e.parentNode?(e.parentNode&&e.parentNode.removeChild(e),!0):e.msRetain?0:1===e.nodeType?!k.contains(e):!E.contains(k,e)}var we=new function(){E.mix(this,{option:r.createElement("select"),thead:r.createElement("table"),td:r.createElement("tr"),area:r.createElement("map"),tr:r.createElement("tbody"),col:r.createElement("colgroup"),legend:r.createElement("fieldset"),_default:r.createElement("div"),g:r.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(h,function(e){we[e]=we.g});var xe=/<([\w:]+)/,$e=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,ke=N(["","text/javascript","text/ecmascript","application/ecmascript","application/javascript"]),Ce=r.createElement("script"),Ae=/<|&#?\w+;/;function _e(e){return e.replace(/([a-z\d])([A-Z]+)/g,"$1-$2").toLowerCase()}function Te(e){return e.indexOf("-")<0&&e.indexOf("_")<0?e:e.replace(/[-_][^-_]/g,function(e){return e.charAt(1).toUpperCase()})}E.parseHTML=function(e){var t=C.cloneNode(!1);if("string"!=typeof e)return t;if(!Ae.test(e))return t.appendChild(r.createTextNode(e)),t;e=e.replace($e,"<$1>").trim();var n,i=(xe.exec(e)||["",""])[1].toLowerCase(),a=we[i]||we._default;a.innerHTML=e;var o=a.getElementsByTagName("script");if(o.length)for(var s,c=0;s=o[c++];)if(ke[s.type]){var l=Ce.cloneNode(!1);w.forEach.call(s.attributes,function(e){l.setAttribute(e.name,e.value)}),l.text=s.text,s.parentNode.replaceChild(l,s)}for(;n=a.firstChild;)t.appendChild(n);return t},E.innerHTML=function(e,t){var n=this.parseHTML(t);this.clearHTML(e).appendChild(n)},E.clearHTML=function(e){for(e.textContent="";e.firstChild;)e.removeChild(e.firstChild);return e},"add,remove".replace(h,function(e){E.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}}),E.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-"+_e(e||""),arguments.length){case 2:return this.attr(e,t),this;case 1:return je(this.attr(e));case 0:var n={};return w.forEach.call(this[0].attributes,function(t){t&&((e=t.name).indexOf("data-")||(e=Te(e.slice(5)),n[e]=je(t.value)))}),n}},removeData:function(e){return e="data-"+_e(e),this[0].removeAttribute(e),this},css:function(e,t){if(E.isPlainObject(e))for(var n in e)E.css(this,n,e[n]);else var r=E.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+=E.css(e[0],"borderTopWidth",!0),r.left+=E.css(e[0],"borderLeftWidth",!0),r.top-=e.scrollTop(),r.left-=e.scrollLeft()),{top:t.top-r.top-E.css(n,"marginTop",!0),left:t.left-r.left-E.css(n,"marginLeft",!0)}},offsetParent:function(){for(var e=this[0].offsetParent;e&&"static"===E.css(e,"position");)e=e.offsetParent;return E(e||k)},bind:function(e,t,n){if(this[0])return E.bind(this[0],e,t,n)},unbind:function(e,t,n){return this[0]&&E.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=Me[(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}}),k.dataset&&(E.fn.data=function(e,t){e=e&&Te(e);var n=this[0].dataset;switch(arguments.length){case 2:return n[e]=t,this;case 1:return je(t=n[e]);case 0:var r=s();for(e in n)r[e]=je(n[e]);return r}}),E.parseJSON=JSON.parse;var Ne=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/;function je(e){try{if("object"==typeof e)return e;e="true"===e||"false"!==e&&("null"===e?null:+e+""===e?+e:Ne.test(e)?JSON.parse(e):e)}catch(e){}return e}E.fireDom=function(e,t,n){var i=r.createEvent("Events");i.initEvent(t,!0,!0),E.mix(i,n),e.dispatchEvent(i)},E.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){E.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 Ee=E.cssHooks=s(),Oe=["","-webkit-","-moz-","-ms-"],Se={float:"cssFloat"};E.cssNumber=N("animationIterationCount,animationIterationCount,columnCount,order,flex,flexGrow,flexShrink,fillOpacity,fontWeight,lineHeight,opacity,orphans,widows,zIndex,zoom"),E.cssName=function(e,t,n){if(Se[e])return Se[e];t=t||k.style;for(var r=0,i=Oe.length;r-1)&&(n=!0);n||(e.selectedIndex=-1)}},Pe={};["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){Pe[e]=!0});var He=/[a-z_$]/i,Re=/[\s\uFEFF\xA0]/;function Be(e,t){if(t&&!Pe[t])return e.push(t),!0}function Fe(e,t,n,r){for(var i,a=[],o=" = "+n+".",s=e.length;i=e[--s];){var c=i.split(".")[0];t.hasOwnProperty(c)&&(a.push(c+o+c),r.observers.push({v:t,p:i,type:E.type(t[c])}),e.splice(s,1))}return a}var Ie=/(proxy\-[a-z]+)\-[\-0-9a-f]+$/,qe=new P(218),Ve=new P(128);function We(e){e=e.trim();var t=qe.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(wt,function(e){return Array(e.length+1).join("1")}).replace(bt,"ᄢ㍄").indexOf("|");if(t>-1)return{type:"text",filters:e.slice(t).trim(),expr:e.slice(0,t)}}return{type:"text",expr:e,filters:""}}function kt(e){for(var t,n,r=[],i=0;;){if(-1===(n=e.indexOf(q,i)))break;if((t=e.slice(i,n))&&r.push({expr:t}),i=n+q.length,-1===(n=e.indexOf(V,i)))break;(t=e.slice(i,n))&&r.push($t(t.replace(xt,""))),i=n+V.length}return(t=e.slice(i))&&r.push({expr:t}),r}function Ct(e,t,n){var i=[],a=kt(e.data);if(a.length){for(var o,s=0;o=a[s++];){var c=r.createTextNode(o.expr);o.type&&(o.expr=o.expr.replace(it,function(){return o.oneTime=!0,""}),o.element=c,o.filters=o.filters.replace(gt,function(){return o.type="html",""}),o.pos=1e3*n+s,i.push(o)),C.appendChild(c)}e.parentNode.replaceChild(C,e),i.length&&nt(i,t)}}var At=function(){this.queue=[]};At.prototype={render:function(e){if(!this.locked){this.locked=e?k.offsetHeight+10:1;var t=this;E.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 _t=new At,Tt=[],Nt=[],jt={__init__:_,componentWillMount:_,componentDidMount:_,childComponentDidMount:_,componentWillUnmount:_,render:function(){return null}};function Et(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)}E.components={},E.component=function(e,t){t&&(E.components[e]=E.mix({},jt,t));for(var n,i=0;n=Tt[i];i++)e===n.name&&(Tt.splice(i,1),i--,function(t,n,i,a){if(E.contains(r,i)&&!i.msResolved){var o=1;if(!i.getAttribute(":attr-uuid")){n.watch=n.watch||{};for(var s,c,l,u=t.vmodels.concat().pop(),f={},p=pt(i,t.vmodels),d=p.uuid||j(a),h={__extra__:[]};u.$up&&u.$up.__WIDGET__===e;)u=u.$up;i.childNodes.length&&(s=i.childNodes,c=t.vmodels,l={__extra__:[]},x.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)l[n]=l[n]||[],e.removeAttribute("slot"),t?l[n].push(e.innerHTML):l[n].push(e.outerHTML);else{var i=e.outerHTML;if(et(e)||/:[\w-]*=".*"/.test(i))break;W.test(i)&&(i=Ue(ze(i),c,{}).apply(0,c)),l.__extra__.push(i)}break;case 3:(i=e.textContent.trim())&&l.__extra__.push(i)}e.parentNode.removeChild(e)}),h=l);var v=h.__extra__.join("");if(delete h.__extra__,i.text=function(){return v},p.hasOwnProperty(":disabled")){var m=p[":disabled"],y=!1;0===m.indexOf("!")&&(m=m.slice(1),y=!0),f.disabled=Et(u,m),y&&(f.disabled=!f.disabled),u.$watch(m,function(e){y&&(e=!e),E.vmodels[d].disabled=e}),delete p[":disabled"]}if(p.hasOwnProperty(":loading")){var g=p[":loading"],b=!1;0===g.indexOf("!")&&(g=g.slice(1),b=!0),f.loading=Et(u,g),b&&(f.loading=!f.loading),u.$watch(g,function(e){b&&(e=!e),E.vmodels[d].loading=e}),delete p[":loading"]}if(p.hasOwnProperty(":value")){var w=p[":value"],$=function(){var e=Et(u,w);E.vmodels[d].value=e},k=function(){var e=this.value;e&&"object"==typeof e&&(e=e.$model),Et(u,w,e)};f.value=Et(u,w),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(w,$),Array.isArray(f.value)?(u.$watch(w+".*",$),u.$watch(w+".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(i,n.props,n.state,function(){C=!0,delete i.text}),C){n.$id=d;var{componentWillMount:A,componentDidMount:_,childComponentDidMount:T,componentWillUnmount:N,render:O}=n;delete n.__init__,delete n.componentWillMount,delete n.componentDidMount,delete n.childComponentDidMount,delete n.componentWillUnmount;var S=E(n);E.vmodels[S.$id]=S,re(S,"__WIDGET__",e),re(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),i.msResolved=1,A.call(S),E.clearHTML(i);var D=O.call(S,h)||"";D=D.replace(/<\w+[^>]*>/g,function(e,t){return e.replace(/[\n\t\s]{1,}/g," ")}),i.innerHTML=D,re(S,"$elem",i),i.__VM__=S,E.fireDom(i,"datasetchanged",{vm:S,childReady:1});var L=0,M=E.bind(i,"datasetchanged",function(e){if(e.childReady&&(o+=e.childReady,S.$id!==e.vm.$id&&(-1===e.childReady&&(L++,T.call(S,e.vm)),e.stopPropagation())),0===o){var n=setTimeout(function(){clearTimeout(n),i.removeAttribute("is-widget"),_.call(S)},L?Math.max(17*L,100):17);E.unbind(i,"datasetchanged",M),t.rollback=function(){try{N.call(S)}catch(e){}u.$recycle&&u.$recycle(),E.Array.remove(u.$components,S),delete E.vmodels[S.$id]},ve(t,Nt),window.chrome&&i.addEventListener("DOMNodeRemovedFromDocument",function(){setTimeout(ye)})}});if(yt(i,[S]),i.childNodes.length)var P=setTimeout(function(){clearTimeout(P),E.fireDom(i,"datasetchanged",{vm:S,childReady:-1})},17);else E.fireDom(i,"datasetchanged",{vm:S,childReady:-1})}}}else E.Array.remove(Tt,t)}(n,ie(E.components[e]),n.element,n.name))};var Ot={};["autofocus,autoplay,async,allowTransparency,checked,controls","declare,disabled,defer,defaultChecked,defaultSelected","contentEditable,isMap,loop,multiple,noHref,noResize,noShade","open,readOnly,selected"].join(",").replace(h,function(e){Ot[e.toLowerCase()]=e});var St={"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(h,function(e){St[e.toLowerCase()]=e});E.directive("attr",{init:function(e){if(e.expr=ze(e.expr.trim()),"include"===e.type){var t=e.element;Jt(t,e),e.includeRendered=tt(t,"data-rendered",e.vmodels),e.includeLoaded=tt(t,"data-loaded",e.vmodels);var n=e.includeReplace=!!E(t).data("includeReplace");E(t).data("cache")&&(e.templateCache={}),e.start=r.createComment(":include"),e.end=r.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={},i=this.vmodels[0];if(e=ie(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(k.hasAttribute||(n[a]=n[a].replace(/&/g,"&")),t[a]=n[a],window.chrome&&"EMBED"===t.tagName){var o=t.parentNode,s=r.createComment(":src");o.replaceChild(s,t),o.replaceChild(t,s)}}else{var c=a;if(!$&&St[c]&&(c=St[c]),!1!==n[a]&&null!==n[a]&&void 0!==n[a]||(n[a]=""),"boolean"==typeof t[Ot[c]]&&(t[Ot[c]]=!!n[a],n[a]||(n[a]=!!n[a]),!1===n[a])){t.removeAttribute(c);continue}!m.test(t)&&(!(!r.namespaces||!isVML(t))||c in t.cloneNode(!1))?t[c]=n[a]:("object"==typeof n[a]?n[a]=Date.isDate(n[a])?n[a].toUTCString():JSON.stringify(n[a]):"function"==typeof n[a]&&(t[c=lt+Te(c.slice(1))]=n[a].bind(i),n[a]=c),t.setAttribute(c,n[a]))}}else console.error("设置style样式, 请改用 :css指令")}});E.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=E(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 c=i.bind(a,function(){i.addClass(t[0])}),l=i.bind(o,function(){i.removeClass(t[0])});e.rollback=function(){i.unbind("mouseleave",s),i.unbind(a,c),i.unbind(o,l)},e.hasBindEvent=!0}},update:function(e){if("class"===this.type){var t=e;if(!t||this.param)return o('class指令语法错误 %c %s="%s"',"color:#f00",this.name,this.expr);"string"==typeof t&&((t={})[e]=!0),E.isPlainObject(t)||(t=t.$model);var n=E(this.element);for(var r in t)n.toggleClass(r,!!t[r])}}}),"hover,active".replace(h,function(e){M[e]=M.class}),E.directive("css",{init:M.attr.init,update:function(e){var t=E(this.element);if(this.param)t.css(this.param,e);else{var n=e;try{for(var r in"object"==typeof e?E.isPlainObject(e)||(n=e.$model):n=new Function("return "+e)(),n)t.css(r,n[r])}catch(e){o('样式格式错误 %c %s="%s"',"color:#f00",this.name,this.expr)}}}}),E.directive("data",{priority:100,init:M.attr.init,update:function(e){var t=e;if("object"==typeof t&&null!==t)for(var n in E.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 Dt={};E.validate=function(e,t){if(!Dt[e])throw new Error("validate ["+e+"] not exists.");"function"==typeof t&&(Dt[e].event=t);var n=Dt[e].result;for(var r in n)if(!n[r].passed)return n[r];return!0},E.directive("rule",{priority:2010,init:function(e){e.param&&!Dt[e.param]&&(Dt[e.param]={event:_,result:{}}),e.target=Dt[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;E(n).bind("blur",i),this.rollback=function(){E(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?E.fireDom(n,"datasetchanged",{bubble:n.msHasEvent}):n.msHasEvent="selectDuplex"}}});function Ht(e){return null==e?"":e}function Rt(e,t,n,r){return t.param.replace(v,function(r){var i=E.duplexHooks[r];i&&"function"==typeof i[n]&&(e=i[n](e,t))}),e}E.duplexHooks={checked:{get:function(e,t){return!t.oldValue}},string:{get:function(e){return e},set:Ht},boolean:{get:function(e){return"true"===e},set:Ht},number:{get:function(e,t){var n=+e;return+e===n?n:0},set:Ht}};var Bt,Ft=[];function It(){for(var e=Ft.length-1;e>=0;e--){!1===(0,Ft[e])()&&Ft.splice(e,1)}Ft.length||clearInterval(Bt)}E.tick=function(e){1===Ft.push(e)&&(Bt=setInterval(It,60))};var qt=_;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){qt=E.tick}},E.directive("effect",{priority:5,init:function(e){var t,n,r=e.expr,i=r.replace(U,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=W.test(r)?ze(t):Ze(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&&(Ut||zt)){var o=r[Gt]||i[Gt];o&&"0s"!==o&&(n.setAttribute("data-effect-driver","t"),a=!0),a||(o=r[Xt]||i[Xt])&&"0s"!==o&&(n.setAttribute("data-effect-driver","a"),a=!0)}a||E.effects[t]&&(n.setAttribute("data-effect-driver","j"),a=!0),a&&n.setAttribute("data-effect-name",t)}}}),E.effects={},E.effect=function(e,t){E.effects[e]=t};var Vt,Wt,Ut=!1,zt=!1,Gt=E.cssName("transition-duration"),Xt=E.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&&(Ut=!0,Vt=e),n={AnimationEvent:"animationend",WebKitAnimationEvent:"webkitAnimationEnd"})if(window[r]){t=n[r];break}"string"==typeof t&&(Ut=!0,Wt=t)};var Yt=[];function Jt(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 Kt(e){return e.replace(/^[\S]/g,function(e){return e.toUpperCase()})}var Zt=new At;function Qt(){}function en(e,t){var n=e.callbacks[t+"Class"];return"string"==typeof n?n:"function"==typeof n?n():e.name+"-"+t}function tn(e,t,n){var r=e.callbacks[t];r&&r.call(e,e.el,n)}Qt.prototype={contrustor:Qt,enterClass:function(){return en(this,"enter")},leaveClass:function(){return en(this,"leave")},actionFun:function(e,t,n){if(!document.hidden){var r=this,i=r.el,a="leave"===e;e=a?"leave":"enter",tn(r,"abort"+Kt(a?"enter":"leave")),tn(r,"before"+Kt(e)),a||t(i);var o=function(o){i.removeEventListener(r.cssEvent,r.cssCallback),a?(t(i),E(i).removeClass(r.cssClass)):"a"===r.driver&&E(i).removeClass(r.cssClass),!0!==o&&(tn(r,"after"+Kt(e)),n&&n(i)),r.dispose()};r.useCss?(r.cssCallback&&r.cssCallback(!0),r.cssClass=en(r,e),r.cssCallback=o,r.update=function(){i.addEventListener(r.cssEvent,r.cssCallback),a||"t"!==r.driver||E(i).removeClass(r.cssClass)},E(i).addClass(r.cssClass),Zt.render(!0),Zt.queue.push(r)):tn(r,e,o)}},enter:function(e,t){this.actionFun.apply(this,["enter"].concat(E.slice(arguments)))},leave:function(e,t){this.actionFun.apply(this,["leave"].concat(E.slice(arguments)))},dispose:function(){this.update=this.cssCallback=null,Yt.unshift(this)>100&&Yt.pop()}};var nn=function(e,t){var n=x.call(arguments,0);"function"!=typeof n[2]&&n.splice(2,0,_),"function"!=typeof n[3]&&n.splice(3,0,_);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=Yt.pop()||new Qt;return i.el=e,i.driver=r,i.useCss="j"!==r,i.useCss&&(t&&E(e).addClass(t.effectClass),i.cssEvent="t"===r?Vt:Wt),i.name=n,i.callbacks=E.effects[n]||{},i}(e,n[4]);if(!a)return r(),i(),!1;a[t?"enter":"leave"](r,i)};E.mix(E.effect,{apply:nn,append:function(e,t,n,r){return nn(e,1,function(){t.appendChild(e)},n,r)},before:function(e,t,n,r){return nn(e,1,function(){t.parentNode.insertBefore(e,t)},n,r)},remove:function(e,t,n,r){return nn(e,0,function(){e.parentNode===t&&t.removeChild(e)},n,r)}}),E.directive("html",{update:function(e){var t=this.element,n=1!==t.nodeType,i=n?t.parentNode:t;if(i){if(e=null==e?"":e,3===t.nodeType){var a=j("html");i.insertBefore(r.createComment(a),t),this.element=r.createComment(a+":end"),i.replaceChild(this.element,t),t=this.element}if("object"!=typeof e)var o=E.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=C.cloneNode(!0);s[0];)o.appendChild(s[0])}if(s=E.slice(o.childNodes),n){for(var c=t.nodeValue.slice(0,-4);;){var l=t.previousSibling;if(!l||8===l.nodeType&&l.nodeValue===c)break;i.removeChild(l)}i.insertBefore(o,t)}else E.clearHTML(t).appendChild(o);mt(s,this.vmodels)}}}),E.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}}),E.directive("if",{priority:10,update:function(e){var t,n=this,i=this.element,o=n.stamp=+new Date,s=function(){o===n.stamp&&(n.recoverNode=null)};n.recoverNode&&n.recoverNode();try{if(!i.parentNode)return;t=i.parentNode}catch(e){return}if(e){function c(){i.getAttribute(n.name)&&(i.removeAttribute(n.name),dt(i,n.vmodels)),n.rollback=null}if(8===i.nodeType){var l=n.keep,u=E.effect.apply(l,1,function(){o===n.stamp&&(i.parentNode.replaceChild(l,i),i=n.element=l,l.getAttribute("_required")&&(i.required=!0,i.removeAttribute("_required")),i.querySelectorAll&&E.each(i.querySelectorAll("[_required=true]"),function(e){e.required=!0,e.removeAttribute("_required")}),c())},s);u=!1===u}u||c()}else if(1===i.nodeType){!0===i.required&&(i.required=!1,i.setAttribute("_required","true"));try{E.each(i.querySelectorAll(":required"),function(e){i.required=!1,e.setAttribute("_required","true")})}catch(e){}var f=n.element=r.createComment(":if"),p=i.nextSibling;n.recoverNode=function(){n.recoverNode=null,f.parentNode!==t&&(t.insertBefore(f,p),n.keep=i)},E.effect.apply(i,0,function(){n.recoverNode=null,o===n.stamp&&(i.parentNode.replaceChild(f,i),n.keep=i,a.appendChild(i),n.rollback=function(){i.parentNode===a&&a.removeChild(i)})},s)}}});var rn=E.templateCache={};function an(e){for(var t=r.createDocumentFragment(),n=0,i=e.length;n0&&t.indexOf(")")>-1){var r=(t.match(on)||["",""])[1].trim();""!==r&&"$event"!==r||(t=t.replace(on,""))}e.expr=t},update:function(e){var t=this,n=this.element;e=function(e){return(t.getter||_).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=E.bind(n,r,e);t.rollback=function(){"function"==typeof t.specialUnbind?t.specialUnbind():E.unbind(n,r,i)}}});function cn(e,t,n){for(var r,i=0;r=e[i++];)r.className===n.effectClass&&E.effect.apply(r,t,_,_,n)}function ln(e,t,n){return e?setTimeout(t,++n*e):t(),n}function un(e,t,n){for(var r=C.cloneNode(!1),i=e,a=i.nodeValue,o=t&&Math.max(+t.staggerIndex,0),s=E.slice(i.parentNode.childNodes),c=s.indexOf(i);;){var l=s[--c];if(!l||0===String(l.nodeValue).indexOf(a))break;!n&&t&&l.className===t.effectClass?(e=l,function(e){t.staggerIndex=ln(t.effectLeaveStagger,function(){E.effect.apply(e,0,_,function(){r.appendChild(e)},t)},o)}(l)):r.insertBefore(l,r.firstChild)}return r.appendChild(i),r}function fn(e,t,n,r,i){var a=e.template.cloneNode(!0),o=E.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 pn(e){var t=("object"===e.xtype?yn:vn)(e);return(t.$anchor||(t.$anchor=e.element.cloneNode(!1))).nodeValue=e.signature,t.$outer=e.$outer,t}function dn(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})}}E.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 i=e.expr.split(" in ");e.expr=i.pop(),i.length&&(i=i.pop().split(/\s+/)),e.vars=i,n.removeAttribute(e.name),Jt(n,e);var a=tt(n,"data-rendered",e.vmodels),o=j(t),s=r.createComment(o+":start"),c=e.element=r.createComment(o+":end");e.signature=o,e.start=s,e.template=C.cloneNode(!1);var l=n.parentNode;if(l.replaceChild(c,n),l.insertBefore(s,c),e.template.appendChild(n),e.element=c,a)var u=E.bind(l,"datasetchanged",function(){a.apply(l,l.args),E.unbind(l,"datasetchanged",u),l.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,c=0;s=n.vmodels[c++];)if(s.hasOwnProperty(a)&&s.hasOwnProperty(o)){n.$outer=s;break}}var l=this.track,u="move";n.$repeat=e;var f=[],p=i&&C.cloneNode(!1),d=[],h=this.param,v=E.mix({},this.cache),m=this.element,y=l.length,g=m.parentNode,b=0;for(c=0;c10,A=m.previousSibling,_=n.start;if(k)for(;A!==_;)g.removeChild(A),A=m.previousSibling;for(c=0;cI.maxRepeatSize&&i.pop(),delete e[t]}}function bn(e,t){var n="_"+e;if(!bn[n]){var i=r.createElement(e);k.appendChild(i),t=$?getComputedStyle(i,null).display:i.currentStyle.display,k.removeChild(i),bn[n]=t}return bn[n]}E.parseDisplay=bn,E.directive("visible",{init:function(e){Jt(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"===E(r).css("display")&&(r.style.display=n.display=bn(r.nodeName))):r.style.display="none");t=this.stamp=+new Date,e?E.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"===E(r).css("display")&&(r.style.display=n.display||bn(r.nodeName))}}):E.effect.apply(r,0,function(){t===n.stamp&&(r.style.display="none")})}});var wn=/]*>([\S\s]*?)<\/script\s*>/gim,xn=/\s+(on[^=\s]+)(?:=("[^"]*"|'[^']*'|[^\s>]+))?/g,$n=/<\w+\b(?:(["'])[^"]*?(\1)|[^>])*>/gi,kn={a:/\b(href)\=("javascript[^"]*"|'javascript[^']*')/gi,img:/\b(src)\=("javascript[^"]*"|'javascript[^']*')/gi,form:/\b(action)\=("javascript[^"]*"|'javascript[^']*')/gi},Cn=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,An=/([^\#-~| |!])/g;function _n(e,t,n,r){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var i=isFinite(+e)?+e:0,a=isFinite(+t)?Math.abs(t):3,o=r||",",s=n||".",c="";return(c=(a?function(e,t){var n=Math.pow(10,t);return""+(Math.round(e*n)/n).toFixed(t)}(i,a):""+Math.round(i)).split("."))[0].length>3&&(c[0]=c[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,o)),(c[1]||"").length>=0)%60,n=Math.floor(e/60),r=Math.floor(n/60);return n=(n%=60)<10?"0"+n:n,t=t<10?"0"+t:t,r>0?(r=r<10?"0"+r:r)+":"+n+":"+t:n+":"+t},$filter:function(e){for(var t=1,n=arguments.length;t/g,">")},currency:function(e,t,n){return(t||"¥")+_n(e,isFinite(n)?n:2)},number:_n,date:function(e,t,n){var r;if(n=void 0!==n,Date.isDate(e))r=e;else if(/[^\d]/.test(e)||(e-=0,n&&(e*=1e3)),(r=new Date(e))+""=="Invalid Date")return"Invalid Date";return r.format(t)}},Nn={};!function(){if(!window.LIBS_BASE_URL){var e;try{throw new Error}catch(t){e=t.stack}e=e.trim().split(/[@ ]+/),e=(e=window.safari?e[1]:e.pop()).replace(/(:\d+)?:d+([\w\W]*)?$/i,""),window.LIBS_BASE_URL=e.replace(/^([a-z-]*):\/\/([^\/]+)(\/.*)?/,"$1://$2")}}();var jn,En=[],On=function(e){for(jn=!0;e=En.shift();)e(E)};"complete"===r.readyState?setTimeout(On):r.addEventListener("DOMContentLoaded",On),window.addEventListener("load",On),E.ready=function(e){jn?e(E):En.push(e)},window.importCss=function(e,t){e=e.replace(/^\/+/,"/"),t?e=t+e:window.LIBS_BASE_URL&&(e=window.LIBS_BASE_URL+e),Nn[e]||(i.insertAdjacentHTML("afterBegin",''),Nn[e]=1)};var Sn=window.Anot;return E.noConflict=function(e){return e&&window.Anot===E&&(window.Anot=Sn),E},window.Anot=E,E}();export default _Anot;