8 lines
72 KiB
JavaScript
8 lines
72 KiB
JavaScript
/*==================================================
|
|
* 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",'<anot skip class="anot-hide"><style id="anot-style">.anot-hide{ display: none!important } slot{visibility:hidden;}</style></anot>');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<a;i++)n[e[i]]=r;return n}function j(t){return(t=t&&t+"-"||"anot-")+(++e).toString(16)}!function(e){function t(e){return e}function n(e){throw e}function r(e){return this.then(e,n)}function i(e){return this.then(t,e)}function a(){var e={};return e.promise=new l(function(t,n){e.resolve=t,e.reject=n}),e}function o(e,t,n){e._fired=!0,e._val=t,e._state=n?"fulfilled":"rejected",s(e,function(){for(var t in e.callback)e._fire(e.callback[t].yes,e.callback[t].no)})}function s(e,t){("boolean"==typeof e.async?e.async:e.async=!0)?setTimeout(t,0):t()}function c(e,t){t=Array.isArray(t)?t:[];var n=0,r=[],i=!1;return new l(function(a,o){function s(s,c){s.then(function(o){i||(r[c]=o,(e||++n>=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;c<l;c++)s(t[c],c)})}var l=function(e){this.callback=[];var t=this;if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("Argument must be a function");e(function(e){!function(e,t){"pending"===e._state&&(t&&"function"==typeof t.then?t[t instanceof l?"_then":"then"](function(t){o(e,t,!0)},function(t){o(e,t,!1)}):o(e,t,!0))}(t,e)},function(e){!function(e,t){"pending"===e._state&&o(e,t,!1)}(t,e)})},u={_state:1,_fired:1,_val:1,callback:1};l.prototype={constructor:l,_state:"pending",_fired:!1,_fire:function(e,t){if("rejected"===this._state){if("function"!=typeof t)throw this._val;t(this._val)}else"function"==typeof e&&e(this._val)},_then:function(e,t){if(this._fired){var n=this;s(n,function(){n._fire(e,t)})}else this.callback.push({yes:e,no:t})},then:function(e,r){e="function"==typeof e?e:t,r="function"==typeof r?r:n;var i=this,a=new l(function(t,n){i._then(function(r){try{r=e(r)}catch(e){return n(e)}t(r)},function(e){try{e=r(e)}catch(e){return n(e)}t(e)})});for(var o in i)u[o]||(a[o]=i[o]);return a},done:r,catch:i,fail:i},l.all=function(e){return c(!1,e)},l.race=function(e){return c(!0,e)},l.defer=a,l.resolve=function(e){var t=this.defer();return t.resolve(e),t.promise},l.reject=function(e){var t=this.defer();return t.reject(e),t.promise},/native code/.test(e)&&(e.prototype.done=r,e.prototype.fail=i,e.defer||(e.defer=a)),window.Promise=e||l}(window.Promise),Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,value:function(e,t){"use strict";if(void 0===e||null===e)throw new TypeError("Can not convert first argument to object");for(var n=Object(e),r=0,i=arguments.length;r<i;r++){var a=arguments[r];if(void 0!==a&&null!==a)for(var o=Object.keys(Object(a)),s=0,c=o.length;s<c;s++){var l=o[s],u=Object.getOwnPropertyDescriptor(a,l);void 0!==u&&u.enumerable&&(n[l]=a[l])}}return n}}),Array.from||Object.defineProperty(Array,"from",{enumerable:!1,value:(c=Object.prototype.toString,l=function(e){return"function"==typeof e||"[object Function]"===c.call(e)},u=Math.pow(2,53)-1,f=function(e){var t=function(e){var t=e-0;return isNaN(t)?0:0===t||isFinite(t)?t:(t>0?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<a;)i=t[s],o[s]=r?"undefined"===n?r(i,s):r.call(n,i,s):i,s++;return o.length=a,o})}),Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(e){for(var t in this)if(this[t]===e)return!0;return!1},enumerable:!1}),String.prototype.splice||Object.defineProperty(String.prototype,"splice",{value:function(e,t,n){var r=this.length,i=arguments.length;return n=void 0===n?"":n,i<1?this:(e<0&&(e=Math.abs(e)>=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<e;t++)n[t]();n=n.slice(e)}).observe(r,{characterData:!0});var i=!1;return function(e){n.push(e),i=!i,r.data=i}}return function(e){setTimeout(e,4)}},E.type=function(e){return null==e?String(e):"object"==typeof e||"function"==typeof e?A[b.call(e)]||"object":typeof e},E.PropsTypes=function(e){this.type="PropsTypes",this.checkType=e},E.PropsTypes.prototype={toString:function(){return""},check:function(e){return this.result=E.type(e),this.result===this.checkType},call:function(){return this.toString()}},E.PropsTypes.isString=function(){return new this("string")},E.PropsTypes.isNumber=function(){return new this("number")},E.PropsTypes.isFunction=function(){return new this("function")},E.PropsTypes.isArray=function(){return new this("array")},E.PropsTypes.isObject=function(){return new this("object")},E.PropsTypes.isBoolean=function(){return new this("boolean")},E.isPlainObject=function(e){return"[object Object]"===b.call(e)&&Object.getPrototypeOf(e)===y};var O=E.vmodels={};function S(e,t,n){if(!window[e])return o("该浏览器不支持本地储存"+e);if("object"!==this.type(t))switch(arguments.length){case 2:return window[e].getItem(t);case 3:if("string"==this.type(n)&&""===n.trim()||null===n)return void window[e].removeItem(t);"object"!==this.type(n)&&"array"!==this.type(n)?window[e].setItem(t,n.toString()):window[e].setItem(t,JSON.stringify(n))}else for(var r in t)window[e].setItem(r,t[r])}E.init=function(e){if(E.isPlainObject(e)){var t=e.$id,n=null;return t||o("warning: vm必须指定id"),(n=Z(Object.assign({props:{}},e))).$id=t,O[t]=n,E.nextTick(function(){var e=document.querySelector("[anot="+n.$id+"]");if(e)if(e===r.body)yt(e,[]);else{for(var t=e;(t=t.parentNode)&&!t.__VM__;);yt(e.parentNode,t?[t.__VM__]:[])}}),n}this[0]=this.element=e},E.fn=E.prototype=E.init.prototype,E.mix=E.fn.mix=function(){var e,t,n,r,i,a,o=arguments[0]||{},s=1,c=arguments.length,l=!1;for("boolean"==typeof o&&(l=o,o=arguments[1]||{},s++),"object"!=typeof o&&"function"!==E.type(o)&&(o={}),s===c&&(o=this,s--);s<c;s++)if(null!=(e=arguments[s]))for(t in e)n=o[t],o!==(r=e[t])&&(l&&r&&(E.isPlainObject(r)||(i=Array.isArray(r)))?(i?(i=!1,a=n&&Array.isArray(n)?n:[]):a=n&&E.isPlainObject(n)?n:{},o[t]=E.mix(l,a,r)):void 0!==r&&(o[t]=r));return o},E.mix({rword:h,subscribers:p,version:"1.0.0",log:o,ui:{},slice:function(e,t,n){return x.call(e,t,n)},noop:_,error:function(e,t){throw new(t||Error)(e)},range:function(e,t,n){n||(n=1),null==t&&(t=e||0,e=0);for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n)),a=new Array(i);++r<i;)a[r]=e,e+=n;return a},deepCopy:ie,eventHooks:{},bind:function(e,t,n,r){var i=E.eventHooks;return t=t.split(","),E.each(t,function(a,o){o=o.trim();var s=i[o];"object"==typeof s&&(t=s.type||t,r=s.phase||!!r,n=s.fix?s.fix(e,n):n),e.addEventListener(o,n,r)}),n},unbind:function(e,t,n,r){var i=E.eventHooks;t=t.split(","),n=n||_,E.each(t,function(a,o){o=o.trim();var s=i[o];"object"==typeof s&&(t=s.type||t,r=s.phase||!!r),e.removeEventListener(o,n,r)})},css:function(e,t,n){e instanceof E&&(e=e[0]);var r,i=/[_-]/.test(t)?Te(t):t;if(t=E.cssName(i)||i,void 0===n||"boolean"==typeof n){r=Ee[i+":get"]||Ee["@:get"],"background"===t&&(t="backgroundColor");var a=r(e,t);return!0===n?parseFloat(a)||0:a}if(""===n)e.style[t]="";else{if(null==n||n!=n)return;isFinite(n)&&!E.cssNumber[i]&&(n+="px"),(r=Ee[i+":set"]||Ee["@:set"])(e,t,n)}},each:function(e,t){if(e){var n=0;if(function(e){if(e&&"object"==typeof e){var t=e.length,n=b.call(e);if(/(Array|List|Collection|Map|Arguments)\]$/.test(n))return!0;if("[object Object]"===n&&t===t>>>0)return!0}return!1}(e))for(var r=e.length;n<r&&!1!==t(n,e[n]);n++);else for(n in e)if(e.hasOwnProperty(n)&&!1===t(n,e[n]))break}},Array:{ensure:function(e,t){if(-1===e.indexOf(t))return e.push(t)},removeAt:function(e,t){return!!e.splice(t,1).length},remove:function(e,t){var n=e.indexOf(t);return!!~n&&E.Array.removeAt(e,n)}},ls:function(){var e=x.call(arguments,0);return e.unshift("localStorage"),S.apply(this,e)},ss:function(){var e=x.call(arguments,0);return e.unshift("sessionStorage"),S.apply(this,e)},cookie:function(e,t,n){if(arguments.length>1){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='<circle cx="50" cy="50" r="40" fill="red" />',!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("</"+this.nodeName+">$","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<o;a++){var s=e[a]=ne(e[a],0,1,1);Object(s)===s&&(s.$up=e)}return e}(e,t,r);if(E.isPlainObject(e)){if(t&&"object"==typeof t){var i=Object.keys(e),a=Object.keys(t);if(i.join(";")===a.join(";")){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o]);return t}t.$active=!1}return Q({state:e},{old:t,watch:r})}return n?e:void 0}function re(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!1,configurable:!0})}function ie(e){var t=E.type(e);if("array"===t){for(var n=[],r=0;r<e.length;r++)n[r]=ie(e[r]);return n}if("object"===t){var i={};for(r in e)if(e.hasOwnProperty(r)){var a=e[r];i[r]=a&&a.nodeType?a:ie(a)}return i}return e}E.hideProperty=re;var ae={get:function(){return ie(this)},set:_,enumerable:!1,configurable:!0},oe=Array.prototype,se={notify:function(){J.call(this.$up,this.$pathname)},set:function(e,t){if((e>>>=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;n<e;n++)t[n]=j("proxy-each");return t}["push","pop","shift","unshift","splice"].forEach(function(e){var t=oe[e];se[e]=function(){for(var n=[],r=0,i=arguments.length;r<i;r++)n[r]=ne(arguments[r],0,1,1);var a=t.apply(this,n);return function(e,t,n){switch(t){case"push":case"unshift":n=le(n.length);break;case"splice":if(n.length>2){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;a<o;a++){var s=this[a];if(s===t[a])r.push(a);else{var c=t.indexOf(s);r.push(c),t[c]=n,i=!0}}return i&&(!function(e,t){for(var n={},r=0,i=t.length;r<i;r++){n[r]=e[r];var a=t[r];a in n?(e[r]=n[a],delete n[a]):e[r]=e[a]}}(this.$track,r),$||(this.$model=ie(this)),this.notify()),this}});var ue,fe,pe=(fe=[],{begin:function(e){fe.push(ue),ue=e},end:function(){ue=fe.pop()},collectDependency:function(e){ue&&ue.callback(e)}});E.injectBinding=function(e){e.handler=e.handler||M[e.type].update||_,e.update=function(){var t=!1;e.getter||(t=!0,pe.begin({callback:function(t){!function(e,t){if(t.oneTime)return;e&&E.Array.ensure(e,t)&&t.element&&(ve(t,e),new Date-he>444&&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></$2>").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<i;r++)if((n=Te(Oe[r]+e))in t)return Se[e]=n;return null},Ee["@:set"]=function(e,t,n){e.style[t]=n},Ee["@:get"]=function(e,t){if(!e||!e.style)throw new Error("getComputedStyle要求传入一个节点 "+e);var n,r=getComputedStyle(e);return r&&""===(n="filter"===t?r.getPropertyValue(t):r[t])&&(n=e.style[t]),n},Ee["opacity:get"]=function(e){var t=Ee["@:get"](e,"opacity");return""===t?"1":t},"top,left".replace(h,function(e){Ee[e+":get"]=function(t){var n=Ee["@:get"](t,e);return/px$/.test(n)?n:E(t).position()[e]+"px"}});var De={position:"absolute",visibility:"hidden",display:"block"},Le=/^(none|table(?!-c[ea]).+)/;"Width,Height".replace(h,function(e){var t=e.toLowerCase(),n="client"+e,r="scroll"+e,i="offset"+e;Ee[t+":get"]=function(t,n,r){var a=-4;"number"==typeof r&&(a=r),n="Width"===e?["Left","Right"]:["Top","Bottom"];var o=t[i];return 2===a?o+E.css(t,"margin"+n[0],!0)+E.css(t,"margin"+n[1],!0):(a<0&&(o=o-E.css(t,"border"+n[0]+"Width",!0)-E.css(t,"border"+n[1]+"Width",!0)),-4===a&&(o=o-E.css(t,"padding"+n[0],!0)-E.css(t,"padding"+n[1],!0)),o)},Ee[t+"&get"]=function(e){var n=[];!function e(t,n){if(t.offsetWidth<=0){var r=getComputedStyle(t,null);if(Le.test(r.display)){var i={node:t};for(var a in De)i[a]=r[a],t.style[a]=De[a];n.push(i)}var o=t.parentNode;o&&1===o.nodeType&&e(o,n)}}(e,n);for(var r,i=Ee[t+":get"](e),a=0;r=n[a++];)for(var o in e=r.node,r)"string"==typeof r[o]&&(e.style[o]=r[o]);return i},E.fn[t]=function(a){var o=this[0];if(0===arguments.length){if(o.setTimeout)return o["inner"+e];if(9===o.nodeType){var s=o.documentElement;return Math.max(o.body[r],s[r],o.body[i],s[i],s[n])}return Ee[t+"&get"](o)}return this.css(t,a)},E.fn["inner"+e]=function(){return Ee[t+":get"](this[0],void 0,-2)},E.fn["outer"+e]=function(e){return Ee[t+":get"](this[0],void 0,!0===e?2:0)}}),E.fn.offset=function(){var e=this[0];try{var t=e.getBoundingClientRect();if(t.width||t.height||e.getClientRects().length){var n=e.ownerDocument,r=n.documentElement,i=n.defaultView;return{top:t.top+i.pageYOffset-r.clientTop,left:t.left+i.pageXOffset-r.clientLeft}}}catch(e){return{left:0,top:0}}};var Me={"select:get":function(e,t){for(var n,r=e.options,i=e.selectedIndex,a="select-one"===e.type||i<0,o=a?null:[],s=a?i+1:r.length,c=i<0?s:a?i:0;c<s;c++)if(((n=r[c]).selected||c===i)&&!n.disabled){if(t=n.value,a)return t;o.push(t)}return o},"select:set":function(e,t,n){t=[].concat(t);for(var r,i=0;r=e.options[i++];)(r.selected=t.indexOf(r.value)>-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;s<t.length;s++){var c=t.charAt(s);if("'"===c||'"'===c)"unknown"===a?a=c:a===c&&(a="unknown");else if("\\"===c)"'"!==a&&'"'!==a||s++;else if(He.test(c))"unknown"===a?(a="variable",o=c):"maybePath"===a?(o=r.pop(),o+="."+c,a="variable"):"variable"===a&&(o+=c);else if(/\w/.test(c))"variable"===a&&(o+=c);else if("."===c)"variable"===a&&o&&(r.push(o),o="",a="maybePath");else if("["===c){if("variable"===a||"maybePath"===a){o&&(r.push(o),o="");var l=r.length,u=r[l-1],f=e(t.slice(s),s);if(f.length)r[l-1]=u+".*",r=f.concat(r);else{var p=t.slice(s+1,f.i);try{var d=T(["return "+p])();r[l-1]=u+"."+d}catch(e){}}a="maybePath",s=f.i}}else if("]"===c){if(i)return r.i=s+n,Be(r,o),r}else Re.test(c)&&"\r"!==c&&"\n"!==c?"variable"===a&&(Be(r,o)&&(a="maybePath"),o=""):(Be(r,o),a="unknown",o="")}return Be(r,o),r}(e),i={},a=[],o=0;n=r[o++];)i[n]||(i[n]=1,a.push(n));return qe.put(e,a).concat()}function Ue(e,t,n){var r=n.filters;"string"==typeof r&&r.trim()&&!n._filters&&(n._filters=function(e){return T(["return ["+(e=e.replace(Ge,"").replace(Xe,function(){return"],|"}).replace(Ye,function(e,t){return"["+Ze(t)}).replace(Je,function(){return'"],["'}).replace(Ke,function(){return'",'})+"]")+"]"])()}(r.trim()));var i=We(e),a=new Date-0,o=[],s=[],c=[];n.observers=[];for(var l=0,u=t.length;l<u;l++)if(i.length){var f="vm"+a+"_"+l;s.push(f),c.push(t[l]),o.push.apply(o,Fe(i,t[l],f,n))}n.args=c;var p=n.type,d=t.map(function(e){return String(e.$id).replace(Ie,"$1")})+e+p,h=Ve.get(d);if(h){if("duplex"===p){var v=Ve.get(d+"setter");n.setter=v.apply(v,n.args)}return n.getter=h}if(o.length||o.push("fix"+a),"duplex"===p){var m={};o.forEach(function(e){var t=e.split("=");m[t[0].trim()]=t[1].trim()}),e=e.replace(/[\$\w]+/,function(e){return m[e]?m[e]:e});var y=T(s.concat('"use strict";\n return function(vvv){'+e+" = vvv\n}\n"));Ve.put(d+"setter",y),n.setter=y.apply(y,n.args)}if("on"===p){-1===e.indexOf("(")?e+=".call("+s[s.length-1]+", $event)":e=e.replace("(",".call("+s[s.length-1]+", "),s.push("$event");var g=(e="\nreturn "+e+";").lastIndexOf("\nreturn"),b=e.slice(0,g),w=e.slice(g);e=b+"\n"+w}else n.observers.forEach(function(t){if("function"===t.type){var n=new RegExp(t.p+"\\(([^)]*)\\)","g");e=e.replace(n,function(e,n){return n=n.trim(),t.p+".call("+s[s.length-1]+(n?", "+n:"")+")"})}}),e="\nreturn "+e+";";return h=T(s.concat("'use strict';\ntry{\n var "+o.join(",\n ")+e+"\n}catch(e){console.log(e)}")),Ve.put(d,h)}function ze(e){if(W.test(e)){var t=kt(e);return 1===t.length?t[0].expr:t.map(function(e){return e.type?"("+e.expr+")":Ze(e.expr)}).join(" + ")}return e}E.normalizeExpr=ze,E.parseExprProxy=Ue;var Ge=/\)\s*$/,Xe=/\)\s*\|/g,Ye=/\|\s*([$\w]+)/g,Je=/"\s*\["/g,Ke=/"\s*\(/g;var Ze=JSON.stringify,Qe=N("area,base,basefont,br,col,command,embed,hr,img,input,link,meta,param,source,track,wbr,noscript,script,style,textarea".toUpperCase());function et(e){var t=e.nodeName.toLowerCase();return/^anot-([a-z][a-z0-9\-]*)$/.test(t)?RegExp.$1:null}function tt(e,t,n){var r=e.getAttribute(t);if(r)for(var i,a=0;i=n[a++];)if(i.hasOwnProperty(r)&&"function"==typeof i[r])return i[r]}function nt(e,t){for(var n,r=0;n=e[r++];)n.vmodels=t,M[n.type].init(n),E.injectBinding(n),n.getter&&1===n.element.nodeType&&n.element.removeAttribute(n.name);e.length=0}var rt=t&&window.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,it=/^\s*::/,at=/:(\w+)-?(.*)/,ot=N("animationend,blur,change,input,click,dblclick,focus,keydown,keypress,keyup,mousedown,mouseenter,mouseleave,mousemove,mouseout,mouseover,mouseup,scan,scroll,submit");N("value,title,alt,checked,selected,disabled,readonly,enabled,href,src");function st(e,t){return e.priority-t.priority}var ct=/^(:\S+|data-\S+|on[a-z]+|style|class)$/,lt="__fn__",ut=[":disabled",":loading",":value"],ft=["html","text","attr","data"];function pt(e,t){for(var n,r=x.call(e.attributes,0),i={},a=t[0]||{},o=0;n=r[o++];){var s=n.name;if(n.specified&&!ct.test(s)||ut.includes(s))if(e.removeAttribute(s),0===s.indexOf(lt))i[s=n.value.slice(6)]=e[n.value],delete e[n.value];else{var c=Te(s);if(0===c.indexOf("@")){c=c.slice(1),n.value=n.value.replace(/\(.*\)$/,""),"proxy-each"===a.$id.slice(0,10)&&(a=a.$up);var l=Et(a,n.value);l&&"function"==typeof l&&(i[c]=l.bind(a))}else i[c]=je(n.value)}}return i}function dt(t,n,r){var i=!0;if(n.length){for(var a,s=t.attributes,c=[],l={},u=0;a=s[u++];){var f=a.name;if(!l[f]&&(l[f]=1,a.specified&&(r=f.match(at)))){var p=r[1],d=r[2]||"",h=a.value;if(ot[p]&&(d=p,p="on"),M[p]){var v=h.replace(it,""),m={type:p,param:d,element:t,name:f,expr:v,oneTime:h!==v,uuid:"_"+ ++e,priority:(M[p].priority||10*p.charCodeAt(0))+(Number(d.replace(/\D/g,""))||0)};if(ft.includes(p)){var y=$t(h).filters;m.expr=m.expr.replace(y,""),m.filters=y.replace(gt,function(){return m.type="html",m.group=1,""}).trim()}else if("duplex"===p)var g=f;else if(":if-loop"===f)m.priority+=100;else if(":attr-value"===f)var b=f;c.push(m)}}}if(c.length){for(c.sort(st),g&&b&&"text"===t.type&&o("warning!一个控件不能同时定义:attr-value与"+g),u=0;m=c[u];u++){if(p=m.type,ht.test(p))return nt(c.slice(0,u+1),n);i&&(i=!vt.test(p))}nt(c,n)}}!i||Qe[t.tagName]||et(t)&&!t.msResolved||(rt&&rt(t),function(e,t){mt(E.slice(e.childNodes),t)}(t,n))}var ht=/^if|for$/,vt=/^html|include$/;function mt(e,t){function n(e){setTimeout(function(){E.component(e)})}for(var r,i=0;r=e[i++];)switch(r.nodeType){case 1:var a=r;if(!a.msResolved&&a.parentNode&&1===a.parentNode.nodeType){var o=et(a);if(o)a.setAttribute("is-widget",""),a.removeAttribute(":if"),a.removeAttribute(":if-loop"),Tt.push({element:a,vmodels:t,name:o}),E.components[o]&&n(o);else{var s=(c=a).hasAttribute("ref")?c.getAttribute("ref"):null;s&&t.length&&(t[0].$refs[s]=a)}}yt(r,t),r.msHasEvent&&E.fireDom(r,"datasetchanged",{bubble:r.msHasEvent});break;case 3:W.test(r.nodeValue)&&Ct(r,t,i)}var c}function yt(e,t){var n=e.getAttribute("skip"),r=e.getAttributeNode("anot"),i=t.concat();if("string"!=typeof n){if(r){var a=E.vmodels[r.value],s=x.call(e.attributes,0);if(!a)return;if(i=[a],e.removeAttribute(r.name),e.__VM__=a,re(a,"$elem",e),t.length){a.$up=t[0],t[0].$children.push(a);var c={};for(var l in s.forEach(function(n){if(/^:/.test(n.name)){var r=n.name.match(at)[1],i=null;if(!r||E.directives[r]||ot[r])return;try{i=ie(i=Ue(n.value,t,{}).apply(0,t)),e.removeAttribute(n.name),c[r]=i}catch(t){o("Props parse faild on (%s[class=%s]),",e.nodeName,e.className,n,t+"")}}}),a.props)a.props[l]&&"PropsTypes"===a.props[l].type&&(a.props[l].check(c[l])?(a.props[l]=c[l],delete c[l]):console.error(new TypeError("props."+l+" needs ["+a.props[l].checkType+"], but ["+a.props[l].result+"] given.")));Object.assign(a.props,c),c=void 0}}dt(e,i),a&&setTimeout(function(){"function"==typeof a.$mounted&&a.$mounted(),delete a.$mounted})}}var gt=/\|\s*html(?:\b|$)/,bt=/\|\|/g,wt=/(['"])(\\\1|.)+?\1/g,xt=/\r?\n/g;function $t(e){if(e.indexOf("|")>0){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.length<e.minLen?10012:0),0===o&&e.hasOwnProperty("max")&&(o=a>e.max?10021:0),0===o&&e.hasOwnProperty("min")&&(o=a<e.min?10022:0),0===o&&e.eq)&&(o=a!==Et(t.vmodels[0],e.eq)?10031:0);r.result[n.expr].code=o,r.result[n.expr].passed=e.require?0===o:!a||0===o;var s=!0;for(var c in r.result)if(!r.result[c].passed){s=!1,r.event(r.result[c]);break}s&&r.event(!0)}}});var Lt=/^(?:checkbox|radio)$/,Mt=/^(?:radio|checked)$/,Pt=/^(file|button|reset|submit|checkbox|radio|range)$/;E.directive("duplex",{priority:2e3,init:function(e,n){var r=e.element,i=e.vmodels;e.changed=tt(r,"data-changed",i)||_;var a=[],s=N("string,number,boolean,checked");"radio"===r.type&&""===e.param&&(e.param="checked"),e.param.replace(v,function(t){Lt.test(r.type)&&Mt.test(t)&&(t="checked",e.isChecked=!0,e.xtype="radio"),s[t]&&(n=!0),E.Array.ensure(a,t)}),n||a.push("string"),e.param=a.join("-"),e.xtype||(e.xtype="SELECT"===r.tagName?"select":"checkbox"===r.type?"checkbox":"radio"===r.type?"radio":/^change/.test(r.getAttribute("data-event"))?"change":"input"),r.expr=e.expr;var c=e.bound=function(t,n){r.addEventListener(t,n,!1);var i=e.rollback;e.rollback=function(){r.anotSetter=null,E.unbind(r,t,n),i&&i()}};function l(t){e.changed.call(this,t)}var u=!1;var f=function(t){var n=r.value;if(!u&&n!==e.oldValue&&null!==e.pipe){var i=e.pipe(n,e,"get");e.oldValue=n,e.setter(i),l.call(r,i),E.fireDom(r,"change")}};switch(e.xtype){case"radio":c("click",function(){var t=e.pipe(r.value,e,"get");e.setter(t),l.call(r,t)});break;case"checkbox":c("change",function(){var t=r.checked?"ensure":"remove",n=e.getter.apply(0,e.vmodels);Array.isArray(n)||(o(":duplex应用于checkbox上要对应一个数组"),n=[n]);var i=e.pipe(r.value,e,"get");E.Array[t](n,i),l.call(r,n)});break;case"change":c("change",f);break;case"input":c("input",f),c("keyup",f),t||(c("compositionstart",function(){u=!0}),c("compositionend",function(){u=!1,setTimeout(f)}),c("DOMAutoComplete",f));break;case"select":c("change",function(){var t=E(r).val();if((t=Array.isArray(t)?t.map(function(t){return e.pipe(t,e,"get")}):e.pipe(t,e,"get"))+""!==e.oldValue)try{e.setter(t)}catch(e){o(e)}}),c("datasetchanged",function(t){if("selectDuplex"===t.bubble){var n=e._value,i=Array.isArray(n)?n.map(String):n+"";E(r).val(i),r.oldValue=i+"",l.call(r,i)}})}"input"!==e.xtype||Pt.test(r.type)||("hidden"!==r.type&&(c("focus",function(){r.msFocus=!0}),c("blur",function(){r.msFocus=!1})),r.anotSetter=f,qt(function(){if(k.contains(r))r.msFocus||f();else if(!r.msRetain)return!1}))},update:function(e){var t,n=this.element;this.init||((this.pipe||(this.pipe=Rt))(null,this,"init"),this.init=1);switch(this.xtype){case"input":n.value=e;break;case"change":if((t=this.pipe(e,this,"set"))!==this.oldValue){var r=!1;if(n.msFocus)try{var i=n.selectionStart;if(i===n.selectionEnd){var a=i;r=!0}}catch(e){}n.value=this.oldValue=t,r&&!n.readOnly&&(n.selectionStart=n.selectionEnd=a)}break;case"radio":t=this.isChecked?!!e:e+""===n.value,n.checked=t;break;case"checkbox":var o=[].concat(e);t=this.pipe(n.value,this,"get"),n.checked=o.indexOf(t)>-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;n<i;n++)t.appendChild(e[n]);return t}E.directive("include",{init:M.attr.init,update:function(e){var t=this,n=this.element,i=t.vmodels,s=t.includeRendered,c=t.effectName&&t.effectClass,l=t.templateCache,u=t.includeReplace,f=t.includeLoaded,p=u?n.parentNode:n,d=t._element;t.recoverNodes=t.recoverNodes||E.noop;var h=function(o){var h=t._stamp=+new Date;if(f){var v=f.apply(p,[o].concat(i));"string"==typeof v&&(o=v)}s&&function e(t,n,r){var i=setTimeout(function(){var a=t.innerHTML;clearTimeout(i),a===r?n():e(t,n,a)})}(p,function(){s.call(p)},NaN);var m=t.includeLastID||"_default";t.includeLastID=e;var y=l&&l[m]||r.createElement(n.tagName||t._element.tagName);c&&(y.className=c,p.insertBefore(y,t.start)),(l||{})[m]=y;var g=t.recoverNodes();for(g&&p.insertBefore(g,t.end);;){var b=t.start.nextSibling;if(!b||b===y||b===t.end)break;y.appendChild(b)}E.effect.remove(y,p,function(){l&&h===t._stamp&&a.appendChild(y)},t);var w=p,x=E.noop,$=E.noop,k=function(e,t,n){var i=e.templateCache&&e.templateCache[t];if(i){for(var a,o=r.createDocumentFragment();a=i.firstChild;)o.appendChild(a);return o}return E.parseHTML(n)}(t,e,o),C=E.slice(k.childNodes);u&&c?((w=d).innerHTML="",w.setAttribute(":skip","true"),p.insertBefore(w,t.end.nextSibling),x=function(){w.insertBefore(k,null)},$=function(){t.recoverNodes=E.noop,h===t._stamp&&(k=an(C),p.insertBefore(k,t.end),mt(C,i)),w.parentNode===p&&p.removeChild(w)},t.recoverNodes=function(){return t.recoverNodes=E.noop,an(C)}):x=function(){p.insertBefore(k,t.end),mt(C,i)},E.effect.apply(w,"enter",x,$)};if(e){var v=e;if("object"==typeof v){if(1!==v.nodeType)return o("include 不支持非DOM对象")}else if(!(v=r.getElementById(e))){if("string"==typeof rn[e])E.nextTick(function(){h(rn[e])});else if(Array.isArray(rn[e]))rn[e].push(h);else{var m=new window.XMLHttpRequest;m.onload=function(){if(200!==m.status)return o("获取网络资源出错, httpError["+m.status+"]");for(var t,n=m.responseText,r=0;t=rn[e][r++];)t(n);rn[e]=n},m.onerror=function(){o(":include load ["+e+"] error")},rn[e]=[h],m.open("GET",e,!0),"withCredentials"in m&&(m.withCredentials=!0),m.setRequestHeader("X-Requested-With","XMLHttpRequest"),m.send(null)}return}E.nextTick(function(){h(v.value||v.innerText||v.innerHTML)})}}});var on=/\(([^)]*)\)/,sn=E.directive("on",{priority:3e3,init:function(e){var t=e.expr;e.type="on";var n=e.param.replace(/-\d+$/,"");if("function"==typeof sn[n+"Hook"]&&sn[n+"Hook"](e),t.indexOf("(")>0&&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;c<y;c++){var w=l[c];v[w]||b++}var x=0;for(c in v)x++;var $,k=(!y||b===y)&&x>10,A=m.previousSibling,_=n.start;if(k)for(;A!==_;)g.removeChild(A),A=m.previousSibling;for(c=0;c<y;c++){var T=v[w=l[c]];if(T)f.push({}),v[w]=!0;else{if((T=pn(this)).$up=this.vmodels[0],"array"===r){u="add",T.$id=w;var N=e[c];T[h]=N,Object(N)===N&&(re(N,"$ups",N.$ups||{}),N.$ups[h]=T)}else{u="append",T[a]=w,T[o]=e[w];var j={};j[a]=T[a],j[o]=T[o],T[h]=j}this.cache[w]=T,(T.$anchor||(T.$anchor=m.cloneNode(!1))).nodeValue=this.signature,fn(n,p,T,f,i&&!n.effectDriver),dn(T,n,r)}1===this.enterCount&&(T.$active=!1,T.$oldIndex=T.$index,T.$active=!0,T.$index=c),"array"===r?(T.$first=0===c,T.$last=c===y-1,T[this.vars[0]]=T.$index):T[o]=ie(e[w]),d.push(T)}if(this.proxies=d,i&&!n.effectDriver)g.insertBefore(p,m),f.forEach(function(e){mt(e.nodes||[],e.vmodels),e.nodes=e.vmodels=null});else{var O=n.staggerIndex=0;for(w in v)!0!==v[w]&&(u="del",!k&&un(v[w].$anchor,n,!0),gn(this.cache,w,h),v[w]=null);for(c=0;c<y;c++){T=d[c],w="array"===r?T.$id:T.$key;var S=d[c-1],D=S?S.$anchor:n.start;v[w]?T.$index!==T.$oldIndex&&function(e,t){O=ln(n.effectEnterStagger,function(){var r=un(e.$anchor),i=E.slice(r.childNodes);g.insertBefore(r,t.nextSibling),cn(i,1,n)},O)}(T,D):function(e,t){var r=e.nodes,a=e.vmodels;r&&(O=ln(n.effectEnterStagger,function(){g.insertBefore(e.content,t.nextSibling),mt(r,a),!i&&cn(r,1,n)},O)),e.nodes=e.vmodels=null}(f[c],D)}}if(!e.$track)for(w in this.cache)gn(this.cache,w,h);$=I.newWatch?arguments:[u],g.args=$,g.msRendered&&g.msRendered.apply(g,$);var L=setTimeout(function(){clearTimeout(L),E.fireDom(g,"datasetchanged",{bubble:g.msHasEvent})});this.enterCount-=1}});var hn=[];function vn(e,t){for(var n=e.param||"el",r=0,i=hn.length;r<i;r++){var a=hn[r];if(a&&a.hasOwnProperty(n)){hn.splice(r,1),t=a;break}}return t||(t=function(e){var t=e.param||"el",n=e.vars[0],r={$outer:{},$index:0,$oldIndex:0,$anchor:null,$first:!1,$last:!1,$remove:E.noop};r[n]=0,r[t]=NaN;var i={$last:1,$first:1,$index:1};i[n]=1,i[t]=1;var a=Z({state:r},{force:i});return a.$id=j("proxy-each"),a}(e)),t}var mn=[];function yn(e){return mn.pop()||function(e){var t=e.param||"__el__",n=e.vars[0],r=e.vars[1],i={$index:0,$oldIndex:0,$outer:{},$anchor:null};i[n]="",i[r]=NaN,i[t]=NaN;var a={__el__:1,$index:1};a[n]=1,a[r]=1;var o=Z({state:i},{force:a});return o.$id=j("proxy-with"),o}(e)}function gn(e,t,n){var r=e[t];if(r){var i=0===r.$id.indexOf("proxy-each")?hn:mn;for(var a in r.$outer={},r.$events){var o=r.$events[a];Array.isArray(o)&&(o.length=0,a===n?r[n]=NaN:"$val"===a&&(r.$val=NaN))}i.unshift(r)>I.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=/<script[^>]*>([\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<a&&(c[1]=c[1]||"",c[1]+=new Array(a-c[1].length+1).join("0")),c.join(s)}var Tn=E.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.slice(0,t)+(e.length<=t?"":n)},time:function(e){var t=(e>>=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<n;t++){var r=arguments[t],i=E.filters[r[0]];if("function"==typeof i){var a=[e].concat(r.slice(1));e=i.apply(null,a)}}return e},camelize:Te,sanitize:function(e){return e.replace(wn,"").replace($n,function(e,t){var n=e.toLowerCase().match(/<(\w+)\s/);if(n){var r=kn[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(xn," ").replace(/\s+/g," ")})},escape:function(e){return String(e).replace(/&/g,"&").replace(Cn,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(An,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/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",'<link rel="stylesheet" href="'+e+'">'),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; |
JavaScript
60.1%
SCSS
19.2%
HTML
16.9%
CSS
3.8%